/* ASA OS People (migration 084): hours by pay period, scorecards, conversations, hand-offs. Uses the shop design tokens
 * (shop.css); one accent, hairlines, content first. Phone: one column, tables scroll sideways inside their card. */

.pp-tabs { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; margin: -8px 0 20px; }
.pp-tab { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; }
.pp-tab[aria-current="page"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .06); }
.pp { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.pp > *, .pp-sec { min-width: 0; }
.pp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pp-tiles.is-small { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pp-tile { position: relative; background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); padding: 14px 16px; min-width: 0; }
.pp-tile.is-off { background: var(--surface-2); }
.pp-tile.is-off .pp-value { font-size: 18px; color: var(--ink-3); }
.pp-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pp-tile-label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.pp-value { margin: 6px 0 4px; font: 700 28px/1.15 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
.pp-tiles.is-small .pp-value { font-size: 22px; }
.pp-basis { font-size: 12.5px; color: var(--ink-2); margin: 0; }
.shop-on .pp-info { min-height: 22px; width: 22px; padding: 0; margin-left: 6px; border-radius: 50%; font: italic 600 12px/1 Georgia, "Times New Roman", serif; color: var(--ink-2); background: var(--fill); flex: none; vertical-align: middle; }
.shop-on .pp-info[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); }
.pp-def { position: absolute; z-index: 20; top: 44px; left: 8px; right: 8px; min-width: 240px; padding: 12px 14px; border-radius: var(--r-m); background: var(--surface);
  box-shadow: var(--shadow-pop); font-size: 12.5px; line-height: 1.45; color: var(--ink); font-weight: 400; text-align: left; white-space: normal; }
th .pp-def { top: auto; left: auto; right: auto; width: min(380px, 80vw); margin-top: 6px; }
.pp-def[hidden] { display: none; }
.pp-def p { margin: 0 0 6px; }
.pp-def dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 3px 10px; }
.pp-def dt { color: var(--ink-2); }
.pp-def dd { margin: 0; overflow-wrap: anywhere; }

.pp-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pp-grid > div { display: grid; gap: 16px; min-width: 0; }
.pp-grid .panel { min-width: 0; }
@media (max-width: 1180px) { .pp-grid { grid-template-columns: minmax(0, 1fr); } }
.pp-sec h2 { display: flex; align-items: center; }
.pp-list { list-style: none; margin: 0; padding: 0; }
.pp-list > li { padding: 10px 0; border-top: 1px solid var(--hair); }
.pp-list > li:first-child { border-top: 0; padding-top: 2px; }
.pp-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 14px; }
.pp-row > :last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pp-row a { color: var(--ink); font-weight: 500; text-decoration: none; }
.pp-row a:hover { color: var(--accent); }
.pp-sub { font-size: 12.5px; color: var(--ink-2); }
.pp-flag { font-size: 12.5px; color: var(--amber); background: var(--amber-soft); border-radius: var(--r-s); padding: 6px 9px; margin: 6px 0 0; }
.pp-flag a { color: inherit; font-weight: 600; }
.pp-split { margin-top: 6px; padding: 8px 10px; border-radius: var(--r-s); background: var(--surface-2); box-shadow: 0 0 0 .5px var(--hair); }
.pp-split ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; }
.pp-split li.is-this { font-weight: 600; }
.pp-none { color: var(--ink-2); font-size: 13.5px; margin: 0; }
.pp-fine { font-size: 12.5px; color: var(--ink-2); margin: 4px 0 0; }

