/* =====================================================================
   DOS дизайны систем v3 (TASK_UI_2026-10-19 §1, загвар docs/design/mockups_2026-10-19/DesignSystem.dc.html).
   ds.css-ийн ДАРАА ачаалагдана, токены НЭР хэвээр — зөвхөн утга. UI_THEME=v2 үед ачаалагдахгүй (буцаах унтраалга).
   Бүтээгдэхүүний саармаг өнгө (аль ч байгууллагад), IBM Plex Sans (өөрөө байршуулсан, OFL — fonts/OFL.txt).
   Энэ файлаас бусад газар hex өнгө бичихгүй — зөвхөн токен.
   ===================================================================== */
/* Inter (UI стандарт v3, Сайнзаяа 11/11 #265) — өөрөө байршуулсан, OFL (fonts/Inter-OFL.txt); 400, 600, 700 */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
    src: url(../fonts/inter-cyrillic-ext-400-normal.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
    src: url(../fonts/inter-cyrillic-ext-600-normal.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
    src: url(../fonts/inter-cyrillic-ext-700-normal.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
    src: url(../fonts/inter-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
    src: url(../fonts/inter-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
    src: url(../fonts/inter-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
    src: url(../fonts/inter-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
    src: url(../fonts/inter-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
    src: url(../fonts/inter-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
    src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
    src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
    src: url(../fonts/inter-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    /* DOS UI стандарт v3 (01_MASTER DATA\DOS_UI_стандарт	okens.json — Сайнзаяа 11/11 #265 баталсан). Нэр хэвээр — зөвхөн утга.
       Бичвэр бүр ≥ 4.5:1: стандартын success-text #1F9D63 нь success-bg дээр 3.2:1 тул #15803D, pending-text #6B7086 → #5F6479. */
    --ds-accent: #4F46E5; --ds-accent-hover: #4338CA; --ds-accent-soft: #EEF0FE; --ds-accent-disabled: #C7C9F5;
    --ds-bg: #F5F6FA; --ds-surface: #FFFFFF; --ds-subtle: #F4F5F7; --ds-row-hover: #EAF0F6;
    --ds-border: #E6E8F0; --ds-border-row: #EEF0F4; --ds-border-strong: #C7CBD3;
    --ds-text: #12142B; --ds-text-2: #6B7086; --ds-text-3: #6B7086; --ds-text-disabled: #9A9EB5;
    --ds-bad: #C0293D; --ds-bad-bg: #FDEAEC; --ds-bad-num: #C0293D;
    --ds-warn: #8A6508; --ds-warn-bg: #FFF6E5; --ds-warn-banner: #FFF9EE; --ds-warn-line: #F2D9A6;
    --ds-ok: #15803D; --ds-ok-bg: #E6F7EF; --ds-ok-line: #1F9D63;
    --ds-info: #2563D9; --ds-info-bg: #E8F0FE;
    --ds-review: #5B4B8A; --ds-review-bg: #F1EEF8;
    --ds-mute: #5F6479; --ds-mute-bg: #F1F2F6;
    --ds-urgent: #C0293D;
    /* бичвэр, зай, булан, сүүдэр */
    --ds-font: "Inter", "Segoe UI", system-ui, Roboto, Arial, -apple-system, sans-serif;
    --ds-fs-title: 19px; --ds-fs-section: 15px; --ds-fs-body: 14px; --ds-fs-table: 13px; --ds-fs-head: 11.5px; --ds-fs-note: 12px; --ds-fs-kpi: 24px;
    --ds-radius: 10px; --ds-radius-sm: 6px; --ds-radius-chip: 999px; --ds-radius-phone: 14px;
    --ds-space-1: 4px; --ds-space-2: 8px; --ds-space-3: 12px; --ds-space-4: 16px; --ds-space-5: 20px; --ds-space-6: 24px; --ds-space-8: 32px;
    --ds-shadow: 0 2px 8px rgba(18, 20, 50, .06), 0 1px 2px rgba(18, 20, 50, .04);
    --ds-shadow-pop: 0 12px 32px rgba(18, 20, 50, .14);
    /* хуучин нэрс */
    --navy-950: #080B24; --navy-900: #0D1338; --navy-800: #121A4A; --navy-700: #1B2560; --navy-600: #283374; --navy-active: #283374;
    /* удирдлагын самбар: график (брэндийн өнгө — бичвэрт биш), хар хөх толгой */
    --ds-chart-1: #6366F1; --ds-chart-2: #22D3EE; --ds-chart-3: #9333EA; --ds-chart-4: #C7C9F5; --ds-chart-5: #4F46E5;
    --ds-neg-soft: #E8A39B; --ds-warn-bar: #B7791F;
    --ds-hero-1: #0B1026; --ds-hero-neg: #FFB4AB; --ds-on-hero: #FFFFFF; --ds-hero-text: #DCE3F2; --ds-hero-gold: #F2C879;
    --ds-hero-ok: #7EE0A8; --ds-hero-lock: #FFD9D4;
    /* самбарын бараан толгойн тунгалаг өнгө (#260 inline_color, 11/12) */
    --ds-glass-08: rgba(255,255,255,0.08); --ds-glass-10: rgba(255,255,255,0.10); --ds-glass-12: rgba(255,255,255,0.12); --ds-glass-14: rgba(255,255,255,0.14); --ds-glass-18: rgba(255,255,255,0.18); --ds-glass-20: rgba(255,255,255,0.2); --ds-glass-28: rgba(255,255,255,0.28); --ds-glass-35: rgba(255,255,255,0.35); --ds-glass-70: rgba(255,255,255,0.7); --ds-glass-92: rgba(255,255,255,0.92); --ds-hero-neg-16: rgba(255,180,171,0.16); --ds-hero-neg-28: rgba(255,180,171,0.28); --ds-hero-neg-35: rgba(255,180,171,0.35); --ds-hero-ok-30: rgba(126,224,168,0.30); --ds-hero-shade-22: rgba(5,12,30,0.22);
}
body { font-size: var(--ds-fs-body); font-variant-numeric: tabular-nums; }
.page-title { font-size: var(--ds-fs-title); line-height: 26px; font-weight: 700; letter-spacing: -.01em; }
.page-sub, .ds-head .sub { font-size: 13px; }
.section-heading, .ds-card-h { font-size: var(--ds-fs-section); font-weight: 600; }
table.data { font-size: var(--ds-fs-table); }
/* хүснэгтийн толгой brand-ink, 11.5px ТОМ ҮСЭГ (стандарт §3, §5) */
table.data thead th { background: var(--brand-ink, #0B1026); color: #fff; font-size: var(--ds-fs-head); font-weight: 600; text-transform: uppercase;
    letter-spacing: .03em; border-color: var(--brand-ink, #0B1026); }
table.data thead th a, table.data thead th a.sort { color: #fff; }
table.data thead th a.sort.on { color: var(--brand-cyan, #22D3EE); }
table.data tbody tr:hover > td { background: var(--ds-row-hover); }
.kpi .v, .kpi-value { font-size: var(--ds-fs-kpi); font-weight: 700; }
table.data tbody td { border-color: var(--ds-border-row); }
.ds-muted, .sub, .field-hint { font-size: max(var(--ds-fs-note), 12px); }
.ds-card, .form-card, .kpi { border-radius: var(--ds-radius); box-shadow: var(--ds-shadow); }
.pill, .chip, .status-badge { border-radius: var(--ds-radius-chip); font-size: var(--fs-12, 12px); font-weight: 600; }
/* төлвийн тэмдэг — гараар бичсэн өнгийг (app.css .status-badge.NEW … APPLIED) 5 төлвийн токенд нэгтгэв (#265) */
.status-badge.DELIVERED, .status-badge.CLOSED, .status-badge.APPLIED { background: var(--ds-ok-bg); color: var(--ds-ok); }
.status-badge.APPROVED_CEO { background: var(--ds-info-bg); color: var(--ds-info); }
.status-badge.NEW { background: var(--ds-mute-bg); color: var(--ds-mute); }
.status-badge.PARTIALLY_DELIVERED, .status-badge.PENDING_CEO { background: var(--ds-warn-bg); color: var(--ds-warn); }
.status-badge.REJECTED_CEO { background: var(--ds-bad-bg); color: var(--ds-bad); }
.pill.review, .chip.review { background: var(--ds-review-bg); color: var(--ds-review); }
.btn-primary:disabled, .btn-primary[disabled] { background: var(--ds-accent-disabled); border-color: var(--ds-accent-disabled); }
.btn-danger-soft { background: var(--ds-bad-bg); color: var(--ds-bad); border: 1px solid transparent; }
.ds-banner.warn { background: var(--ds-warn-banner); border-color: var(--ds-warn-line); color: var(--ds-warn); }
td.num .neg, .num.neg, .neg { color: var(--ds-bad-num); }
@media (max-width: 640px) {
    :root { --ds-fs-head: 13px; }   /* картгүй (no-cards) хүснэгтийн толгой утсанд ≥ 13px */
    body { font-size: 15px; }
    .page-title { font-size: 19px; }
    /* утсан дээр бичиг ≥ 13px (хэмжигч small_font, #260), оролт 16px */
    .ds-muted, .sub, .field-hint, .pill, .chip, .status-badge, .ds-count, .nav-badge, .kpi .k, .dim, small, label, .label, .mono, code,
    table.data td::before, .brand-sub, .brand-org { font-size: max(13px, 1em) !important; }
    .s, .k, .hint, .dz-hint, .mw-mod, .lbl, .up, .clear-link, .cb-empty, legend, .sub2, .code,
    [style*="font-size:10"], [style*="font-size: 10"], [style*="font-size:11"], [style*="font-size: 11"],
    [style*="font-size:12"], [style*="font-size: 12"] { font-size: 13px !important; }
    input, select, textarea { font-size: 16px; }
    .pill, .chip, .status-badge { white-space: normal; max-width: 100%; text-align: left; overflow-wrap: anywhere; }
    table.data:not(.no-cards):not(.cf-week-table) tr { border-radius: var(--ds-radius-phone); }
}
/* Нэвтрэх хуудасны харанхуй горим — ижил зарчмаар */
@media (prefers-color-scheme: dark) {
    body.auth { --ds-surface: #10151F; --ds-subtle: #161C28; --ds-text: #E8EBF1; --ds-text-2: #AEB5C2; --ds-text-3: #7F8796;
        --ds-border: #262E3D; --ds-border-strong: #333C4D; --ds-accent: #5B7FD6; --ds-accent-hover: #7493E0; --ds-accent-soft: #1A2647;
        --ds-ok: #7FD6A3; --ds-ok-bg: #12291D; --ds-bad: #F4A49B; --ds-bad-bg: #2E1614; --ds-warn: #F5C27A; --ds-warn-bg: #2D2212; }
}

/* §2 тодосгол (WCAG AA ≥ 4.5:1): мэдэгдлийн тоолуур — цагаан тоо улаан дээр 5.5:1 */
.bell-count { background: var(--ds-bad); }
