/* Reconfirmation performance: the agent page (perf-agent, perf-me) and Teams. Tokens only (no literal colours).
   The person tags (.pp-tag "Month 2" / "1 day a week", .pp-chip-rev "Reviewer") are also used by the Overview. */

/* ---------- shared: header, loading, links (period, meters and tones are .perf-* in app.css) ---------- */
.pp-head{align-items:flex-end}
.pp-head>.vh-actions{margin-left:auto}
.pp-body{transition:opacity .2s}
.pp-loading{opacity:.55;pointer-events:none}
.pp-zero{color:var(--ink3)}
.pp-link{border:0;background:none;padding:0;font:inherit;font-weight:650;color:var(--ink);text-align:left;cursor:pointer;border-radius:5px;transition:color .15s}
.pp-link:hover{color:var(--brand);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.pp-link:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.pp-note{font-size:11.5px;color:var(--ink3);margin:12px 0 0}
.pp-kl{display:block;font-size:11px;font-weight:500;color:var(--ink3)}

/* avatars: one colour pair per kind of person */
.pp-avatar{width:44px;height:44px;border-radius:14px;flex:none;display:grid;place-items:center;font-size:14px;font-weight:650;letter-spacing:.02em;color:var(--on-accent);background:linear-gradient(135deg,var(--brand),var(--aqua));box-shadow:0 8px 20px -10px var(--brand-glow)}
.pp-avatar-sm{width:30px;height:30px;border-radius:10px;font-size:11px;box-shadow:none}
.pp-av-trainee{background:linear-gradient(135deg,var(--amber),var(--pink))}
.pp-av-full{background:linear-gradient(135deg,var(--sky),var(--aqua))}
.pp-av-consultant{background:linear-gradient(135deg,var(--mint),var(--sky))}
.pp-av-lead{background:linear-gradient(135deg,var(--brand),var(--aqua))}
.pp-av-senior{background:linear-gradient(135deg,var(--pink),var(--brand))}

/* person tags: "Month 2" and "1 day a week" are outlined (facts, not a standing), drawn like the Agents list's
   .po-tag; "Reviewer" has its own tint */
.chip.pp-tag{background:transparent;color:var(--ink2);box-shadow:inset 0 0 0 1px var(--line)}
.chip.pp-chip-rev{background:color-mix(in srgb,var(--aqua) 13%,transparent);color:var(--aqua-ink)}

/* KPI tiles: a coloured dot per tile, like the onboarding Overview */
.tiles.pp-tiles{grid-template-columns:repeat(auto-fit,minmax(168px,1fr))}
.pp-tiles .t-label{display:flex;align-items:center;gap:7px}
.pp-tiles .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)}
.pp-tiles .t-sub{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px}
.pp-tiles .t-sub .chip{height:20px;font-size:11px}
.tile.pp-t-count,.tile.pp-t-atbar{--tile-accent:var(--brand)}
.tile.pp-t-inc{--tile-accent:var(--amber)}
.tile.pp-t-valid{--tile-accent:var(--s-valid)}
.tile.pp-t-sla{--tile-accent:var(--good)}
.tile.pp-t-conf{--tile-accent:var(--s-agents)}
.tile.pp-t-esc{--tile-accent:var(--pink)}
.tile.pp-t-rev{--tile-accent:var(--aqua)}
.tile.pp-t-teams{--tile-accent:var(--ink3)}
.tile.pp-t-below{--tile-accent:var(--warn)}
.tile.pp-t-below.is-alert{--tile-accent:var(--crit)}
/* Teams "Below the bar now": the number stays ink; only the alert sub-line is red */
.pp-tiles .pp-sub-crit{color:var(--crit-ink);font-weight:600}
/* the Incentive tile's "₹1,335 at risk" (a minimum not applied yet that the month is under) */
.pp-tiles .pp-sub-warn{color:var(--warn-ink);font-weight:600}
.pp-of{font-size:14px;font-weight:550;letter-spacing:-.01em;color:var(--ink3)}
/* the alert number: --crit-ink keeps AA when the tile shrinks below large-text size */
.pp-tiles .tile.t-crit .t-num{color:var(--crit-ink)}

/* at a glance: today so far (in progress: not in the averages yet), yesterday, this month */
.pp-glance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:0 0 12px;background:var(--line2);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.pp-gl{display:flex;flex-direction:column;gap:3px;padding:10px 14px;background:var(--raise);min-width:0}
.pp-gl-k{display:flex;align-items:center;gap:7px;font-size:11.5px;font-weight:600;color:var(--ink2)}
.pp-gl-v{font-size:13px;color:var(--ink2)}
.pp-gl-v>b{font-size:19px;font-weight:650;letter-spacing:-.02em;color:var(--ink)}
.pp-gl-of{color:var(--ink2)}
.pp-gl-of .num{color:var(--ink);font-weight:600}
.pp-gl-none{color:var(--ink3);font-size:14px;font-weight:550}
.pp-gl-s{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;font-size:12px;color:var(--ink2);min-height:20px}
.pp-gl-s .chip{height:20px;font-size:11px}
.pp-gl-s .perf-pct{font-size:12.5px}
.pp-today-dot{width:8px;height:8px;border-radius:99px;flex:none;background:var(--s-agents);box-shadow:0 0 0 4px var(--brand-tint)}
@media (prefers-reduced-motion:no-preference){.pp-today-dot{animation:ppPulse 2.4s ease-in-out infinite}}
@keyframes ppPulse{50%{box-shadow:0 0 0 7px transparent}}
/* the page of someone who doesn't do reconfirmations: one line saying why there is no target */
.pp-wnote{margin:0 0 12px;font-size:13px;color:var(--ink2)}