.pp-scroll { overflow-x: auto; background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); }
.panel .pp-scroll { box-shadow: none; border-radius: 0; }
.pp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pp-table th, .pp-table td { text-align: left; padding: 9px 12px; border-top: 1px solid var(--hair); vertical-align: top; }
.pp-table thead th { border-top: 0; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; position: relative; }
.pp-table td a { color: var(--ink); font-weight: 500; text-decoration: none; }
.pp-table td a:hover { color: var(--accent); }
.pp-table tr.is-total td { font-weight: 600; background: var(--surface-2); }
.pp-table tr.is-me td { background: var(--accent-soft); }
.pp-table .pp-rank { color: var(--ink-3); width: 1%; }
.pp-table.is-score td:last-child { min-width: 260px; }
.pp-notes { color: var(--ink-2); font-size: 12.5px; }
.pp-focus { margin: 0; padding-left: 18px; font-size: 12.5px; }
.shop-on .pp-drill { min-height: 0; padding: 0; background: none; color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; text-decoration: underline dotted var(--ink-3); text-underline-offset: 3px; }
.shop-on .pp-drill:hover { background: none; color: var(--accent); }
.pp-focus li { margin: 0 0 4px; }

.pp-fix { margin-top: 8px; }
.pp-fix > summary { cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 500; }
.pp-form { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; margin-top: 8px; }
.pp-form label { display: grid; gap: 3px; font-size: 12px; color: var(--ink-2); }
.pp-form label.is-wide { flex: 1 1 220px; }
.pp-form input, .pp-form select { min-width: 0; }

/* clock card */
.pp-clock { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); padding: 14px 16px; margin-bottom: 14px; }
.pp-clock-l { font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.pp-clock-t { display: flex; align-items: center; gap: 8px; font: 600 17px/1.3 var(--font-display); margin-top: 2px; }
.pp-clock-a { font-size: 13px; color: var(--accent); text-decoration: none; }
.pp-clock-b { display: flex; gap: 8px; align-items: center; }
.pp-clock-msg { font-size: 12.5px; color: var(--red); }
.pp-clock.is-compact { display: inline-flex; padding: 0; background: none; box-shadow: none; margin: 0; font-size: 13px; color: var(--ink-2); gap: 8px; }
.pp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.pp-dot.is-on { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

/* hand-offs (S1) */
.pp-hand { margin: 0 0 22px; }
.pp-hand[hidden], .pp-jobhand[hidden], .pp-job[hidden] { display: none; }
.pp-hand-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.pp-hand-h h2 { font-size: 15px; margin: 0; }
.pp-hand-l { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.pp-alert { background: var(--surface); border-radius: var(--r-m); box-shadow: 0 0 0 .5px var(--hair), inset 3px 0 0 var(--accent); padding: 12px 14px 12px 16px; display: grid; gap: 4px; min-width: 0; }
.pp-alert.k-qc_passed { box-shadow: 0 0 0 .5px var(--hair), inset 3px 0 0 var(--green); }
.pp-alert-k { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.pp-alert.k-qc_passed .pp-alert-k { color: var(--green); }
.pp-alert-t { font-weight: 600; font-size: 14.5px; }
.pp-owe { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; margin-top: 2px; }
.pp-owe-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); background: var(--fill); border-radius: 5px; padding: 1px 6px; flex: none; }
.pp-alert-b { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.pp-jobhand { display: grid; gap: 10px; }
.pp-toasts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); margin: 0 0 14px; }   /* batch 31: in the page, above its content (pushes it down; never covers it) */
.pp-toasts:empty { display: none; }
.pp-toast { position: relative; border-radius: 4px; box-shadow: none; border: 1px solid var(--hair); background: var(--surface); animation: pp-in .22s ease-out; }
.pp-toast .pp-alert { box-shadow: inset 3px 0 0 var(--accent); }
.pp-toast .pp-alert.k-qc_passed { box-shadow: inset 3px 0 0 var(--green); }
.shop-on .pp-x { position: absolute; top: 6px; right: 6px; min-height: 26px; width: 26px; padding: 0; border-radius: 50%; background: var(--fill); color: var(--ink-2); font-size: 15px; line-height: 1; }
@keyframes pp-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pp-toast { animation: none; } }

