/* Dues Recovery v142: daily queue, stable two-pane calling desk and no horizontal list scroll. */
.dr-heading-tools,.dr-followup-head{display:flex;align-items:flex-end;gap:.65rem;flex-wrap:wrap}
.dr-followup-head label{display:grid;gap:.28rem;color:var(--text-soft);font-size:.72rem;font-weight:800}
.dr-followup-head button,.dr-list-footer>button{min-height:40px;border:1px solid var(--border);border-radius:9px;padding:.55rem .75rem;background:var(--surface);color:var(--accent);font-weight:800;cursor:pointer}
.dr-residency-toggle{display:grid;grid-template-columns:repeat(3,1fr);min-width:310px;padding:3px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2)}
.dr-residency-toggle button{min-height:36px;border:0;border-radius:7px;background:transparent;color:var(--text-soft);font-size:.72rem;font-weight:800;cursor:pointer}
.dr-residency-toggle button.active.hosteller{background:#dcfce7;color:#15803d}.dr-residency-toggle button.active.all{background:#ede9fe;color:#6d28d9}.dr-residency-toggle button.active.day{background:#dbeafe;color:#1d4ed8}
.dr-progress-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;margin-bottom:.65rem}.dr-progress-cards .dr-summary-card{cursor:default}.dr-summary-card.green{color:#16803f}.dr-summary-card.orange{color:#d97706}.dr-summary-card.blue{color:#2563eb}
.dr-progress-track{height:7px;margin:0 1px .75rem;overflow:hidden;border-radius:99px;background:#e2e8f0}.dr-progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#16a34a,#22c55e);transition:width .25s ease}
.dr-target-complete{display:flex;align-items:center;gap:.65rem;margin-bottom:.75rem;padding:.7rem .9rem;border:1px solid #86efac;border-radius:10px;background:#f0fdf4;color:#166534}.dr-target-complete span{color:#15803d;font-size:.78rem}.dr-target-complete i{font-size:1.1rem}
.dr-followup-layout{position:sticky;top:calc(var(--topbar-h,66px) + .65rem);display:grid;grid-template-columns:minmax(520px,1.08fr) minmax(460px,.92fr);gap:.75rem;height:calc(100dvh - var(--topbar-h,66px) - 1.35rem);min-height:560px;overflow:hidden}
.dr-queue-pane,.dr-panel-empty{min-width:0;height:100%;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden}
.dr-queue-pane{display:grid;grid-template-rows:auto auto minmax(0,1fr)}.dr-queue-pane>header{display:flex;align-items:center;justify-content:space-between;padding:.8rem .9rem;border-bottom:1px solid var(--border)}.dr-queue-pane>header div{display:grid}.dr-queue-pane>header span{color:var(--text-soft);font-size:.7rem}.dr-queue-pane>header button{width:36px;height:36px;border:1px solid var(--border);border-radius:50%;background:var(--surface-2);color:var(--accent);cursor:pointer}
.dr-queue-columns{display:grid;grid-template-columns:28px 38px minmax(120px,1.25fr) minmax(52px,.48fr) minmax(80px,.68fr) minmax(105px,.85fr);gap:.5rem;margin:.35rem .55rem 0;padding:0 .62rem;color:var(--text-soft);font-size:.57rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.dr-queue-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:.25rem .55rem .75rem}.dr-queue-group>span{display:block;padding:.5rem .25rem .3rem;color:var(--text-soft);font-size:.62rem;font-weight:900;letter-spacing:.09em}.dr-queue-group.completed>span{color:#15803d}
.dr-queue-card{display:grid;grid-template-columns:28px 38px minmax(120px,1.25fr) minmax(52px,.48fr) minmax(80px,.68fr) minmax(105px,.85fr);gap:.5rem;align-items:center;width:100%;margin-bottom:.4rem;padding:.62rem;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);text-align:left;cursor:pointer}.dr-queue-card:hover,.dr-queue-card.is-selected{border-color:#8b5cf6;background:#faf7ff}.dr-queue-card.is-complete{border-color:#bbf7d0;background:#f0fdf4}.dr-queue-card.is-complete:hover,.dr-queue-card.is-complete.is-selected{border-color:#22c55e;background:#e8faee}
.dr-queue-number{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--surface-2);color:var(--text-soft);font-size:.68rem;font-weight:900}.dr-queue-card.is-complete .dr-queue-number{background:#22c55e;color:#fff}.dr-queue-person,.dr-queue-class,.dr-queue-residence,.dr-queue-money{display:grid;min-width:0}.dr-queue-person strong,.dr-queue-person small,.dr-queue-class strong,.dr-queue-class small,.dr-queue-residence strong,.dr-queue-residence small,.dr-queue-money strong,.dr-queue-money small{overflow-wrap:anywhere}.dr-queue-person strong{font-size:.76rem}.dr-queue-person small,.dr-queue-class small,.dr-queue-residence small,.dr-queue-money small{color:var(--text-soft);font-size:.6rem;font-style:normal;line-height:1.3}.dr-queue-class strong,.dr-queue-residence strong{font-size:.68rem}.dr-queue-money{text-align:right}.dr-queue-money strong{color:#b42318;font-size:.76rem}.dr-queue-money b{justify-self:end;margin-top:.2rem;padding:.12rem .32rem;border-radius:99px;background:#dbeafe;color:#1d4ed8;font-size:.55rem;text-transform:uppercase}
.dr-queue-empty,.dr-panel-empty,.dr-loading,.dr-error{display:grid;place-items:center;align-content:center;gap:.4rem;min-height:230px;padding:1.25rem;text-align:center;color:var(--text-soft)}.dr-queue-empty i,.dr-panel-empty i{font-size:1.8rem;color:#22c55e}.dr-panel-empty i{color:var(--accent)}.dr-loading,.dr-error{min-height:420px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.dr-loading i,.dr-error i{font-size:1.8rem;color:var(--accent)}.dr-error i{color:var(--error)}.dr-error button{border:0;border-radius:8px;padding:.55rem .85rem;background:var(--accent);color:#fff;font-weight:800;cursor:pointer}
.dr-drawer.dr-inline-panel{position:relative;inset:auto;z-index:1;width:auto;height:100%;border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);overflow:hidden}.dr-inline-panel .dr-drawer-scroll{overscroll-behavior:contain}.dr-mobile-panel{display:none}
.dr-panel-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin:.7rem 0}.dr-panel-metrics>div{display:grid;padding:.65rem;border:1px solid var(--border);border-radius:9px;background:var(--surface-2)}.dr-panel-metrics small{color:var(--text-soft);font-size:.65rem}.dr-panel-metrics strong{font-size:.82rem}.dr-panel-metrics>div:first-child strong{color:#b42318;font-size:1rem}.dr-status-active{color:#15803d}.dr-status-inactive{color:#64748b}
.dr-panel-section{margin-top:.85rem;padding-top:.75rem;border-top:1px solid var(--border)}.dr-last-three{display:grid;gap:.35rem}.dr-last-three>div{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:.55rem;align-items:center;padding:.55rem;border:1px solid var(--border);border-radius:8px}.dr-last-three>div>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#ede9fe;color:#7c3aed}.dr-last-three>div.income>span{background:#dcfce7;color:#15803d}.dr-last-three p{display:grid;min-width:0;margin:0}.dr-last-three strong,.dr-last-three small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dr-last-three strong{font-size:.72rem}.dr-last-three small{color:var(--text-soft);font-size:.62rem}.dr-last-three b{font-size:.73rem}.dr-last-three .income b{color:#15803d}
.dr-directory-workspace{overflow:visible}.dr-directory-workspace .dr-filter-grid{grid-template-columns:minmax(240px,2fr) repeat(4,minmax(115px,.8fr)) auto}.dr-dues-directory-table{overflow:hidden}.dr-dues-directory-table table{width:100%;min-width:0;table-layout:fixed}.dr-dues-directory-table th:nth-child(1){width:20%}.dr-dues-directory-table th:nth-child(2){width:7%}.dr-dues-directory-table th:nth-child(3){width:10%}.dr-dues-directory-table th:nth-child(4){width:9%}.dr-dues-directory-table th:nth-child(5){width:7%}.dr-dues-directory-table th:nth-child(6){width:9%}.dr-dues-directory-table th:nth-child(7){width:11%}.dr-dues-directory-table th:nth-child(8){width:12%}.dr-dues-directory-table th:nth-child(9){width:15%}.dr-dues-directory-table td{overflow:hidden;overflow-wrap:anywhere}.dr-dues-directory-table td>small{display:block}.dr-dues-directory-table em.active{color:#15803d;font-style:normal}.dr-dues-directory-table em.inactive{color:#dc2626;font-style:normal}.dr-add-followup{display:inline-flex;align-items:center;justify-content:center;gap:.3rem;max-width:100%;border:1px solid #c4b5fd;border-radius:7px;padding:.4rem .5rem;background:#f5f3ff;color:#6d28d9;font-size:.68rem;font-weight:800;cursor:pointer}.dr-schedule-student{display:flex;align-items:center;gap:.6rem;margin-bottom:.8rem;padding:.65rem;border:1px solid var(--border);border-radius:9px}.dr-schedule-student>span:last-child{display:grid}.dr-schedule-student small{color:var(--text-soft)}
.dues-followup-setting{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem;padding:1rem;border:1px solid #c4b5fd;border-radius:12px;background:linear-gradient(135deg,#faf5ff,#eff6ff)}.dues-followup-setting>div{display:flex;align-items:center;gap:.75rem}.dues-followup-setting>div>span{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#7c3aed;color:#fff}.dues-followup-setting>div>div{display:grid}.dues-followup-setting small{max-width:620px;color:var(--text-soft)}.dues-followup-setting label{display:grid;gap:.25rem;min-width:145px;color:var(--text-soft);font-size:.72rem;font-weight:800}.dues-followup-setting input{font-weight:900}
@media(max-width:1250px){.dr-progress-cards{grid-template-columns:1fr 1fr}.dr-followup-layout{grid-template-columns:minmax(500px,1.1fr) minmax(400px,.9fr)}.dr-directory-workspace .dr-filter-grid{grid-template-columns:minmax(220px,2fr) repeat(3,minmax(105px,1fr)) auto}.dr-dues-directory-table th:nth-child(4),.dr-dues-directory-table td:nth-child(4),.dr-dues-directory-table th:nth-child(8),.dr-dues-directory-table td:nth-child(8){display:none}.dr-dues-directory-table th:nth-child(1){width:25%}.dr-dues-directory-table th:nth-child(2){width:9%}.dr-dues-directory-table th:nth-child(3){width:13%}.dr-dues-directory-table th:nth-child(5){width:10%}.dr-dues-directory-table th:nth-child(6){width:12%}.dr-dues-directory-table th:nth-child(7){width:14%}.dr-dues-directory-table th:nth-child(9){width:17%}}
@media(max-width:900px){.dr-followup-layout{position:relative;top:auto;display:block;height:auto;min-height:0;overflow:visible}.dr-queue-pane{height:auto}.dr-queue-scroll{max-height:none;overflow:visible}.dr-inline-panel{display:none!important}.dr-mobile-panel{display:block}.dr-followup-page .dr-drawer{width:100vw}.dr-progress-cards{grid-template-columns:1fr 1fr}.dr-heading-tools,.dr-followup-head{align-items:stretch;flex-direction:column}.dr-residency-toggle{min-width:0}.dr-directory-workspace .dr-filter-grid{grid-template-columns:1fr 1fr}.dr-directory-workspace .dr-search{grid-column:1/-1}.dr-dues-directory-table table,.dr-dues-directory-table tbody,.dr-dues-directory-table tr,.dr-dues-directory-table td{display:block;width:100%}.dr-dues-directory-table thead{display:none}.dr-dues-directory-table tr{padding:.65rem;border-bottom:1px solid var(--border)}.dr-dues-directory-table td{display:grid!important;grid-template-columns:37% minmax(0,1fr);gap:.5rem;min-height:0;padding:.3rem .2rem;border:0}.dr-dues-directory-table td:before{position:static;width:auto;color:var(--text-soft);font-size:.65rem;font-weight:800}.dr-dues-directory-table td:nth-child(1):before{content:"Student"}.dr-dues-directory-table td:nth-child(2):before{content:"Class"}.dr-dues-directory-table td:nth-child(3):before{content:"Residence"}.dr-dues-directory-table td:nth-child(4):before{content:"Oldest Due"}.dr-dues-directory-table td:nth-child(5):before{content:"Overdue"}.dr-dues-directory-table td:nth-child(6):before{content:"Total Due"}.dr-dues-directory-table td:nth-child(7):before{content:"Priority"}.dr-dues-directory-table td:nth-child(8):before{content:"Next Follow-up Date"}.dr-dues-directory-table td:nth-child(4),.dr-dues-directory-table td:nth-child(8){display:grid!important}}
@media(max-width:560px){.dr-progress-cards{grid-template-columns:1fr}.dr-queue-columns{display:none}.dr-queue-card{grid-template-columns:25px 34px minmax(0,1fr) minmax(82px,.68fr);align-items:start}.dr-queue-person{grid-column:3}.dr-queue-class{grid-column:3}.dr-queue-residence{grid-column:3}.dr-queue-money{grid-column:4;grid-row:1/5;text-align:right}.dr-queue-money b{justify-self:end}.dr-panel-metrics{grid-template-columns:1fr 1fr}.dr-panel-metrics>div:last-child{grid-column:1/-1}.dr-directory-workspace .dr-filter-grid{grid-template-columns:1fr}.dr-directory-workspace .dr-search{grid-column:auto}.dr-residency-toggle button span{font-size:.64rem}.dr-add-followup span{display:none}.dr-dues-directory-table td{grid-template-columns:34% minmax(0,1fr)}.dues-followup-setting{align-items:stretch;flex-direction:column}.dues-followup-setting label{min-width:0}}

/* v236: the page itself owns scrolling. The calling panel occupies about 20%
   and the ledger-like follow-up table keeps every operational column visible. */
.dr-followup-page .dr-progress-cards,.dr-followup-page .dr-followup-layout{width:100%;max-width:none}
.dr-followup-layout{position:relative;top:auto;grid-template-columns:minmax(0,4fr) minmax(0,1fr);height:auto;min-height:0;overflow:visible;align-items:start;scroll-behavior:smooth}
.dr-queue-pane,.dr-panel-empty{height:auto;overflow:visible}
.dr-queue-pane{display:block}
.dr-queue-scroll{min-height:0;max-height:none;overflow:auto;padding:.4rem .65rem .85rem;scroll-behavior:smooth;overscroll-behavior:auto}
.dr-drawer.dr-inline-panel{position:sticky;top:calc(var(--topbar-h,66px) + .65rem);width:auto;height:auto;max-height:calc(100dvh - var(--topbar-h,66px) - 1.3rem)}
.dr-followup-table{width:100%;min-width:930px;border-collapse:separate;border-spacing:0 5px;table-layout:fixed}
.dr-followup-table th{padding:.35rem .45rem;color:var(--text-soft);font-size:.6rem;font-weight:900;text-align:left;text-transform:uppercase;letter-spacing:.03em}
.dr-followup-table th:nth-child(1){width:4%}.dr-followup-table th:nth-child(2){width:19%}.dr-followup-table th:nth-child(3){width:7%}.dr-followup-table th:nth-child(4){width:10%}.dr-followup-table th:nth-child(5){width:10%}.dr-followup-table th:nth-child(6){width:8%}.dr-followup-table th:nth-child(7){width:10%}.dr-followup-table th:nth-child(8){width:14%}.dr-followup-table th:nth-child(9){width:18%}
.dr-queue-row{cursor:pointer}.dr-queue-row td{padding:.52rem .45rem;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--surface);font-size:.72rem;vertical-align:middle;overflow-wrap:anywhere}.dr-queue-row td:first-child{border-left:1px solid var(--border);border-radius:9px 0 0 9px}.dr-queue-row td:last-child{border-right:1px solid var(--border);border-radius:0 9px 9px 0}.dr-queue-row td>small{display:block;margin-top:.12rem;color:var(--text-soft);font-size:.6rem}.dr-queue-row:hover td,.dr-queue-row.is-selected td{border-color:#8b5cf6;background:#faf7ff}.dr-queue-row.is-complete td{border-color:#bbf7d0;background:#f0fdf4}.dr-queue-row.is-complete .dr-queue-number{background:#22c55e;color:#fff}
.dr-dues-directory-table th:nth-child(1){width:23%}.dr-dues-directory-table th:nth-child(2){width:8%}.dr-dues-directory-table th:nth-child(3){width:11%}.dr-dues-directory-table th:nth-child(4){width:11%}.dr-dues-directory-table th:nth-child(5){width:9%}.dr-dues-directory-table th:nth-child(6){width:11%}.dr-dues-directory-table th:nth-child(7){width:13%}.dr-dues-directory-table th:nth-child(8){width:14%}
@media(min-width:901px){.dr-followup-layout{grid-template-columns:minmax(0,4fr) minmax(0,1fr)}}
@media(max-width:900px){.dr-followup-layout{display:block}.dr-followup-table{min-width:900px}.dr-drawer.dr-inline-panel{position:relative;top:auto;max-height:none}}
