/* ДЕМО ЗАГВАР — ЖИШИГ ЗУРАГТ ТУЛГАСАН: тусдаа хуудсууд (admin.html, habea-admin.html, employee.html, шалгалт, даатгал, нэвтрэх …).
   base.css + <хуудас>.css-ийн ДАРАА. Хувьсагчийг жишгийн өнгөөр дахин тодорхойлж, нэг өнгийн товгор дүрс (tabler) хэрэглэнэ. */
@import url(/kpi/vendor/tabler-icons.min.css);
@font-face { font-family: 'Nunito'; src: url(/kpi/vendor/fonts/Nunito-var.ttf) format('truetype'); font-weight: 200 1000; font-display: swap; }
:root {
  --c-ink: #1F3340; --c-ink2: #33495A; --c-mute: #566B7A;
  --c-navy1: #2E465E; --c-navy2: #23374F; --c-navy3: #182A3E;
  --c-teal1: #4E8F9A; --c-teal2: #2F6E79; --c-teal3: #24575F;
  --c-line: rgba(255, 255, 255, .45);
  --c-glass: linear-gradient(160deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .14) 100%);
  --c-shadow: 0 14px 26px -14px rgba(28, 46, 64, .55), 0 2px 4px rgba(28, 46, 64, .10);
  --c-inset: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -2px 6px rgba(40, 62, 82, .10);
  --c-bg:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='.20'/%3E%3C/svg%3E"),
    radial-gradient(1200px 800px at 20% 0%, #BCCCD5 0%, rgba(188, 204, 213, 0) 60%),
    linear-gradient(165deg, #B4C5CE 0%, #A2B4C0 50%, #93A7B5 100%);
}
html body, html body button, html body input, html body select, html body textarea { font-family: 'Nunito', 'Manrope', -apple-system, 'Segoe UI', sans-serif !important; }
html body h1, html body h2, html body h3 { font-family: 'Nunito', sans-serif !important; font-weight: 800 !important; }
html body .ti, html body [class^="ti-"], html body [class*=" ti-"] { font-family: 'tabler-icons' !important; }
/* товч — жишгийн бараан ногоовтор товгор «эм» */
html body .btn-primary, html body button.btn-primary, html body .login-btn, html body .btn-start-exam, html body .btn-submit, html body .btn-result-home,
html body .nf-btn.play, html body .tab-btn.active, html body .tab.active, html body .vm-tab.on, html body .sidebar .nav-item.active ~ x {
  background: linear-gradient(180deg, #4E8F9A 0%, #2F6E79 55%, #24575F 100%) !important; color: #EEF7F8 !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 5px rgba(0, 0, 0, .25), 0 10px 16px -8px rgba(20, 50, 56, .7) !important;
}
html body .btn-secondary, html body .btn-outline, html body .btn-ghost, html body .nf-btn.more {
  background: linear-gradient(180deg, #DCE6EB 0%, #BFD0D8 100%) !important; color: #24394A !important; border: 0 !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .9), inset 0 -3px 5px rgba(50, 80, 100, .25), 0 8px 14px -8px rgba(28, 46, 64, .55) !important;
}
html body .nf-btn.more svg { stroke: #24394A !important; }
/* бараан хөх хавтан (толгой, хажуугийн цэс) — жишгийн цэс шиг товгор ирмэг */
html body .admin-header, html body .sidebar, html body .head {
  background: linear-gradient(180deg, #2E465E 0%, #23374F 55%, #1C2F44 100%) !important;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .10), inset -2px -3px 6px rgba(0, 0, 0, .35), 0 22px 40px -18px rgba(14, 26, 40, .7) !important;
}
html body .sidebar .nav-item.active {
  background: linear-gradient(180deg, #D7E6EC 0%, #B9CED7 60%, #A6BEC9 100%) !important; color: #1F3340 !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .95), inset 0 -3px 5px rgba(50, 80, 100, .35), 0 10px 16px -6px rgba(0, 0, 0, .55) !important;
}
/* 3D аватар — жишгийн шилэн хүрээтэй дугуй */
html body .admin-logo-icon, html body .admin-logo-icon-inner, html body .sb-icon, html body .nav-brand-logo, html body .hdr-logo, html body .brand-mark, html body .brand-mark-inner,
html body .brand-logo-inner, html body .login-box-logo, html body .logo {
  background: url(/kpi/clay3d/worker_ref.png) 50% 6% / 150% no-repeat, radial-gradient(circle at 40% 30%, #C9D6DE 0%, #9DB0BE 60%, #7F95A6 100%) !important;
  box-shadow: 0 0 0 4px #7E93A5, 0 0 0 5px rgba(255, 255, 255, .35), inset 0 3px 6px rgba(255, 255, 255, .55), inset 0 -6px 12px rgba(30, 50, 70, .35), 0 10px 18px -8px rgba(0, 0, 0, .55) !important;
}
/* хавтан дахь нэг өнгийн товгор дүрс (өнгөлөг эможигийн оронд) */
html body .stat-card::after, html body .kpi-icon {
  background-image: none !important; font-family: 'tabler-icons' !important; font-style: normal; display: grid !important; place-items: center;
  color: #F4F8FA !important; font-size: 26px !important; line-height: 1; background-color: rgba(255, 255, 255, .28) !important; width: 52px !important; height: 52px !important; border-radius: 16px !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 2px 2px rgba(30, 50, 70, .45), 0 4px 6px rgba(30, 50, 70, .25);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .75), inset 0 -3px 6px rgba(30, 50, 70, .22), 0 8px 12px -6px rgba(28, 46, 64, .5) !important;
}
html body .stat-card::after { content: "\efc5"; }
html body .stat-card:nth-child(4n+2)::after { content: "\ea67"; }
html body .stat-card:nth-child(4n+3)::after { content: "\ea06"; }
html body .stat-card:nth-child(4n+4)::after { content: "\eaad"; }
html body .stat-card { padding-top: 80px !important; }
html body .kpi:nth-child(6n+1) .kpi-icon::before { content: "\ea6d"; }
html body .kpi:nth-child(6n+2) .kpi-icon::before { content: "\ea67"; }
html body .kpi:nth-child(6n+3) .kpi-icon::before { content: "\ea06"; }
html body .kpi:nth-child(6n+4) .kpi-icon::before { content: "\ea59"; }
html body .kpi:nth-child(6n+5) .kpi-icon::before { content: "\eb04"; }
html body .kpi:nth-child(6n+6) .kpi-icon::before { content: "\eb45"; }
html body .kpi .kpi-icon { font-size: 0 !important; }
html body .kpi .kpi-icon::before { font-family: 'tabler-icons'; font-size: 26px; }
html body .kpi { padding-top: 78px !important; }
/* KPI хавтангийн өнгө — жишгийн 4 өнгөөр давтана */
html body .kpi:nth-child(4n+1) { background: linear-gradient(165deg, #8EC2C2, #74ABAD) !important; }
html body .kpi:nth-child(4n+2) { background: linear-gradient(165deg, rgba(222, 232, 238, .62), rgba(178, 196, 207, .5)) !important; }
html body .kpi:nth-child(4n+3) { background: linear-gradient(165deg, #D3E6EE, #B5D0DC) !important; }
html body .kpi:nth-child(4n+4) { background: linear-gradient(165deg, #9093BF, #767AA6) !important; }
html body .stat-card:nth-child(4n+1) { background: linear-gradient(165deg, #8EC2C2, #74ABAD) !important; }
html body .stat-card:nth-child(4n+2) { background: linear-gradient(165deg, rgba(222, 232, 238, .62), rgba(178, 196, 207, .5)) !important; }
html body .stat-card:nth-child(4n+3) { background: linear-gradient(165deg, #D3E6EE, #B5D0DC) !important; }
html body .stat-card:nth-child(4n+4) { background: linear-gradient(165deg, #9093BF, #767AA6) !important; }
html body .kpi-val, html body .stat-value { color: #1F3340 !important; -webkit-text-fill-color: #1F3340 !important; }
/* гарчиг — сийлсэн мэт */
html body .topbar-title { color: #E8EFF3 !important; text-shadow: 0 1px 0 rgba(255, 255, 255, .55), 0 -1px 0 rgba(60, 80, 96, .25), 0 3px 6px rgba(40, 60, 80, .35) !important; font-size: 28px !important; }
/* Даатгал — улаан чимэгийн оронд жишгийн ногоовтор */
html body .serif-italic { color: #2F6E79 !important; -webkit-text-fill-color: #2F6E79 !important; }
/* видео: зураггүй зургийн орлох — жишгийн өнгөнд */
html body .nf-fallback { background: radial-gradient(120% 90% at 20% 10%, #8EC2C2 0%, #4F7B8C 55%, #2F4A5E 100%) !important; filter: hue-rotate(calc((var(--h) - 190) * .25deg)); }
html body .nf-hero { background: linear-gradient(180deg, #5B7383 0%, #435A6B 100%) !important; }
html body .nf-hshade { background: linear-gradient(80deg, rgba(67, 90, 107, .97) 0%, rgba(67, 90, 107, .85) 34%, rgba(67, 90, 107, .1) 70%, rgba(67, 90, 107, 0) 85%) !important; }

/* нэвтрэх карт — цагаанаар дарагдаж байсныг шилэн болгоно */
html body #loginScreen .login-card, html body #loginScreen .login-card-inner, html body .login-box {
  background: linear-gradient(160deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .16)) !important; border: 1.5px solid rgba(255, 255, 255, .5) !important;
  box-shadow: 0 24px 46px -22px rgba(26, 44, 62, .6), inset 0 2px 0 rgba(255, 255, 255, .5) !important; backdrop-filter: blur(14px); }
html body #loginScreen .login-card-inner { box-shadow: none !important; border: 0 !important; background: transparent !important; }

/* ═══ «ШАВРААР СИЙЛСЭН» — тусдаа хуудсууд (товч товгор, оролт/ховил хонхор, хавтан налуу ирмэгтэй) ═══ */
:root {
  --clay-convex: inset 0 2px 1px rgba(255, 255, 255, .55), inset 0 -3px 5px rgba(20, 40, 60, .30), inset 3px 0 4px rgba(255, 255, 255, .14),
                 inset -3px 0 5px rgba(20, 40, 60, .16), 0 8px 14px -6px rgba(20, 40, 60, .45), 0 2px 3px rgba(20, 40, 60, .16), 0 0 0 1.5px rgba(20, 40, 60, .16);
  --clay-concave: inset 0 3px 6px rgba(20, 40, 60, .32), inset 0 1px 2px rgba(20, 40, 60, .28), inset 0 -2px 2px rgba(255, 255, 255, .35), 0 1px 0 rgba(255, 255, 255, .42);
}
html body .btn, html body .btn-primary, html body .btn-secondary, html body .btn-outline, html body .btn-ghost, html body .login-btn, html body .nf-btn,
html body .tab-btn.active, html body .tab.active, html body .vm-tab.on, html body .btn-start-exam, html body .btn-submit, html body .btn-result-home,
html body .action-btn, html body .btn-xs, html body .modal-close, html body .view-toggle button.active, html body .btn-blue, html body .btn-green, html body .btn-danger {
  box-shadow: var(--clay-convex) !important;
}
html body .btn:active, html body .tab-btn:active { box-shadow: var(--clay-concave) !important; transform: translateY(1px); }
html body .tab-nav-inner, html body .tabs, html body .vm-tabs, html body .view-toggle { background: rgba(40, 64, 90, .10) !important; box-shadow: var(--clay-concave) !important; border: 0 !important; }
html body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]), html body select, html body textarea,
html body .nf-search, html body .search-box { background-color: rgba(255, 255, 255, .34) !important; border: 0 !important; box-shadow: var(--clay-concave) !important; }
html body .stat-card, html body .kpi {
  box-shadow: inset 0 3px 2px rgba(255, 255, 255, .5), inset 0 -5px 8px rgba(20, 40, 60, .24), inset 4px 0 6px rgba(255, 255, 255, .14), inset -4px 0 7px rgba(20, 40, 60, .14),
              0 14px 22px -12px rgba(20, 40, 60, .55), 0 3px 5px rgba(20, 40, 60, .14), 0 0 0 1.5px rgba(20, 40, 60, .16) !important;
}
html body .stat-card::after, html body .kpi-icon {
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, .75), inset 0 -4px 6px rgba(20, 40, 60, .30), inset 3px 0 4px rgba(255, 255, 255, .22), inset -3px 0 5px rgba(20, 40, 60, .18), 0 8px 12px -6px rgba(20, 40, 60, .5) !important;
}
html body .video-bar, html body .prog-bar, html body .nf-hprog, html body .vm-mini { box-shadow: var(--clay-concave) !important; }
html body .sidebar .nav-item.active { box-shadow: inset 0 2px 1px rgba(255, 255, 255, .95), inset 0 -4px 6px rgba(50, 80, 100, .38), inset 3px 0 4px rgba(255, 255, 255, .3), inset -3px 0 5px rgba(50, 80, 100, .2), 0 10px 16px -6px rgba(0, 0, 0, .55) !important; }
