/* Sayo ERP — Bruska's ERP layout in Sayo's brand (Rabar, teal). RTL Sorani. */
@font-face { font-family: 'Rabar'; src: url('/assets/fonts/Rabar_022.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'RabarBold'; src: url('/assets/fonts/Rabar_021.woff2') format('woff2'); font-display: swap; }

:root {
  --brand: #0E7C9B; --brand-press: #0A5C74; --brand-soft: #E3F3F6; --brand-ink: #0A4A5C;
  --accent: #1161FC; --accent-soft: rgba(17, 97, 252, .08);
  --nav: #0B2530; --nav-text: rgba(255, 255, 255, .72); --nav-active: #0E7C9B;
  --bg: #F4F6F9; --surface: #FFFFFF; --surface-2: #F8FAFC; --surface-3: #F1F4F8;
  --text: #16262A; --text-2: #5B6B75; --text-3: #8A99A3;
  --line: #E4E9EE; --line-2: #EEF2F5;
  --green: #1E7B4D; --green-soft: #E2F2E9; --orange: #A86200; --orange-soft: #FDF1DD;
  --red: #B42318; --red-soft: #FDECEA; --gray-soft: #EEF1F4;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .22);
  --radius: 14px; --radius-sm: 10px;
  --font: 'Rabar', system-ui, -apple-system, 'SF Arabic', Tahoma, sans-serif;
  --font-bold: 'RabarBold', 'Rabar', system-ui, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-in: cubic-bezier(.64, 0, .78, 0);
  --side-w: 264px; --top-h: 64px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #22A3C7; --brand-press: #4BB8D6; --brand-soft: rgba(34, 163, 199, .14); --brand-ink: #9BDCEE;
    --accent: #5B8CFF; --accent-soft: rgba(91, 140, 255, .14); --nav: #071A22;
    --bg: #0B1216; --surface: #121B21; --surface-2: #16212A; --surface-3: #1B2731;
    --text: #EAF1F4; --text-2: #A3B3BC; --text-3: #75868F; --line: #22313B; --line-2: #1C2933;
    --green: #4CC98A; --green-soft: rgba(76, 201, 138, .14); --orange: #F0A83C; --orange-soft: rgba(240, 168, 60, .14);
    --red: #F97066; --red-soft: rgba(249, 112, 102, .14); --gray-soft: #1F2C35; --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
body { margin: 0; font: 400 .9375rem/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, b, strong, th { font-family: var(--font-bold); font-weight: 400; }
a { color: var(--brand); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.num, td.num, th.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--text-2); } .tiny { font-size: .8125rem; }
.hidden { display: none !important; }

/* shell */
.app { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; background: var(--nav); color: var(--nav-text);
  display: flex; flex-direction: column; padding: 16px 12px 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.brandbar { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; text-decoration: none; }
.brandbar img { width: 38px; height: 38px; border-radius: 10px; background: #fff; object-fit: contain; padding: 3px; }
.brandbar b { font-size: 1.0625rem; display: block; line-height: 1.2; }
.brandbar span { font-size: .75rem; color: var(--nav-text); }
.nav-item, .nav-group > summary { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  color: var(--nav-text); text-decoration: none; font-size: .9375rem; list-style: none; user-select: none; transition: background-color .12s, color .12s; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-item:hover, .nav-group > summary:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item:active, .nav-group > summary:active { background: rgba(255,255,255,.1); }
.nav-item[aria-current="page"] { background: var(--nav-active); color: #fff; }
.nav-item svg, .nav-group > summary svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav-group > summary .chev { margin-inline-start: auto; width: 14px; height: 14px; transition: transform .2s var(--ease-out); }
.nav-group[open] > summary .chev { transform: rotate(-90deg); }
.nav-group[open] > summary { color: #fff; }
.nav-sub { display: grid; gap: 2px; padding: 4px 0 8px 0; margin-inline-start: 20px; border-inline-start: 1px solid rgba(255,255,255,.1); padding-inline-start: 8px; }
.nav-sub .nav-item { font-size: .875rem; padding: 7px 10px; }
.side-foot { margin-top: auto; padding: 12px 8px 4px; font-size: .75rem; border-top: 1px solid rgba(255,255,255,.08); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line); }
.menu-btn { display: none !important; }
.gsearch { position: relative; flex: 1; max-width: 460px; }
.gsearch input { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 12px; padding-inline-start: 38px; }
.gsearch > svg { position: absolute; inset-inline-start: 12px; top: 11px; width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.gsearch .results { position: absolute; top: 46px; inset-inline: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 30; }
.gsearch .results a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line-2); }
.gsearch .results a:hover, .gsearch .results a.active { background: var(--brand-soft); }
.gsearch .results small { color: var(--text-3); }
.top-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.branch-pick { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 10px; font-family: var(--font-bold); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-family: var(--font-bold); border: 0; cursor: pointer; }
.usermenu { position: relative; }
.usermenu .pop { position: absolute; inset-inline-end: 0; top: 46px; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 30; }
.usermenu .pop a, .usermenu .pop button { display: block; width: 100%; text-align: start; padding: 9px 12px; border-radius: 8px; border: 0; background: none; color: var(--text); text-decoration: none; cursor: pointer; }
.usermenu .pop a:hover, .usermenu .pop button:hover { background: var(--surface-3); }
.usermenu .who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }

.page { padding: 24px; display: grid; gap: 20px; align-content: start; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 1.625rem; line-height: 1.2; letter-spacing: -.02em; }
.crumbs { font-size: .8125rem; color: var(--text-3); margin-bottom: 4px; }
.crumbs a { color: var(--text-3); text-decoration: none; } .crumbs a:hover { color: var(--brand); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 0; }
.card-h h2 { margin: 0; font-size: 1rem; }
.card-b { padding: 14px 18px 18px; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.g6 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.kpi { padding: 16px 18px; display: grid; gap: 6px; }
.kpi .lbl { font-size: .8125rem; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.kpi .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.kpi .ico svg { width: 18px; height: 18px; }
.kpi .val { font-family: var(--font-bold); font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi .val small { font-size: .8125rem; color: var(--text-2); margin-inline-start: 4px; font-family: var(--font); }
.kpi .sub { font-size: .8125rem; color: var(--text-3); }
.kpi.green .ico { background: var(--green-soft); color: var(--green); } .kpi.orange .ico { background: var(--orange-soft); color: var(--orange); }
.kpi.red .ico { background: var(--red-soft); color: var(--red); } .kpi.blue .ico { background: var(--accent-soft); color: var(--accent); }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.quick a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text);
  font-family: var(--font-bold); font-size: .875rem; transition: transform .1s, border-color .12s, background-color .12s; }
.quick a:hover { border-color: var(--brand); background: var(--brand-soft); }
.quick a:active { transform: scale(.97); }
.quick a svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.chart { width: 100%; height: 220px; display: block; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: .875rem; }
.bar-row .track { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 999px; background: var(--brand); }
.legend { display: flex; gap: 16px; font-size: .8125rem; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: middle; }

/* tables */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.toolbar .field { min-width: 150px; } .toolbar .grow { flex: 1; min-width: 200px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th { text-align: start; font-size: .75rem; color: var(--text-2); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
th[data-sort] { cursor: pointer; } th[data-sort]:hover { color: var(--text); }
td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr { transition: background-color .1s; }
tbody tr:hover { background: var(--surface-2); }
tbody tr.clickable { cursor: pointer; }
tfoot td { font-family: var(--font-bold); background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 0; }
tr.inactive td { opacity: .5; }
.empty { padding: 48px 16px; text-align: center; color: var(--text-2); }
.empty b { display: block; color: var(--text); font-size: 1.0625rem; margin-bottom: 4px; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.color-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
.count { font-size: .8125rem; color: var(--text-3); padding: 10px 18px; border-top: 1px solid var(--line-2); }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-family: var(--font-bold); white-space: nowrap; }
.pill.green { background: var(--green-soft); color: var(--green); } .pill.orange { background: var(--orange-soft); color: var(--orange); }
.pill.red { background: var(--red-soft); color: var(--red); } .pill.gray { background: var(--gray-soft); color: var(--text-2); }
.pill.blue { background: var(--accent-soft); color: var(--accent); } .pill.brand { background: var(--brand-soft); color: var(--brand-ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font-family: var(--font-bold); font-size: .875rem; cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform .1s var(--ease-out), background-color .12s, border-color .12s, opacity .12s; }
.btn:hover { background: var(--brand-press); }
.btn:active { transform: scale(.96); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); } .btn.ghost:hover { background: var(--surface-3); }
.btn.soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.success { background: var(--green); }
.btn.sm { height: 32px; padding: 0 12px; font-size: .8125rem; border-radius: 8px; }
.btn.icon { width: 32px; height: 32px; padding: 0; border-radius: 8px; }
.btn.link { background: none; color: var(--brand); height: auto; padding: 0; border: 0; }
.btn[disabled] { opacity: .5; pointer-events: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

/* forms */
.form { display: grid; gap: 14px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px 16px; }
.field { display: grid; gap: 5px; font-size: .8125rem; color: var(--text-2); font-family: var(--font-bold); align-content: start; }
.field.wide { grid-column: 1 / -1; }
.field .hint { font-family: var(--font); font-size: .75rem; color: var(--text-3); }
.field input, .field select, .field textarea, .cell input, .cell select { width: 100%; min-height: 40px; padding: 7px 11px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); font-family: var(--font); font-size: .9375rem; color: var(--text); transition: border-color .12s, box-shadow .12s; }
.field input[type="color"] { padding: 4px; }
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .cell input:focus, .cell select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
input[type="number"], input.ltr, input[type="tel"] { direction: ltr; text-align: end; }
.check { display: flex; align-items: center; gap: 8px; min-height: 40px; font-family: var(--font); color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.err { color: var(--red); font-size: .875rem; font-family: var(--font-bold); min-height: 1.25rem; }
.picker { position: relative; }
.picker input { padding-inline-end: 30px; }
.picker .clear { position: absolute; inset-inline-end: 6px; top: 8px; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--text-3); cursor: pointer; display: none; }
.picker.has .clear { display: block; }
.picker .list { position: absolute; top: calc(100% + 4px); inset-inline: 0; min-width: 240px; max-height: 280px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 40; }
.picker .opt { padding: 8px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; font-family: var(--font); color: var(--text); font-size: .875rem; }
.picker .opt small { color: var(--text-3); }
.picker .opt:hover, .picker .opt.active { background: var(--brand-soft); }
.picker .none { padding: 10px 12px; color: var(--text-3); font-family: var(--font); font-size: .875rem; }
/* floating list (popover in the top layer): placed under the input by script, never clipped by a scrolling table or sheet */
.picker .list[popover] { position: fixed; inset: auto; margin: 0; padding: 0; color: var(--text); }
.picker .opt.add { justify-content: flex-start; align-items: center; color: var(--brand); font-family: var(--font-bold); border-top: 1px solid var(--line-2); }
.picker .opt.add svg { width: 16px; height: 16px; flex: none; }

/* document editor */
.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.lines { width: 100%; border-collapse: separate; border-spacing: 0; }
.lines td.cell { padding: 6px 4px; border-bottom: 1px solid var(--line-2); }
.lines .c-product { min-width: 220px; } .lines .c-num, .lines .c-pct { width: 90px; } .lines .c-money { width: 120px; } .lines .c-date { width: 150px; }
.lines .c-batch { min-width: 180px; } .lines .c-text { min-width: 110px; } .lines .c-ref { min-width: 220px; }
/* number boxes on a line grow with the number instead of hiding digits */
.lines .c-num input, .lines .c-money input, .lines .c-pct input { field-sizing: content; min-width: 100%; max-width: 220px; }
.lines .c-x { width: 44px; } .lines .rownum { color: var(--text-3); width: 32px; text-align: center; font-size: .8125rem; }
.sumbox { position: sticky; top: calc(var(--top-h) + 20px); }
.sumline { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .9375rem; }
.sumline:last-child { border-bottom: 0; }
.sumline.big { font-family: var(--font-bold); font-size: 1.25rem; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 20px; }
.kv span { display: block; font-size: .75rem; color: var(--text-3); }
.kv b { font-size: .9375rem; }

/* sheet & dialogs */
dialog.sheet { position: fixed; inset-block: 0; inset-inline-start: auto; inset-inline-end: 0; margin: 0; height: 100vh; height: 100dvh; max-height: none; width: min(560px, 100vw); max-width: 100vw; padding: 0; border: 0;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; overscroll-behavior: contain; will-change: transform; }
dialog.sheet.wide { width: min(880px, 100vw); }
dialog.sheet:not([open]) { display: none; }
dialog.sheet::backdrop { background: rgba(8, 20, 26, .4); opacity: 0; transition: opacity .3s var(--ease-out); }
dialog.sheet.shown::backdrop { opacity: 1; } dialog.sheet.closing::backdrop { opacity: 0; transition-duration: .22s; }
/* while a sheet is open the page behind stays still: scrolling inside the sheet never moves it */
html:has(dialog[open]) { overflow: hidden; }
.sheet-grab { display: none; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); flex: none; }
.sheet-h h2 { margin: 0; font-size: 1.1875rem; }
/* min-height: 0 lets the body shrink to the space left and scroll, instead of pushing the buttons off screen */
.sheet-b { padding: 20px 22px; overflow-y: auto; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-f { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); flex: none; }
/* phones: a bottom sheet, like iOS. Drag the handle or title down to close. */
@media (max-width: 640px) {
  dialog.sheet, dialog.sheet.wide { inset: auto 0 0 0; width: 100vw; height: calc(100dvh - 12px - env(safe-area-inset-top)); border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
  .sheet-grab { display: block; flex: none; height: 22px; touch-action: none; cursor: grab; position: relative; }
  .sheet-grab::after { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line); }
  .sheet-h { padding: 2px 16px 12px; touch-action: none; }
  .sheet-b { padding: 16px; }
  .sheet-f { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .sheet-f .err:empty { display: none; }
  .sheet-f .btn { flex: 1; height: 44px; }
  .sheet-f .err { flex-basis: 100%; }
  dialog.sheet.dragging { cursor: grabbing; }
}
.sheet-f .err { margin-inline-end: auto; }
dialog.alert { border: 0; padding: 0; border-radius: 16px; width: min(420px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); opacity: 0; transform: scale(.96); transition: opacity .18s, transform .22s var(--ease-out); }
dialog.alert.shown { opacity: 1; transform: none; }
dialog.alert::backdrop { background: rgba(8, 20, 26, .4); }
.alert-b { padding: 20px 20px 8px; } .alert-b h3 { margin: 0 0 6px; font-size: 1.0625rem; } .alert-b p { margin: 0 0 12px; color: var(--text-2); }
.alert-f { display: flex; gap: 8px; justify-content: flex-end; padding: 10px 20px 20px; }

/* toasts */
.toasts { position: fixed; inset-block-end: 20px; inset-inline: 0; display: grid; justify-items: center; gap: 8px; z-index: 60; pointer-events: none; }
.toast { pointer-events: auto; padding: 10px 18px; border-radius: 999px; background: rgba(22, 38, 42, .92); color: #fff; font-family: var(--font-bold); font-size: .9375rem; box-shadow: 0 8px 24px rgba(0,0,0,.2); backdrop-filter: blur(16px); animation: toast-in .28s var(--ease-out); }
.toast.error { background: rgba(180, 35, 24, .95); }
@keyframes toast-in { from { transform: translateY(12px) scale(.98); opacity: 0; } }

/* auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 80% -10%, #12708D 0%, transparent 60%), linear-gradient(160deg, #0B2530, #0A3B4A); }
.auth .card { width: min(440px, 100%); padding: 32px; border: 0; box-shadow: var(--shadow-lg); }
.auth .logo { display: flex; justify-content: center; margin: 4px 0 14px; } .auth .logo img { width: min(300px, 100%); height: auto; }
.auth h1 { text-align: center; margin: 0 0 4px; font-size: 1.5rem; }
.auth p { text-align: center; color: var(--text-2); margin: 0 0 22px; }

/* misc */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: 12px; width: fit-content; flex-wrap: wrap; }
.tabs button, .tabs a { border: 0; background: none; padding: 7px 14px; border-radius: 9px; cursor: pointer; font-family: var(--font-bold); font-size: .875rem; color: var(--text-2); text-decoration: none; }
.tabs .on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.report-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.report-list a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); font-size: .875rem; transition: border-color .12s, background-color .12s; }
.report-list a:hover { border-color: var(--brand); background: var(--brand-soft); }
.report-list svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 16px; }
.checklist { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; }

/* print — rows never split, headers repeat, works on any paper */
#print { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; color: #000; }
  body > *:not(#print) { display: none !important; }
  #print { display: block; font: 11pt/1.5 var(--font); }
  #print table { font-size: 10pt; }
  #print th { background: #f1f4f6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print thead { display: table-header-group; }
  #print tr, #print .no-break { break-inside: avoid; page-break-inside: avoid; }
  #print .p-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #0E7C9B; padding-bottom: 8px; margin-bottom: 12px; }
  #print .p-head img { height: 44px; }
  #print .p-title { font-family: var(--font-bold); font-size: 16pt; }
  #print .p-totals { margin-top: 12px; margin-inline-start: auto; width: 55%; }
  #print .p-sign { display: flex; justify-content: space-between; margin-top: 40px; }
}

/* responsive */
@media (max-width: 1100px) { .doc-grid { grid-template-columns: 1fr; } .sumbox { position: static; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(300px, 86vw); z-index: 50; transform: translateX(100%); transition: transform .28s var(--ease-out); }
  .app.nav-open .side { transform: none; box-shadow: var(--shadow-lg); }
  .scrim { position: fixed; inset: 0; background: rgba(8, 20, 26, .4); z-index: 45; }
  .menu-btn { display: inline-flex !important; }
  .top { padding: 0 12px; gap: 8px; }
  .page { padding: 16px 12px; }
  .gsearch { max-width: none; }
  td, th { padding: 9px 10px; }
}
@media (max-width: 600px) { .top .quick-sale span { display: none; } .branch-pick { max-width: 110px; } .page-head h1 { font-size: 1.375rem; } }

/* ---------------------------------------------------------------- catalogue (iPad first) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; scroll-snap-type: x proximity; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip, .chip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-family: var(--font-bold); font-size: .875rem; white-space: nowrap; cursor: pointer; scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent; transition: background-color .12s, border-color .12s, transform .1s var(--ease-out); }
.chip small, .chip-btn small { color: var(--text-3); font-family: var(--font); }
.chip-btn:active, .seg button:active { transform: scale(.96); }
.chip-btn[aria-pressed="true"], .chip:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-btn[aria-pressed="true"] small, .chip:has(input:checked) small { color: rgba(255, 255, 255, .8); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-3); }
.seg button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font-family: var(--font-bold); font-size: .875rem; cursor: pointer;
  transition: background-color .15s, color .15s, transform .1s var(--ease-out); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.cat-bar { position: sticky; top: var(--top-h); z-index: 15; display: grid; gap: 10px; margin: 0 -4px 16px; padding: 12px 4px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
.cat-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.cat-row.small { align-items: center; }
.cat-customer { flex: 1 1 320px; } .cat-search { flex: 1 1 240px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; padding-bottom: 90px; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s; }
.pcard.in { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
/* a square photo frame; the photo is laid inside it absolutely, so no browser can stretch the card (Safari sizes buttons differently) */
.pimg { position: relative; display: block; width: 100%; height: 0; padding: 0 0 100%; border: 0; margin: 0; background: #fff; cursor: zoom-in; overflow: hidden; -webkit-appearance: none; appearance: none; border-radius: 0; }
.pimg img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.pimg .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #B8C4CB; } .pimg .noimg svg { width: 48px; height: 48px; }
.pcard.out .pimg img { opacity: .45; filter: grayscale(.6); }
.sticker { position: absolute; top: 10px; inset-inline-end: 10px; display: grid; place-items: center; align-content: center; width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFB04D, #F07C1A); color: #fff; box-shadow: 0 3px 10px rgba(240, 124, 26, .4); transform: rotate(-12deg); line-height: 1.05; }
.sticker b { font-size: .8125rem; letter-spacing: -.01em; } .sticker small { font-size: .5625rem; opacity: .9; }
.offer { position: absolute; bottom: 10px; inset-inline-start: 10px; padding: 3px 10px; border-radius: 6px; background: #E5262B; color: #fff; font-family: var(--font-bold); font-size: .8125rem; direction: ltr; }
.stamp { position: absolute; top: 50%; left: 50%; padding: 4px 16px; border: 3px solid #D92D20; border-radius: 6px; color: #D92D20; background: rgba(255, 255, 255, .85);
  font-family: var(--font-bold); font-size: 1.125rem; transform: translate(-50%, -50%) rotate(-14deg); }
.pbody { padding: 12px 14px 4px; flex: 1; }
.pbody h3 { margin: 0 0 2px; font-size: 1.0625rem; letter-spacing: -.005em; line-height: 1.3; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.pbody .sci { margin: 0; color: var(--text-2); font-size: .8125rem; unicode-bidi: plaintext; }
.pbody .meta { margin: 4px 0 0; color: var(--text-3); font-size: .75rem; }
.pprice { margin-top: 8px; font-family: var(--font-bold); font-size: 1.25rem; letter-spacing: -.01em; }
.pprice small { font-size: .75rem; color: var(--text-3); }
.pact { padding: 10px 14px 14px; }
.pact .add { width: 100%; height: 44px; }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; gap: 6px; }
.stepper .btn.icon { width: 44px; height: 44px; font-size: 1.375rem; border: 1px solid var(--line); }
.stepper input { height: 44px; min-width: 0; text-align: center; border: 1px solid var(--brand); border-radius: 10px; background: var(--surface); font-family: var(--font-bold); font-size: 1.0625rem; }
.pact .bonus { margin-top: 6px; text-align: center; color: var(--green); font-family: var(--font-bold); font-size: .875rem; }
.cat-cart { position: sticky; bottom: 14px; z-index: 16; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -76px; padding: 12px 14px 12px 12px;
  border-radius: 16px; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: rise .35s var(--ease-out); }
.cat-cart .btn { height: 48px; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.zoom-img { width: 100%; max-height: 52vh; object-fit: contain; background: #fff; border-radius: 12px; }
.cart-lines .c-product { min-width: 180px; }

/* ---------------------------------------------------------------- order journey board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; align-items: start; }
.board-col { min-width: 0; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 12px; display: grid; gap: 10px; scroll-snap-align: start; }
.board-col h2 { display: flex; align-items: center; gap: 8px; margin: 2px 4px 4px; font-size: .9375rem; }
.board-col h2 small { margin-inline-start: auto; color: var(--text-3); }
.dot { width: 9px; height: 9px; border-radius: 50%; } .dot.orange { background: var(--orange); } .dot.blue { background: var(--accent); } .dot.green { background: var(--green); } .dot.gray { background: var(--text-3); }
.ocard { min-width: 0; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; box-shadow: var(--shadow-sm); animation: rise .3s var(--ease-out); }
/* the card can never grow past its column: the top row wraps, long status names wrap inside their pill */
.ocard header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; } .ocard header .tiny { margin-inline-start: auto; white-space: nowrap; }
.ocard header .pill { white-space: normal; text-align: center; line-height: 1.4; }
.oc-who { display: grid; gap: 2px; }
.ocard details summary { cursor: pointer; color: var(--text-2); font-size: .8125rem; }
.oc-lines, .oc-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: .8125rem; }
.oc-lines li, .oc-steps li { display: flex; justify-content: space-between; gap: 8px; }
.oc-steps { border-top: 1px dashed var(--line); padding-top: 8px; color: var(--text-2); }
.oc-act { display: flex; flex-wrap: wrap; gap: 6px; } .oc-act:empty { display: none; }
.ocard p { margin: 0; }
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pbody h3 { font-size: .9375rem; } .pprice { font-size: 1.0625rem; } .sticker { width: 50px; height: 50px; }
  .board { grid-auto-columns: 86vw; }
}
@media (prefers-reduced-motion: reduce) { .cat-cart, .ocard { animation: none; } }

/* phones: each invoice line is a card (labels on every box, nothing hidden off to the side) */
@media (max-width: 640px) {
  .lines thead { display: none; }
  .lines, .lines tbody { display: block; width: 100%; }
  .lines tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 10px; padding: 14px 16px 16px; position: relative; border-bottom: 1px solid var(--line); }
  .lines td.cell, .lines td.rownum { display: block; padding: 0; border: 0; width: auto; min-width: 0; }
  .lines td.c-product, .lines td.c-batch, .lines td.c-ref { grid-column: 1 / -1; }
  .lines td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 4px; font-size: .75rem; color: var(--text-3); }
  .lines td.rownum { position: absolute; top: 14px; inset-inline-end: 52px; font-size: .75rem; }
  .lines td.c-x { position: absolute; top: 6px; inset-inline-end: 8px; }
  .lines td.c-product { padding-inline-end: 72px; }
  .lines .c-num input, .lines .c-money input, .lines .c-pct input { field-sizing: fixed; width: 100%; max-width: none; height: 44px; font-size: 1rem; }
  .lines .picker input { height: 44px; font-size: 1rem; }
}
/* landscape phone with the keyboard up: the top bar scrolls away instead of covering half the screen */
@media (max-height: 520px) { .top { position: static; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .btn:active, .quick a:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) { .top { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-contrast: more) { :root { --line: #8A99A3; --text-2: var(--text); } }

/* photos, attachments, thumbnails */
.thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; display: block; background: var(--surface-3); }
.thumb.none { display: grid; place-items: center; color: var(--text-3); } .thumb.none svg { width: 18px; height: 18px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 12px; }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.gallery figure.main { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; background: #fff; }
.gallery figcaption { display: flex; justify-content: space-between; align-items: center; padding: 6px; gap: 6px; }
.attach-list { display: grid; gap: 6px; margin-bottom: 12px; }
.attach { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.attach a { flex: 1; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.attach a svg { width: 18px; height: 18px; }
label.upload { cursor: pointer; }
.leaflet-container { font-family: var(--font); }

/* install steps (settings) */
.steps { margin: 0 0 8px; padding-inline-start: 22px; display: grid; gap: 6px; }
.steps li::marker { color: var(--brand); font-family: var(--font-bold); }

/* sales returns: where each line came from, and whether it can come back */
.saleline { display: flex; align-items: center; gap: 6px; min-height: 40px; }
.saleline .sl-label { font-size: .8125rem; color: var(--text-2); white-space: nowrap; }
.lines .c-saleline { min-width: 170px; }
.cell input.locked { background: var(--surface-2); color: var(--text-2); }
.cell input.over { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.verdict { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: .9375rem; }
.verdict.ok { background: var(--green-soft); color: var(--green); } .verdict.bad { background: var(--red-soft); color: var(--red); }
.verdict b { font-family: var(--font-bold); }
table.hist td, table.hist th { white-space: nowrap; vertical-align: top; }

/* order board: stock check and delivery proof */
.oc-lines li small { color: var(--text-3); min-width: 44px; text-align: end; }
.oc-lines li.short, .oc-lines li.short small { color: var(--red); }
.proof { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; font-size: .8125rem; }
.proof img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: #fff; }
.ocard label.btn { cursor: pointer; }

/* read-only expiry next to a batch */
.exp-view { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; color: var(--text-2); font-size: .875rem; direction: ltr; white-space: nowrap; }
.exp-view.soon { color: var(--orange); font-family: var(--font-bold); }
.exp-view.expired { color: var(--red); font-family: var(--font-bold); }
.lines .c-expiryview { width: 110px; }

.picker.fixed .clear { display: none !important; }
.picker.fixed input { background: var(--surface-2); color: var(--text-2); }

/* statement totals: invoices − returns − payments = owed */
.st-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.st-totals { border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px; max-width: 460px; margin-inline-start: auto; }
.st-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .9375rem; }
.st-line.owed { border-bottom: 0; border-top: 2px solid var(--text); margin-top: 4px; font-size: 1.125rem; font-family: var(--font-bold); }
.neg { color: var(--red); }
#print .st-sum { margin-top: 14px; } #print .st-totals { border: 1px solid #999; }

/* ---------- the pharmacy refused at the door (driver's sheet: big, few words) ---------- */
.oc-act .btn.big { flex: 1 1 100%; min-height: 48px; justify-content: center; font-size: .9375rem; }
.oc-back { display: grid; gap: 4px; padding: 8px 10px; border-radius: 10px; background: var(--red-soft); color: var(--text); }
.oc-back > b { color: var(--red); display: flex; align-items: center; gap: 6px; }
.oc-back > b svg { width: 16px; height: 16px; flex: none; }
.oc-back ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .8125rem; }
.oc-back li { display: flex; justify-content: space-between; gap: 8px; }
.bk-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-choice button { display: grid; justify-items: center; gap: 6px; padding: 18px 10px; min-height: 120px; border-radius: 16px;
  border: 2px solid var(--line); background: var(--surface); color: var(--text); font-family: var(--font-bold); font-size: 1rem; cursor: pointer;
  transition: transform .12s ease-out, border-color .15s, background .15s; }
.bk-choice button svg { width: 30px; height: 30px; }
.bk-choice button small { font-family: var(--font); color: var(--text-2); font-size: .75rem; }
.bk-choice button:active { transform: scale(.97); }
.bk-choice button[aria-pressed="true"] { border-color: var(--red); background: var(--red-soft); }
.bk-h { margin: 18px 0 8px; font-family: var(--font-bold); }
.bk-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bk-lines li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.bk-lines li.on { border-color: var(--red); background: var(--red-soft); }
.bk-name { display: grid; gap: 2px; font-family: var(--font-bold); } .bk-name small { font-family: var(--font); color: var(--text-2); }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--surface-3); color: var(--text); font-size: 1.375rem; cursor: pointer; }
.stepper button:active, .bk-all:active, .bk-reasons button:active { transform: scale(.94); }
.bk-lines .stepper input { width: 5.5ch; min-height: 44px; text-align: center; font-family: var(--font-bold); font-size: 1.125rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0 4px; }
.bk-all { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--surface-3); color: var(--text); font-family: var(--font-bold); cursor: pointer; }
.bk-photo { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border-radius: 14px;
  border: 2px dashed var(--line); font-family: var(--font-bold); cursor: pointer; }
.bk-photo svg { width: 22px; height: 22px; flex: none; }
.bk-photo.done { border-style: solid; border-color: var(--green); color: var(--green); }
.bk-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.bk-reasons button { min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-family: var(--font-bold); cursor: pointer; }
.bk-reasons button[aria-pressed="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.bk-why input { width: 100%; }
@media (max-width: 420px) { .bk-lines li { grid-template-columns: 1fr auto; } .bk-all { grid-column: 1 / -1; } }

/* ---------- roles in plain words ---------- */
.perm-h { margin: 18px 0 8px; font-size: .9375rem; }
.check.perm { align-items: flex-start; font-size: .875rem; line-height: 1.5; }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.presets button { display: grid; gap: 4px; text-align: start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-family: var(--font-bold); }
.presets button small { font-family: var(--font); color: var(--text-2); font-size: .75rem; line-height: 1.5; }
.presets button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.presets button:active { transform: scale(.98); }
.journey-perms { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.journey-perms li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-3); }
.step-no svg { width: 14px; height: 14px; }
.step-no { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-family: var(--font-bold); font-size: .8125rem; }
.journey-perms .check { margin: 0; min-height: 0; padding: 0; }

.ocard .proof { min-width: 0; } .ocard .proof img { flex: none; }
.oc-back li span { min-width: 0; }
.nav-badge { margin-inline-start: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--orange); color: #fff; font-size: .75rem; font-family: var(--font-bold); display: inline-grid; place-items: center; }

/* ---------- account security ---------- */
.mfa-card { max-width: 440px; }
.mfa-steps { margin: 6px 0 12px; padding-inline-start: 20px; font-size: .875rem; display: grid; gap: 4px; }
.mfa-qr { display: grid; place-items: center; background: #fff; border-radius: 12px; padding: 10px; width: 220px; height: 220px; margin: 0 auto 10px; }
.mfa-qr svg { width: 200px; height: 200px; }
.mfa-secret { text-align: center; margin-bottom: 8px; word-break: break-all; } .mfa-secret code { font-size: .875rem; }
.mfa-open { display: flex; justify-content: center; margin: 0 auto 8px; }
.code-input { font-size: 1.5rem !important; letter-spacing: .3em; text-align: center; font-family: var(--font-bold); }
.recovery { columns: 2; padding-inline-start: 22px; margin: 10px 0 16px; } .recovery li { margin: 4px 0; } .recovery code { font-size: 1rem; }
.sec-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sec-devices { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.sec-devices li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-3); }
.sec-devices li > span { display: grid; gap: 2px; }
.sec-admin { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
@media print { .auth .btn { display: none; } }
.maint-banner { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; background: var(--orange); color: #fff; font-family: var(--font-bold); font-size: .875rem; text-align: center; }
.maint-banner svg { width: 16px; height: 16px; flex: none; }
