/* Reconfirmation performance: shifts, reviews, bookings assigned and Zeal Desk tickets on the agent page (views-perf-agent.js), and the
   "Change shift" dialog (PerfShiftUI, prefix sh-). Design tokens only (no literal colours). The shift chip itself is
   .perf-shift-chip (s-perf-people.css); the dialog frame is .cmodal (app.css). */

/* ---------- agent page: the name row (name, shift chip, Change shift) ---------- */
.pp-nmrow{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-width:0}
.pp-nmrow h2{min-width:0;overflow-wrap:anywhere}
.pp-shift-btn{height:26px;padding:0 10px;gap:6px}
.pp-shift-btn svg{width:14px;height:14px}
/* the header row wraps, so the hours stay visible on phones (other screens hide them below 560px) */
@media (max-width:560px){.pp-nmrow .perf-shift-chip .perf-shift-hrs{display:inline}}

/* reviews (a reviewer's chart) and Zeal Desk tickets (stacked on an agent's counted bars) */
.tile.pp-t-tick{--tile-accent:var(--sky)}
.pp-ch-rev{fill:var(--aqua)}
.pp-ch-tick{fill:var(--sky)}
.pp-ch-revpart{fill:color-mix(in srgb,var(--aqua) 18%,transparent);stroke:var(--aqua);stroke-width:1.5;stroke-dasharray:3 2}
.pp-sw-rev,.legend i.pp-sw-rev{background:var(--aqua)}
.pp-sw-tick,.legend i.pp-sw-tick{background:var(--sky)}
.legend i.pp-key-revpart{background:color-mix(in srgb,var(--aqua) 18%,transparent);box-shadow:inset 0 0 0 1.5px var(--aqua)}
/* bookings assigned to them (and excluded): a quieter tint of the count's colour */
.tile.pp-t-asg{--tile-accent:var(--brand-mid)}
/* a reviewer's reviews by queue: its own line right under the Reviews figure */
.pp-tiles .t-sub .pp-rev-split{flex-basis:100%;color:var(--ink2)}
.pp-rev-split .num{color:var(--ink);font-weight:600}
.pp-rev-of{color:var(--ink3)}
/* Day by day: a reviewer's own reconfirmations under their target on a finished day */
.pp-dbd-tbl .pp-dbd-below b,.pp-dbd-flag{color:var(--warn-ink)}
.pp-dbd-flag{margin-left:3px;font-size:11px;font-weight:700}
/* escalations: a reviewer's review beside the Counts? chip */
.pp-esc-chips{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px}
.pp-ec-top .pp-esc-chips{flex:none}
.pp-rev-chip{height:20px;font-size:11px}

/* ---------- the dialog ---------- */
.sh-modal{width:min(480px,100%)}
.sh-who{min-width:0;font-size:13px;color:var(--ink2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sh-set{border:0;margin:0 0 14px;padding:0;min-width:0}
.sh-lbl{display:block;padding:0;margin-bottom:6px;font-size:12px;font-weight:600;color:var(--ink2)}
.sh-opts{display:grid;gap:6px}
.sh-opt{display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--solid);cursor:pointer;transition:border-color .15s,background .15s}
.sh-opt:hover{border-color:color-mix(in srgb,var(--brand) 40%,transparent)}
.sh-opt:has(input:checked){border-color:var(--brand);background:var(--brand-tint)}
.sh-opt input,.sh-pill input{flex:none;margin:0;accent-color:var(--brand)}
.sh-opt-t{display:flex;flex-direction:column;flex:1;min-width:0}
.sh-opt-t b{font-size:13.5px;font-weight:600;color:var(--ink)}
.sh-opt-t span{font-size:12px;color:var(--ink2)}
.sh-opt .chip,.sh-list .chip{flex:none;height:20px;font-size:11px}
.sh-pills{display:flex;flex-wrap:wrap;gap:6px}
.sh-pill{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 12px;border:1px solid var(--line);border-radius:99px;background:var(--solid);font-size:13px;color:var(--ink);cursor:pointer;transition:border-color .15s,background .15s}
.sh-pill:hover{border-color:color-mix(in srgb,var(--brand) 40%,transparent)}
.sh-pill:has(input:checked){border-color:var(--brand);background:var(--brand-tint)}
.sh-date{margin-top:8px;max-width:200px}
.sh-date[hidden]{display:none}
.sh-note{margin:0 0 4px;font-size:12.5px;color:var(--ink2)}
.sh-hint{margin:0 0 12px;min-height:1.4em;font-size:12.5px;color:var(--ink)}
.sh-hist{padding-top:10px;border-top:1px solid var(--line2)}
.sh-list{list-style:none;margin:0;padding:0;display:grid;gap:4px;font-size:13px;color:var(--ink)}
.sh-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}
.sh-err{font-size:12.5px;color:var(--crit-ink)}
@media (prefers-reduced-motion:reduce){.sh-opt,.sh-pill{transition:none}}
@media (max-width:560px){
  .sh-date{max-width:none}
}
