/* After Six visual theme, adapted from the 2026-11 design prototype: Plus Jakarta Sans (self-hosted, SIL OFL 1.1,
   see ../fonts/PlusJakartaSans-OFL.txt), oat and espresso surfaces, warm cards, softer inputs with a brown focus
   ring, and a custom checkbox. Loaded after app.css and workspace.css; it changes appearance only. Touch targets
   stay at 44px; the page Help remains the source content for the global assistant drawer. */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/PlusJakartaSans-latin-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/PlusJakartaSans-latin-ext-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/PlusJakartaSans-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--tint); color: var(--accent-dark); }
/* The sticky top bar must not cover the target of an in-page link such as #add-stock-item. */
html { scroll-padding-top: 88px; }

/* Shell: espresso sidebar with a quiet hover, roast for the current section, a warm quote card. */
.sidebar { background: var(--sidebar); }
.nav-label { color: #8E8279; font-size: 10.5px; letter-spacing: .14em; }
.navigation-links a { border-radius: 12px; color: #C9C0B7; font-size: 13.5px; font-weight: 500; }
.navigation-links a .icon { color: #9A8F85; }
.navigation-links a:hover { background: rgb(255 255 255 / 5%); color: #fff; }
.navigation-links a[aria-current="page"] { background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / 18%); }
.navigation-links a[aria-current="page"] .icon { color: #fff; }
.sidebar-note { background: var(--sidebar-card); border-color: var(--sidebar-line); border-radius: 12px; color: #D7CFC7; }
.logout-form button { border-radius: 12px; color: #C9C0B7; font-weight: 500; }
.logout-form button:hover { background: rgb(255 255 255 / 6%); color: #fff; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgb(250 248 244 / 90%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.breadcrumb strong { font-weight: 700; color: var(--ink); }
.site-footer { color: var(--faint-text); border-top: 1px solid rgb(234 227 217 / 70%); }

/* Cards: white with a warm border and soft shadow. */
.panel { border-color: var(--line); border-radius: 16px; box-shadow: var(--shadow); }

/* Buttons keep their hierarchy; the corners follow the prototype. */
.button { border-radius: 12px; }
.button:not(.button-secondary):not(.button-danger):hover { background: var(--accent-dark); }
.button-secondary { border-color: var(--input-line); color: var(--ink); }
.button-secondary:hover { border-color: var(--accent); background: var(--surface-soft); }

/* Text fields and selects: soft border, white fill, brown focus ring. 44px minimum stays. */
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=range]):not([type=submit]):not([type=button]),
select, textarea {
  /* #9A8F85 keeps the field outline at 3:1 against white (the prototype's #DDD5C9 is about 1.4:1). */
  border: 1px solid var(--field-line); border-radius: 10px; background-color: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=range]):not([type=submit]):not([type=button]), select { min-height: 44px; }
input::placeholder, textarea::placeholder { color: #7A6F66; }
input:not([type=checkbox]):not([type=radio]):focus-visible, select:focus-visible, textarea:focus-visible,
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus {
  /* The brown border carries the focus at full contrast; the soft 3px ring is the halo from the spec. */
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(111 78 55 / 18%);
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #A43B32; }

/* Checkboxes: a drawn box and tick in the brand brown; the border keeps a 3:1 contrast against white. */
input[type=checkbox] {
  appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; flex: 0 0 auto;
  border: 1.5px solid #9A8F85; border-radius: 6px; background: #fff; display: inline-grid; place-content: center;
  cursor: pointer; vertical-align: middle; transition: background-color .15s ease, border-color .15s ease;
}
input[type=checkbox]::before { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
input[type=checkbox]:checked::before { opacity: 1; }
input[type=checkbox]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgb(111 78 55 / 32%); border-color: var(--accent); }
input[type=checkbox]:disabled { opacity: .5; cursor: not-allowed; }
input[type=radio] { accent-color: var(--accent); }

/* Page guidance stays available as source content for the shared Help drawer. */
.page-help-body { background: var(--surface-soft); border-color: var(--line); }

/* Tables: headings in the secondary ink. */
.product-table thead th { color: var(--ink); }

/* A subtle scrollbar on browsers that allow styling it. */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D5CBBF; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #B8AA9B; }

@media print {
  .topbar { position: static; backdrop-filter: none; }
  input[type=checkbox] { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Prototype components (2026-11 redesign) ---------- */

/* Shell: a 64px top bar; name with position and access badges; sage initial avatar; italic footer line. */
.topbar { min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.breadcrumb { font-size: 14px; align-items: center; }
.breadcrumb .crumb-sep { color: #C5B9AA; }
.account-text strong { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.account-chip:hover .account-text strong { color: var(--accent); }
.account-badges { display: flex; justify-content: flex-end; gap: 6px; margin-top: 2px; }
.account-badges small { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 5px; font-size: 10.5px; line-height: 1.5; }
.account-badges .badge-position { background: #EFECE6; color: var(--muted); font-weight: 500; }
.account-badges .badge-access { background: var(--tint); color: var(--accent-dark); font-weight: 600; }
.topbar .user-avatar { width: 36px; height: 36px; box-shadow: 0 0 0 1px #CFDCD1; }
.site-footer { font-size: 12px; }
.site-footer span:last-child { font-style: italic; }

/* Page title row: a bold, tight title. */
.page-title { letter-spacing: -.6px; }
.page-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; }

/* Section tabs: a white card with the current tab in roast. */
.section-nav { border-radius: 16px; padding: 6px; gap: 4px; box-shadow: var(--shadow); }
.section-nav a { border-radius: 12px; padding: 9px 16px; font-weight: 500; color: var(--muted); }
.section-nav a:hover { background: var(--surface-soft); color: var(--ink); }
.section-nav a[aria-current="page"] { background: var(--accent); color: #fff; font-weight: 600; }

/* State badges. */
.status-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.chip-neutral { background: #EFECE6; color: var(--muted); font-weight: 500; }
.chip-good { background: #E5EFE6; color: #2F5233; }
.chip-warn { background: #F6E6CE; color: #7A4E1D; }
.chip-alert { background: #F9E3DE; color: #8C3322; }
.chip-tint { background: var(--tint); color: var(--accent-dark); }
.chip-quiet { background: var(--surface-soft); border: 1px solid var(--line); color: var(--muted); }

/* Tables: a tinted, uppercase heading row inside a rounded border; quiet row dividers. */
.product-table, .compact-table, .shift-table, .team-table { border-collapse: separate; border-spacing: 0; }
.product-table thead th, .compact-table thead th, .shift-table thead th, .team-table thead th {
  background: var(--surface-soft); color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); }
.product-table td, .product-table th, .compact-table td, .compact-table th, .shift-table td, .team-table td { border-bottom-color: var(--line); }
.product-table tbody tr:hover > *, .compact-table tbody tr:hover > *, .shift-table tbody tr:hover > *, .team-table tbody tr:hover > * { background: rgb(250 247 242 / 70%); }

/* Quick-jump pills: icon, label and a chevron that nudges on hover. */
.quick-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.quick-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-soft); color: var(--ink); font-size: 12.5px; font-weight: 600; text-decoration: none; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.quick-pill .icon { width: 15px; height: 15px; color: var(--accent); }
.quick-pill .icon:last-child { color: var(--faint-text); transition: transform .15s ease; }
.quick-pill:hover { background: var(--tint); border-color: #D9C7B6; color: var(--accent-dark); }
.quick-pill:hover .icon:last-child { transform: translateX(2px); }
.quick-pill:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Status tiles: label and icon square, then the value with its state badge. */
.status-tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 0; padding: 0; }
.status-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; height: 100%; min-height: 44px; padding: 16px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface-soft); color: var(--ink); text-decoration: none; transition: background .15s ease; }
.status-tile:hover { background: rgb(242 236 227 / 80%); }
.status-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile-head .count-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.tile-head .icon { width: 28px; height: 28px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--accent); }
.tile-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tile-value { color: var(--muted); font-size: 12px; }
.tile-value strong { display: block; color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1.2; }
.tile-value strong.muted { font-size: 14px; color: var(--ink); }
.tile-value strong.needs-attention { color: #8A2E22; }
.status-tiles + .quick-pills, .quick-pills + .status-tiles, .today-counts + .quick-pills { margin-top:16px; }
.today-work h2, .team-work h2 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }

/* Dashboard cards: a tinted icon chip, the label, a badge; actions at the foot. */
.staff-card-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.staff-card-label > .icon { width: 36px; height: 36px; padding: 9px; border-radius: 12px; background: var(--tint); color: var(--accent); flex: 0 0 auto; }
.staff-card-label .status-chip { margin-left: auto; }
.staff-dashboard-grid > .panel { display: flex; flex-direction: column; position: relative; overflow: hidden; }
.staff-dashboard-grid > .panel h2 { font-size: 17px; font-weight: 700; }
.staff-card-actions { margin-top: auto; padding-top: 14px; }
.staff-card-actions .button-secondary { width: 100%; }
.staff-card-shift::before, .staff-feature-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: #D9C7B6; }
.staff-feature-card::before { height: 3.5px; background: var(--accent); }
.staff-card-actions > a:not(.button) { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.staff-card-actions > a:not(.button):hover { color: var(--accent-dark); text-decoration: underline; }

/* Empty states inside cards. */
.empty-state { text-align: center; padding: 40px 20px; }

/* ---------- Prototype screens ---------- */

/* Holidays: a two-column form, the confirmation in a tinted callout; recorded holidays as rows with a date chip. */
.field-grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
@media (max-width: 600px) { .field-grid-2 { grid-template-columns:1fr; } }
.check-callout { margin:8px 0 16px; padding:12px 14px; border:1px solid #D9C7B6; border-radius:12px; background:var(--surface-soft); }
.check-callout .check-field { display:flex; align-items:flex-start; gap:10px; margin:0; font-size:14px; }
.check-callout .check-field input { flex:0 0 auto; margin-top:2px; }
.holiday-row { display:flex; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid var(--line); }
.holiday-row:last-child { border-bottom:0; }
.holiday-row h3 { margin:0 0 2px; font-size:15px; font-weight:700; }
.holiday-row p { margin:0; color:var(--muted); font-size:13px; }
.holiday-main { flex:1 1 auto; min-width:0; }
.date-chip { flex:0 0 auto; min-width:112px; padding:6px 10px; border-radius:10px; background:var(--tint); color:var(--accent-dark); font-size:12.5px; font-weight:700; text-align:center; }
.chip-regular { background:var(--accent); color:#fff; }
@media (max-width: 600px) { .holiday-row { flex-wrap:wrap; } .holiday-main { flex-basis:100%; order:3; } }

/* Profile: weekly availability as day tiles. */
.availability-summary { grid-template-columns:repeat(auto-fit,minmax(104px,1fr)); gap:8px; }
.availability-summary li { display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--surface-soft); }
.availability-summary li .day-name { min-width:0; color:var(--muted); font-size:11.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }

/* Checklist and handover: rows as cards. */
.record-list.card-rows { display:grid; gap:10px; }
.record-list.card-rows > li { padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 1px 2px rgb(35 31 29 / 4%); }
.record-list.card-rows > li:has(input[type=checkbox]:checked) { background:var(--surface-soft); }
.note-rows > li { border-left:3px solid #D9C7B6; }
.record-list.card-rows > li form, .record-list.card-rows > li > p { margin:10px 0 0; }

/* Stock: the status reads as a badge. */
.stock-status { display:inline-flex; padding:2px 9px; border-radius:999px; background:#E5EFE6; color:#2F5233; font-size:12px; font-weight:600; white-space:nowrap; }
.stock-status.needs-attention { background:#F6E6CE; color:#7A4E1D; }

/* Payslips: net pay in roast. */
.payslip-list td[data-label="Net pay"] > strong { color:var(--accent-dark); font-weight:700; }
@media (min-width: 701px) {
  /* A long name wraps in its own column so the period never breaks inside a word. */
  .payslip-list td:first-child { min-width:9.5em; }
  .payslip-list td.payslip-staff { white-space:normal; min-width:10em; }
}

/* Products Sold: the empty period as a centred card. */
.panel.empty-state { display:flex; flex-direction:column; align-items:center; }
.panel.empty-state > * { max-width:46ch; }

/* Passwords: a show/hide eye inside the field. */
.password-field { position:relative; display:block; }
.password-field > input { width:100%; padding-right:52px; box-sizing:border-box; }
.password-field > .password-toggle { position:absolute; top:50%; right:2px; transform:translateY(-50%); display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; min-height:44px; margin:0; padding:0; border-radius:10px; color:var(--muted); text-decoration:none; }
.password-field > .password-toggle:hover { color:var(--accent); background:var(--surface-soft); }
.password-field > .password-toggle svg { width:20px; height:20px; }

/* Products Sold: Filters reads as an outlined button; the period stepper sits in a tinted bar. */
.product-more-filters > summary { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 14px; border:1px solid var(--line); border-radius:12px;
  background:#fff; color:var(--ink); font-size:13.5px; font-weight:600; cursor:pointer; list-style:none; }
.product-more-filters > summary::-webkit-details-marker { display:none; }
.product-more-filters > summary::after { content:"\25BE"; color:var(--faint-text); font-size:12px; }
.product-more-filters[open] > summary::after { content:"\25B4"; }
.product-more-filters > summary:hover { background:var(--tint); color:var(--accent-dark); }
.product-more-filters > summary:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.product-period { padding:8px; border:1px solid var(--line); border-radius:12px; background:var(--surface-soft); }
.product-period .period-step { background:#fff; border-color:var(--line); }
.product-period .period-label { color:var(--ink); font-weight:700; }
@media (max-width: 600px) {
  /* Narrow screens: compact headings that wrap between words; names never split inside a word. What still does not fit
     scrolls inside the table's own box. */
  .product-table-wrap .product-table thead th { white-space:normal; text-transform:none; letter-spacing:0; font-size:12px; }
  .product-table-wrap .product-table th, .product-table-wrap .product-table td { overflow-wrap:normal; padding-left:8px; padding-right:8px; }
}

/* ---------- Workspace overhaul, phase 1 (docs/OWNER_PAGE_REDESIGN.md) ---------- */

/* Sidebar: the owner's links sit under quiet section labels; the current page is a caramel pill. */
.nav-group-label { margin: 18px 16px 6px; color: #8E8279; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.navigation-links > .nav-group-label:first-child { margin-top: 30px; }
.navigation-links a { display: flex; align-items: center; gap: 12px; }
.navigation-links a .icon { flex: 0 0 auto; width: 18px; height: 18px; }
.navigation-links a[aria-current="page"] { background: linear-gradient(135deg, var(--caramel), var(--accent)); box-shadow: 0 6px 16px -6px rgb(141 91 76 / 55%); }
.mobile-menu .nav-group-label { margin: 14px 4px 4px; color: var(--muted); }
/* Eleven grouped links fit a 900px-tall window: a smaller logo, 44px rows and tighter label spacing. */
.sidebar:has(.nav-group-label) { padding-top: 22px; }
.sidebar:has(.nav-group-label) .sidebar-brand { gap: 10px; }
.sidebar:has(.nav-group-label) .sidebar-brand img { width: 92px; height: 92px; }
.sidebar .navigation-links:has(> .nav-group-label) { gap: 2px; }
.sidebar .navigation-links:has(> .nav-group-label) a { min-height: 44px; padding: 10px 14px; }
.sidebar .navigation-links > .nav-group-label { margin: 14px 14px 4px; }
.sidebar .navigation-links > .nav-group-label:first-child { margin-top: 22px; }

/* (a) Pill sub-navigation: a white strip of pills that stays in view below the top bar while the page scrolls. */
.section-nav { position: sticky; top: calc(var(--topbar-height, 72px) + 8px); z-index: 20; }
@media (max-width: 900px) { .section-nav { position: static; } }
@media (min-width: 901px) { html { scroll-padding-top: 156px; } }
.pill-subnav { display: flex; gap: 4px; padding: 6px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.pill-subnav a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border-radius: 12px; color: var(--muted); font-weight: 500; text-decoration: none; }
.pill-subnav a[aria-current="page"] { background: var(--accent); color: #fff; font-weight: 600; }

/* (b) 4-up KPI cards: label and icon, a large value, one line of context; the whole card opens its page. */
.kpi-strip { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 20px; padding: 0; }
@media (max-width: 1100px) { .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi-card { display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 132px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.kpi-card:hover { border-color: #D9C7B6; box-shadow: 0 10px 24px -12px rgb(35 31 29 / 22%); transform: translateY(-1px); }
.kpi-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.kpi-head { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.kpi-label { margin-right: auto; color: var(--muted); font-size: 14px; font-weight: 600; }
.kpi-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--good-bg); color: var(--good); }
.kpi-icon .icon { width: 16px; height: 16px; }
.kpi-icon.is-warn { background: var(--warn-bg); color: var(--warn); }
.kpi-value { display: block; font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi-currency { margin-right: 2px; }
.kpi-sub { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.kpi-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kpi-ring { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--surface) 72%, transparent 73%), conic-gradient(var(--caramel) var(--share, 0%), var(--tint) 0); }
.kpi-avatars { display: inline-flex; }
.mini-avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -6px; border: 2px solid var(--surface); border-radius: 50%;
  background: #E4EBE5; color: #35523D; font-size: 11.5px; font-weight: 700; }
.mini-avatar:first-child { margin-left: 0; }

/* (c) Role and status pill badges. */
.pill-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge-owner { background: var(--caramel); color: #fff; }
.badge-manager { background: var(--warn-bg); color: var(--warn); }
.badge-supervisor { background: var(--good-bg); color: var(--good); }
.badge-staff, .badge-neutral { background: #EFECE6; color: #5A5148; }
.badge-good { background: var(--good-bg); color: var(--good); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }

/* (d) Slide-over drawer: a native <dialog class="drawer"> that enters from the right; a full sheet on phones. */
dialog.drawer { position: fixed; inset: 0 0 0 auto; width: min(560px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0;
  border: 0; border-left: 1px solid var(--line); border-radius: 16px 0 0 16px; background: var(--surface); color: var(--ink); box-shadow: -24px 0 60px -20px rgb(35 31 29 / 35%); }
dialog.drawer[open] { animation: drawer-in .2s ease-out; }
dialog.drawer::backdrop { background: rgb(35 31 29 / 45%); }
.drawer-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--soft); border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 18px; }
.drawer-body { padding: 20px; overflow-y: auto; }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.drawer[open] { animation: none; } .kpi-card { transition: none; } }
@media (max-width: 600px) { dialog.drawer { width: 100vw; border-radius: 0; } }

/* (e) Audit timeline: who changed what, with the old value struck through beside the new one. */
.audit-timeline { list-style: none; margin: 0; padding: 0; }
.audit-entry { position: relative; padding: 0 0 18px 26px; }
.audit-entry::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.audit-entry:last-child::before { display: none; }
.audit-entry::after { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border: 2px solid var(--caramel); border-radius: 50%; background: var(--surface); }
.audit-meta { display: block; color: var(--muted); font-size: 12.5px; }
.audit-diff { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 4px; }
.diff-old { padding: 1px 8px; border-radius: 6px; background: var(--danger-bg); color: var(--danger); text-decoration: line-through; }
.diff-new { padding: 1px 8px; border-radius: 6px; background: var(--good-bg); color: var(--good); font-weight: 600; }
.diff-arrow { color: var(--muted); }

/* Owner dashboard: greeting with the access badge, the KPI strip, then a two-column bento. */
.hello-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hello-row .page-title { margin: 0; }
.hello-row .pill-badge { font-size: 14px; padding: 4px 14px; }
.owner-bento { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; margin-bottom: 20px; align-items: stretch; }
@media (max-width: 900px) { .owner-bento { grid-template-columns: 1fr; } }
.owner-bento h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.owner-bento > .panel > .muted { margin: 0 0 14px; }
.manager-personal-work { margin-top: 20px; }
.manager-personal-work > h2 { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.bento-account { display: flex; flex-direction: column; }
.action-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; margin: 0; padding: 0; }
@media (max-width: 640px) { .action-list { grid-template-columns: 1fr; } }
.action-list a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.action-list a:hover { background: var(--soft); }
.action-list a:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.action-list a > .icon:first-child { flex: 0 0 auto; width: 30px; height: 30px; padding: 6px; border: 1.5px solid #CDB9A5; border-radius: 50%; color: var(--caramel); }
.action-list a > span { flex: 1 1 auto; min-width: 0; }
.action-list strong { display: block; font-size: 15px; font-weight: 600; }
.action-list small { display: block; color: var(--muted); font-size: 12.5px; }
.action-list a > .icon:last-child { flex: 0 0 auto; width: 16px; height: 16px; color: var(--faint-text); }
.bento-account { background: linear-gradient(180deg, #F3EBE1, var(--soft)); }
.account-card { display: flex; align-items: center; gap: 14px; margin: 10px 0 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.account-card strong { display: block; font-size: 16px; }
.account-card .muted { font-size: 13px; overflow-wrap: anywhere; }
.account-card-details { min-width: 0; display: grid; gap: 4px; }
.account-card-details > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; font-size: 12px; overflow-wrap: anywhere; }
.account-card-details a { color: var(--accent-dark); text-decoration: none; overflow-wrap: anywhere; }
.account-card-details a:hover { text-decoration: underline; }
.account-contact-label { color: var(--muted); font-weight: 600; }
.account-card-avatar, .account-card-avatar img { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 50%; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account-actions .button { flex: 1 1 170px; justify-content: center; }
.account-team-access { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.account-team-access-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.account-team-access h3 { margin: 0; font-size: 15px; font-weight: 700; }
.account-team-access-heading .button { flex: 0 0 auto; min-height: 38px; padding: 8px 13px; font-size: 12px; }
.account-team-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.account-team-stats li { display: grid; min-width: 0; min-height: 56px; place-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); text-align: center; }
.account-team-stats strong { color: var(--ink); font-size: 11px; font-weight: 600; line-height: 1.35; }
.button-caramel { background: var(--caramel); border-color: var(--caramel); color: #fff; }
.button-caramel:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Owner dashboard sales summary follows the compact, two-column sales reference. */
.sales-summary { display: block; margin-bottom: 12px; border-top: 0; }
.sales-summary-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sales-summary-title { display: flex; min-width: 0; align-items: center; gap: 14px; }
.sales-title-icon { display: inline-flex; flex: 0 0 58px; width: 58px; height: 58px; align-items: center; justify-content: center; border-radius: 14px; background: #e8d1b3; color: #34241d; }
.sales-title-icon svg { width: 30px; height: 30px; }
.sales-heading-copy { min-width: 0; }
.sales-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.sales-summary-title h2 { margin: 0 4px 0 0; font-size: 21px; }
.sales-heading-copy > p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.sales-revenue-tag, .sales-days-tag { display: inline-flex; min-height: 23px; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 600; line-height: 1.2; text-transform: uppercase; }
.sales-revenue-tag { background: #f0e9e1; color: #66564a; }
.sales-days-tag { background: #d3efdb; color: #285d38; text-transform: none; }
.sales-period-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.sales-period-tabs a { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; padding: 6px 12px; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sales-period-tabs a:hover { background: var(--surface); color: var(--ink); }
.sales-period-tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgb(35 31 29 / 12%); }
.sales-period-tabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.monthly-sales-card.panel { padding: 0; overflow: hidden; }
.monthly-sales-header { display: flex; align-items: center; gap: 14px; padding: 24px; border-bottom: 1px solid var(--line); }
.monthly-sales-icon { display: grid; flex: 0 0 auto; place-items: center; width: 52px; height: 52px; border-radius: 12px; color: #fff; background: var(--ink); }
.monthly-sales-icon svg { width: 26px; height: 26px; }
.monthly-sales-title { flex: 1; min-width: 0; }
.monthly-sales-title > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.monthly-sales-title h2 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); }
.monthly-sales-title p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.monthly-sales-tag, .monthly-recorded-tag { padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.monthly-sales-tag { color: var(--muted); background: var(--canvas); text-transform: uppercase; letter-spacing: .3px; }
.monthly-recorded-tag { color: #315940; background: #d7eddf; }
.monthly-year-menu { position: relative; flex: 0 0 auto; }
.monthly-year-menu summary { display: flex; min-width: 68px; min-height: 40px; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; list-style: none; font-size: 13px; }
.monthly-year-menu summary::-webkit-details-marker { display: none; }
.monthly-year-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.monthly-year-menu nav { position: absolute; z-index: 3; top: calc(100% + 5px); right: 0; display: grid; min-width: 90px; max-height: 240px; overflow-y: auto; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.monthly-year-menu nav a { padding: 8px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 13px; }
.monthly-year-menu nav a:hover, .monthly-year-menu nav a[aria-current="page"] { background: var(--canvas); }
.monthly-sales-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 16px 24px; border-bottom: 1px solid var(--line); }
.monthly-sales-metrics section { min-width: 0; padding: 0 20px; border-left: 1px solid var(--line); }
.monthly-sales-metrics section:first-child { padding-left: 0; border-left: 0; }
.monthly-sales-metrics section:last-child { padding-right: 0; }
.monthly-sales-metrics section > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.monthly-sales-metrics strong { display: block; font-size: clamp(16px, 2vw, 22px); line-height: 1.35; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.monthly-sales-metrics strong small { font-size: 13px; font-weight: 500; }
.monthly-sales-metrics section > small { display: block; color: var(--muted); font-size: 12px; }
.monthly-sales-metrics em { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: var(--canvas); font-size: 11px; font-style: normal; font-weight: 600; vertical-align: 3px; }
.monthly-sales-content { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; padding: 16px 22px 18px; }
.monthly-bar-chart { min-width: 0; min-height: 310px; padding: 12px 12px 0 0; border-right: 1px solid var(--line); }
.monthly-bar-list { display: grid; height: 100%; min-height: 298px; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: clamp(4px, .9vw, 14px); margin: 0; padding: 0; list-style: none; }
.monthly-bar-item { display: grid; min-width: 0; height: 100%; grid-template-rows: 22px minmax(0, 1fr) 24px; align-items: end; gap: 4px; text-align: center; }
.monthly-bar-value { min-height: 20px; font-size: clamp(10px, 1vw, 14px); font-weight: 600; white-space: nowrap; }
.monthly-bar-track { display: flex; width: 100%; height: 100%; min-height: 90px; align-items: end; justify-content: center; }
.monthly-bar-track > span, .monthly-bar-track > i { display: block; width: min(100%, 42px); min-height: 4px; border-radius: 6px 6px 3px 3px; background: #aa7043; }
.monthly-bar-item.is-peak .monthly-bar-track > span { background: var(--ink); }
.monthly-bar-item.is-unknown .monthly-bar-track > i { height: 100%; border: 1px dashed #c9b9a7; background: #f5eee4; }
.monthly-bar-label { color: var(--ink); font-size: 12px; text-align: center; }
.monthly-bar-item.is-unknown .monthly-bar-label { color: #9c8b7b; }
.monthly-month-list { display: grid; grid-auto-flow: column; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, auto)); align-content: start; gap: 8px; margin: 0; padding: 0; list-style: none; }
.monthly-month-card { min-width: 0; padding: 9px 10px 8px; border: 1px solid var(--line); border-radius: 11px; }
.monthly-month-card-heading, .monthly-month-card-details { display: flex; min-width: 0; align-items: center; gap: 6px; }
.monthly-month-card-heading strong { min-width: 0; margin-right: auto; font-size: 12px; white-space: nowrap; }
.monthly-change, .monthly-days { flex: 0 0 auto; padding: 2px 6px; border-radius: 999px; background: var(--canvas); font-size: 10px; white-space: nowrap; }
.monthly-change { background: #f8dddd; color: #8d3939; }
.monthly-month-card.is-up .monthly-change { background: #d8efdf; color: #315940; }
.monthly-change.is-neutral { background: var(--canvas); color: var(--muted); }
.monthly-quarter { color: var(--muted); font-size: 11px; }
.monthly-month-card-details { justify-content: space-between; margin-top: 3px; }
.monthly-month-card-details > span:first-child { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.monthly-days { padding-inline: 5px; font-size: 9px; }
@media (max-width: 1000px) {
  .monthly-sales-content { grid-template-columns: minmax(0, 1fr); }
  .monthly-bar-chart { min-height: 270px; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .monthly-bar-list { min-height: 255px; }
}
@media (max-width: 700px) {
  .monthly-sales-header { flex-wrap: wrap; padding: 18px; }
  .monthly-sales-title { flex-basis: calc(100% - 70px); }
  .monthly-sales-title > div { gap: 6px; }
  .monthly-sales-tag, .monthly-recorded-tag { font-size: 9px; }
  .monthly-year-menu { margin-left: auto; }
  .monthly-sales-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; padding: 16px 18px; }
  .monthly-sales-metrics section { padding: 0 12px; }
  .monthly-sales-metrics section:nth-child(odd) { padding-left: 0; border-left: 0; }
  .monthly-sales-metrics section:nth-child(even) { padding-right: 0; }
  .monthly-sales-content { padding: 14px 14px 16px; }
}
@media (max-width: 480px) {
  .monthly-sales-icon { width: 44px; height: 44px; }
  .monthly-sales-title { flex-basis: calc(100% - 60px); }
  .monthly-sales-title h2 { font-size: 19px; }
  .monthly-sales-title p { font-size: 12px; }
  .monthly-bar-list { min-height: 205px; gap: 3px; }
  .monthly-bar-chart { min-height: 220px; }
  .monthly-bar-label { font-size: 10px; }
  .monthly-bar-value { font-size: 9px; }
  .monthly-month-list { gap: 6px; }
  .monthly-month-card { padding: 8px 7px; }
  .monthly-month-card-heading { gap: 4px; }
  .monthly-month-card-heading strong, .monthly-month-card-details > span:first-child { font-size: 10px; }
  .monthly-quarter { display: none; }
  .monthly-change { padding: 2px 4px; font-size: 9px; }
  .monthly-days { font-size: 8px; }
}

.team-access-dashboard.panel { gap: 0; padding: 22px; background: var(--surface); }
.team-access-dashboard-header { display: flex; align-items: center; gap: 12px; }
.team-access-dashboard-icon { display: grid; flex: 0 0 auto; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #f3e8df; color: var(--accent-dark); }
.team-access-dashboard-icon .icon { width: 26px; height: 26px; }
.team-access-dashboard-header > div { min-width: 0; flex: 1; }
.team-access-dashboard-header h2 { margin: 0; font-size: clamp(18px, 2vw, 23px); }
.team-access-dashboard-header p { margin: 1px 0 0; color: var(--muted); font-size: 13px; }
.team-access-dashboard-header > .button { flex: 0 0 auto; min-height: 40px; padding: 8px 11px; font-size: 12px; }
.team-access-dashboard-header > .button span { margin-left: 4px; }
.team-access-overview { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-top: 20px; }
.team-access-overview > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.team-access-overview > div:first-child strong { font-size: 34px; line-height: 1; }
.team-access-overview > div:first-child span { color: var(--muted); font-size: 13px; }
.team-access-overview > span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.team-access-meter { display: flex; grid-column: 1 / -1; height: 9px; gap: 4px; overflow: hidden; border-radius: 999px; background: var(--canvas); }
.team-access-meter i { min-width: 0; }
.team-access-meter .is-staff { background: #3e7657; }
.team-access-meter .is-owner { background: #a55335; }
.team-access-meter .is-inactive { background: #c9c0b7; }
.team-access-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }
.team-access-stat-grid li { display: flex; min-width: 0; min-height: 72px; flex-direction: column; justify-content: center; padding: 10px 12px; border-radius: 13px; background: #f0f5f0; }
.team-access-stat-grid li.is-owner { background: #fbf0e9; }
.team-access-stat-grid li.is-inactive { background: #f2f0ed; }
.team-access-stat-grid li > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.team-access-stat-grid li > span::before { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #3e7657; content: ""; }
.team-access-stat-grid li.is-owner > span::before { background: #a55335; }
.team-access-stat-grid li.is-inactive > span::before { background: #a79e95; }
.team-access-stat-grid li > strong { margin-top: 1px; font-size: 22px; line-height: 1.15; }
.team-access-warning { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 11px; border: 1px solid #efd7b4; border-radius: 13px; background: #fbf4e8; }
.team-access-warning-icon { display: grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; border: 2px solid #98671c; border-radius: 50%; color: #98671c; font-size: 14px; font-weight: 700; }
.team-access-warning p { display: grid; min-width: 0; flex: 1; gap: 2px; margin: 0; }
.team-access-warning p strong { font-size: 12px; line-height: 1.35; }
.team-access-warning p span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.team-access-warning > .button { flex: 0 0 auto; min-height: 38px; padding: 7px 10px; font-size: 11px; }
.team-access-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); }
.team-online-summary { display: flex; min-width: 0; align-items: center; gap: 9px; }
.team-online-avatars { display: flex; padding-left: 3px; }
.team-online-avatar { display: grid; width: 33px; height: 33px; margin-left: -3px; place-items: center; border: 2px solid var(--surface); border-radius: 50%; background: #e7d2c4; color: #594338; font-size: 11px; font-weight: 700; }
.team-online-avatar:nth-child(2) { background: #d7e5d9; }
.team-online-avatar:nth-child(3) { background: #eee2c9; }
.team-online-summary > strong { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; white-space: nowrap; }
.team-online-summary > strong::before { width: 8px; height: 8px; border-radius: 50%; background: #3e7657; content: ""; }
.team-access-footer nav { display: flex; flex-wrap: wrap; gap: 7px; }
.team-access-footer nav .button { min-height: 38px; padding: 7px 10px; background: #f5f0e9; font-size: 11px; }
.team-access-footer nav .icon { width: 14px; height: 14px; }
@media (max-width: 1100px) {
  .team-access-dashboard.panel { padding: 18px; }
  .team-access-dashboard-header { flex-wrap: wrap; }
  .team-access-dashboard-header > .button { margin-left: 66px; }
  .team-access-warning { flex-wrap: wrap; }
  .team-access-warning p { flex-basis: calc(100% - 40px); }
  .team-access-warning > .button { margin-left: 35px; }
}
@media (max-width: 520px) {
  .team-access-stat-grid { gap: 6px; }
  .team-access-stat-grid li { min-height: 66px; padding: 8px; }
  .team-access-stat-grid li > span { font-size: 10px; }
  .team-access-stat-grid li > strong { font-size: 19px; }
  .team-access-footer { align-items: flex-start; }
}
@media (max-width: 390px) {
  .team-access-dashboard-header > .button { margin-left: 0; }
  .team-access-overview > span { font-size: 9px; }
  .team-access-stat-grid { grid-template-columns: 1fr; }
  .team-access-stat-grid li { min-height: 52px; }
  .team-access-footer nav { width: 100%; }
  .team-access-footer nav .button { flex: 1; justify-content: center; }
}
.sales-summary-content { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 24px; padding: 22px 0 24px; }
.sales-summary-content.sales-summary-no-chart { grid-template-columns: minmax(0, 1fr); }
.sales-summary-no-chart .sales-summary-left { padding-right: 0; border-right: 0; }
.sales-summary-no-chart .sales-supporting-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sales-summary-left { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; align-self: stretch; padding-right: 28px; border-right: 1px solid var(--line); }
.gross-sales { min-width: 0; padding: 25px 24px; border-radius: 15px; background: #30241f; color: #fff; }
.gross-sales-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: #d7c7ba; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sales-change { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 9px; border-radius: 999px; background: var(--good-bg); color: var(--good); font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.sales-change.is-down { background: var(--danger-bg); color: var(--danger); }
.sales-change > span:last-child { margin-left: 4px; font-weight: 500; }
.gross-sales-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 8px 0 0; color: #fff; font-size: clamp(30px, 3.2vw, 43px); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gross-sales-total > span { color: #d7c7ba; font-size: 13px; font-weight: 500; }
.gross-sales-empty { margin: 10px 0 0; color: #e5d9d0; font-size: 12px; }
.gross-sales-empty a { color: #fff; }
.sales-supporting-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.sales-supporting-card { display: flex; min-width: 0; min-height: 68px; flex-direction: column; justify-content: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.sales-supporting-card > span { color: var(--muted); font-size: 11px; }
.sales-supporting-card > strong { margin-top: 4px; color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sales-supporting-card > small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.sales-detail-grid-single { grid-template-columns: minmax(0, 1fr); }
.sales-day-highlights, .sales-payment-mix { min-width: 0; margin-top: 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.sales-day-highlights p { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 2px 10px; margin: 0; font-size: 12px; line-height: 1.5; }
.sales-day-highlights p + p { margin-top: 3px; }
.sales-day-highlights p strong { color: var(--ink); }
.sales-day-highlight-date { color: var(--muted); text-align: center; }
.sales-day-highlight-total { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sales-payment-mix h3 { margin: 0 0 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
.sales-payment-bar { display: flex; width: 100%; height: 8px; overflow: hidden; border-radius: 999px; background: var(--line); }
.sales-payment-bar > span { height: 100%; }
.payment-tone-1 { background: #302925; }
.payment-tone-2 { background: var(--accent-dark); }
.payment-tone-3 { background: var(--caramel); }
.payment-tone-other { background: #b7aaa0; }
.sales-payment-labels { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.sales-payment-labels > span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.sales-payment-labels i { width: 8px; height: 8px; border-radius: 50%; }
.sales-visualizations { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 18px; min-width: 0; }
.sales-visual-panel { min-width: 0; }
.sales-visual-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.sales-visual-heading h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sales-visual-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.sales-visual-heading > span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.sales-chart-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.sales-chart-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.sales-chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--caramel); }
.sales-chart-legend i.is-peak { background: var(--accent-dark); }
.daily-sales-chart { margin: 0; padding: 13px 12px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.daily-sales-month { margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 700; text-align: center; }
.daily-sales-bars { display: grid; grid-template-columns: repeat(var(--sales-day-count), minmax(0, 1fr)); align-items: end; gap: 4px; min-height: 132px; list-style: none; margin: 0; padding: 0; }
.daily-sales-bars li { display: grid; grid-template-rows: 92px auto; align-items: end; gap: 7px; min-width: 0; text-align: center; }
.daily-sales-bar-track { display: flex; align-items: end; justify-content: center; height: 100%; }
.daily-sales-bar { display: block; width: min(100%, 30px); min-height: 2px; border-radius: 5px 5px 2px 2px; background: var(--caramel); }
.daily-sales-bars .is-peak .daily-sales-bar { background: var(--accent-dark); }
.daily-sales-bars .is-zero .daily-sales-bar { min-height: 0; }
.daily-sales-bar-unknown { width: min(100%, 30px); height: 3px; border-top: 2px dashed #B8AA9B; }
.daily-sales-bars time { color: var(--muted); font-size: 9px; white-space: nowrap; }
.sales-chart-empty { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.category-sales-stack { display: flex; width: 100%; height: 14px; overflow: hidden; border-radius: 999px; background: #E5DCD1; }
.category-sales-stack > span { height: 100%; }
.category-sales-cards li.category-tone-1 strong i { background: linear-gradient(90deg, #352820, #79665C 72%); }
.category-sales-stack .category-tone-1 { background: linear-gradient(90deg, #352820, #79665C 55%, #503522); }
.category-sales-cards li.category-tone-2 strong i { background: linear-gradient(90deg, #503522, #A78367 72%); }
.category-sales-stack .category-tone-2 { background: linear-gradient(90deg, #503522, #A78367 55%, #75513A); }
.category-sales-cards li.category-tone-3 strong i { background: linear-gradient(90deg, #75513A, #C58C75 72%); }
.category-sales-stack .category-tone-3 { background: linear-gradient(90deg, #75513A, #C58C75 55%, #9B6B2F); }
.category-sales-cards li.category-tone-4 strong i { background: linear-gradient(90deg, #9B6B2F, #C49A61 72%); }
.category-sales-stack .category-tone-4 { background: linear-gradient(90deg, #9B6B2F, #C49A61 55%, #A64E32); }
.category-sales-cards li.category-tone-5 strong i { background: linear-gradient(90deg, #A64E32, #C77759 72%); }
.category-sales-stack .category-tone-5 { background: linear-gradient(90deg, #A64E32, #C77759 55%, #96545B); }
.category-sales-cards li.category-tone-6 strong i { background: linear-gradient(90deg, #96545B, #B57980 72%); }
.category-sales-stack .category-tone-6 { background: linear-gradient(90deg, #96545B, #B57980 55%, #607451); }
.category-sales-cards li.category-tone-7 strong i { background: linear-gradient(90deg, #607451, #82936F 72%); }
.category-sales-stack .category-tone-7 { background: linear-gradient(90deg, #607451, #82936F 55%, #7F8B5C); }
.category-sales-cards li.category-tone-8 strong i { background: linear-gradient(90deg, #7F8B5C, #A0AA7D 72%); }
.category-sales-stack .category-tone-8 { background: linear-gradient(90deg, #7F8B5C, #A0AA7D 55%, #34495C); }
.category-sales-cards li.category-tone-9 strong i { background: linear-gradient(90deg, #34495C, #64798D 72%); }
.category-sales-stack .category-tone-9 { background: linear-gradient(90deg, #34495C, #64798D 55%, #527985); }
.category-sales-cards li.category-tone-10 strong i { background: linear-gradient(90deg, #527985, #7397A1 72%); }
.category-sales-stack .category-tone-10 { background: linear-gradient(90deg, #527985, #7397A1 55%, #6D6870); }
.category-sales-cards li.category-tone-11 strong i { background: linear-gradient(90deg, #6D6870, #928D95 72%); }
.category-sales-stack .category-tone-11 { background: linear-gradient(90deg, #6D6870, #928D95 55%, #647487); }
.category-sales-cards li.category-tone-12 strong i { background: linear-gradient(90deg, #647487, #8B9AA9 72%); }
.category-sales-stack .category-tone-12 { background: linear-gradient(90deg, #647487, #8B9AA9 55%, #65584A); }
.category-sales-cards li.category-tone-13 strong i { background: linear-gradient(90deg, #65584A, #9B8B79 72%); }
.category-sales-stack .category-tone-13 { background: linear-gradient(90deg, #65584A, #9B8B79 55%, #9A938A); }
.category-sales-cards li.category-tone-14 strong i { background: linear-gradient(90deg, #9A938A, #B8B1A8 72%); }
.category-sales-stack .category-tone-14 { background: linear-gradient(90deg, #9A938A, #B8B1A8 55%, #352820); }
.category-sales-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 9px 0 0; padding: 0; }
.category-sales-cards li { display: grid; gap: 4px; min-width: 0; padding: 10px; border: 1px solid #D8CCBE; border-radius: 11px; background: #F7F2EB; transition: transform .2s ease, box-shadow .2s ease; }
.category-sales-cards li:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(35,31,29,.06); }
.category-sales-cards strong { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12px; overflow-wrap: anywhere; }
.category-sales-cards strong i { flex: 0 0 auto; width: 10px; height: 10px; border: 1px solid rgba(0,0,0,.08); border-radius: 50%; background: var(--caramel); }
.category-sales-cards li > span { color: var(--muted); font-size: 11px; line-height: 1.35; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .sales-summary-header { align-items: flex-start; flex-direction: column; }
  .sales-summary-title { align-items: flex-start; }
  .sales-period-tabs { width: 100%; }
  .sales-period-tabs a { flex: 1 1 auto; padding-inline: 8px; }
  .sales-summary-content { grid-template-columns: 1fr; }
  .daily-sales-bars { grid-template-columns: none; grid-auto-columns: minmax(22px, 1fr); grid-auto-flow: column; overflow-x: auto; }
  .sales-summary-no-chart .sales-supporting-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sales-summary-left { justify-content: center; align-self: auto; gap: 0; padding-right: 0; padding-bottom: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .sales-supporting-metrics, .category-sales-cards { grid-template-columns: 1fr 1fr; }
  .sales-summary-no-chart .sales-supporting-metrics { grid-template-columns: 1fr 1fr; }
  .sales-title-icon { flex-basis: 46px; width: 46px; height: 46px; }
  .sales-title-icon svg { width: 24px; height: 24px; }
  .sales-title-line { gap: 5px; }
  .sales-summary-title h2 { font-size: 18px; }
  .sales-revenue-tag, .sales-days-tag { font-size: 9px; }
  .gross-sales { padding: 20px 17px; }
  .sales-supporting-card { padding: 11px; }
  .sales-supporting-card > strong { font-size: 15px; }
}

/* Phones: the four figures stay two across from 360px so they fit one screen; values shrink, nothing is dropped.
   Below 360px each card takes the full width. Placed after the base KPI rules so these win. */
@media (max-width: 520px) {
  .kpi-strip { gap: 10px; }
  .kpi-card { min-height: 0; padding: 14px; gap: 4px; }
  .kpi-label { font-size: 12.5px; }
  .kpi-icon { width: 26px; height: 26px; }
  .kpi-value { font-size: 18px; letter-spacing: -.2px; white-space: nowrap; }
  .kpi-sub { font-size: 12px; }
  .kpi-ring { width: 36px; height: 36px; }
  .kpi-avatars { display: none; }
}
@media (max-width: 359px) { .kpi-strip { grid-template-columns: 1fr; } .kpi-value { font-size: 22px; } }

/* Global workspace tools: truthful alerts, access-aware page search, and contextual guidance. */
.topbar { gap: 14px; }
.topbar-account { flex: 0 0 auto; gap: 8px; margin-left: 0; }
.breadcrumb { flex: 0 0 auto; }
.workspace-search { position: relative; flex: 1 1 360px; min-width: 180px; max-width: 480px; margin-inline: auto; }
.workspace-search-field { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); box-shadow: 0 2px 6px rgb(35 31 29 / 5%); }
.workspace-search-field:focus-within { border-color: var(--caramel); box-shadow: 0 0 0 3px rgb(154 111 75 / 16%); }
.workspace-search-field > .icon { width: 19px; height: 19px; flex: 0 0 auto; }
.workspace-search-field input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=range]):not([type=submit]):not([type=button]) { width: 100%; min-width: 0; height: 42px; min-height: 0; padding: 0; appearance: none; border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; color: var(--ink); font: inherit; font-size: 13px; }
.workspace-search-field input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=range]):not([type=submit]):not([type=button]):focus { border: 0; outline: 0; box-shadow: none; }
.workspace-search-field input::placeholder { color: var(--muted); opacity: 1; }
.workspace-search-results { position: absolute; z-index: 45; top: calc(100% + 8px); left: 0; right: 0; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 16px 40px rgb(35 31 29 / 18%); }
.workspace-search-results nav { display: grid; gap: 3px; max-height: min(55vh, 360px); overflow-y: auto; }
.workspace-search-results nav a { min-height: 40px; display: flex; align-items: center; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 13px; }
.workspace-search-results nav a:hover, .workspace-search-results nav a:focus-visible { background: var(--surface-soft); }
.workspace-search-results [data-search-empty] { margin: 8px 10px; color: var(--muted); font-size: 13px; }
.account-menu { position: relative; }
.account-menu > summary { list-style: none; cursor: pointer; }
.account-menu > nav { position: absolute; z-index: 45; top: calc(100% + 10px); right: 0; width: min(340px, calc(100vw - 32px)); padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 16px 40px rgb(35 31 29 / 18%); }
.account-menu > nav { display: grid; gap: 3px; max-height: min(55vh, 360px); overflow-y: auto; }
.account-menu > nav a { min-height: 40px; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 13px; }
.account-menu > nav a .icon { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); }
.account-menu > nav a:hover { background: var(--surface-soft); }
.shell-icon-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; box-sizing: border-box; padding: 7px 10px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--ink); text-decoration: none; font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.shell-icon-button:hover, .account-menu[open] > summary { border-color: var(--line); background: var(--surface); }
.shell-icon-button:focus-visible, .account-menu > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shell-icon-button .icon { width: 19px; height: 19px; }
.shell-alert-button { border-color: var(--line); background: var(--surface); box-shadow: 0 2px 6px rgb(35 31 29 / 5%); }
.shell-alert-button:hover { border-color: var(--caramel); box-shadow: 0 2px 8px rgb(35 31 29 / 10%); }
.alert-count[hidden] { display: none; }
.alert-count { min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 4px; border-radius: 999px; background: #A43B32; color: #fff; font-size: 10px; line-height: 1; }
.alerts-drawer-head > div { min-width: 0; }
.alerts-drawer-head h2 { display: flex; align-items: center; gap: 9px; }
.alerts-dialog-count { min-width: 20px; height: 20px; margin: 0; font-size: 11px; font-weight: 700; }
.alerts-drawer-close { flex: 0 0 auto; min-width: 76px; white-space: nowrap; }
.alerts-panel { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.alerts-imports-panel { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.alerts-imports-panel h3 { margin: 0 6px 6px; color: var(--ink); font-size: 13px; }
.alerts-panel ul { max-height: min(55vh, 400px); overflow-y: auto; list-style: none; padding: 0; margin: 0; }
.alerts-panel li + li { border-top: 1px solid var(--line); }
.alerts-panel li a { display: grid; gap: 3px; padding: 10px 6px; color: var(--ink); text-decoration: none; }
.alerts-panel li a:hover { background: var(--surface-soft); }
.alerts-panel li strong { font-size: 12px; }
.alerts-panel li span, .alerts-panel li time { color: var(--muted); font-size: 11px; line-height: 1.45; }
.alerts-panel li time { font-size: 10px; }
.alerts-panel .alerts-empty { padding: 12px 6px; color: var(--muted); font-size: 12px; }
.account-menu > summary { display: flex; align-items: center; gap: 5px; padding: 4px; }
.account-menu > summary .account-text { align-items: flex-end; max-width: 190px; }
.account-menu > summary .account-text strong { font-size: 12px; white-space: nowrap; }
.account-menu > summary > .icon { width: 14px; height: 14px; color: var(--muted); }
.account-menu > nav { min-width: 180px; }
.account-menu > nav a { min-height: 38px; }
.topbar .user-avatar { width: 46px; height: 46px; }
.account-menu > summary { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 4px; }
.account-menu > summary:hover, .account-menu[open] > summary { border-color: var(--caramel); box-shadow: 0 2px 8px rgb(35 31 29 / 10%); }
#help-drawer .drawer-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
#help-drawer .drawer-body .page-help-body { margin: 0; padding: 0; border: 0; background: transparent; }
@media (max-width: 760px) {
  .topbar-account { flex: 1 1 auto; justify-content: flex-end; margin-left: auto; }
  .workspace-search { order: 4; flex: 1 0 100%; min-width: 0; max-width: none; margin: 4px 0 0; }
  .topbar-account { order: 2; flex: 0 0 auto; }
  .mobile-menu { order: 3; }
  .shell-help-button { width: 44px; padding: 0; }
  .shell-help-button span, .shell-alert-button > span:not(.alert-count) { display: none; }
  .account-menu > summary .user-avatar, .topbar .user-avatar { width: 40px; height: 40px; }
}
@media (max-width: 380px) {
  .topbar-account { gap: 2px; }
  .shell-icon-button { padding-inline: 7px; }
}

/* Daily Operations: use the prototype's full-size controls and card spacing inside the application shell. */
.operations-workspace { width: 100%; max-width: 1152px; }
.operations-hero { grid-template-columns: 58px minmax(0, 1fr) minmax(170px, auto); gap: 16px; margin: 0 0 18px; padding: 18px 20px; border-radius: 16px; }
.operations-hero-mark { width: 58px; height: 58px; border-radius: 12px; }
.operations-hero-copy .page-title { font-size: 24px; line-height: 1.25; }
.operations-hero-date { margin: 2px 0 6px; font-size: 13px; }
.operations-hero-status { gap: 7px; }
.operations-hero-status .operations-status-pill { min-height: 24px; padding: 4px 9px; font-size: 11px; }
.operations-status-pill i { width: 7px; height: 7px; }
.operations-hero-status .operations-status-areas { border: 1px solid rgb(111 78 55 / 16%); background: var(--tint); color: var(--accent); }
.operations-hero-actions { min-width: 170px; gap: 8px; }
.operations-date-pill { min-height: 38px; padding: 7px 10px; font-size: 11px; }
.operations-date-pill .icon { width: 15px; height: 15px; }
.operations-hero-actions .operations-alert-button { min-height: 40px; padding: 8px 12px; border-radius: 10px; font-size: 12px; }
.operations-workspace > .section-nav { gap: 5px; margin-bottom: 18px; padding: 5px; overflow-x: auto; overflow-y: hidden; border-radius: 14px; scrollbar-width: none; }
.operations-workspace > .section-nav::-webkit-scrollbar { display: none; }
.operations-workspace > .section-nav a { min-height: 32px; gap: 7px; padding: 7px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.operations-workspace > .section-nav { padding: 4px; }
.operations-workspace .operations-status-attention { background: var(--warn-bg); color: var(--warn); }
.operations-workspace > .section-nav a .icon { width: 14px; height: 14px; }
.operations-workspace-grid { gap: 18px; }
.operations-workspace .operations-workspace-card { min-height: 228px; padding: 18px; border-radius: 16px; }
.operations-workspace .operations-card-heading { gap: 10px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.operations-workspace .operations-card-heading h2 { gap: 9px; font-size: 16px; letter-spacing: -.2px; }
.operations-workspace .operations-card-icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 8px; }
.operations-workspace .operations-card-icon .icon { width: 17px; height: 17px; }
.operations-workspace .operations-card-count { padding: 4px 8px; font-size: 10px; }
.operations-workspace .operations-card-body { grid-template-columns: minmax(0, 1fr) clamp(170px, 40%, 184px); gap: 10px; min-height: 132px; }
.operations-workspace .operations-inset { padding: 8px; border-radius: 10px; }
.operations-workspace .operations-handover-inset > strong { font-size: 11px; }
.operations-workspace .operations-handover-inset > span:not(.operations-handover-illustration) { font-size: 11px; line-height: 1.45; }
.operations-workspace .operations-handover-illustration { width: 48px; height: 48px; }
.operations-workspace .operations-handover-illustration .icon { width: 40px; height: 40px; }
.operations-workspace .operations-quick-actions { gap: 7px; }
.operations-workspace .operations-quick-actions h3 { font-size: 11px; line-height: 1.4; }
.operations-workspace .operations-quick-actions .button { min-height: 38px; padding: 8px 9px; border-radius: 9px; font-size: 11px; line-height: 1.3; }
.operations-workspace .operations-card-footnote { margin-top: 7px; font-size: 10px; }
.operations-workspace .operations-row-copy strong { font-size: 11px; line-height: 1.4; }
.operations-workspace .operations-row-copy small { font-size: 10px; line-height: 1.4; }
.operations-workspace .operations-note-marker { width: 7px; height: 7px; flex-basis: 7px; }
.operations-workspace .operations-note-list > li { gap: 8px; padding: 7px 0; }
.operations-workspace .operations-note-list .button-small { min-height: 30px; padding: 5px 8px; font-size: 10px; }
.operations-workspace .operations-checklist-layout { grid-template-columns: minmax(0, 1fr) clamp(170px, 40%, 184px); }
.operations-workspace .operations-checklist-summary .operations-progress { height: 9px; }
.operations-workspace .operations-checklist-caption { margin: 4px 0 6px; font-size: 10px; line-height: 1.4; }
.operations-workspace .operations-checklist-group { margin-top: 6px; }
.operations-workspace .operations-checklist-group header { gap: 8px; padding-bottom: 4px; }
.operations-workspace .operations-checklist-group header strong { font-size: 11px; }
.operations-workspace .operations-checklist-group header span { font-size: 9px; }
.operations-workspace .operations-task-list > li { gap: 6px; padding: 4px 0; }
.operations-workspace .operations-task-list .operations-task { min-height: 24px; gap: 7px; font-size: 10px; line-height: 1.35; }
.operations-workspace .operations-task-list .operations-checkbox { width: 16px; height: 16px; flex-basis: 16px; }
.operations-workspace .operations-task-list .operations-task.is-complete .operations-checkbox::after { width: 4px; height: 8px; }
.operations-workspace .operations-more-tasks { font-size: 9px; }
.operations-workspace .operations-checklist-action .button { min-height: 38px; font-size: 11px; }
.operations-workspace .operations-waste-layout { grid-template-columns: minmax(0, 1fr) clamp(170px, 40%, 184px); }
.operations-workspace .operations-waste-inset > span:not(.operations-waste-illustration) { font-size: 11px; line-height: 1.45; }
.operations-workspace .operations-clear-title { font-size: 17px; }
.operations-workspace .operations-waste-illustration { width: 42px; height: 42px; }
.operations-workspace .operations-waste-illustration .icon { width: 34px; height: 34px; }
.operations-workspace .operations-waste-list > li { gap: 8px; padding: 6px 0; }
.operations-workspace .operations-waste-list > li > time { flex-basis: 54px; font-size: 9px; }
.operations-workspace .operations-waste-list .operations-row-copy strong { font-size: 10px; }
.operations-workspace .operations-reason-tag { padding: 3px 7px; font-size: 9px; }
.operations-workspace .operations-stock-layout { grid-template-columns: minmax(0, 1fr) clamp(170px, 40%, 184px); }
.operations-workspace .operations-stock-health,
.operations-workspace .operations-stock-alert-count { margin-bottom: 6px; padding: 6px 8px; font-size: 10px; line-height: 1.4; }
.operations-workspace .operations-stock-list { gap: 5px; }
.operations-workspace .operations-stock-list > li { gap: 5px; padding: 6px 5px; border-radius: 8px; }
.operations-workspace .operations-stock-item strong { font-size: 10px; line-height: 1.3; }
.operations-workspace .operations-stock-item span { font-size: 9px; line-height: 1.3; }
.operations-workspace .operations-stock-list .stock-status { padding: 3px 6px; font-size: 9px; }
.operations-workspace .operations-empty-compact { margin: 7px 0; font-size: 10px; line-height: 1.4; }

@media (min-width: 761px) and (max-width: 1100px) {
  body:has(.operations-workspace) .app-shell { grid-template-columns: 200px minmax(0, 1fr); }
  body:has(.operations-workspace) .sidebar:has(.nav-group-label) { padding: 22px 18px 22px; }
  body:has(.operations-workspace) .sidebar:has(.nav-group-label) .sidebar-brand { gap: 10px; }
  body:has(.operations-workspace) .sidebar:has(.nav-group-label) .sidebar-brand img { width: 92px; height: 92px; }
  body:has(.operations-workspace) .sidebar:has(.nav-group-label) .sidebar-brand span { font-size: 9px; letter-spacing: 2px; }
  body:has(.operations-workspace) .sidebar .navigation-links:has(> .nav-group-label) { gap: 2px; }
  body:has(.operations-workspace) .sidebar .navigation-links:has(> .nav-group-label) > .nav-group-label { margin: 14px 14px 4px; font-size: 10.5px; letter-spacing: .14em; }
  body:has(.operations-workspace) .sidebar .navigation-links:has(> .nav-group-label) a { min-height: 44px; gap: 8px; padding: 10px; border-radius: 12px; font-size: 13px; line-height: 1.4; }
  body:has(.operations-workspace) .sidebar .navigation-links:has(> .nav-group-label) a .icon { width: 18px; height: 18px; }
  body:has(.operations-workspace) .sidebar-note { margin: 24px 8px; padding: 17px; }
  body:has(.operations-workspace) .sidebar-note .cup-mark { width: 54px; height: 54px; }
  body:has(.operations-workspace) .sidebar-note p { font-size: 11px; line-height: 1.8; }
  body:has(.operations-workspace) .sidebar-caption { display: block; }
  body:has(.operations-workspace) .logout-form button { min-height: 44px; gap: 12px; padding: 13px 16px; font-size: 13px; }
  body:has(.operations-workspace) .logout-form button .icon { width: 20px; height: 20px; }
  body:has(.operations-workspace) .topbar { min-height: 64px; padding: 10px 24px; gap: 14px; }
  body:has(.operations-workspace) .breadcrumb { align-items: center; gap: 7px; font-size: 12px; line-height: 1.4; }
  body:has(.operations-workspace) .breadcrumb .crumb-current { font-size: 15px; line-height: 1.3; }
  body:has(.operations-workspace) .workspace-search { flex: 1 1 200px; min-width: 160px; max-width: 320px; }
  body:has(.operations-workspace) .workspace-search-field { min-height: 40px; gap: 8px; padding: 0 10px; }
  body:has(.operations-workspace) .workspace-search-field > .icon { width: 17px; height: 17px; }
  body:has(.operations-workspace) .workspace-search-field input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=range]):not([type=submit]):not([type=button]) { height: 38px; font-size: 12px; }
  body:has(.operations-workspace) .topbar-account { gap: 5px; }
  body:has(.operations-workspace) .shell-icon-button { min-height: 38px; gap: 5px; padding: 6px 7px; font-size: 10px; }
  body:has(.operations-workspace) .shell-icon-button .icon { width: 16px; height: 16px; }
  body:has(.operations-workspace) .topbar .user-avatar { width: 36px; height: 36px; }
  body:has(.operations-workspace) .operations-workspace { max-width: 1152px; }
  body:has(.operations-workspace) .operations-workspace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  body:has(.operations-workspace) .operations-workspace .operations-workspace-card { padding: 15px; }
}

@media (max-width: 900px) {
  .operations-workspace > .section-nav { position: static; }
}
@media (max-width: 760px) {
  .operations-workspace .operations-hero { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .operations-workspace .operations-hero-actions { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; }
  .operations-workspace .operations-hero-actions > * { flex: 0 1 auto; }
  .operations-workspace .operations-workspace-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .operations-workspace .operations-workspace-card { min-height: 0; padding: 16px; }
  .operations-workspace .operations-card-body,
  .operations-workspace .operations-checklist-layout,
  .operations-workspace .operations-waste-layout,
  .operations-workspace .operations-stock-layout { min-height: 120px; }
  .operations-workspace .operations-card-heading { align-items: center; flex-direction: row; }
}
@media (max-width: 520px) {
  .operations-workspace .operations-hero-copy .page-title { font-size: 20px; }
  .operations-workspace .operations-hero-status { gap: 5px; }
  .operations-workspace .operations-hero-status .operations-status-pill { font-size: 10px; }
  .operations-workspace .operations-card-heading h2 { font-size: 15px; }
  .operations-workspace .operations-card-body,
  .operations-workspace .operations-checklist-layout,
  .operations-workspace .operations-waste-layout,
  .operations-workspace .operations-stock-layout { grid-template-columns: minmax(0, 1fr); }
  .operations-workspace .operations-quick-actions { display: flex; }
  .operations-workspace .operations-stock-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1121px) {
  :root {
    --desktop-sidebar-width: clamp(200px, 16vw, 280px);
    --desktop-page-gutter: clamp(32px, 2.6vw, 56px);
  }
  body { font-size: clamp(14px, calc(13px + .13vw), 16px); }
  .app-shell { grid-template-columns: var(--desktop-sidebar-width) minmax(0, 1fr); }
  main, .topbar, .site-footer { padding-inline: var(--desktop-page-gutter); }
  .workspace { max-width: min(2200px, 100%); }
  body:has(.operations-workspace) .operations-workspace {
    max-width: min(2200px, 100%);
    margin-inline: auto;
  }
}

@media (min-width: 1121px) {
  .sales-summary-left { justify-content: flex-start; gap: clamp(12px, .75vw, 18px); }
  .gross-sales { padding: clamp(20px, 1.5vw, 34px); }
  .gross-sales-label { font-size: clamp(13px, .65vw, 17px); }
  .dashboard-page .gross-sales-total { font-size: clamp(36px, 2.5vw, 58px); }
  .gross-sales-total > span { font-size: clamp(15px, .85vw, 20px); }
  .dashboard-page .gross-sales-empty { font-size: clamp(13px, .65vw, 16px); }
  .sales-supporting-metrics { gap: clamp(9px, .6vw, 16px); }
  .sales-supporting-card { min-height: clamp(76px, 5.5vw, 110px); padding: clamp(12px, .9vw, 20px); }
  .sales-supporting-card > span { font-size: clamp(12px, .62vw, 16px); }
  .sales-supporting-card > strong { font-size: clamp(16px, .85vw, 21px); }
  .sales-supporting-card > small { font-size: clamp(11px, .52vw, 13px); }
  .sales-day-highlights, .sales-payment-mix { padding: clamp(12px, .8vw, 18px); }
  .sales-day-highlights p { font-size: clamp(13px, .65vw, 16px); }
  .sales-payment-mix h3 { font-size: clamp(13px, .65vw, 16px); }
  .sales-payment-labels > span { font-size: clamp(11px, .52vw, 13px); }
}

@media (min-width: 1121px) {
  .sales-visualizations {
    grid-template-rows: auto auto;
    align-content: start;
    gap: clamp(16px, 1vw, 24px);
  }
  .sales-visual-panel { display: flex; min-height: 0; flex-direction: column; }
  .sales-visual-heading { flex: 0 0 auto; margin-bottom: clamp(9px, .5vw, 14px); }
  .sales-visual-heading h3 { font-size: clamp(14px, .75vw, 18px); }
  .sales-visual-heading > span { font-size: clamp(11px, .55vw, 14px); }
  .sales-chart-legend { font-size: clamp(11px, .55vw, 14px); }
  .daily-sales-chart {
    display: flex;
    min-height: 0;
    flex: 0 0 auto;
    flex-direction: column;
    padding: clamp(14px, .8vw, 20px);
    border-color: #D8CCBE;
  }
  .daily-sales-month { margin-bottom: clamp(10px, .65vw, 16px); font-size: clamp(14px, .75vw, 18px); }
  .daily-sales-bars { min-height: 132px; flex: 0 0 auto; gap: clamp(4px, .35vw, 8px); }
  .daily-sales-bars li { grid-template-rows: 92px auto; gap: clamp(7px, .4vw, 10px); }
  .daily-sales-bars time { font-size: clamp(10px, .52vw, 13px); }
  .daily-sales-bar { background: #A56A52; }
  .daily-sales-bars .is-peak .daily-sales-bar { background: #514032; }
  .category-sales-stack { height: clamp(14px, .8vw, 20px); }
  .category-sales-cards {
    flex: 0 0 auto;
    grid-auto-rows: minmax(44px, auto);
    gap: clamp(8px, .5vw, 13px);
    margin-top: clamp(9px, .55vw, 14px);
  }
  .category-sales-cards li {
    gap: clamp(3px, .2vw, 5px);
    padding: clamp(8px, .45vw, 12px);
    border-color: #D8CCBE;
    background: #F7F2EB;
  }
  .category-sales-cards strong { gap: clamp(7px, .4vw, 10px); font-size: clamp(13px, .58vw, 15px); line-height: 1.35; }
  .category-sales-cards strong i { width: clamp(10px, .5vw, 13px); height: clamp(10px, .5vw, 13px); }
  .category-sales-cards li > span { font-size: clamp(12px, .5vw, 13px); line-height: 1.35; }
}
