/* Reconfirmation performance: overview + agents list. Design tokens only (no literal colours). Prefix po-.
   The period control (.perf-period), the "% of bar" meter (.perf-meter / .perf-pct / .perf-tone-*) and the
   chart series tokens (--s-*) are shared and live in app.css. */

/* a body reloading for a new period stays on screen, dimmed */
.po-body{transition:opacity .2s}
.po-body.is-loading{opacity:.55}

/* plain below-bar values read in normal ink; colour stays on the meter (red is only for alerts) */
#v-perf-home .perf-pct.perf-tone-warn>b,#v-perf-agents .perf-pct.perf-tone-warn>b{color:var(--ink)}
#v-perf-home .perf-pct>b,#v-perf-agents .perf-pct>b{min-width:38px;text-align:right;font-variant-numeric:tabular-nums}

/* ---------- tiles ---------- */
.tiles.po-tiles{grid-template-columns:repeat(var(--po-cols,4),minmax(0,1fr))}
.po-tiles+.po-tiles{margin-top:-4px}
.po-tile .t-label{display:flex;align-items:center;gap:7px}
.po-tile .t-label::before{content:"";width:7px;height:7px;border-radius:99px;flex:none;background:var(--tile-accent,var(--brand));box-shadow:0 0 8px color-mix(in srgb,var(--tile-accent,var(--brand)) 55%,transparent)}
.po-tile .t-sub{font-variant-numeric:tabular-nums}
.po-tiles .tile.t-crit .t-num{color:var(--crit-ink)}
.tile.po-t-agents{--tile-accent:var(--s-agents)}
.tile.po-t-valid{--tile-accent:var(--s-valid)}
.tile.po-t-avoid{--tile-accent:var(--s-avoid)}
.tile.po-t-pink{--tile-accent:var(--pink)}
.tile.po-t-sky{--tile-accent:var(--sky)}
.tile.po-t-good{--tile-accent:var(--good)}
.tile.po-t-coral{--tile-accent:var(--coral)}
.tile.po-t-amber{--tile-accent:var(--amber)}
.po-sub-l{display:block}
.po-tile-meter{display:flex;align-items:center;gap:8px}
.po-tile-btn{display:block;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer}
.po-tile-btn:hover{border-color:color-mix(in srgb,var(--brand) 35%,var(--line))}
.po-tile-go{color:var(--brand);font-weight:600}
/* the alert streak is a fact of its own in the sub-line; the tile's key colour never changes */
.po-tile-alert{color:var(--crit-ink);font-weight:600;white-space:nowrap}
.po-tile-btn:hover .po-tile-go{text-decoration:underline;text-underline-offset:3px}
.po-key{display:inline-block;width:7px;height:7px;border-radius:99px;margin-right:5px;flex:none}
.po-key-valid{background:var(--s-valid)}
.po-key-avoid{background:var(--s-avoid)}
.po-scope{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--ink2);margin:0 0 14px}

