body.retention-table-view .app{grid-template-columns:248px minmax(0,1fr)}
body.retention-table-view .queue-panel,body.retention-table-view .detail-panel,body.retention-table-view .patient-panel{display:none}
.rw-workspace[hidden]{display:none!important}.rw-workspace{min-width:0;min-height:0;overflow:auto;background:#f7f9fc;color:#20307f}.rw-page{padding:32px 28px 60px;max-width:1840px;margin:0 auto}.rw-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.rw-kicker{font-size:10px;font-weight:700;letter-spacing:.13em;color:#66748d}.rw-heading h1{font:500 31px/1.2 Manrope,Arial,sans-serif;letter-spacing:-.8px;margin:7px 0 10px}.rw-heading p{font-size:14px;color:#64708b;line-height:1.6;margin:0}.rw-heading-actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:9px}.rw-button{border:1px solid #cbd6e7;border-radius:9px;background:#fff;color:#20307f;padding:10px 12px;font:600 12px/1.2 Manrope,Arial,sans-serif;cursor:pointer}.rw-button:hover{background:#edf4fc}.rw-button:disabled{opacity:.6;cursor:wait}.rw-primary{background:#20307f;color:#fff;border-color:#20307f}.rw-primary:hover{background:#17265e}.rw-summary{display:flex;gap:26px;flex-wrap:wrap;margin:24px 0 18px;font-size:12px;color:#66748d}.rw-summary b{font-size:22px;color:#20307f;margin-right:5px}.rw-notice{padding:13px 16px;background:#eef4fc;border:1px solid #dce6f4;border-radius:10px;font-size:12px;line-height:1.65;color:#556784}.rw-error{margin:12px 0;padding:13px 16px;border:1px solid #e2bfb1;border-radius:9px;background:#fff7f2;color:#8d4028;font-size:13px;line-height:1.6}.rw-error p{margin:0 0 8px}.rw-tools{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:22px 0 12px}.rw-tools label:not(.rw-check){display:grid;gap:6px;font-size:11px;color:#5f6e87}.rw-tools input[type=search],.rw-tools select{min-height:39px;border:1px solid #cdd8e7;border-radius:8px;padding:9px 11px;background:#fff;color:#243859;font:12px/1.4 Manrope,Arial,sans-serif}.rw-search{flex:1;min-width:200px}.rw-check{display:flex;align-items:center;gap:7px;font-size:12px;line-height:1.5;color:#4b5e7a}.rw-check input{accent-color:#20307f;width:16px;height:16px;flex:none}.rw-tools .rw-check{min-height:39px}.rw-results{font-size:11px;color:#718099;margin:12px 0}.rw-table-wrap{overflow:auto;border:1px solid #dbe3ef;border-radius:12px;background:#fff;max-height:calc(100dvh - 385px)}.rw-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:1490px;font-size:12px;color:#324967}.rw-table th,.rw-table td{padding:15px 12px;text-align:left;vertical-align:top;border-bottom:1px solid #e5ebf3;line-height:1.6;overflow-wrap:anywhere}.rw-table thead th{background:#edf3fb;font-size:10px;line-height:1.5;font-weight:700;color:#4c6080;position:sticky;top:0;z-index:2}.rw-table thead th:first-child,.rw-table tbody th{position:sticky;left:0;z-index:1;background:#fff;box-shadow:1px 0 #e2e8f1}.rw-table thead th:first-child{z-index:3;background:#edf3fb}.rw-table th:first-child{width:165px}.rw-table th:nth-child(2){width:125px}.rw-table th:nth-child(3),.rw-table th:nth-child(4),.rw-table th:nth-child(5),.rw-table th:nth-child(6),.rw-table th:nth-child(7){width:108px}.rw-table th:nth-child(8){width:220px}.rw-table th:nth-child(9){width:200px}.rw-table th:nth-child(10){width:130px}.rw-table th:nth-child(11){width:85px}.rw-table tbody tr:last-child>*{border-bottom:0}.rw-patient{border:0;padding:0;background:none;color:#20307f;text-align:left;font-weight:700;font-size:13px;line-height:1.5;cursor:pointer}.rw-patient:hover{text-decoration:underline}.rw-value{display:block;font-size:12px;color:#243c61;font-weight:600}.rw-unknown{color:#7a879b;font-weight:400}.rw-sub{display:block;font-size:10px;line-height:1.6;color:#7b879b;margin-top:5px;font-weight:400}.rw-action .rw-sub{font-size:11px}.rw-basis{display:block;font-size:9px;color:#8793a5;margin-top:3px}.rw-hold{display:inline-block;background:#fff2df;color:#805c20;border-radius:5px;font-size:9px;padding:2px 5px;margin-top:7px}.rw-concern{font-size:12px}.rw-empty{padding:45px 25px;text-align:center;background:#fff;border:1px solid #dbe3ef;border-radius:12px;margin-top:12px}.rw-empty h2{font-size:18px;font-weight:600}.rw-empty p{font-size:13px;color:#73819a;line-height:1.7;max-width:540px;margin:10px auto 20px}.rw-dialog{width:min(850px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #cbd8e9;border-radius:16px;color:#20307f;background:#fff;box-shadow:0 20px 80px #172b5033;overflow:auto}.rw-dialog::backdrop{background:#172b5066}.rw-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 25px 18px;border-bottom:1px solid #e0e7f1;position:sticky;top:0;background:#fff;z-index:4}.rw-dialog-head h2{font-size:23px;font-weight:500;letter-spacing:-.4px;margin:5px 0 0}#rw-editor-body{padding:20px 25px 25px}.rw-editor-note{font-size:12px;color:#6b7991;line-height:1.7;margin:0 0 17px}.rw-form-grid,.rw-evidence-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.rw-form-grid{margin-bottom:22px}.rw-field{display:grid;gap:7px;font-size:12px;color:#405574;min-width:0}.rw-field input,.rw-field select,.rw-field textarea{width:100%;min-width:0;border:1px solid #cdd8e7;border-radius:8px;background:#fff;color:#243b60;padding:10px 11px;font:13px/1.5 Manrope,Arial,sans-serif;box-sizing:border-box}.rw-field input:focus,.rw-field select:focus,.rw-field textarea:focus{outline:2px solid #a9c7ed;outline-offset:1px}.rw-field textarea{resize:vertical}.rw-field small{font-size:10px;color:#7a879c;line-height:1.6}.rw-field a{font-size:11px;color:#3458a0;text-decoration:underline}.rw-span{grid-column:1/-1}.rw-evidence{border:1px solid #dce4ef;border-radius:10px;margin:10px 0 16px;overflow:hidden}.rw-evidence>summary{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:13px 15px;cursor:pointer;font-size:12px;background:#f7f9fc;list-style:none}.rw-evidence>summary::before{content:'+';color:#7a8ba7;font-size:18px;line-height:1}.rw-evidence[open]>summary::before{content:'−'}.rw-evidence>summary span{flex:1}.rw-evidence>summary b{font-size:11px;font-weight:600}.rw-evidence-grid{padding:17px 15px}.rw-evidence>.rw-editor-note,.rw-evidence>.rw-check{margin:15px}.rw-evidence fieldset{border:0;margin:0;padding:15px}.rw-evidence fieldset:disabled{opacity:.55}.rw-form-actions{display:flex;gap:20px;align-items:center;justify-content:space-between;border-top:1px solid #e1e7f0;padding-top:20px;margin-top:20px}.rw-form-actions>span{max-width:460px;font-size:11px;line-height:1.7;color:#7b879b}.rw-candidates{display:grid;gap:8px;margin-top:15px}.rw-candidate{display:grid;gap:5px;border:1px solid #dbe4ef;border-radius:10px;background:#fff;padding:13px;text-align:left;color:#20307f;cursor:pointer}.rw-candidate:hover{background:#f4f8fd}.rw-candidate span{font-size:11px;color:#71809a;line-height:1.5}.rw-button:focus-visible,.rw-patient:focus-visible{outline:3px solid #abc7ec;outline-offset:2px}
@media(max-width:1100px) and (min-width:851px){body.retention-table-view .app{grid-template-columns:210px minmax(0,1fr)}.rw-page{padding:26px 20px 45px}.rw-heading{display:block}.rw-heading-actions{padding-top:16px}.rw-table-wrap{max-height:calc(100dvh - 420px)}}
@media(max-width:850px){body.retention-table-view .app{display:block}.rw-workspace{height:calc(100dvh - 64px)}.rw-page{padding:22px 16px 45px}.rw-heading{display:block}.rw-heading h1{font-size:27px}.rw-heading-actions{padding-top:18px}.rw-heading-actions .rw-button{flex:1}.rw-summary{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin:21px 0 17px}.rw-summary b{display:block;line-height:1.4}.rw-summary span{font-size:10px}.rw-summary b{font-size:19px}.rw-tools{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rw-tools .rw-search{grid-column:1/-1;min-width:0}.rw-tools input[type=search],.rw-tools select{width:100%;box-sizing:border-box}.rw-tools .rw-check{grid-column:1/-1}.rw-table-wrap{border:0;background:none;overflow:visible;max-height:none}.rw-table{display:block;min-width:0;width:100%;table-layout:auto;border:0}.rw-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.rw-table tbody{display:grid;gap:15px}.rw-table tr{display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid #dbe4ef;border-radius:12px;overflow:hidden}.rw-table th,.rw-table td{display:block;width:auto!important;padding:13px 14px;position:static!important;box-shadow:none!important;border-bottom:1px solid #e8edf4;font-size:12px}.rw-table td::before{content:attr(data-label);display:block;font-size:9px;font-weight:600;color:#76869e;margin-bottom:6px;line-height:1.5}.rw-table tbody th{grid-column:1/-1;background:#f0f5fc}.rw-table .rw-concern,.rw-table .rw-action,.rw-table td:nth-child(10),.rw-table .rw-review-cell{grid-column:1/-1}.rw-table .rw-review-cell{border-bottom:0}.rw-table .rw-review-cell::before{display:none}.rw-table .rw-review-cell .rw-button{width:100%}.rw-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.rw-dialog-head{padding:17px 16px}.rw-dialog-head h2{font-size:21px}#rw-editor-body{padding:17px 16px}.rw-form-grid,.rw-evidence-grid{grid-template-columns:1fr}.rw-span{grid-column:auto}.rw-form-actions{align-items:stretch;flex-direction:column}.rw-form-actions .rw-button{width:100%}}

.rw-review-cell .rw-button{white-space:nowrap;padding:9px 8px}

/* Embedded Concierge has no local sidebar; the OS shell owns navigation. */
body.concierge-embedded.retention-table-view .app,body.concierge-shell-nav.retention-table-view .app{grid-template-columns:minmax(0,1fr)}
body.concierge-embedded.retention-table-view .rw-workspace{height:100%}
