/* POS shared styles. Colours are variables so the dark scheme only swaps the values. */
:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --text: #18222d;
  --muted: #637083;
  --border: #dfe4ea;
  --accent: #0f766e;
  --accent-hover: #0b5f59;
  --on-accent: #ffffff;
  --danger: #b42318;
  --danger-hover: #912018;
  --ok-bg: #e6f4ee;
  --ok-text: #0b6b43;
  --bad-bg: #fdecea;
  --bad-text: #912018;
  --top-bg: #13202c;
  --top-text: #ffffff;
  --top-muted: #a9b6c4;
  --focus: #2563eb;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --search-bg: #fffaf0;               /* search boxes: a very light cream (owner, 2026-10-11, srv-154) */
  --search-border: #eadfc8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --search-bg: #211f1a;
    --search-border: #3d3627;
    --bg: #0f151b;
    --surface: #18212b;
    --text: #e8edf2;
    --muted: #9aa7b6;
    --border: #2b3744;
    --accent: #2bb5a6;
    --accent-hover: #46c9bb;
    --on-accent: #04211e;
    --danger: #f97066;
    --danger-hover: #fda29b;
    --ok-bg: #12332a;
    --ok-text: #7fe0b7;
    --bad-bg: #3d1b18;
    --bad-text: #fda29b;
    --top-bg: #0b1118;
    --focus: #7aa7ff;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* the hidden attribute always wins over display rules */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: calc(100vh / var(--sz, 1));
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1 { font-size: 1.5rem; line-height: 1.25; margin: 0; font-weight: 650; }
h2 { font-size: 1.05rem; margin: 0 0 .9rem; font-weight: 650; }
h3 { font-size: .8rem; margin: 1.4rem 0 .4rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
p { margin: 0 0 .8rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: .9em ui-monospace, "Cascadia Mono", Consolas, monospace; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }

/* top bar */
.top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.25rem;
  min-height: 56px;
  background: var(--top-bg);
  color: var(--top-text);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  letter-spacing: .06em;
  padding: .2rem .5rem;
  border-radius: 6px;
}
.brand-sub { font-weight: 600; }
.nav { display: flex; gap: .25rem; flex: 1; }
.nav a { color: var(--top-muted); padding: .35rem .7rem; border-radius: 6px; font-weight: 550; }
.nav a:hover { color: var(--top-text); text-decoration: none; }
.nav a.on { color: var(--top-text); background: rgba(255, 255, 255, .1); }
.top-right { display: flex; align-items: center; gap: .9rem; }
.who { color: var(--top-muted); }
.who:hover { color: var(--top-text); text-decoration: none; }

