/* Низоми гузориш — Раёсати ВКД дар ш. Душанбе. Бе шрифтҳои берунӣ: Segoe UI / Arial ҳамаи ҳарфҳои тоҷикиро доранд. */
:root {
  --navy: #13294b; --navy-2: #1d3a66; --navy-3: #0e1f3a;
  --gold: #c9a44c; --gold-2: #a98534;
  --red: #b4232c; --red-bg: #fbe9ea;
  --green: #1f7a4d; --green-bg: #e6f4ec;
  --amber: #9a6a00; --amber-bg: #fff4d6;
  --ink: #1b2430; --muted: #5d6878; --line: #dde3ea; --line-2: #eef1f5;
  --bg: #f4f6f9; --card: #ffffff;
  --radius: 10px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .05);
  --font: "Segoe UI", "Segoe UI Variable Text", Arial, "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.5; color: var(--ink); background: var(--bg); }
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.25; color: var(--navy-3); }
h1 { font-size: 24px; font-weight: 650; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: Consolas, "Courier New", monospace; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }

/* ---------- каркас ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #e6ebf3; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand img { width: 40px; height: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.brand b { display: block; font-size: 13.5px; line-height: 1.25; color: #fff; }
.brand span { display: block; font-size: 11.5px; color: #b9c4d6; margin-top: 2px; }
.nav { padding: 12px 10px; flex: 1; overflow: auto; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: #d6deea; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.nav a.active { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav a svg { width: 20px; height: 20px; flex: none; opacity: .85; }
.nav .sep { margin: 10px 12px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8fa0bb; }
.nav .badge { margin-left: auto; }
.who { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.who b { display: block; color: #fff; }
.who .role { color: var(--gold); }
.who a { color: #b9c4d6; }
.main { min-width: 0; }
.topbar { display: none; }
.content { padding: 28px 36px 64px; max-width: none; position: relative; z-index: 1; }
.main { position: relative; }
/* парчами Тоҷикистон — хати болоӣ */
.flag-line { height: 10px; background: linear-gradient(to bottom, #cc0000 0 28.5%, #ffffff 28.5% 71.5%, #006600 71.5% 100%); position: relative; }
.flag-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold); opacity: .7; }
/* нишони ВКД — обпечати калон дар кунҷи рост */
.deco-emblem { position: fixed; left: calc(248px + (100vw - 248px) / 2); top: 50%; transform: translate(-50%, -50%); height: 72vh; width: auto; opacity: .07; pointer-events: none; z-index: 30; mix-blend-mode: multiply; }
.side .side-emblem { margin: auto 0 0; padding: 12px 18px 0; text-align: center; opacity: .22; }
.side .side-emblem img { width: 110px; height: auto; filter: grayscale(100%) brightness(1.6); }
.side .side-flag { height: 9px; margin: 0 18px 10px; border-radius: 2px; border: 1px solid rgba(255,255,255,.15); background: linear-gradient(to bottom, #cc0000 0 28.5%, #ffffff 28.5% 71.5%, #006600 71.5% 100%); }
.table td.tx { min-width: 300px; }
@media (max-width: 1699px) { .deco-emblem { height: 60vh; left: calc(248px + (100vw - 248px) / 2); } }
@media (min-width: 1700px) { .content { padding: 32px 56px 72px; } body { font-size: 16.5px; } .table { font-size: 15.5px; } .stat .n { font-size: 38px; } }
@media (max-width: 960px) { .deco-emblem { height: 40vh; left: 50%; opacity: .05; } }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin: 2px 0 0; }

/* ---------- корт ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 18px; }
.card.tight { padding: 0; overflow: hidden; }
.card h2 { display: flex; align-items: center; gap: 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2.split-32 { grid-template-columns: 3fr 2fr; align-items: start; }
.grid-2.split-23 { grid-template-columns: 2fr 3fr; align-items: start; }
.grid-2.top { align-items: start; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .n { font-size: 32px; font-weight: 700; color: var(--navy); line-height: 1; }
.stat .l { color: var(--muted); font-size: 13.5px; }

/* ---------- тугмаҳо ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2; white-space: nowrap; }
.btn:hover { background: var(--navy-2); text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn.secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.btn.secondary:hover { background: var(--line-2); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1b1300; }
.btn.gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn.danger { background: #fff; color: var(--red); border-color: var(--red); }
.btn.danger:hover { background: var(--red-bg); }
.btn.sm { padding: 6px 11px; font-size: 13.5px; }
.btn.lg { padding: 13px 22px; font-size: 16.5px; }
.btn.block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- формаҳо ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 5px; color: var(--navy-3); }
.field .help { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.field .err { font-size: 13px; color: var(--red); margin-top: 4px; }
.input { width: 100%; padding: 10px 12px; border: 1px solid #c7cfda; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
.input:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(29, 58, 102, .15); }
.input.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.input.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d6878' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px; }
.checkbox { width: 18px; height: 18px; vertical-align: middle; accent-color: var(--navy); }
.fields { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 16px; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 4px; margin-bottom: 18px; background: #fff; }
.fieldset > legend { padding: 0 8px; font-weight: 650; color: var(--navy); font-size: 14px; }
.form-errors { background: var(--red-bg); border: 1px solid #f1b9bd; color: var(--red); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { margin: 0; min-width: 160px; }
.filters .field.q { flex: 1; min-width: 240px; }

/* ---------- ҷадвал ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fafbfc; font-weight: 650; border-bottom: 1px solid var(--line); }
.table tr:hover td { background: #fafcff; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .cat { font-weight: 600; }
.table a.rowlink { font-weight: 600; }
.table.compact th, .table.compact td { padding: 7px 10px; font-size: 13.5px; }
.table tr.annulled td { color: var(--muted); text-decoration: line-through; }
.table tr.total td { font-weight: 700; background: #f7f8fb; border-top: 2px solid var(--line); }

/* ---------- нишонаҳо ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; line-height: 1.5; white-space: nowrap; }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.grey { background: var(--line-2); color: var(--muted); }
.badge.navy { background: #e4eaf4; color: var(--navy); }
.badge.gold { background: #f6ecd2; color: #6b5212; }

/* ---------- паёмҳо ---------- */
.msgs { margin-bottom: 18px; }
.msg { padding: 12px 16px; border-radius: 8px; margin-bottom: 8px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.msg.success { background: var(--green-bg); border-color: #b9dfc8; color: #155235; }
.msg.warning { background: var(--amber-bg); border-color: #efd99a; color: #5e4100; }
.msg.error { background: var(--red-bg); border-color: #f1b9bd; color: var(--red); }
.msg.info { background: #e4eaf4; border-color: #c3cfe3; color: var(--navy); }

/* ---------- саҳифаи вуруд ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 50% -10%, #223f6e 0%, var(--navy) 45%, var(--navy-3) 100%); }
.login { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35); padding: 36px 36px 28px; text-align: center; }
.login img { width: 92px; height: auto; margin-bottom: 10px; }
.login .org { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; }
.login h1 { font-size: 21px; margin: 6px 0 22px; }
.login .field { text-align: left; }
.login .foot { margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.login .foot a { color: var(--muted); text-decoration: underline; }
.login .gold-line { height: 3px; width: 64px; background: var(--gold); margin: 0 auto 18px; border-radius: 2px; }

/* ---------- ахборот (ҳуҷҷат дар экран) ---------- */
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 56px; font-family: "Times New Roman", Times, serif; font-size: 15.5px; line-height: 1.5; max-width: 980px; }
.doc .dsp { text-align: right; font-weight: 700; font-size: 13px; }
.doc .org { text-align: center; font-weight: 700; text-transform: uppercase; margin-top: 10px; }
.doc .title { text-align: center; font-weight: 700; font-size: 17px; margin-top: 4px; }
.doc .period { text-align: center; font-style: italic; margin-bottom: 22px; }
.doc .sec { text-align: center; font-weight: 700; text-transform: uppercase; margin: 22px 0 8px; letter-spacing: .02em; }
.doc .entry { margin-bottom: 14px; }
.doc .entry .hd { display: flex; gap: 28px; font-weight: 700; }
.doc .entry .hd i { font-weight: 400; margin-left: auto; }
.doc .entry .reg { font-weight: 700; }
.doc .entry .tx { text-indent: 1.25cm; text-align: justify; }
.doc .entry .tx a { color: inherit; }
.doc table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-family: var(--font); margin-top: 8px; }
.doc table th, .doc table td { border: 1px solid #9aa4b2; padding: 4px 6px; text-align: center; }
.doc table td:first-child { text-align: left; }
.doc table th { background: #f1f3f6; font-weight: 650; }
.doc table tr.total td { font-weight: 700; background: #f7f8fb; }
.doc .red, .doc table td.red, .doc table th.red { color: #e00000; }
.doc .blue, .doc table td.blue { color: #0070c0; }
.doc table td.red, .doc table td.blue { font-weight: 600; }
.doc .sign { margin-top: 28px; font-size: 12.5px; color: var(--muted); font-family: var(--font); }

/* ---------- гузориш ---------- */
.kv { display: grid; grid-template-columns: 220px 1fr; gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--muted); font-size: 13.5px; padding-top: 2px; }
.kv dd { margin: 0; }
.narrative { white-space: pre-wrap; background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; font-family: "Times New Roman", serif; font-size: 16px; line-height: 1.55; }
.preview { background: #fbf8ef; border: 1px dashed var(--gold); border-radius: 8px; padding: 14px 16px; font-family: "Times New Roman", serif; font-size: 15.5px; }
.preview .lbl { font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #7a5f17; margin-bottom: 6px; font-weight: 650; }
.lock-note { display: flex; gap: 10px; align-items: flex-start; background: #e4eaf4; border-radius: 8px; padding: 12px 14px; color: var(--navy); font-size: 14px; }
.lock-note svg { flex: none; width: 20px; height: 20px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.bar { position: relative; height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; min-width: 120px; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy-2); border-radius: 5px; }
.bar.gold > i { background: var(--gold); }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding: 8px 0 0; border-bottom: 1px solid var(--line); }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.chart .col b { font-size: 11px; color: var(--navy); margin-bottom: 2px; }
.chart .col i { width: 100%; background: var(--navy-2); border-radius: 3px 3px 0 0; min-height: 2px; }
.chart .col i.gold { background: var(--gold); }
.chart .col span { font-size: 10px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 13.5px; }
.pager span.cur { background: var(--navy); color: #fff; border-color: var(--navy); }
.code { font-family: Consolas, monospace; font-size: 28px; letter-spacing: .25em; background: #fbf8ef; border: 2px dashed var(--gold); padding: 14px 20px; border-radius: 10px; display: inline-block; color: var(--navy-3); }
.empty { padding: 36px; text-align: center; color: var(--muted); }
mark { background: #ffe58a; color: inherit; padding: 0 2px; border-radius: 3px; }
details.more summary { cursor: pointer; color: var(--navy-2); font-weight: 600; }

/* ---------- хонанда: муҳофизат ---------- */
body.reader .protected, body.reader .doc, body.reader .narrative, body.reader .table { user-select: none; -webkit-user-select: none; }
.watermark { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; }
.watermark span { position: absolute; transform: rotate(-28deg); font-size: 15px; color: rgba(19, 41, 75, .08); white-space: nowrap; font-weight: 700; letter-spacing: .04em; }
@media print { body.reader * { display: none !important; } body.reader::after { content: "Чоп кардан манъ аст"; display: block; padding: 40px; font-size: 24px; } }

/* ---------- мобилӣ ---------- */
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .2s; z-index: 50; height: 100vh; }
  .side.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .topbar { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; padding: 10px 14px; position: sticky; top: 0; z-index: 40; }
  .topbar img { width: 30px; }
  .topbar b { font-size: 14px; }
  .topbar button { margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; padding: 6px 10px; font: inherit; }
  .content { padding: 16px 16px 40px; }
  .grid-2, .grid-3, .grid-2.split-32, .grid-2.split-23 { grid-template-columns: 1fr; }
  div[style*="position:sticky"] { position: static !important; }
  .c2, .c3, .c4, .c6, .c8 { grid-column: span 12; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  .doc { padding: 20px 16px; font-size: 15px; }
  .card { padding: 16px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .page-head .btn { width: 100%; justify-content: center; }
  h1 { font-size: 21px; }
}
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 45; }
.overlay.open { display: block; }

/* ---------- саҳифаи вуруд: ду панел, услуби миллӣ ---------- */
.login-body { background: var(--navy-3); min-height: 100vh; }
.login-flag { height: 12px; background: linear-gradient(to bottom, #cc0000 0 28.5%, #ffffff 28.5% 71.5%, #006600 71.5% 100%); }
.login-split { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; }
.login-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 40px;
  background: radial-gradient(900px 600px at 30% 20%, #24467a 0%, var(--navy) 50%, var(--navy-3) 100%); color: #fff; text-align: center; }
.hero-pattern { position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23ffffff' stroke-width='1.2'><path d='M60 6l54 54-54 54L6 60z'/><path d='M60 26l34 34-34 34-34-34z'/><circle cx='60' cy='60' r='9'/><path d='M6 60h18M96 60h18M60 6v18M60 96v18'/></svg>"); background-size: 120px 120px; }
.hero-emblem { position: relative; width: min(28vh, 260px); height: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.5)); }
.login .db-logo { width: 84px; height: 84px; margin-bottom: 12px; }
.hero-text { position: relative; margin-top: 28px; }
.hero-country { font-size: 15px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero-ministry { font-size: clamp(16px, 1.5vw, 20px); font-weight: 600; margin-top: 10px; color: #c9d4e6; }
.hero-org { font-size: clamp(24px, 2.8vw, 38px); font-weight: 700; color: #fff; margin-top: 6px; line-height: 1.2; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #b9c7dc; }
.hero-city { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero-clock { font-size: 22px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.hero-stripe { width: 120px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); background: linear-gradient(to bottom, #cc0000 0 28.5%, #ffffff 28.5% 71.5%, #006600 71.5% 100%); }
.login-side { display: grid; place-items: center; padding: 32px 24px; background: var(--bg); }
.login-side .login { box-shadow: 0 16px 50px rgba(16, 24, 40, .14); }
@media (max-width: 960px) {
  .login-split { grid-template-columns: 1fr; min-height: auto; }
  .login-hero { padding: 28px 20px 26px; }
  .hero-emblem { width: 110px; }
  .hero-text { margin-top: 14px; }
  .hero-ministry { font-size: 14px; }
  .hero-org { font-size: 22px; }
  .hero-foot { position: static; margin-top: 18px; }
  .hero-clock { font-size: 18px; }
  .login-side { padding: 20px 16px 40px; }
}

/* Омор: ҷадвалҳои тоза */
.card-title { padding: 16px 22px 4px; }
.stat .n small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 8px; }
.stat .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.table.stats th { font-size: 11px; letter-spacing: .04em; }
.table.stats td.num, .table.stats th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; width: 1%; padding-left: 14px; }
.table.stats td.num.muted { color: var(--muted); }
.table.stats.matrix td.num, .table.stats.matrix th.num { padding-left: 10px; }
.table.stats tr.total td { background: #f1f3f6; font-weight: 700; }

/* ---------- навбати электронӣ ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card-title { padding: 16px 22px 4px; }
.stat .n small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 8px; }
.stat .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.table.stats td.num, .table.stats th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; width: 1%; padding-left: 14px; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.cur-card { border-top: 6px solid var(--line); }
.cur-card.called { border-top-color: var(--gold); }
.cur-card.serving { border-top-color: var(--navy); }
.cur-top { display: flex; justify-content: space-between; align-items: baseline; }
.cur-num { font-size: 96px; font-weight: 800; line-height: 1; color: var(--navy); letter-spacing: .02em; margin: 10px 0 6px; }
.cur-num.muted { color: var(--line-2); }
.cur-name { font-size: 26px; font-weight: 600; }
.cur-phone { color: var(--muted); margin-top: 4px; }
.cur-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.cur-actions form { margin: 0; }
.btn.xl { font-size: 22px; padding: 18px 30px; }
.btn.danger { background: #b4232c; color: #fff; }
.btn[disabled] { opacity: .45; cursor: default; }
.reject { margin-top: 18px; } .reject summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.pick { text-align: center; }
.pick-num { font-size: 64px; font-weight: 800; color: var(--navy); line-height: 1; }
.pick-label { margin: 6px 0 14px; color: var(--muted); }
.pick.busy { opacity: .55; }
.wincard { border-top: 6px solid var(--line-2); }
.wincard.free { border-top-color: #2e8b57; } .wincard.called { border-top-color: var(--gold); } .wincard.serving { border-top-color: var(--navy); } .wincard.closed { opacity: .6; }
.win-num { font-size: 48px; font-weight: 800; color: var(--navy); line-height: 1; margin: 10px 0 6px; }
.big-code { font-size: 20px; } .big-code.gold { color: var(--gold); }
.select.sm { padding: 6px 10px; font-size: 13px; }
.cur-num.next { color: var(--muted); }
.cur-card.free { border-top-color: var(--line-2); }