/* the job page panel */
.pp-job h2 { display: flex; align-items: center; }
.pp-item { padding: 10px 0; border-top: 1px solid var(--hair); }
.pp-item:first-of-type { border-top: 0; }
.pp-cred { margin: 4px 0; padding-left: 18px; font-size: 13px; }
.pp-shares { display: grid; gap: 6px; margin-top: 8px; }
.pp-share { display: flex; gap: 6px; align-items: center; }
.pp-share input { width: 76px; }
.pp-cb { margin-top: 10px; border-top: 1px solid var(--hair); padding-top: 8px; }
.pp-mark { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin: 4px 0 8px; }

@media (max-width: 760px) {
  .pp-grid { grid-template-columns: 1fr; }
  .pp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-tiles.is-small { grid-template-columns: 1fr; }
  .pp-value { font-size: 22px; }
  .pp-def, th .pp-def { position: static; width: auto; min-width: 0; margin-top: 10px; background: var(--surface-2); box-shadow: 0 0 0 .5px var(--hair); }
  .pp-row { flex-wrap: wrap; }
  .pp-table th, .pp-table td { padding: 8px 10px; }
}

/* ---------- Coaching (people-coaching.js, Finish Line 199) ---------- */
.cc-cards, .cc-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.cc-card, .cc-person { background: var(--surface-2); border-radius: var(--r-m); box-shadow: 0 0 0 .5px var(--hair); padding: 12px 14px; min-width: 0; }
.panel .cc-card, .panel .cc-person { background: var(--surface-2); }
.cc-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cc-card-head h3 { margin: 0; font-size: 15px; }
.cc-who { margin: 0 0 2px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.cc-state { flex: none; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.cc-state.is-moved, .cc-state.is-reviewed { background: var(--green-soft); color: var(--green); }
.cc-state.is-worse { background: var(--red-soft); color: var(--red); }
.cc-state.is-practiced { background: var(--accent-soft); color: var(--accent); }
.cc-state.is-not_enough_data, .cc-state.is-flat { background: var(--fill); color: var(--ink-2); }
.cc-nums { margin: 8px 0 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.cc-practice { margin: 4px 0; font-size: 13px; }
.cc-note { margin: 4px 0; font-size: 13px; color: var(--ink-2); font-style: italic; }
.cc-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.cc-acts input { flex: 1 1 180px; min-width: 0; }
.cc-msg { margin: 4px 0 0; font-size: 12.5px; color: var(--red); }
.cc-msg:empty { display: none; }
.cc-focus { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.cc-focus > li { border-top: 1px solid var(--hair); padding-top: 8px; }
.cc-focus > li:first-child { border-top: 0; padding-top: 0; }
.cc-f-line { font-size: 13.5px; }
.cc-assign { display: grid; gap: 6px; margin-top: 6px; }
.cc-assign textarea, .cc-rule-form textarea { width: 100%; min-width: 0; font: inherit; font-size: 13px; resize: vertical; }
.cc-assign .btn { justify-self: start; }
.cc-rule.is-off { opacity: .6; }
.cc-rule-form .cc-full { flex-basis: 100%; }
.cc-rule-form input[type="number"] { width: 90px; }
.cc-inline { display: inline-flex; align-items: center; gap: 6px; }
.cc-compact { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair); padding: 12px 16px; margin-bottom: 14px; }
.cc-compact-t { font: 600 15px/1.3 var(--font-display); margin-top: 2px; }
.cc-compact .pp-sub { margin: 2px 0 0; }
/* 117: time correction requests on My hours */
.pp-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.pp-acts input { flex: 1 1 200px; min-width: 0; }
.pp-chip { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--fill); white-space: nowrap; }
.pp-chip.is-ok { background: var(--green-soft); color: var(--green); }
.pp-chip.is-warn { background: var(--amber-soft); color: var(--amber); }
.pp-chip.is-bad { background: var(--red-soft); color: var(--red); }
.pp-chip.is-dim { color: var(--ink-2); }

/* 169: technician pay plans (the owner's plans, who is on which, and the estimate on My hours / Team hours). */
.pp-plan .pp-row { align-items: center; }
.pp-comps { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.pp-planform { margin-top: 12px; padding: 14px; border: 1px solid var(--hair); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.pp-planform h3 { margin: 0; font-size: 16px; }
.pp-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.pp-fieldrow { display: flex; gap: 12px; flex-wrap: wrap; }
.pp-fieldrow .pp-field { flex: 1 1 180px; }
.pp-comp-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pp-comp-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.pp-comp-rows input { width: 110px; }
.pp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-assign { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.pp-assign input[type="text"] { flex: 1 1 160px; }
.pp-paybox .pp-row { align-items: baseline; }
.pp-pay-total { font-size: 22px; font-variant-numeric: tabular-nums; }
.pp-pay { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Batch 30 (UI_COVERAGE.md, stream B): People's panels (timesheet, performance, time off, voids) under the shared band look (stream A's .band: the accent, white heavy
   italic, square). Markup unchanged: a panel whose first child is its heading (or a head row holding it) gets the band. */
body.shop-on :is(.pp-sec):has(> h2:first-child, > :is(div, header):first-child > h2) { padding-top: 0; padding-left: 18px; padding-right: 18px; }   /* no overflow clip: rows, menus and popovers stay reachable */
body.shop-on :is(.pp-sec) > h2:first-child,
body.shop-on :is(.pp-sec) > :is(div, header):first-child:has(> h2) { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap;
  margin: 0 -18px 14px; padding: 9px 18px; min-height: 44px; box-sizing: border-box; background: var(--accent); color: var(--accent-ink, #fff); border-radius: 3px 3px 0 0; }
body.shop-on :is(.pp-sec) > :is(div, header):first-child > h2 { margin: 0; }
body.shop-on :is(.pp-sec) > h2:first-child, body.shop-on :is(.pp-sec) > :is(div, header):first-child > h2 { color: var(--accent-ink, #fff);
  font: italic 900 23px/1.08 var(--font-title); text-transform: uppercase; letter-spacing: -0.004em; }
body.shop-on :is(.pp-sec) > :is(div, header):first-child:has(> h2) :is(span, small, label, .cp-fine, a:not(.btn)) { color: inherit; }
body.shop-on :is(.pp-sec) > :is(div, header):first-child:has(> h2) :is(button.quiet, .btn.quiet) { color: inherit; background: rgba(255, 255, 255, 0.14); }
@media (max-width: 860px) { body.shop-on :is(.pp-sec) > h2:first-child, body.shop-on :is(.pp-sec) > :is(div, header):first-child > h2 { font-size: 19px; } body.shop-on :is(.pp-sec):has(> h2:first-child, > :is(div, header):first-child > h2) { padding-left: 14px; padding-right: 14px; } body.shop-on :is(.pp-sec) > h2:first-child, body.shop-on :is(.pp-sec) > :is(div, header):first-child:has(> h2) { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; } }
/* Batch 32 (rendered audit): a wide table scrolls sideways inside its panel on a phone instead of widening the page
   (the old band clip hid its right-hand columns) */
@media (max-width: 860px) { body.shop-on .pp-sec .tbl { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } }
/* Batch 32 (rendered audit, 375): a head row's fine print wraps instead of widening the page (Pay plans) */
body.shop-on .pp-row { flex-wrap: wrap; min-width: 0; }
body.shop-on .pp-row .pp-sub, body.shop-on .pp-row > .pp-sub:last-child { min-width: 0; overflow-wrap: anywhere; white-space: normal; }

/* One stable section picker instead of a wrapping wall of selected tabs. */
.pp-navigation{margin:4px 0 22px;padding:0;display:flex;align-items:center;}
.pp-navigation label{display:flex;align-items:center;gap:12px;color:#5d6877;font-size:13px;}
.pp-navigation select{min-width:240px;max-width:100%;padding:10px 36px 10px 12px;border:1px solid #cbd3de;border-radius:6px;background:#fff;color:#17212d;font-family:inherit;font-size:14px;font-weight:600;}
.pp-navigation select:focus-visible{outline:2px solid #0863dc;outline-offset:2px;}