/* ---------- charts: one colour per series on every perf screen ---------- */
.po-charts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.po-chart-card{min-width:0}
.po-chart-card .card-head{margin-bottom:6px}
.po-ytitle{font-weight:600}
.po-f-agents,.po-f-conf{fill:var(--s-agents)}
.po-f-outside{fill:var(--s-outside)}
.po-f-valid{fill:var(--s-valid)}
.po-f-avoid{fill:var(--s-avoid)}
.po-f-esc{fill:var(--pink)}
.po-f-sla{fill:var(--sky)}
.po-line{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.po-s-conf{stroke:var(--s-agents)}
.po-s-esc{stroke:var(--pink)}
.po-s-sla{stroke:var(--sky)}
.po-sw-agents,.po-sw-conf{background:var(--s-agents)}
.po-sw-outside{background:var(--s-outside)}
.po-sw-valid{background:var(--s-valid)}
.po-sw-avoid{background:var(--s-avoid)}
.po-sw-esc{background:var(--pink)}
.po-sw-sla{background:var(--sky)}

/* ---------- top / bottom performers ---------- */
.grid-2e.po-pair{align-items:stretch}
.po-ranks{list-style:none;margin:0 -8px;padding:0}
.po-rank{display:grid;grid-template-columns:18px 30px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;padding:8px;border:0;background:none;border-radius:10px;text-align:left;color:var(--ink);font:inherit;transition:background-color .12s}
button.po-rank{cursor:pointer}
button.po-rank:hover{background:var(--brand-tint)}
.po-ranks li+li .po-rank{box-shadow:0 -1px 0 var(--line2)}
.po-rank-n{color:var(--ink3);font-size:12px;text-align:center}
.po-av{width:30px;height:30px;border-radius:99px;display:grid;place-items:center;font-size:11px;font-weight:650}
.po-rank-top .po-av{background:color-mix(in srgb,var(--mint) 16%,transparent);color:var(--mint-ink)}
.po-rank-bottom .po-av{background:var(--mut-bg);color:var(--ink2)}
.po-rank-main{display:flex;flex-direction:column;min-width:0}
.po-rank-name{font-weight:600;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.po-rank-sub{font-size:12px;color:var(--ink2)}
.po-rank-val{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.po-rank-alert{color:var(--crit-ink)}

/* ---------- trainees in progress ---------- */
.po-trs{list-style:none;margin:0;padding:0}
.po-tr{display:grid;grid-template-columns:minmax(0,1fr) 62px 74px 104px;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line2)}
.po-tr:last-child{border-bottom:0}
.po-tr-main{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.po-link{border:0;background:none;padding:0;font:inherit;font-weight:600;color:var(--ink);text-align:left;cursor:pointer;border-radius:5px;transition:color .15s}
.po-link:hover{color:var(--brand);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.po-tr-name{font-weight:600}
.po-tr-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.po-tr-sub{font-size:12px;color:var(--ink2);font-variant-numeric:tabular-nums}
.po-track{position:relative;display:block;width:100%;max-width:220px;height:6px;margin-top:3px;border-radius:99px;background:var(--mut-bg);overflow:hidden}
.po-track i{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,var(--sky),var(--brand))}
/* gaps between the training months */
.po-track::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 calc(100% / var(--po-months,3) - 2px),var(--solid) calc(100% / var(--po-months,3) - 2px) calc(100% / var(--po-months,3)))}
.po-tr-stat{display:flex;flex-direction:column;align-items:flex-end;line-height:1.2}
.po-tr-k{font-size:11px;color:var(--ink3);white-space:nowrap}
.po-tr-stat b{font-size:15px;font-weight:650}
.po-tr-chip{text-align:right}

/* ---------- escalations by reason: valid vs avoidable ---------- */
.po-reason-total{font-size:13px;color:var(--ink2);margin:0 0 8px}
.po-reason-total b{font-size:20px;font-weight:650;color:var(--ink);margin-right:4px;letter-spacing:-.02em}
.po-reasons{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}
.po-reasons th{font:600 10.5px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink3);text-align:left;padding:0 0 6px;border-bottom:1px solid var(--line2);white-space:nowrap;vertical-align:bottom}
.po-reasons th:first-child{width:46%}
/* "Valid escalations" takes two lines */
.po-reasons th:nth-child(3){width:96px;white-space:normal}
.po-reasons th:nth-child(4){width:96px}
.po-reasons th.po-r{text-align:right}
.po-reasons th .po-key{vertical-align:1px}
.po-reasons td{padding:7px 0;border-bottom:1px solid var(--line2);vertical-align:middle}
.po-reasons td+td,.po-reasons th+th{padding-left:10px}
.po-reasons tbody tr:last-child td{border-bottom:0}
.po-reasons tr.po-reason-later td{border-top:1px solid var(--line)}
.po-reasons tr.po-reason-later .po-reason-name{color:var(--ink2)}
.po-reason-name{line-height:1.35;overflow-wrap:anywhere}
.po-rbar{display:block;height:8px;border-radius:99px;background:var(--mut-bg);overflow:hidden}
.po-rbar>span{display:flex;gap:2px;height:100%;border-radius:99px;overflow:hidden}
.po-rbar i{display:block;height:100%;min-width:2px;flex-basis:0}
.po-rb-valid{background:var(--s-valid)}
.po-rb-avoid{background:var(--s-avoid)}
.po-rules-link{margin:8px 0 0 -10px}
.po-foot{font-size:12px;color:var(--ink3);margin:16px 2px 0}
.po-zero{color:var(--ink3);font-weight:500}

