/* my-workspace.css v1.3 (2026-11-07: Mine / My unit switch for supervisors, limit note) v1.2 (2026-11-04: How it works fills the whole page width, like Client Explorer) v1.1 (2026-11-04, Joseph: "really busy, make it easier to follow": counts strip, Go to links, plain one-line rows, Show all) v1.0 (2026-11-04, Joseph: the new My Workspace page, my-workspace.js). Builds on client-360.css (tiles, items, dots, help card). Theme colours only. */
.mw{gap:12px}
.mw-head{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.mw-head h2{margin:0;font-size:22px;color:var(--t-strong,var(--t-text))}
.mw-head p{margin:2px 0 0;font-size:12px}
.mw-head-btns{margin-left:auto;display:flex;gap:6px}
.mw-head-btns button,.mw-filter button{font-size:12px;padding:3px 10px;border-radius:6px;border:1px solid var(--t-border);background:var(--t-button,var(--t-raised));color:var(--t-button-text,var(--t-text));cursor:pointer}
.mw-head-btns button:hover,.mw-filter button:hover{border-color:var(--t-accent);color:var(--t-accent)}
.mw-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}
.mw-tile{text-align:left;border:1px solid var(--t-border);border-top:3px solid var(--t-accent);border-radius:9px;padding:8px 11px;background:var(--t-surface);color:var(--t-text);cursor:pointer}
.mw-tile span{display:block;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--t-muted)}
.mw-tile b{display:block;font-size:26px;line-height:1.2;color:var(--t-strong,var(--t-text))}
.mw-tile small{display:block;font-size:11px;color:var(--t-muted)}
.mw-tile.good{border-top-color:var(--t-good)}.mw-tile.warm{border-top-color:var(--t-warm)}.mw-tile.bad{border-top-color:var(--t-bad)}.mw-tile.bad b{color:var(--t-bad)}
.mw-tile:hover{border-color:var(--t-accent)}
.mw-tile.on{box-shadow:0 0 0 2px var(--t-accent) inset;background:var(--t-selected,var(--t-raised))}
.mw-filter{font-size:12px;color:var(--t-muted)}
.mw-cols{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(200px,.55fr);gap:12px;align-items:start}
@media (max-width:1200px){.mw-cols{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.mw-side{grid-column:1 / -1}}
@media (max-width:800px){.mw-cols{grid-template-columns:minmax(0,1fr)}}
.mw-day,.mw-att{max-height:560px;overflow:auto}
.mw-group h4{margin:8px 0 5px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--t-muted)}
.mw-group.late h4{color:var(--t-bad)}
.mw-who{color:var(--t-strong,var(--t-text))}
.mw-quicks{display:flex;flex-direction:column;gap:6px}
.mw-quick{display:flex;align-items:center;gap:8px;text-align:left;border:1px solid var(--t-border);border-radius:7px;padding:6px 9px;background:var(--t-raised);color:var(--t-text);cursor:pointer;font-size:13px}
.mw-quick span{width:20px;text-align:center}
.mw-quick:hover{border-color:var(--t-accent);color:var(--t-accent)}
.mw-grid table{width:100%}
.mw-grid tbody tr{cursor:default}
.mw-links{white-space:nowrap}
.mw-links a{font-size:12px;margin-right:8px}
.mw-n{display:inline-block;min-width:18px;padding:0 5px;margin-right:3px;border-radius:9px;font-size:11px;text-align:center;color:#fff;background:var(--t-accent)}
.mw-n.red{background:var(--t-bad)}.mw-n.amber{background:var(--t-warm)}
.mw-late.red{color:var(--t-bad);font-weight:600}.mw-late.amber{color:var(--t-warm);font-weight:600}
.mw-risk{font-size:11px;padding:1px 8px;border-radius:9px;border:1px solid var(--t-border);color:var(--t-muted);white-space:nowrap}
.mw-risk.r1{color:var(--t-good);border-color:var(--t-good-border,var(--t-good));background:var(--t-good-bg)}
.mw-risk.r2{color:var(--t-accent);border-color:var(--t-accent)}
.mw-risk.r3{color:var(--t-warm);border-color:var(--t-warm-border,var(--t-warm));background:var(--t-warm-bg)}
.mw-risk.r4{color:var(--t-bad);border-color:var(--t-bad-border,var(--t-bad));background:var(--t-bad-bg)}

/* v1.1 calmer page */
.mw-head{align-items:center}
.mw-head p{margin:0;font-size:13px}
.mw-counts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border:1px solid var(--t-border);border-radius:9px;background:var(--t-surface);overflow:hidden}
.mw-count{padding:9px 14px;cursor:pointer;border-left:1px solid var(--t-border);border-bottom:3px solid transparent;color:var(--t-text)}
.mw-count:first-child{border-left:0}
.mw-count b{display:block;font-size:22px;line-height:1.15;font-weight:600;color:var(--t-strong,var(--t-text))}
.mw-count span{display:block;font-size:12px;color:var(--t-muted)}
.mw-count.bad b{color:var(--t-bad)}.mw-count.warm b{color:var(--t-warm)}
.mw-count:hover{background:var(--t-raised)}
.mw-count.on{border-bottom-color:var(--t-accent);background:var(--t-selected,var(--t-raised))}
@media (max-width:900px){.mw-counts{grid-template-columns:repeat(3,minmax(0,1fr))}}
.mw-gos{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 18px;font-size:13px}
.mw-gos .muted{font-size:12px}
.mw-go{color:var(--t-accent);text-decoration:none}
.mw-go::after{content:" ↗"}
.mw-go:hover{text-decoration:underline}
.mw .mw-cols{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
@media (max-width:900px){.mw .mw-cols{grid-template-columns:minmax(0,1fr)}}
.mw-day,.mw-att{max-height:none;overflow:visible}
.mw-group{margin-bottom:6px}
.mw-group h4{margin:10px 0 2px}
.mw-group:first-of-type h4{margin-top:4px}
.mw-row{display:flex;align-items:center;gap:8px;padding:5px 4px;border-top:1px solid var(--t-border);cursor:pointer;font-size:13px;color:var(--t-text);border-radius:0}
.mw-group h4+.mw-row{border-top:0}
.mw-row:hover,.mw-row:focus-visible{background:var(--t-raised);outline:none}
.mw-dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--t-accent)}
.mw-row.red .mw-dot{background:var(--t-bad)}.mw-row.amber .mw-dot{background:var(--t-warm)}
.mw-ic{flex:none;width:18px;text-align:center;font-size:13px}
.mw-txt{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mw-txt b{font-weight:600;color:var(--t-strong,var(--t-text))}
.mw-txt small{color:var(--t-muted);font-size:11px}
.mw-due{flex:none;font-size:12px;color:var(--t-muted);white-space:nowrap}
.mw-due.late{color:var(--t-bad)}
.mw-more{display:inline-block;margin:3px 0 0 30px;font-size:12px;color:var(--t-accent);cursor:pointer}
.mw-more:hover{text-decoration:underline}

/* v1.2 How it works: the whole area */
.mw .c360-info.mw-info{max-width:none}
/* v1.3: Mine / My unit (one pair of buttons, the chosen one in the accent colour) */
.mw-scope{display:inline-flex;margin-right:6px}
.mw-head-btns .mw-scope button{border-radius:0}
.mw-head-btns .mw-scope button:first-child{border-radius:6px 0 0 6px}
.mw-head-btns .mw-scope button:last-child{border-radius:0 6px 6px 0;margin-left:-1px}
.mw-head-btns .mw-scope button.on{border-color:var(--t-accent);color:var(--t-accent);position:relative;z-index:1}
.mw-limit{margin:0 0 6px;font-size:12px}
/* v1.4 (Joseph 2026-11-29: "the number on the grid should match the rest, look at the address grid ... the number is in a circle"): the count in
   the caseload grid's title line is the same round badge as on every grid title (values copied from orbit-layout.css ".toolbar h2 .count"). */
html:root:not([data-theme="lcars"]) body #content .toolbar.mw-case-bar h3 .count:not(#mw1):not(#mw2):not(#mw3):not(#mw4){display:inline-flex!important;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px!important;margin-left:8px!important;box-sizing:border-box;border:1px solid var(--o-line-strong, var(--t-border))!important;border-radius:11px!important;background:var(--o-count-bg, transparent)!important;color:var(--o-count-text, inherit)!important;font:600 12px/1 'Segoe UI',Arial,sans-serif!important;letter-spacing:0!important;font-variant-numeric:tabular-nums;vertical-align:middle;position:relative;top:var(--oms-count-nudge,-2px)}