/* ---------- agent page ---------- */
.pp-back{margin:-8px 0 10px -10px;gap:4px}
.pp-back svg{width:14px;height:14px}
.pp-who{min-width:0}
.pp-ph{color:var(--ink3)}
.pp-name{display:flex;align-items:center;gap:12px;margin-top:4px}
.pp-nm{display:flex;flex-direction:column;gap:6px;min-width:0}
.pp-name h2{margin:0}
.pp-tagrow{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px}
.pp-tagtext{font-size:12.5px;color:var(--ink2)}
.pp-tagtext b{color:var(--ink);font-weight:650}
.pp-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;margin-top:10px;font-size:13px;color:var(--ink2)}
.pp-meta>*+*::before{content:"·";margin:0 9px;color:var(--ink4)}
.pp-meta b,.pp-meta .pp-link{color:var(--ink);font-weight:600}
.pp-ten{color:var(--warn-ink);font-weight:600}
.pp-arrow{margin:0 7px;color:var(--ink3)}

/* daily chart: series colours are the shared --s-* tokens (app.css); incentive is amber everywhere */
.pp-legend{margin:2px 0 0;gap:12px 16px}
.legend i.pp-key-bar{width:16px;height:3px;border-radius:2px;background:var(--s-bar);vertical-align:3px}
.legend i.pp-key-inc{width:16px;height:0;border-radius:0;background:none;border-top:2px dashed var(--amber);vertical-align:3px}
.legend i.pp-key-part{background:color-mix(in srgb,var(--s-agents) 18%,transparent);box-shadow:inset 0 0 0 1.5px var(--s-agents)}
.pp-sw-conf,.legend i.pp-sw-conf{background:var(--s-agents)}
.pp-sw-valid,.legend i.pp-sw-valid{background:var(--s-valid)}
.pp-sw-avoid{background:var(--s-avoid)}
.pp-sw-bar{background:var(--s-bar)}
.pp-sw-inc{background:var(--amber)}
.pp-ch-conf,.pp-ch-hour{fill:var(--s-agents)}
.pp-ch-valid{fill:var(--s-valid)}
.pp-ch-avoid{fill:var(--s-avoid)}
.legend i.pp-sw-avoid{background:var(--s-avoid)}
.pp-ch-part{fill:color-mix(in srgb,var(--s-agents) 18%,transparent);stroke:var(--s-agents);stroke-width:1.5;stroke-dasharray:3 2}
.pp-ch-bar{fill:none;stroke:var(--s-bar);stroke-width:2;stroke-linejoin:round;stroke-linecap:round;pointer-events:none}
/* a day off marked on Leave: a shaded column behind the bars (half a day: lighter) */
.pp-ch-leave{fill:var(--mut-bg);stroke:var(--line2);stroke-dasharray:3 3;pointer-events:none}
.pp-ch-leave.is-half{fill-opacity:.5}
.legend i.pp-key-leave{background:var(--mut-bg);box-shadow:inset 0 0 0 1px var(--line2)}
.pp-dbd-off td{color:var(--ink2)}
.pp-leave-btn{height:26px;padding:0 10px;gap:6px}
.pp-leave-btn svg{width:14px;height:14px}
.pp-ch-inc{stroke:var(--amber);stroke-width:1.25;stroke-dasharray:4 4;pointer-events:none}
/* the base heights, until the first draw: ChartSize then sets each chart's own min-height inline (smaller or larger) */
.pp-daily{min-height:250px}
/* "Day by day": the chart's numbers as a table */
.pp-dbd{margin-top:8px;border-top:1px solid var(--line2);padding-top:6px}
.pp-dbd-btn{display:inline-flex;align-items:center;gap:7px;border:0;background:none;padding:6px 8px;margin-left:-8px;border-radius:8px;font:600 13px var(--font);color:var(--ink);cursor:pointer}
.pp-dbd-btn:hover{background:var(--brand-tint)}
.pp-dbd-btn:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.pp-dbd-btn .faint{font-weight:500;font-size:12px}
.pp-dbd-btn[aria-expanded="false"] .pp-chev{transform:rotate(-90deg)}
.pp-dbd-body{margin-top:4px}
.pp-dbd-tbl th{background:none}
.pp-dbd-tbl td{padding-top:7px;padding-bottom:7px}
.pp-dbd-tbl .pp-r{text-align:right}
.pp-dbd-tbl td .cell-sub{display:inline;margin-left:6px}
.pp-dbd-tbl b{font-weight:650}
.pp-hours{min-height:150px} /* base height until the first draw, as .pp-daily */

