/* Interim ops styles; P09 replaces this with the Tailwind v4 build (no @apply). */
:root { color-scheme: light; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; --ink: #1f1a17; --muted: #6b5f57;
  --line: #e7ddd2; --bg: #faf7f2; --surface: #fff; --accent: #2f6f4e; --danger: #b3261e; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; }
.skip-link { position: absolute; left: -999px; } .skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem; z-index: 10; }
.ops-header { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1.5rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.ops-brand { font-weight: 700; color: var(--ink); text-decoration: none; } .ops-brand span { color: var(--muted); font-weight: 500; }
.ops-account { display: flex; gap: 1rem; align-items: center; }
.ops-layout { display: flex; min-height: calc(100vh - 3.5rem); }
.ops-main { flex: 1; padding: 1.5rem; max-width: 72rem; }
a { color: var(--accent); } a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.card-list { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; }
.card h3 { margin: 0 0 .25rem; }
.stack > * + * { margin-top: .75rem; }
.stack label { display: block; font-weight: 600; } .stack input, .stack select { width: 100%; max-width: 28rem; padding: .5rem .6rem; border: 1px solid #c8b8a6; border-radius: .5rem; font-size: 1rem; }
.helptext { color: var(--muted); font-size: .9rem; }
.button { display: inline-block; padding: .55rem 1rem; border-radius: .5rem; border: 0; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; min-height: 2.75rem; }
.button--danger { background: var(--danger); } button.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font: inherit; }
.callout { background: #eef6f1; border: 1px solid #b9dcc8; border-radius: .75rem; padding: 1rem 1.25rem; }
.pairing-code { font-size: 2.5rem; letter-spacing: .3em; font-weight: 800; margin: .25rem 0; }
.messages { list-style: none; padding: 0; } .message { padding: .6rem .8rem; border-radius: .5rem; background: #eef6f1; margin-bottom: .5rem; }
.message--error { background: #fde8e6; }
.errorlist { color: var(--danger); padding-left: 1rem; }
.table-scroll { overflow-x: auto; }
.data-table { border-collapse: collapse; background: var(--surface); }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: .4rem .6rem; text-align: left; vertical-align: top; white-space: nowrap; }
.flag { display: inline-block; font-size: .8rem; padding: 0 .35rem; border-radius: .35rem; background: #fdf0d5; color: #6b4a00; }
/* P09 shell, alert banners, dashboard, and live orders (interim, like the rules above). */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.button--small { padding: .3rem .7rem; min-height: 2rem; font-size: .9rem; }
.ops-search { position: relative; display: flex; gap: .5rem; align-items: center; }
.ops-search input, .search-form input { padding: .4rem .6rem; border: 1px solid #c8b8a6; border-radius: .5rem; font-size: 1rem; width: 16rem; max-width: 100%; }
.ops-search__results:not(:empty) { position: absolute; top: 100%; right: 0; z-index: 20; width: 28rem; max-width: 90vw; background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; padding: .75rem 1rem; box-shadow: 0 8px 24px rgb(0 0 0 / 12%); }
.ops-sidebar { width: 14rem; padding: 1.5rem 1rem; border-right: 1px solid var(--line); background: var(--surface); }
.ops-sidebar ul, .plain-list, .order-list, .timeline, .alert-banners ul { list-style: none; padding: 0; margin: 0; }
.ops-sidebar__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 1rem 0 .25rem; }
.ops-sidebar__group { margin: 1.5rem 0 0; font-weight: 700; }
.ops-sidebar a[aria-current="page"] { font-weight: 700; color: var(--ink); }
.alert-banners { margin-bottom: 1rem; }
.alert-banner { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .6rem .9rem; margin-bottom: .5rem; border-radius: .5rem; background: #fdf0d5; border: 1px solid #f0d49b; }
.alert-banner p { margin: 0; } .alert-banner--critical { background: #fde8e6; border-color: #f2b8b5; } .alert-banner--info { background: #eef3fb; border-color: #c4d4ee; }
.figures { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); margin: 0; }
.figure { background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; padding: .75rem 1rem; }
.figure dt { color: var(--muted); font-size: .9rem; } .figure dd { margin: 0; font-size: 1.6rem; font-weight: 700; } .figure dd.helptext { font-size: .85rem; font-weight: 400; }
.search-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.orders-layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
@media (max-width: 64rem) { .orders-layout { grid-template-columns: 1fr; } }
.board-columns { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.board-column h3 .count { color: var(--muted); font-weight: 500; }
.order-list > li + li, .timeline > li + li { margin-top: .4rem; }
.order-card { display: flex; flex-direction: column; padding: .6rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; color: var(--ink); text-decoration: none; }
.order-card:hover { border-color: var(--accent); } .order-card__number { font-weight: 700; } .order-card__items { font-size: .9rem; }
.orders-detail { background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; padding: 1rem 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
/* P29 brand studio. Mockups (.bp-*) read the previewed theme's custom properties from preview.css (.bp-theme). */
.kit-thumb { object-fit: contain; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 12px 12px; vertical-align: middle; }
.token-group { border: 1px solid var(--line); border-radius: .75rem; padding: .75rem 1rem; display: grid; gap: .5rem 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.token-field label { display: block; font-weight: 600; } .token-field input[type="color"] { width: 4rem; height: 2.5rem; padding: 0; }
.bp-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); align-items: start; }
.bp-figure { margin: 0; } .bp-figure--wide { grid-column: 1 / -1; } .bp-figure figcaption { color: var(--muted); font-size: .9rem; margin-top: .35rem; }
.bp-theme { background: var(--brand-background); color: var(--brand-on-surface); font-family: var(--brand-font-body); font-size: var(--brand-size-body); line-height: var(--brand-line-body);
  border: 1px solid var(--line); border-radius: var(--brand-radius-lg); padding: .9rem; display: flex; flex-direction: column; gap: .6rem; overflow: hidden; }
.bp-phone { min-height: 26rem; max-width: 18rem; }
.bp-bar { font-family: var(--brand-font-title); font-weight: var(--brand-weight-title); background: var(--brand-surface); margin: -.9rem -.9rem 0; padding: .6rem .9rem; }
.bp-display { font-family: var(--brand-font-display); font-weight: var(--brand-weight-display); font-size: calc(var(--brand-size-display) * .7); line-height: var(--brand-line-display); margin: 0; }
.bp-title { display: block; font-family: var(--brand-font-title); font-weight: var(--brand-weight-title); } .bp-body { display: block; margin: 0; }
.bp-label { display: block; font-family: var(--brand-font-label); font-weight: var(--brand-weight-label); font-size: var(--brand-size-label); }
.bp-card { background: var(--brand-surface); border-radius: var(--brand-radius-md); padding: .75rem; }
.bp-card--loyalty strong { color: var(--brand-loyalty-accent); } .bp-card--wallet strong { color: var(--brand-wallet-accent); }
.bp-btn { display: block; text-align: center; background: var(--brand-primary); color: var(--brand-on-primary); border-radius: var(--brand-radius-pill); padding: .6rem 1rem;
  font-family: var(--brand-font-label); font-weight: var(--brand-weight-label); }
.bp-chips { display: flex; flex-wrap: wrap; gap: .4rem; } .bp-chip { background: var(--brand-surface-variant); border-radius: var(--brand-radius-pill); padding: .2rem .7rem; }
.bp-tabs { display: flex; justify-content: space-between; margin-top: auto; font-size: var(--brand-size-label); color: var(--brand-primary); }
.bp-kiosk { flex-direction: row; min-height: 12rem; } .bp-kiosk--customer { flex-direction: column; justify-content: center; text-align: center; }
.bp-kiosk__grid { flex: 2; display: grid; gap: .5rem; grid-template-columns: repeat(2, 1fr); }
.bp-tile { background: var(--brand-secondary); color: var(--brand-on-secondary); border-radius: var(--brand-radius-md); padding: 1rem .5rem; text-align: center; }
.bp-kiosk__cart { flex: 1; background: var(--brand-surface); border-radius: var(--brand-radius-md); padding: .6rem; display: flex; flex-direction: column; gap: .5rem; }
.bp-paper { background: #fff; color: #000; border: 1px solid var(--line); padding: .75rem; max-width: 26rem; text-align: center; }
.bp-paper pre { text-align: left; font-size: .72rem; line-height: 1.25; overflow-x: auto; margin: .5rem 0 0; } .bp-paper img { max-width: 60%; height: auto; image-rendering: pixelated; }
.bp-paper--label { max-width: 16rem; }
.bp-email__header { background: var(--brand-primary); color: var(--brand-on-primary); margin: -.9rem -.9rem 0; padding: .75rem; text-align: center; }
.bp-email__header img { max-width: 100%; height: auto; }
.bp-pass { background: var(--brand-wallet-accent); color: var(--brand-on-wallet-accent); border-radius: 1rem; }
.bp-pass__top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; } .bp-pass__top img { max-height: 2rem; width: auto; }
.bp-pass__strip { width: 100%; height: auto; margin: 0 -.9rem; } .bp-pass__fields { display: flex; justify-content: space-between; font-family: var(--brand-font-label); }
.bp-site img { width: 100%; height: auto; border-radius: var(--brand-radius-md); }
.bp-site .bp-btn { align-self: center; padding-inline: 1.5rem; }
/* P19 inventory. Count sheets are filled in standing up on an iPad in the back room: big inputs and buttons. */
.count-sheet input { font-size: 1.25rem; min-height: 3rem; width: 8rem; padding: .5rem .6rem; border: 1px solid #c8b8a6; border-radius: .5rem; }
.count-sheet .data-table th, .count-sheet .data-table td { padding: .6rem .8rem; vertical-align: middle; }
.count-sheet .button { min-height: 3rem; font-size: 1.1rem; }
.flag--alert { background: #fde8e6; color: #8c1d18; }
/* P20 receiving and transfers are done standing at the back door on an iPad: one line per row, big steppers. */
.receiving-sheet .data-table th, .receiving-sheet .data-table td { padding: .7rem .8rem; vertical-align: middle; white-space: normal; }
.receiving-sheet input[type="number"], .receiving-sheet input[type="text"], .receiving-sheet input[type="date"] { font-size: 1.15rem; min-height: 3rem; padding: .4rem .6rem; border: 1px solid #c8b8a6; border-radius: .5rem; }
.receiving-sheet input[type="number"] { width: 7rem; text-align: center; }
.receiving-sheet .button { min-height: 3.25rem; font-size: 1.15rem; }
.stepper { display: inline-flex; align-items: center; gap: .4rem; }
.stepper button { min-width: 3rem; min-height: 3rem; font-size: 1.5rem; line-height: 1; border: 1px solid #c8b8a6; border-radius: .5rem; background: var(--surface); color: var(--ink); cursor: pointer; }
.reorder-group { margin-bottom: 1.5rem; } .reorder-group .reason { white-space: normal; min-width: 16rem; }
.packs-input { width: 5rem; padding: .35rem .5rem; border: 1px solid #c8b8a6; border-radius: .5rem; font-size: 1rem; }
/* P13 loyalty admin: the promotions calendar grid and the app-style reward card preview. */
.promo-calendar td { min-width: 8rem; height: 6rem; white-space: normal; }
.promo-calendar--week td { height: auto; }
.promo-calendar__day--outside { background: var(--bg); color: var(--muted); }
.promo-calendar__day--overlap { background: #fdf0d5; }
.promo-calendar__day--today .promo-calendar__date { font-weight: 700; text-decoration: underline; }
.promo-calendar__entry--overlap a { font-weight: 700; }
.reward-card-preview { margin: 0; }
.reward-card { max-width: 18rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; box-shadow: 0 4px 12px rgb(0 0 0 / 8%); }
.reward-card__cost { margin: 0; font-weight: 700; color: var(--accent); }
.reward-card__name { margin: .25rem 0; }
.reward-card__value { margin: 0; }
.reward-card__terms { padding-left: 1rem; color: var(--muted); font-size: .9rem; }
/* P37 dashboards. Charts are server-drawn SVG (apps/ops/dashboards/charts.py); status is never shown by color alone. */
.chart { margin: 0; max-width: 48rem; } .chart-svg { display: block; width: 100%; height: auto; background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; }
.chart-bar { fill: #7a9e89; } .chart-bar--off { fill: var(--danger); } .chart-bar--forecast { fill: #c8b8a6; } .chart-bar--muted { fill: #d9cfc4; }
.chart-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 4; } .chart-band { fill: #eef6f1; }
.chart-axis { stroke: var(--line); } .chart-tick { font-size: 11px; fill: var(--muted); }
.kpi--good { color: var(--accent); } .kpi--off { color: var(--danger); }
.figure.kpi--good { border-color: #b9dcc8; } .figure.kpi--off { border-color: #f2b8b5; } .figure.kpi--good dt, .figure.kpi--off dt { color: inherit; }
.data-table td.wrap { white-space: normal; min-width: 16rem; }
.inline-form { display: inline; }
.dashboard-nav a[aria-current="page"] { font-weight: 700; color: var(--ink); }
.dashboard-boards, .menu-matrix { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); align-items: start; }
.menu-class { border-top-width: 4px; } .menu-class--star { border-top-color: var(--accent); } .menu-class--plowhorse { border-top-color: #c98a00; }
.menu-class--puzzle { border-top-color: #3d6bb3; } .menu-class--dog { border-top-color: var(--danger); } .menu-class__label { font-weight: 700; margin: 0; }
.card--highlight { border-color: var(--accent); box-shadow: 0 0 0 2px #b9dcc8; }
.cohort-table td { text-align: right; }
.live-wall { font-size: 1.15rem; } .live-wall h1 { font-size: 2rem; } .live-wall .figure dd { font-size: 2.6rem; }
.live-wall .plain-list li { padding: .25rem 0; }
@media (max-width: 40rem) {
  .ops-header { flex-wrap: wrap; gap: .5rem; padding: .75rem 1rem; }
  .ops-layout { flex-direction: column; } .ops-sidebar { width: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 1rem; }
  .ops-main { padding: 1rem; } .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } .figure dd { font-size: 1.3rem; }
}