/* language switch */
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.lang-btn {
  font: inherit;
  font-size: .8rem;
  font-weight: 650;
  padding: .2rem .5rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.lang-btn.on { background: var(--accent); color: var(--on-accent); }
.top .lang { border-color: rgba(255, 255, 255, .25); }
.top .lang-btn { color: var(--top-muted); }
.top .lang-btn.on { color: var(--on-accent); }

/* page */
.wrap { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 2rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.crumb { margin-bottom: .6rem; font-size: .9rem; }
.count {
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .1rem .55rem;
  vertical-align: middle;
}
.foot { padding: .9rem 1.25rem; color: var(--muted); font-size: .8rem; text-align: center; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.narrow { max-width: 640px; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.stack { display: grid; gap: 1.1rem; }
.empty { text-align: center; padding: 2.5rem 1.25rem; }
.release { margin-bottom: 1.1rem; }
.release ul { margin: 0; padding-left: 1.2rem; }
.release h2 .muted { font-weight: 400; font-size: .9rem; margin-left: .4rem; }

/* notices */
.notice { border-radius: 8px; padding: .65rem .9rem; margin-bottom: 1rem; font-weight: 550; }
.notice.ok { background: var(--ok-bg); color: var(--ok-text); }
.notice.bad { background: var(--bad-bg); color: var(--bad-text); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  padding: .5rem .95rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { border-color: var(--danger-hover); color: var(--danger-hover); }
.btn-top { background: transparent; border-color: rgba(255, 255, 255, .25); color: var(--top-text); padding: .3rem .7rem; }
.btn-top:hover { border-color: rgba(255, 255, 255, .6); }
.btn-wide { width: 100%; }
.btn-small { padding: .25rem .7rem; font-size: .88rem; }
.row-actions { text-align: right; }
.actions { display: flex; gap: .6rem; margin-top: 1.2rem; }

/* forms */
.field { margin: 0 0 1.1rem; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .35rem; padding: 0; }
input:not([type=radio]):not([type=checkbox]):not([type=hidden]), select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .5rem .7rem;
}
/* every search box, so it is clear it is one (srv-154); wins over the page-specific ones (till, client portal) */
input[type=search]:not([type=radio]):not([type=checkbox]):not([type=hidden]) { background: var(--search-bg); border-color: var(--search-border); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.form-section { margin: 1.6rem 0 .4rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.facts + h3 { margin-top: 1.2rem; }
.form .facts { margin-bottom: 1.2rem; }
fieldset:disabled .choice { cursor: default; opacity: .7; }
.help { color: var(--muted); font-size: .85rem; margin: .35rem 0 0; }
.error { color: var(--danger); font-size: .88rem; font-weight: 550; margin: .35rem 0 0; }
.affix { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.affix span { display: flex; align-items: center; padding: 0 .7rem; background: var(--bg); color: var(--muted); white-space: nowrap; }
.affix input:not([type=radio]):not([type=checkbox]):not([type=hidden]) { border: 0; border-radius: 0; min-width: 6rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; }
.choice {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .7rem .8rem;
  cursor: pointer;
  font-weight: 400;
  margin: 0;
}
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input { margin-top: .25rem; accent-color: var(--accent); }
.choice-body { display: grid; gap: .1rem; }
.choice-title { font-weight: 650; }
.choice-desc { color: var(--muted); font-size: .85rem; }

/* search box above a table */
.filter { max-width: 360px; margin-bottom: .8rem; }
.filter-bar { max-width: none; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filter-bar input[type=search] { flex: 2 1 220px; width: auto; }
.filter-bar select { flex: 1 1 160px; width: auto; }
.filter-bar .btn { flex: none; }
.no-match { padding: 1.2rem 1rem; margin: 0; text-align: center; }

/* table */
.table-card { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  font-weight: 650;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: normal;      /* (#490: a long heading - Greek "Συντελεστής ΦΠΑ" - wraps instead of widening its column) */
}
.table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
/* #490 (owner, 2026-11-21: "I have so much space and I still need to scroll right"): numbers, the tick box, the
   buttons and short states take only the width they need; the free space goes to the main column (.col-grow, wraps
   when really narrow); .col-wrap = a long secondary text (a category and its groups) that may wrap */
.table th.num, .table td.num, .table th.pick, .table td.pick, .table td.row-actions, .table .col-fit { width: 1%; }
.table td.col-grow { white-space: normal; min-width: 10rem; overflow-wrap: anywhere; }
.table th.col-wrap, .table td.col-wrap { width: 1%; white-space: normal; min-width: 10rem; }
.table tbody tr:last-child td { border-bottom: 0; }

.pill {
  display: inline-block;
  font-size: .78rem;
  font-weight: 650;
  padding: .12rem .6rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  vertical-align: middle;
}
.pill.active { background: var(--ok-bg); color: var(--ok-text); border-color: transparent; }
.pill.suspended { background: var(--bad-bg); color: var(--bad-text); border-color: transparent; }
/* Active-Live: a customer in real use (owner, 2026-10-07) */
.pill.live { background: #ede4fb; color: #5b21b6; border-color: transparent; }
@media (prefers-color-scheme: dark) { .pill.live { background: #2e1f4d; color: #c4b5fd; } }

.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .5rem 1.2rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* centred pages: sign-in, errors, company placeholder */
body.centered { align-items: center; justify-content: center; padding: 1.25rem; }
.center-card { width: 100%; max-width: 380px; text-align: center; padding: 2rem 1.75rem; }
.center-card h1 { margin-bottom: .6rem; font-size: 1.25rem; }
.center-card .form { text-align: left; }
.brand-login { margin-bottom: 1.4rem; color: var(--text); }
.login .lang { margin-top: 1.2rem; }
.big-code { font-size: 2.6rem; font-weight: 800; color: var(--muted); margin: 0 0 .3rem; line-height: 1; }

/* confirmation window */
.dialog {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 1.25rem;
  max-width: 420px;
  width: calc(100% - 2rem);
}
.dialog::backdrop { background: rgba(10, 16, 24, .55); }
.dialog p { margin: 0; }

@media (max-width: 800px) {
  .columns { grid-template-columns: minmax(0, 1fr); }
  .top { flex-wrap: wrap; gap: .4rem 1rem; padding: .5rem 1rem; }
  .nav { order: 3; flex-basis: 100%; }
  .top-right { margin-left: auto; }
  .who { display: none; }
  .page-head { flex-wrap: wrap; }
}

/* icons (templates/_icons.html) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; font-size: 1.15rem; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }

/* company portal: the menu on the left */
.shell { flex: 1; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.main-col { display: flex; flex-direction: column; min-width: 0; }
.side { position: sticky; top: 0; height: calc(100vh / var(--sz, 1)); overflow: hidden; display: flex; flex-direction: column; background: var(--top-bg); color: var(--top-text); }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem .6rem; }
.side-head .brand-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-close { display: none; }
.side-nav { flex: 1; min-height: 0; overflow-y: auto; padding: .2rem .6rem .8rem; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.side-group { margin-top: .75rem; }
.side-group:first-child { margin-top: 0; }
.side-title { font-size: .7rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--top-muted); margin: 0 0 .15rem; padding: 0 .7rem; }
.side-link { display: flex; align-items: center; gap: .7rem; min-height: 36px; padding: .3rem .7rem; border-radius: 8px; color: #d3dce6; font-weight: 550; }
.side-link:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.side-link.on { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 3px 0 0 #2bb5a6; }
.side-cta { margin-top: .4rem; min-height: 40px; justify-content: center; background: var(--accent); color: var(--on-accent); font-weight: 650; }
.side-cta:hover, .side-cta.on { background: var(--accent-hover); color: var(--on-accent); box-shadow: none; }
.side-foot { display: grid; gap: .55rem; padding: .7rem .6rem .9rem; border-top: 1px solid rgba(255, 255, 255, .12); }
button.side-fs { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }   /* (srv-164) */
button.side-fs.on { color: #fff; }
.side-user { display: flex; align-items: center; gap: .65rem; padding: .4rem .5rem; border-radius: 8px; color: inherit; }
.side-user:hover, .side-user.on { background: rgba(255, 255, 255, .1); text-decoration: none; }
.avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .16); font-weight: 700; }
.side-user-text { display: grid; min-width: 0; line-height: 1.3; }
.side-user-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-role { font-size: .78rem; color: var(--top-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-tools { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 0 .4rem; }
.side .lang { border-color: rgba(255, 255, 255, .25); }
.side .lang-btn { color: var(--top-muted); }
.side .lang-btn.on { color: var(--on-accent); }
.btn-top .i { margin-right: .4rem; }
.mobile-bar, .side-backdrop { display: none; }

/* home: getting started; "coming soon" pages */
.steps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.step { display: flex; align-items: center; gap: .8rem; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: 8px; color: inherit; }
.step:hover { border-color: var(--accent); text-decoration: none; }
.step-icon, .soon-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--bg); color: var(--accent); font-size: 1.1rem; }
.step-text { display: grid; flex: 1; min-width: 0; font-size: .86rem; line-height: 1.35; }
.step-text .strong { font-size: .98rem; }
.soon { display: flex; gap: 1rem; align-items: flex-start; }
.soon p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .mobile-bar { display: flex; align-items: center; gap: .6rem; position: sticky; top: 0; z-index: 20; padding: .4rem .7rem; background: var(--top-bg); color: var(--top-text); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; width: min(290px, calc(86vw / var(--sz, 1))); height: 100%; transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .side { transform: none; }
  body.nav-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(10, 16, 24, .55); }
  .side-close { display: inline-flex; }
  .step .pill { display: none; }
}

/* back-office forms: tick box, colour choice, small helpers */
.check { display: flex; align-items: center; gap: .6rem; font-weight: 550; cursor: pointer; }
/* Off / On / Ask me (#358): a segmented choice, the chosen one filled */
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt span { display: block; min-width: 4.5rem; padding: .45rem .9rem; text-align: center; font-weight: 700; color: var(--muted); background: var(--surface); }
.seg-opt + .seg-opt span { border-left: 1px solid var(--border); }
.seg-opt input:checked + span { background: var(--accent); color: #fff; }
.seg-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -2px; }
.ask-lines { display: grid; gap: .6rem; margin: .8rem 0; }
.ask-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.ask-text { font-weight: 600; min-width: 0; }
/* a phone number in two boxes (#354): [country code v] [number], side by side, wrapping on a narrow phone */
.phone-input { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; min-width: 0; }
.phone-input select { flex: 0 1 14rem; min-width: 10rem; width: auto; }
.phone-input input:not([type=hidden]) { flex: 1 1 9rem; min-width: 8rem; width: auto; }
/* Extras > Give to items (srv-181): the extras as tick boxes side by side; the buttons stay in view */
.give-extras { display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin-bottom: .8rem; }
.give-extra { padding: .35rem .7rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
.give-extra:has(input:checked) { border-color: var(--accent); }
.give-included { margin-bottom: .6rem; }
.give-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch span { display: block; width: 44px; height: 44px; border-radius: 10px; border: 3px solid transparent; }
.swatch input:checked + span { border-color: var(--text); box-shadow: inset 0 0 0 2px var(--surface); }
.swatch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.dot { display: inline-block; width: .85rem; height: .85rem; border-radius: 4px; margin-right: .5rem; vertical-align: -1px; }
/* the colours of categories, items and groups (catalog.COLORS) */
.c-red { background: #dc2626; --c: #dc2626; }
.c-blue { background: #2563eb; --c: #2563eb; }
.c-yellow { background: #facc15; --c: #facc15; }
.c-green { background: #16a34a; --c: #16a34a; }
.c-orange { background: #ea580c; --c: #ea580c; }
.c-purple { background: #9333ea; --c: #9333ea; }
.c-pink { background: #ec4899; --c: #ec4899; }
.c-brown { background: #92400e; --c: #92400e; }
.c-black { background: #111827; --c: #111827; }
.c-gray { background: #6b7280; --c: #6b7280; }
.c-magenta { background: #c026d3; --c: #c026d3; }
.c-gold { background: #d4a017; --c: #d4a017; }
.c-silver { background: #c0c4cc; --c: #c0c4cc; }
.c-white { background: #ffffff; --c: #ffffff; }
.c-none { background: transparent; }
.c-yellow, .c-gold, .c-silver, .c-white { color: #1f2937; }
.c-none { color: inherit; }
.swatch span.c-white { box-shadow: inset 0 0 0 1px var(--border); }
/* Settings > Design (owner, 2026-10-06): gradients on Sales mode's buttons (till.css adds the text colours);
   .ds-* = the samples on the Design page, .d-<kind>-<pattern> = set on #till (till.js) */
.ds-linear .ds-tile:not(.c-none), .d-items-linear .item[class*=" c-"]:not(.c-none), .d-categories-linear .pick-box.is-cat:not(.c-none), .d-groups-linear .pick-box.is-group:not(.c-none) { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 62%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 60%, #000) 100%); }
.ds-radial .ds-tile:not(.c-none), .d-items-radial .item[class*=" c-"]:not(.c-none), .d-categories-radial .pick-box.is-cat:not(.c-none), .d-groups-radial .pick-box.is-group:not(.c-none) { background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 55%, #fff) 0%, var(--c) 50%, color-mix(in srgb, var(--c) 60%, #000) 100%); }
.ds-path .ds-tile:not(.c-none), .d-items-path .item[class*=" c-"]:not(.c-none), .d-categories-path .pick-box.is-cat:not(.c-none), .d-groups-path .pick-box.is-group:not(.c-none) { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 60%, #000), transparent 32%, transparent 68%, color-mix(in srgb, var(--c) 60%, #000)), linear-gradient(180deg, color-mix(in srgb, var(--c) 60%, #000), transparent 32%, transparent 68%, color-mix(in srgb, var(--c) 60%, #000)), color-mix(in srgb, var(--c) 70%, #fff); }
.ds-preview { display: flex; flex-wrap: wrap; gap: .5rem; }
/* the icon settings' On / Off examples (srv-107 follow-up, owner 2026-10-10) */
.ic-examples { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .55rem; }
.ic-ex-case { display: inline-flex; flex-direction: column; align-items: center; gap: .2rem; }
.ic-ex-case small { color: var(--muted); font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .03em; }
.ic-ex { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; width: 7.6rem;
  height: 3.6rem; padding: .3rem .5rem; border-radius: 10px; color: #fff; font-weight: 700; font-size: .9rem; overflow: hidden; }
.ic-ex-icon { width: 2rem; height: 2rem; flex: none; }
.ic-ex.full { padding: .2rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.ic-ex.full .ic-ex-icon { position: absolute; inset: .2rem; width: calc(100% - .4rem); height: calc(100% - .4rem); }
.ic-ex.full .ic-ex-name { position: absolute; left: .25rem; right: .25rem; bottom: .2rem; padding: 0 .3rem; border-radius: 5px;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: .72rem; text-align: center; }
.ds-tile { display: inline-flex; align-items: center; justify-content: center; min-width: 6.5rem; min-height: 3.2rem; padding: .4rem .8rem; border-radius: 10px; color: #fff; font-weight: 650; }
.ds-tile.c-yellow, .ds-tile.c-gold, .ds-tile.c-silver, .ds-tile.c-white { color: #1f2937; }
/* items in basic look as on the till: the card with a coloured edge */
.ds-basic.ds-items .ds-tile { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 6px solid var(--c); justify-content: flex-start; }
.design-patterns { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.swatch span.c-none, .colour-show.c-none { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--border) 6px 8px); }
/* the chosen colour next to "Choose colour" (owner, 2026-10-05) */
.colour-chosen { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.colour-show { display: inline-block; width: 32px; height: 32px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--border); }
.colour-show.swatch-inherit-show { background: var(--bg); border: 1px dashed var(--border); box-shadow: none; }
.colour-dialog { width: min(520px, calc(calc(100vw / var(--sz, 1)) - 32px)); }
.colour-dialog .swatches { margin: .8rem 0; }
.swatch-inherit span { display: grid; place-items: center; width: auto !important; padding: 0 .6rem; background: var(--bg); border: 1px dashed var(--border); font-size: .78rem; font-weight: 650; color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.row-off td { color: var(--muted); }
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .8rem; align-items: end; }
.inline-form .field { margin: 0; }
.short { max-width: 160px; }
details.card > summary { cursor: pointer; font-weight: 650; }
details.card[open] > summary { margin-bottom: 1rem; }
.page-head .head-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.spaced { margin-top: 1.1rem; }

.side-head { gap: .4rem; }

/* licenses (admin portal) */
.wrap.wide { max-width: 1440px; }
.wrap.wide .table th, .wrap.wide .table td { padding-left: .7rem; padding-right: .7rem; }
.nowrap { white-space: nowrap; }
/* Sales > Cash & shifts > a day's Z (srv-194): as the paper shows it */
.z-paper { max-width: 30rem; margin: 1rem 0; padding: 1rem 1.2rem; font: 13px/1.4 Consolas, Menlo, 'Courier New', monospace; white-space: pre; overflow-x: auto; }
/* About > Beta versions (srv-196): show them = purple, back to stable only = green */
.btn.btn-beta { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.btn.btn-stable { background: #16a34a; border-color: #16a34a; color: #fff; }
.btn.btn-beta:hover { background: #6d28d9; } .btn.btn-stable:hover { background: #15803d; }
/* Delete this item / category: well apart from the form's Save (owner, 2026-10-12, srv-186) */
.danger-zone { margin-top: 2rem; }
/* a cell of running text (notes, descriptions): wraps inside the page - no side scroll (srv-182) */
.table td.text-cell { white-space: normal; overflow-wrap: anywhere; min-width: 16rem; line-height: 1.45; }
/* Items > Import: the column list wraps inside its card (owner, 2026-10-05: the text ran outside the box) */
.import-columns { width: 100%; }
/* Import/Export > Settings: the columns one under the other (owner, 2026-10-06: they were in a line) */
/* Online portal > Take away > Items for take-away (owner, 2026-10-06) */
.ta-items .setting-head .count { font-size: .85rem; }
.ta-quick { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .75rem 0 1rem; padding: .75rem;
  border: 1px solid var(--border); border-radius: 10px; }
.ta-quick select { flex: 1 1 200px; width: auto; }
.ta-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .75rem 0 .5rem; }
.ta-bar > span { margin-right: auto; }
/* Admin portal > Connectors (owner, 2026-10-06) */
.cf-add { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .75rem 0; }
.cf-add input[name=name], .cf-add input[name=content] { flex: 1 1 200px; width: auto; }
.cf-add input[name=comment] { flex: 1 1 160px; width: auto; }
.cf-add .cf-priority { width: 6rem; }
.cf-add select { width: auto; }
.cf-add .error { flex-basis: 100%; margin: 0; }
.setting-sub .setting-label { padding-left: 1.4rem; }
.order-group .setting-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.order-arrows { display: inline-flex; gap: .3rem; }
.subtabs-small { margin-top: -.4rem; font-size: .92rem; }
.cf-content { overflow-wrap: anywhere; max-width: 28rem; }
.subtabs a.tab-off { opacity: .55; }
/* Admin portal > About > Server (owner, 2026-10-06) */
.meter { display: inline-block; width: 8rem; height: .6rem; margin-right: .5rem; border-radius: 999px; background: var(--border); overflow: hidden; vertical-align: middle; }
.meter span { display: block; height: 100%; background: #16a34a; }
.meter.meter-warn span { background: #f59e0b; }
/* the bar drawn as SVG (an inline style="width" is blocked by the pages' security rules - every bar showed full) */
svg.meter { background: none; }
.meter-bg { fill: var(--border); }
.meter-fill { fill: #16a34a; }
.meter-warn .meter-fill { fill: #f59e0b; }
.warn-text { color: #b45309; font-weight: 700; }
/* Admin portal > Coding (owner, 2026-10-06) */
.coding-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .7rem; }
.coding-task { padding: .9rem 1rem; }
/* To do (owner, 2026-10-07): approved ones green, drafts grey */
.coding-task.is-draft { background: #f1f5f9; border-style: dashed; color: #475569; }
.coding-task.is-approved { background: #ecfdf5; border-color: #86efac; }
@media (prefers-color-scheme: dark) { .coding-task.is-draft { background: #1e293b; color: #cbd5e1; } .coding-task.is-approved { background: #10291f; border-color: #166534; } }
.coding-task.dragging { opacity: .4; }
.coding-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.coding-tools { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.drag-handle { cursor: grab; color: var(--muted); font-weight: 800; letter-spacing: -.2em; padding: 0 .3rem; user-select: none; }
.coding-edit { display: grid; gap: .4rem; margin-top: .6rem; }
.coding-edit textarea { width: 100%; }
.coding-edit .btn { justify-self: start; }
.coding-body { white-space: pre-line; margin: .6rem 0; }
.coding-question { padding: .6rem .8rem; border-left: 4px solid #16a34a; background: var(--bg); border-radius: 6px; }
.coding-question p { white-space: pre-line; margin: .3rem 0 0; }
.coding-task.is-unread .coding-title { font-weight: 800; }
.coding-list.show-ready .is-draft, .coding-list.show-draft .coding-task:not(.is-draft) { display: none; }
/* a second row of tabs under a page's own (super-admin Settings > Connectors; owner, 2026-10-06) */
.subtabs.subtabs-2 { margin-top: -.6rem; font-size: .95rem; }
.coding-counts { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.coding-editbox { margin: .3rem 0; }
.coding-editbox > summary { list-style: none; display: inline-flex; cursor: pointer; }
.coding-editbox[open] > summary { margin-bottom: .4rem; }
.coding-cards { display: grid; gap: .7rem; margin: 1rem 0; }
.coding-filter { margin: .6rem 0; }
.coding-filter input[type=search] { max-width: 420px; }
.coding-pictures { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.coding-picture { position: relative; display: inline-flex; align-items: flex-start; gap: .2rem; }
.coding-picture img { width: 120px; height: 90px; object-fit: cover; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
/* a picture opened big; a new one's preview can be opened or taken out (owner, 2026-10-07) */
.picture-open { padding: 0; border: 0; background: none; cursor: zoom-in; }
.coding-picture a[data-picture-view] { cursor: zoom-in; }
.picture-viewer { max-width: calc(95vw / var(--sz, 1)); max-height: calc(95vh / var(--sz, 1)); padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: zoom-out; }
.picture-viewer::backdrop { background: rgba(15, 23, 42, .8); }
.picture-viewer img { display: block; max-width: calc(95vw / var(--sz, 1)); max-height: calc(95vh / var(--sz, 1)); object-fit: contain; border-radius: 10px; background: #fff; }
.coding-add-pictures { margin: .3rem 0; }
.coding-add-pictures label { cursor: pointer; }
.coding-history { display: grid; gap: .4rem; margin: .5rem 0; }
/* the owner's words GREEN, the AI's results / questions BLUE - each its own tint (owner, 2026-10-11, srv-168) */
.coding-question { background: #eefaf2; }
.coding-earlier { border-left-color: #2563eb; background: #eef4ff; }
@media (prefers-color-scheme: dark) { .coding-question { background: #12261a; } .coding-earlier { background: #142039; } }
details.coding-task > summary { cursor: pointer; list-style: none; }
.bin-usage { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; flex-basis: 100%; margin: 0; }
.import-stats { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.ta-scroll { max-height: calc(65vh / var(--sz, 1)); overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.ta-scroll thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.ta-tick { width: 2.5rem; text-align: center; }
.ta-tick input { width: 1.15rem; height: 1.15rem; margin: 0; }
#ta-list label { cursor: pointer; }
.setting-control.ie-columns { display: grid; grid-template-columns: 1fr; justify-items: start; gap: .45rem; min-width: 14rem; }
.import-columns td:last-child, .import-columns th:last-child { white-space: normal; overflow-wrap: anywhere; }
.pill.warn { background: #fff4d6; color: #8a5a00; border-color: transparent; }
.notice.warn { background: #fff4d6; color: #8a5a00; }
@media (prefers-color-scheme: dark) {
  .pill.warn, .notice.warn { background: #3a2f12; color: #f5cf73; }
}
.pair { display: flex; gap: .6rem; }
.pair input { max-width: 160px; }
.pair select { width: auto; }
.short-wide { max-width: 240px; }
.table td .pill + br, .table td br + .pill { margin-top: .2rem; }

/* a box switched off by its tick box (e.g. number of branches while Multi-branch is off) */
input:disabled, select:disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; opacity: .6; }
.field:has(> input:disabled) label { color: var(--muted); }

/* item and category icons (back office) */
.icon-now { display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.icon-now img, .list-icon { border-radius: 8px; object-fit: contain; background: var(--bg); }
.list-icon { vertical-align: middle; margin-right: .5rem; }
form.inline { display: inline; }
input[type=file] { padding: .4rem; }
/* tick boxes in front of list rows (Tables: change / delete several at once) */
.table .tick { width: 2.4rem; text-align: center; }
.table .tick input { width: 20px; height: 20px; cursor: pointer; accent-color: var(--accent); }
[data-many] .inline-form + .inline-form { margin-top: .8rem; }
textarea { resize: vertical; min-height: 4.5rem; line-height: 1.4; }
/* groups inside a category (category page) */
.group-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.group-list li { display: flex; gap: .5rem; align-items: center; }
.group-row { display: flex; flex: 1; gap: .5rem; align-items: center; }
.group-row input[name=name] { flex: 1; min-width: 0; }
.group-row .muted { white-space: nowrap; font-size: .85rem; }
/* an ON / OFF switch button (Live code) */
.switch { display: inline-flex; align-items: center; gap: .45rem; padding: .2rem .6rem .2rem .25rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--muted); font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; }
.switch-knob { width: 30px; height: 18px; border-radius: 999px; background: var(--border); position: relative; transition: background .15s; }
.switch-knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch.on { color: var(--accent); border-color: var(--accent); }
.switch.on .switch-knob { background: var(--accent); }
.switch.on .switch-knob::after { left: 14px; }
.slug-row { display: flex; align-items: center; gap: .35rem; }
.slug-row input { flex: 1; min-width: 0; }
/* customer portal: an update is waiting - About lights up in the menu, and its Update card stands out */
.nav-badge { margin-left: auto; padding: .05rem .5rem; border-radius: 999px; background: #f59e0b; color: #1f1300; font-size: .72rem; font-weight: 800; animation: badge-glow 1.6s ease-in-out infinite; }
@keyframes badge-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .7); } 50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); } }
.update-card { border: 2px solid #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .15); }
@media (prefers-reduced-motion: reduce) { .nav-badge { animation: none; } }
.nav-badge.quiet { animation: none; background: #fde7b0; }         /* pending, none new (srv-156) */
.tick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .4rem .8rem; margin: .3rem 0; }
/* the license warning on the customer's pages and the till */
.license-banner { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; margin: 0 0 1rem; padding: .7rem 1rem; border-radius: 10px; font-weight: 600; }
.license-banner .i { flex: none; }
.license-banner.soon { background: #fff4d6; color: #8a5a00; border: 1px solid #f59e0b; }
.license-banner.grace, .license-banner.expired { background: var(--bad-bg); color: var(--bad-text); border: 1px solid var(--danger); }
.license-banner .countdown { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.1em; }
.license-banner .license-contact { font-weight: 500; }
.till .license-banner { margin: 0; border-radius: 0; border-width: 0 0 1px; }
@media (prefers-color-scheme: dark) { .license-banner.soon { background: #3a2f12; color: #f5cf73; } }
progress.meter { display: block; width: 100%; max-width: 260px; height: 8px; margin: .35rem 0; border: 0; border-radius: 999px; background: var(--border); accent-color: var(--accent); overflow: hidden; }
progress.meter::-webkit-progress-bar { background: var(--border); }
progress.meter::-webkit-progress-value { background: var(--accent); }
progress.meter::-moz-progress-bar { background: var(--accent); }
/* movable / resizable table columns (data-columns) */
th.movable { position: relative; cursor: grab; user-select: none; }
/* admin tables: tap a heading to sort (owner, 2026-10-05) */
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text); }
th.sort-up::after { content: " \25B2"; font-size: .7em; }
th.sort-down::after { content: " \25BC"; font-size: .7em; }
th.movable.drop-here { box-shadow: inset 3px 0 0 var(--accent); }
.col-grip { position: absolute; top: 0; right: -4px; width: 9px; height: 100%; cursor: col-resize; z-index: 1; }
.col-grip:hover { background: linear-gradient(to right, transparent 3px, var(--accent) 3px, var(--accent) 5px, transparent 5px); }
table.fixed-cols { table-layout: fixed; width: max-content; min-width: 100%; }
table.fixed-cols td { overflow: hidden; text-overflow: ellipsis; }
/* drop-down of tick boxes with a search box (item page: groups) */
.picker { position: relative; max-width: 420px; }
.picker-button { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 42px; padding: .45rem .8rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; list-style: none; }
.picker-button::-webkit-details-marker { display: none; }
.picker-button::after { content: "\25BE"; color: var(--muted); }
.picker:not(.has-value) .picker-button span { color: var(--muted); }
.picker[open] .picker-button { border-color: var(--accent); }
.picker-panel { position: absolute; z-index: 20; left: 0; right: 0; margin-top: .3rem; padding: .5rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
.picker-search { margin-bottom: .4rem; }
.picker-list { display: grid; gap: .15rem; max-height: 260px; overflow-y: auto; }
.picker-list .check { padding: .3rem .4rem; border-radius: 6px; }
.picker-list .check:hover { background: var(--bg); }
.picker-list .dot { flex: none; }
.section-title { margin: 1.4rem 0 .6rem; font-size: 1.05rem; }
.older-versions { margin-top: 1rem; }
.older-versions > summary { list-style: none; display: inline-flex; }
.older-versions > summary::-webkit-details-marker { display: none; }
.older-versions[open] > summary { margin-bottom: 1rem; }

/* super-admin portal (owner, 2026-10-02; menu moved to the top 2026-10-03): only the top bar and the
   menu are dark, the pages themselves keep the normal light look (owner, same day) */
.admin-nav, .admin-top {
  --bg: #161925;
  --surface: #1e2233;
  --field: #252a3d;
  --text: #e4e6f0;
  --muted: #8890ab;
  --border: #313650;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --on-accent: #ffffff;
  --link: #8b9cf5;
  --danger: #f87171;
  --danger-hover: #fca5a5;
  --ok-bg: #12332a;
  --ok-text: #7fe0b7;
  --bad-bg: #3d1b18;
  --bad-text: #fda29b;
  --top-bg: #11131c;
  --top-text: #e4e6f0;
  --top-muted: #8890ab;
  --focus: #8b9cf5;
  --shadow: none;
  color-scheme: dark;
}
.admin-top { border-bottom: 1px solid var(--border); justify-content: space-between; }
.admin-top .who { display: inline-flex; align-items: center; gap: .4rem; }
/* Coding on the top line (owner, 2026-10-06) */
.admin-top .top-link { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .6rem; border-radius: 8px; color: var(--top-muted); }
.admin-top .top-link:hover, .admin-top .top-link.on { color: var(--top-text); background: rgba(255, 255, 255, .1); text-decoration: none; }
/* the menu is a dark bar under the top bar (owner, 2026-10-03: moved from the left to the top) */
.admin-layout { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.admin-nav { flex: none; padding: 0 1rem; background: var(--surface); border-bottom: 1px solid var(--border); color: var(--text); overflow-x: auto; }
.admin-nav-links { display: flex; flex-direction: row; gap: .2rem; max-width: 1200px; margin: 0 auto; }
/* POS_01 / POS_02 / Backups lights (owner, 2026-10-11, srv-166) */
.health-lights { flex: none; display: flex; align-items: center; gap: .45rem; margin-left: .9rem; margin-right: auto; }
.health-lights .light { display: block; width: 12px; height: 12px; padding: 0; border-radius: 50%; }
.light.ok { background: #22c55e; }
.light.bad { background: #dc2626; animation: badge-glow 1.6s ease-in-out infinite; }
.light.unknown { background: #9ca3af; }
.light.warn { background: #f59e0b; }              /* (srv-209: a release waiting to be published) */
.lights-label { font-size: .72rem; font-weight: 650; color: var(--top-muted); margin-right: .1rem; }
.lights-label-2 { margin-left: .7rem; }
.admin-nav a { flex: none; display: flex; align-items: center; gap: .55rem; min-height: 46px; padding: .4rem .9rem; color: var(--muted); font-weight: 550; border-bottom: 3px solid transparent; }
.admin-nav a:hover { background: rgba(255, 255, 255, .05); color: var(--text); text-decoration: none; }
.admin-nav a.on { color: var(--text); border-bottom-color: var(--link); background: rgba(124, 58, 237, .18); }
.admin-nav a.nav-end { margin-left: auto; }            /* Feature requests: the far right (owner, 2026-10-05) */
.admin-nav a .nav-badge { margin-left: .2rem; }
.admin-main { min-width: 0; width: 100%; }
@media (max-width: 800px) {
  .admin-nav { padding: 0 .4rem; }
  .admin-nav a { padding: .4rem .6rem; }
}

/* settings shown one per line: name + help on the left, the control on the right */
.settings { display: grid; gap: 1.1rem; max-width: 960px; }
.setting-card { padding: 0; }
.setting-head { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); }
.setting-head .i { color: var(--link, var(--accent)); }
.setting-intro { padding: .8rem 1.25rem 0; }
.setting-intro p { margin: 0 0 .3rem; }
.setting-list { padding: .2rem 1.25rem; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--border); margin: 0; }
.setting-row:last-child { border-bottom: 0; }
.setting-label { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; min-width: 220px; }
.setting-label > strong { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.setting-label label { font-weight: inherit; cursor: pointer; }
.setting-label .muted { font-size: .8rem; }
.setting-label .error { margin: .2rem 0 0; }
.setting-control { display: flex; align-items: center; justify-content: flex-end; gap: 6px 8px; flex-wrap: wrap; }
.setting-control.grow { flex: 1 1 340px; justify-content: stretch; }
.setting-control.grow > * { flex: 1 1 100%; }
.setting-control .error { flex-basis: 100%; text-align: right; margin: 0; }
.setting-control.grow .error { text-align: left; }
.setting-control:not(.grow) > input:not([type=radio]):not([type=checkbox]):not([type=hidden]), .setting-control select { width: auto; }
.setting-control input[inputmode] { max-width: 7rem; }
.setting-control .check input { width: 1.25rem; height: 1.25rem; }
.setting-control form { margin: 0; }
.setting-save { justify-content: flex-end; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* super-admin companies list: the whole width of the browser (owner, 2026-10-02) + the Columns chooser */
.admin-main.wrap.wide { max-width: none; }
.col-chooser { position: relative; }
.col-chooser > summary { list-style: none; }
.col-chooser > summary::-webkit-details-marker { display: none; }
.col-chooser[open] > summary { border-color: var(--accent); }
.col-chooser-panel { position: absolute; z-index: 20; right: 0; margin-top: .3rem; width: 260px; padding: .7rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }
.col-chooser-panel p { font-size: .8rem; margin: 0 0 .4rem; }
.col-chooser-list { display: grid; gap: .1rem; max-height: calc(60vh / var(--sz, 1)); overflow-y: auto; }
.col-chooser-list .check { padding: .3rem .4rem; border-radius: 6px; font-weight: 500; }
.col-chooser-list .check:hover { background: var(--bg); }
.col-chooser-list input:disabled + span { color: var(--muted); }

/* License prices page + a company's price per year */
.setting-save-bar { display: flex; justify-content: flex-end; }
.price-total { font-size: 1.05rem; }
.price-amount { min-width: 5.5rem; text-align: right; }
.setting-row > .setting-control { margin-left: auto; }

/* About page: the license, part by part, with the cost per year */
.plan-card { margin-bottom: 1.1rem; }
.plan-card > h2 { padding: 1.1rem 1.25rem 0; }
.plan-table td { white-space: normal; vertical-align: top; }
.plan-table td:first-child { color: var(--muted); white-space: nowrap; }
.plan-table .help { display: block; }
.plan-table tfoot th { padding: .75rem 1rem; text-align: left; font-size: 1rem; border-top: 2px solid var(--border); }
.plan-table tfoot th.num { text-align: right; }
.plan-note { margin: 0 1.25rem 1.1rem; }

/* Settings: tabs on top of its pages (company/_settings_tabs.html) */
.subtabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.1rem; }
.subtabs a { padding: .55rem .9rem; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; }
.subtabs a:hover { color: var(--text); text-decoration: none; }
.subtabs a.on { color: var(--accent); border-bottom-color: var(--accent); border-radius: 8px 8px 0 0;
  background: color-mix(in srgb, #22c55e 22%, transparent); }        /* where you are, lit up (srv-113) */

/* item page: the extras picker (each extra + "in by default") */
.extra-option { display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-radius: 6px; }
.extra-option:hover { background: var(--bg); }
.extra-option .check { padding: .3rem .4rem; }
.extra-default { font-size: .85rem; font-weight: 500; color: var(--muted); }

/* the top line of every page: the business's name (and the mode) */
.company-line { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .35rem 1.25rem; background: var(--top-bg); color: var(--top-text); font-size: .9rem; }
.company-line strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-line span { flex: none; color: var(--top-muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* the user's menu (the name at the foot of the left menu): Edit my account / Switch user / Sign out */
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu[open] > summary { background: rgba(255, 255, 255, .12); }
.user-menu-panel { position: absolute; z-index: 30; left: 0; bottom: calc(100% + .35rem); min-width: 220px; width: 100%; padding: .35rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.user-menu-panel a, .user-menu-panel button { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 42px; padding: .4rem .7rem; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.user-menu-panel a:hover, .user-menu-panel button:hover { background: var(--bg); text-decoration: none; }
.user-menu-panel form { margin: 0; }

/* Settings > Printers > Receipts: the parts (tick + up / down) and a preview of the receipt */
.receipt-design { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 1.1rem; align-items: start; }
.reorder-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .3rem; }
.reorder-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .35rem .5rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.reorder-row .check { flex: 1; min-width: 0; }
.reorder-tools { display: flex; gap: .3rem; flex: none; }
.receipt-preview-card { position: sticky; top: 1rem; }
.receipt-preview { padding: 1rem; border: 1px dashed var(--border); border-radius: 6px; background: #fff; color: #111; font: .85rem/1.45 ui-monospace, "Cascadia Mono", Consolas, monospace; text-align: center; }
.receipt-preview p { margin: 0 0 .35rem; white-space: pre-line; }
.receipt-preview .preview-name { font-weight: 800; font-size: 1rem; }
.receipt-preview .preview-lines, .receipt-preview .preview-total, .receipt-preview .preview-payment, .receipt-preview .preview-vat { text-align: left; }
.receipt-preview .preview-total { font-weight: 800; border-top: 1px dashed #999; padding-top: .3rem; }
@media (max-width: 800px) { .receipt-design { grid-template-columns: minmax(0, 1fr); } .receipt-preview-card { position: static; } }

/* items list: Categories / Groups buttons open a panel of boxes */
.box-toggle .i { margin-right: .35rem; }
.box-toggle.on { border-color: var(--accent); color: var(--accent); }
.box-chosen { font-weight: 700; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box-panel { display: flex; flex-wrap: wrap; gap: .5rem; max-height: 260px; overflow-y: auto; margin: -.3rem 0 1rem; padding: .7rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.filter-box { min-height: 48px; min-width: 110px; padding: .4rem .9rem; border: 3px solid transparent; border-radius: 10px; color: #fff; font: inherit; font-weight: 700; cursor: pointer; opacity: .8; }
.filter-box:hover { opacity: 1; }
.filter-box.on { opacity: 1; border-color: var(--text); box-shadow: 0 0 0 2px var(--surface) inset; }
.box-actions { flex-basis: 100%; display: flex; justify-content: flex-end; }
.box-none { flex-basis: 100%; margin: 0; }

/* receipts: each text line left / centred / right (owner, 2026-10-06) */
.align-pick { width: auto; min-width: 0; padding: .25rem .4rem; font-size: .85rem; }
/* receipts: empty lines and the logo */
.reorder-blank { background: var(--bg); border-style: dashed; }
.reorder-blank > .muted { flex: 1; font-style: italic; }
.receipt-preview img { max-width: 60%; max-height: 90px; }
.logo-now img { max-width: 220px; max-height: 110px; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: .3rem; }
.upgrade-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Settings > Printers */
.choice-off { opacity: .5; cursor: not-allowed; }
.pair-fields { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: .8rem; }
.box-panel.has-choice .filter-box:not(.on) { opacity: .35; filter: grayscale(.7); }

/* Sales > Orders */
.orders-filter { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .3rem 1rem; align-items: end; margin-bottom: 1rem; }
.orders-filter .field { margin: 0; }
.receipt-card { display: grid; justify-items: center; gap: .8rem; }
.receipt-paper { width: 300px; max-width: 100%; padding: 1rem; background: #fff; color: #111; border: 1px dashed #bbb; font: .85rem/1.45 ui-monospace, "Cascadia Mono", Consolas, monospace; text-align: center; }
.receipt-paper h2 { margin: 0 0 .2rem; font-size: 1.05rem; }
.receipt-paper p { margin: 0 0 .25rem; }
.receipt-paper table { width: 100%; border-collapse: collapse; text-align: left; margin: .3rem 0; }
.receipt-paper td { padding: .1rem 0; vertical-align: top; }
.receipt-paper .r-num { text-align: right; white-space: nowrap; padding-left: .6rem; }
.receipt-paper .r-total td { font-weight: 800; border-top: 1px dashed #999; padding-top: .3rem; }
.receipt-paper .r-small td { font-size: .78rem; color: #555; }
.receipt-paper .r-logo { display: block; max-width: 60%; max-height: 90px; margin: 0 auto .4rem; }
.receipt-paper .r-text { white-space: pre-line; }
.receipt-paper .r-foot { margin-top: .6rem; font-weight: 700; }
@media print {
  body.has-side * { visibility: hidden; }
  body.has-side #receipt-paper, body.has-side #receipt-paper * { visibility: visible; }
  body.has-side #receipt-paper { position: absolute; left: 0; top: 0; width: 72mm; border: 0; padding: 0; }
  /* a local printer's test page (#383): only its paper, on a page of its size (app.js posPaperPage) */
  body.has-side #test-paper, body.has-side #test-paper * { visibility: visible; }
  body.has-side #test-paper { position: absolute; left: 0; top: 0; width: 72mm; margin: 0; border: 0; padding: 0; box-shadow: none; }
  body.has-side #test-paper.paper-58 { width: 48mm; }
  #receipt-paper, #test-paper { break-inside: avoid; }          /* (one page - never a receipt cut in two) */
}

/* confirmation window: type a word first (Live code) */
.confirm-type { display: grid; gap: .35rem; margin-top: 1rem; }
.confirm-type[hidden] { display: none; }
.dialog .btn:disabled { opacity: .45; cursor: not-allowed; }

/* Restaurant > Calendar: the month on the left, the day's reservations on the right */
.calendar-layout { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.cal-month { padding: 1rem; }
.cal-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.cal-head strong { flex: 1; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; }
.cal-wd { text-align: center; font-size: .78rem; color: var(--muted); font-weight: 600; padding-bottom: .2rem; }
.cal-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  min-height: 2.8rem; border-radius: 8px; border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.cal-day:hover { border-color: var(--accent); }
.cal-day.other { opacity: .45; }
.cal-day.today .cal-num { font-weight: 800; color: var(--accent); }
.cal-day.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cal-day.on .cal-num { color: var(--on-accent); }
.cal-count { font-size: .72rem; font-weight: 700; line-height: 1; padding: .15rem .4rem; border-radius: 999px; background: var(--ok-bg); color: var(--ok-text); }
.cal-key { margin: .7rem 0 0; font-size: .82rem; }
.cal-list h2 { margin: 0 0 .8rem; font-size: 1.1rem; }
.cal-booking { padding: .8rem 1rem; margin-bottom: .7rem; }
.cal-booking.closed { opacity: .6; }
.cal-booking-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.cal-time { font-size: 1.1rem; }
.cal-booking-head .pill { margin-left: auto; }
.cal-facts { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: .45rem 0 0; }
.cal-booking .muted { margin: .35rem 0 0; }
.cal-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }
.cal-when { display: grid; grid-template-columns: 1fr 1fr 6rem; gap: 0 1rem; }
@media (max-width: 800px) {
  .calendar-layout { grid-template-columns: minmax(0, 1fr); }
  .cal-when { grid-template-columns: 1fr 1fr; }
}

/* Settings > Client portal: opening times (seat booking, table bookings) */
.hidden-form { display: none; }
.window-control { display: grid; gap: .45rem; justify-items: stretch; min-width: min(100%, 460px); }
.window-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .35rem .6rem; border: 1px solid var(--border); border-radius: 8px; }
.window-when { flex: 1; }
.window-add { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.window-control .window-add input[type="date"] { width: 10.5rem; }
.window-control .window-add input[type="time"] { width: 7rem; }
.window-repeat { display: inline-flex; align-items: center; gap: .3rem; }
.window-control .window-repeat input[name] { width: 3.2rem; }

/* group page: the item list shows each item's category on the right */
.picker-list .check .muted { margin-left: auto; font-size: .85rem; }

/* Admin portal > Products: what each kind of business gets */
.products-key { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.products-table .prod-col { text-align: center; width: 9rem; }
.products-table .prod-group th { background: var(--bg); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: left; }
.prod { display: inline-block; min-width: 1.8rem; padding: .1rem .45rem; border-radius: 999px; font-weight: 700; font-size: .85rem; line-height: 1.4; text-align: center; }
.prod.yes { background: var(--ok-bg); color: var(--ok-text); }
.prod.addon { background: #ede9fe; color: #5b21b6; }
.prod.soon { background: #fff4d6; color: #8a5a00; }
.prod.no { color: var(--muted); }
.prod-roles { font-size: .88rem; }

/* Opening times: the days of the week to tick */
.weekday-picks { display: inline-flex; flex-wrap: wrap; gap: .25rem; }
.weekday-pick { display: inline-flex; align-items: center; gap: .2rem; padding: .25rem .45rem; border: 1px solid var(--border); border-radius: 8px; font-size: .88rem; cursor: pointer; }
.weekday-pick:has(input:checked) { border-color: var(--accent); background: var(--ok-bg); }

/* Menu > Icons and the icon picker on items / groups / categories */
.icon-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; align-items: start; }
.icon-card { display: grid; justify-items: center; gap: .25rem; padding: .6rem; text-align: center; }
.icon-card-name { font-size: .9rem; overflow-wrap: anywhere; }
.icon-card-used { font-size: .78rem; }
/* Edit opens the name, picture and Remove (owner, 2026-10-05: they took a lot of room) */
.icon-edit { width: 100%; }
.icon-edit > summary { list-style: none; width: 100%; justify-content: center; }
.icon-edit > summary::-webkit-details-marker { display: none; }
.icon-edit[open] > summary { margin-bottom: .4rem; }
.icon-edit .icon-remove { width: 100%; justify-content: center; margin-top: .3rem; }
/* Choose icon / Upload icon: the same size, light blue and blue (owner, 2026-10-05) */
.icon-btn { width: 11rem !important; min-height: 40px; justify-content: center; color: #fff; border-color: transparent; }
.icon-btn-choose { background: #38bdf8; }
.icon-btn-choose:hover { background: #0ea5e9; }
.icon-btn-upload { background: #2563eb; }
.icon-btn-upload:hover { background: #1d4ed8; }
.icon-file { position: relative; width: 100%; justify-content: center; overflow: hidden; cursor: pointer; }
.icon-file input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.icon-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* "Upload icon": its words in the middle like "Choose icon" (owner, 2026-10-05) */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.icon-btn.icon-file span { flex: 1 1 auto; text-align: center; }
/* the Upload icon button is a <label>: the form's label style made it a plain block (words on top, a little higher
   than Choose icon) - it gets the button's own look back (owner, 2026-10-06) */
.icon-chosen label.icon-btn { display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: .5rem .95rem; line-height: 1.5; }
.icon-card img { border-radius: 10px; }
.icon-card[hidden] { display: none; }
.icon-card p { margin: 0; }
/* the icon's edit form, one thing under the other (owner, 2026-10-05: they overlapped) */
.icon-name { display: grid; gap: .4rem; width: 100%; text-align: left; }
.icon-name input:not([type="file"]) { width: 100%; min-width: 0; }
.icon-name .btn { width: 100%; justify-content: center; }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .4rem; max-height: 18rem; overflow-y: auto; padding: .2rem; }
.icon-opt { display: grid; justify-items: center; gap: .2rem; padding: .45rem .3rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: .82rem; text-align: center; word-break: break-word; }
.icon-opt input { position: absolute; opacity: 0; pointer-events: none; }
.icon-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.icon-opt:has(input:focus-visible) { outline: 2px solid var(--focus); }
.icon-none { display: grid; place-items: center; width: 40px; height: 40px; color: var(--muted); font-size: 1.4rem; }

/* Receipts: an empty line can carry your own text */
.reorder-blank .blank-text { flex: 1; min-width: 0; }

/* the left menu's groups fold open / closed (owner, 2026-10-04) */
summary.side-title { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; padding-top: .25rem; padding-bottom: .25rem; border-radius: 6px; }
summary.side-title::-webkit-details-marker { display: none; }
summary.side-title::after { content: "\25BE"; font-size: .9rem; transition: transform .15s; }
details.side-group:not([open]) > summary.side-title::after { transform: rotate(-90deg); }
summary.side-title:hover { color: var(--top-text); background: rgba(255, 255, 255, .05); }

/* Feature requests: the window on About, the list in the admin portal */
.request-dialog { max-width: 520px; }
.request-dialog h2 { margin: 0 0 .8rem; }
.request-card { padding: .9rem 1rem; margin-bottom: .7rem; }
.request-card.is-new { border-left: 4px solid var(--accent); }
.request-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.request-note { white-space: pre-line; margin: .6rem 0; }
.request-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

.request-bulk { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .7rem 1rem; margin-bottom: .8rem; }
.request-bulk select { width: auto; }
.request-head input[type=checkbox] { width: 1.2rem; height: 1.2rem; }

/* On / off toggles instead of tick boxes (owner, 2026-10-04): <label class="check toggle"><input type="checkbox">;
   a setting row whose toggle is off is greyed */
.check.toggle input[type="checkbox"] { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 2.7rem; height: 1.5rem; margin: 0; border-radius: 999px; background: var(--border); cursor: pointer; transition: background .15s; }
.check.toggle input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px); border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s; }
.check.toggle input[type="checkbox"]:checked { background: var(--accent); }
.check.toggle input[type="checkbox"]:checked::after { transform: translateX(1.2rem); }
.check.toggle input[type="checkbox"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.check.toggle input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }
.setting-row:has(.check.toggle input:not(:checked)):not(:has(.check.toggle input:checked)) .setting-label,
.setting-row:has(.check.toggle input:not(:checked)):not(:has(.check.toggle input:checked)) .setting-control > :not(.toggle) { opacity: .5; transition: opacity .15s; }
.setting-control .check.toggle { gap: .45rem; }

/* Remote-Agent registration keys */
.agent-key { font-size: 1rem; padding: .3rem .6rem; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); user-select: all; }
.agent-secret { border-color: var(--accent); font-weight: 700; letter-spacing: .04em; }

/* forms: a toggle that is off greys its own field (owner, 2026-10-04) */
.field:has(> .check.toggle input:not(:checked)) .help,
.field:has(> .check.toggle input:not(:checked)) > .check.toggle > span { opacity: .55; transition: opacity .15s; }
.check.toggle { display: inline-flex; align-items: center; gap: .55rem; }

/* Two-factor sign-in: the QR code to scan the first time (company/login_code.html) */
.totp-qr { display: flex; justify-content: center; margin: .6rem 0; }
.totp-qr svg { background: #fff; border-radius: 6px; }
.totp-key-line { text-align: center; }
.totp-key { font-size: 1rem; letter-spacing: .04em; word-break: break-all; }
form.inline { display: inline-block; margin: 0; }
/* the icon window (company/_icon_pick.html) */
.icon-chosen { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.icon-chosen-show { display: inline-flex; align-items: center; gap: .5rem; }
.icon-dialog { width: min(720px, calc(calc(100vw / var(--sz, 1)) - 32px)); }
.icon-dialog .icon-pick { max-height: calc(55vh / var(--sz, 1)); overflow: auto; margin: .7rem 0; }
.icon-upload { display: grid; gap: .3rem; margin-top: .6rem; }
/* Home: the business at a glance (company/home.html) */
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.stat-head h2 { margin: 0; }
.amounts-dialog { width: min(380px, calc(calc(100vw / var(--sz, 1)) - 32px)); }
.stat-group { margin: 1rem 0 .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat-card h2 + .stat-group { margin-top: .4rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.stat { display: grid; gap: .15rem; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 12px; color: var(--text); text-decoration: none; background: var(--surface); }
.stat strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.stat { position: relative; }
.stat-icon { position: absolute; top: .7rem; right: .75rem; font-size: 1.25rem; color: var(--accent); opacity: .85; }
.stat:hover { border-color: var(--accent); text-decoration: none; }
/* app.js copy button's fallback box: off the screen */
.copy-box { position: fixed; left: -9999px; top: 0; }
/* Show / hide a password or PIN (app.js, data-show-password) */
.pass-show { position: relative; display: block; }
.setting-control > .pass-show { display: inline-block; }
.setting-control:not(.grow) > .pass-show > input { width: auto; }
.setting-control .pass-show > input[inputmode] { max-width: 9.5rem; }
.pass-show > input { padding-right: 2.6rem !important; }
.pass-eye { position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); display: inline-flex;
  align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; padding: 0; border: 0;
  border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.pass-eye:hover, .pass-eye[aria-pressed="true"] { color: var(--text); }
/* Customer Support (owner, 2026-10-05): the answer box on a request, and the company's Support page */
.request-reply { display: grid; gap: .3rem; margin: .4rem 0 .6rem; }
.request-reply textarea { width: 100%; }
.request-reply .btn { justify-self: start; }
.support-list { display: grid; gap: .7rem; }
.support-item .request-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
/* Customer Support list (owner, 2026-10-05): a line per request, folded */
.sr-list { padding: 0; overflow: hidden; }
.sr-grid { display: grid; grid-template-columns: 1.6rem 7.5rem minmax(0, 1fr) 9rem 11rem 6.5rem 6.5rem; gap: .7rem; align-items: center; padding: .55rem 1rem; }
.sr-head { background: var(--bg); border-bottom: 1px solid var(--border); font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.sr-row { border-bottom: 1px solid var(--border); }
.sr-row:last-child { border-bottom: 0; }
.sr-row > summary { cursor: pointer; list-style: none; }
.sr-row > summary::-webkit-details-marker { display: none; }
.sr-row > summary:hover { background: var(--bg); }
.sr-row.is-new > summary { box-shadow: inset 4px 0 0 var(--accent); font-weight: 600; }
.sr-row[open] > summary { background: var(--bg); }
.sr-title, .sr-company { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-body { padding: .3rem 1rem 1rem 3.3rem; }
.sr-filter, .sr-bin-settings { margin-bottom: .8rem; }
@media (max-width: 900px) { .sr-grid { grid-template-columns: 1.6rem minmax(0, 1fr) 6.5rem; } .sr-grid > :nth-child(2), .sr-grid > :nth-child(4), .sr-grid > :nth-child(5), .sr-grid > :nth-child(6) { display: none; } .sr-body { padding-left: 1rem; } }
/* support requests fold open / shut (owner, 2026-10-05) */
details.request-card > summary, details.support-item > summary { cursor: pointer; list-style: none; }
details.request-card > summary::-webkit-details-marker, details.support-item > summary::-webkit-details-marker { display: none; }
details.request-card > summary::before, details.support-item > summary::before { content: "\25B8"; color: var(--muted); }
details.request-card[open] > summary::before, details.support-item[open] > summary::before { content: "\25BE"; }
details.request-card[open] > summary, details.support-item[open] > summary { margin-bottom: .5rem; }
.support-item.is-closed { opacity: .8; }
.support-closed { margin: .6rem 0 0; }
.request-ref { font-weight: 700; font-variant-numeric: tabular-nums; }
/* chat bubbles (owner, 2026-10-05; lighter later the same day): the customer light grey, Support light blue -
   see-through, dark letters, in both portals */
.support-msg { max-width: 85%; margin: .5rem 0 0; padding: .6rem .85rem; border-radius: 14px; color: var(--text); white-space: pre-line; }
.support-msg strong { display: block; margin-bottom: .2rem; font-size: .8rem; }
.support-msg.from-company { background: rgba(100, 116, 139, .13); border: 1px solid rgba(100, 116, 139, .25); border-bottom-left-radius: 4px; margin-right: auto; }
.support-msg.from-company strong { color: var(--muted); }
.support-msg.from-support { background: rgba(37, 99, 235, .1); border: 1px solid rgba(37, 99, 235, .25); border-bottom-right-radius: 4px; margin-left: auto; }
.support-msg.from-support strong { color: #1d4ed8; }
.support-waiting { margin: .5rem 0 0; font-style: italic; }
.support-allowance .stat-grid { grid-template-columns: repeat(3, minmax(0, 160px)); }
.support-allowance p { margin: .6rem 0 0; }
.stat.stat-warn strong { color: var(--danger); }
.support-answer { margin: .5rem 0 0; padding: .6rem .8rem; border-left: 3px solid var(--accent); border-radius: 8px; background: var(--ok-bg); white-space: pre-line; }
.support-answer strong { display: block; margin-bottom: .2rem; color: var(--ok-text); }
/* Menu > Icons: change an icon's picture (owner, 2026-10-05) */
.icon-replace { display: grid; gap: .2rem; font-size: .85rem; }
.icon-replace input { max-width: 100%; }
/* Settings > Client portal > Self-Order (owner, 2026-10-05) */
.self-tables { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.self-qr svg { width: 180px; height: auto; display: block; }
/* a choice as buttons, the chosen one green (company/item_form.html VAT; owner, 2026-10-05) */
.choice-buttons { display: flex; flex-wrap: wrap; gap: .4rem; }
/* (#250: only the small buttons - these rules also hit the big choice cards: white boxes inside a green card) */
.choice-buttons .choice { position: relative; }
.choice-buttons .choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-buttons .choice span { display: inline-block; min-width: 4.5rem; padding: .5rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); text-align: center; font-weight: 600; cursor: pointer; }
.choice-buttons .choice span:hover { border-color: #16a34a; }
.choice-buttons .choice input:checked + span { background: #16a34a; border-color: #16a34a; color: #ffffff; }
.choice-buttons .choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
/* the choice cards (#250, owner 2026-10-17: "letters touching the box"): ".field label" (no padding, block) was
   stronger than ".choice" - the radio sat on its own line and the text touched the border. One clear card: the radio
   on the left, the title and its description next to it, room all round; the chosen one with a thick accent border
   and a light tint */
.choices .choice { display: flex; gap: .75rem; align-items: flex-start; margin: 0; padding: .95rem 1.05rem;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-weight: 400; cursor: pointer;
  transition: border-color .12s, background .12s; }
.choices .choice:hover { border-color: var(--accent); }
.choices .choice input { flex: none; width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; }
.choices .choice .choice-body { display: grid; gap: .3rem; min-width: 0; }
.choices .choice .choice-title { font-weight: 700; font-size: 1rem; line-height: 1.25; }
.choices .choice .choice-desc { font-size: .88rem; line-height: 1.45; }
.choices .choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.choices .choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choices .choice-off, .choices .choice-off:hover { opacity: .5; cursor: not-allowed; border-color: var(--border); }
[data-only-kind] > .help:last-child { margin-bottom: 1.1rem; }      /* (the address help before the next field) */
/* the time window (app.js timeWindow; owner, 2026-10-05): Hours and Min boxes side by side, OK below */
.time-pick { position: relative; display: inline-block; }
.time-pick > input[data-time-pick][type="text"] { width: 6.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.time-pop { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; width: 21rem; max-width: calc(calc(100vw / var(--sz, 1)) - 32px); padding: .6rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.time-pop[hidden] { display: none; }
.time-cols { display: grid; grid-template-columns: 4fr 3fr; gap: .6rem; align-items: start; }
.time-col { border: 1px solid var(--border); border-radius: 10px; padding: .4rem; }
.time-head { font-weight: 700; text-align: center; margin-bottom: .4rem; }
.time-grid { display: grid; gap: .25rem; }
.time-hours { grid-template-columns: repeat(4, 1fr); }
.time-minutes { grid-template-columns: repeat(3, 1fr); }
.time-minutes.few { grid-template-columns: repeat(2, 1fr); }
.time-ok { width: 100%; margin-top: .6rem; }
.time-grid button { min-height: 2.1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: .9rem; font-variant-numeric: tabular-nums; cursor: pointer; }
.time-grid button:hover { border-color: var(--accent); }
.time-grid button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Menu > Instant mode (owner, 2026-10-07): its levels */
.instant-level { display: grid; gap: .8rem; }
.instant-level-head { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.instant-level-head h2 { margin: 0; flex: 1; }
.instant-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; align-items: end; }
.instant-names .field { margin: 0; }
.instant-level-form .instant-names { margin-top: .8rem; }
/* #489: the bulk change's group tick boxes - in columns; the check step's one line per item */
.bulk-group-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .3rem .8rem;
  margin: .5rem 0; max-height: 16rem; overflow-y: auto; }
.bulk-group-changes { margin: .6rem 0; padding-left: 1.1rem; }
/* #487: the items window's Find + Group + Category - one row, wrapping above the lists on a phone */
.dual-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.dual-filters .dual-search { flex: 1 1 14rem; margin: 0; }
.dual-filters select { flex: 0 1 12rem; min-width: 0; }
.dual-filters .dual-shown { flex: 0 0 auto; }     /* (#486: the names in the count's form) */

/* filter lines (owner, 2026-10-07; NDM's look): one compact line each - column, condition, text, + / - */
.filter-rows { flex: 0 1 auto; display: grid; gap: .3rem; }
.filter-rows [data-rows] { display: grid; gap: .3rem; }
.filter-row { display: flex; flex-wrap: nowrap; align-items: center; gap: .35rem; }
.filter-bar .filter-row select, .filter-row select { flex: 0 0 11rem; width: 11rem; min-height: 38px; padding: .35rem .5rem; }
.filter-bar .filter-row input[type=search], .filter-row input { flex: 0 0 14rem; width: 14rem; min-height: 38px; padding: .35rem .6rem; }
.filter-row .btn-small { flex: none; width: 2.1rem; min-height: 2.1rem; padding: 0; font-size: 1.1rem; line-height: 1; }
.filter-row [hidden] { display: none; }
@media (max-width: 760px) {
  .filter-row { flex-wrap: wrap; }
  .filter-bar .filter-row select, .filter-row select { flex: 1 1 45%; width: auto; }
  .filter-bar .filter-row input[type=search], .filter-row input { flex: 1 1 70%; width: auto; }
}

/* a version published as beta (owner, 2026-10-07) */
.pill.beta { background: #e8e0ff; color: #4b2a9a; border-color: transparent; }
@media (prefers-color-scheme: dark) { .pill.beta { background: #2f2450; color: #c9b8ff; } }
.version-warning { white-space: pre-line; }

/* Menu > Instant mode > Design (owner, 2026-10-07, srv-48): the Instant orders screen to scale */
.design-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; padding: .8rem 1rem; }
.design-tool { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.design-tool input { width: 4.5rem; min-height: 36px; }
.design-tools .seg { display: inline-flex; gap: .25rem; }
.design-actions { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; }
.design-frame { position: relative; margin: 1rem 0; overflow: hidden; border-radius: 12px; }
.design-screen { position: absolute; top: 0; left: 0; width: 1280px; height: 760px; transform-origin: 0 0; display: grid;
  grid-template-columns: minmax(0, 1fr) var(--tk-w); border: 2px solid var(--text); border-radius: 12px; background: var(--bg); overflow: hidden; }
.design-screen.ticket-left { grid-template-columns: var(--tk-w) minmax(0, 1fr); }
.design-screen.ticket-left .design-ticket { order: -1; border-left: 0; border-right: 2px solid var(--border); }
.design-screen.dragging, .design-screen.dragging * { cursor: nwse-resize; user-select: none; }
.design-main { display: flex; flex-direction: column; gap: 10px; padding: 12px; overflow: hidden; }
.design-levels { display: grid; gap: 0; }
.design-level { display: grid; gap: 6px; padding: 8px 0; border-bottom: 2px solid var(--border); }
.design-level-head { display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.design-arrow { min-width: 28px; min-height: 26px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer; }
.design-arrow:disabled { opacity: .35; cursor: default; }
.design-boxes { display: flex; flex-wrap: wrap; gap: 10px; }
.design-box { position: relative; display: flex; align-items: center; justify-content: center; border: 2px solid var(--border);
  border-radius: 10px; background: var(--surface); color: var(--text); font-weight: 700; overflow: hidden; text-align: center; }
.design-group { font-size: 1.1rem; }
.design-group.g1 { width: var(--g1-w); height: var(--g1-h); }
.design-group.g2 { width: var(--g2-w); height: var(--g2-h); }
.design-group.g3 { width: var(--g3-w); height: var(--g3-h); }
/* Instant mode > Items (owner, 2026-10-08): the chosen Level 1 / Level 2 button in green; room above Level 2's row */
.subtabs.instant-l1 a.on, .subtabs.instant-l2 a.on { background: var(--accent); color: #fff; border-radius: 8px 8px 0 0; }
.subtabs.instant-l1 a.on .dot, .subtabs.instant-l2 a.on .dot { box-shadow: 0 0 0 2px #fff; }
.subtabs.subtabs-2.instant-l2 { margin-top: 1.4rem; }
.subtabs.instant-l3 { font-size: .92rem; }
/* Restaurant > Order > Design (owner, 2026-10-08, srv-84): the form, and next to it a preview at 3/4 size */
.od-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 560px); gap: 1rem; align-items: start; }
@media (max-width: 1000px) { .od-layout { grid-template-columns: minmax(0, 1fr); } }
.od-layout .setting-card { max-width: none; }
.od-preview-card { padding: 1rem; position: sticky; top: 1rem; }
.od-preview-card h2 { margin: 0 0 .6rem; font-size: 1rem; }
.od-preview { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--od-w, 330px) * .75); min-height: 330px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: .75rem; background: var(--bg); }
.od-preview.od-left { grid-template-columns: calc(var(--od-w, 330px) * .75) minmax(0, 1fr); }
.od-preview.od-left .od-ticket { order: -1; border-left: 0; border-right: 1px solid var(--border); }
.od-menu { display: grid; place-items: center; color: var(--muted); font-weight: 650; background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(127, 127, 127, .06) 10px 20px); }
.od-ticket { display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--border); min-width: 0; }
.od-lines { flex: 1; padding: .3rem .45rem; }
.od-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .4rem; align-items: center; padding: calc(var(--od-line-pad, .3rem) * .75) .2rem; border-bottom: 1px solid var(--border); font-size: calc(var(--od-line-fs, 1rem) * .75); }
.od-vat { display: inline-block; padding: 0 .35em; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); font-style: normal; font-size: .8em; color: var(--muted); }
.od-steps { display: inline-flex; gap: .2rem; margin-left: .35rem; vertical-align: middle; }
.od-steps i { display: inline-grid; place-items: center; width: calc(var(--od-step, 38px) * .75); height: calc((var(--od-step, 38px) - 4px) * .75); border: 1px solid var(--border); border-radius: 6px; background: var(--bg); font-style: normal; font-weight: 700; }
.od-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.od-line > b { font-size: 1.6em; }           /* the quantity, as big as in Sales mode (follows the lines' text: #306) */
.od-total { display: flex; justify-content: space-between; align-items: baseline; padding: .5rem .6rem .3rem; border-top: 1px solid var(--border); }
.od-total strong { font-size: calc(var(--od-total-fs, 1.7rem) * .75); }
.od-buttons { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .35rem; padding: 0 .6rem .6rem; }
.od-buttons i { display: grid; place-items: center; min-height: calc(var(--od-btn-h, 60px) * .75); border-radius: 9px; font-style: normal; font-weight: 700; font-size: calc(var(--od-btn-fs, 1.1rem) * .75); color: #fff; }
.od-add { background: #2563eb; } .od-prepare { background: #ea7a0c; } .od-pay { background: var(--accent); }
/* the order's rows and main buttons in the shop's order (#241) */
.od-lines { order: -1; } .od-total { order: var(--of-o-total, 1); } .od-buttons { order: var(--of-o-buttons, 4); }
.od-cancel { order: var(--of-o-bill, 5); display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; padding: 0 .6rem .45rem; }
/* the other buttons (#373): Large = as tall as the main ones (Sales mode's look), Medium / Small smaller - at 3/4 size */
.od-other-btn { display: grid; place-items: center; min-height: calc(var(--od-btn-h, 60px) * .75); padding: .15rem .3rem;
  border: 2px solid var(--danger); border-radius: 8px; color: var(--danger); font-style: normal; font-weight: 800; font-size: .86rem;
  line-height: 1.15; text-align: center; }
.od-other-btn.od-bill { border-color: #facc15; background: #facc15; color: #111827; }
.od-other-m .od-other-btn { min-height: 36px; font-size: .75rem; font-weight: 700; }
.od-other-s .od-other-btn { min-height: 28px; font-size: .68rem; font-weight: 700; }
.od-other-m .od-back { padding: .3rem; } .od-other-s .od-back { padding: .2rem; font-size: .8rem; }
.od-back { order: var(--of-o-back, 8); margin: 0 .6rem .6rem; padding: .35rem; border-radius: 8px; background: #7c3aed; color: #fff; text-align: center; font-weight: 650; }
.od-add { order: var(--ob-o-add, 1); } .od-prepare { order: var(--ob-o-prepare, 2); } .od-pay { order: var(--ob-o-pay, 3); }
/* Menu design's preview (srv-88) */
.md-preview { display: grid; gap: .45rem; padding: .5rem; min-height: 330px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); font-size: .75rem; align-content: start; }
.md-tabs { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr; gap: .35rem; }
.md-tab { display: grid; place-items: center; min-height: calc(var(--md-tab-h, 60px) * .75); border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-style: normal; font-weight: 650; }
.md-tab.md-dark { background: var(--text); color: var(--bg); } .md-tab.md-custom { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.md-cats, .md-items { display: grid; gap: .35rem; }
.md-cats { grid-template-columns: repeat(auto-fill, minmax(calc(var(--md-cat-w, 140px) * .75), 1fr)); }
.md-cat { display: grid; place-items: center; min-height: calc(var(--md-cat-h, 72px) * .75); border-radius: 9px; color: #fff; font-style: normal; font-weight: 700; font-size: calc(var(--md-cat-fs, 1.05rem) * .75); }
.md-c1 { background: #2563eb; } .md-c2 { background: #9333ea; } .md-c3 { background: #dc2626; } .md-c4 { background: #ca8a04; } .md-c5 { background: #92400e; } .md-c6 { background: #16a34a; }
.md-items { grid-template-columns: repeat(auto-fill, minmax(calc(var(--md-item-w, 170px) * .75), 1fr)); }
.md-item { display: grid; grid-template-columns: auto 1fr; align-content: space-between; column-gap: .35rem; min-height: calc(var(--md-item-h, 88px) * .75); padding: .4rem .5rem; border: 1px solid var(--border); border-left: 4px solid #2563eb; border-radius: 8px; background: var(--surface); font-style: normal; font-size: calc(var(--md-item-fs, 1rem) * .75); }
.md-name { grid-column: 2; font-weight: 650; } .md-price { grid-column: 2; color: var(--muted); }
.md-icon { grid-row: 1 / 3; width: 22px; height: 22px; border-radius: 5px; background: linear-gradient(135deg, #dc2626, #16a34a); }
.md-preview.md-no-price .md-price, .md-preview.md-no-icon .md-icon { display: none; }
.md-preview.md-compact .md-items { grid-template-columns: repeat(auto-fill, calc(var(--md-item-w, 170px) * .75)); }   /* (#272) */
.md-preview.md-compact .md-cats { grid-template-columns: repeat(auto-fill, calc(var(--md-cat-w, 140px) * .75)); }
.md-preview.md-compact .md-tabs { grid-template-columns: repeat(3, max-content); } .md-preview.md-compact .md-tab { padding: 0 .9rem; }
.md-preview.md-fit .md-items, .md-preview.md-fit .md-cats { display: flex; flex-wrap: wrap; }      /* (#275) */
/* Auto-size boxes (#308): the preview as Sales mode - Tidy grid's width worked out by order_design.js (--md-grid-*) */
.md-preview.md-grid .md-items { grid-template-columns: repeat(auto-fill, minmax(var(--md-grid-item-w, 120px), 1fr)); grid-auto-rows: 1fr; }
/* (#321: the category boxes each as wide as their own name, as many per row as fit - as Sales mode) */
.md-preview.md-grid .md-cats, .md-preview.md-auto .md-cats { display: flex; flex-wrap: wrap; }
.md-preview.md-grid .md-cat, .md-preview.md-auto .md-cat { flex: 1 1 auto; max-width: 14rem; padding: .35rem .9rem; min-height: 0; }
.md-preview.md-grid.md-compact .md-cat, .md-preview.md-auto.md-compact .md-cat { flex: 0 0 auto; }
.md-preview.md-grid.md-compact .md-items { grid-template-columns: repeat(auto-fill, var(--md-grid-item-w, 120px)); }
.md-preview.md-grid .md-item, .md-preview.md-grid .md-cat { min-height: 0; padding: .35rem .6rem; }
.md-preview.md-grid .md-tabs { grid-template-columns: repeat(3, max-content); } .md-preview.md-grid .md-tab { padding: 0 .9rem; min-height: 0; }
.md-preview.md-fit:not(.md-compact) .md-item, .md-preview.md-fit:not(.md-compact) .md-cat { flex: 1 1 auto; }
/* "Auto-size (3 box sizes)" (#308 follow-up): rows of one size (order_design.js autoPreview) */
.md-preview.md-auto .md-items { display: flex; flex-direction: column; gap: .35rem; }
.md-preview.md-auto .md-row { display: grid; gap: .35rem; grid-auto-rows: 1fr; grid-template-columns: repeat(auto-fill, minmax(var(--row-w), 1fr)); }
.md-preview.md-auto.md-compact .md-row { grid-template-columns: repeat(auto-fill, var(--row-w)); }
.md-preview.md-auto .md-item { min-height: 0; padding: .35rem .6rem; }
.md-preview.md-auto .md-cats { grid-template-columns: repeat(auto-fill, minmax(var(--md-grid-cat-w, 100px), 1fr)); grid-auto-rows: 1fr; }
.md-preview.md-auto .md-cat { min-height: 0; padding: .35rem .6rem; }
.md-preview.md-auto .md-tabs { grid-template-columns: repeat(3, max-content); } .md-preview.md-auto .md-tab { padding: 0 .9rem; min-height: 0; }
.md-preview.md-fit .md-item, .md-preview.md-fit .md-cat { min-height: 0; padding: .35rem .6rem; }
.md-preview.md-fit .md-tabs { grid-template-columns: repeat(3, max-content); } .md-preview.md-fit .md-tab { padding: 0 .9rem; min-height: 0; }
/* Payment design's preview (srv-89) */
.pd-preview { display: grid; place-items: start center; padding: .6rem; min-height: 330px; border: 1px solid var(--border); border-radius: 10px; background: rgba(10, 16, 24, .55); }
.pd-dialog { width: min(100%, calc(var(--pd-w, 440px) * .75)); padding: .6rem; border-radius: 10px; background: var(--surface); font-size: .75rem; display: grid; gap: .35rem; }
.pd-total, .pd-row { display: flex; justify-content: space-between; align-items: baseline; } .pd-total strong { font-size: 1.3rem; }
.pd-methods, .pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.pd-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; }
.pd-quick { display: flex; gap: .3rem; } .pd-quick i { flex: 1; min-height: 36px; }
.pd-dialog i { display: grid; place-items: center; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); font-style: normal; font-weight: 650; }
.pd-methods i { min-height: calc(var(--pd-method-h, 60px) * .75); } .pd-methods i.on { border: 2px solid var(--accent); }
.pd-keys i { min-height: calc(var(--pd-key-h, 54px) * .75); font-size: calc(var(--pd-key-fs, 1.3rem) * .75); }
.pd-actions i { min-height: calc(var(--pd-confirm-h, 60px) * .75); } .pd-actions i.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.pd-preview.pd-no-quick .pd-quick { display: none; }
.pd-preview.pd-hide-part .pd-part, .pd-preview.pd-hide-discount .pd-discount { display: none; }   /* (#508: Show unticked) */
.pd-dialog { display: flex; flex-direction: column; }
.pd-part { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; } .pd-part i { min-height: 30px; } .pd-part i.on { background: #1f2937; color: #fff; }
.pd-discount i { min-height: 30px; }
.pd-keysblock { display: grid; gap: .35rem; }
.pd-methods { order: var(--pd-o-methods, 1); } .pd-part { order: var(--pd-o-part, 2); } .pd-discount { order: var(--pd-o-discount, 3); }
.pd-keysblock { order: var(--pd-o-keys, 4); } .pd-actions { order: 10; } .pd-total { order: 0; }
.od-parts { display: grid; gap: .35rem; margin: 0; padding-left: 1.4rem; }
.od-parts li { display: flex; align-items: center; gap: .4rem; }
.od-parts li span { flex: 1; }
.pd-preview[style*="--pd-method-w"] .pd-methods { grid-template-columns: repeat(auto-fill, calc(var(--pd-method-w) * .75)); justify-content: center; }
.pd-preview[style*="--pd-key-w"] .pd-keys { grid-template-columns: repeat(3, calc(var(--pd-key-w) * .75)); justify-content: center; }
/* a customer's own ID (owner, 2026-10-09, srv-93) */
.company-ref { display: inline-block; padding: .05rem .45rem; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); font-weight: 700; letter-spacing: .08em; }
h1 .company-ref { font-size: .8em; vertical-align: middle; }
/* a switch that belongs to the one above it (owner, 2026-10-09) */
/* Settings > Security: the system admin's trusted addresses (Alt+I+I), a light blue of their own (owner, 2026-10-11, srv-140) */
.support-fw-card { --sfw-bg: #eef5ff; --sfw-line: #c9dcf7; background: var(--sfw-bg); border-color: var(--sfw-line); }
.support-fw-card .table th, .support-fw-card .table td { background: transparent; border-color: var(--sfw-line); }
.support-fw-card h2 { color: #1d4ed8; }
@media (prefers-color-scheme: dark) { .support-fw-card { --sfw-bg: #14213a; --sfw-line: #2a3f66; } .support-fw-card h2 { color: #93b4f5; } }
.table-group th { padding-top: .9rem; background: var(--bg); color: var(--text); font-size: .95rem; text-align: left; }   /* (srv-161) */
/* Devices > Card terminals (srv-167) */
.card-add { padding: .9rem 1.1rem 1.1rem; border-top: 1px solid var(--border); }
.card-add h3 { margin: 0 0 .6rem; font-size: 1rem; }
.card-add-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; align-items: end; }
.card-add-row label { display: grid; gap: .25rem; font-weight: 600; font-size: .9rem; }
.card-accounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: .8rem; }
.export-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .8rem; }    /* (srv-160) */
.agent-ver { display: inline-flex; align-items: center; gap: .35rem; margin-right: .8rem; }     /* (srv-157) */
/* Health > Alerts (srv-136 follow-up) */
.alert-area + .alert-area { border-top: 1px solid var(--border); }
.alert-area .alert-box { border-top: 0; padding-top: 0; }
.alert-emails { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.alert-emails .email-box { flex: 1 1 18rem; min-width: 0; }
.alert-emails .error { flex-basis: 100%; margin: 0; }
/* item edit: its sub-menus (srv-153 follow-up) */
.item-tabs { max-width: 760px; margin-bottom: .8rem; }
.item-tabs a { cursor: pointer; }
/* item edit: the icon section (owner, 2026-10-11, srv-153) */
.item-icon-section { margin: .4rem 0 1rem; padding: .9rem 1rem .4rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.item-icon-section h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-size: 1.05rem; }
.item-icon-section .setting-row { padding-left: 0; padding-right: 0; }
.setting-row.setting-sub { padding-left: 1.6rem; border-left: 3px solid var(--border); margin-left: .4rem; }
/* DNS-Records: Push records again under the table (srv-108) */
.dns-push { display: flex; align-items: center; justify-content: flex-end; gap: .8rem; flex-wrap: wrap; padding: .8rem 1rem 0; }
/* Support: the time spent on a ticket (srv-114) */
.request-time { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .6rem 0; }
.request-time input { width: 5rem; }
.hours-add { width: 4.5rem; }
/* payment gateways: the admin confirms with username + password + 2FA code (srv-120) */
.gw-confirm-fields { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.gw-confirm-fields input { width: 11rem; }
.gw-confirm-fields .error { flex-basis: 100%; text-align: right; }
/* Price per year: the money of the current period (srv-123) */
.money-list { display: grid; grid-template-columns: auto auto; gap: .25rem 1rem; margin: 0; text-align: right; }
.money-list dt { color: var(--muted); }
.money-list dd { margin: 0; font-weight: 650; }
.money-overdue, .money-overdue .muted { color: var(--danger, #dc2626) !important; font-weight: 650; }
.coding-answered { margin: .4rem 0 .2rem; color: var(--ok, #15803d); font-weight: 650; }
.coding-seen { color: #1d4ed8; }
.design-items { display: grid; gap: 6px; align-content: start; }
.design-item { width: var(--it-w); height: var(--it-h); border-width: 1px; border-left: 5px solid var(--muted); color: var(--muted); font-size: 1.3rem; }
.design-grip { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 50%, var(--accent) 50%); border-bottom-right-radius: 8px; }
.design-ticket { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-left: 2px solid var(--border); background: var(--surface); }
.design-line { display: block; height: 14px; border-radius: 4px; background: var(--border); }
.design-line:nth-child(odd) { width: 70%; }
.design-edge { position: absolute; top: 0; bottom: 0; left: -6px; width: 12px; cursor: ew-resize; touch-action: none; }
.design-edge::after { content: ""; position: absolute; top: 45%; left: 4px; width: 4px; height: 60px; border-radius: 2px; background: var(--accent); }
.design-screen.ticket-left .design-edge { left: auto; right: -6px; }
.design-screen.dragging .design-edge { cursor: ew-resize; }
.design-inputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem 1rem; padding-top: .6rem; }
.design-input { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.design-input input { width: 5.5rem; min-height: 36px; }
.design-sizes summary { cursor: pointer; font-weight: 650; }

/* an item's Categories / Groups window: Available | Belongs, a tap moves one across (owner, 2026-10-07, srv-57) */
.dual-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin: .3rem 0 .4rem; }
.dual-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .3rem; }
.field-label { display: block; font-weight: 600; margin-bottom: .2rem; }
.dual-dialog { width: min(760px, calc(96vw / var(--sz, 1))); max-height: calc(90vh / var(--sz, 1)); padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); }
.dual-dialog::backdrop { background: rgba(15, 23, 42, .55); }
.dual-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.dual-head h2 { margin: 0; }
.dual-search { width: 100%; min-height: 42px; margin-bottom: .6rem; }
.dual-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.dual-cols h3 { margin: 0 0 .4rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dual-list { display: grid; align-content: start; gap: .3rem; height: min(calc(52vh / var(--sz, 1)), 420px); overflow-y: auto; padding: .4rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.dual-entry { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-height: 42px; padding: .4rem .7rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.dual-entry:hover { border-color: var(--accent); }
.dual-entry.in { border-left: 4px solid var(--accent); }
@media (max-width: 560px) { .dual-cols { grid-template-columns: 1fr; } .dual-list { height: calc(30vh / var(--sz, 1)); } }
.dual-entry-row { display: flex; align-items: center; gap: .4rem; }
.dual-entry-row .dual-entry { flex: 1; min-width: 0; }
.dual-switch { flex: none; font-size: .85rem; }

/* on-screen keyboard (static/js/keyboard.js): Sales mode, and the back office on touch screens (owner, 2026-10-07) */
.osk { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; gap: .35rem; padding: .5rem .5rem .7rem; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(0, 0, 0, .18); }
.osk-row { display: flex; gap: .35rem; justify-content: center; }
.osk-key { flex: 1 1 0; max-width: 72px; min-height: 52px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: 1.2rem; font-weight: 600; cursor: pointer; touch-action: manipulation; }
.osk-key:active { background: var(--border); }
.osk-key.wide { flex: 1.5 1 0; max-width: 110px; font-size: 1rem; }
.osk-key.space { flex: 5 1 0; max-width: 420px; font-size: 1rem; color: var(--muted); }
.osk-key.done { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.osk-key.on { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.osk-key.blank { visibility: hidden; }
.osk-key.osk-close { position: absolute; top: -26px; right: 14px; width: 52px; max-width: none; height: 52px; min-height: 0; border-radius: 50%; background: var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); font-size: 1.3rem; }
/* (#430: the back office gets room under the page only when the box would be covered - keyboard.js) */
/* the keyboard button, always in the back office's corner (owner, 2026-10-07) */
.osk-fab { position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 56px; height: 56px; border: 1px solid var(--border);
  border-radius: 50%; background: var(--surface); color: var(--text); font-size: 1.7rem; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .25); touch-action: manipulation; }
.osk-fab:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) { .osk-fab { display: none; } }
@media print { .osk-fab { display: none; } }


/* Sales > Reports (owner, 2026-10-08): the period, the totals, SVG charts */
.report-filter { display: grid; gap: .7rem; padding: .9rem 1rem; }
.report-periods { flex-wrap: wrap; }
.report-custom { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem 1rem; }
.report-custom label { display: grid; gap: .2rem; font-weight: 600; font-size: .9rem; }
.report-custom input, .report-custom select { min-height: 40px; }
.report-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .7rem; margin: .8rem 0; }
.report-tile { display: grid; gap: .2rem; padding: .8rem 1rem; }
.report-tile strong { font-size: 1.35rem; }
.report-chart { padding: .9rem 1rem; }
.report-chart h2 { margin: 0 0 .6rem; font-size: 1.05rem; }
.report-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: .8rem; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart-bar { fill: var(--accent); }
.chart g:hover .chart-bar { opacity: .75; }
.chart-axis { stroke: var(--border); stroke-width: 1; }
.chart-label { fill: var(--muted); font-size: 11px; }
.chart-amount { fill: var(--text); font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; }   /* (#512) */
.chart-weekend { fill: var(--accent, #0f766e); }
.chart-wd { font-size: 10px; }
.chart-name { fill: var(--text); font-size: 13px; font-weight: 600; }
.chart-value { fill: var(--muted); font-size: 12px; }

/* back-office lists use the screen's width (owner, 2026-10-08: the items table was cut off, empty space both sides) */
main.wrap.wide { max-width: 1600px; }
main.wrap.wide .table-card { overflow-x: auto; }
main.wrap.wide .table td.row-actions { white-space: nowrap; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 .6rem; }
.bulk-bar .muted { font-weight: 600; }
.table td.pick, .table th.pick { width: 2.4rem; text-align: center; }
.table td.pick input, .table th.pick input { width: 1.15rem; height: 1.15rem; cursor: pointer; }

/* a table card's heading sits inside the card like the others (owner, 2026-10-08: Reports > VAT, versions) */
.table-card > h2 { margin: 0; padding: 1rem 1.1rem .5rem; font-size: 1.05rem; }
.table-card > p.muted { padding: 0 1.1rem 1rem; margin: 0; }
/* Settings > Security: the firewall's list (srv-135, owner 2026-10-10: the add row in line with the table) */
/* the support hours' small forms in the Support section (srv-114 follow-up): their boxes sit in the row's control
   (so a switched-off row dims only its text, never its switch) */
.setting-control > form.hours-form { display: contents; }
/* a registration password for a branch and a PC name (srv-146) */
.agent-code-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: flex-end; margin: 0; }
.agent-code-form select, .agent-code-form input { width: auto; min-width: 9rem; }
/* Sales > Reports: the highlights (srv-149) */
.report-highlights h2 { margin: 0 0 .8rem; font-size: 1.05rem; }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .7rem; }
.hl { display: grid; gap: .15rem; padding: .8rem .95rem; border: 1px solid var(--border); border-radius: 12px;
  border-top: 4px solid var(--accent); background: var(--surface); color: var(--text); text-decoration: none; }
a.hl:hover { border-color: var(--accent); text-decoration: none; }
.hl-label { color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.hl strong { font-size: 1.15rem; overflow-wrap: anywhere; }
/* About > POS_02 / Backups (srv-136; its follow-up: status tiles on top, every card aligned) */
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; margin: 0 0 1rem; }
.st-tile { display: grid; gap: .2rem; align-content: start; padding: .85rem 1rem; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border); border-left: 5px solid #16a34a; box-shadow: var(--shadow); }
.st-tile.bad { border-left-color: #dc2626; background: color-mix(in srgb, #dc2626 6%, var(--surface)); }
.st-tile strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.st-label { color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.st-sub { color: var(--muted); font-size: .85rem; }
.problem-list { margin: .4rem 0 0; padding-left: 1.2rem; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 2rem; padding: .9rem 1.1rem; border-top: 1px solid var(--border); }
.mini-stats > div { display: grid; gap: .1rem; }
.mini-stats strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.detail-grid, .copies-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-top: 1px solid var(--border); }
.detail-grid > section, .copies-grid > section { padding: 1rem 1.1rem; }
.detail-grid > section + section, .copies-grid > section + section { border-left: 1px solid var(--border); }
.detail-grid h3, .copies-grid h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .7rem; font-size: .95rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.small-note { margin: .6rem 0 0; font-size: .85rem; }
.copies { margin: 0; padding: 0; list-style: none; }
.copies li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--border); }
.meter-cell { min-width: 9rem; }
.email-box { min-width: 16rem; }
.page-note { margin-top: 1rem; }
@media (max-width: 700px) { .detail-grid > section + section, .copies-grid > section + section { border-left: 0; border-top: 1px solid var(--border); } }
/* Settings > Branches: each branch's Remote-Agents (srv-122 follow-up) */
.branch-pcs { min-width: 14rem; }
.branch-pc { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; padding: .15rem 0; }
.branch-pc + .branch-pc { border-top: 1px dashed var(--border); }
.branch-pc.off { opacity: .6; }
.branch-pc .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); flex: none; align-self: center; }
.branch-pc .dot.on { background: #16a34a; }
.branch-pc .muted { font-size: .85rem; }
.branch-pc-links { flex-basis: 100%; padding-left: 1rem; font-size: .85rem; }
.fw-card > .fw-error { padding: 0 1.1rem; }
.fw-table td:first-child { min-width: 11rem; }
.fw-ips { display: block; margin-top: .2rem; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.fw-actions { display: inline-grid; grid-template-columns: auto 2.4rem; gap: .4rem; align-items: center; justify-items: end; }
.fw-actions form { margin: 0; }
.fw-actions-3 { grid-template-columns: auto auto 2.4rem; }
.row-editing td { background: var(--bg); }
.fw-edit { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; }
.fw-edit-buttons { display: flex; gap: .5rem; }
.fw-add-box { border-top: 1px solid var(--border); background: var(--bg); padding: 1rem 1.1rem 1.1rem; }
.fw-add-box h3 { margin: 0 0 .7rem; font-size: .95rem; }
.fw-add { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: .8rem; align-items: end; }
.fw-add .field { margin: 0; }
.fw-add-btn { min-height: 2.6rem; white-space: nowrap; }
.fw-add-box .help { margin: .6rem 0 0; }
.fw-mine { margin-top: .7rem; }
@media (max-width: 700px) {
  .fw-add { grid-template-columns: 1fr; }
  .fw-add-btn { justify-self: start; }
}
.wrap.wide #versions td.row-actions { white-space: nowrap; }
.report-range { margin: 0 0 0 auto; padding: .45rem .8rem; border-radius: 8px; background: var(--bg); font-size: .95rem; }


/* Coding (owner, 2026-10-08): counts on the tabs, whose turn, compact cards that fold */
.tab-count { margin-left: .25rem; }
.tab-busy { background: #fef3c7; color: #92400e; }
.pill.turn { background: #dbeafe; color: #1e40af; }
.coding-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .4rem; margin-top: .3rem; }
.coding-actions .coding-editbox, .coding-actions .coding-add-pictures { margin: 0; }
.coding-actions .coding-editbox[open] { flex-basis: 100%; }
.coding-actions .coding-pictures { flex-basis: 100%; margin: .2rem 0; }
.coding-fold > summary { cursor: pointer; list-style: none; }
.coding-fold > summary::-webkit-details-marker { display: none; }
.coding-fold .fold-more { color: var(--accent); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.coding-fold[open] .coding-short { display: none; }
.coding-fold[open] > summary .fold-more::before { content: "\25B4 "; }
.coding-fold:not([open]) > summary .fold-more::before { content: "\25BE "; }
.coding-conversation { margin: .3rem 0; }
.coding-task .coding-body { margin: .4rem 0; }

/* super-admin pages use the screen's width (owner, 2026-10-08: "half the page, things cut off") */
.admin-main .settings { max-width: none; }
.admin-main .table td.row-actions { white-space: nowrap; }
.admin-main .table-card { overflow-x: auto; }


/* Reports' lists: name | bar | amount, in normal text (owner, 2026-10-08) */
.hbar-list { display: grid; gap: .35rem; }
.hbar-row { display: grid; grid-template-columns: minmax(8rem, 16rem) minmax(0, 1fr) auto; align-items: center; gap: .8rem;
  padding: .25rem .3rem; border-radius: 6px; color: var(--text); font-size: .95rem; }
a.hbar-row { text-decoration: none; }
a.hbar-row:hover { background: var(--bg); }
a.hbar-row:hover .hbar-name { color: var(--accent); text-decoration: underline; }
.hbar-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar { width: 100%; height: 14px; display: block; }
.hbar-value { color: var(--muted); font-size: .88rem; white-space: nowrap; }
@media (max-width: 640px) { .hbar-row { grid-template-columns: 1fr auto; } .hbar { grid-column: 1 / -1; order: 3; } }
/* Reports (srv-149 follow-up): chart type buttons, line and doughnut views, the busiest hours, the item finder */
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.chart-head h2 { margin: 0; }
.chart-switch { display: inline-flex; gap: .25rem; }
.chart-switch .btn.on { border-color: var(--accent); color: var(--accent); background: var(--ok-bg); }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: var(--accent); opacity: .12; }
.chart-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.chart g:hover .chart-dot { fill: var(--accent); }
.donut-view { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.donut-view[hidden] { display: none; }
.donut { flex: none; width: min(210px, 100%); height: auto; }
.donut-ring { fill: none; stroke: var(--bg); stroke-width: 6.5; }
.donut-seg { fill: none; stroke-width: 6.5; }
.donut-seg:hover { stroke-width: 8; }
.donut-legend { flex: 1 1 15rem; display: grid; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.donut-legend li, .donut-legend a { display: grid; grid-template-columns: .85rem minmax(0, 1fr) auto; align-items: center; gap: .55rem; }
.donut-legend a { color: inherit; text-decoration: none; }
.donut-legend a:hover .donut-name { color: var(--accent); text-decoration: underline; }
.donut-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg-dot { width: .85rem; height: .85rem; border-radius: 3px; }
.seg-0 { stroke: #0f766e; } .seg-dot.seg-0 { background: #0f766e; }
.seg-1 { stroke: #2563eb; } .seg-dot.seg-1 { background: #2563eb; }
.seg-2 { stroke: #f59e0b; } .seg-dot.seg-2 { background: #f59e0b; }
.seg-3 { stroke: #db2777; } .seg-dot.seg-3 { background: #db2777; }
.seg-4 { stroke: #7c3aed; } .seg-dot.seg-4 { background: #7c3aed; }
.seg-5 { stroke: #16a34a; } .seg-dot.seg-5 { background: #16a34a; }
.seg-6 { stroke: #ea580c; } .seg-dot.seg-6 { background: #ea580c; }
.seg-7 { stroke: #64748b; } .seg-dot.seg-7 { background: #64748b; }
.heat-help { margin: -.3rem 0 .7rem; font-size: .9rem; }
.heat-wrap { overflow-x: auto; }
.heat { border-collapse: separate; border-spacing: 3px; font-size: .8rem; }
.heat th { padding: 0 .15rem; color: var(--muted); font-weight: 600; text-align: center; }
.heat tbody th { padding-right: .5rem; text-align: left; white-space: nowrap; }
.heat td { min-width: 2.3rem; height: 2.1rem; border-radius: 6px; font-weight: 700; text-align: center; }
.heat-0 { background: var(--bg); }
.heat-1 { background: #d5f2ee; color: #0b3d38; }
.heat-2 { background: #a6e3da; color: #0b3d38; }
.heat-3 { background: #5fc6b7; color: #062a26; }
.heat-4 { background: #1f9a8a; color: #fff; }
.heat-5 { background: #0b5f59; color: #fff; }
.report-item { flex: 1 1 16rem; }
.report-item input { width: 100%; }

/* a box and its button in one row (owner, 2026-10-08: "This billing cycle" - Add fell under its box) */
.setting-control form.inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.setting-control form.inline input:not([type=hidden]) { width: 4.5rem; min-height: 38px; }
.request-count .pill { white-space: nowrap; }

/* a number column's heading over its numbers (owner, 2026-10-08, srv-78: "not in line" - .table th was always left) */
.table th.num { text-align: right; }
/* super-admin: settings boxes a comfortable width, only the tables use the whole screen (owner, 2026-10-08, srv-68:
   "no need for all this empty space") */
.admin-main .setting-card, .admin-main form.card.form, .admin-main .card.narrow { max-width: 1040px; }
.admin-main .settings { max-width: none; }
/* a group of the left menu in its own colour (Design > Menu settings > Admin menu, the gear; owner, 2026-10-13, srv-199) */
/* (follow-up 2026-10-13: only the TEXT takes the colour - lightened a little so it reads on the dark menu) */
summary.side-title.side-tint { background: none; color: color-mix(in srgb, var(--c) 82%, #fff); }
.group-tools { display: inline-flex; align-items: center; gap: .5rem; }
.group-gear { display: inline-flex; align-items: center; gap: .35rem; }
.colour-mini { width: 16px; height: 16px; border-radius: 4px; }
/* the receipt's slip and COPY (owner, 2026-10-13, srv-204): monospaced, wraps at its dashes, never cut */
.r-slip { font-family: ui-monospace, Consolas, Menlo, monospace; font-size: .82rem; letter-spacing: .02em; overflow-wrap: anywhere; margin: .4rem 0; }
.r-copy { text-align: center; font-weight: 700; letter-spacing: .2em; margin: 0 0 .4rem; }
.slip-code { font-family: ui-monospace, Consolas, Menlo, monospace; overflow-wrap: anywhere; }
.r-slip-head { text-align: center; font-family: ui-monospace, Consolas, Menlo, monospace; font-size: .8rem; margin: .8rem 0 .1rem; }
.r-slip-part { display: inline-block; max-width: 100%; }      /* (#248: broken between its two parts; #478: a long code also after a dash - between its groups) */
/* Control Center > company > Agents > Windows: one card per PC - nothing to scroll sideways (owner, 2026-10-14, srv-208) */
.pc-list { display: grid; gap: .8rem; }
.pc-card { border: 1px solid var(--border); border-radius: 10px; padding: .8rem 1rem; background: var(--surface); min-width: 0; }
.pc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.pc-title { min-width: 0; overflow-wrap: anywhere; }
.pc-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .7rem 1.4rem; margin-top: .7rem; }
.pc-grid > div { min-width: 0; overflow-wrap: anywhere; }
.pc-grid code { overflow-wrap: anywhere; }
.pc-label { font-size: .7rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .25rem; }
.pc-inline-form { display: block; margin: .3rem 0; }
/* slip.pos2order.com - a receipt by its POS-ID (owner, 2026-10-14, srv-204) */
.slip-site { background: var(--bg); }
.slip-main { max-width: 560px; margin: 0 auto; padding: 24px 16px; }
.slip-form { display: grid; gap: .5rem; }
.slip-form input { font-family: ui-monospace, Consolas, Menlo, monospace; text-transform: uppercase; }
.slip-paper { font-family: ui-monospace, Consolas, Menlo, monospace; font-size: .82rem; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.slip-foot { text-align: center; margin-top: 1.5rem; }
/* Terms and Conditions (#253): readable text, a scroll box on the accept page */
.terms-page { max-width: 52rem; margin: 2rem auto; padding: 0 1rem; }
.terms-text { line-height: 1.6; }
.terms-text h2 { margin-top: 0; }
.terms-text h3 { margin: 1.2rem 0 .3rem; font-size: 1.05rem; }
.terms-text mark { background: #fef3c7; color: #92400e; padding: 0 .2em; border-radius: 3px; }
.terms-scroll { max-height: calc(55vh / var(--sz, 1)); overflow-y: auto; }
.terms-form { margin-top: 1rem; }
.terms-line { margin: .8rem 0 0; text-align: center; }


/* TRIAL until Go-Live (#266): a bar on every screen that can't be closed - at the BOTTOM (owner, 2026-10-18, #282:
   "orange on orange gets messy" at the top, next to Sales mode's orange link bar); the page leaves room for it */
body.has-trial { --trial-h: 26px; padding-bottom: var(--trial-h); box-sizing: border-box; }
.trial-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; height: var(--trial-h); line-height: var(--trial-h);
             padding: 0 .6rem; background: #ea580c; color: #fff; font-weight: 700; font-size: .82rem; text-align: center;
             white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trial-bar.trial-live { background: #b91c1c; }
.pin-trial { margin: 0 0 .5rem; padding: .5rem .7rem; border-radius: 8px; background: #ea580c; color: #fff; font-weight: 700; }
.trial-bar .trial-short { display: none; }
body.has-trial .side { height: calc(calc(100vh / var(--sz, 1)) - var(--trial-h)); }
@media (max-width: 700px) { .trial-bar .trial-long { display: none; } .trial-bar .trial-short { display: inline; } }

/* TRIAL until Go-Live (#266): on the receipt / Z, top and bottom - printed too */
.r-trial { margin: .3rem 0; padding: .25rem; border: 2px dashed #000; text-align: center; font-weight: 800; font-size: .85rem; }
/* the fiscal Z (#267): the page's own paper is never the fiscal one */
.z-copy-mark { margin: 1rem 0 -.6rem; font-weight: 800; letter-spacing: .04em; }

/* #383: a receipt printed by the browser (app.js posPaperPage) - only the paper and the boxes around it, nothing else
   taking room: the page is exactly the receipt's length, never blank paper after it */
@media print {
  html.paper-only body *:not(.paper-path):not(.paper-print):not(.paper-print *) { display: none !important; }
  html.paper-only body, html.paper-only .paper-path { margin: 0 !important; padding: 0 !important; border: 0 !important;
    min-height: 0 !important; height: auto !important; max-height: none !important; width: auto !important;
    position: static !important; inset: auto !important; transform: none !important; box-shadow: none !important;
    overflow: visible !important; background: #fff !important; display: block !important; visibility: visible !important; }
  html.paper-only .paper-print { position: static !important; margin: 0 !important; visibility: visible !important;
    break-inside: avoid; }
  html.paper-only .paper-print * { visibility: visible !important; }
  /* the copy of a till window's paper (app.js posPaperPage): no window around it, black on white */
  .paper-copy { padding: 0 !important; border: 0 !important; box-shadow: none !important; max-width: none !important;
    overflow: visible !important; color: #000; background: #fff; }
  .paper-copy > :last-child:empty { display: none; }
  .paper-copy .preview-barcode { display: block; margin: 2mm 0 0; }
  html.paper-58 .paper-copy .r-logo { max-width: 70%; }
}
/* (on screen the copy is never seen - it lives only while printing) */
@media screen { .paper-copy { position: absolute; left: -10000px; top: 0; } }

/* #387 (owner, 2026-10-29): a PIN box shows dots WITHOUT being a password field - so the browser never offers its saved
   passwords on the till (or asks to save one) */
.pin-dots { -webkit-text-security: disc; text-security: disc; }

/* SCREEN SIZE (#442): Sales mode and the back office at 90% by default, - / + in the left menu (static/js/screen_size.js
   sets html[data-sz]); one zoom for the whole page; every full-screen height / width in these styles is divided by
   --sz (calc(100dvh / var(--sz, 1))) so it still fills the screen. Printing: always 100%. */
html[data-sz="70"] { --sz: 0.7; }
html[data-sz="75"] { --sz: 0.75; }
html[data-sz="80"] { --sz: 0.8; }
html[data-sz="85"] { --sz: 0.85; }
html[data-sz="90"] { --sz: 0.9; }
html[data-sz="95"] { --sz: 0.95; }
html[data-sz="100"] { --sz: 1; }
html[data-sz="105"] { --sz: 1.05; }
html[data-sz="110"] { --sz: 1.1; }
html[data-sz="115"] { --sz: 1.15; }
html[data-sz="120"] { --sz: 1.2; }
html[data-sz="125"] { --sz: 1.25; }
html[data-sz="130"] { --sz: 1.3; }
html[data-sz] { zoom: var(--sz); }
@media print { html[data-sz] { --sz: 1; zoom: 1; } }
/* (#442 follow-up, owner 2026-11-11: "the boxes look big and the sign small" - smaller boxes, side by side on the left,
   a bigger drawn sign; folded menu: they stack) */
.screen-size { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0; }
.screen-size .sz-btn { display: grid; place-items: center; width: 48px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.screen-size .sz-sign { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.screen-size .sz-btn:hover:not(:disabled) { border-color: rgba(255, 255, 255, .55); }
.screen-size .sz-btn:disabled { opacity: .35; cursor: default; }
.sz-toast { position: fixed; z-index: 10000; left: 50%; bottom: 2.5rem; transform: translateX(-50%); margin: 0; padding: .55rem 1.1rem;
  border-radius: 10px; background: #111827; color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); pointer-events: none; }
/* the seats in use (#449, _seats_box.html): a filled pill, big enough to see at once - free / full / over */
.seats-box { display: inline-block; font-size: 1.15rem; font-weight: 700; line-height: 1.3; border-radius: 999px;
  padding: .3rem .95rem; vertical-align: middle; white-space: nowrap; }
.seats-free { background: var(--ok-bg); color: var(--ok-text); }
.seats-full { background: #fff4d6; color: #8a5a00; }
.seats-over { background: var(--bad-bg); color: var(--bad-text); }
@media (prefers-color-scheme: dark) { .seats-full { background: #3a2f12; color: #f5cf73; } }
.page-head .seats-box { margin-left: .6rem; }
@media (max-width: 600px) { .seats-box { font-size: 1rem; white-space: normal; } }

/* #495: the Products list's Price filter */
.price-filter { display: inline-flex; flex-direction: column; gap: .15rem; }
.price-filter-box { width: 8.5rem; }
.price-filter-box.bad { border-color: #dc2626; }
.price-filter-bad { font-size: .78rem; color: #b91c1c; }

/* #496: the colour picker - Recently used, the rows, Custom (picker + #RRGGBB) */
.swatch-row-label { margin: .2rem 0 .1rem; }
.swatches-recent { padding-bottom: .4rem; border-bottom: 1px solid var(--border); margin-bottom: .4rem; }
.swatch-row { margin-top: .3rem; }
.colour-custom { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .7rem; }
.colour-dialog .colour-custom input[type=color] { flex: none; width: 44px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; }
.colour-dialog .colour-custom input.colour-hex { flex: none; width: 7.5rem; font-family: ui-monospace, monospace; }
.swatch-custom span { background: conic-gradient(#dc2626, #facc15, #16a34a, #2563eb, #9333ea, #dc2626); }
.swatch-custom span[class*="x-"] { background: var(--c); }
/* #496 palette: generated by app/company/catalog.py palette_css() - do not edit by hand */
.c-cream { background: #fef3c7; --c: #fef3c7; color: #1f2937; }
.item.c-cream, .instant-item.c-cream { border-left-color: #fef3c7; background: var(--surface); color: var(--text); }
.item.tile-fill.c-cream, .instant-item.tile-fill.c-cream, .offline-item.tile-fill.c-cream, .instant-group.tinted.c-cream, .instant-group.tinted.on.c-cream { background: #fef3c7; border-color: #fef3c7; color: #1f2937; }
.instant-group.tinted.tile-stripe.c-cream, .instant-item.item-custom.tile-stripe.c-cream { background: var(--surface); color: var(--text); border-left-color: #fef3c7; }
.c-beige { background: #e7d8b5; --c: #e7d8b5; color: #1f2937; }
.item.c-beige, .instant-item.c-beige { border-left-color: #e7d8b5; background: var(--surface); color: var(--text); }
.item.tile-fill.c-beige, .instant-item.tile-fill.c-beige, .offline-item.tile-fill.c-beige, .instant-group.tinted.c-beige, .instant-group.tinted.on.c-beige { background: #e7d8b5; border-color: #e7d8b5; color: #1f2937; }
.instant-group.tinted.tile-stripe.c-beige, .instant-item.item-custom.tile-stripe.c-beige { background: var(--surface); color: var(--text); border-left-color: #e7d8b5; }
.c-peach { background: #fdba74; --c: #fdba74; color: #1f2937; }
.item.c-peach, .instant-item.c-peach { border-left-color: #fdba74; background: var(--surface); color: var(--text); }
.item.tile-fill.c-peach, .instant-item.tile-fill.c-peach, .offline-item.tile-fill.c-peach, .instant-group.tinted.c-peach, .instant-group.tinted.on.c-peach { background: #fdba74; border-color: #fdba74; color: #1f2937; }
.instant-group.tinted.tile-stripe.c-peach, .instant-item.item-custom.tile-stripe.c-peach { background: var(--surface); color: var(--text); border-left-color: #fdba74; }
.c-mint { background: #a7f3d0; --c: #a7f3d0; color: #1f2937; }
.item.c-mint, .instant-item.c-mint { border-left-color: #a7f3d0; background: var(--surface); color: var(--text); }
.item.tile-fill.c-mint, .instant-item.tile-fill.c-mint, .offline-item.tile-fill.c-mint, .instant-group.tinted.c-mint, .instant-group.tinted.on.c-mint { background: #a7f3d0; border-color: #a7f3d0; color: #1f2937; }
.instant-group.tinted.tile-stripe.c-mint, .instant-item.item-custom.tile-stripe.c-mint { background: var(--surface); color: var(--text); border-left-color: #a7f3d0; }
.c-lightblue { background: #bfdbfe; --c: #bfdbfe; color: #1f2937; }
.item.c-lightblue, .instant-item.c-lightblue { border-left-color: #bfdbfe; background: var(--surface); color: var(--text); }
.item.tile-fill.c-lightblue, .instant-item.tile-fill.c-lightblue, .offline-item.tile-fill.c-lightblue, .instant-group.tinted.c-lightblue, .instant-group.tinted.on.c-lightblue { background: #bfdbfe; border-color: #bfdbfe; color: #1f2937; }
.instant-group.tinted.tile-stripe.c-lightblue, .instant-item.item-custom.tile-stripe.c-lightblue { background: var(--surface); color: var(--text); border-left-color: #bfdbfe; }
.c-lavender { background: #ddd6fe; --c: #ddd6fe; color: #1f2937; }
.item.c-lavender, .instant-item.c-lavender { border-left-color: #ddd6fe; background: var(--surface); color: var(--text); }
.item.tile-fill.c-lavender, .instant-item.tile-fill.c-lavender, .offline-item.tile-fill.c-lavender, .instant-group.tinted.c-lavender, .instant-group.tinted.on.c-lavender { background: #ddd6fe; border-color: #ddd6fe; color: #1f2937; }
.instant-group.tinted.tile-stripe.c-lavender, .instant-item.item-custom.tile-stripe.c-lavender { background: var(--surface); color: var(--text); border-left-color: #ddd6fe; }
.c-lightgray { background: #e5e7eb; --c: #e5e7eb; color: #1f2937; }
.item.c-lightgray, .instant-item.c-lightgray { border-left-color: #e5e7eb; background: var(--surface); color: var(--text); }
.item.tile-fill.c-lightgray, .instant-item.tile-fill.c-lightgray, .offline-item.tile-fill.c-lightgray, .instant-group.tinted.c-lightgray, .instant-group.tinted.on.c-lightgray { background: #e5e7eb; border-color: #e5e7eb; color: #1f2937; }
.instant-group.tinted.tile-stripe.c-lightgray, .instant-item.item-custom.tile-stripe.c-lightgray { background: var(--surface); color: var(--text); border-left-color: #e5e7eb; }
.c-lime { background: #a3e635; --c: #a3e635; color: #1f2937; }
.item.c-lime, .instant-item.c-lime { border-left-color: #a3e635; background: var(--surface); color: var(--text); }
.item.tile-fill.c-lime, .instant-item.tile-fill.c-lime, .offline-item.tile-fill.c-lime, .instant-group.tinted.c-lime, .instant-group.tinted.on.c-lime { background: #a3e635; border-color: #a3e635; color: #1f2937; }
.instant-group.tinted.tile-stripe.c-lime, .instant-item.item-custom.tile-stripe.c-lime { background: var(--surface); color: var(--text); border-left-color: #a3e635; }
.c-coral { background: #f87171; --c: #f87171; color: #1f2937; }
.item.c-coral, .instant-item.c-coral { border-left-color: #f87171; background: var(--surface); color: var(--text); }
.item.tile-fill.c-coral, .instant-item.tile-fill.c-coral, .offline-item.tile-fill.c-coral, .instant-group.tinted.c-coral, .instant-group.tinted.on.c-coral { background: #f87171; border-color: #f87171; color: #1f2937; }
.instant-group.tinted.tile-stripe.c-coral, .instant-item.item-custom.tile-stripe.c-coral { background: var(--surface); color: var(--text); border-left-color: #f87171; }
.c-sky { background: #38bdf8; --c: #38bdf8; color: #1f2937; }
.item.c-sky, .instant-item.c-sky { border-left-color: #38bdf8; background: var(--surface); color: var(--text); }
.item.tile-fill.c-sky, .instant-item.tile-fill.c-sky, .offline-item.tile-fill.c-sky, .instant-group.tinted.c-sky, .instant-group.tinted.on.c-sky { background: #38bdf8; border-color: #38bdf8; color: #1f2937; }
.instant-group.tinted.tile-stripe.c-sky, .instant-item.item-custom.tile-stripe.c-sky { background: var(--surface); color: var(--text); border-left-color: #38bdf8; }
.c-turquoise { background: #14b8a6; --c: #14b8a6; color: #1f2937; }
.item.c-turquoise, .instant-item.c-turquoise { border-left-color: #14b8a6; background: var(--surface); color: var(--text); }
.item.tile-fill.c-turquoise, .instant-item.tile-fill.c-turquoise, .offline-item.tile-fill.c-turquoise, .instant-group.tinted.c-turquoise, .instant-group.tinted.on.c-turquoise { background: #14b8a6; border-color: #14b8a6; color: #1f2937; }
.instant-group.tinted.tile-stripe.c-turquoise, .instant-item.item-custom.tile-stripe.c-turquoise { background: var(--surface); color: var(--text); border-left-color: #14b8a6; }
.c-teal { background: #0f766e; --c: #0f766e; color: #ffffff; }
.item.c-teal, .instant-item.c-teal { border-left-color: #0f766e; background: var(--surface); color: var(--text); }
.item.tile-fill.c-teal, .instant-item.tile-fill.c-teal, .offline-item.tile-fill.c-teal, .instant-group.tinted.c-teal, .instant-group.tinted.on.c-teal { background: #0f766e; border-color: #0f766e; color: #ffffff; }
.instant-group.tinted.tile-stripe.c-teal, .instant-item.item-custom.tile-stripe.c-teal { background: var(--surface); color: var(--text); border-left-color: #0f766e; }
.c-lilac { background: #c084fc; --c: #c084fc; color: #1f2937; }
.item.c-lilac, .instant-item.c-lilac { border-left-color: #c084fc; background: var(--surface); color: var(--text); }
.item.tile-fill.c-lilac, .instant-item.tile-fill.c-lilac, .offline-item.tile-fill.c-lilac, .instant-group.tinted.c-lilac, .instant-group.tinted.on.c-lilac { background: #c084fc; border-color: #c084fc; color: #1f2937; }
.instant-group.tinted.tile-stripe.c-lilac, .instant-item.item-custom.tile-stripe.c-lilac { background: var(--surface); color: var(--text); border-left-color: #c084fc; }
.c-olive { background: #6b7c23; --c: #6b7c23; color: #ffffff; }
.item.c-olive, .instant-item.c-olive { border-left-color: #6b7c23; background: var(--surface); color: var(--text); }
.item.tile-fill.c-olive, .instant-item.tile-fill.c-olive, .offline-item.tile-fill.c-olive, .instant-group.tinted.c-olive, .instant-group.tinted.on.c-olive { background: #6b7c23; border-color: #6b7c23; color: #ffffff; }
.instant-group.tinted.tile-stripe.c-olive, .instant-item.item-custom.tile-stripe.c-olive { background: var(--surface); color: var(--text); border-left-color: #6b7c23; }
.c-indigo { background: #4338ca; --c: #4338ca; color: #ffffff; }
.item.c-indigo, .instant-item.c-indigo { border-left-color: #4338ca; background: var(--surface); color: var(--text); }
.item.tile-fill.c-indigo, .instant-item.tile-fill.c-indigo, .offline-item.tile-fill.c-indigo, .instant-group.tinted.c-indigo, .instant-group.tinted.on.c-indigo { background: #4338ca; border-color: #4338ca; color: #ffffff; }
.instant-group.tinted.tile-stripe.c-indigo, .instant-item.item-custom.tile-stripe.c-indigo { background: var(--surface); color: var(--text); border-left-color: #4338ca; }
.c-navy { background: #1e3a8a; --c: #1e3a8a; color: #ffffff; }
.item.c-navy, .instant-item.c-navy { border-left-color: #1e3a8a; background: var(--surface); color: var(--text); }
.item.tile-fill.c-navy, .instant-item.tile-fill.c-navy, .offline-item.tile-fill.c-navy, .instant-group.tinted.c-navy, .instant-group.tinted.on.c-navy { background: #1e3a8a; border-color: #1e3a8a; color: #ffffff; }
.instant-group.tinted.tile-stripe.c-navy, .instant-item.item-custom.tile-stripe.c-navy { background: var(--surface); color: var(--text); border-left-color: #1e3a8a; }
.c-darkgreen { background: #166534; --c: #166534; color: #ffffff; }
.item.c-darkgreen, .instant-item.c-darkgreen { border-left-color: #166534; background: var(--surface); color: var(--text); }
.item.tile-fill.c-darkgreen, .instant-item.tile-fill.c-darkgreen, .offline-item.tile-fill.c-darkgreen, .instant-group.tinted.c-darkgreen, .instant-group.tinted.on.c-darkgreen { background: #166534; border-color: #166534; color: #ffffff; }
.instant-group.tinted.tile-stripe.c-darkgreen, .instant-item.item-custom.tile-stripe.c-darkgreen { background: var(--surface); color: var(--text); border-left-color: #166534; }
.c-burgundy { background: #7f1d1d; --c: #7f1d1d; color: #ffffff; }
.item.c-burgundy, .instant-item.c-burgundy { border-left-color: #7f1d1d; background: var(--surface); color: var(--text); }
.item.tile-fill.c-burgundy, .instant-item.tile-fill.c-burgundy, .offline-item.tile-fill.c-burgundy, .instant-group.tinted.c-burgundy, .instant-group.tinted.on.c-burgundy { background: #7f1d1d; border-color: #7f1d1d; color: #ffffff; }
.instant-group.tinted.tile-stripe.c-burgundy, .instant-item.item-custom.tile-stripe.c-burgundy { background: var(--surface); color: var(--text); border-left-color: #7f1d1d; }
.c-wine { background: #881337; --c: #881337; color: #ffffff; }
.item.c-wine, .instant-item.c-wine { border-left-color: #881337; background: var(--surface); color: var(--text); }
.item.tile-fill.c-wine, .instant-item.tile-fill.c-wine, .offline-item.tile-fill.c-wine, .instant-group.tinted.c-wine, .instant-group.tinted.on.c-wine { background: #881337; border-color: #881337; color: #ffffff; }
.instant-group.tinted.tile-stripe.c-wine, .instant-item.item-custom.tile-stripe.c-wine { background: var(--surface); color: var(--text); border-left-color: #881337; }
.c-chocolate { background: #5b3a1e; --c: #5b3a1e; color: #ffffff; }
.item.c-chocolate, .instant-item.c-chocolate { border-left-color: #5b3a1e; background: var(--surface); color: var(--text); }
.item.tile-fill.c-chocolate, .instant-item.tile-fill.c-chocolate, .offline-item.tile-fill.c-chocolate, .instant-group.tinted.c-chocolate, .instant-group.tinted.on.c-chocolate { background: #5b3a1e; border-color: #5b3a1e; color: #ffffff; }
.instant-group.tinted.tile-stripe.c-chocolate, .instant-item.item-custom.tile-stripe.c-chocolate { background: var(--surface); color: var(--text); border-left-color: #5b3a1e; }
.c-charcoal { background: #374151; --c: #374151; color: #ffffff; }
.item.c-charcoal, .instant-item.c-charcoal { border-left-color: #374151; background: var(--surface); color: var(--text); }
.item.tile-fill.c-charcoal, .instant-item.tile-fill.c-charcoal, .offline-item.tile-fill.c-charcoal, .instant-group.tinted.c-charcoal, .instant-group.tinted.on.c-charcoal { background: #374151; border-color: #374151; color: #ffffff; }
.instant-group.tinted.tile-stripe.c-charcoal, .instant-item.item-custom.tile-stripe.c-charcoal { background: var(--surface); color: var(--text); border-left-color: #374151; }
/* #496 palette end */
