@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-Medium.ttf"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-Bold.ttf"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-ExtraBold.ttf"); font-weight: 800; font-display: swap; }

:root {
  --bg: #f4f4f7; --card: #fff; --ink: #17171f; --muted: #6c6c7a; --line: #e5e5ec;
  --accent: #4a3fa0; --accent-ink: #fff; --ok: #198754; --warn: #c97a00; --err: #d23a3a; --info: #2563c9;
  --radius: 12px; --shadow: 0 1px 2px rgba(20,20,40,.06), 0 4px 14px rgba(20,20,40,.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Tajawal", system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 0; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 14px 0 8px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hidden { display: none !important; }
.num { text-align: center; font-variant-numeric: tabular-nums; }
.err-text { color: var(--err); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 0 18px; height: 56px; background: #17171f; color: #fff; }
.topbar .logo { color: #fff; font-weight: 800; font-size: 18px; }
.topbar nav { display: flex; gap: 4px; flex: 1; }
.topbar nav a { color: #c9c9d6; padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.topbar nav a:hover { background: #2a2a36; color: #fff; text-decoration: none; }
.topbar nav a.on { background: var(--accent); color: #fff; }
.topbar .who { display: flex; gap: 8px; align-items: center; }
.topbtn { background: transparent; color: #c9c9d6; border: 1px solid #3a3a48; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.topbtn:hover { color: #fff; border-color: #6a6a80; text-decoration: none; }
main { padding: 18px 22px; max-width: 1500px; }

/* building blocks */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col > .card { margin-bottom: 16px; }
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } .topbar nav a { padding: 8px 6px; } }
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 9px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); font-weight: 500; }
.btn.ghost:hover { border-color: #c4c4d2; filter: none; background: #fafafe; }
.btn.danger { background: var(--err); border-color: var(--err); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.block { width: 100%; justify-content: center; }
.btn.file { position: relative; overflow: hidden; }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #eee; color: #333; white-space: nowrap; }
.badge.store { background: var(--c, #555); color: #fff; }
.badge.cod { background: #17171f; color: #fff; }
.tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: #fff4d6; color: #8a5b00; }
.st-new { background: #e8eefc; color: #1f4fb0; } .st-printed { background: #ece8fb; color: #4a3fa0; }
.st-packing { background: #fff3d6; color: #8a5b00; } .st-packed { background: #def5e8; color: #126b3e; }
.st-shipped { background: #e6e6ee; color: #44445a; } .st-cancelled { background: #fde3e3; color: #a12424; }
.job-preparing, .job-queued { background: #e8eefc; color: #1f4fb0; } .job-sent { background: #fff3d6; color: #8a5b00; }
.job-done { background: #def5e8; color: #126b3e; } .job-failed { background: #fde3e3; color: #a12424; } .job-cancelled { background: #ececf1; color: #66667a; }
.alert { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 500; }
.alert.err { background: #fde3e3; color: #8f1d1d; border: 1px solid #f4b8b8; }
.alert.warn { background: #fff4d6; color: #7a5000; border: 1px solid #f1d48a; }
.alert.big { font-size: 20px; font-weight: 800; text-align: center; }
.empty { text-align: center; color: var(--muted); padding: 40px; }
label.inline { display: inline-flex; align-items: center; gap: 6px; }
input, select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
label.inline input { width: 90px; }

/* toolbar */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; background: #e9e9f0; padding: 4px; border-radius: 11px; }
.tab { padding: 6px 14px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.tab.on { background: #fff; box-shadow: var(--shadow); font-weight: 700; text-decoration: none; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13.5px; }
.chip.on { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); color: #fff; text-decoration: none; }
.search input { width: 260px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); border-top: 3px solid #d9d9e3; }
.stat b { display: block; font-size: 26px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.stat.warn { border-top-color: var(--warn); } .stat.err { border-top-color: var(--err); } .stat.ok { border-top-color: var(--ok); }
.stat.err b { color: var(--err); }

/* tables */
.bulk { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.grid-table { width: 100%; border-collapse: collapse; }
.grid-table th { text-align: right; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 9px 10px; border-bottom: 1px solid var(--line); background: #fbfbfd; }
.grid-table td { padding: 9px 10px; border-bottom: 1px solid #f0f0f4; vertical-align: middle; }
.grid-table.compact td, .grid-table.compact th { padding: 6px 8px; }
.grid-table tbody tr:hover { background: #fafaff; }
.grid-table tr[data-href] { cursor: pointer; }
.grid-table tr.state-cancelled td { color: #9a9aa8; }
.grid-table tr.done td { background: #f3fbf6; }
.grid-table tr.lvl-warn td { background: #fffaf0; } .grid-table tr.lvl-error td { background: #fff4f4; }
.code { font-weight: 800; }
.docs { white-space: nowrap; }
.doc { display: inline-block; font-size: 11.5px; padding: 1px 6px; border-radius: 6px; margin-left: 3px; border: 1px solid transparent; }
.doc-none { color: #b5b5c2; border-color: #ececf2; }
.doc-preparing, .doc-queued { background: #e8eefc; color: #1f4fb0; }
.doc-sent { background: #fff3d6; color: #8a5b00; }
.doc-done { background: #def5e8; color: #126b3e; }
.doc-failed { background: #fde3e3; color: #a12424; font-weight: 700; }
.doc-cancelled { color: #9a9aa8; text-decoration: line-through; }
.age { font-variant-numeric: tabular-nums; padding: 1px 6px; border-radius: 6px; }
.age.ok { color: var(--ok); } .age.warn { background: #fff4d6; color: #8a5b00; } .age.late { background: #fde3e3; color: #a12424; font-weight: 700; }

/* order page */
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
dl.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }
.note-inline { background: #fff4d6; padding: 2px 8px; border-radius: 6px; }
.timeline { list-style: none; padding: 0; margin: 0; max-height: 420px; overflow: auto; }
.timeline li { padding: 8px 10px; border-right: 3px solid #d9d9e3; margin-bottom: 6px; background: #fbfbfd; border-radius: 6px; }
.timeline li.lvl-warn { border-right-color: var(--warn); } .timeline li.lvl-error { border-right-color: var(--err); }
.docs-list { padding-right: 18px; margin: 0; }

/* printers */
.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.agent { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.agent-head { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.agent .dot { width: 10px; height: 10px; border-radius: 50%; background: #bbb; }
.agent.online .dot { background: var(--ok); box-shadow: 0 0 0 4px #def5e8; }
.agent.offline .dot { background: var(--err); box-shadow: 0 0 0 4px #fde3e3; }
.printer-names { margin: 4px 0 0; padding-right: 18px; font-size: 13px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.tips li { margin-bottom: 6px; }
tr.meta-invoice td { background: #eef4ff; } tr.meta-awb td { background: #f0faf4; }

/* login */
.page-login { display: grid; place-items: center; min-height: 100vh; }
.login { width: 340px; display: grid; gap: 12px; }
.login label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }

/* pack station */
.scanbar { display: grid; gap: 10px; }
.mode-switch { display: inline-flex; gap: 4px; background: #e9e9f0; padding: 4px; border-radius: 11px; justify-self: start; }
.mode { border: 0; background: transparent; font: inherit; padding: 6px 16px; border-radius: 8px; cursor: pointer; }
.mode.on { background: #fff; box-shadow: var(--shadow); font-weight: 800; }
.scan-input { font-size: 28px; padding: 14px 18px; border: 3px solid var(--accent); border-radius: 14px; letter-spacing: 1px; }
.page-pack.handover .scan-input { border-color: var(--ok); }
.flash { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; z-index: 30; display: grid; place-items: center; }
.flash.show { opacity: 1; }
.flash.ok { background: rgba(25,135,84,.12); } .flash.err { background: rgba(210,58,58,.22); } .flash.done { background: rgba(25,135,84,.25); }
.flash span { background: #17171f; color: #fff; font-size: 26px; font-weight: 800; padding: 16px 28px; border-radius: 16px; max-width: 80vw; text-align: center; }
.flash.err span { background: var(--err); } .flash.done span { background: var(--ok); }
.order-card .order-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.o-code { font-size: 26px; font-weight: 800; margin: 0 8px; }
.progress-wrap { display: flex; align-items: center; gap: 10px; min-width: 260px; }
.progress { flex: 1; height: 12px; background: #ececf2; border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.progress-wrap.complete .progress i { background: var(--ok); }
.order-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.order-info span { display: block; font-size: 12.5px; }
.order-info b { font-size: 16px; }
.items { display: grid; gap: 10px; margin-bottom: 16px; }
.item { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); border-right: 6px solid #d9d9e3; transition: background .3s; }
.item img, .item .noimg { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: #f0f0f4; }
.item .name { font-size: 17px; font-weight: 700; }
.item .codes { font-size: 12.5px; color: var(--muted); }
.item .count { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 110px; text-align: center; }
.item .count small { font-size: 18px; color: var(--muted); }
.item.multi .need { background: #17171f; color: #fff; border-radius: 8px; padding: 0 8px; }
.item.complete { border-right-color: var(--ok); background: #f1fbf5; }
.item.partial { border-right-color: var(--warn); }
.item.hit { background: #e3f7ea; }
.item .ctl { display: flex; flex-direction: column; gap: 4px; }
.pack-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.jobs-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.jobs-strip .badge { font-size: 14px; padding: 6px 12px; }
dialog.card { border: 0; padding: 20px; width: 380px; }
dialog::backdrop { background: rgba(10,10,20,.4); }
dialog select { width: 100%; margin: 10px 0; }

#toast { position: fixed; bottom: 18px; left: 18px; z-index: 50; display: grid; gap: 8px; }
.toast { background: #17171f; color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 420px; animation: pop .2s ease-out; }
.toast.ok { background: var(--ok); } .toast.err { background: var(--err); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

/* ===================================================================== phase 2 — layout */
body:not(.page-login) { padding-right: 214px; }
.side { position: fixed; top: 0; right: 0; bottom: 0; width: 214px; background: #17171f; color: #c9c9d6; display: flex; flex-direction: column; z-index: 25; }
.side .logo { display: block; color: #fff; font-weight: 800; font-size: 18px; padding: 16px 18px 10px; }
.side nav { flex: 1; overflow-y: auto; padding: 0 10px 10px; }
.side nav a { display: block; color: #c9c9d6; padding: 7px 10px; border-radius: 8px; font-weight: 500; font-size: 14.5px; }
.side nav a:hover { background: #2a2a36; color: #fff; text-decoration: none; }
.side nav a.on { background: var(--accent); color: #fff; }
.side .grp { font-size: 11.5px; color: #7d7d92; margin: 14px 10px 4px; letter-spacing: .3px; }
.side .grp:first-child { margin-top: 4px; }
.side .me { border-top: 1px solid #2c2c3a; padding: 12px 14px; display: grid; gap: 6px; font-size: 14px; color: #fff; }
.side .me .muted { color: #9a9aae; }
@media (max-width: 900px) {
  body:not(.page-login) { padding-right: 0; }
  .side { position: sticky; width: auto; bottom: auto; flex-direction: row; align-items: center; overflow-x: auto; }
  .side .logo { padding: 12px; white-space: nowrap; }
  .side nav { display: flex; overflow: visible; padding: 6px; gap: 2px; }
  .side nav a { white-space: nowrap; }
  .side .grp { display: none; }
  .side .me { border: 0; display: flex; white-space: nowrap; }
  .two-col, .split { grid-template-columns: 1fr; }
}

/* ===================================================================== phase 2 — shared bits */
.alert.ok { background: #def5e8; color: #0f5a33; border: 1px solid #b6e6cb; }
.linkbtn { background: none; border: 0; padding: 0 4px; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
form.inline { display: inline-flex; margin: 0; gap: 6px; align-items: center; }
.btn-row.inline { margin: 0; }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.check input { width: auto; }
.stack { display: grid; gap: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 12px; align-items: end; margin-bottom: 8px; }
.form-grid label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.form-grid label.check { display: inline-flex; color: var(--ink); font-size: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; }
textarea { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; }
.qty-input { width: 84px !important; text-align: center; }
.big-name { font-size: 18px; font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split > .card { margin-bottom: 16px; }
dl.kv.cols4 { grid-template-columns: repeat(4, auto 1fr); }
.grid-table tr.err-row td { background: #fff4f4; }
.grid-table tr.total td { border-top: 2px solid var(--ink); font-weight: 800; }
.tips summary { cursor: pointer; font-weight: 700; margin: 6px 0; }
.tips code, .card code { background: #f1f1f6; padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.kpi .k { color: var(--muted); font-size: 13px; }
.kpi .v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.3; }
.kpi .s { color: var(--muted); font-size: 12.5px; }
.sync-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.sync-bar.off { border-right: 5px solid #b5b5c2; } .sync-bar.dry_run { border-right: 5px solid var(--warn); } .sync-bar.on { border-right: 5px solid var(--ok); }

/* login with PIN */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.person { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; cursor: pointer; text-align: center; }
.person span { font-size: 12px; color: var(--muted); }
.person.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.pin-who { font-weight: 800; font-size: 18px; text-align: center; margin: 6px 0; }
#pin { width: 100%; font-size: 26px; text-align: center; letter-spacing: 8px; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.pinpad button { font: inherit; font-size: 24px; font-weight: 700; padding: 12px 0; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.pinpad button:active { background: #ececf6; }
.admin-login { margin-top: 6px; } .admin-login summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.login { width: 380px; }

/* bins */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 16px; }
.loc { position: relative; display: grid; gap: 2px; background: #fff; border-radius: 10px; padding: 8px 10px 8px 28px; box-shadow: var(--shadow); border-top: 4px solid #d9d9e3; cursor: pointer; }
.loc .row-check { position: absolute; left: 8px; top: 10px; }
.loc b { font-family: ui-monospace, Menlo, Consolas, monospace; direction: ltr; text-align: right; }
.loc small { color: var(--muted); }
.loc.off { opacity: .45; }
.loc.kind-storage { border-top-color: var(--accent); } .loc.kind-bulk { border-top-color: #2563c9; }
.loc.kind-receiving { border-top-color: var(--warn); } .loc.kind-packing, .loc.kind-outbound { border-top-color: var(--ok); }
.loc.kind-returns { border-top-color: #c2410c; } .loc.kind-damaged { border-top-color: var(--err); } .loc.kind-supplies { border-top-color: #0f766e; }

/* purchase-order pipeline */
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 14px; }
.pipeline .inline { display: block; }
.stage { display: grid; gap: 2px; text-align: center; background: #fff; border-radius: 10px; padding: 8px; box-shadow: var(--shadow); color: var(--ink); border: 0; border-bottom: 3px solid #d9d9e3; font: inherit; width: 100%; cursor: pointer; }
.stage b { font-size: 22px; font-weight: 800; }
.stage span { font-size: 12.5px; color: var(--muted); }
.stage.on { border-bottom-color: var(--accent); background: #f2f0fd; text-decoration: none; }
.stage[disabled] { cursor: default; }
.pipeline.compact .stage { padding: 6px; }
.st-po-draft { border-bottom-color: #b5b5c2; } .st-po-ordered { border-bottom-color: #2563c9; } .st-po-in_production { border-bottom-color: #7c3aed; }
.st-po-shipped { border-bottom-color: var(--warn); } .st-po-arrived { border-bottom-color: #c2410c; } .st-po-partial { border-bottom-color: #d97706; }
.st-po-received { border-bottom-color: var(--ok); } .st-po-closed { border-bottom-color: #44445a; } .st-po-cancelled { border-bottom-color: var(--err); }

/* picking */
.current-bin { font-size: 20px; margin-top: 4px; } .current-bin b { font-size: 28px; color: var(--accent); }
.pick-table .bin-cell { font-weight: 800; font-size: 17px; white-space: nowrap; }
.pick-table tr.done td { color: #7a8a80; }

/* packaging */
.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 12px; }
.profile { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.profile.off { opacity: .5; }
.profile-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.profile ul { margin: 0 0 8px; padding-right: 18px; font-size: 13.5px; }
.pack-choice { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.pack-choice .lbl { color: var(--muted); font-size: 13px; }
.pack-choice .chip { cursor: pointer; font: inherit; font-size: 14px; }
.item .bin { display: inline-block; margin-top: 2px; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; font-size: 13px; background: #f2f0fd; color: var(--accent); padding: 0 6px; border-radius: 6px; direction: ltr; }
.mf-info { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 16px; }
.perms td { font-size: 13px; }
.scan-input { width: 100%; }
a.stat { color: var(--ink); text-decoration: none; }
a.stat:hover { box-shadow: 0 0 0 2px var(--line), var(--shadow); }
.kpis.card > div { display: grid; gap: 2px; align-content: start; }
.kpis.card > div span { color: var(--muted); font-size: 13px; }
.kpis.card > div b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
