/* ==== report-polish.css ==== */
/* P15: the shared Filters pattern, Schedule colours and separators, Schedule & MTOs polish, inline number detail, Learning by course. */
:root{--hv-worked:#1c5aa6;--hv-scheduled:#a4510a}

/* Filters: two or three controls inline, the rest behind one button with a count, active filters as chips. */
.filter-bar{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end;margin:8px 0}
.filter-inline{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end;flex:1 1 auto;min-width:0}
.filter-inline .scope-controls{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end}
.filter-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font:inherit;font-weight:650;cursor:pointer}
.filter-button:hover{border-color:var(--ink)}
.filter-button[aria-expanded=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.filter-button:focus-visible,.filter-chip:focus-visible{outline:2px solid var(--info);outline-offset:2px}
.filter-chips{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px;padding:0}
.filter-chips[hidden],.filter-panel[hidden]{display:none!important}
.filter-chip{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:2px 12px;border:1px solid var(--line);border-radius:999px;background:var(--info-bg);color:var(--info);font:inherit;font-size:.8125rem;font-weight:650;cursor:pointer}
.filter-chip:hover{background:#d3e6f8}
.filter-panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:14px;margin:0 0 14px;display:grid;gap:12px}
.filter-panel .scope-controls{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end}
.filter-panel .scope-controls:empty{display:none}
@media(max-width:560px){.filter-button{width:100%;justify-content:center}.filter-inline>*{flex:1 1 100%}}
@media(max-width:600px){.filter-chip{min-height:40px}.filter-panel{padding:12px}.filter-panel .scope-controls{gap:8px}.filter-panel .scope-controls>*{min-width:min(100%,220px);max-width:100%}.learning-course-table{max-width:100%;overflow:auto;overscroll-behavior-x:contain}.learning-course-table table{min-width:0!important;table-layout:fixed}.learning-course-table th[scope=row],.learning-course-table thead th:first-child{min-width:0;max-width:48vw;white-space:normal;overflow-wrap:anywhere}.learning-course-table th,.learning-course-table td{white-space:normal;overflow-wrap:anywhere}.learning-course-table td.numeric{min-width:120px;white-space:nowrap;font-size:13px}}

/* Worked and Scheduled: two colours, always the same two. Blue circle-free square = worked, orange round = scheduled. */
.hv-worked{color:var(--hv-worked)}.hv-scheduled{color:var(--hv-scheduled)}
.hv-two-row th.hv-kind.hv-worked,.hv-two-row td.hv-worked{color:var(--hv-worked)}.hv-two-row th.hv-kind.hv-scheduled,.hv-two-row td.hv-scheduled{color:var(--hv-scheduled)}
.hv-two-row th.hv-kind.hv-worked,.hv-two-row th.hv-kind.hv-scheduled{font-weight:700}
.hv-legend{display:flex;flex-wrap:wrap;gap:6px 18px;margin:6px 0 10px;font-size:.8125rem}
.hv-key{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.hv-key i{display:inline-block;width:12px;height:12px;background:currentColor;border-radius:2px}.hv-key.hv-scheduled i{border-radius:50%}
/* P35: the heavy black rules mark the grouped Worked / Scheduled blocks only (two header rows, .hv-two-row). Every flat table keeps the thin grey rule. */
.schedule-centered.hv-two-row>table tr.schedule-group-start>th,.schedule-centered.hv-two-row>table tr.schedule-group-start>td{border-top:3px solid #000}
.schedule-centered.hv-two-row>table>tbody>tr:last-child>th,.schedule-centered.hv-two-row>table>tbody>tr:last-child>td,.schedule-centered.hv-two-row>table>tfoot>tr:last-child>*{border-bottom:3px solid #000}
.schedule-centered.hv-two-row>table td.history-total,.schedule-centered.hv-two-row>table th.history-total{border-left:3px solid #000}
.schedule-centered td[data-heat]{color:#14202b}

/* Schedule & MTOs: shorter rows, day headers that look tappable. */
.sm-tables{gap:2px 24px}   /* P27f: two tables side by side again (stack below 900px, report-tables.css) */
.sm-table th,.sm-table td{height:24px;padding:0 3px}
.sm-table th:first-child{width:40px}
.sm-day{min-height:44px;padding:4px 1px;gap:2px}
.sm-table thead th .sm-day{cursor:pointer;transition:background .15s ease}
.sm-table thead th .sm-day:hover,.sm-table thead th .sm-day:focus-visible{background:rgba(255,255,255,.2);box-shadow:inset 0 -3px 0 #fff;color:#fff}
.sm-hint{display:inline-flex;align-items:center;gap:6px;margin:4px 0 8px;font-size:.875rem;font-weight:650;color:var(--info)}
@keyframes sm-pulse{0%,100%{background:transparent}50%{background:rgba(255,255,255,.3)}}
@media(prefers-reduced-motion:no-preference){.sm-day.sm-pulse{animation:sm-pulse 1.2s ease-in-out 3}}
.sm-chart-wrap{position:relative}
.sm-tooltip{position:absolute;z-index:5;max-width:260px;padding:6px 10px;border-radius:8px;background:#14202b;color:#fff;font-size:.8125rem;line-height:1.35;pointer-events:none}
.sm-tooltip[hidden]{display:none}
.sm-hit{fill:transparent;pointer-events:all;cursor:pointer}
[data-sm-shift]{outline:none}[data-sm-shift]:focus-visible .sm-shift,[data-sm-shift]:hover .sm-shift{stroke-width:11;opacity:1}
.sm-shift-hint{margin:6px 0 0}

/* Number detail in place. */
.schedule-detail-host{margin-top:16px}
.schedule-detail{border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);padding:14px}
.schedule-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.schedule-detail-head h3{margin:0;font-size:1rem;outline:none}
.schedule-detail-status{margin:8px 0;color:var(--muted);font-size:.875rem}
.schedule-detail-table{max-height:50vh;overflow:auto}

/* Learning by course, direct labor face line. */
.learning-required{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:650}
.learning-required input{width:20px;height:20px}
.learning-course>th{font-weight:700}
.learning-asof{display:inline-block;padding:1px 8px;border-radius:999px;background:var(--warn-bg);color:var(--warn);font-size:.8125rem;font-weight:650}
.learning-figure small{color:var(--muted)}
.direct-face{margin:0 0 6px;font-weight:650}.direct-face-estimate{color:var(--warn)}.direct-face-link{margin:0 0 10px}
.snapshot-detail-row>td{background:var(--bg);padding:10px 14px}
.snapshot-detail-row dl{display:grid;grid-template-columns:max-content 1fr;gap:4px 14px;margin:0}.snapshot-detail-row dt{color:var(--muted)}.snapshot-detail-row dd{margin:0}
.hint-line{margin:6px 0;color:var(--muted);font-size:.875rem}
.learning-course-table td.numeric,.learning-course-table thead th:not(:first-child){text-align:right}
.learning-course-table td.learning-person-note{color:var(--muted);font-size:13px}
.schedule-centered.hv-two-row tbody td.numeric.hv-worked{color:var(--hv-worked)}.schedule-centered.hv-two-row tbody td.numeric.hv-scheduled{color:var(--hv-scheduled)}
.schedule-centered.hv-two-row tbody td.hv-var{color:#14202b}
.detail-below-row>td{padding:0;text-align:left;white-space:normal;font-weight:400}
.detail-below-row .schedule-detail{margin:8px 0;max-width:100%}
.tc-detail .schedule-detail-head{flex-wrap:wrap}
.tc-since{white-space:nowrap}
.tc-numbers{display:flex;gap:24px;margin:8px 0}.tc-numbers div{display:flex;flex-direction:column}.tc-numbers strong{font-size:1.4rem}.tc-numbers span{color:var(--muted);font-size:.875rem}
.tc-groups{max-height:60vh;overflow:auto}
.tc-store h4{margin:12px 0 4px;font-size:1rem}
.tc-person{margin:6px 0 10px 8px}.tc-person-name{margin:0;font-weight:600}
.tc-day{margin:4px 0 0 8px}.tc-day-name{margin:0;color:var(--muted);font-size:.875rem}
.tc-edits{list-style:none;margin:2px 0 0;padding:0}.tc-edit{margin:0 0 8px;padding-left:10px;border-left:2px solid var(--line)}
.tc-edit p{margin:0}.tc-edit-head{font-weight:500}.tc-edit-line{color:var(--muted);font-size:.9rem}
.tc-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}.tc-chip{display:inline-block;padding:1px 8px;border:1px solid var(--line);border-radius:999px;font-size:.78rem;color:var(--muted);background:var(--surface)}
.tc-about{margin-top:10px}.tc-about summary{cursor:pointer;color:var(--muted);font-size:.875rem}
.tc-note{margin:6px 0 0;color:var(--muted);font-size:.875rem}.tc-count{color:var(--muted);font-weight:400}

/* P21: the number you tapped in a Snapshot Trend. The total it came from is outlined; premium lines get their own titled block. */
.report-grid .history-total.drill-target,.history-table .history-total.drill-target{outline:3px solid #1f6f50;outline-offset:-3px;background:#e4f2ea!important}
.drill-note{margin:0 0 10px;font-size:.95rem;padding:8px 12px;border-left:3px solid #1f6f50;background:#f1f8f4;border-radius:0 6px 6px 0}
.premium-drill{margin:0 0 20px;padding:14px 16px;border:1px solid #1f6f50;border-radius:10px;background:var(--surface)}
.premium-drill>h4{margin:0 0 4px;font-size:1.05rem}.premium-drill>h4:focus{outline:2px solid #1f6f50;outline-offset:2px}
.premium-drill h5{font-size:1rem;margin:16px 0 8px}
/* Report card (P27d): metric name left, period toggle right, Filters inside the card. See report-card.js. */
.report-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:16px 18px;margin:0 0 18px}
.page-detail [data-report-card],.page-detail [data-report-card]:hover{background:var(--surface)}
/* Expanded cell details use the same centered alignment for labels and values. */
.drill-grid-frame .drill-grid>:is(thead,tbody,tfoot)>tr>:is(th,td),.learning-table .learning-person-courses table :is(th,td){text-align:center}
.drill-grid-frame .drill-grid>thead>tr>th .sort-column{justify-content:center;text-align:center}
.report-card-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px 16px;margin:0 0 6px}
.report-card-title{margin:0;font-size:20px;letter-spacing:-.02em;flex:1 1 auto;min-width:0;min-height:44px;display:flex;align-items:center}/* P29-19: 44px = the toggle buttons, so the title midline sits on the Daily/Weekly row even when the Custom From/Through row makes the toggle block taller */
.report-card-period{flex:0 1 auto;max-width:100%;margin-left:auto}
.report-card-actions{flex:0 0 auto;display:flex;align-items:center;min-height:44px}.report-card-actions:empty{display:none}.export-button{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;font-size:14px;font-weight:600;white-space:nowrap}.export-button .export-icon{flex:none}.export-button:disabled{opacity:.45;cursor:not-allowed}
.period-toggle{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:flex-end;gap:8px 12px}
.period-toggle-options{display:flex;flex-wrap:wrap;gap:6px}
.period-toggle-options button{min-height:44px}
.period-custom-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 12px;flex:1 0 100%;justify-content:flex-end}
.period-custom-form[hidden]{display:none!important}
.period-custom-form label{display:block;font-size:14px;margin-bottom:4px}
.filter-bar-header{margin:4px 0 8px}
.by-store-history{margin:1.25rem 0 18px;border-top:1px solid var(--line);padding-top:.75rem}.by-store-history>h3{margin:0 0 8px;padding:10px;min-height:44px;display:flex;align-items:center;font-size:1rem;font-weight:650}/* P29-22: same rhythm as the Stores - selected dates summary (.by-store, tokens.css) */
@media(max-width:560px){.report-card{padding:12px}.report-card-actions{width:100%;justify-content:flex-end}.report-card-period,.period-toggle,.period-toggle-options{width:100%}.period-toggle-options button{flex:1 1 auto}.period-custom-form{justify-content:flex-start}}

/* P27e: Week / Fiscal period selects that sit inside a Filters panel (report-period.js). */
.period-panel{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.period-panel label{display:block;font-size:13px;margin-bottom:6px}
.period-panel select{min-height:44px;max-width:100%}

/* P27j: Direct labor Daily and Fiscal */
.dl-est{text-decoration:underline dotted;cursor:help;font-weight:650}
.dl-todate{display:inline-block;margin-left:4px;padding:1px 8px;border-radius:999px;border:1px solid var(--line,currentColor);font-size:.78em;font-weight:650;white-space:nowrap}
.dl-estimate-flag{display:inline-block;margin-left:4px;color:var(--warn);font-size:.82em;font-weight:650;white-space:nowrap}
.dl-grain-table td[title],.dl-grain-table td[data-fiscal-pct]{cursor:help}
.dl-grain-table .dl-grain-table{margin:0}
@media(max-width:600px){.grove-toolbar{height:auto}.sm-table{position:relative;width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;touch-action:auto;box-shadow:inset -14px 0 12px -12px #14202b88}.sm-table::before{content:'Swipe sideways to see all days →';position:sticky;left:0;z-index:4;display:block;width:max-content;max-width:100%;padding:4px 8px;background:#f4f6f7;border-bottom:1px solid #dce2e5;color:#526571;font-size:12px;line-height:1.4}.sm-table table{width:700px;min-width:700px;table-layout:fixed}.sm-table th:first-child,.sm-table td:first-child{width:52px;min-width:52px}.sm-table th:not(:first-child),.sm-table td:not(:first-child){min-width:80px;white-space:nowrap}}

/* Learning person details keep course fields in distinct, horizontally scrollable columns. */
.learning-table{container-type:inline-size;width:100%}.learning-person-detail>td{padding:10px!important}.learning-person-courses{width:calc(100cqw - 24px);max-width:calc(100cqw - 24px);overflow:auto;overscroll-behavior-x:contain}.learning-person-courses table{min-width:640px;width:100%;table-layout:fixed}.learning-person-courses col:first-child{width:160px}.learning-person-courses col:nth-child(2){width:80px}.learning-person-courses col:nth-child(3){width:160px}.learning-person-courses col:nth-child(4),.learning-person-courses col:nth-child(5){width:120px}.learning-person-courses th,.learning-person-courses td{padding:9px 8px!important;white-space:normal;vertical-align:top}.learning-person-courses th:first-child{min-width:0;max-width:none}.learning-person-courses td:not(:first-child){min-width:0}.learning-person-courses thead th{position:static;font-size:12px}.learning-person-courses tbody th{position:static}.learning-person .collapsible-toggle{min-height:44px}
.learning-person-courses tbody th[scope=row]{position:static;left:auto;z-index:auto;min-width:0;text-transform:none;letter-spacing:0;font-weight:550}.learning-person-courses thead th{letter-spacing:.04em;font-size:11px;white-space:nowrap}
@media(max-width:600px){.learning-person-courses::before{content:'Swipe sideways for status and dates →';position:sticky;left:0;display:block;width:max-content;max-width:100%;padding:4px 8px;font-size:11px;line-height:1.4;color:var(--muted)}}
/* ==== branding.css ==== */
/* Jen Laun, Earthbar + Beaming Atlas Dashboard Assets, 2026-10-11.
   Load last: a single brand layer over the existing responsive application.
   Section colors identify a subject; semantic status colors still identify outcomes. */
@font-face{font-family:Inter;src:url('./assets/fonts/inter-variable.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:Roboto;src:url('./assets/fonts/roboto-variable.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
:root{
  --brand-black:#000000;--brand-white:#ffffff;--brand-smoke:#272C33;
  --brand-canvas:#F2F2F2;--brand-oat:#F7EDE6;
  --team-blue:#004AB5;--team-sky:#E3EEFC;
  --guest-indigo:#413067;--guest-thistle:#E5C1E2;
  --financial-leaf:#B6C86D;--financial-gold:#FEB634;--financial-radish:#D30202;
  --bg:var(--brand-canvas);--ground:var(--brand-canvas);--surface:var(--brand-white);
  --surface-2:var(--brand-oat);--surface-3:#E5E5E5;
  --ink:var(--brand-black);--ink-2:var(--brand-smoke);--muted:#565C65;--muted-2:#666C74;
  --line:#D9D9D9;--line-2:#A8ABB0;
  --font:Inter,Arial,sans-serif;--display:Roboto,Arial,sans-serif;
  --mono:Inter,Arial,sans-serif;--stamp:Inter,Arial,sans-serif;
  --studio-green:var(--team-blue);--studio-berry:var(--guest-indigo);--studio-lime:var(--financial-leaf);
  --shadow:0 1px 2px #0000000D,0 16px 32px -24px #00000033;
}
/* The supplied .9em body leading overlaps wrapped operational text. Keep the
   requested Inter face with 1.5 leading; headings use compact 1.2 leading. */
body{font-family:var(--font);line-height:1.5;background:var(--bg);color:var(--ink)}
button,input,select,textarea{font-family:var(--font)}
body :is(h1,h2,h3,h4,h5){font-family:Roboto,sans-serif;font-weight:500;letter-spacing:-.5px;line-height:1.2}
.login h1,.studio-card h2,.studio-intro h2,.page-heading h1,.page-hero h1{font-family:Roboto,sans-serif;font-weight:500;letter-spacing:-.5px;line-height:1.2}
.gc-read-count strong{font-family:var(--font)}
.top{color:var(--ink)}
.primary,.segmented button[aria-pressed=true],.app-nav .nav-tab.active,.crumb-current,.ask-message-user{background:var(--brand-black);border-color:var(--brand-black);color:var(--brand-white)}
.primary:hover{background:var(--brand-smoke)}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:var(--team-blue)}
.studio-card{box-shadow:var(--shadow)}
/* Team */
.studio-labor,.studio-schedule,.studio-people{background:var(--team-sky);color:var(--brand-smoke);border-color:#B1C9EB}
.studio-labor .studio-kicker,.studio-schedule .studio-kicker,.studio-people .studio-kicker{color:var(--team-blue)}
.studio-labor .grove-door,.studio-schedule .grove-door,.studio-people .grove-door{background:var(--team-blue);color:var(--brand-white);border-color:var(--team-sky)}
/* Guest */
.studio-loyalty{background:var(--guest-thistle);color:var(--guest-indigo);border-color:#C8A1C5}
.studio-loyalty .studio-kicker{color:var(--guest-indigo)}
.studio-loyalty .grove-door{background:var(--guest-indigo);color:var(--brand-white);border-color:var(--guest-thistle)}
/* Financial: dark text on leaf/gold; neither color means success or warning. */
.studio-sales{background:var(--financial-leaf);color:var(--brand-smoke);border-color:#A4AF48}
/* U9 (triage): the Act-now ring must win over each tile's own border colour (.studio-sales above). */
.studio-card.priority-critical{border-color:#8E1B14}
.studio-food{background:var(--brand-oat);color:var(--brand-smoke);border-color:#DFCFC4}
.studio-sales .studio-kicker,.studio-food .studio-kicker,.studio-sales .studio-description{color:var(--brand-smoke)}
.studio-sales .grove-door,.studio-food .grove-door{background:var(--brand-black);color:var(--brand-white);border-color:var(--financial-gold)}
.studio-sales .grove-state:not([data-state]),.studio-sales .grove-state[data-state=good]{background:var(--surface);color:var(--ok)}
.studio-sales .studio-metrics,.studio-grid .studio-sales .grove-hero{border-color:#272C333D}
.studio-card .negative,.studio-sales .metric-value.negative,.studio-sales .neg-red,.page-hero .hero-negative{color:#8E1B14}
.studio-grid .priority-critical.studio-sales .grove-hero>.metric-value{color:#8E1B14}
.studio-card .positive{color:#12402A}
.page-hero.studio-sales :is(.hero-lede,.hero-stat-label,.hero-stat-note),.page-hero.studio-labor :is(.hero-lede,.hero-stat-label,.hero-stat-note){color:var(--brand-smoke)}
.page-hero.studio-sales .hero-chips li,.page-hero.studio-labor .hero-chips li{background:#FFFFFFB8;color:var(--brand-smoke)}
.page-hero.studio-loyalty :is(.hero-lede,.hero-stat-label,.hero-stat-note){color:var(--guest-indigo)}
.history-note,.small-note,.studio-note,.studio-metric p,.chart-caption{display:block;-webkit-line-clamp:unset;overflow:visible}
.page-updated,.fresh-updated{display:none!important}
.page-updated{margin:0 0 12px;font:400 12px/1.5 var(--font);color:var(--muted)}
.remember-device{display:flex;gap:10px;align-items:center;margin:18px 0 6px;font:500 14px/1.5 var(--font);letter-spacing:normal;text-transform:none;color:var(--ink-2)}
.remember-device input[type=checkbox]{width:18px;min-height:18px;height:18px;flex:0 0 18px;accent-color:var(--ink)}
.remember-device-note{margin:0 0 16px;font:400 12px/1.5 var(--font);color:var(--muted)}
/* Alert borders, chips, and numeric outcome colors are intentionally inherited.
   Component dark pairs (feedback, walkthrough, tooltips, demo badges) remain intact. */
@media(max-width:380px){.studio-grid{--ph-w:96px;--ph-h:116px;--hero-h:108px}.studio-grid .studio-card h2{overflow-wrap:anywhere}.studio-grid .grove-hero .metric-value{font-size:30px}}
/* Fit hero figures beside photos as each tile narrows. Keep numeric tokens on
   one line; use a vertical People summary where two labels cannot fit safely. */
.studio-grid .studio-card{container-type:inline-size}
.studio-grid .grove-hero .metric-value:not(.metric-soon){white-space:nowrap;overflow-wrap:normal;word-break:normal}
.studio-grid .studio-people .people-heroes .metric-label{max-width:100%;overflow-wrap:anywhere;white-space:normal}
@container (max-width:380px){
  .studio-grid .grove-hero .metric-value:not(.metric-soon){font-size:clamp(20px,7.8cqi,30px)}
  .studio-grid .studio-people .people-heroes{grid-template-columns:minmax(0,1fr);gap:12px;min-height:var(--hero-h)}
  .studio-grid .studio-people .people-heroes>.grove-hero{padding-bottom:6px}
  .studio-grid .studio-people .people-heroes .metric-label{font-size:11.5px;line-height:1.3}
}

/* People has a distinct Jen gold identity; Labor and Schedule keep Team blue. */
.studio-people{background:var(--financial-gold);color:var(--brand-smoke);border-color:#C68B1F}
.studio-people .studio-kicker{color:var(--brand-smoke)}
.studio-people .grove-door{background:var(--brand-smoke);color:var(--brand-white);border-color:var(--financial-gold)}
.fresh-updated{display:block}

/* ==== P15: one tab control (the .segmented look), applied to every tab-like group that used its own style ==== */
.snapshot-tabs,.snapshot-view-tabs,.report-metric-tabs{display:inline-flex;flex-wrap:wrap;gap:2px;border:1px solid var(--line-2);border-radius:8px;padding:3px;background:var(--surface)}
.snapshot-tabs{border-bottom:1px solid var(--line-2)}
.snapshot-tabs button,.snapshot-view-tabs button,.report-metric-tabs button{border:0;border-radius:6px;background:transparent;min-height:36px;padding:6px 12px;font:inherit;font-size:14px;font-weight:550;color:var(--ink);cursor:pointer;text-align:center}
.snapshot-tabs button[aria-pressed=true],.snapshot-view-tabs button[aria-pressed=true],.report-metric-tabs button[aria-pressed=true]{background:#111;color:#fff;border:0}

/* ==== P15: report-page chrome above the first number (tablet and up) ==== */
@media(min-width:640px){
 .sr-title,.report-heading>h1,.page-detail>h2,.report-card-title{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
 #dashboard{position:relative}
 .grove-toolbar:empty{display:none}
 .report-navigation{margin:4px 0}
 .page-updated{position:absolute;top:10px;right:0;margin:0;font-size:12px;max-width:42%;text-align:right}
 .report-heading{display:flex;flex-wrap:nowrap;align-items:center;gap:6px 12px;margin:2px 0}
 .report-heading .report-metric-strip{min-width:0}
 .report-heading .selection-line{margin:0;font-size:13px}
 .report-metric-strip{display:flex;flex:1 1 auto;gap:8px;margin:0;overflow-x:auto}
 .report-metric-strip .metric-cell{flex-direction:row;align-items:baseline;gap:8px;padding:6px 12px;min-height:36px;white-space:nowrap}
 .report-metric-strip .metric-value{font-size:16px}
 .report-metric-strip .muted{display:none}
 .page-detail{padding-top:0;margin-top:0}
 .report-card{padding:4px 12px 12px}
 .period-toggle,.period-toggle-options{align-items:center}
 .period-toggle-options button,.report-card .filter-button,.report-card-actions .quiet{min-height:36px}
 .report-card>div:has(.labor-summary):not(.report-card-head):not(.filter-bar-header){order:9}
 .page-detail>.history-panel{margin-top:0;padding-top:4px}
 .report-card{padding-top:0;row-gap:2px}
 .report-card>:empty{display:none}
 .report-card>.filter-panel[hidden]{display:none}
 .page-detail>.history-panel{margin:0 0 0;padding-top:0}
 .page-detail{margin-top:-4px}
 .report-card{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;min-height:0;gap:6px 12px}
 .report-card>*{flex:0 0 100%;min-width:0}
 .report-card>.report-card-head{display:contents}
 .report-card-head>.report-card-period{flex:0 1 auto;margin-left:0;width:auto}
 .report-card-head>.report-card-actions{flex:0 0 auto;margin-left:auto;order:2}
 .report-card>.filter-bar-header{flex:0 0 auto;margin:0;order:1}
 .report-card>.report-card-head>.report-card-period{order:0}
 .report-card>*:not(.report-card-head):not(.filter-bar-header){order:5}
}
@media(min-width:640px){
 .report-navigation{margin:0}
 .report-metric-strip .metric-cell{min-height:32px;padding:4px 12px}
 .report-heading{margin:0}
 .page-detail{margin-top:-6px}
 .period-toggle-options button,.report-card .filter-button,.report-card-actions .quiet{min-height:32px}
 .period-toggle{min-height:0}
 .period-toggle,.report-card-period{height:auto}
}
@media(min-width:1101px){.report-navigation select,.report-navigation button{min-height:36px;height:36px}.report-navigation{min-height:36px}.page-updated{top:6px}}
@media(min-width:1101px){.page-detail{margin-top:-12px}}

/* FB7-5 Open roles: raw-data table, region summary, phone cards, detail sheet */
.roles-regions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.roles-region{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:112px;min-height:44px;padding:8px 12px;border:1px solid var(--line,#d9ddd2);border-radius:12px;background:var(--surface,#fff);color:inherit;text-align:left;cursor:pointer}
.roles-region strong{font-size:22px;line-height:1.1}.roles-region em{font-style:normal;font-size:12px;color:var(--muted,#5b665f)}
.roles-region[aria-pressed="true"]{border-color:var(--ink,#19241e);box-shadow:inset 0 0 0 1px var(--ink,#19241e)}
.roles-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:12px 0}
.roles-toolbar label{display:block;font-size:12px;color:var(--muted,#5b665f);margin-bottom:2px}
.roles-search input{min-width:220px;min-height:36px;padding:4px 10px;border:1px solid var(--line,#d9ddd2);border-radius:8px;font:inherit}
.roles-stage select{min-height:36px}
.roles-count{margin-left:auto;font-size:13px;color:var(--muted,#5b665f)}
.roles-table th,.roles-table td{white-space:nowrap}
.roles-sort{border:0;background:none;padding:0;font:inherit;font-weight:inherit;color:inherit;cursor:pointer}
.roles-row{cursor:pointer}.roles-row:hover,.roles-row:focus-visible{background:#1c3a2d0d}
.roles-aged td:nth-child(4),.roles-aged .roles-card-days{color:#b3261e;font-weight:650}
.roles-cards{display:none}
.roles-card{display:flex;flex-direction:column;gap:2px;width:100%;padding:12px 14px;border:1px solid var(--line,#d9ddd2);border-radius:12px;background:var(--surface,#fff);color:inherit;text-align:left;font:inherit;cursor:pointer;min-height:44px}
.roles-card-top{display:flex;justify-content:space-between;gap:8px}.roles-card-sub{font-size:14px}.roles-card-meta{font-size:12px;color:var(--muted,#5b665f)}
.roles-sheet{width:min(520px,calc(100vw - 32px));max-height:85vh;padding:20px;border:1px solid var(--line,#d9ddd2);border-radius:16px;background:var(--surface,#fff);color:var(--ink,#19241e);overflow:auto}
.roles-sheet::backdrop{background:#17201a40}
.roles-sheet header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.roles-sheet h2{margin:0;font-size:20px}
.roles-sheet-sub{margin:4px 0 12px;color:var(--muted,#5b665f)}
.roles-sheet-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;margin:0}.roles-sheet-grid dt{font-size:12px;color:var(--muted,#5b665f)}.roles-sheet-grid dd{margin:0;font-weight:600}
@media(max-width:640px){
 .roles-table{display:none}.roles-cards{display:flex;flex-direction:column;gap:8px}
 .roles-search,.roles-search input{width:100%}.roles-count{margin-left:0;width:100%}
 .roles-region{flex:1 1 calc(50% - 8px)}
}
.roles-sum-btn{cursor:pointer}.roles-sum-btn:focus-visible{outline:2px solid var(--ink,#19241e);outline-offset:2px}.roles-sum-btn[aria-pressed="true"]{box-shadow:inset 0 -2px 0 var(--ink,#19241e)}
.roles-panel{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:0 0 12px}.roles-panel select{min-height:36px}.roles-panel-actions{display:flex;gap:8px;margin-left:auto}.roles-done,.roles-filter-btn{display:none}
.u2r-byregion .roles-regions{flex-direction:column}.u2r-byregion .roles-region{width:100%;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}.u2r-byregion .roles-region em{margin-left:auto}
@media(max-width:640px){
 .roles-filter-btn{display:inline-flex;align-items:center;min-height:44px}.roles-done{display:inline-flex}
 .roles-panel{display:none;position:fixed;left:0;right:0;bottom:0;z-index:1000;margin:0;padding:16px 18px calc(16px + env(safe-area-inset-bottom));flex-direction:column;align-items:stretch;background:var(--surface,#fff);border-top:1px solid var(--line,#d9ddd2);border-radius:16px 16px 0 0;box-shadow:0 -12px 40px #17201a33;max-height:80vh;overflow:auto}
 .roles-panel.is-open{display:flex}.roles-panel select{width:100%;min-height:44px}.roles-panel-actions{margin-left:0}.roles-panel-actions button{flex:1;min-height:44px}
}
/* FB7-3: a timecard edit is one button that opens its detail; kind chip + filter. */
.tc-edit-open{display:block;width:100%;background:none;border:0;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer;min-height:36px}
.tc-edit-open>span{display:block}.tc-edit-open .tc-chip{display:inline-block;margin:2px 0}.tc-edit-open .tc-chips{display:flex}
.tc-edit-detail{margin:6px 0 4px;padding:8px 10px;border:1px solid var(--line);border-radius:8px}
.tc-detail-fields{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 12px;margin:0;font-size:.875rem}.tc-detail-fields dt{color:var(--muted)}.tc-detail-fields dd{margin:0;overflow-wrap:anywhere}
.tc-class-filter{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.tc-class-filter button[data-empty]{opacity:.6}
.tc-class[data-tc-class-chip=missed_in]{border-color:#c0504d}.tc-class[data-tc-class-chip=missed_out]{border-color:#d39a2b}.tc-class[data-tc-class-chip=small]{border-color:#6b8e5a}