/* ---------- agents list: filters ---------- */
.po-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
.po-search{width:220px}
.po-search input{-webkit-appearance:none;appearance:none}
.po-fsel{display:block;min-width:0}
.po-fsel select{height:34px;max-width:220px;padding:0 24px 0 10px;border-radius:10px;cursor:pointer}
.po-fsel select#pa-lead{max-width:280px}
.po-fsel select.is-set{border-color:color-mix(in srgb,var(--brand) 50%,transparent);background-color:color-mix(in srgb,var(--brand) 9%,var(--solid));font-weight:600}
/* people, team lead, standing and the two switches sit in the row; on phones they fold behind "Filters (n)" */
.po-fmore{display:contents}
.po-ftoggle{display:none}
.po-ftoggle.is-set{border-color:color-mix(in srgb,var(--brand) 50%,transparent);background:color-mix(in srgb,var(--brand) 9%,var(--solid));color:var(--ink)}
.po-ftoggle svg{width:14px;height:14px}
.po-sort-m{display:none}
.po-inactive{margin-left:4px;color:var(--ink2);cursor:pointer}
.po-quick-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.po-count{font-size:12px;color:var(--ink2);background:var(--mut-bg);border-radius:99px;padding:4px 10px;margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.po-csv[disabled]{color:var(--ink3);cursor:default}
.po-empty-act{margin-top:10px}
/* the day-by-day view has no sortable headers, so the sort menu shows at every width */
.po-filters.po-days-on .po-sort-m{display:block}
/* only reviewers shown: one line where Top / Bottom 10 would be */
.po-rnote{flex:1 1 240px;min-width:0;font-size:12.5px;color:var(--ink2)}
/* the "People" picker (.perf-rpick, app.css) sized and tinted like the selects next to it */
.po-fpeople .perf-rpick-btn{height:34px;border-radius:10px;background:var(--solid)}
.po-fpeople .perf-rpick-btn.is-set{border-color:color-mix(in srgb,var(--brand) 50%,transparent);background:color-mix(in srgb,var(--brand) 9%,var(--solid))}
/* agents and reviewers together: a section each, under a small heading */
.po-sec+.po-sec{margin-top:18px}
.po-sec-h{display:flex;align-items:baseline;gap:6px;margin:0 2px 8px;font-size:13px;font-weight:650;color:var(--ink)}
.po-sec-n{font-weight:500;color:var(--ink2);font-variant-numeric:tabular-nums}
.po-sec-note{margin:0;padding:12px 14px;font-size:12.5px;color:var(--ink2);border:1px dashed var(--line);border-radius:var(--radius)}
/* phones: the picker is the first control in "Filters (n)", full width; its list never wider than the screen */
@media (max-width:760px){
  .po-filters .po-fpeople{flex:1 1 100%}
  .po-fpeople .perf-rpick{display:block}
  .po-fpeople .perf-rpick-btn{width:100%}
  .po-fpeople .perf-rpick-v{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:left}
}
@media (max-width:560px){
  .po-fpeople .perf-rpick-pop{left:0;right:0;width:auto}
}

/* ---------- agents list: table ---------- */
.po-tbl th{white-space:normal;vertical-align:bottom;line-height:1.35}
.po-tbl th.po-r{text-align:right}
.po-tbl th.po-r .th-sort{justify-content:flex-end;text-align:right}
.po-tbl td,.po-tbl th{padding:10px 8px}
.po-tbl td:first-child,.po-tbl th:first-child{padding-left:14px}
.po-tbl td:last-child,.po-tbl th:last-child{padding-right:14px}
.po-r{text-align:right;white-space:nowrap}
.po-c-agent{min-width:170px}
.po-name{white-space:nowrap}
.po-subrow{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:3px}
.po-lead{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:130px}
.po-strong{font-weight:650}
.po-c-pct{min-width:116px}
.po-c-today b{font-weight:600}
.po-of{color:var(--ink3);font-size:12px}
.po-off .po-name{color:var(--ink2)}
.po-tbl tbody tr.rowlink:focus-visible td:first-child{box-shadow:inset 3px 0 0 var(--brand)}
.po-tbl tfoot td{border-top:1px solid var(--line);border-bottom:0;background:var(--mut-bg);font-weight:600}
.po-tbl tfoot .cell-sub{font-weight:500}

/* ---------- agents list: phone cards ---------- */
.po-cards{display:none;list-style:none;margin:0;padding:0;gap:10px}
.po-card{display:flex;flex-direction:column;gap:6px;width:100%;text-align:left;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);color:var(--ink);font:inherit;cursor:pointer;transition:border-color .15s,background-color .15s}
.po-card:hover{border-color:color-mix(in srgb,var(--brand) 35%,var(--line));background:var(--brand-tint)}
.po-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.po-card-name{font-weight:650;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.po-card-sub{font-size:12px;color:var(--ink2);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.po-card-today{color:var(--ink)}
.po-card-stats{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px}
.po-card-k{color:var(--ink3);font-size:12px}
.po-card-total{margin-left:auto}
.po-card-total b{font-weight:600}
.po-card-inc{margin-left:auto;font-weight:600;color:var(--mint-ink)}
.po-card-total+.po-card-inc{margin-left:0}
.po-card-inc.is-zero{color:var(--ink3);font-weight:500}
.po-card-sla b{font-weight:600;color:var(--ink)}
/* a month under the incentive's SLA minimum (Agents list cell and card) */
.po-inc-gate{color:var(--crit-ink);font-weight:500}
.po-cards .empty{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}

/* ---------- agents list: day by day (one column per day, a sticky name column; scrolls sideways in its card) ---------- */
/* positioned, so the cells' sr-only labels stay inside the scroller instead of widening the page */
.po-dg-scroll{position:relative;overscroll-behavior-x:contain}
.po-dg-scroll:focus{outline:none}
.po-dg-scroll:focus-visible{outline:2px solid var(--brand);outline-offset:-2px;border-radius:var(--radius)}
.tbl.po-dg{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}
.po-dg th,.po-dg td{padding:4px 2px;text-align:center}
.po-dg thead th{vertical-align:bottom;padding-top:8px;padding-bottom:6px;letter-spacing:.04em}
.po-dg-h span{display:block;line-height:1.35}
.po-dg-mo{min-height:1.35em;color:var(--ink2)}
.po-dg-dn{font-size:11.5px;color:var(--ink2)}
.po-dg-today .po-dg-wd,.po-dg-today .po-dg-dn{color:var(--brand)}
.po-dg-today .po-dg-dn{font-weight:700}
/* a faint line before each Monday, so weeks read as blocks */
.po-dg .po-dg-mon{box-shadow:inset 1px 0 0 var(--line2)}
.po-dg .po-dg-name{position:sticky;left:0;z-index:1;padding:8px 12px 8px 14px;text-align:left;background:var(--solid);box-shadow:inset -1px 0 0 var(--line2)}
.po-dg thead .po-dg-name{z-index:2}
.po-dg .po-dg-name>div{max-width:210px}
.po-dg .po-name{overflow:hidden;text-overflow:ellipsis}
.po-dg-tt{font-size:12px;color:var(--ink2);white-space:nowrap}
.po-dg-tt b{color:var(--ink);font-weight:600}
.po-dg-c{min-width:38px}
.po-dg-v{display:inline-block;min-width:32px;height:24px;line-height:24px;padding:0 4px;border-radius:6px;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}
.po-dg-good{background:var(--good-bg);color:var(--good-ink)}
.po-dg-info{background:var(--info-bg);color:var(--info-ink)}
.po-dg-warn{background:var(--warn-bg);color:var(--warn-ink)}
.po-dg-plain{background:var(--mut-bg)}
/* today is still in progress: outlined, never judged */
.po-dg-now{color:var(--ink2);outline:1px dashed var(--ink3);outline-offset:-1px}
.po-dg-sum{font-weight:650}
/* leave (PerfLeave): a day off is a hatched label; a day worked anyway gets a dotted underline */
.po-dg-off{font-size:11px;font-weight:600;color:var(--ink2);background:repeating-linear-gradient(135deg,var(--mut-bg) 0 4px,transparent 4px 8px);box-shadow:inset 0 0 0 1px var(--line2)}
.po-dg-offk{background:repeating-linear-gradient(135deg,var(--ink4) 0 2px,transparent 2px 4px);box-shadow:inset 0 0 0 1px var(--line2)}
.po-dg-lvd{text-decoration:underline dotted var(--ink3);text-underline-offset:3px}
.po-lv-tag{background:var(--mut-bg);color:var(--ink2)}
.po-tr-off{font-size:13px;font-weight:600;color:var(--ink2)}
.po-dg .po-dg-end{padding:4px 14px 4px 12px;text-align:right;white-space:nowrap;box-shadow:inset 1px 0 0 var(--line2)}
.po-dg tbody tr.rowlink:hover td.po-dg-name,.po-dg tbody tr.rowlink:focus-visible td.po-dg-name{background:linear-gradient(var(--brand-tint),var(--brand-tint)),var(--solid)}
.po-dg tbody tr.rowlink:focus-visible td.po-dg-name{box-shadow:inset 3px 0 0 var(--brand),inset -1px 0 0 var(--line2)}
.po-dg tfoot td{border-top:1px solid var(--line);border-bottom:0;background:var(--mut-bg)}
.po-dg tfoot td.po-dg-name{background:linear-gradient(var(--mut-bg),var(--mut-bg)),var(--solid)}
.po-dg tfoot .cell-sub{font-weight:500}
.po-dg-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:10px 2px 0;font-size:12px;color:var(--ink2)}
.po-dg-key{display:inline-block;width:14px;height:10px;margin-right:6px;border-radius:3px;vertical-align:-1px}
.po-dg-more{color:var(--ink3)}

/* ---------- responsive ---------- */
@media (min-width:1280px){
  .po-tbl th{white-space:nowrap}
}
/* "Valid escalations" and "Valid escalation rate" may take two lines at any width */
.po-tbl th.po-th-wrap{white-space:normal}
/* the raw Confirmed / Valid escalations / Avoidable counts fold away so the table fits (Total and the
   valid escalation rate stay); with more columns (the reviewers' review columns: .po-tbl-inc, a name kept from when
   the agents' table had an Incentive column, removed 18 Nov 2026) they need a little more room to come back */
@media (max-width:1439px){
  .po-tbl .po-c-raw{display:none}
}
@media (max-width:1519px){
  .po-tbl.po-tbl-inc .po-c-raw{display:none}
}
/* just above that, every column shows: a little less padding keeps the Today column in */
@media (min-width:1440px) and (max-width:1599px){
  .po-tbl td,.po-tbl th{padding-left:6px;padding-right:6px}
}
@media (max-width:1240px){
  .po-charts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .po-charts>:first-child{grid-column:1/-1}
}
@media (max-width:900px){
  .tiles.po-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .po-tiles>:last-child:nth-child(odd){grid-column:1/-1}
}
@media (max-width:760px){
  .po-charts{grid-template-columns:minmax(0,1fr)}
  .po-tbl-wrap{display:none}
  .po-cards{display:grid}
  .po-sort-m{display:block}
  .po-search{width:100%}
  .po-fsel{flex:1 1 calc(50% - 8px)}
  .po-fsel select{width:100%;max-width:none}
}
@media (max-width:560px){
  .po-ftoggle{display:inline-flex}
  .po-fmore{display:none}
  .po-fmore.open{display:flex;flex-wrap:wrap;gap:8px;width:100%;padding:10px;border:1px solid var(--line2);border-radius:12px;background:var(--mut-bg)}
  .po-fmore .po-inactive{margin-left:2px}
  .po-quick-row{gap:8px}
  .po-quick-row .seg button{padding:0 9px}
  .po-count{padding:4px 8px}
  .po-csv-l{display:none}
  .po-csv{padding:0 6px}
  .po-dg .po-dg-name{padding-left:12px;padding-right:8px}
  .po-dg .po-dg-name>div{max-width:132px}
  .tiles.po-tiles{gap:10px}
  .po-tile{padding:12px 13px}
  .po-tile .t-num{font-size:21px}
  .po-tile .t-label{font-size:12px}
  .po-rank{grid-template-columns:16px minmax(0,1fr) auto;gap:8px}
  .po-av{display:none}
  .po-tr{grid-template-columns:minmax(0,1fr) 54px 64px;gap:8px}
  .po-tr-chip{grid-column:1/-1;text-align:left;margin-top:-4px}
  .po-reasons .po-reason-barc{display:none}
  .po-reasons th:first-child{width:auto}
  .po-reasons th:nth-child(3){width:92px}
  .po-reasons th:nth-child(4){width:84px}
}
@media (prefers-reduced-motion:reduce){
  .po-body{transition:none}
}

/* ---------- Overview: chart range + sizes ---------- */
/* "Charts ▾" (.perf-rpick, app.css) and the chart range above the charts; the range is a select at ≤560px */
.po-trend-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:2px 0 10px}
.po-trend-sel{display:none}
/* a new range loading: the charts on screen stay, dimmed; loading and errors span the row */
.po-charts{transition:opacity .2s}
.po-charts.is-loading{opacity:.55}
.po-trend-note{grid-column:1/-1}
.po-trend-retry{margin-top:10px}
/* legend toggles: click a series to hide or show it; the last one on can't be switched off */
.po-lg-set{display:contents}
.po-lg{display:inline-flex;align-items:center;border:0;background:none;margin:-3px -6px;padding:3px 6px;border-radius:7px;font:inherit;color:var(--ink2);cursor:pointer;transition:background .15s,color .15s}
.po-lg:hover{background:var(--mut-bg);color:var(--ink)}
.po-lg:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.po-lg.is-off{color:var(--ink3);text-decoration:line-through}
.po-lg.is-off i{opacity:.3}
.po-lg[aria-disabled="true"]{cursor:default}
.po-lg[aria-disabled="true"]:hover{background:none;color:var(--ink2)}
@media (prefers-reduced-motion:reduce){.po-lg{transition:none}}
/* Full width on one chart: it takes a row and the other two share the next, whichever was widened */
.po-charts:has(>.cs-wide){grid-auto-flow:row dense}
@media (min-width:1241px){.po-charts:has(>.cs-wide){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:1240px){.po-charts:has(>.cs-wide)>:first-child:not(.cs-wide){grid-column:auto}}
/* how many charts are picked (data-n): one fills the row, two or four go two to a row */
.po-charts[data-n="1"]{grid-template-columns:minmax(0,1fr)}
.po-charts[data-n="2"],.po-charts[data-n="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:1240px){.po-charts[data-n="2"]>:first-child,.po-charts[data-n="4"]>:first-child{grid-column:auto}}
@media (max-width:760px){.po-charts[data-n]{grid-template-columns:minmax(0,1fr)}}
/* a long daily range: one chart per row, so the bars stay readable (Full width has nothing to add there) */
.po-charts.po-charts-rows,.po-charts.po-charts-rows[data-n]{grid-template-columns:minmax(0,1fr)}
.po-charts-rows .cs-wide-btn{display:none}
/* today, or a week / month the range cuts short, is drawn lighter; the period's own days are lightly shaded */
.ch-bar.po-part{fill-opacity:.5}
.ch-band.po-band-p{fill:color-mix(in srgb,var(--brand) 5%,transparent)}
.ch-band.po-band-p.on{fill:var(--brand-tint)}
@media (max-width:560px){
  .po-trend-seg{display:none}
  .po-trend-sel{display:inline-block}
}
@media (prefers-reduced-motion:reduce){
  .po-charts{transition:none}
}

/* the call attempts on their way (they are read apart, so the other charts don't wait): the chart's place, kept */
.po-ch-wait{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:210px;padding:0 16px;color:var(--ink3);font-size:13px;text-align:center}
/* a share's base in the tooltip ("88% of 400") */
#tip .po-tt-of{font-weight:400;color:var(--ink2)}
/* "Try again" on the attempts tile */
.po-att-retry{font-size:inherit}

/* ---------- Overview: SLA met a line per client (2–6 picked), each its own series colour ---------- */
.po-f-c1{fill:var(--sky)}.po-s-c1{stroke:var(--sky)}.po-sw-c1{background:var(--sky)}
.po-f-c2{fill:var(--pink)}.po-s-c2{stroke:var(--pink)}.po-sw-c2{background:var(--pink)}
.po-f-c3{fill:var(--mint)}.po-s-c3{stroke:var(--mint)}.po-sw-c3{background:var(--mint)}
.po-f-c4{fill:var(--amber)}.po-s-c4{stroke:var(--amber)}.po-sw-c4{background:var(--amber)}
.po-f-c5{fill:var(--brand)}.po-s-c5{stroke:var(--brand)}.po-sw-c5{background:var(--brand)}
.po-f-c6{fill:var(--coral)}.po-s-c6{stroke:var(--coral)}.po-sw-c6{background:var(--coral)}

/* ---------- Overview: "Clients ▾" (roles that see everyone) ---------- */
/* the button, then (with clients picked) one line on what follows them; the list is a popover under the button */
.po-cl-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:-6px 0 14px}
.po-cl-bar[hidden]{display:none}
.po-cl{position:relative;min-width:0}
.po-cl-btn{display:inline-flex;align-items:center;gap:7px;height:34px;max-width:280px;padding:0 10px 0 11px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink2);font:inherit;font-size:13px;font-weight:550;white-space:nowrap;cursor:pointer;transition:border-color .15s,background-color .15s,color .15s,box-shadow .15s}
.po-cl-btn>svg:first-child{width:15px;height:15px;flex:none}
.po-cl-l{min-width:0;overflow:hidden;text-overflow:ellipsis}
.po-cl-btn:hover{color:var(--ink);border-color:color-mix(in srgb,var(--brand) 35%,var(--line))}
.po-cl-btn.is-set{color:var(--ink);font-weight:600;border-color:color-mix(in srgb,var(--brand) 50%,transparent);background:color-mix(in srgb,var(--brand) 9%,var(--solid))}
.po-cl-btn[aria-expanded="true"]{border-color:color-mix(in srgb,var(--brand) 55%,transparent);box-shadow:0 0 0 3px var(--brand-tint)}
.po-cl-btn:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.po-cl-caret{width:12px;height:12px;flex:none;color:var(--ink3);transition:transform .2s var(--ease)}
.po-cl-btn[aria-expanded="true"] .po-cl-caret{transform:rotate(180deg)}
.po-cl-scope{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;flex:1 1 320px;min-width:0;margin:0;font-size:12.5px;color:var(--ink2)}
.po-cl-scope[hidden]{display:none}
/* the names picked: wraps onto more lines rather than cutting a name off */
.po-cl-chip{display:inline-block;max-width:100%;height:auto;padding:3px 8px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.po-cl-pop{position:absolute;top:calc(100% + 6px);left:0;z-index:50;display:flex;flex-direction:column;width:320px;max-width:calc(100vw - 32px);padding:8px;background:var(--solid);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg);animation:pop .16s var(--ease)}
.po-cl-pop[hidden]{display:none}
.po-cl-pop.po-cl-pop-r{left:auto;right:0}
.po-cl-pop:focus{outline:none}
.po-cl-q{width:100%;height:32px;flex:none;border:1px solid var(--line);border-radius:8px;padding:0 10px;font:inherit;font-size:13px;background:var(--solid);color:var(--ink)}
.po-cl-q:focus{outline:none;border-color:color-mix(in srgb,var(--brand) 60%,transparent);box-shadow:0 0 0 3px var(--brand-tint)}
.po-cl-cap{display:flex;justify-content:space-between;gap:8px;margin:8px 8px 0;font:600 10px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink3)}
.po-cl-opts{max-height:300px;overflow-y:auto;overscroll-behavior:contain;margin:4px -4px 0;padding:4px 4px 0;border-top:1px solid var(--line2)}
.po-cl-opt{display:flex;align-items:center;gap:9px;padding:6px 8px;border-radius:8px;font-size:13px;color:var(--ink);cursor:pointer}
.po-cl-opt[hidden]{display:none}
.po-cl-opt:hover{background:var(--brand-tint)}
.po-cl-opt:focus-within{background:var(--brand-tint)}
.po-cl-opt input{flex:none;width:15px;height:15px;margin:0;accent-color:var(--brand)}
.po-cl-opt input:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.po-cl-ol{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.po-cl-none{color:var(--ink2);font-style:italic}
.po-cl-on{flex:none;color:var(--ink3);font-size:11.5px;font-variant-numeric:tabular-nums}
.po-cl-all{flex:none;margin-top:2px;font-weight:600}
.po-cl-hint{margin:6px 4px;font-size:12.5px;color:var(--ink3)}
.po-cl-empty{padding:10px 8px;color:var(--ink3);font-size:12.5px}
.po-cl-empty[hidden]{display:none}
.po-cl-foot{display:flex;justify-content:space-between;gap:8px;flex:none;margin-top:6px;padding-top:8px;border-top:1px solid var(--line2)}
/* phones: the button takes the row and the list opens as a sheet at the bottom of the screen */
@media (max-width:560px){
  .po-cl{flex:1 1 100%}
  .po-cl-btn{width:100%;max-width:none}
  .po-cl-l{flex:1;text-align:left}
  .po-cl-scope{flex-basis:100%}
  .po-cl-pop,.po-cl-pop.po-cl-pop-r{position:fixed;left:16px;right:16px;top:auto;bottom:max(16px,env(safe-area-inset-bottom,0px));z-index:80;width:auto;max-width:none;max-height:72vh}
  .po-cl-opts{max-height:none;flex:1;min-height:0}
}
@media (prefers-reduced-motion:reduce){
  .po-cl-btn,.po-cl-caret{transition:none}
  .po-cl-pop{animation:none}
}

/* ---------- Overview with clients picked: the agent cards and reasons fill in after the read (paintClientCards) ---------- */
/* the card's place while it loads, about the height of a short list, so the page doesn't jump much when it fills */
.po-cl-wait{display:grid;place-items:center;min-height:140px}
/* a failed read: what went wrong, and Try again */
.po-cl-fail{display:flex;flex-direction:column;align-items:center;gap:10px}
/* Try again moves focus to the card's heading, which isn't a control: no ring, as on Capacity planning */
.po-cl-card h3[tabindex="-1"]:focus{outline:none}
/* the count on the right of each agent (counted, or avoidable) */
.po-rank-v{font-size:15px;font-weight:650;color:var(--ink);font-variant-numeric:tabular-nums}
/* the reasons card alone on a full-width row: the reason column narrower, so the bars get the room */
@media (min-width:561px){.po-solo .po-reasons th:first-child{width:32%}}
