/* caseload-capacity.css v1.4 (2026-11-29, Joseph "go": whole rows for large grids): Capacity only (not the Breakdown window, which also has cc-dialog):
   bars and the adult/juvenile box take a whole row, Workload spread and Average caseload by risk share a row only when both fit; labels and risk mix wrap, never spill. */
/* caseload-capacity.css v1.3 (2026-11-18): How it works text larger (Joseph: too small). v1.2 (2026-11-18): two count strips of 5 (clients, caseloads), hover help cursor, table total rows. v1.1 (2026-11-18): 7 count tiles in one row (Pending clients added). v1.0 (2026-11-04, Joseph: caseload capacity visuals): the cc-* parts of the Caseload capacity window (caseload-capacity.js).
   The window itself is the rn-* window of relation-network.css. Theme colours only; risk colours match the My Workspace risk chips. */
#modal.cc-dialog .cc-front{overflow:auto;border-radius:8px;border:1px solid var(--t-border);background:var(--t-bg,var(--t-surface))}
.cc-board{display:flex;flex-direction:column;gap:12px;padding:12px}
.cc-none{margin:30px auto;color:var(--t-muted);font-size:13px;text-align:center}
.cc-key{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;vertical-align:-1px;box-shadow:none!important}
.r4{--cc:var(--t-bad,#d64545)}.r3{--cc:var(--t-warm,#e39a2d)}.r2{--cc:var(--t-accent,#1762a3)}.r1{--cc:var(--t-good,#2e9d5b)}.r0{--cc:var(--t-muted,#8795a6)}.rb{--cc:var(--t-border,#c4ccd6)}
.cc-key,.cc-fill i,.cc-mix i{background:var(--cc)}
.rn-legend .cc-key{border-radius:2px}
.cc-counts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid var(--t-border);border-radius:9px;background:var(--t-surface);overflow:hidden}
.cc-count{padding:9px 14px;border-left:1px solid var(--t-border);color:var(--t-text)}
.cc-count:first-child{border-left:0}
.cc-count b{display:block;font-size:22px;line-height:1.15;font-weight:600;color:var(--t-strong,var(--t-text))}
.cc-count span{display:block;font-size:12px;color:var(--t-muted)}
.cc-count small{display:block;font-size:11px;color:var(--t-muted);opacity:.8}
.cc-count.bad b{color:var(--t-bad)}
.cc-count[title],.cc-table tr[title],.cc-bin[title]{cursor:help}
.cc-table tr.cc-total td{font-weight:600;border-top:1px solid var(--t-border)}
@media (max-width:900px){.cc-counts{grid-template-columns:repeat(3,minmax(0,1fr))}}
.cc-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
@media (max-width:1000px){.cc-cols{grid-template-columns:minmax(0,1fr)}}
.cc-side{display:flex;flex-direction:column;gap:12px}
.cc-box{border:1px solid var(--t-border);border-radius:9px;background:var(--t-surface);padding:10px 14px 12px;min-width:0}
.cc-box h4{margin:0 0 8px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--t-muted)}
.cc-rowhead,.cc-row{display:grid;grid-template-columns:minmax(120px,32%) minmax(0,1fr) 48px 62px;align-items:center;gap:10px}
.cc-rowhead{font-size:11px;color:var(--t-muted);padding-bottom:4px;border-bottom:1px solid var(--t-border)}
.cc-row{padding:4px 0;border-bottom:1px solid var(--t-border);font-size:12.5px;color:var(--t-text)}
.cc-row:last-of-type{border-bottom:0}
.cc-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cc-tag{font-style:normal;font-size:10.5px;padding:0 6px;border-radius:8px;border:1px solid var(--t-border);color:var(--t-muted)}
.cc-track{position:relative;display:block;height:12px;border-radius:3px;background:var(--t-raised,#eef2f6)}
.cc-rowhead .cc-track{height:auto;background:none}
.cc-fill{position:absolute;inset:0;display:flex;overflow:hidden;border-radius:3px}
.cc-fill i{display:block;height:100%;flex:none}
.cc-line{position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;background:var(--t-strong,var(--t-text));opacity:.75}
.cc-n,.cc-pct{text-align:right;font-variant-numeric:tabular-nums}
.cc-pct{font-weight:600}
.cc-row.over .cc-pct{color:var(--t-bad)}
.cc-more{margin:6px 0 0}
.cc-bin{display:grid;grid-template-columns:110px minmax(0,1fr) 36px;align-items:center;gap:10px;font-size:12.5px;padding:3px 0}
.cc-bin b{text-align:right;font-variant-numeric:tabular-nums}
.cc-bin-track{display:block;height:12px;border-radius:3px;background:var(--t-raised,#eef2f6);overflow:hidden}
.cc-bin-track i{display:block;height:100%;background:var(--t-accent)}
.cc-bin.low i{background:var(--t-muted)}.cc-bin.mid i{background:var(--t-good)}.cc-bin.near i{background:var(--t-warm)}.cc-bin.over i,.cc-bin.far i{background:var(--t-bad)}
.cc-table{width:100%;border-collapse:collapse;font-size:12.5px}
.cc-table th{font-size:11px;font-weight:400;color:var(--t-muted);text-align:left;padding:4px 6px;border-bottom:1px solid var(--t-border)}
.cc-table td{padding:5px 6px;border-bottom:1px solid var(--t-border);color:var(--t-text);vertical-align:middle}
.cc-table tr:last-child td{border-bottom:0}
.cc-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.cc-mixcell{min-width:220px}
.cc-mix{display:flex;height:10px;border-radius:3px;overflow:hidden;background:var(--t-raised,#eef2f6)}
.cc-mix i{display:block;height:100%}
.cc-mixcell small{display:block;margin-top:2px;font-size:11px;color:var(--t-muted)}
.cc-note{margin:6px 0 0;font-size:11px;color:var(--t-muted)}
.rn-info code{font-size:11px;color:#9fe0ff}

/* v1.3 How it works: larger text, this window only (relation-network.css .rn-info stays as it is for the other windows) */
#modal.cc-dialog .rn-info{max-width:1080px;font-size:15px;line-height:1.65}
#modal.cc-dialog .rn-info h3{font-size:22px}
#modal.cc-dialog .rn-info .rn-info-sub{font-size:15px}
#modal.cc-dialog .rn-info h4{font-size:13px;margin:24px 0 10px}
#modal.cc-dialog .rn-info li{margin:5px 0}
#modal.cc-dialog .rn-info table{font-size:14.5px}
#modal.cc-dialog .rn-info th{font-size:12px}
#modal.cc-dialog .rn-info code{font-size:13.5px}
#modal.cc-dialog .rn-info .rn-key{font-size:13px}
#modal.cc-dialog .rn-info .rn-asm{font-size:11px}
#modal.cc-dialog .rn-info td:first-child{white-space:nowrap}

/* v1.4 layout (Capacity only): .cc-side opens into the .cc-cols grid; auto-fit = 2 columns when each gets 560px, else 1 */
#modal.cc-dialog:not(.cb-dialog) .cc-cols{grid-template-columns:repeat(auto-fit,minmax(560px,1fr));align-items:stretch}
#modal.cc-dialog:not(.cb-dialog) .cc-side{display:contents}
#modal.cc-dialog:not(.cb-dialog) .cc-cols>.cc-box:first-child,#modal.cc-dialog:not(.cb-dialog) .cc-side>.cc-box:last-child{grid-column:1/-1}
#modal.cc-dialog:not(.cb-dialog) .cc-box{overflow-x:auto}
#modal.cc-dialog:not(.cb-dialog) .cc-table td.cc-mixcell,#modal.cc-dialog:not(.cb-dialog) .cc-mixcell small,#modal.cc-dialog:not(.cb-dialog) .cc-table td:first-child{white-space:normal}
#modal.cc-dialog:not(.cb-dialog) .cc-tag{white-space:nowrap}
