/* ═══════════════════════════════════════════════════════════════════════════
   AllurePOS Admin on the AllurePOS Design System (css/allure-ds/).
   Loaded last in admin.html's <head>, after the legacy sheets (design-system.css,
   allure-theme.css, both unedited: the frozen fiscal blocks still read them), the
   design system (tokens.css, ds.css), the vendored Tabler icons and the inline
   <style>.

   Rules of this file:
   - Every value is a token (var(--ink), var(--space-3)…). A theme (data-theme on
     <html>, js/admin-theme.js) swaps colours only.
   - .k-scope sits on the non-fiscal wrappers only. The accredited fiscal zone
     (certificate card, day review and VAT report, ESIR settings and the L-PFR
     PIN unlock, tax rates, fiscal events, #fiscal-modal, #sef-modal) is never
     styled here, except by the guards in section 5, which only undo what the
     theme would otherwise leak into it.
   - Legacy variables are remapped on named non-fiscal wrappers only (section 2),
     never on :root.
   - !important appears only in section 3, each entry naming the rule it beats.
   - Visual rules sit inside @media screen (the kasir convention: print stays
     legacy).

   Sections: 1 layout and scaffolding · 2 legacy bridge · 3 LEGACY OVERRIDES ·
   4 components · 5 frozen-block guards · 6 responsive · 7 reduced motion
   ═══════════════════════════════════════════════════════════════════════════ */