/* training months */
.pp-train{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.pp-month{display:flex;flex-direction:column;gap:10px;border:1px solid var(--line2);border-radius:12px;padding:13px 14px;background:var(--raise)}
.pp-month.is-now{border-color:color-mix(in srgb,var(--brand) 40%,transparent);box-shadow:0 0 0 3px var(--brand-tint)}
.pp-month-h{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.pp-month-t{font-weight:650}
.pp-month-d{font-size:12px;color:var(--ink3);font-variant-numeric:tabular-nums}
.pp-month-n{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pp-month-n b{display:block;font-size:20px;font-weight:650;letter-spacing:-.02em}
.pp-month-s{font-size:12px;color:var(--ink2)}
.pp-track{display:block;height:8px;border-radius:99px;background:var(--mut-bg);overflow:hidden}
.pp-track i{display:block;height:100%;border-radius:99px;background:var(--tone)}

/* confirmations by method + hour */
.pp-subh{font:600 10.5px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink3);margin:4px 0 10px}
.pp-methods{display:grid;gap:9px}
.pp-mrow{display:grid;grid-template-columns:minmax(104px,1.1fr) minmax(40px,2fr) 46px 36px;gap:10px;align-items:center;font-size:13px}
.pp-mrow>b,.pp-mrow>span:last-child{text-align:right}
.pp-mname{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pp-mbar{display:block;height:8px;border-radius:99px;background:var(--mut-bg);overflow:hidden}
.pp-mbar i{display:block;height:100%;border-radius:99px;background:var(--s-agents)}
/* the card on its own row (incentive hidden): method and hour side by side */
.pp-conf-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:16px 32px;align-items:start}
/* beside the Incentive card: hour under method, side by side again once the card is full width or full screen */
.pp-conf-split.pp-conf-stack{grid-template-columns:minmax(0,1fr)}
@media (min-width:901px){
  .cs-wide .pp-conf-split.pp-conf-stack,.cs-max .pp-conf-split.pp-conf-stack{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}
}

/* incentive */
.pp-inc-total{text-align:right;line-height:1.15}
.pp-inc-total b{display:block;font-size:22px;font-weight:650;letter-spacing:-.02em;color:var(--ink)}
.pp-inc-total b .pp-zero{color:var(--ink3)}
.pp-inc-total>span{font-size:11.5px;color:var(--ink3)}
/* the SLA minimum: a red box when it took a month, a quiet line while the month is fine */
.pp-inc-gate{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin:0 0 8px;padding:8px 12px;border-radius:10px;background:var(--mut-bg);font-size:12.5px;color:var(--ink2)}
.pp-inc-gate-crit{background:var(--crit-bg);color:var(--crit-ink)}
.pp-inc-gate-crit b{font-weight:650}
.pp-inc-note{margin:0 0 8px;font-size:12.5px;color:var(--ink2)}
/* "How your incentive is worked out" (views-perf-agent.js howHtml): what they need to earn (a mark per row: tick, cross,
   ! at risk, – not applied), the days' working, a lead's members, an L2's leads, then own + shares = total. Below 640px
   each table row is a card */
.pp-how-sec{margin-top:14px}
.pp-how-h{margin:0 0 8px;font-size:12.5px;font-weight:650;color:var(--ink2)}
.pp-how-h .faint{font-weight:500}
.pp-how-mk{flex:none;display:inline-grid;place-items:center;width:18px;height:18px;border-radius:99px;font-size:11px;font-weight:700;line-height:1}
.pp-how-ok{background:var(--good-bg);color:var(--good-ink)}
.pp-how-no{background:var(--crit-bg);color:var(--crit-ink)}
.pp-how-na{background:var(--mut-bg);color:var(--ink3)}
.pp-how-warn{background:var(--warn-bg);color:var(--warn-ink)}
/* on one's own page the card sits right under the glance strip, with the tiles after it; its detail (day by day, a
   lead's team, an L2's leads) is folded under one line (.pp-how-more), so the summary comes first */
.pp-how-top{margin:0 0 12px}
.pp-how-more{margin-top:12px;padding-top:8px;border-top:1px solid var(--line2)}
.pp-how-more>summary{width:fit-content;cursor:pointer;font-size:13px;font-weight:600;color:var(--brand);border-radius:4px}
.pp-how-more>summary:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.pp-how-more[open]>summary{margin-bottom:2px}
/* "What you need to earn" (needsHtml, 22 Nov 2026), the card's first section: one row per thing that decides the
   incentive — mark, rule, figure, chip, then what to do. The chip keeps to the right while the row fits on one line */
.pp-needs{margin-top:4px}
.pp-needs-h{font-size:13.5px;color:var(--ink);border-radius:4px}
.pp-needs-h b{font-weight:650}
.pp-needs-h:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.pp-need-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.pp-need{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-top:1px solid var(--line2)}
.pp-need:first-child{border-top:0;padding-top:2px}
.pp-need .pp-how-mk{margin-top:1px}
.pp-need-b{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.pp-need-t{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:13px;color:var(--ink2)}
.pp-need-rule{font-weight:650;color:var(--ink)}
.pp-need-min{margin-left:4px;font-weight:500;color:var(--ink3)}
.pp-need-fig b{font-weight:650;color:var(--ink)}
.pp-need-t .chip{height:20px;font-size:11px;margin-left:auto}
.pp-need-do{font-size:13px;color:var(--ink)}
.pp-need-do b{font-weight:650}
.pp-need-sub{font-size:12px;color:var(--ink2)}
.pp-need-sub .num{color:var(--ink)}
@media (max-width:640px){
  .pp-need-t .chip{margin-left:0}
}
/* one's own page with no incentive card: the one line saying why, under the glance strip */
.pp-inc-note.pp-cant{margin:0 0 12px}
.pp-how-res{margin:0 0 4px;font-size:13px;color:var(--ink)}
.pp-how-res b{font-weight:650}
.pp-how-tbl th{background:none}
.pp-how-tbl td{padding-top:8px;padding-bottom:8px;vertical-align:top}
.pp-how-tbl .pp-r{text-align:right}
.pp-how-tbl b{font-weight:650}
.pp-how-tbl .cell-sub{display:block}
.pp-how-tbl td:first-child .cell-sub{display:inline;margin-left:6px}
.pp-how-tbl tfoot td{border-top:1px solid var(--line);font-weight:600}
/* a day in a month a minimum cut: the working stays readable (muted), the amount is struck through */
.pp-how-lost{color:var(--ink3)}
.pp-how-tbl s{color:var(--ink3)}
.pp-how-cut{display:block;font-size:11.5px;font-weight:600;color:var(--crit-ink);white-space:nowrap}
.pp-how-list .pp-how-cut{display:inline;margin-left:4px}
.pp-how-q{display:inline-block;margin-left:6px;padding:0 7px;border-radius:99px;font-size:11px;font-weight:600;line-height:18px;white-space:nowrap}
.pp-how-q.is-ok{background:var(--good-bg);color:var(--good-ink)}
.pp-how-q.is-no{background:var(--warn-bg);color:var(--warn-ink)}
.pp-how-list{list-style:none;margin:0 0 8px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));column-gap:24px}
.pp-how-list li{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:6px 0;border-bottom:1px solid var(--line2);font-size:13px;min-width:0}
.pp-how-list li>span{min-width:0}
.pp-how-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 18px;margin-top:14px;padding-top:10px;border-top:1px solid var(--line);font-size:13px;color:var(--ink2)}
.pp-how-foot b{color:var(--ink);font-weight:650}
@media (max-width:640px){
  .pp-how-scroll{overflow:visible}
  .pp-how-tbl thead{display:none}
  .pp-how-tbl,.pp-how-tbl tbody,.pp-how-tbl tfoot,.pp-how-tbl tr,.pp-how-tbl td{display:block;width:100%}
  .pp-how-tbl tbody[hidden]{display:none}
  .pp-how-tbl tr{padding:8px 0;border-bottom:1px solid var(--line2)}
  .pp-how-tbl td,.pp-how-tbl tfoot td{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:2px 12px;padding:2px 0;border:0;text-align:right}
  .pp-how-tbl td::before{content:attr(data-l);margin-right:auto;font-size:12px;color:var(--ink3);text-align:left}
  .pp-how-tbl td:first-child{justify-content:flex-start;text-align:left}
  .pp-how-tbl td:first-child::before{content:none}
  .pp-how-tbl td>*{text-align:right}
  .pp-how-tbl td .cell-sub{flex-basis:100%;margin-left:0}
  .pp-how-tbl td:first-child .cell-sub{flex-basis:auto;margin-left:6px}
}
/* the day-by-day table's incentive columns: how many earned (or the SLA month) under the amount */
.pp-dbd-tbl td .pp-dbd-incs{display:block;margin-left:0;white-space:nowrap}
.pp-dbd-tbl td .pp-dbd-gate{color:var(--warn-ink)}
.pp-more-btn{margin-top:8px}
/* an escalation against the booking's SLA deadline (perfOwnSla) */
.pp-sla{font-size:12.5px;font-weight:600;white-space:nowrap}
.pp-sla-ok{color:var(--good-ink)}
.pp-sla-late{color:var(--warn-ink)}
.pp-sla-na{color:var(--ink3);font-weight:500}

