.station-products { display:grid; gap:8px; min-width:0; max-height:44vh; overflow:auto; }
.station-product-row { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:5px 0; }
.station-product-row label { display:flex; gap:6px; align-items:center; min-width:0; }
.station-product-row input[type=number] { width:5.5rem; }
.station-product-row input[type=checkbox] { flex:none; width:auto; }

.restaurant-reports {
  --report-bg:var(--surface,var(--rm-panel,#fff));
  --report-soft:var(--subtle,var(--rm-bg,#f3f5f8));
  --report-border:var(--border,var(--rm-line,#cbd5e1));
  --report-muted:var(--muted,var(--rm-muted,#566576));
  --report-accent:var(--accent,#f97316);
  font-variant-numeric:tabular-nums;
}
.restaurant-workspace .restaurant-reports { display:grid; min-width:0; gap:14px; }
.restaurant-report-heading,.restaurant-report-heading>div,.report-actions,.report-auto-update,.report-branch,.report-shortcuts { display:flex; align-items:center; gap:8px; }
.restaurant-report-heading { justify-content:space-between; flex-wrap:wrap; gap:10px 18px; }
.restaurant-report-heading h2 { margin:0; font-size:clamp(1.3rem,2vw,1.7rem); }
.restaurant-report-heading>div>svg,.report-primary-totals article>svg,.kitchen-timing-report h2 svg,.kitchen-timing-report h3 svg,.timing-metrics span svg { flex:none; color:var(--report-accent); }
.restaurant-report-heading>div>svg { width:28px; height:28px; }
.report-actions { margin-inline-start:auto; flex-wrap:wrap; }
.report-actions button,.report-date-filters button,.report-filter-panel button,.kitchen-timing-report :is(input,button) {
  padding:6px 10px; min-height:36px; background:var(--report-bg); color:inherit; font:inherit; border:1px solid var(--report-border); border-radius:6px;
}
.report-actions button,.report-date-filters button,.report-filter-panel button,.kitchen-timing-report button { cursor:pointer; }
.restaurant-reports button:disabled { opacity:.6; cursor:default; }
.report-actions button,.report-date-filters .report-update { display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.report-auto-update { font-size:.82rem; cursor:pointer; }
.report-auto-update input { width:16px; height:16px; margin:0; accent-color:var(--report-accent); }
.report-period,.report-primary-totals article,.timing-results,.timing-sidebar>section,.timing-metrics>article,.timing-metrics>.timing-target { background:var(--report-bg); border:1px solid var(--report-border); border-radius:8px; }
.report-period { padding:10px 14px; }
.report-date-filters,.report-filter-panel fieldset { display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; }
.report-date-filters label,.report-filter-panel label,.report-branch>span { display:grid; gap:3px; font-size:.8rem; }
.report-date-filters input,.report-filter-panel select { min-height:36px; padding:5px 9px; min-width:0; max-width:100%; border:1px solid var(--report-border); border-radius:6px; color:inherit; font:inherit; background:var(--report-bg); }
[data-theme="dark"] .report-period { color-scheme:dark; }
.report-branch { align-self:center; max-width:14rem; border-inline-end:1px solid var(--report-border); padding-inline-end:14px; }
.report-branch strong { overflow-wrap:anywhere; }
.report-branch small,.report-financial,.timing-intro p,.timing-metrics small,.timing-origin,.timing-sidebar small,.timing-pages small,.timing-period,.report-filter-panel>small { color:var(--report-muted); }
.report-date-filters .report-update { background:var(--report-accent); color:#1c1008; border-color:var(--report-accent); font-weight:700; }
.report-date-filters button[aria-pressed="true"],.report-date-filters button[aria-expanded="true"],.timing-pages button[aria-current="page"] { border-color:var(--report-accent); box-shadow:inset 0 -2px var(--report-accent); opacity:1; }
.report-filter-panel:not([hidden]) { display:grid; gap:6px; padding-top:10px; margin-top:10px; border-top:1px solid var(--report-border); }
.report-filter-panel fieldset { margin:0; padding:0; border:0; }
.report-filter-panel label { min-width:110px; }
.report-primary-totals { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.report-primary-totals article { min-width:0; display:flex; align-items:center; gap:12px; padding:11px 15px; }
.report-primary-totals article>svg { width:26px; height:26px; }
.report-primary-totals article>div { display:grid; min-width:0; gap:2px; }
.report-primary-totals span { font-size:.85rem; }
.report-primary-totals strong { font-size:clamp(1.25rem,2.1vw,1.75rem); overflow-wrap:anywhere; }
.report-primary-totals small { font-size:.72rem; color:var(--report-muted); }
.report-financial { display:flex; flex-wrap:wrap; gap:5px 20px; padding:6px 1px 0; font-size:.8rem; }
.report-financial strong { color:var(--text,var(--rm-text,inherit)); padding-inline-start:4px; }
.kitchen-timing-report { container:timing / inline-size; display:grid; min-width:0; gap:12px; }
.kitchen-timing-report :is(h2,h3,p,ul,dl,dd) { margin:0; }
.kitchen-timing-report :is(h2,h3),.timing-metrics>*>span { display:flex; align-items:center; gap:8px; }
.kitchen-timing-report h2 { font-size:1.25rem; }
.kitchen-timing-report h3 { font-size:1.03rem; }
.kitchen-timing-report p,.kitchen-timing-report small { font-size:.8rem; line-height:1.4; }
.timing-intro { display:grid; gap:3px; }
.timing-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr)); gap:8px; }
.timing-metrics>article,.timing-metrics>.timing-target { display:grid; align-content:start; gap:4px; padding:12px; text-align:start; }
.timing-metrics span { font-weight:600; font-size:.86rem; }
.timing-metrics span svg { width:18px; height:18px; }
.timing-metrics strong { font-size:clamp(1.12rem,2vw,1.45rem); }
.timing-metrics .timing-target { border-inline-start:3px solid var(--report-accent); }
.timing-target b,.timing-late { color:#a1430d; font-size:.8rem; }
.timing-target.has-delays strong { color:#b13b26; }
[data-theme="dark"] .timing-target.has-delays strong { color:#ff9687; }
[data-theme="dark"] :is(.timing-target b,.timing-late) { color:#ffb577; }
.timing-investigation,.timing-sidebar,.timing-results { display:grid; gap:10px; min-width:0; align-content:start; }
.timing-results,.timing-sidebar>section { padding:12px; }
.timing-list-heading,.timing-list-heading form,.timing-pages,.timing-stations header,.timing-command header { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.timing-list-heading,.timing-stations header,.timing-command header { justify-content:space-between; }
.timing-list-heading form { max-width:100%; }
.timing-list-heading input { min-width:0; width:15rem; max-width:100%; }
.timing-list-heading h3:focus-visible { outline:2px solid currentColor; }
.timing-command { min-width:0; border:1px solid var(--report-border); border-radius:6px; }
.timing-command summary,.timing-columns { display:grid; grid-template-columns:minmax(110px,1.4fr) minmax(62px,.8fr) repeat(3,minmax(0,1fr)); align-items:center; gap:8px; padding:8px 10px; }
.timing-columns { background:var(--report-soft); color:var(--report-muted); font-size:.75rem; border-radius:5px; }
.timing-command summary { cursor:pointer; font-size:.86rem; }
.timing-command summary:hover { background:var(--report-soft); }
.timing-command summary strong::before { content:'▸ '; }
.timing-command[open] summary strong::before { content:'▾ '; }
.timing-command summary>span,.timing-dish>div { display:grid; gap:2px; min-width:0; overflow-wrap:anywhere; }
.timing-command summary>span:not(:first-child)>small { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.timing-command summary>span:first-child small { margin-inline-start:12px; color:var(--report-muted); }
.timing-command summary b { font-weight:600; }
.report-state { display:inline-block; border-radius:4px; padding:2px 5px; font-size:.75rem; }
.report-state.pending { background:#fff1cf; color:#784900; }
.report-state.missing { background:#e8edf4; color:#425169; }
[data-theme="dark"] .report-state.pending { background:#513615; color:#ffe0a1; }
[data-theme="dark"] .report-state.missing { background:#303a47; color:#e2e8f0; }
.timing-command ul { padding:0; list-style:none; }
.timing-command header { padding:10px; }
.timing-dish { border-top:1px solid var(--report-border); padding:10px; display:grid; grid-template-columns:minmax(105px,1fr) 3fr; gap:8px; }
.timing-dish :is(strong,small) { overflow-wrap:anywhere; }
.timing-dish dl { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.timing-dish dt { font-size:.8rem; }
.timing-dish dd { font-weight:650; }
.timing-dish dd small { display:block; font-weight:400; }
.timing-stations table { width:100%; table-layout:fixed; border-collapse:collapse; margin-top:10px; font-size:.85rem; }
.timing-stations :is(th,td) { overflow-wrap:anywhere; padding:7px 4px; border-bottom:1px solid var(--report-border); text-align:start; vertical-align:top; }
.timing-stations thead { color:var(--report-muted); }
.timing-stations td small { display:block; font-size:.72rem; }
.timing-quality,.timing-quality>div { display:grid; gap:4px; }
.timing-quality { gap:9px; }
.timing-quality button,.timing-return { width:fit-content; }
.timing-pages { justify-content:flex-end; border-top:1px solid var(--report-border); padding-top:8px; }
.timing-pages small { margin-inline-end:auto; }
.timing-period { padding-top:8px; border-top:1px solid var(--report-border); font-size:.8rem; }
@container timing (min-width:960px) { .timing-investigation.with-sidebar { grid-template-columns:minmax(0,1.8fr) minmax(310px,1fr); align-items:start; } }
@container timing (max-width:660px) {
  .timing-command summary,.timing-dish dl { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .timing-command summary>span:not(:first-child)>small { position:static; width:auto; height:auto; clip-path:none; color:var(--report-muted); }
  .timing-columns { display:none; }
  .timing-dish { grid-template-columns:1fr; }
  .timing-list-heading form,.timing-pages small { width:100%; }
  .timing-list-heading input { flex:1 1 8rem; }
  .timing-pages { justify-content:flex-start; }
  .timing-stations thead th { padding-inline:2px; font-size:.73rem; }
}
@media(max-width:660px) {
  .report-actions { margin-inline-start:0; }
  .report-date-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .report-branch,.report-shortcuts { grid-column:1/-1; }
  .report-branch { border:0; max-width:none; }
  .report-shortcuts button { flex:1; }
  .report-filter-panel label { flex:1 1 40%; min-width:0; }
  .report-primary-totals { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .report-primary-totals article { padding:9px; gap:6px; }
  .report-primary-totals article:first-child { grid-column:1/-1; }
  .restaurant-reports button { min-height:40px; }
}
@media print {
  .report-actions,.report-period,.timing-list-heading form,.timing-pages button,.timing-return,.timing-command header button,.timing-stations header button { display:none; }
  .timing-quality button { border:0; padding:0; }
  .timing-dish,.timing-command summary,.report-primary-totals article { break-inside:avoid; }
}