@media screen {

  /* ── 1. Layout and scaffolding ─────────────────────────────────────────── */

  /* The shell fills the window: bar on top, nav on the left, main scrolls. */
  .adm-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }
  .adm-main {
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
  .adm-nav {
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }

  /* Pages: navigate() toggles .active on .admin-panel (class name kept). */
  .adm-main > .admin-panel { display: none; }
  .adm-main > .admin-panel.active {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-width: 0;
  }

  /* Section head outside a panel (a list's title with its actions). */
  .adm-sechead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-3);
    min-height: var(--hit);
    margin-bottom: var(--space-3);
  }
  .adm-sechead > :is(h3, h4) {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    font: 600 17px/1.25 var(--font-sans);
  }
  .adm-sechead > :is(h3, h4) > .ti {
    color: var(--slate);
    font-size: 20px;
    line-height: 1;
  }
  .adm-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  /* A DataTable card is the containing block of what its cells hide visually
     (.k-visually-hidden is absolute): otherwise that text is placed against
     <body> and widens the page at phone width. */
  .k-table { position: relative; }
  /* Long lists: the card scrolls, so its sticky header stays in view. */
  .adm-table-cap { max-height: max(320px, calc(100dvh - var(--h-head) - 140px)); }
  /* Headers that hold an acronym (PIB, ID, GTIN) keep their case: the DataTable
     header lowercases and capitalises the first letter. */
  .k-table__grid th.adm-th-keep { text-transform: none; }
  .k-table__grid th.adm-th-keep::first-letter { text-transform: none; }
  /* The owner's emoji or a Tabler fallback, in its own narrow column. */
  .k-table__grid .adm-col-icon {
    width: calc(var(--hit) + var(--space-4));
    font-size: 20px;
    line-height: 1;
    text-align: center;
  }
  .k-table__grid .adm-col-icon > .ti { color: var(--ink-3); }

  /* StatTile values: the frozen loadDashboardData writes "184.320 <span>RSD</span>". */
  .adm-stats .k-stat__value > span {
    margin-left: var(--space-1);
    color: var(--slate);
    font: 600 13px/1 var(--font-sans);
  }

  /* Dashboard: the transactions take the full width up to 1600px (rows stay
     one line at 1366); the certificate card and the quick stats sit below,
     side by side, and move into a right column from 1600px. */
  .adm-dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--space-4);
  }
  .adm-dash-aside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    align-items: start;
    gap: var(--space-4);
  }
  @media (min-width: 1600px) {
    .adm-dash-grid { grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr); }
    .adm-dash-aside { grid-template-columns: minmax(0, 1fr); }
  }
  .adm-quickstats .k-empty { padding: var(--space-6) var(--space-4); }

  /* Low-stock alert (JS shows it with display:flex): act-now amber, not a
     left-border card. */
  .adm-alert {
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
    border: 1px solid var(--warn-line);
    border-radius: var(--r-card);
    background: var(--warn-tint);
    color: var(--warn-ink);
  }
  .adm-alert__icon {
    flex-shrink: 0;
    color: var(--warn-ink);
    font-size: 20px;
    line-height: 1;
  }
  .adm-alert__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .adm-alert__title {
    margin: 0;
    font: 600 15px/1.25 var(--font-sans);
  }
  .adm-alert__text {
    margin: 0;
    color: var(--warn-ink);
    font: 400 15px/1.3 var(--font-sans);
  }

  /* Transactions (rows from the frozen renderTransactionsTable, bridged in 2). */
  .adm-tx {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .adm-tx .k-filter__search { width: 260px; }
  .adm-tx__table { max-height: max(360px, calc(100dvh - var(--h-head) - 120px)); }
  .adm-tx-grid td:nth-child(4) {
    text-align: right;
    font-variant-numeric: tabular-nums lining-nums;
    white-space: nowrap;
  }
  .adm-tx-grid td:nth-child(6) {
    min-width: 11em;
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "zero";
  }
  .adm-tx-grid td:nth-child(7) { text-align: right; white-space: nowrap; }
  .adm-tx-grid td:nth-child(7) > div { justify-content: flex-end; }
  .adm-tx-grid td[colspan] {
    height: auto;
    padding: var(--space-6) var(--space-4);
  }

  /* List beside its form: the list takes the room, the form panel 360px on the
     right from 1200px; stacked (form below) under that. */
  .adm-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--space-4);
  }
  /* A list beside its form has about 660px at 1366: long headers ("Prosečna
     nabavna cena") wrap to two lines rather than push the row actions out of
     the card, and a name keeps room for two words per line. */
  .adm-split .k-table__grid th { white-space: normal; }
  .adm-split .k-table__grid td.k-table__strong { min-width: 8em; }
  @media (min-width: 1200px) {
    .adm-split { grid-template-columns: minmax(0, 1fr) 360px; }
    .adm-split--wide-form { grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr); }
    .adm-split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  /* Zalihe (2.69.0, browser smoke I1/I2/M3). A stock list takes the whole width while no form is open: the 360px form
     column is there only beside an open form (js/admin-stock.js stk-split--solo). A list whose columns still do not fit
     scrolls sideways with a scrollbar one can see. */
  @media (min-width: 1200px) {
    .adm-split.stk-split--solo { grid-template-columns: minmax(0, 1fr); }
  }
  /* With a form open (second smoke M-A): the article list needs ~911px beside the 360px form, so below 1680px the form
     opens under the list and the list keeps its full width (js/admin-stock.js focuses the form's first field). */
  @media (max-width: 1679px) {
    .adm-split.stk-split { grid-template-columns: minmax(0, 1fr); }
  }
  .stk-wide { overflow-x: auto; scrollbar-width: auto; scrollbar-color: var(--slate) var(--sunken); }
  /* Chromium before scrollbar-color (< 121) draws this one instead: a 12px bar under the list, never an overlay. */
  .stk-wide::-webkit-scrollbar { height: 12px; }
  .stk-wide::-webkit-scrollbar-thumb { background: var(--slate); border-radius: 6px; }
  .stk-wide::-webkit-scrollbar-track { background: var(--sunken); }
  /* 2.70 stock 2a (smoke F2): the Prijemnica / Povrat line tables keep readable columns - the unit shows "gajba (24 kom)", the
     VAT "20 %", the article its name - and scroll inside their card (.stk-wide) at 1366 px and below, never squeeze the selects. */
  .stk-pn-table { min-width: 72rem; }
  .stk-pn-table .stk-pn-item { min-width: 15rem; }
  .stk-pn-table .stk-pn-unit { min-width: 10rem; }
  .stk-pn-table .stk-pn-vat { min-width: 6.5rem; }
  .stk-pn-table .stk-pn-qty, .stk-pn-table .stk-pn-price, .stk-pn-table .stk-pn-rabat { min-width: 6rem; }
  /* 2.73.3 a Prijemnica from a delivery note (owner's recording 2026-11-02: the reason showed "r…" and the table scrolled at
     1366 px): each delivery-note row is two table rows - the PN line with the plain columns, a little tighter here, and under it
     its eOtpremnica line across the row (js/admin-stock-purchase.js eotpLineHtml: Poslato, Primljeno, Vraćeno, the reason with
     room to read it, the unit factor where the units differ). The table then fits 1366 px with the side nav collapsed. */
  .stk-pn-table--eotp { min-width: 0; }
  .stk-pn-table--eotp .stk-pn-qty, .stk-pn-table--eotp .stk-pn-price { min-width: 5rem; }
  .stk-pn-table--eotp .stk-pn-rabat { min-width: 4.5rem; }
  .stk-pn-table--eotp .stk-pn-vat { min-width: 5.5rem; }
  .stk-pn-table--eotp td.stk-pn-uc { white-space: normal; }
  .stk-pn-table--eotp .stk-pn-line[data-eotp] > td { border-bottom: 0; }
  .stk-pn-table--eotp .stk-pn-eotprow > td { height: auto; padding-top: 0; padding-bottom: var(--space-3); }
  .stk-pn-eotp-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--r-control);
    background: var(--sunken);
  }
  .stk-pn-eotp-bar .stk-pn-eotp-meta { margin-top: 0; }
  .stk-pn-eotp-kv { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
  .stk-pn-eotp-kv .k-field--num { width: 5rem; flex: 0 0 5rem; text-align: right; }
  .stk-pn-eotp-bar .stk-pn-eotp-reason { flex: 1 1 12rem; width: auto; min-width: 10rem; }
  /* Fix round 1 (review I1): the price hint rides on the second line, named ("Nabavna cena: +15,0 % od 15.10.2026."); while a row
     has no hint its span takes no room, and the second line of a row added by hand is then only a thin gap. */
  .stk-pn-table--eotp .stk-pn-hint:empty { display: none; }
  .stk-pn-table--eotp .stk-pn-hint:not(:empty) { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
  .stk-pn-table--eotp .stk-pn-hint:not(:empty)::before { content: attr(data-label) ":"; }
  .stk-pn-table--eotp .stk-pn-eotprow[data-hint] > td { padding: 0 var(--space-4) var(--space-2); }
  .stk-pv-table { min-width: 52rem; }
  .stk-pv-table .stk-pv-unit { min-width: 10rem; }
  .stk-pv-table .stk-pv-qty { min-width: 6rem; }
  /* The article card: a field in a row of the card never shrinks below 120px (a crate name, a supplier); a row that
     cannot hold its fields wraps onto a second line. */
  .stk-locrow, .stk-unitrow, .stk-suprow { flex-wrap: wrap; align-items: center; }
  .stk-locrow > .k-field, .stk-unitrow > .k-field, .stk-suprow > .k-field { flex: 1 1 120px; min-width: 120px; }
  /* The supplier select fills its own row, so a long name stays readable; the code and the price go on the next one
     (second smoke M-B). */
  .stk-suprow > .stk-s-name { flex: 1 1 100%; }
  /* The stock filter bars stay one row where they fit: a field is not the full width there. "Novi artikal" leads the
     bar (always on its first row) and the search gives way first (second smoke M-C). */
  .stk-filter > .k-field { width: auto; flex: 0 1 14rem; min-width: 10rem; }
  .stk-filter > .k-filter__search { flex: 1 1 12rem; min-width: 8rem; }
  .stk-filter > .k-filter__date { flex: 0 0 auto; min-width: 0; }
  /* The issue location per menu category: every select starts at the same place. */
  .k-row.stk-issuerow { display: grid; grid-template-columns: minmax(8rem, 16rem) minmax(0, 1fr); align-items: center; }
  .adm-form .k-panel__body { gap: var(--space-3); }
  .adm-form .k-panel__foot > .k-btn--primary { flex: 1 1 auto; }
  /* File input as a field: the picker button looks like a compact secondary key. */
  .adm-file {
    padding: 5px 6px;
    color: var(--slate);
    font-size: 15px;
    line-height: 32px;
    cursor: pointer;
  }
  .adm-file::file-selector-button {
    height: 32px;
    margin: 0 var(--space-3) 0 0;
    padding: 0 var(--space-3);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-control);
    background: var(--surface);
    color: var(--ink);
    font: 600 15px/1 var(--font-condensed);
    cursor: pointer;
  }
  @media (hover: hover) and (pointer: fine) {
    .adm-file:hover::file-selector-button { background: var(--sunken); }
  }

  /* Menu list: photo thumbnails, the VAT cell's advisory flag without a dot. */
  .adm-menu-list .adm-thumb {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    object-fit: cover;
    vertical-align: middle;
  }
  .adm-menu-list .badge[title]::before { display: none; }
  .adm-menu-list .badge[title] > .ti { font-size: 16px; line-height: 1; }
  .k-table__grid .k-table__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-1);
  }
  .k-table__grid .k-table__actions > * + * { margin-left: 0; }

  /* Non-fiscal dialogs keep class .modal-overlay (JS toggles .active; the
     legacy inline rule fades opacity). Scrim instead of the frozen black. */
  .adm-overlay.modal-overlay {
    z-index: var(--z-modal);
    background: var(--scrim);
    transition: opacity 180ms cubic-bezier(.2, .7, .2, 1);
  }
  .adm-modal--form { --modal-w: 560px; }
  .adm-modal--import { --modal-w: 820px; }
  /* Pregled uvoza: .k-btn sets its own display, so the hidden attribute must still hide Sačuvaj after a save. */
  #menu-import-modal [hidden] { display: none !important; }
  .adm-modal-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }
  .adm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4) var(--space-3);
  }
  .adm-foot-start { margin-right: auto; }
  .adm-recipe-name {
    margin: 0;
    font: 600 17px/1.25 var(--font-sans);
  }
  .adm-sechead--sub { margin-bottom: 0; }
  .adm-rows {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }
  /* Recipe and purchase rows (JS templates): select, quantity, unit, delete. */
  .adm-rowline {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(96px, 1fr) 40px var(--hit);
    align-items: center;
    gap: var(--space-2);
  }
  .adm-rowline--po { grid-template-columns: minmax(0, 1.6fr) minmax(80px, 1fr) 32px minmax(104px, 1.2fr) var(--hit); }
  .adm-unit {
    overflow: hidden;
    color: var(--slate);
    font: 600 13px/1.3 var(--font-sans);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Floor editor (2.65.0, spec 2026-10-19 floor plan §6): the room tabs over three columns - the
     palette (drag a kind onto the plan, or click it), the plan drawn by js/floor-render-flat.js in
     editor mode (the .fp block below) with the selection handles of js/floor-editor.js (.fpe), and
     the properties of the selected element. One column under 1100px. */
  .adm-floor {
    display: grid;
    gap: var(--space-3);
    min-width: 0;
  }
  .adm-roombar {
    display: flex;
    align-items: stretch;
    gap: var(--space-2);
    height: var(--h-tabs);
    padding: 0 var(--space-2) 0 var(--space-3);
    border-bottom: 1px solid var(--line);
  }
  .adm-room-tabs {
    display: flex;
    flex: 0 1 auto;
    align-items: stretch;
    gap: var(--space-1);
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .adm-room-tabs::-webkit-scrollbar { display: none; }
  .adm-room-tabs .k-tab { min-height: 0; }
  .adm-room-tabs .k-tab:focus-visible { outline-offset: -2px; }
  .adm-room-name {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .adm-room-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--r-round);
    background: var(--sunken);
    color: var(--slate);
    font: 700 13px/22px var(--font-sans);
    font-variant-numeric: tabular-nums lining-nums;
    text-align: center;
  }
  .adm-room-tab[aria-selected="true"] .adm-room-count { color: var(--ink); }
  .adm-room-edit { align-self: center; }
  .adm-room-add { flex-shrink: 0; align-self: center; }
  /* "Uredi pod" (2.66.0, spec 14.3): its key at the end of the room bar; while the floor is shaped the
     floor bar (hint + keys) shows over the plan instead. Both are k-btn / flex boxes, which would
     override the hidden attribute. */
  .adm-floor-edit { flex-shrink: 0; align-self: center; margin-left: auto; }
  .adm-floorbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
  }
  .adm-floorbar__hint { flex: 1 1 240px; margin: 0; color: var(--ink-3); font: 400 13px/1.4 var(--font-sans); }
  .adm-floor-edit[hidden], .adm-floorbar[hidden] { display: none; }
  .adm-floor-body {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 240px;
    gap: var(--space-3);
    min-width: 0;
  }
  /* The palette scrolls beside the plan; the plan takes the window's height (520px at least). */
  .adm-palette {
    max-height: max(520px, calc(100dvh - var(--h-head) - 220px));
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
  .adm-palette__title {
    margin: var(--space-3) 0 var(--space-1);
    color: var(--ink-3);
    font: 600 12px/1.3 var(--font-sans);
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .adm-palette__title:first-child { margin-top: 0; }
  .adm-palette__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .adm-palette__key {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: var(--space-1);
    min-height: 76px;
    padding: 6px var(--space-1);
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    background: var(--surface);
    color: var(--ink);
    font: 500 11px/1.2 var(--font-sans);
    text-align: center;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
  }
  .adm-palette__key:active { cursor: grabbing; }
  .adm-palette__key:disabled { opacity: .45; cursor: not-allowed; }
  @media (hover: hover) and (pointer: fine) {
    .adm-palette__key:hover { border-color: var(--line-strong); background: var(--sunken); }
  }
  .adm-palette__key .fp-sprite { width: 40px; height: 40px; }
  /* Table and wall keys: the shape itself, in the plan's colours. */
  .adm-palette__shape {
    display: block;
    width: 40px;
    height: 28px;
    margin: 6px 0;
    border: 1px solid rgba(0, 0, 0, .25);
    border-radius: 6px;
    background: linear-gradient(160deg, #e8c893, #b88a52);
  }
  .adm-palette__shape--round { width: 32px; height: 32px; margin: 4px 0; border-radius: 50%; }
  .adm-palette__shape--bar_high { width: 24px; height: 24px; margin: 8px 0; border-radius: 50%; }
  .adm-palette__shape--oval { width: 44px; border-radius: 50%; }
  .adm-palette__shape--rect2 { width: 44px; height: 22px; margin: 9px 0; }
  .adm-palette__shape--booth { background: linear-gradient(160deg, #d8c3a5, #b99f7e); box-shadow: inset 0 6px 0 #5b4636; }
  .adm-palette__shape--line-h { height: 6px; margin: 17px 0; border: 0; background: #cdba96; }
  .adm-palette__shape--line-v { width: 6px; height: 32px; margin: 4px 0; border: 0; background: #cdba96; }
  .adm-palette__shape--zone { height: 20px; margin: 10px 0; border: 0; border-radius: var(--r-round); background: rgba(0, 0, 0, .12); }
  .adm-floor-canvas {
    position: relative;
    height: max(520px, calc(100dvh - var(--h-head) - 220px));
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--sunken);
    touch-action: none;
  }
  .adm-floor-canvas > .fp { border-radius: 0; }
  .adm-props {
    align-self: start;
    min-width: 0;
    padding: var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
  }
  .adm-props__title { margin: 0 0 var(--space-2); font: 600 15px/1.3 var(--font-sans); }
  .adm-props__empty { margin: 0; color: var(--ink-3); font: 400 13px/1.4 var(--font-sans); }
  .adm-props__empty[hidden] { display: none; }
  .adm-props__form { display: grid; gap: var(--space-3); }
  .adm-props__form[hidden] { display: none; }
  .adm-props__kind { font: 600 15px/1.3 var(--font-sans); }
  /* Preview keys in the page head (only when more than one renderer is registered) and the
     preview drawn inside the message box. */
  .adm-preview { display: flex; gap: var(--space-1); }
  .adm-preview:empty { display: none; }
  .adm-preview-host { position: relative; width: min(80vw, 900px); height: min(60vh, 560px); }
  .adm-preview-note { margin: 0 0 var(--space-2); color: var(--ink); font: 400 14px/1.4 var(--font-sans); }
  .adm-msg .k-modal:has(.adm-preview-host) { width: auto; max-width: 96vw; }
  /* Room dialog: size and floor (texture gallery, uploaded picture, colour). */
  .adm-room-size { display: flex; align-items: center; gap: var(--space-2); }
  .adm-room-size > .k-field { width: 120px; }
  /* "Oblik poda": the five floor templates, each drawn at the proportions typed above. */
  .adm-shape-row { display: flex; flex-wrap: wrap; gap: 6px; }
  .adm-shape-row button {
    display: grid;
    place-items: center;
    width: 56px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    background: var(--surface);
    cursor: pointer;
  }
  .adm-shape-row button[aria-pressed="true"] { border-color: #1e3a5f; outline: 2px solid #1e3a5f; outline-offset: -1px; }
  .adm-shape-row svg { display: block; overflow: visible; }
  .adm-shape-row polygon { fill: #e6d3b1; stroke: #1e3a5f; stroke-width: 1.5px; stroke-linejoin: round; }
  .adm-bg-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--line); }
  .adm-bg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: var(--space-2);
  }
  .adm-bg-grid[hidden] { display: none; }
  .adm-bg-tile {
    position: relative;
    height: 56px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: var(--r-control);
    background-size: 100px 100px;
    cursor: pointer;
  }
  .adm-bg-tile.is-on { border-color: var(--navy); }
  .adm-bg-tile > span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font: 500 10px/1.2 var(--font-sans);
  }
  .adm-bg-image { display: grid; justify-items: start; gap: var(--space-2); margin-top: var(--space-2); }
  .adm-bg-image[hidden] { display: none; }
  .adm-bg-preview { display: block; max-width: 100%; max-height: 120px; border-radius: var(--r-control); }
  .adm-bg-status { color: var(--ink-3); font: 400 13px/1.3 var(--font-sans); }
  /* A POS terminal's own Admin: no upload here (photos go through the cloud Admin), the hint says where. */
  .adm-bg-image .k-btn.is-disabled { opacity: .5; pointer-events: none; }
  .adm-bg-hint { margin: 0; color: var(--ink-3); font: 400 13px/1.4 var(--font-sans); }
  .adm-bg-hint[hidden] { display: none; }
  #adm-bg-color { margin-top: var(--space-2); }
  #adm-bg-color-input { width: 64px; height: var(--hit); padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--surface); }
  .adm-room-order {
    display: flex;
    gap: var(--space-2);
  }
  .adm-room-order > .k-btn { flex: 1 1 0; }
  @media (max-width: 1100px) {
    .adm-floor-body { grid-template-columns: minmax(0, 1fr); }
    .adm-palette { max-height: none; }
    .adm-palette__grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  }
  /* Floor plan redesign (2.65.0, spec 2026-10-19), the .fp block of css/kasir.css with the Admin token
     names: .fp = the view, .fp__floor = the room in
     logical px scaled to fit (transform set by js/floor-render-flat.js). Elements keep logical
     coordinates. Tone (data-tone) picks label contrast on light / dark floors. */
  .fp { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: var(--r-card); background: var(--sunken); }
  .fp__floor { position: absolute; left: 0; top: 0; box-shadow: inset 0 0 60px rgba(0,0,0,.25), 0 2px 12px rgba(0,0,0,.25); }
  /* Shaped floors (2.66.0, spec §14.4): the room's background is clipped to its outline on
     .fp__ground; outside it the floor shows a neutral surround; .fp__edge draws the skirting line. */
  .fp { --fp-outside: #e9e5de; }
  .fp[data-tone="dark"] { --fp-outside: #3a3835; }
  .fp__floor--shaped { background-color: var(--fp-outside); }
  .fp__ground { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
  .fp__edge { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
  .fp__edge polygon { fill: none; stroke: #f3ede2; stroke-width: 6; stroke-linejoin: round; }
  .fp-el, .fp-chair, .fp-stool, .fp-bench { position: absolute; box-sizing: border-box; transform-origin: 50% 50%; }
  .fp-sprite { display: block; width: 100%; height: 100%; }
  .fp-chair, .fp-stool { pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
  .fp-bench { background: #5b4636; border-radius: 6px 6px 2px 2px; box-shadow: 0 1px 2px rgba(0,0,0,.35); pointer-events: none; }
  .fp-el--table { cursor: pointer;
    border: 2px solid rgba(0,0,0,.25); border-radius: 10px; color: #2b1d12; text-align: center; -webkit-tap-highlight-color: transparent;
    background: linear-gradient(160deg, #e8c893 0%, #cfa66f 60%, #b88a52 100%); box-shadow: 0 6px 10px -4px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.35); }
  /* The table's text stack (label, seats or waiter, bill, chips): js/floor-render-flat.js wraps it in
     .fp-el__text, which a turned table turns back so the text stays upright (sideways the renderer gives
     it the box the table shows on screen). It is the size container the @container rules measure. */
  .fp-el__text { position: absolute; left: 0; top: 0; width: 100%; height: 100%; box-sizing: border-box; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2px; padding: 4px; container-type: size; transform-origin: 50% 50%; }
  .fp-el--round, .fp-el--bar_high { border-radius: 50%; }
  .fp-el--oval { border-radius: 50% / 50%; }
  .fp-el--booth { background: linear-gradient(160deg, #d8c3a5, #b99f7e); }
  .fp-el--table.is-free { border-color: var(--ok); }
  .fp-el--table.is-occ { background: var(--k-occ, #f08080); color: var(--k-on-occ, #3b0a0a); border-color: var(--k-occ-line, #c62828); }
  .fp-el--table.is-occ .fp-el__meta { color: var(--k-occ-ink-2, #5a1610); }
  .fp-el--table.is-selected, .fp--editor .fp-el.is-selected { outline: 3px solid var(--brass); outline-offset: 2px; }
  .fp-el__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 clamp(11px, 18cqmin, 18px)/1.2 var(--font-condensed); }
  .fp-el__meta { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 clamp(9px, 11cqmin, 12px)/1.2 var(--font-sans); opacity: .8; }
  .fp-el--line-h, .fp-el--line-v { background: #cdba96; border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
  .fp-el--zone { display: flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255,255,255,.55); color: #333; font: 600 14px/1 var(--font-condensed); letter-spacing: .04em; text-transform: uppercase; }
  .fp[data-tone="dark"] .fp-el--zone { background: rgba(0,0,0,.45); color: #f3f3f3; }
  .fp-el--unknown { display: flex; align-items: center; justify-content: center; background: #9a9a9a; color: #222; border-radius: 6px; font: 600 12px/1.2 var(--font-sans); }
  .fp-el__tag { position: absolute; left: 50%; bottom: -1.4em; transform: translateX(-50%); white-space: nowrap; font: 600 11px/1 var(--font-condensed); color: #333; background: rgba(255,255,255,.7); padding: 2px 6px; border-radius: 999px; }
  .fp[data-tone="dark"] .fp-el__tag { color: #eee; background: rgba(0,0,0,.5); }
  .fp-el--plant, .fp-el--pillar { filter: drop-shadow(0 3px 3px rgba(0,0,0,.4)); }
  .fp-el--pool, .fp-el--stage, .fp-el--stairs, .fp-el--window, .fp-el--bar, .fp-el--cashier, .fp-el--wc, .fp-el--entrance { filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
  /* 2.5D floor plan (2.66.0, spec §5.2): the flat DOM tilted with perspective (js/floor-render-25d.js).
     A filter would flatten an element's 3D children (its faces), so the flat drop shadows give way to
     the soft .fp-shadow on the floor, and faces darken with an inset shade instead of a filter. */
  .fp.fp--25d { perspective-origin: 50% 0%; }
  /* every child of a preserve-3d box is a composited layer of its own: only boxes with 3D children are
     preserve-3d (the text block's children are flat, so they paint into its one layer) */
  .fp--25d .fp__floor, .fp--25d .fp-el { transform-style: preserve-3d; }
  .fp--25d .fp-el, .fp--25d .fp-chair, .fp--25d .fp-stool { filter: none; }
  .fp--25d .fp-face { position: absolute; pointer-events: none; background: inherit; box-shadow: inset 0 0 0 999px rgba(0,0,0,.28); }
  .fp--25d .fp-face--side { box-shadow: inset 0 0 0 999px rgba(0,0,0,.42); }
  .fp--25d .fp-face--base { inset: -2px; border-radius: 50%; box-shadow: inset 0 0 0 999px rgba(0,0,0,.45); }
  .fp--25d .fp-el--bar_high > .fp-face--base { inset: 30%; }
  /* a tap on a table's side opens the table, like a tap on its top; decor faces take their sprite's tone */
  .fp--25d .fp-el--table > .fp-face { pointer-events: auto; }
  .fp--25d .fp-el--bar > .fp-face { background: #6b4a2f; }
  .fp--25d .fp-el--cashier > .fp-face { background: #3b4a63; }
  .fp--25d .fp-el--pillar > .fp-face { background: #a6a39d; }
  .fp--25d .fp-el--window > .fp-face { background: rgba(159,200,232,.7); }
  .fp--25d .fp-el--stage > .fp-face { background: #5a4541; }
  /* a chair's back: its ::after (no extra node), standing up from the seat's back edge; --fp-back = back - seat (js).
     The chair draws its own seat in the sprite's colours (back edge over seat): its sprite would be one more layer */
  .fp--25d .fp-chair { transform-style: preserve-3d; border-radius: 3px; background: linear-gradient(#3f2f24 0 26%, #5b4636 26%); }
  .fp--25d .fp-chair > .fp-sprite { display: none; }
  .fp--25d .fp-chair::after { content: ""; position: absolute; left: 0; top: calc(-1 * var(--fp-back, 14px)); width: 100%; height: var(--fp-back, 14px); transform-origin: 50% 100%; transform: rotateX(-90deg); background: #3f2f24; border-radius: 4px 4px 0 0; pointer-events: none; }
  /* stairs: four treads (the sprite, a top view of them, hides); each riser hangs from its tread's front edge */
  .fp--25d .fp-el--stairs > .fp-sprite { visibility: hidden; }
  .fp--25d .fp-face--step { transform-style: preserve-3d; background: #b8b2a8; box-shadow: inset 0 -2px 0 #9c968c; }
  .fp--25d .fp-face--step::after { content: ""; position: absolute; left: 0; top: 100%; width: 100%; height: var(--fp-riser, 6px); transform-origin: 50% 0; transform: rotateX(-90deg); background: #8d877d; }
  /* every shadow in one flat holder on the floor plane: one composited layer for all of them (js) */
  .fp--25d .fp-shadows { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
  .fp--25d .fp-shadow { position: absolute; border-radius: 10px; background: rgba(0,0,0,.2); box-shadow: 0 0 10px 4px rgba(0,0,0,.2); pointer-events: none; }
  .fp--25d .fp-shadow--round { border-radius: 50%; }
  .fp--25d .fp-el.is-sunken { box-shadow: inset 0 6px 18px rgba(0,0,0,.55); }
  .fp--25d .fp-el--table { box-shadow: none; }
  /* taps: the standing text block overhangs its table's back edge and the decor signs stand up, both in
     front of what lies behind them, so neither takes a tap (a tap on a table's text reaches its top) */
  .fp--25d .fp-el__text { backface-visibility: hidden; pointer-events: none; }
  .fp--25d .fp-el:not(.fp-el--table) { pointer-events: none; }
  /* the standing text block: the queued-sale chip joins the stack, so a chair in front never hides it */
  .fp--25d .fp-el__text > .k-queued-chip { position: static; margin-top: 4px; transform: none; }
  /* 3D floor plan (2.66.0, spec §5.3): canvas + projected HTML badges (js/floor-render-3d.js). */
  /* isolation: the badges' z-index stays inside the plan, under every modal, lock screen, toast and banner */
  .fp3 { position: relative; isolation: isolate; width: 100%; height: 100%; overflow: hidden; border-radius: var(--k-r-card, 12px); background: #1b1b1b; touch-action: none; }
  .fp3__canvas { display: block; width: 100%; height: 100%; }
  .fp3__badges { position: absolute; inset: 0; pointer-events: none; }
  .fp3-badge { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 8px; border-radius: 10px; background: rgba(255,255,255,.88); color: #2b1d12; font: 600 12px/1.2 var(--k-font, sans-serif); box-shadow: 0 2px 6px rgba(0,0,0,.35); white-space: nowrap; }
  .fp3-badge.is-occ { background: var(--k-occ, #f08080); color: var(--k-on-occ, #3b0a0a); }
  .fp3-badge[hidden] { display: none; }
  /* a badge is one centred stack: the flat view's corner and edge chips become lines of it */
  .fp3-badge > .k-res-chip, .fp3-badge > .k-queued-chip { position: static; transform: none; max-width: none; }
  /* decor names (Šank, Kasa, ULAZ, WC, a zone): small pills on the decor, under every table badge */
  .fp3-tag { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.78); color: #333; font: 600 11px/1.2 var(--k-font, sans-serif); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
  .fp3[data-tone="dark"] .fp3-tag { background: rgba(0,0,0,.55); color: #f3f3f3; }
  .fp3-tag[hidden] { display: none; }
  /* a phone: the room is drawn small, so a badge keeps the label and the bill (no seats or waiter line) */
  @media (max-width: 600px) {
    .fp3-badge { padding: 2px 6px; border-radius: 8px; }
    .fp3-badge > .fp-el__label { font-size: 13px; }
    .fp3-badge > .fp-el__meta { display: none; }
    .fp3-badge > .table-bill-badge { font-size: 12px; }
  }

  /* A labelled wall on the plan (the kasir's .k-wall-label). */
  .fp .k-wall-label {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    padding: 0 var(--space-2);
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    background: var(--surface);
    color: var(--slate);
    font: 600 13px/20px var(--font-sans);
    white-space: nowrap;
  }
  /* Editor selection (js/floor-editor.js): a dashed frame on the selected element, 8 resize handles
     and the round rotate handle above it. The frame sits inside the scaled floor, so --fpe-inv
     (1 / the room's scale, set by the editor) keeps handles and lines the same size on screen;
     each handle's ::before widens its hit area. */
  .fpe {
    position: absolute;
    box-sizing: border-box;
    outline: calc(2px * var(--fpe-inv, 1)) dashed var(--navy);
    transform-origin: 50% 50%;
    pointer-events: none;
  }
  .fpe__h, .fpe__rot {
    position: absolute;
    box-sizing: border-box;
    width: calc(12px * var(--fpe-inv, 1));
    height: calc(12px * var(--fpe-inv, 1));
    border: calc(2px * var(--fpe-inv, 1)) solid var(--navy);
    border-radius: 2px;
    background: #fff;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    touch-action: none;
  }
  .fpe__h::before, .fpe__rot::before { content: ""; position: absolute; inset: calc(-8px * var(--fpe-inv, 1)); }
  .fpe__h--n { left: 50%; top: 0; cursor: ns-resize; }
  .fpe__h--s { left: 50%; top: 100%; cursor: ns-resize; }
  .fpe__h--e { left: 100%; top: 50%; cursor: ew-resize; }
  .fpe__h--w { left: 0; top: 50%; cursor: ew-resize; }
  .fpe__h--ne { left: 100%; top: 0; cursor: nesw-resize; }
  .fpe__h--nw { left: 0; top: 0; cursor: nwse-resize; }
  .fpe__h--se { left: 100%; top: 100%; cursor: nwse-resize; }
  .fpe__h--sw { left: 0; top: 100%; cursor: nesw-resize; }
  .fpe__rot { left: 50%; top: calc(-24px * var(--fpe-inv, 1)); border-radius: 50%; cursor: grab; }
  /* An element at the room's edge: the rotate handle below it (js/floor-editor.js sets the class). */
  .fpe--rot-below .fpe__rot { top: calc(100% + 24px * var(--fpe-inv, 1)); }
  /* "Uredi pod" (js/floor-outline-editor.js, spec 14.3): the floor's outline as a dashed line, a round
     handle on every corner and a "+" on every edge's midpoint. The SVG sits inside the scaled floor,
     so --fpo-inv (1 / the room's scale, set by the editor) keeps lines the same width on screen (the
     handle radii are set the same way); only the handles take the pointer. */
  .fpo { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
  .fpo polygon { fill: none; stroke: #1e3a5f; stroke-width: calc(2px * var(--fpo-inv, 1)); stroke-dasharray: calc(8px * var(--fpo-inv, 1)) calc(6px * var(--fpo-inv, 1)); stroke-linejoin: round; }
  .fpo__v { fill: #fff; stroke: #1e3a5f; stroke-width: calc(2px * var(--fpo-inv, 1)); cursor: grab; pointer-events: all; touch-action: none; }
  .fpo__v:active { cursor: grabbing; }
  .fpo__v--sel { fill: #1e3a5f; }
  .fpo__add { fill: #1e3a5f; fill-opacity: .6; cursor: copy; pointer-events: all; touch-action: none; }
  .fpo__plus { fill: none; stroke: #fff; stroke-width: calc(1.5px * var(--fpo-inv, 1)); stroke-linecap: round; pointer-events: none; }
  /* The editor floor: a faint 10 px grid (the snap step) over the texture and under the elements
     (::before is painted before the floor's children). */
  .fp--editor .fp__floor::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 10px);
    pointer-events: none;
  }
  /* A shaped floor (2.66.0) paints its background on .fp__ground, over the ::before grid: the same grid
     is drawn again on the ground, whose clip-path clips it to the outline. */
  .fp--editor .fp__ground::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 10px);
    pointer-events: none;
  }
  .fp--editor .fp-el, .fp--editor .fp-el--table { cursor: move; }

  /* Staff: sub-tabs on their own strip, the users list beside the roles. */
  .adm-subtabs {
    border: 1px solid var(--line);
    border-radius: var(--r-card);
  }
  .adm-subtabs .k-tab { border-radius: var(--r-control) var(--r-control) 0 0; }
  @media (min-width: 1200px) {
    .adm-split--aside { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
  }
  .adm-roles .k-panel__body { padding-top: var(--space-1); padding-bottom: var(--space-1); }
  .adm-role {
    margin: 0;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line);
    color: var(--slate);
    font: 400 15px/1.4 var(--font-sans);
  }
  .adm-role:last-child { border-bottom: 0; }
  .adm-sechead__note {
    margin: 0;
    color: var(--ink-3);
    font: 400 13px/1.3 var(--font-sans);
  }
  .k-table__grid .adm-meta-cell { color: var(--ink-3); }

  /* Open orders (rows from the shared js/open-orders.js, bridged in 2). */
  .adm-oo-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
  }
  /* The shared script's empty line ("Nema otvorenih porudžbina") as an EmptyState:
     a 32px outline icon in ink-3 over a slate body line. */
  .adm-oo-list > div:only-child:not([data-oo-row]) {
    --text3: var(--slate); /* its inline color reads var(--text3) */
    font: 400 15px/1.25 var(--font-sans);
  }
  .adm-oo-list > div:only-child:not([data-oo-row])::before {
    content: "\eb6a"; /* ti-list-check */
    display: block;
    margin-bottom: var(--space-3);
    color: var(--ink-3);
    font: 32px/1 "tabler-icons";
    speak: never;
  }
  /* The frozen fiscal events get their old white ground (legacy values) when
     shown, so their legacy text stays readable on a dark theme. */
  .adm-legacy--ground:has(> #admin-fiscal-events-wrap:not([style*="none"])) {
    padding: 0 16px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--bg2);
  }

  /* Stock: purchase rows scroll inside the form; the count table sits in the
     form panel with a 120px quantity field per row. */
  .adm-rows--scroll {
    max-height: 320px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px;
    margin: -2px;
  }
  .adm-opname-table { max-height: max(320px, calc(100dvh - var(--h-head) - 340px)); }
  .adm-opname-table .opname-act-input { width: 120px; }

  /* Help lines and small helpers shared by the settings-like pages. */
  .adm-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
  .adm-help {
    margin: 0;
    color: var(--slate);
    font: 400 15px/1.4 var(--font-sans);
  }
  .adm-help--meta {
    color: var(--ink-3);
    font-size: 13px;
    line-height: 1.3;
  }
  .adm-help:empty { display: none; }
  .k-panel--flush .adm-help--row {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line);
  }
  .adm-cap { text-transform: capitalize; }
  .adm-muted { color: var(--slate); }

  /* Integrations. */
  .adm-url {
    min-width: 12em;
    color: var(--slate);
    font: 400 13px/1.3 var(--font-sans);
    font-variant-numeric: tabular-nums lining-nums;
    overflow-wrap: anywhere;
  }
  .adm-secret {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--r-card);
    background: var(--sunken);
    box-shadow: inset 0 0 0 1px var(--control-edge);
    color: var(--ink);
    font: 400 13px/1.5 var(--font-sans);
    overflow-wrap: anywhere;
  }
  .adm-secret__value {
    font: 600 15px/1.5 var(--font-sans);
    font-variant-numeric: tabular-nums lining-nums;
  }
  .adm-warn-icon {
    color: var(--warn-ink);
    font-size: 16px;
    vertical-align: -2px;
  }
  .k-table__grid .adm-error-cell {
    color: var(--danger);
    font: 400 13px/1.3 var(--font-sans);
  }
  #panel-integrations .k-formrow__control > .k-field { max-width: 560px; }
  .adm-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  .adm-inline-form > .k-field {
    flex: 1 1 220px;
    width: auto;
  }
  .adm-inline-form > select.k-field:first-of-type { flex: 0 1 160px; }

  /* Licenca i pretplata (2026-10-07). One column below 1200px (the main
     cards, then the side cards); from 1200px the main column (the
     subscription now, add-ons, renew and pay) beside the side column
     (fiscal-card licences, certificate and installer, invoices, billing
     details). The one brass key on the page is the payment. */
  .adm-sub {
    display: grid;
    grid-template-columns: minmax(0, 52rem);
    align-items: start;
    gap: var(--space-4);
  }
  @media (min-width: 1200px) {
    .adm-sub {
      grid-template-columns: minmax(0, 1.6fr) minmax(20rem, 1fr);
      max-width: 90rem;
    }
  }
  .adm-sub__main,
  .adm-sub__side {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-width: 0;
  }
  /* Components here set their own display (.k-btn, .k-panel__foot…): the
     hidden attribute must still hide them. */
  .adm-sub [hidden] { display: none; }
  #sub-order-result:empty { display: none; }

  /* The subscription now: plan, status pill in the head, then the facts. */
  .adm-sub__planname {
    margin: 0;
    color: var(--ink);
    font: var(--text-heading);
  }
  .adm-sub__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3) var(--space-4);
    margin: 0;
  }
  .adm-sub__fact {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
  }
  .adm-sub__fact--wide { grid-column: 1 / -1; }
  .adm-sub__fact > dt {
    color: var(--slate);
    font: var(--text-meta-strong);
  }
  .adm-sub__fact > dd {
    margin: 0;
    color: var(--ink);
    font: var(--text-label);
    font-variant-numeric: tabular-nums lining-nums;
    overflow-wrap: anywhere;
  }
  .adm-sub__days {
    color: var(--slate);
    font: var(--text-meta);
    white-space: nowrap;
  }
  .adm-sub__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  .adm-sub__note {
    display: flex;
    flex-wrap: wrap;
  }
  .adm-sub__note > .adm-alert__text { flex: 1 1 12rem; }

  /* Add-ons: one ruled row each. Columns: the tick (a 44px hit box), name
     over a one-line description, the monthly price (gross over net) and
     the state or the "add now" key; the extra POS terminals use the same
     columns, with the number in the state column and "add one now" under
     it. A narrow card (a phone) puts price and key under the text. */
  .adm-sub__addons > .k-panel__body { container-type: inline-size; }
  .adm-addons {
    display: flex;
    flex-direction: column;
  }
  .adm-addons__row {
    display: grid;
    grid-template-columns: var(--hit) minmax(0, 1fr) 11rem 11.5rem;
    grid-template-areas:
      "check name price action"
      "check desc price action";
    align-items: center;
    column-gap: var(--space-3);
    padding: var(--space-3) 0;
    border-top: 1px solid var(--line);
  }
  .adm-addons__check {
    grid-area: check;
    align-self: stretch;
    justify-content: center;
  }
  .adm-addons__name {
    grid-area: name;
    align-self: end;
    color: var(--ink);
    font: var(--text-label);
    cursor: pointer;
  }
  .adm-addons__desc {
    grid-area: desc;
    align-self: start;
    justify-self: start;
    max-width: 100%;
    margin-top: var(--space-1);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--r-control);
    background: none;
    color: var(--slate);
    font: var(--text-meta);
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }
  .adm-addons__desc[aria-expanded="true"] { white-space: normal; }
  @media (hover: hover) and (pointer: fine) {
    .adm-addons__desc:hover {
      color: var(--ink);
      text-decoration: underline;
      text-underline-offset: 2px;
    }
  }
  .adm-addons__price {
    grid-area: price;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
    text-align: right;
  }
  .adm-addons__gross {
    color: var(--ink);
    font: var(--text-label);
    font-variant-numeric: tabular-nums lining-nums;
  }
  .adm-addons__net {
    color: var(--ink-3);
    font: var(--text-meta);
    font-variant-numeric: tabular-nums lining-nums;
  }
  /* The Add key carries "Add · 1.520,00 RSD incl. VAT": it may wrap inside the key in a narrow card. */
  .adm-addons__action .k-btn { white-space: normal; text-align: left; }
  .adm-addons__action {
    grid-area: action;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: var(--space-1);
    min-width: 0;
  }
  .adm-addons__until {
    color: var(--slate);
    font: var(--text-meta);
    font-variant-numeric: tabular-nums lining-nums;
    white-space: nowrap;
  }
  .adm-addons__row--terminal {
    grid-template-areas:
      "check name price action"
      "check desc price action"
      ". hint hint now";
  }
  .adm-addons__hint {
    grid-area: hint;
    margin: var(--space-2) 0 0;
    color: var(--slate);
    font: var(--text-meta);
  }
  .adm-addons__now {
    grid-area: now;
    justify-self: end;
    margin-top: var(--space-2);
  }
  .adm-qty {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
  .adm-qty > .k-field {
    width: calc(var(--hit) + var(--space-3));
    padding: 0 var(--space-1);
    text-align: center;
    font-variant-numeric: tabular-nums lining-nums;
  }
  @container (max-width: 599px) {
    .adm-addons__row {
      grid-template-columns: var(--hit) minmax(0, 1fr);
      grid-template-areas:
        "check name"
        "check desc"
        "check price"
        "check action";
    }
    .adm-addons__row--terminal {
      grid-template-areas:
        ". name"
        ". desc"
        ". price"
        ". action"
        ". hint"
        ". now";
    }
    .adm-addons__price {
      align-items: flex-start;
      margin-top: var(--space-2);
      text-align: left;
    }
    .adm-addons__action {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-start;
      gap: var(--space-2);
      margin-top: var(--space-2);
    }
    .adm-addons__now { justify-self: start; }
  }

  /* Renew and pay: the period, the total as two lines (gross large, net
     small), the consents; the brass key fills the foot, the reason it is
     disabled right under it. */
  .adm-sub__plan > .k-panel__body { container-type: inline-size; }
  .adm-sub__period { max-width: 20rem; }
  .adm-due {
    flex-wrap: wrap;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--r-card);
    background: var(--sunken);
    box-shadow: inset 0 0 0 1px var(--control-edge);
  }
  .adm-due__amounts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-1);
    min-width: 0;
    margin-left: auto;
    text-align: right;
  }
  .adm-due__amount {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .adm-due__net {
    color: var(--slate);
    font: var(--text-meta);
    font-variant-numeric: tabular-nums lining-nums;
  }
  @container (max-width: 479px) {
    .adm-due { flex-direction: column; align-items: flex-start; }
    .adm-due__amounts { align-items: flex-start; margin-left: 0; text-align: left; }
    .adm-due__amount { font-size: var(--t-title-size); }
  }
  .adm-sub__payfoot {
    flex-direction: column;
    align-items: stretch;
  }
  /* .k-btn--block grows along a row (flex: 1 1 100%); in this column it
     would take its height from that basis and be squeezed. */
  .adm-sub__payfoot > .k-btn--block { flex: 0 0 auto; }
  .adm-sub__reason {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-2);
    margin: 0;
    color: var(--warn-ink);
    font: var(--text-meta-strong);
  }
  .adm-sub__reason > .ti {
    font-size: var(--t-label-size);
    line-height: 1;
  }

  /* Licence and offline server: two ruled rows, text beside its key (the
     key moves under the text when the card is narrow). */
  .adm-sub__dl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
  }
  /* The sandbox installer row (2.62.0) waits hidden until SuperAdmin gives access: display:flex above would show it. */
  .adm-sub__dl[hidden] { display: none; }
  .adm-sub__dltext {
    display: flex;
    flex: 1 1 12rem;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
  }
  .adm-sub__dlname {
    color: var(--ink);
    font: var(--text-label);
  }
  .adm-sub__dlresult { flex-basis: 100%; }

  /* Admin -> Uređaji, "Aplikacija za PDA" (2.55.0): text beside the QR code. The QR stays black on white in every theme
     so a phone camera can read it. */
  .adm-pda-app { margin-top: var(--space-4); }
  .adm-pda-app__body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--space-3) var(--space-4);
  }
  .adm-pda-app__text {
    display: flex;
    flex: 1 1 16rem;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    min-width: 0;
  }
  .adm-pda-app__qr {
    flex: 0 0 auto;
    width: 168px;
    height: 168px;
    padding: var(--space-2);
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    background: white;
  }
  .adm-pda-app__qr svg { display: block; width: 100%; height: 100%; }
  .adm-pda-app__qr[hidden] { display: none; }
  /* .k-btn sets its own display: the hidden attribute must still hide the download key. */
  .adm-pda-app [hidden] { display: none !important; }

  /* Admin → Osoblje staff PIN (spec 2026-10-10-staff-pin-login-design §3.2): .k-group and .k-btn set their own display,
     so the hidden attribute must still hide the PIN field and "Ukloni PIN". */
  #user-modal [hidden] { display: none !important; }
  .adm-pin-row { display: flex; gap: var(--space-2); align-items: center; }
  .adm-pin-row .k-field { flex: 1; min-width: 0; }

  /* Invoices: the table fills the flush card; a narrow card stacks each
     invoice as number over date, amount and PDF on the right. */
  .adm-sub__inv > .k-panel__body { padding: 0; }
  .adm-sub__inv > .k-panel__body > .adm-help { padding: var(--space-4); }
  .adm-sub__inv .k-table {
    border: 0;
    border-radius: 0 0 var(--r-card) var(--r-card);
  }
  /* "incl. VAT" belongs to the amount: the table header says it, a stacked row (no header) says it itself. */
  .adm-sub__vat {
    display: none;
    color: var(--slate);
    font: var(--text-meta);
  }
  @container (max-width: 439px) {
    .adm-sub__inv .adm-sub__vat { display: block; }
    .adm-sub__inv .k-table__grid thead {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
    .adm-sub__inv .k-table__grid tr {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto;
      grid-template-areas:
        "num amount pdf"
        "date amount pdf";
      align-items: center;
      column-gap: var(--space-3);
      padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
      border-bottom: 1px solid var(--line);
    }
    .adm-sub__inv .k-table__grid tbody tr:last-child { border-bottom: 0; }
    .adm-sub__inv .k-table__grid td {
      display: block;
      height: auto;
      padding: 0;
      border: 0;
    }
    .adm-sub__inv .k-table__grid td:nth-child(1) { grid-area: num; font-weight: 600; }
    .adm-sub__inv .k-table__grid td:nth-child(2) {
      grid-area: date;
      min-width: 0;
      color: var(--slate);
      font: var(--text-meta);
    }
    .adm-sub__inv .k-table__grid td:nth-child(3) { grid-area: amount; }
    .adm-sub__inv .k-table__grid td:nth-child(4) { grid-area: pdf; }
  }

  /* Billing details: a read-only summary once complete (label beside
     value), the form when editing; two fields a row stack in a narrow card. */
  .adm-sub__billing > .k-panel__body { container-type: inline-size; }
  .adm-sub__billsum {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: 0;
  }
  .adm-sub__billrow {
    display: grid;
    grid-template-columns: minmax(6rem, 1fr) minmax(0, 2.5fr);
    gap: var(--space-1) var(--space-3);
  }
  .adm-sub__billrow > dt {
    color: var(--slate);
    font: var(--text-meta-strong);
    line-height: var(--t-body-lh);
  }
  .adm-sub__billrow > dd {
    margin: 0;
    color: var(--ink);
    font: var(--text-body);
    font-variant-numeric: tabular-nums lining-nums;
    overflow-wrap: anywhere;
  }
  .adm-sub__billrow strong { font-weight: 600; }
  .adm-sub__billmeta {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-1);
    color: var(--slate);
    font: var(--text-meta);
  }
  .adm-sub__billform {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }
  .adm-sub__postal { flex: 0 1 8rem; }
  @container (max-width: 359px) {
    .adm-sub__billform .k-row { flex-direction: column; }
    .adm-sub__postal { flex: 1 1 auto; }
  }

  .adm-banner {
    border-radius: var(--r-card);
    font-weight: 400;
    line-height: 1.4;
  }
  .adm-banner strong { font-weight: 600; }
  .adm-banner__text { display: block; margin-top: var(--space-1); }
  /* Payment result in Licenca i pretplata after the Monri popup (2.31.0). */
  .adm-pay-result { display: flex; gap: var(--space-3); align-items: flex-start; margin: 0 0 var(--space-3); padding-right: 56px; }
  .adm-pay-result--paid { background: var(--ok-tint); color: var(--ok-ink); }
  .adm-pay-result--failed { background: var(--danger-tint); color: var(--danger-ink); }
  .adm-pay-result__body { flex: 1 1 auto; min-width: 0; }
  .adm-pay-result__title { display: block; font-size: 16px; line-height: 1.35; }
  .adm-pay-result__facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px var(--space-4); margin: var(--space-2) 0 0; font-weight: 400; color: var(--ink); }
  .adm-pay-result__facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
  /* The merchant and the payer below the transaction data (Monri review 2026-10-14). */
  .adm-pay-result__subtitle { display: block; margin-top: var(--space-3); font-size: 14px; line-height: 1.35; }
  .adm-pay-result .k-btn { margin-top: var(--space-2); }
  .adm-pay-result__close { position: absolute; top: 2px; right: 2px; min-width: 44px; min-height: 44px; margin-top: 0 !important; }

  /* Side nav items: legacy allure .menu-btn eases every property. */
  .adm-nav .k-sidenav__item { transition: none; }
  .adm-nav .k-sidenav__group:first-child { padding-top: var(--space-1); }

  /* Open orders count above the foot (2.59.1): a card-shaped key to Otvorene porudžbine. */
  .adm-opencount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    min-height: 44px;
    margin: auto var(--space-1) 0;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  @media (hover: hover) and (pointer: fine) {
    .adm-opencount:hover { background: var(--sunken); }
  }
  .adm-opencount:active { background: var(--sunken-press); }
  .adm-opencount:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .adm-opencount + .k-sidenav__foot { margin-top: 0; }
  .adm-opencount__label {
    color: var(--slate);
    font: 600 13px/1.3 var(--font-sans);
  }
  .adm-opencount__num {
    color: var(--ink);
    font: 600 17px/1.2 var(--font-sans);
    font-variant-numeric: tabular-nums lining-nums;
  }
  /* 2.73 eOtpremnice count under the open orders card: the open orders card keeps the free space above it (margin-top: auto),
     the second card sits right under it; its number is red while a delivery-note deadline has passed. */
  .adm-opencount + .adm-opencount { margin-top: var(--space-1); }
  .adm-opencount--eotp.is-overdue .adm-opencount__num { color: var(--danger); }


  /* ── 2. Legacy bridge (scoped, never :root) ────────────────────────────── */
  /* Non-fiscal wrappers whose content comes from frozen or shared JS that
     writes legacy variables inline (var(--blue), var(--gold), var(--text3)…)
     or that allure-theme.css paints with !important from var(--bg2),
     var(--border)…: remapping them here themes that output with no JS edit.
     Totals and links are plain ink (--gold), the old orange accent is navy. */
  .adm-tx,
  #admin-open-orders-list,
  .adm-menu-list {
    --blue: var(--ink);
    --lblue: var(--navy-raised);
    --accent: var(--navy);
    --orange: var(--navy);
    --text: var(--ink);
    --fg: var(--ink);
    --text2: var(--slate);
    --text3: var(--ink-3);
    --bg: var(--paper);
    --bg2: var(--surface);
    --bg3: var(--surface);
    --bg4: var(--sunken-press);
    --nav: var(--surface);
    --card: var(--surface);
    --border: var(--line);
    --green: var(--ok);
    --red: var(--danger);
    --teal: var(--info);
    --purple: var(--slate);
    --gold: var(--ink);
  }
  /* The shared js/open-orders.js (the kasir redesign's) writes the kasir's
     own tokens with hex fallbacks for its reason tags, void key and last
     error; here they resolve to the Admin theme instead of the Navy & Emas
     hex. */
  #admin-open-orders-list {
    --k-danger: var(--danger);
    --k-danger-tint: var(--danger-tint);
    --k-warn-ink: var(--warn-ink);
    --k-warn-tint: var(--warn-tint);
    --k-info: var(--info);
    --k-info-tint: var(--info-tint);
    --k-ok-ink: var(--ok-ink);
    --k-ok-tint: var(--ok-tint);
    --k-slate: var(--slate);
    --k-sunken: var(--sunken);
    --k-t-md: 15px;
    --k-t-sm: 15px;
    /* The platform tag ("Wolt") on a row: sunken, so it reads as a tag on the surface row. */
    --bg2: var(--sunken);
  }
  /* The header fiscal pill: js/fiscal-badge.js writes the dot colour inline
     as var(--green) / var(--gold) / var(--red) / var(--text3). */
  .adm-bar #fiscal-device-badge {
    --green: var(--ok);
    --gold: var(--warn-ink);
    --red: var(--danger);
    --text3: var(--slate);
  }


  /* ══ 3. LEGACY OVERRIDES ══════════════════════════════════════════════════
     The ONLY place in this file with !important. Each rule beats a legacy
     !important rule in allure-theme.css (or an inline style written by JS),
     which stay unedited.
     ════════════════════════════════════════════════════════════════════════ */

  /* Page: cool paper instead of cream and the dot grid. Beats allure-theme.css
     `body { background-color: #f5efe4 !important; background-image:
     radial-gradient(...) !important }`. */
  html body {
    background: var(--paper) !important;
    background-image: none !important;
  }

  /* Headings in the redesigned chrome take the theme ink. Beats allure-theme.css
     `h1, h2, h3, h4, h5, h6 { color: var(--fg) !important }` (Malam would keep
     a dark navy heading on its dark ground). */
  .k-scope :is(h1, h2, h3, h4, h5, h6) { color: var(--ink) !important; }

  /* The side nav keeps class .admin-sidebar (the page script toggles
     .collapsed on it, see 4.7). Beats allure-theme.css `.sidebar,
     .admin-sidebar, .cart-sidebar { background; border-right } !important`
     plus its shadow, `.admin-sidebar { transition: width .3s !important;
     overflow: hidden }` (collapses are instant; the nav scrolls),
     `.admin-sidebar.collapsed { width: 64px !important }` (the rail is 44px
     rows plus padding) and `.admin-sidebar.collapsed .menu-btn span
     { display: none !important }` (the labels stay for screen readers and
     are hidden visually by 4.7). */
  .adm-nav.admin-sidebar {
    border-right: 1px solid var(--line) !important;
    background: var(--surface) !important;
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;
    transition: none !important;
  }
  .adm-nav.admin-sidebar.collapsed { width: auto !important; }
  .adm-nav.admin-sidebar.collapsed .menu-btn .k-sidenav__label { display: block !important; }

  /* Side nav rows keep class .menu-btn (navigate() reads it). Beats
     allure-theme.css `.menu-btn`, `.menu-btn:hover` and `.menu-btn.active`
     { background; color } !important (orange fill, white text). */
  .adm-nav .menu-btn.k-sidenav__item {
    background: transparent !important;
    color: var(--slate) !important;
  }
  @media (hover: hover) and (pointer: fine) {
    .adm-nav .menu-btn.k-sidenav__item:hover {
      background: var(--sunken) !important;
      color: var(--ink) !important;
    }
  }
  .adm-nav .menu-btn.k-sidenav__item:active {
    background: var(--sunken-press) !important;
    color: var(--ink) !important;
  }
  .adm-nav .menu-btn.k-sidenav__item.active {
    background: var(--sunken) !important;
    color: var(--ink) !important;
  }


  /* Status words in data tables whose rows come from JS that writes legacy
     badges (the frozen transactions, the menu VAT cell): 600 in the state
     colour behind a dot of the same colour, no fill (DataTable status). Beats
     allure-theme.css `.badge-green`, `.badge-gold`, `.badge-red`, `.badge-blue`
     { background; color } !important. */
  :is(.adm-tx, .adm-menu-list) .badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0;
    border-radius: 0;
    font: 600 15px/1.25 var(--font-sans);
    white-space: nowrap;
  }
  :is(.adm-tx, .adm-menu-list) .badge::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
  }
  :is(.adm-tx, .adm-menu-list) .badge.badge-green { background: none !important; color: var(--ok) !important; }
  :is(.adm-tx, .adm-menu-list) .badge.badge-gold { background: none !important; color: var(--warn-ink) !important; }
  :is(.adm-tx, .adm-menu-list) .badge.badge-red { background: none !important; color: var(--danger) !important; }
  /* The menu VAT cell: .badge-green only says the rate is in the PFR group,
     the normal case, so it reads as plain body text; colour stays for the
     rate that needs attention (.badge-red and its warning icon). */
  .adm-menu-list .badge.badge-green {
    color: var(--ink) !important;
    font-weight: 400;
  }
  .adm-menu-list .badge.badge-green::before { display: none; }

  /* Row keys the frozen transactions template writes (.btn.btn-ghost with an
     inline 11px, 4px 8px): 44px compact secondary keys. Beats allure-theme.css
     `.btn` / `.btn-ghost` { background; color; border; border-radius;
     font-weight } !important and the inline padding and font-size. */
  .adm-tx .btn.btn-ghost {
    align-items: center;
    gap: var(--space-2);
    min-height: var(--hit);
    padding: 0 var(--space-3) !important;
    border: 1px solid var(--line-strong) !important;
    border-radius: var(--r-control) !important;
    background: var(--surface) !important;
    color: var(--ink) !important;
    box-shadow: none;
    font-family: var(--font-condensed);
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.25;
    white-space: nowrap;
    transition: none;
  }
  .adm-tx .btn.btn-ghost > .ti { font-size: 18px; line-height: 1; }
  @media (hover: hover) and (pointer: fine) {
    .adm-tx .btn.btn-ghost:hover { background: var(--sunken) !important; }
  }
  .adm-tx .btn.btn-ghost:active { background: var(--sunken-press) !important; transform: none; }

  /* Invoice numbers: the sans face at the body size, tabular (the DataTable has
     no monospace). Beats the inline `font-family: monospace; font-size: 11px`
     of the frozen transactions template. */
  .adm-tx-grid td[style*="monospace"] {
    font-family: inherit !important;
    font-size: 15px !important;
  }

  /* EXCEPTION pending the reviewer (plan 2b), CSS only and in its own commit:
     the frozen menu VAT selects (#menu-vat, #edit-menu-vat, F4/F8) take the
     44px field look of the form around them, and their hints the 13px meta
     size (no text under 13px). Markup, options, attributes and JS are
     untouched. Beats allure-theme.css `.form-select` and `.form-select:focus`
     { background; border; color; border-radius } !important and the hints'
     inline `font-size: 11px; color: var(--text3)`. Drop this block to revert. */
  :is(#menu-vat, #edit-menu-vat) {
    min-height: var(--hit);
    padding: 0 calc(var(--space-3) + 20px) 0 var(--space-3);
    border: 1px solid var(--line-strong) !important;
    border-radius: var(--r-control) !important;
    background: var(--surface) !important;
    background-image:
      linear-gradient(45deg, transparent 50%, var(--slate) 50%),
      linear-gradient(135deg, var(--slate) 50%, transparent 50%) !important;
    background-position:
      calc(100% - var(--space-3) - 10px) 50%,
      calc(100% - var(--space-3) - 4px) 50% !important;
    background-size: 6px 6px !important;
    background-repeat: no-repeat !important;
    color: var(--ink) !important;
    font: 400 17px/1.25 var(--font-sans);
  }
  .k-modal :is(#menu-vat, #edit-menu-vat) { min-height: var(--h-key2); }
  :is(#menu-vat, #edit-menu-vat):focus {
    border-color: var(--ink) !important;
    background-color: var(--surface) !important;
  }
  :is(#menu-vat, #edit-menu-vat):focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }
  :is(#menu-vat, #edit-menu-vat):disabled {
    background-color: var(--sunken) !important;
    color: var(--ink-3) !important;
  }
  [data-theme="malam"] :is(#menu-vat, #edit-menu-vat) { color-scheme: dark; }
  :is(#menu-vat-hint, #edit-menu-vat-hint) {
    color: var(--ink-3) !important;
    font-family: var(--font-sans);
    font-size: 13px !important;
    line-height: 1.3;
  }

  /* Open-order rows (the shared js/open-orders.js writes them with inline
     styles and legacy .btn keys): a 1px line instead of the 4px colour stripe
     (no left-border cards; the reason line names the state), radius 10, no text
     under 13px, and 44px keys: primary navy, secondary, the void key as danger
     ghost. Beats the inline `border-left: 4px solid …; border-radius: 8px;
     font-size: 12px / 10px; text-transform: uppercase; height: 32px / auto`,
     and allure-theme.css `.btn` / `.btn-ghost` { background; color; border;
     border-radius; font-weight } !important. */
  .adm-oo-list [data-oo-row] {
    padding: var(--space-3) var(--space-4) !important;
    border-left-width: 1px !important;
    border-left-color: var(--line) !important;
    border-radius: var(--r-card) !important;
  }
  .adm-oo-list [style*="font-size: 12px"] { font-size: 13px !important; }
  .adm-oo-list [style*="font-size: 10px"] {
    font-size: 13px !important;
    text-transform: capitalize !important;
  }
  /* The reason line as a tag in its state tone, as the kasir's open-orders
     list draws it: red when the fiscal step failed, amber to act or wait,
     blue for information, green when ready, grey for ordinary service. The
     shared script names the reason only through the stripe colour it writes
     inline (REASON_COLOR in js/open-orders.js), so only rows that carry that
     stripe are matched: the kasir's reworked script writes its own tag tone
     inline and is left alone. Beats the inline `color: var(--text);
     margin-top: 4px`. */
  .adm-oo-list [data-oo-row][style*="border-left: 4px solid"] > div:first-child > div:nth-child(2) {
    width: fit-content;
    max-width: 100%;
    margin-top: var(--space-2) !important;
    padding: 2px var(--space-2);
    border-radius: var(--r-control);
    background: var(--sunken);
    color: var(--slate) !important;
    font-weight: 600;
    line-height: 1.35;
  }
  .adm-oo-list [data-oo-row][style*="solid #dc2626"] > div:first-child > div:nth-child(2) {
    background: var(--danger-tint);
    color: var(--danger) !important;
  }
  .adm-oo-list :is([data-oo-row][style*="solid #ef4444"], [data-oo-row][style*="solid #f59e0b"]) > div:first-child > div:nth-child(2) {
    background: var(--warn-tint);
    color: var(--warn-ink) !important;
  }
  .adm-oo-list :is([data-oo-row][style*="solid #0ea5e9"], [data-oo-row][style*="solid #009de0"]) > div:first-child > div:nth-child(2) {
    background: var(--info-tint);
    color: var(--info) !important;
  }
  .adm-oo-list [data-oo-row][style*="solid #8b5cf6"] > div:first-child > div:nth-child(2) {
    background: var(--ok-tint);
    color: var(--ok-ink) !important;
  }
  .adm-oo-list .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-width: var(--hit);
    height: var(--hit) !important;
    padding: 0 var(--space-3) !important;
    border-radius: var(--r-control) !important;
    box-shadow: none;
    font-family: var(--font-condensed);
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.25;
    transition: none;
  }
  .adm-oo-list .btn:active { transform: none; }
  .adm-oo-list .btn.btn-primary {
    border: 1px solid transparent !important;
    background: var(--navy) !important;
    color: var(--on-navy) !important;
  }
  .adm-oo-list .btn.btn-ghost {
    border: 1px solid var(--line-strong) !important;
    background: var(--surface) !important;
    color: var(--ink) !important;
  }
  .adm-oo-list .btn.btn-ghost[data-oo-action="void"] {
    border-color: var(--danger) !important;
    color: var(--danger) !important;
  }
  @media (hover: hover) and (pointer: fine) {
    .adm-oo-list .btn.btn-primary:hover { background: var(--navy-raised) !important; }
    .adm-oo-list .btn.btn-ghost:hover { background: var(--sunken) !important; }
    .adm-oo-list .btn.btn-ghost[data-oo-action="void"]:hover { background: var(--danger-tint) !important; }
  }
  .adm-oo-list .btn:disabled {
    border-color: var(--line) !important;
    background: var(--sunken) !important;
    color: var(--ink-3) !important;
  }
  .adm-oo-list select.input {
    height: var(--hit) !important;
    padding: 0 calc(var(--space-3) + 20px) 0 var(--space-3);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-control);
    background-color: var(--surface);
    background-image:
      linear-gradient(45deg, transparent 50%, var(--slate) 50%),
      linear-gradient(135deg, var(--slate) 50%, transparent 50%);
    background-position:
      calc(100% - var(--space-3) - 10px) 50%,
      calc(100% - var(--space-3) - 4px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px !important;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
  }

  /* Staff sub-tabs keep .btn-tab / .btn-ghost (switchSubTab() toggles
     .btn-ghost; the open tab is the one without it). Beats allure-theme.css
     `.btn-ghost { background; color; border }` !important. */
  .adm-subtabs .btn-tab.btn-ghost {
    border: 0 !important;
    background: transparent !important;
    color: var(--slate) !important;
    box-shadow: none;
  }
  @media (hover: hover) and (pointer: fine) {
    .adm-subtabs .btn-tab.btn-ghost:hover { background: var(--sunken) !important; }
  }
  .adm-subtabs .btn-tab:not(.btn-ghost) {
    color: var(--ink);
    box-shadow: inset 0 -3px 0 var(--ink);
  }

  /* Stock count difference (calcOpnameDiff() writes .badge-green, -red or
     -gray): a status pill, ok / danger / neutral, 13px. Beats allure-theme.css
     `.badge-green`, `.badge-red`, `.badge-gray` { background; color }
     !important. */
  .opname-diff-label.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 28px;
    padding: 0 var(--space-3);
    border-radius: var(--r-round);
    box-shadow: inset 0 0 0 1px var(--control-edge);
    font: 600 13px/1 var(--font-sans);
    font-variant-numeric: tabular-nums lining-nums;
  }
  .opname-diff-label.badge-green { background: var(--ok-tint) !important; color: var(--ok-ink) !important; }
  .opname-diff-label.badge-red { background: var(--danger-tint) !important; color: var(--danger) !important; }
  .opname-diff-label.badge-gray { background: var(--sunken) !important; color: var(--slate) !important; }

  /* Form reset keys: JS shows them with an inline display:inline-block; a
     k-btn centres its label with flex. Beats that inline display. */
  :is(#btn-ing-reset, #btn-sup-reset)[style*="inline-block"] { display: inline-flex !important; }

  /* Header status (4.8): js/fiscal-badge.js and the config-sync script write
     className = "badge badge-<state>", so the pill and the key take their
     state fill by id. Beats allure-theme.css `.badge-green`, `.badge-gold`,
     `.badge-red`, `.badge-gray` { background; color } !important. The fiscal
     pill follows the kasir's L-PFR pill: ok tint when the device can sign, a
     solid danger fill when it cannot, amber while it waits for the PIN, grey
     while it is being checked. */
  .adm-bar #fiscal-device-badge.badge-green { background: var(--ok-tint) !important; color: var(--ok-ink) !important; }
  .adm-bar #fiscal-device-badge.badge-gold { background: var(--warn-tint) !important; color: var(--warn-ink) !important; }
  .adm-bar #fiscal-device-badge.badge-red { background: var(--danger) !important; color: var(--on-danger) !important; }
  .adm-bar #fiscal-device-badge.badge-gray { background: var(--sunken) !important; color: var(--slate) !important; }
  .adm-bar #cloud-sync-badge.badge-green { background: transparent !important; color: var(--ok-ink) !important; }
  .adm-bar #cloud-sync-badge.badge-gold { background: var(--warn-tint) !important; color: var(--warn-ink) !important; }
  .adm-bar #cloud-sync-badge.badge-red { background: var(--danger-tint) !important; color: var(--danger) !important; }
  .adm-bar #cloud-sync-badge.badge-gray { background: var(--surface) !important; color: var(--slate) !important; }
  @media (hover: hover) and (pointer: fine) {
    .adm-bar #cloud-sync-badge.badge-gold:hover { background: var(--warn-hover) !important; }
    .adm-bar #cloud-sync-badge:is(.badge-gray, .badge-green):hover { background: var(--sunken) !important; }
  }

  /* Language segments in Više: the selected one is navy. Beats allure-theme.css
     `.lang-btn.active { background: var(--blue) !important; color: #ffffff
     !important }` (orange with white). */
  .k-menu__lang .lang-btn.active {
    background: var(--navy) !important;
    color: var(--on-navy) !important;
  }


  /* ── 4. Components ─────────────────────────────────────────────────────── */

  /* 4.1 Bar: the Više label shows where the bar has room, as in the kasir
     (the `key` style); from 1300px down the icon carries it and the label
     stays for screen readers. */
  .adm-bar .k-bar__more-label { font: 600 15px/1.25 var(--font-condensed); }
  @media (min-width: 1301px) {
    .adm-bar .k-bar__more {
      width: auto;
      gap: var(--space-2);
      padding: 0 var(--space-3);
    }
  }
  @media (max-width: 1300px) {
    .adm-bar .k-bar__more-label {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      clip: rect(0 0 0 0);
      clip-path: inset(50%);
      white-space: nowrap;
    }
  }

  /* The notification bell and its menu. The dropdown keeps the legacy
     .notification-dropdown / .active show and hide (page script). */
  .adm-bell { display: flex; }
  .adm-bell .bell-badge { border: 0; }
  .adm-bell .adm-menu {
    top: calc(100% + var(--space-1));
    right: 0;
    z-index: var(--z-banner);
    width: 360px;
    max-width: calc(100vw - 2 * var(--space-3));
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--e2);
    cursor: default;
    animation: none;
  }
  .adm-bell .adm-menu.active { display: flex; flex-direction: column; }
  .adm-menu .adm-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    min-height: var(--h-head);
    padding: 0 var(--space-2) 0 var(--space-4);
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font: 600 15px/1.25 var(--font-sans);
  }
  .adm-menu .notification-list {
    max-height: min(420px, calc(100vh - 160px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  /* Rows (populateNotifications): time, a status word with its dot, the text. */
  .adm-notif {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--line);
  }
  .adm-notif:last-child { border-bottom: 0; }
  .adm-notif__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2);
  }
  .adm-notif__status {
    color: var(--slate);
    font: 600 13px/1.3 var(--font-sans);
    white-space: nowrap;
  }
  .adm-notif__status::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: var(--space-2);
    border-radius: 50%;
    background: currentColor;
    vertical-align: 1px;
  }
  .adm-notif__status--danger { color: var(--danger); }
  .adm-notif__status--ok { color: var(--ok); }
  .adm-notif__status--warn { color: var(--warn-ink); }
  .adm-notif__time {
    color: var(--ink-3);
    font: 400 13px/1.3 var(--font-sans);
    font-variant-numeric: tabular-nums lining-nums;
  }
  .adm-notif__text {
    color: var(--ink);
    font: 400 15px/1.3 var(--font-sans);
    font-variant-numeric: tabular-nums lining-nums;
  }
  .adm-menu .k-empty-line { padding: var(--space-5) var(--space-4); }

  /* 4.2 Više: the signed-in user, attendance, the nav (narrow screens), language. */
  .adm-more__user {
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
    padding: var(--space-2) var(--space-3) var(--space-3);
    border-bottom: 1px solid var(--line);
    color: var(--slate);
    font: 600 13px/1.3 var(--font-sans);
  }
  .adm-more__user > .ti { font-size: 16px; line-height: 1; }
  .adm-more__nav { display: none; }
  /* 2.58.6 Više > Tema: the kasa's five swatch keys (css/kasir.css .k-menu__theme) in Admin tokens. The swatch
     colours are fixed literals on purpose: a swatch shows its theme, not the current one. */
  .adm-more__theme {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-1);
    padding: var(--space-2) var(--space-3) var(--space-1);
    border-top: 1px solid var(--line);
    color: var(--slate);
  }
  .adm-more__theme > .ti { width: 20px; font-size: 20px; line-height: 1; text-align: center; }
  .adm-more__theme .k-theme-list { display: flex; gap: 2px; }
  /* Settings > Raspored stolova: default floor plan view (js/admin-floor-mode.js). */
  .adm-floor-modes { display: grid; gap: 8px; }
  .adm-floor-mode { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
  .adm-floor-mode__name { font-weight: 700; }
  .adm-floor-mode__help { grid-column: 2; font-size: 12px; color: var(--ink-3); }
  /* Table colours (js/admin-floor-colors.js): one swatch per preset, the first is the default look, then
     a colour field for any other colour. */
  .adm-floor-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .adm-floor-swatch { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; }
  .adm-floor-swatch.is-on { outline: 3px solid var(--focus); outline-offset: 2px; }
  .adm-floor-swatch--default.adm-floor-swatch--free { background: linear-gradient(160deg, #e8c893 0%, #cfa66f 60%, #b88a52 100%); border: 2px solid #1b7a46; }
  .adm-floor-swatch--default.adm-floor-swatch--occ { background: #f08080; }
  .adm-floor-color-field { width: 48px; height: 36px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); cursor: pointer; }
  .adm-floor-color-custom { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; font-size: 13px; color: var(--ink-3); cursor: pointer; }
  .adm-theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--r-control);
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .adm-more__theme .k-theme-swatch {
    display: inline-flex;
    gap: 2px;
    width: 28px;
    height: 28px;
    padding: 4px;
    border-radius: var(--r-control);
    box-shadow: inset 0 0 0 1px var(--line-strong);
  }
  .adm-more__theme .k-theme-swatch > span { flex: 1 1 0; border-radius: 2px; }
  @media (hover: hover) and (pointer: fine) {
    .adm-theme-btn:hover { background: var(--sunken); }
  }
  .adm-theme-btn:active { background: var(--sunken-press); }
  .adm-theme-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
  .adm-theme-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .k-menu__lang .lang-switcher {
    display: inline-flex;
    gap: 0;
    padding: 2px;
    border: 0;
    border-radius: var(--r-control);
    background: var(--sunken);
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .k-menu__lang .lang-btn {
    width: var(--hit);
    height: var(--hit);
    padding: 0;
    border-radius: var(--r-control);
    background: transparent;
    color: var(--slate);
    font: 600 15px/1 var(--font-condensed);
    transition: none;
  }
  @media (hover: hover) and (pointer: fine) {
    .k-menu__lang .lang-btn:not(.active):hover { background: var(--sunken-press); color: var(--ink); }
  }
  .k-menu__lang .lang-btn.active {
    box-shadow: inset 0 0 0 1px var(--selected-edge);
    cursor: default;
  }
  .k-menu__lang .lang-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

  /* 4.3 Toasts and the message box (js/admin-ui.js). */
  .adm-msg.k-overlay { z-index: var(--z-top); }
  .adm-msg .k-modal { transform: none; }
  .adm-msg .k-modal__title > .ti { font-size: 24px; }
  .adm-msg__icon--ok { color: var(--ok); }
  .adm-msg__icon--danger { color: var(--danger); }
  .adm-msg__icon--info { color: var(--info); }
  .adm-msg__icon--confirm { color: var(--slate); }
  .adm-msg .k-modal__text { overflow-wrap: anywhere; }
  .adm-msg .k-modal__foot > .k-btn { min-width: 112px; }
  .adm-msg .k-modal__text b,
  .adm-msg .k-modal__text strong { color: var(--ink); font-weight: 600; }
  .adm-msg--loading .k-modal__body {
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
  }
  .adm-spin { animation: adm-rotate 1s linear infinite; }
  @keyframes adm-rotate { to { transform: rotate(360deg); } }
  .adm-toast-close { margin: calc(-1 * var(--space-1)) 0; }

  /* 4.4 Lockscreen (#saas-expired-lockscreen, shown by JS with display:flex). */
  .adm-lock {
    position: fixed;
    inset: 0;
    z-index: var(--z-top);
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: var(--paper);
  }
  .adm-lock__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    width: min(480px, 100%);
    padding: var(--space-6) var(--space-5);
    border: 1px solid var(--line);
    border-radius: var(--r-sheet);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 0 0 1px var(--sheet-edge), var(--e3);
    text-align: center;
  }
  .adm-lock__icon {
    color: var(--danger);
    font-size: 32px;
    line-height: 1;
  }
  .adm-lock__title {
    margin: 0;
    font: 600 21px/1.2 var(--font-sans);
  }
  .adm-lock__title .k-sentence { display: block; }
  .adm-lock__text {
    margin: 0;
    color: var(--slate);
    font: 400 15px/1.4 var(--font-sans);
  }


  /* 4.5 Display theme picker (settings > Izgled): native radios in labelled
     keys. Each swatch carries its own data-theme, so var(--paper), var(--navy)
     and var(--brass) resolve for THAT theme (tokens.css theme blocks match any
     element): a swatch shows its theme, not the current one. Selected: a 2px
     ink ring and the check, like the kasir's theme keys in Više. */
  .adm-themes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    gap: var(--space-2);
  }
  .adm-theme {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 56px;
    padding: 0 var(--space-3);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-control);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  @media (hover: hover) and (pointer: fine) {
    .adm-theme:hover { background: var(--sunken); }
  }
  .adm-theme:active { background: var(--sunken-press); }
  .adm-theme:has(input:checked) {
    border-color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
  }
  .adm-theme:has(input:focus-visible) {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }
  .adm-theme__swatch {
    display: flex;
    flex-shrink: 0;
    gap: 3px;
    width: 44px;
    height: 28px;
    padding: 4px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-control);
    background: var(--paper);
  }
  .adm-theme__swatch > span { flex: 1 1 0; border-radius: 2px; }
  .adm-theme__swatch > span:first-child { background: var(--navy); }
  .adm-theme__swatch > span:last-child { background: var(--brass); }
  .adm-theme__name {
    flex: 1 1 auto;
    min-width: 0;
    font: 600 15px/1.25 var(--font-sans);
  }
  .adm-theme__check {
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
    visibility: hidden;
  }
  .adm-theme:has(input:checked) .adm-theme__check { visibility: visible; }
  /* A wider option column beside the label; stacked at 899px and below, as
     every FormRow (ds.css), so the ID selector must not outrank that rule. */
  @media (min-width: 900px) {
    #adm-appearance .k-formrow { grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr); }
  }
  #adm-appearance .k-field-error:empty { min-height: 0; }

  /* 4.6 EmptyState inside a DataTable: the 32px outline icon in ink-3 above
     the slate line that says how to fill the list. */
  .k-table__grid .k-table__empty > .ti {
    display: block;
    margin: 0 auto var(--space-3);
    color: var(--ink-3);
    font-size: 32px;
    line-height: 1;
  }

  /* 4.7 Side nav collapse (wider than 1300px; below that the rail is
     automatic and section 6 hides the toggle). The first group label shares
     its row with the toggle. Collapsed, the nav takes the ds.css icon rail
     of 1300px and below: labels and group names hidden visually, 44px rows,
     no open-orders card or foot. */
  .adm-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    flex-shrink: 0;
  }
  .adm-nav__head > .k-sidenav__group { flex: 1 1 auto; min-width: 0; }
  .adm-nav__toggle-expand { display: none; }
  /* Collapsed, a rule sets the toggle apart from the page rows below it. */
  .adm-nav.collapsed .adm-nav__head {
    justify-content: center;
    margin-bottom: var(--space-1);
    padding-bottom: var(--space-1);
    border-bottom: 1px solid var(--line);
  }
  .adm-nav.collapsed .adm-nav__toggle-collapse { display: none; }
  .adm-nav.collapsed .adm-nav__toggle-expand { display: block; }
  .adm-nav.collapsed :is(.k-sidenav__label, .k-sidenav__group) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .adm-nav.collapsed .k-sidenav__item {
    justify-content: center;
    width: var(--hit);
    padding: 0;
  }
  .adm-nav.collapsed :is(.k-sidenav__item > .k-pill, .k-sidenav__foot, .adm-opencount) { display: none; }

  /* 4.8 Header status: the fiscal device pill (the header pill of ds.css,
     32px, round, 15/600 condensed, 8px dot; not interactive) and the config
     sync key (a 44px compact key in its state colour: it syncs on a press).
     Both carry their state in words; below 900px the words hide as on every
     header pill (ds.css) and stay for screen readers. */
  .adm-bar #fiscal-device-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
    height: 32px;
    margin: 0;
    padding: 0 var(--space-3);
    border-radius: var(--r-round);
    box-shadow: inset 0 0 0 1px var(--control-edge);
    font: 600 15px/1 var(--font-condensed);
    white-space: nowrap;
  }
  .adm-bar #fiscal-device-badge.badge-red { box-shadow: none; }
  .adm-bar #fiscal-device-badge.badge-red > .k-pill__dot { box-shadow: 0 0 0 2px var(--on-danger); }
  .adm-bar #cloud-sync-badge {
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    flex-shrink: 1;
    min-width: var(--hit);
    max-width: 320px;
    height: var(--hit);
    margin: 0;
    padding: 0 var(--space-3);
    border: 1px solid var(--control-edge);
    border-radius: var(--r-control);
    font: 600 15px/1.25 var(--font-condensed);
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  /* Synced is the normal state: a quiet key (the words and the check icon in
     the ok ink, no fill), so only a state that needs attention takes a fill. */
  .adm-bar #cloud-sync-badge.badge-green { border-color: transparent; }
  .adm-bar #cloud-sync-badge.badge-gray { border-color: var(--line-strong); }
  .adm-bar #cloud-sync-badge.badge-gold { border-color: var(--warn-line); }
  .adm-bar #cloud-sync-badge.badge-red { border-color: var(--danger); }
  .adm-bar #cloud-sync-badge > .ti {
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
  }
  .adm-bar #cloud-sync-badge > .k-pill__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .adm-bar #cloud-sync-badge:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }

  /* 4.9 Discounts: the report under the day review, the Popusti page and the
     settings panel. */
  .adm-disc-report { gap: var(--space-3); }
  .adm-disc-report > .adm-sechead { margin-bottom: 0; }
  .adm-disc-report__loghead { margin-top: var(--space-2); }
  /* The four breakdowns: two by two, four across from 1600px, one column on a
     phone (6), so no row is left with a single table. */
  .adm-disc-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: var(--space-3);
  }
  @media (min-width: 1600px) {
    .adm-disc-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  .adm-disc-groups .k-table__grid td { height: var(--hit); }
  .adm-sechead > h4 > .ti {
    color: var(--slate);
    font-size: 20px;
    line-height: 1;
  }
  /* Danger variant of the page alert: a coupon counted for more than one sale. */
  .adm-alert--danger {
    border-color: var(--danger);
    background: var(--danger-tint);
    color: var(--danger);
  }
  .adm-alert--danger :is(.adm-alert__icon, .adm-alert__text) { color: var(--danger); }
  .adm-alert--danger .adm-alert__text { font-variant-numeric: tabular-nums lining-nums; }
  /* Coupon codes: the code as typed on the till, in capitals and tabular. */
  .adm-code {
    text-transform: uppercase;
    font-variant-numeric: tabular-nums lining-nums;
  }
  .adm-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--space-5);
  }
  .adm-days {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .adm-days > legend { padding: 0; margin-bottom: var(--space-1); }
  .adm-days__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--space-4);
  }
  .adm-textarea {
    height: auto;
    min-height: calc(5 * 1.4em + 2 * var(--space-2));
    padding: var(--space-2) var(--space-3);
    line-height: 1.4;
    resize: vertical;
  }
  .adm-disc-settings .k-formrow__control > .k-field { max-width: 560px; }
  .adm-disc-settings .k-formrow__control > .k-field--num { max-width: 200px; }

  /* 4.10 L-PFR licences (Licenca i pretplata): the cards as a DataTable, the
     "not paid" note as an act-now alert. */
  .adm-lic__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 0;
  }
  .adm-lic__note {
    display: flex;
    margin: 0;
  }
  .adm-lic__uid {
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "zero";
    overflow-wrap: anywhere;
  }
  .k-table__grid .adm-lic__pending { color: var(--danger); }
  .adm-lic__empty { padding: var(--space-5) var(--space-4); }
  .adm-lic .adm-help--meta { margin: 0; }
  /* In a narrow card (the side column, a phone) each fiscal card becomes a
     block of lines: card and state on top, the unsent packages in red under
     them, then type, validity and last check, each named by its data-label. */
  @container (max-width: 559px) {
    .adm-lic .k-table__grid thead {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
    .adm-lic .k-table__grid tr {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas:
        "card state"
        "pending pending"
        "kind kind"
        "until until"
        "seen seen";
      column-gap: var(--space-3);
      padding: var(--space-3) var(--space-4);
      border-bottom: 1px solid var(--line);
    }
    .adm-lic .k-table__grid tbody tr:last-child { border-bottom: 0; }
    .adm-lic .k-table__grid td {
      display: block;
      min-width: 0;
      height: auto;
      padding: 0;
      border: 0;
    }
    .adm-lic .k-table__grid td:first-child { grid-area: card; }
    .adm-lic .k-table__grid td.adm-lic__state { display: contents; }
    .adm-lic__state > :first-child { grid-area: state; justify-self: end; align-self: start; }
    .adm-lic__state > .adm-lic__pending { grid-area: pending; margin-top: var(--space-1); }
    .adm-lic .k-table__grid :is(td.adm-lic__kind, td.adm-lic__until, td.adm-lic__seen) {
      margin-top: var(--space-1);
      color: var(--ink);
      font: var(--text-meta);
    }
    .adm-lic .k-table__grid td.adm-lic__kind { grid-area: kind; }
    .adm-lic .k-table__grid td.adm-lic__until { grid-area: until; }
    .adm-lic .k-table__grid td.adm-lic__seen { grid-area: seen; }
    .adm-lic .k-table__grid td[data-label]::before {
      content: attr(data-label) ": ";
      color: var(--slate);
    }
  }


  /* Support (SuperAdmin fase 2B): the restaurant's tickets beside one conversation. */
  #panel-support [hidden] { display: none; }
  .adm-spt__offline { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--r-card); background: var(--warn-tint); color: var(--warn-ink); font: var(--text-body); }
  .adm-spt__open { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
  .adm-spt__open:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
  .adm-spt__text { min-height: 7rem; resize: vertical; }
  .adm-spt__meta { margin: 0 0 var(--space-3); }
  .adm-spt__title { margin: 0 0 var(--space-1); font: var(--text-label); color: var(--ink); overflow-wrap: anywhere; }
  .adm-spt__facts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; font: var(--text-meta); color: var(--slate); }
  .adm-spt__thread { display: flex; flex-direction: column; gap: var(--space-3); max-height: 28rem; margin: 0 0 var(--space-4); padding: 0; overflow-y: auto; list-style: none; }
  .adm-spt__msg { padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
  .adm-spt__msg--support { background: var(--info-tint); }
  .adm-spt__msg--pending { border-style: dashed; }
  .adm-spt__who { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-1); font: var(--text-label); color: var(--ink); }
  .adm-spt__body { margin: 0; font: var(--text-body); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
  .adm-spt__att { display: inline-block; margin-top: var(--space-2); padding: 0; border: 1px solid var(--line); border-radius: var(--r-control); background: none; cursor: zoom-in; }
  .adm-spt__att img { display: block; max-width: 12rem; max-height: 8rem; }
  .adm-spt__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .adm-spt__more { display: flex; justify-content: center; margin-top: var(--space-3); }

  /* ── 5. Frozen-block guards ────────────────────────────────────────────── */
  /* The fiscal zone keeps the look it had before the redesign. Its wrappers
     restore what the blocks used to inherit from <body> (legacy text colour),
     and undo Malam's `color-scheme: dark` on <html>, which would otherwise turn
     their native checkboxes, fields and scrollbars dark. Nothing inside a
     frozen block is targeted. */
  .adm-legacy {
    color: var(--text);
    color-scheme: normal;
    /* .adm-main's thin DS scrollbar colour is inherited, and a set
       scrollbar-color switches off the legacy ::-webkit-scrollbar rules
       (design-system.css) inside the frozen blocks. */
    scrollbar-color: auto;
    /* allure-theme.css body face, literally: a wrapper that sits inside a
       .k-scope (the menu VAT group) must not pass Fira Sans on. */
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
  }
  #fiscal-modal,
  #sef-modal { color-scheme: normal; }


  /* ── 6. Responsive ─────────────────────────────────────────────────────── */
  @media (max-width: 1300px) {
    .adm-bar #cloud-sync-badge { max-width: 220px; }
    .adm-opencount { display: none; }
    /* The rail is automatic here: no toggle, and the head row gives no gap. */
    .adm-nav__head { display: contents; }
    .adm-nav__toggle { display: none; }
  }
  /* Purchase rows under 1600px: the ingredient takes the first line beside
     its remove key, quantity, unit and price the second (the price runs on
     under the remove key), so neither the ingredient name nor the price
     placeholder is cut. */
  @media (max-width: 1599px) {
    .adm-rowline--po {
      grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1.2fr) var(--hit);
      grid-template-areas: "ing ing ing del" "qty unit cost cost";
      padding-bottom: var(--space-2);
      border-bottom: 1px solid var(--line);
    }
    .adm-rowline--po:last-child { padding-bottom: 0; border-bottom: 0; }
    .adm-rowline--po > .po-ing-select { grid-area: ing; }
    .adm-rowline--po > .po-qty-input { grid-area: qty; }
    .adm-rowline--po > .po-unit-label { grid-area: unit; }
    .adm-rowline--po > .po-cost-input { grid-area: cost; }
    .adm-rowline--po > .k-iconbtn { grid-area: del; }
  }
  @media (max-width: 719px) {
    .adm-form-grid,
    .adm-disc-groups { grid-template-columns: minmax(0, 1fr); }
    .adm-rowline:not(.adm-rowline--po) { grid-template-columns: minmax(0, 1fr) minmax(72px, 0.6fr) var(--hit); }
    .adm-rowline:not(.adm-rowline--po) > .adm-unit { display: none; }
    .k-pagehead__actions { width: 100%; }
    .adm-tx .k-filter__search { width: 100%; }
  }
  /* Phone width: the 360px bell menu, anchored to the bell's right edge,
     would run past the left edge of the screen. Pinned to the window under
     the bar instead, with the page gutter on both sides. */
  @media (max-width: 599px) {
    .adm-bell .adm-menu {
      position: fixed;
      top: calc(var(--h-head) + var(--space-1));
      right: var(--space-3);
      left: var(--space-3);
      width: auto;
      max-width: none;
    }
  }
  @media (max-width: 899px) {
    /* The config sync key keeps its icon (the words hide, ds.css). */
    .adm-bar #cloud-sync-badge {
      width: var(--hit);
      padding: 0;
    }
    /* The frozen two-column grids (ESIR settings, inline 1.5fr 1fr; day
       review and VAT report, inline 1fr 1.5fr; both untouched) never stack.
       Their non-fiscal wrappers scroll them sideways inside the page, as a
       DataTable scrolls inside its card, so the page itself never does. */
    :is(#panel-settings, #panel-reports) > .adm-legacy { overflow-x: auto; }
    .adm-more__nav {
      display: flex;
      flex-direction: column;
      gap: 2px;
      margin: var(--space-1) 0;
      padding: var(--space-1) 0;
      border-top: 1px solid var(--line);
    }
    .adm-more__nav .k-menu__item.is-current {
      background: var(--sunken);
      box-shadow: inset 3px 0 0 var(--ink);
    }
  }
}

/* Više without the Popover API (Chromium < 114): js/admin-ui.js toggles .is-open. */
@supports not selector(:popover-open) {
  .k-menu[popover] { display: none; }
  .k-menu[popover].is-open { display: flex; }
}


/* Monri Lightbox as a window over the dimmed page (2.33.5). Monri's lightbox.js puts its card form
   in an iframe (.monri_lightbox_app) that fills the whole window, inside a fixed wrapper div it
   appends to <body>, and the Monri page paints its own grey background: the popup looked like a
   new page. On a screen of at least 760 x 560 the wrapper dims the page and the iframe becomes a
   centred window (Monri's X still closes it). Phones, and browsers without :has(), keep Monri's
   full-screen form. lightbox.js shows and hides both with inline display ('' / none) and sizes the
   iframe inline at 100% x 100%: max-width / max-height cap it without !important. */
@supports selector(:has(*)) {
  @media (min-width: 760px) and (min-height: 560px) {
    div:has(> iframe.monri_lightbox_app) {
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(12, 13, 16, 0.62);
    }
    iframe.monri_lightbox_app {
      flex: 0 0 auto;
      max-width: min(920px, calc(100% - 48px));
      max-height: min(980px, calc(100% - 48px));
      border-radius: 16px;
      box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    }
  }
}


/* ── 7. Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .adm-spin { animation: none; }
}

/* ── 8. Dnevni izveštaj (2.70.5, js/admin-daily-report.js) ─────────────── */
.dr-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.dr-controls .k-filter__date { width: auto; min-width: 160px; }
.dr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--space-4); align-items: start; }
@media (min-width: 1200px) { .dr-grid--wide { grid-template-columns: 2fr 1fr; } }
.dr-panel .k-label { margin: var(--space-2) 0 var(--space-1); }
.dr-panel .k-label:first-child { margin-top: 0; }
.dr-status { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); color: var(--ink); font: 500 15px/1.4 var(--font-sans); }
.dr-status__icon { flex-shrink: 0; font-size: 20px; line-height: 1; color: var(--slate); }
.dr-status--ok { background: var(--ok-tint); border-color: var(--ok); color: var(--ok-ink); }
.dr-status--ok .dr-status__icon { color: var(--ok-ink); }
.dr-status--warn { background: var(--warn-tint); border-color: var(--warn-line); color: var(--warn-ink); }
.dr-status--warn .dr-status__icon { color: var(--warn-ink); }
.dr-trend { font-weight: 600; }
.dr-trend--up { color: var(--ok-ink); }
.dr-trend--down { color: var(--danger); }
.dr-top td:first-child { box-shadow: inset 3px 0 0 var(--navy); }
.dr-hours { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.dr-hour { display: grid; grid-template-columns: 52px minmax(80px, 1fr) 112px 36px; align-items: center; gap: var(--space-2);
  font: 400 15px/1.3 var(--font-sans); font-variant-numeric: tabular-nums lining-nums; color: var(--ink); }
.dr-hour__label, .dr-hour__count { color: var(--slate); }
.dr-hour__count { text-align: right; }
.dr-hour__value { text-align: right; }
.dr-hour__track { display: block; height: 14px; border-radius: 7px; background: var(--sunken); overflow: hidden; }
.dr-hour__bar { display: block; height: 100%; border-radius: 7px; background: var(--navy); }
.dr-print-head { display: none; }

/* Štampaj: only the report (the browser's paper size: no @page here, it would also size the 80 mm receipt prints), no navigation,
   no buttons (body.dr-printing is set for the print and removed after it). No !important: the body.dr-printing selectors win. */
@media print {
  body.dr-printing .adm-bar, body.dr-printing .adm-nav, body.dr-printing .k-toasts, body.dr-printing #dr-controls,
  body.dr-printing .admin-panel:not(#panel-daily), body.dr-printing #panel-daily .k-pagehead { display: none; }   /* the print head names the page and the day */
  body.dr-printing .adm-main { margin: 0; padding: 0; width: auto; }
  body.dr-printing .dr-print-head { display: block; margin: 0 0 8px; font: 700 18px/1.3 var(--font-sans); }
  body.dr-printing .dr-grid { grid-template-columns: 1fr 1fr; }
  body.dr-printing .dr-grid--wide { grid-template-columns: 1fr; }
  body.dr-printing .dr-panel { break-inside: avoid; }
  body.dr-printing #panel-daily th, body.dr-printing #panel-daily th::first-letter { text-transform: none; }
  body.dr-printing .dr-hour__bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* ── 9. Artikli: icon picker, photo, bulk delete (2.71.1, js/admin-menu-icons.js + js/admin-menu-bulk.js) ── */
@media screen {
  /* The icon field: preview, the field, "Izaberi ikonu"; the grid opens under it. */
  .adm-iconpick__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
  .adm-iconpick__row .k-field { flex: 1 1 96px; min-width: 96px; }
  .adm-iconpick__row .k-btn { flex: 0 0 auto; }
  .adm-iconpick__preview { display: inline-grid; flex: 0 0 auto; place-items: center; width: var(--hit); height: var(--hit);
    border: 1px solid var(--line); border-radius: var(--r-control); background: var(--sunken); font-size: 26px; line-height: 1; }
  .adm-iconpick__grid { max-height: 320px; margin-top: var(--space-2); padding: var(--space-3); overflow-y: auto;
    border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--surface); overscroll-behavior: contain; }
  .adm-iconpick__grid[hidden] { display: none; }
  .adm-iconpick__group + .adm-iconpick__group { margin-top: var(--space-3); }
  .adm-iconpick__head { margin: 0 0 var(--space-1); color: var(--slate); font: 600 13px/1.3 var(--font-sans); }
  .adm-iconpick__icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: var(--space-1); }
  .adm-iconpick__btn { display: grid; place-items: center; height: 44px; padding: 0; border: 1px solid transparent;
    border-radius: var(--r-control); background: var(--sunken); font-size: 24px; line-height: 1; cursor: pointer; }
  .adm-iconpick__btn[aria-pressed="true"] { border-color: var(--navy); background: var(--surface); box-shadow: inset 0 0 0 1px var(--navy); }
  @media (hover: hover) and (pointer: fine) {
    .adm-iconpick__btn:hover { background: var(--sunken-press); }
  }
  .adm-iconpick__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

  /* The photo of the item with "Ukloni fotografiju" (shown while the item has one). */
  .adm-photo { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-2); }
  .adm-photo[hidden] { display: none; }
  .adm-photo__img { width: 72px; height: 54px; border: 1px solid var(--line); border-radius: var(--r-control);
    background: var(--sunken); object-fit: cover; }

  /* Bulk delete: the tick box column and the bar above the list. */
  .adm-bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-2) 0;
    padding: var(--space-2) var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--sunken); }
  .adm-bulkbar[hidden] { display: none; }
  .adm-bulkbar__count { margin-right: auto; color: var(--ink); font: 600 15px/1.3 var(--font-sans); }
  .k-table__grid .adm-col-check { width: 44px; text-align: center; }
  .adm-check { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); vertical-align: middle; cursor: pointer; }

  /* The list cell: the photo with the icon as a badge, or the icon on a tile. */
  .adm-thumbwrap { position: relative; display: inline-block; vertical-align: middle; }
  .adm-thumb__badge { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 22px; height: 22px;
    border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 13px; line-height: 1; }
  .adm-menu-list .adm-thumb--icon { display: inline-grid; place-items: center; border-color: transparent; background: var(--sunken);
    font-size: 20px; line-height: 1; }
}

/* ── 10. Narudžbenice (2.71, js/admin-stock-orders.js, spec 2026-10-31-stok-narudzbenica-2c-design §4) ── */
@media screen {
  /* The filter bar and "Nova narudžbenica" hide while a form is open: .k-filter / .k-btn set their own display, so the hidden
     attribute needs a rule (the id beats the class, no !important); the same for the Viber text box of the send dialog. */
  #panel-stock-orders [hidden], #stk-nr-send-modal [hidden] { display: none; }
  .stk-nr-progress { color: var(--slate); white-space: nowrap; }
  .stk-nr-list .stk-nr-open { padding-left: 0; padding-right: 0; font-weight: 600; }
  /* The order lines keep readable columns (as the Prijemnica lines) and scroll inside their card (.stk-wide) when narrow. */
  .stk-nr-table { min-width: 58rem; }
  .stk-nr-table .stk-nr-item { min-width: 15rem; }
  .stk-nr-table .stk-nr-unit { min-width: 10rem; }
  .stk-nr-table .stk-nr-qty, .stk-nr-table .stk-nr-price { min-width: 6rem; }
  .stk-nr-table .stk-nr-code { min-width: 8rem; }
  .stk-nr-rotable { min-width: 44rem; }
  .stk-nr-show { flex: 0 0 auto; justify-content: flex-end; }
  #stk-nr-send-modal .stk-nr-viber { width: 100%; height: auto; min-height: 10rem; padding: var(--space-2) var(--space-3); font: 400 15px/1.4 var(--font-sans); white-space: pre-wrap; resize: vertical; }
  /* "Naručeno / Ostalo" under the article of a Prijemnica line made from an order. */
  .stk-pn-ordered { display: block; margin-top: var(--space-1); }
}

/* ── 11. All you can eat (2.72, js/admin-ayce.js, spec 2026-11-01-ayce-design §4) ── */
@media screen {
  /* The error line and the dish rows use the hidden attribute / their own display: the id beats the class, no !important. */
  #ayce-package-modal [hidden], #panel-ayce [hidden] { display: none; }
  #ayce-list .ayce-open { padding-left: 0; padding-right: 0; font-weight: 600; text-align: left; }
  #ayce-list .is-archived { opacity: 0.7; }
  #ayce-package-modal .k-modal__body { display: flex; flex-direction: column; gap: var(--space-3); }
  .ayce-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--space-3); }
  .ayce-sub { margin: var(--space-2) 0 0; font-size: 15px; font-weight: 600; }
  /* 2.72.2: name | price per person | PDV | besplatno | remove, each field with its own label above it; the row's error line
     (and the "article deleted" hint) spans the row. Phone: name, then price + PDV, then besplatno + remove. */
  .ayce-tier-row { display: grid; grid-template-columns: minmax(8rem, 1.4fr) minmax(6.5rem, 1fr) minmax(7.5rem, auto) auto auto; gap: var(--space-1) var(--space-2); align-items: end; margin-bottom: var(--space-3); }
  .ayce-tier-cell { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
  .ayce-tier-cell .k-field { width: 100%; min-width: 0; }
  .ayce-tier-cell--vat .k-field { min-width: 7.5rem; }
  .ayce-tier-row .ayce-tier-free { white-space: nowrap; min-height: 44px; }
  .ayce-tier-row .k-iconbtn { align-self: end; }
  .ayce-tier-row .ayce-tier-gone, .ayce-tier-row .ayce-tier-err { grid-column: 1 / -1; margin: 0; }
  .ayce-tier-row .ayce-tier-gone { color: var(--k-danger-ink, #b3261e); }
  .ayce-tier-row.is-deleted [data-f="tier-price"] { border-color: var(--k-danger-ink, #b3261e); }
  @media (max-width: 600px) {
    .ayce-tier-row { grid-template-columns: 1fr 1fr; }
    .ayce-tier-cell--name { grid-column: 1 / -1; }
    .ayce-tier-cell--vat .k-field { min-width: 0; }
    .ayce-tier-row .ayce-tier-free { grid-column: 1; min-height: 0; align-self: center; }
    .ayce-tier-row .k-iconbtn { grid-column: 2; justify-self: end; align-self: center; }
  }
  .ayce-item-group { border: 0; margin: 0 0 var(--space-3); padding: 0; min-width: 0; }
  .ayce-item-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-1) 0; }
  .ayce-item-row .ayce-limit { width: 7rem; flex: 0 0 auto; }
  .ayce-days, .ayce-hours { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
  .ayce-day { display: inline-flex; align-items: center; gap: var(--space-1); }
  .ayce-hours input { width: 8rem; }
  /* A field marked by an error turns red; in the guest categories only the failing field of the failing row (js/admin-ayce.js
     markAyceField), never the whole group. */
  #ayce-package-modal [data-field].is-invalid:not([data-field="tiers"]) .k-field, #ayce-package-modal .ayce-tier-row .k-field.is-invalid { border-color: var(--k-danger-ink, #b3261e); }
  #ayce-package-modal .ayce-err { color: var(--k-danger-ink, #b3261e); }
  /* 2.72.2: the intro box, the summary line under the title, the buttons under the tiers, a tier row marked by an error. */
  .ayce-intro { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3); border: 1px solid var(--k-line, #d9d9d9); border-radius: 8px; background: var(--k-surface-2, rgba(0, 0, 0, 0.03)); }
  .ayce-intro p { margin: 0; font-size: 14px; line-height: 1.45; }
  #ayce-package-modal .ayce-summary { margin: 0; padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--k-line, #d9d9d9); }
  .ayce-tier-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
}

/* ── 12. eOtpremnice (2.73, js/admin-stock-eotp.js, spec 2026-11-02-eotpremnica-1-design §10) ── */
@media screen {
  /* 2.74.1 the eOtpremnica tables in a flex panel / dialog body: ds.css gives .k-table flex 1 1 auto + min-height 0 and .k-modal__body is a flex column, so a table was squeezed (Stavke ~2 px, a Za slanje row to its first line). Scoped here (the design system file stays as it is): flex: none makes the table keep its own height. */
  .k-panel__body > .k-table.stk-eotp-table, .k-modal__body > .k-table.stk-eotp-table { flex: none; }   /* every eOtpremnica table: its rows keep their height on a small screen (horizontal scroll stays on the table, vertical is the panel's) */
  /* 2.73.3 the delivery note's head rows (Dobavljač, Datum otpreme, Otprema, Poziv na narudžbenicu: detailHtml): text beside its
     label, not a field - so no field padding above the label (it sat lower than its value) and the rows keep a normal height.
     Every head row keeps its rule, the last one too (the FormRow drops it on a last child; here the receipt note and the lines
     follow), as before the rows had a block of their own. */
  .stk-eotp-meta .k-formrow { align-items: baseline; padding: var(--space-2) 0; }
  .stk-eotp-meta .k-formrow:last-child { border-bottom: 1px solid var(--line); }
  .stk-eotp-meta .k-formrow__label { padding-top: 0; }
  .stk-eotp-meta__val { font: 400 15px/1.25 var(--font-sans); overflow-wrap: anywhere; }
  /* 2.74 eOtpremnica 2 cards (js/admin-eotp-company.js): one fieldset per object / vehicle, the location checkboxes wrap */
  .eotp-co-object, .eotp-co-vehicle { border: 0; border-top: 1px solid var(--k-line, #d9d9d9); padding: var(--space-3) 0 0; margin: var(--space-3) 0 0; }
  .eotp-co-locs { flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
  /* 2.74 tab Poslate (js/admin-stock-eotp-out.js): a received line that differs from the sent one, the ePrijemnica block of a note */
  .stk-eotp-diff td { background: var(--warn-tint); }
  .stk-eotp-receipt { border-top: 1px solid var(--line); padding-top: var(--space-3); }
}

/* 2.72.1: an add-on the restaurant does not have (js/addon-lock.js) is dimmed with a padlock, as on the POS screen;
   the click explains it (AddonLock.explain). */
@media screen {
  .is-addon-locked { opacity: .6; }
  .k-sidenav__item.is-addon-locked .k-sidenav__label::after { content: " \1F512"; }
}