/* escalations */
.pp-esc .card-head{align-items:center}
.pp-ef button .num{margin-left:3px}
.pp-esc-tbl td{vertical-align:top}
.pp-esc-tbl th{background:none}
.pp-code{font-weight:600;color:var(--ink)}
.pp-esc-tbl .pp-wide{min-width:150px}
.pp-esc-tbl td:last-child{min-width:220px;max-width:340px}
.pp-verdict{max-width:200px;color:var(--brand)}
.pp-hint{max-width:220px}
.pp-remark{font-size:12.5px;color:var(--ink2);line-height:1.45}
.pp-remark:not(.open) .pp-remark-t{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pp-remark-btn{border:0;background:none;padding:0;margin-top:2px;font:600 12px var(--font);color:var(--brand);cursor:pointer;border-radius:4px}
.pp-remark-btn:hover{text-decoration:underline;text-underline-offset:3px}
.pp-esc-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 2px 0;font-size:12.5px}
.pp-esc-foot:empty{display:none}
/* phones: one compact card per escalation */
.pp-ecards{list-style:none;margin:0;padding:0}
.pp-ecard{display:grid;gap:3px;padding:11px 2px;border-bottom:1px solid var(--line2);font-size:13px;min-width:0}
.pp-ecard:last-child{border-bottom:0}
.pp-ecard:focus{outline:2px solid var(--brand);outline-offset:-2px;border-radius:8px}
.pp-ec-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pp-ec-when{min-width:0;font-size:12.5px;color:var(--ink2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pp-ec-sep{margin:0 6px;color:var(--ink4)}
.pp-ec-top .chip{flex:none}
.pp-ec-place{color:var(--ink2)}
.pp-ec-place b{font-weight:600;color:var(--ink)}
.pp-ec-reason{font-weight:500;color:var(--ink)}
.pp-ec-hint{font-size:12px;color:var(--ink3)}
.pp-ecard .pp-verdict{max-width:none;font-size:12px}
.pp-ecard .pp-remark{margin-top:2px}

/* perf-me without a linked agent */
.pp-unlinked{display:flex;align-items:flex-start;gap:16px;max-width:620px}
.pp-unlinked h3{margin:2px 0 4px}
.pp-unlinked .sub{margin-bottom:12px}
.pp-unlinked-ico{width:42px;height:42px;flex:none;border-radius:12px;display:grid;place-items:center;background:var(--brand-tint);color:var(--brand)}
.pp-unlinked-ico svg{width:20px;height:20px}

/* ---------- Teams ---------- */
.pp-group{margin-top:22px}
.pp-gcard{background:linear-gradient(115deg,color-mix(in srgb,var(--pink) 8%,var(--surface)),var(--surface) 60%)}
.pp-ghead{display:flex;align-items:center;flex-wrap:wrap;gap:12px 14px;margin-bottom:14px}
.pp-gwho{min-width:0;flex:1}
.pp-gwho .eyebrow{margin:0 0 2px}
.pp-gwho h3{margin:0;font-size:17px}
.pp-gwho h3 .chip{margin-left:8px;vertical-align:2px}
.pp-own{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px 8px;font-size:12.5px;color:var(--ink2);background:var(--mut-bg);border-radius:99px;padding:5px 12px}
.pp-own>b{color:var(--ink);font-weight:650}
.pp-own .faint{color:var(--ink2)}
.pp-ghead-plain h3{margin:0 0 4px 2px;font-size:15px}
.pp-stats{display:flex;flex-wrap:wrap;gap:1px;margin:0;background:var(--line2);border:1px solid var(--line2);border-radius:12px;overflow:hidden}
/* flex rather than grid: a short last row stretches, so the line colour never shows through an empty cell
   (the strip holds five or six stats depending on the incentive) */
.pp-stats>div{flex:1 1 128px;background:var(--raise);padding:10px 13px;min-width:0}
.pp-stats dt{font-size:11.5px;font-weight:500;color:var(--ink2)}
.pp-stats dd{margin:3px 0 0;font-size:17px;font-weight:650;letter-spacing:-.02em;min-height:24px;display:flex;align-items:center}
.pp-stats dd .perf-pct{font-size:14px}
.pp-dd-x{margin-left:7px;font-size:12px;font-weight:500;letter-spacing:0;color:var(--ink2)}
/* the teams hang off a guide line under their senior lead */
.pp-teams{position:relative;display:grid;gap:12px;margin:12px 0 0 21px;padding-left:19px;border-left:2px solid var(--line)}
.pp-teams-flat{margin-left:0;padding-left:0;border-left:0}
.pp-teams:not(.pp-teams-flat)>.pp-team::before{content:"";position:absolute;left:-21px;top:31px;width:19px;height:2px;background:var(--line)}
.pp-team{padding:14px 16px}
.pp-thead{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px}
.pp-toggle{display:flex;align-items:center;gap:10px;flex:1 1 220px;min-width:0;border:0;background:none;padding:5px 8px 5px 4px;margin:-5px 0 -5px -4px;border-radius:10px;text-align:left;color:var(--ink)}
.pp-toggle:hover{background:var(--brand-tint)}
.pp-chev{width:16px;height:16px;flex:none;color:var(--ink3);transition:transform .2s var(--ease)}
.pp-toggle[aria-expanded="false"] .pp-chev{transform:rotate(-90deg)}
.pp-tname{display:flex;flex-direction:column;min-width:0}
.pp-tnr{display:flex;align-items:center;gap:8px;min-width:0}
.pp-tnr .chip{flex:none;height:20px;font-size:11px}
.pp-tn{font-weight:650;font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pp-tsub{font-size:12px;color:var(--ink3)}
.pp-tkpis{display:grid;grid-template-columns:repeat(var(--pp-kn,4),auto);gap:4px 22px;align-items:center;margin:0}
.pp-tkpis dt{font-size:11px;font-weight:500;color:var(--ink3);white-space:nowrap}
.pp-tkpis dd{margin:2px 0 0;font-weight:650;font-size:13.5px;min-height:22px;display:flex;align-items:center}
.pp-tbody{margin-top:14px;padding-top:12px;border-top:1px solid var(--line2)}
.pp-tmeta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;margin-bottom:8px;font-size:13px}
.pp-bw{display:inline-flex;align-items:center;gap:8px}
.pp-seeall{margin-left:auto}
.pp-mtbl th{background:none}
.pp-mtbl td{padding-top:9px;padding-bottom:9px}
.pp-person{min-width:170px}
.pp-tags{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin-top:3px}
.pp-tags .cell-sub{margin:0}
.pp-tags .chip{height:20px;font-size:11px}
/* an alerting row says why it is red */
.pp-mtbl .pp-why{margin-top:1px;color:var(--crit-ink);font-weight:500}
.pp-mtbl .pp-money{text-align:right}
/* under a lead's incentive: "₹200 own + ₹60 team"; a month under the SLA minimum */
.pp-mtbl .pp-inc-split,.pp-mtbl .pp-inc-gate-s{display:block;white-space:nowrap}
.pp-inc-gate-s{color:var(--crit-ink);font-weight:500}
.pp-mtbl tr.pp-lead-row td{background:color-mix(in srgb,var(--brand) 5%,transparent)}
.pp-mtbl tr.pp-lead-row td:first-child{box-shadow:inset 3px 0 0 var(--brand)}
/* a chip on the tinted lead row keeps AA on a solid fill */
.pp-mtbl tr.pp-lead-row .chip{background:var(--solid)}
.pp-noteam .tbl-scroll{margin:0 -4px}

/* ---------- small screens ---------- */
@media (max-width:1020px){
  .pp-tkpis{grid-template-columns:repeat(var(--pp-kn,4),minmax(0,1fr));width:100%}
}
@media (max-width:900px){
  .pp-conf-split{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:760px){
  .pp-head>.vh-actions{margin-left:0;width:100%}
  .pp-today-x{margin-left:0;flex-basis:100%}
  /* the daily chart's head: the size control stays on the title's line and the legend wraps underneath */
  .pp-chart-card>.card-head>.cs-ctl{order:1}
  .pp-chart-card>.card-head>.pp-legend{order:2;flex-basis:100%}
  .pp-train{grid-template-columns:minmax(0,1fr)}
  .pp-tkpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pp-tkpis>:last-child:nth-child(odd){grid-column:1/-1}
  .pp-teams{margin-left:8px;padding-left:12px}
  .pp-teams:not(.pp-teams-flat)>.pp-team::before{left:-14px;width:12px}
  .pp-seeall{margin-left:0}
}
@media (max-width:640px){
  .pp-glance{grid-template-columns:minmax(0,1fr)}
  /* tables become stacked rows; labels come from data-label */
  .pp-rtbl thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .pp-rtbl,.pp-rtbl tbody{display:block}
  .pp-rtbl tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 14px;padding:12px 4px;border-bottom:1px solid var(--line2)}
  .pp-rtbl tbody tr:last-child{border-bottom:0}
  .pp-rtbl td{display:block;padding:0;border:0;min-width:0;max-width:none}
  .tbl.pp-rtbl tr:last-child td{border-bottom:0}
  .pp-rtbl td[data-label]::before{content:attr(data-label);display:block;font:600 10px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink3);margin-bottom:2px}
  .pp-rtbl td.pp-span,.pp-rtbl td.pp-wide{grid-column:1/-1}
  .pp-person{min-width:0;max-width:none}
  .pp-mtbl tr.pp-lead-row{background:color-mix(in srgb,var(--brand) 5%,transparent);box-shadow:inset 3px 0 0 var(--brand);border-radius:8px;padding-left:10px}
  .pp-mtbl tr.pp-lead-row td{background:none}
  .pp-mtbl tr.pp-lead-row td:first-child{box-shadow:none}
  .pp-rtbl tbody tr.rowlink:hover td,.pp-rtbl tbody tr.rowlink:focus-visible td{background:none}
  .pp-rtbl tbody tr.rowlink:hover,.pp-rtbl tbody tr.rowlink:focus-visible{background:var(--brand-tint);border-radius:8px}
  /* five stats (six with the incentive) once Days folds away: three to a line either way */
  .pp-mtbl tr{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pp-mtbl td.pp-days,.pp-mtbl .perf-meter{display:none}
  .pp-mtbl .pp-money{text-align:left}
  .pp-mtbl .pp-inc-split{white-space:normal}
  .pp-esc .card-head .seg{width:100%}
  /* "Valid escalations" is the long one: buttons size to their labels and may take two lines */
  .pp-esc .card-head .seg button{flex:1 1 auto;height:auto;min-height:28px;padding:4px 6px;line-height:1.25}
}
@media (max-width:560px){
  .tiles.pp-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .pp-tiles>:last-child:nth-child(odd){grid-column:1/-1}
  .pp-tiles .tile{padding:12px 13px}
  .pp-tiles .t-num{font-size:21px}
  .pp-tiles .t-label{font-size:12px}
  .pp-of{font-size:12px}
  .pp-avatar{width:38px;height:38px;border-radius:12px;font-size:13px}
  /* one fact per line, so no separator starts a wrapped line */
  .pp-meta{flex-direction:column;align-items:flex-start;gap:3px}
  .pp-meta>*+*::before{content:none}
  .pp-avatar-sm{width:28px;height:28px;border-radius:9px;font-size:10.5px}
  .pp-mrow{grid-template-columns:minmax(0,1fr) 40px 34px;gap:8px}
  .pp-mbar{grid-column:1/-1;grid-row:2}
  .pp-own{width:100%;border-radius:10px}
  .pp-unlinked{flex-direction:column}
  .pp-stats>div{flex-basis:calc(50% - 1px)}
}

/* a person's shift (perfShiftChip in perf-core.js): the name, then the IST hours a little lighter; the evening
   shift (whose work day runs noon to noon) gets the info tint so it stands out in a list */
.perf-shift-chip{white-space:nowrap;font-weight:600}
.perf-shift-chip .perf-shift-hrs{font-weight:400}
.perf-shift-evening{background:var(--info-bg);color:var(--info-ink)}
@media (max-width:560px){.perf-shift-chip .perf-shift-hrs{display:none}}

/* Agents list and Teams: the shift chip on the name line (it wraps under a long name), the evening-shift note,
   reviewers' reviews and Zeal Desk tickets under the figures (views-perf-agents.js, views-perf-teams.js) */
.po-name.po-name-sh,.pp-pname{display:flex;align-items:center;flex-wrap:wrap;gap:3px 6px;white-space:normal}
.po-name-sh .po-nm{white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}
.po-name-sh .chip,.pp-pname .chip{height:20px;font-size:11px}
.po-card-nmw{display:flex;align-items:center;gap:6px;min-width:0}
.po-card-nmw .perf-shift-chip{flex:none;height:20px;font-size:11px}
.po-shnote,.pp-shnote{margin:0 2px 12px;font-size:12.5px;color:var(--ink2)}
.pp-shnote{margin-bottom:0}
.pp-mtbl .pp-sub{display:block;white-space:nowrap}
/* day by day: a second, smaller figure under the day's pill (a reviewer's own reconfirmations, or Zeal Desk tickets) */
.po-dg-sub{display:block;margin-top:2px;font-size:10.5px;line-height:1.2;font-weight:600;color:var(--ink2);white-space:nowrap;font-variant-numeric:tabular-nums}
.po-dg-st-good{color:var(--good-ink)}
.po-dg-st-info{color:var(--info-ink)}
.po-dg-st-warn{color:var(--warn-ink)}
.po-dg-st-now,.po-dg-st-plain{color:var(--ink3)}
/* from 640px down the member table stacks three stats to a line, too narrow for a sub-line on one line */
@media (max-width:640px){
  .pp-mtbl .pp-sub{white-space:normal}
}
/* "See Yesterday" in the evening-shift note reads as a link */
.po-shnote .pp-link{font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}

/* Agents list: bookings on their list in Zeal Admin (Assigned / Excluded, views-perf-agents.js). In the day-by-day
   grid they sit under the day's figure, lighter than it; on a card their figures read like the SLA line's */
.po-dg-asg{font-weight:500;color:var(--ink3)}
.po-card-asg b{font-weight:600;color:var(--ink)}
/* long sub-lines ("+ 196 on nobody's list" under Excluded's total, "incl. 34 Zeal Desk tickets" under Achieved) may take
   two lines, so they never widen their column past the others (each alone made the table overflow at 1440px) */
.po-tbl .po-sub-wrap{white-space:normal;min-width:6.5em}
/* the footnote's Assigned / Excluded line */
.po-foot-l{display:block;margin-top:4px}
/* two more columns: the raw Confirmed / Valid escalations / Avoidable counts fold away a little wider, and every column
   shows with a little less padding just above that (s-perf-overview.css has the plain table's widths) */
@media (max-width:1599px){
  .po-tbl.po-tbl-asg .po-c-raw{display:none}
}
@media (max-width:1679px){
  .po-tbl.po-tbl-asg.po-tbl-inc .po-c-raw{display:none}
}
@media (min-width:1600px) and (max-width:1759px){
  .po-tbl.po-tbl-asg td,.po-tbl.po-tbl-asg th{padding-left:6px;padding-right:6px}
}
/* one more column: Quality (the AI auditor's figure, .po-tbl-q). The raw counts fold away 80px wider again for each
   combination, and every column shows with a little less padding just above that */
@media (max-width:1519px){
  .po-tbl.po-tbl-q .po-c-raw{display:none}
}
@media (max-width:1599px){
  .po-tbl.po-tbl-q.po-tbl-inc .po-c-raw{display:none}
}
/* with Quality and Assigned / Excluded too (the table as it is live) the raw counts stay folded at every width: .content
   stops growing at 1360px (app.css), so the table's box is never wider than about 1,300px however wide the screen, and
   the raw counts would push Quality, the last column, out of it */
.po-tbl.po-tbl-q.po-tbl-asg .po-c-raw{display:none}
/* the same table with a Today column (a period that runs to today, e.g. This month) needs a little more room at 1440-1599:
   a shorter meter, the shift chip without its hours (they stay in its title) and a little less padding */
@media (max-width:1599px){
  .po-tbl.po-tbl-q.po-tbl-asg.po-tbl-today .po-c-pct{min-width:0}
  .po-tbl.po-tbl-q.po-tbl-asg.po-tbl-today .perf-meter{width:36px}
  .po-tbl.po-tbl-q.po-tbl-asg.po-tbl-today .perf-shift-hrs{display:none}
}
@media (min-width:1440px) and (max-width:1599px){
  .po-tbl.po-tbl-q.po-tbl-asg.po-tbl-today :is(td,th):not(:first-child){padding-left:4px}
  .po-tbl.po-tbl-q.po-tbl-asg.po-tbl-today :is(td,th):not(:last-child){padding-right:4px}
}
/* the Incentive column, last (.po-c-inc; .po-tbl-incc = the table has it; back on 20 Nov 2026): the amount sets its
   width, and the lines under it ("₹2,685 own + ₹4,125 team", "SLA under 90%") take two lines rather than widen it */
.po-tbl .po-inc-sub{white-space:normal;min-width:6.5em;max-width:8.5em;margin-left:auto;line-height:1.3}
.po-tbl .po-inc-sub+.po-inc-sub{margin-top:2px}
/* with it, the table as it is live (Quality, Assigned / Excluded, Incentive) is wider than its box can be (.content
   stops at 1360px, so the box is never wider than about 1,300px), so every column stays but tighter, at every width:
   less padding, a shorter meter, a narrower name column, "% of target" and the audits under Quality's total on two
   lines. A period that runs to today adds the Today column: the shift chip loses its hours (they stay in its title)
   and the name column gives a little more. Below 1440px the table scrolls sideways in its own box, as it did before
   (the page never does). From 1600px (the box at its widest) there is room for a little more padding */
@media (max-width:1599px){
  .po-tbl.po-tbl-incc :is(td,th):not(:first-child){padding-left:4px}
  .po-tbl.po-tbl-incc :is(td,th):not(:last-child){padding-right:4px}
}
@media (min-width:1600px){
  .po-tbl.po-tbl-incc :is(td,th):not(:first-child){padding-left:6px}
  .po-tbl.po-tbl-incc :is(td,th):not(:last-child){padding-right:6px}
}
.po-tbl.po-tbl-incc .po-c-pct{min-width:0}
.po-tbl.po-tbl-incc .perf-meter{width:36px}
.po-tbl.po-tbl-incc tfoot .po-q-sub{white-space:normal}
.po-tbl.po-tbl-incc .po-c-agent{min-width:156px}
.po-tbl.po-tbl-incc th[data-psort="pct"]{white-space:normal}
.po-tbl.po-tbl-incc.po-tbl-today .perf-shift-hrs{display:none}
.po-tbl.po-tbl-incc.po-tbl-today .po-c-agent{min-width:124px}
/* Quality and Incentive, the last two, keep a wider gap before them, so "166 late" (SLA met) and "49 audits" never
   read as one line */
.po-tbl.po-tbl-incc :is(td.po-c-q,td.po-c-inc,th[data-psort="qual"],th[data-psort="inc"]){padding-left:10px}
/* below 1600px (a box under about 1,290px) the shift chip loses its hours in any period, and at 1440-1535px (a box of
   1,134-1,230px) "65 a day" under Target takes two lines when Today is there too (the figure, then "a day") */
@media (max-width:1599px){
  .po-tbl.po-tbl-incc .perf-shift-hrs{display:none}
}
@media (min-width:1440px) and (max-width:1535px){
  .po-tbl.po-tbl-incc.po-tbl-today .po-c-bar .po-aday{white-space:normal}
}
/* a quality figure from only a few audits (perfQualityEarly): muted, with "few yet" under it */
.po-q-early,.pp-q-early{color:var(--ink3)}
/* the line under the Agents table when the period has no audits yet */
.po-qnote{margin:10px 2px 0;font-size:12.5px;color:var(--ink2)}
/* the agent page's Quality tile: "See their audits" / "See my audits" on a line of its own under the count (and the
   Incentive tile's "See why") */
.pp-q-link{display:block;flex-basis:100%;margin-top:2px;font-size:12px;font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
/* "My audits" on one's own page (views-perf-agent.js myAuditsHtml, 22 Nov 2026): three small figures, then one row per
   audit (the incentive card's table, a card per row below 640px); a row opens the audit read-only */
.pp-my h3:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:4px}
/* "See my audits" / "See why" scroll these to the top: clear of the sticky top bar */
.pp-my,.pp-needs{scroll-margin-top:72px}
.pp-my-sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:0 0 10px;background:var(--line2);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.pp-my-c{display:flex;flex-direction:column;gap:2px;padding:9px 14px;background:var(--raise);min-width:0}
.pp-my-k{font-size:11.5px;font-weight:600;color:var(--ink2)}
.pp-my-v{font-size:13px;color:var(--ink2)}
.pp-my-v b{font-size:18px;font-weight:650;letter-spacing:-.02em;color:var(--ink)}
.pp-my-of{color:var(--ink2)}
.pp-my-s{font-size:12px;color:var(--ink3)}
.pp-my-crit{color:var(--crit-ink);font-weight:600}
.pp-my-tbl .chip{height:20px;font-size:11px}
@media (max-width:480px){
  .pp-my-sum{grid-template-columns:minmax(0,1fr)}
}
/* Teams: a team lead's shift chip (and Reviewer chip) wraps under a long name instead of squeezing it */
.pp-tnr{flex-wrap:wrap;row-gap:3px}
