/* Shared styles.
   Palette: primary ("palm") for structure, accent ("saffron") for anything about money.
   The values below are the defaults; base.html overrides them with the colours and fonts chosen
   in the restaurant settings (core/theme.py derives every shade from those two colours).
   Logical properties (inline-start/end) keep Arabic RTL and English LTR both correct. */

:root {
  --on-brand-soft: #d4e6e0;
  --on-brand-muted: #b9d6cf;
  --on-brand-faint: #8fb3aa;
  --accent-hover: #d6922b;
  --accent-light: #f3c370;
  --on-accent: #082c27;
  --kds-bg: #0b1f1c;
  --kds-card: #13302b;
  --kds-icon: #2b5049;
  --shadow-tint: rgba(14, 77, 69, .28);
  --shadow-hairline: rgba(14, 77, 69, .04);
  --overlay: rgba(8, 44, 39, .5);
  --bg: #edf2f0;
  --surface: #ffffff;
  --surface-2: #f5f8f7;
  --line: #d9e3df;
  --line-strong: #c3d2cc;
  --ink: #17282a;
  --muted: #5e7270;
  --palm: #0e4d45;
  --palm-700: #0a3a34;
  --palm-900: #082c27;
  --palm-50: #e3f0ec;
  --saffron: #e3a23a;
  --saffron-700: #a8700f;
  --saffron-50: #fcf2df;
  --success: #1f7a4d;
  --success-50: #e2f3ea;
  --warning: #9a5d0e;
  --warning-50: #fbefd9;
  --danger: #b5382a;
  --danger-50: #fbe7e4;
  --info: #24609a;
  --info-50: #e3eef8;
  --wash-1: #f1eefa;
  --wash-2: #eef3f2;
  --side-top: #0e4d45;
  --side-bottom: #4f4596;
  --glow: rgba(146, 134, 208, .22);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 40px -26px var(--shadow-tint);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  /* Geometric Kufic for headings and names; it echoes the star pattern. Body text stays in Plex. */
  --font-display: "Reem Kufi", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  /* Eight-point star (khatam) tile, used on the sidebar and the login panel. */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.075' stroke-width='1'%3E%3Crect x='16' y='16' width='24' height='24'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3Ccircle cx='28' cy='28' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--palm); text-decoration: none; }
a:hover { color: var(--palm-700); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.35; font-weight: 600; }
/* Kufi only at display sizes; below ~20px it gets cramped, so section headings stay in Plex. */
h1 { font-size: 1.45rem; font-family: var(--font-display); }
h2 { font-size: 1.05rem; }
.display { font-family: var(--font-display); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }

.icon {
  width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
[dir="rtl"] .icon-flip { transform: scaleX(-1); }

/* ---------- Layout ----------
   White cards float on a soft wash of the restaurant's two colours. The sidebar is one rounded
   panel running from the primary colour to the accent, with the person working at the top and the
   current page as a white pill. Text stays fully opaque and readable: no frosted glass on content. */
.shell {
  display: flex; min-height: 100vh; gap: 16px; padding: 14px;
  background:
    radial-gradient(900px 520px at 0% 0%, var(--wash-1), transparent 65%),
    radial-gradient(800px 600px at 100% 100%, var(--wash-1), transparent 60%),
    var(--wash-2);
  background-attachment: fixed;
}
.sidebar {
  width: 256px; flex-shrink: 0; position: sticky; top: 14px; height: calc(100vh - 28px); overflow-y: auto;
  background: linear-gradient(172deg, var(--side-top), var(--side-bottom)); color: #fff; border-radius: 26px;
  padding: 16px 12px 14px; display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent;
  box-shadow: 0 24px 50px -26px var(--glow), 0 1px 0 rgba(255, 255, 255, .18) inset;
}
.brand { display: flex; align-items: center; gap: 11px; color: #fff; padding: 2px 8px; }
.brand:hover { text-decoration: none; color: #fff; }
.brand-logo { width: 38px; height: 38px; border-radius: 12px; object-fit: contain; flex-shrink: 0; background: #fff; padding: 2px; }
.monogram {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: #fff; color: var(--side-top); font-weight: 700; font-size: 1.2rem; font-family: var(--font-display);
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.3; }

/* The person signed in: avatar with a dot for checked in, a greeting, and their attendance. */
.side-user {
  display: grid; justify-items: center; gap: 2px; text-align: center; color: #fff;
  padding: 12px 8px 14px; border-radius: 20px; background: rgba(255, 255, 255, .1);
}
.side-user:hover { text-decoration: none; color: #fff; background: rgba(255, 255, 255, .16); }
.side-avatar {
  position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px;
  background: #fff; color: var(--side-top); font-weight: 700; font-size: 1.45rem;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 10px 22px -10px rgba(0, 0, 0, .45);
}
.side-status {
  position: absolute; bottom: 1px; inset-inline-end: 1px; width: 14px; height: 14px; border-radius: 50%;
  background: #b8bfcc; box-shadow: 0 0 0 3px #fff;
}
.side-status.is-in { background: #22c55e; }
.side-hello { font-weight: 600; font-size: .98rem; }
.side-user small { color: rgba(255, 255, 255, .78); font-size: .8rem; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; color: rgba(255, 255, 255, .86);
  padding: 8px 12px; border-radius: 12px; position: relative; font-weight: 500; font-size: .94rem;
  transition: background-color .15s, color .15s;
}
.nav a .icon { width: 1.2em; height: 1.2em; }
.nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.nav a.active { background: #fff; color: var(--side-top); font-weight: 600; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .4); }
.nav a:focus-visible, .nav-group summary:focus-visible, .side-user:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

/* Groups by daily job: one line per group, opened with a tap; links inside follow the order of the work. */
.nav-group { margin-top: 1px; }
.nav-group summary {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 12px; cursor: pointer;
  list-style: none; color: #fff; font-weight: 600; font-size: .94rem; user-select: none;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary .icon { width: 1.2em; height: 1.2em; color: rgba(255, 255, 255, .72); }
.nav-group summary span { flex: 1; }
.nav-group summary:hover { background: rgba(255, 255, 255, .12); }
.nav-chevron { transition: transform .2s; }
.nav-group[open] .nav-chevron { transform: rotate(180deg); }
.nav-group[data-current] > summary .icon:first-child { color: #fff; }
.nav-items { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 8px; padding-inline-start: 23px; position: relative; }
.nav-items::before { content: ""; position: absolute; inset-block: 4px; inset-inline-start: 21px; width: 1px; background: rgba(255, 255, 255, .24); }
.nav-items a { padding: 7px 12px; font-size: .9rem; }
.nav-toggle { display: none; }

/* The software's own brand, at the foot of the sidebar. */
.product-badge {
  margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px 2px;
  border-top: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .75); font-size: .78rem; line-height: 1.3;
}
.product-badge b { display: block; color: #fff; font-family: var(--font-display); font-size: .98rem; font-weight: 600; }
.product-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 10px; background: #fff; padding: 2px; flex-shrink: 0; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px 8px 14px; min-height: 60px; position: sticky; top: 14px; z-index: 20;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 20px; box-shadow: 0 10px 30px -22px var(--shadow-tint);
}
.topbar-title { font-weight: 600; color: var(--muted); padding-inline-start: 6px; }
.topbar-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.topbar-tools form { margin: 0; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; position: relative;
  color: var(--palm); cursor: pointer; list-style: none; background: var(--palm-50); border: 0;
}
.icon-btn:hover { background: var(--palm); color: #fff; }
.icon-btn .icon { width: 1.25em; height: 1.25em; }
.dot-count {
  position: absolute; top: -2px; inset-inline-end: -2px; min-width: 19px; height: 19px; border-radius: 99px; padding: 0 5px;
  background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.user-chip {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: .9rem; font-weight: 500;
  padding: 4px 10px 4px 6px; border-radius: 99px; cursor: pointer; list-style: none; background: var(--surface); border: 1px solid var(--line);
}
.user-chip:hover { background: var(--surface-2); }
.user-chip .chevron { width: 1em; height: 1em; color: var(--muted); }
.menu[open] .chevron { transform: rotate(180deg); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--palm); color: #fff; font-weight: 600; font-size: .85rem;
}

/* Dropdown menus (notifications, user) built on <details> so they work without JavaScript. */
.menu { position: relative; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 230px; z-index: 30;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 6px;
  box-shadow: 0 18px 40px -18px var(--shadow-tint), 0 2px 6px rgba(0, 0, 0, .04);
}
.menu-wide { min-width: 320px; }
.menu-title { padding: 8px 10px 6px; font-weight: 600; font-size: .86rem; color: var(--muted); }
.menu-empty { padding: 10px; margin: 0; color: var(--muted); font-size: .9rem; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px;
  border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; text-align: start;
}
.menu-item:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.menu-item .icon { color: var(--muted); }
.notice { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); }
.notice:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.notice-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.notice-danger .notice-icon { background: var(--danger-50); color: var(--danger); }
.notice-warning .notice-icon { background: var(--warning-50); color: var(--warning); }
.notice-label { flex: 1; font-size: .9rem; }

.content { padding: 26px 8px 44px; max-width: 1400px; width: 100%; }
.messages { padding: 16px 8px 0; display: grid; gap: 8px; max-width: 1400px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 1.75rem; margin: 0; line-height: 1.25; }
.page-head h1:empty { display: none; }
.page-sub { color: var(--muted); margin: 4px 0 0; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Phones: a short menu bar pinned to the bottom of the screen, within reach of the thumb. */
.tabbar { display: none; }

@media (max-width: 900px) {
  .shell { flex-direction: column; padding: 10px; gap: 10px; }
  .sidebar { width: auto; height: auto; position: static; padding: 10px 12px; gap: 8px; border-radius: 20px; }
  .side-user { display: none; }
  /* Phones and tablets: the menu folds behind one button beside the brand. */
  .sidebar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 14px;
    border: 0; background: rgba(255, 255, 255, .16); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  }
  .nav { display: none; grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .18); }
  .sidebar.is-open .nav { display: flex; }
  .sidebar.is-open .nav-toggle { background: #fff; color: var(--side-top); }
  .nav a, .nav-group summary { min-height: 44px; }
  .product-badge { display: none; }
  .topbar { padding: 6px 8px; position: static; border-radius: 18px; }
  .topbar-title { display: none; }
  .topbar-tools { flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; }
  .content { padding: 16px 2px 104px; }
  .messages { padding: 12px 2px 0; }
  .hide-sm { display: none; }
  .page-head h1 { font-size: 1.45rem; }
  .menu-panel { position: fixed; inset-inline: 12px; top: 72px; min-width: 0; }
  .tabbar {
    display: flex; gap: 4px; position: fixed; z-index: 40; inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 6px; border-radius: 24px; background: linear-gradient(90deg, var(--side-top), var(--side-bottom));
    box-shadow: 0 18px 36px -16px var(--glow), 0 4px 14px rgba(0, 0, 0, .14);
  }
  .tabbar a, .tabbar button {
    flex: 1; min-width: 0; min-height: 54px; display: grid; justify-items: center; align-content: center; gap: 2px;
    border: 0; border-radius: 18px; background: none; color: rgba(255, 255, 255, .86); cursor: pointer;
    font: inherit; font-size: .74rem; font-weight: 600; white-space: nowrap;
  }
  .tabbar .icon { width: 1.35em; height: 1.35em; }
  .tabbar a:hover { text-decoration: none; color: #fff; }
  .tabbar .on { background: #fff; color: var(--side-top); }
}

/* ---------- Components ---------- */
.card {
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius-xl);
  box-shadow: var(--shadow); padding: 20px 22px;
}
.card + .card { margin-top: 18px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.card-title h2 { margin: 0; }
.card h2 { display: flex; align-items: center; gap: 10px; }
/* A card heading's icon sits in a small tinted tile. */
.card > h2 > .icon:first-child, .card-title h2 > .icon:first-child {
  width: 34px; height: 34px; padding: 8px; border-radius: 11px; background: var(--palm-50); color: var(--palm);
}

/* Coloured icon tiles and soft washes, one hue per kind of figure (hue-1 primary, hue-2 accent). */
.hue-1 { --hue: var(--palm); } .hue-2 { --hue: var(--side-bottom); } .hue-3 { --hue: #d9466f; }
.hue-4 { --hue: #d98a14; } .hue-5 { --hue: #17915f; } .hue-6 { --hue: #2f80c9; }
.icon-tile {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex-shrink: 0; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--hue, var(--palm)) 70%, #fff), var(--hue, var(--palm)));
  box-shadow: 0 10px 20px -10px var(--hue, var(--palm));
}
.icon-tile .icon { width: 1.35em; height: 1.35em; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid + .grid { margin-top: 18px; }
@media (max-width: 1000px) { .grid-wide, .grid-pair { grid-template-columns: minmax(0, 1fr); } }

.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); margin-bottom: 18px; }
.kpi {
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius-lg);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.kpi-label { color: var(--muted); font-size: .86rem; }
.kpi-value { font-size: 1.7rem; font-weight: 600; margin-top: 2px; line-height: 1.25; letter-spacing: -.01em; }
.kpi-note { font-size: .8rem; color: var(--muted); }
.kpi-hero { background: linear-gradient(150deg, var(--side-top), var(--side-bottom)); border-color: transparent; color: #fff; }
.kpi-hero .kpi-label, .kpi-hero .kpi-note { color: var(--on-brand-muted); }
.kpi-hero .kpi-value { color: #fff; }

/* KPI card with icon tile, trend line and comparison chip (dashboard). Its hue washes the corner. */
.stat {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius-xl);
  padding: 18px 20px 0; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.stat::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(110% 80% at 100% 0%, color-mix(in srgb, var(--hue, var(--palm)) 13%, transparent), transparent 62%);
}
[dir="rtl"] .stat::before { background: radial-gradient(110% 80% at 0% 0%, color-mix(in srgb, var(--hue, var(--palm)) 13%, transparent), transparent 62%); }
.stat-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stat-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.stat-label { color: var(--muted); font-size: .9rem; font-weight: 500; }
.stat-value { font-size: 1.85rem; font-weight: 700; line-height: 1.2; margin: 14px 0 2px; letter-spacing: -.01em; }
.stat .chart-line { stroke: var(--hue, var(--palm)); }
.stat .chart-area { fill: var(--hue, var(--palm)); }
@media (hover: hover) and (pointer: fine) {
  .stat:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 26px 44px -26px var(--shadow-tint); }
}
.stat-value small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.stat-foot { color: var(--muted); font-size: .8rem; }
.stat .chart-spark { width: calc(100% + 36px); height: 44px; margin: 10px -18px 0; display: block; }
.trend { display: inline-flex; align-items: center; gap: 2px; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; direction: ltr; }
.trend-up { background: var(--success-50); color: var(--success); }
.trend-down { background: var(--danger-50); color: var(--danger); }
.trend-flat { background: var(--surface-2); color: var(--muted); }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-bottom: 18px; }

/* Segmented period switcher */
.segmented { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px; gap: 2px; box-shadow: var(--shadow); }
.segmented a { padding: 6px 16px; border-radius: 99px; color: var(--muted); font-weight: 500; font-size: .9rem; transition: background-color .15s, color .15s; }
.segmented a:hover { text-decoration: none; color: var(--ink); background: var(--surface-2); }
.segmented a.on { background: var(--palm); color: #fff; box-shadow: 0 6px 14px -8px var(--palm); }

/* Filter chips above a list: one tap shows only paid, only open, ... with the count beside each. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 14px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .86rem; font-weight: 600;
}
.chip:hover { text-decoration: none; color: var(--ink); border-color: var(--line-strong); }
.chip.on { background: var(--palm); border-color: var(--palm); color: #fff; }
.chip b { font-weight: 700; padding: 0 7px; border-radius: 99px; background: var(--surface-2); color: var(--ink); font-size: .76rem; }
.chip.on b { background: rgba(255, 255, 255, .22); color: #fff; }

/* Charts drawn by core/charts.py */
.chart-columns { width: 100%; height: auto; display: block; }
.chart-bar { fill: var(--palm); opacity: .9; }
.chart-col:hover .chart-bar { opacity: 1; fill: var(--palm-700); }
.chart-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.chart-axis { stroke: var(--line-strong); }
.chart-label { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart-line { fill: none; stroke: var(--palm); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart-area { fill: var(--palm); opacity: .1; }
.chart-track { stroke: var(--surface-2); }
.seg-1 { stroke: var(--palm); } .seg-2 { stroke: var(--saffron); } .seg-3 { stroke: var(--info); } .seg-4 { stroke: var(--muted); }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.swatch.seg-1 { background: var(--palm); } .swatch.seg-2 { background: var(--saffron); } .swatch.seg-3 { background: var(--info); } .swatch.seg-4 { background: var(--muted); }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.legend { display: grid; gap: 10px; flex: 1; min-width: 160px; }
.legend-row { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.legend-row span:nth-child(2) { flex: 1; }

/* Live operations tiles */
.live { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.live a { border: 1px solid transparent; border-radius: 16px; padding: 12px 14px; color: var(--ink); display: grid; gap: 2px; background: var(--surface-2); }
.live a:hover { border-color: var(--palm); text-decoration: none; }
.live b { font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.live span { color: var(--muted); font-size: .84rem; }
.live a.is-hot { border-color: var(--danger); background: var(--danger-50); }
.live a.is-hot b { color: var(--danger); }
.rank { display: grid; gap: 10px; }
.rank-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .92rem; }
.rank-bar { grid-column: 1 / -1; height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--palm); border-radius: 99px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { background: var(--surface-2); border-color: var(--palm); color: var(--palm); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--palm); border-color: var(--palm); color: #fff; box-shadow: 0 8px 18px -10px var(--palm); }
.btn-primary:hover { background: var(--palm-700); border-color: var(--palm-700); color: #fff; }
.btn-accent { background: var(--saffron); border-color: var(--saffron); color: var(--on-accent); font-weight: 600; }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #18633e; border-color: #18633e; color: #fff; }
.btn-danger { color: var(--danger); border-color: #ecc5bf; background: var(--surface); }
.btn-danger:hover { background: var(--danger-50); border-color: var(--danger); color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--palm-50); border-color: transparent; color: var(--palm); }
.btn-sm { padding: 5px 11px; font-size: .86rem; border-radius: 8px; }
.btn-lg { padding: 13px 22px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.field { display: grid; gap: 6px; margin-bottom: 16px; font-weight: 500; font-size: .9rem; color: var(--ink); }
input, select, textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: #fff; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--palm); box-shadow: 0 0 0 3px var(--palm-50); }
input[type=checkbox], input[type=radio] { width: 1.15rem; height: 1.15rem; padding: 0; flex-shrink: 0; accent-color: var(--palm); }
.inline-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.inline-form .field { margin: 0; }

.alert { padding: 11px 16px; border-radius: 12px; border: 1px solid transparent; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.alert-success { background: var(--success-50); color: var(--success); border-color: #c4e5d3; }
.alert-error, .alert-danger { background: var(--danger-50); color: var(--danger); border-color: #f0cbc5; }
.alert-warning { background: var(--warning-50); color: var(--warning); border-color: #f1dcb5; }
.alert-info { background: var(--info-50); color: var(--info); border-color: #c9dcf0; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 99px;
  font-size: .76rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
/* Status badges carry a dot so the state reads at a glance down a column. */
.badge-success, .badge-warning, .badge-danger, .badge-info { border-color: transparent; }
.badge-success::before, .badge-warning::before, .badge-danger::before, .badge-info::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.badge-success { background: var(--success-50); color: var(--success); }
.badge-warning { background: var(--warning-50); color: var(--warning); }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-info { background: var(--info-50); color: var(--info); }

table.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th, .table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: start; }
.table thead th { font-size: .8rem; color: var(--muted); font-weight: 600; background: var(--surface-2); border-bottom: 0; }
.table thead th:first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; }
.table thead th:last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--palm-50) 60%, transparent); }
.table td.end, .table th.end { text-align: end; }
.table tfoot td { font-weight: 600; border-bottom: 0; }
.table-wrap { overflow-x: auto; margin-inline: -4px; }
.empty { color: var(--muted); padding: 22px 0; text-align: center; font-size: .92rem; }

.list-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.list-row:last-child { border-bottom: 0; }

/* Horizontal bars for reports */
.bar-row { display: grid; grid-template-columns: minmax(80px, 140px) 1fr auto; gap: 12px; align-items: center; margin: 8px 0; font-size: .9rem; }
.bar-track { background: var(--palm-50); border-radius: 99px; height: 10px; overflow: hidden; }
.bar-fill { background: var(--palm); height: 100%; border-radius: 99px; }

/* Sign in: the restaurant's own panel (its logo on the pattern, and the time, since staff sign in
   at the start of a shift and that records their attendance), next to a quiet form. */
.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
.signin-art {
  background: var(--palm) var(--pattern); color: #fff; padding: 44px 48px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.signin-brand { display: flex; align-items: center; gap: 14px; }
.signin-brand img, .signin-brand .monogram { width: 64px; height: 64px; border-radius: 18px; background: #fff; object-fit: contain; padding: 4px; }
.signin-brand .monogram { background: var(--saffron); color: var(--on-accent); font-size: 1.8rem; padding: 0; }
.signin-brand b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; display: block; line-height: 1.2; }
.signin-brand small { color: var(--on-brand-muted); }
.signin-clock { font-size: clamp(3.6rem, 8vw, 7.2rem); font-weight: 600; line-height: 1; letter-spacing: -.02em; direction: ltr; text-align: start; font-variant-numeric: tabular-nums; }
[dir="rtl"] .signin-clock { text-align: end; }
.signin-date { color: var(--on-brand-soft); font-size: 1.15rem; margin-top: 12px; }
.signin-note { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); padding: 8px 14px; border-radius: 99px; font-size: .9rem; width: fit-content; }
.signin-panel { display: grid; place-items: center; padding: 40px 24px; }
.signin-card { width: 100%; max-width: 380px; }
.signin-product { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; }
.signin-product img { width: 44px; height: 44px; object-fit: contain; }
.signin-product b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; }
.signin-card h1 { font-size: 1.9rem; margin: 28px 0 4px; }
.signin-card .lead { color: var(--muted); margin: 0 0 24px; }
.signin-card form { display: grid; gap: 14px; }
.input-icon { position: relative; display: block; }
.input-icon > .icon { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-inline-start: 40px; width: 100%; }
.input-icon .reveal { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 8px; border-radius: 8px; cursor: pointer; display: grid; }
.input-icon .reveal:hover { color: var(--ink); background: var(--surface-2); }
.caps-hint { color: var(--warning); font-size: .85rem; margin-top: 4px; }
.signin-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.signin-foot { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .85rem; gap: 12px; flex-wrap: wrap; }
.code-input { font-size: 2rem; letter-spacing: .45em; text-align: center; direction: ltr; font-variant-numeric: tabular-nums; padding-block: 10px; width: 100%; }
.code-sent { display: flex; gap: 12px; align-items: center; background: var(--palm-50); color: var(--palm); padding: 12px 14px; border-radius: 14px; margin-bottom: 18px; }
.code-sent b { direction: ltr; unicode-bidi: embed; }
.link-button { border: 0; background: none; color: var(--palm); font: inherit; cursor: pointer; padding: 0; }
.link-button:disabled { color: var(--muted); cursor: default; }
@media (max-width: 860px) {
  .signin { grid-template-columns: 1fr; }
  .signin-art { padding: 22px 20px; gap: 16px; }
  .signin-clock { font-size: 2.8rem; }
  .signin-date { font-size: 1rem; margin-top: 6px; }
  .signin-note { display: none; }
  .signin-card h1 { margin-top: 8px; }
}

/* Attendance */
.clock { text-align: center; padding: 34px 20px; }
.clock-time { font-size: 3.2rem; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: var(--palm); }
.clock-status { margin: 12px 0 22px; }

.quick-links { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .sidebar, .topbar, .tabbar, .no-print, .messages { display: none !important; }
  body, .shell { background: #fff; padding: 0; }
  .content { padding: 0; }
  .card, .kpi { box-shadow: none; }
}

/* ---------- Accounting ---------- */
.kpi-value.kpi-small { font-size: 1.15rem; }
.text-danger { color: var(--danger); font-weight: 600; }
.coa-group td { font-weight: 600; background: var(--surface-2); }
.coa-group.coa-depth-0 td { background: var(--palm-50); color: var(--palm); }
.coa-group.coa-depth-0 a { color: var(--palm); }
.entry-lines input, .entry-lines select { width: 100%; min-width: 90px; }
.entry-lines input[name=debit], .entry-lines input[name=credit] { text-align: end; }
.bill-totals { max-width: 420px; margin-inline-start: auto; margin-top: 16px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.pay-form { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Stock: kitchen production ---------- */
.prep-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.prep-option { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; }
.prep-option span { display: grid; gap: 2px; }
.prep-option small { font-size: .8rem; }
.prep-option:has(input:checked) { border-color: var(--palm); background: var(--palm-50); }

/* ---------- Command center ---------- */
.cmd-section { margin-bottom: 22px; }
.cmd-section h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 10px; color: var(--muted); }
.cmd-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.cmd-grid-small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.cmd-tile {
  display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); position: relative; overflow: hidden;
}
.cmd-tile:hover { text-decoration: none; border-color: var(--palm); }
.cmd-tile::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: transparent; }
.cmd-label { color: var(--muted); font-size: .86rem; font-weight: 500; }
.cmd-value { font-size: 1.7rem; font-weight: 600; line-height: 1.2; }
.cmd-note { color: var(--muted); font-size: .8rem; }
.cmd-tile.tone-good::before { background: var(--success); }
.cmd-tile.tone-warn::before { background: var(--warning); }
.cmd-tile.tone-warn .cmd-value { color: var(--warning); }
.cmd-tile.tone-danger { background: var(--danger-50); border-color: var(--danger); }
.cmd-tile.tone-danger::before { background: var(--danger); }
.cmd-tile.tone-danger .cmd-value { color: var(--danger); }
.cmd-stations { display: grid; gap: 10px; margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.cmd-station { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-strong); color: var(--ink); }
.cmd-station:hover { text-decoration: none; border-style: solid; }
.cmd-station small { grid-column: 1 / -1; color: var(--muted); }
.cmd-station-count { font-size: 1.4rem; font-weight: 600; grid-row: 1 / 3; grid-column: 2; align-self: center; }
.cmd-station.tone-danger { border-color: var(--danger); background: var(--danger-50); }
.cmd-station.tone-danger small { color: var(--danger); font-weight: 600; }
.cmd-station.tone-good small { color: var(--success); }
.command-page:fullscreen .sidebar { display: none; }

/* Excel import and export */
.xl-group { margin-bottom: 26px; }
.xl-group-title { font-size: 1rem; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.xl-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.xl-card { display: flex; flex-direction: column; gap: 6px; }
.xl-card h3 { margin: 0; font-size: 1.08rem; }
.xl-card h3 a { color: var(--ink); }
.xl-card p { margin: 0 0 8px; flex: 1; }
.xl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.xl-layout { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.xl-upload input[type=file] { padding: 9px; background: var(--surface-2); cursor: pointer; }
.xl-hint { margin: 10px 0 0; font-size: .85rem; }
.xl-steps { margin: 0 0 12px; padding-inline-start: 22px; display: grid; gap: 6px; }
.xl-notes { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; font-size: .88rem; }
.xl-result { margin-bottom: 18px; display: grid; gap: 14px; }
.xl-result .card-title { margin-bottom: 0; flex-wrap: wrap; }
.xl-file { font-size: .88rem; overflow-wrap: anywhere; }
.xl-counts { display: flex; flex-wrap: wrap; gap: 10px; }
.xl-count { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.xl-count-value { font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.xl-count-new { background: var(--success-50); border-color: #c4e5d3; }
.xl-count-new .xl-count-value { color: var(--success); }
.xl-count-update { background: var(--info-50); border-color: #c9dcf0; }
.xl-count-update .xl-count-value { color: var(--info); }
.xl-count-remove { background: var(--warning-50); border-color: #f1dcb5; }
.xl-count-remove .xl-count-value { color: var(--warning); }
.xl-count-error { background: var(--danger-50); border-color: #f0cbc5; }
.xl-count-error .xl-count-value { color: var(--danger); }
.xl-table-wrap { max-height: 60vh; overflow: auto; }
.xl-table td { vertical-align: top; }
.xl-table td:first-child { width: 4.5em; color: var(--muted); }
.xl-line { margin: 0 0 2px; }
.xl-line del { color: var(--muted); }
.xl-row-error { background: var(--danger-50); }
.xl-confirm { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ID card designer: settings on one side, the live card on the other */
.cd-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: 18px; align-items: start; }
.cd-form { display: grid; gap: 18px; min-width: 0; }
.cd-preview { position: sticky; top: 76px; }
.cd-cards { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 18px 10px; border-radius: 14px; background: var(--surface-2); }
.cd-cards .id-card { box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .3); zoom: 1.25; }
.cd-note { margin: 0 0 12px; font-size: .88rem; }
.cd-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cd-template {
  position: relative; display: grid; gap: 8px; justify-items: center; padding: 12px 10px; border-radius: 12px;
  border: 1px solid var(--line); cursor: pointer; text-align: center; font-size: .86rem; font-weight: 500;
}
.cd-template input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cd-template:has(input:checked) { border-color: var(--palm); background: var(--palm-50); color: var(--palm); box-shadow: 0 0 0 1px var(--palm) inset; }
.cd-template:has(input:focus-visible) { outline: 2px solid var(--palm); outline-offset: 2px; }
/* Small drawings of each template */
.cd-mini { position: relative; display: block; width: 86px; height: 54px; border-radius: 6px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.cd-mini i { position: absolute; display: block; }
.cd-mini .m-blk { background: var(--palm); }
.cd-mini .m-photo { background: var(--line-strong); border-radius: 3px; }
.cd-mini .m-line { height: 4px; border-radius: 2px; background: var(--line-strong); }
.cd-mini-band .m-blk { inset: 0 0 auto; height: 14px; }
.cd-mini-band .m-photo { top: 18px; inset-inline-start: 5px; width: 20px; height: 26px; }
.cd-mini-band .m-line { top: 22px; inset-inline: 30px 6px; }
.cd-mini-band .m-short { top: 31px; inset-inline-end: 22px; }
.cd-mini-side .m-blk { inset-block: 0; inset-inline-start: 0; width: 30px; }
.cd-mini-side .m-photo { top: 14px; inset-inline-start: 5px; width: 20px; height: 26px; background: #fff; }
.cd-mini-side .m-line { top: 18px; inset-inline: 36px 6px; }
.cd-mini-side .m-short { top: 27px; inset-inline-end: 22px; }
.cd-mini-portrait, .cd-mini-badge { width: 40px; height: 64px; margin-block: -5px; }
.cd-mini-portrait .m-blk { inset: 0 0 auto; height: 18px; }
.cd-mini-portrait .m-photo { top: 10px; left: 50%; transform: translateX(-50%); width: 16px; height: 20px; }
.cd-mini-portrait .m-line { top: 36px; inset-inline: 6px; }
.cd-mini-portrait .m-short { top: 44px; inset-inline: 11px; }
.cd-mini-badge .m-blk { inset: 0 0 auto; height: 30px; border-radius: 0 0 50% 50% / 0 0 8px 8px; }
.cd-mini-badge .m-photo { top: 10px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.cd-mini-badge .m-line { top: 38px; inset-inline: 6px; }
.cd-mini-badge .m-short { top: 46px; inset-inline: 11px; }
.cd-colour { display: flex; gap: 8px; align-items: center; }
.cd-colour input[type=color] { width: 48px; height: 44px; padding: 3px; flex: none; cursor: pointer; }
.cd-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 16px; }
.cd-check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-weight: 500; cursor: pointer; }
.cd-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--wash-2) 35%); }
@media (max-width: 1100px) {
  .cd-layout { grid-template-columns: minmax(0, 1fr); }
  .cd-preview { position: static; order: -1; }
  .cd-cards .id-card { zoom: 1; }
}

/* Roles and permissions */
.pm-roles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.pm-role { display: flex; flex-direction: column; gap: 8px; }
.pm-role .card-title { margin-bottom: 0; }
.pm-role > .btn { align-self: flex-start; margin-top: auto; }
.pm-desc, .pm-meta { margin: 0; font-size: .88rem; }
.pm-can { margin: 0; padding-inline-start: 18px; display: grid; gap: 2px; font-size: .92rem; }
.pm-form { display: grid; gap: 18px; }
.pm-note { margin: 0 0 12px; font-size: .88rem; }
.pm-caps { display: grid; gap: 4px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.pm-cap { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.pm-cap:hover { background: var(--surface-2); }
.pm-cap input { margin-top: 4px; }
.pm-cap span { display: grid; gap: 2px; }
.pm-cap small, .pm-help { display: block; font-size: .82rem; font-weight: 400; line-height: 1.5; }
.pm-cap:has(input:checked) b { color: var(--palm); }
.pm-matrix th[scope=row] { font-weight: 500; }
.pm-matrix td, .pm-matrix thead th:not(:first-child), .pm-exceptions td, .pm-exceptions thead th:not(:first-child) { text-align: center; }
.pm-matrix input[type=checkbox], .pm-exceptions input[type=radio] { width: 1.2rem; height: 1.2rem; cursor: pointer; }
.pm-section th { background: var(--surface-2); font-size: .82rem; color: var(--muted); font-weight: 600; }
.pm-select { width: auto; min-width: 128px; padding: 5px 8px; font-size: .85rem; }
.pm-select.pm-allow { border-color: var(--success); background: var(--success-50); color: var(--success); font-weight: 600; }
.pm-select.pm-deny { border-color: var(--danger); background: var(--danger-50); color: var(--danger); font-weight: 600; }
.pm-exceptions tr.pm-allow { background: var(--success-50); }
.pm-exceptions tr.pm-deny { background: var(--danger-50); }
.pm-yes { color: var(--success); font-weight: 600; }
.pm-members { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--wash-2) 35%); }
.pm-delete { margin-top: 12px; }

/* Branch: a switcher for head office, a plain label for everyone else */
.branch-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .9rem; cursor: pointer; list-style: none; white-space: nowrap;
}
.branch-chip::-webkit-details-marker { display: none; }
.branch-chip .icon { color: var(--palm); }
.branch-chip.is-static { cursor: default; }
.menu-item.is-current { background: var(--palm-50); color: var(--palm); font-weight: 600; }
