/* Butun ilova uchun «dashboard uslubi» qatlami (style.css dan keyin yuklanadi).
   style.css dagi tokenlar shu yerda qayta belgilanadi, qattiq yozilgan oq/kulrang ranglar tokenlarga o'tkaziladi,
   komponentlar (menyu, kartalar, jadvallar, tugmalar, filtrlar, modal) dashboard ko'rinishiga keltiriladi.
   Qorong'i tema: html[data-theme="dark"] (sidebar'dagi tugma, dashboard tugmasi bilan bir xil). */

:root {
  --bg: #f5f5f8;
  --bg-grad: radial-gradient(1200px 520px at 60% -160px, #ece6fe 0%, rgba(236, 230, 254, 0) 70%);
  --card: #ffffff;
  --surface-2: #faf9fe;
  --hover: #f4f3fa;
  --grid-line: #ececf3;
  --border: #e7e6ef;
  --border-strong: #d9d8e4;
  --text: #10101a;
  --text-2: #4a4a5c;
  --muted: #85859a;
  --muted-2: #b4b4c4;
  --primary: #7c3aed;
  --primary-600: #6d28d9;
  --primary-50: #f6f2fe;
  --primary-100: #ede6fd;
  --primary-200: #ddd2fb;
  --green: #15803d; --green-bg: #dcfce7;
  --amber: #b45309; --amber-bg: #fef3c7;
  --red: #dc2626; --red-bg: #fee2e2;
  --sky: #0369a1; --sky-bg: #e0f2fe;
  --row-active: #ecfdf3; --row-active-h: #e2f8ea;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(42, 33, 100, .06);
  --shadow-lg: 0 18px 50px rgba(20, 16, 60, .18);
  --tip-bg: #11111c; --tip-text: #f5f5fa;
  --sev-red: #ef4444; --sev-yellow: #f59e0b; --sev-green: #22c55e; --teal: #14b8a6;
  --b1: #86b6ef; --b2: #3987e5; --b3: #1c5cab; --b0: #d7d6e2;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #070b18;
  --bg-grad: radial-gradient(1400px 620px at 60% -200px, #1d2a62 0%, rgba(29, 42, 98, 0) 70%);
  --card: #0e1531;
  --surface-2: #121a3b;
  --hover: rgba(255, 255, 255, .05);
  --grid-line: #1d2648;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .15);
  --text: #eef0fb;
  --text-2: #b9bfdc;
  --muted: #8189ad;
  --muted-2: #56608c;
  --primary: #8b5cf6;
  --primary-600: #b69cfc;
  --primary-50: rgba(139, 92, 246, .1);
  --primary-100: rgba(139, 92, 246, .18);
  --primary-200: rgba(139, 92, 246, .32);
  --green: #4ade80; --green-bg: rgba(34, 197, 94, .14);
  --amber: #fbbf24; --amber-bg: rgba(245, 158, 11, .15);
  --red: #f87171; --red-bg: rgba(239, 68, 68, .15);
  --sky: #7dd3fc; --sky-bg: rgba(56, 189, 248, .14);
  --row-active: rgba(34, 197, 94, .08); --row-active-h: rgba(34, 197, 94, .13);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  --tip-bg: #f3f4fb; --tip-text: #11111c;
  --b1: #256abf; --b2: #3987e5; --b3: #86b6ef; --b0: #232c55;
  color-scheme: dark;
}

body { background: var(--bg-grad), var(--bg); background-attachment: fixed; color: var(--text); }
::selection { background: var(--primary-200); }
a { color: var(--primary); }
html[data-theme="dark"] a { color: #b69cfc; }

/* ---------- Qobiq: ikonka paneli va menyu ---------- */
.rail, .sidebar { background: color-mix(in srgb, var(--card) 86%, transparent); backdrop-filter: blur(14px); border-right: 1px solid var(--border); }
.rail .logo { border-color: var(--primary); color: var(--primary); }
.rail .r-item:hover, .sb-item:hover, .sb-leaf:hover, .sb-search, .icon-btn:hover, .btn.ghost:hover, .menu-pop .mi:hover { background: var(--hover); }
.rail .r-item.active { background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 6px 16px rgba(109, 40, 217, .35); }
.sb-title { font-size: 14px; letter-spacing: -.01em; }
.sb-item, .sb-leaf { transition: background .15s, color .15s; }
.sb-item.active { background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 8px 18px rgba(109, 40, 217, .32); }
.sb-leaf.active { background: var(--primary-100); color: var(--primary-600); box-shadow: inset 0 0 0 1px var(--primary-200); }
.kbd { background: var(--card); border-color: var(--border); }
.avatar { background: var(--primary-100); color: var(--primary-600); }
.sb-theme { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--hover); border: 1px solid var(--border); margin: 0 12px 10px; align-self: flex-start; }
.sb-theme button { width: 30px; height: 24px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.sb-theme button.on { background: var(--primary); color: #fff; }

/* ---------- Sahifa sarlavhasi ---------- */
.main { min-width: 0; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 26px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.page-head > h1::before, .page-head > div:first-child > h1:first-child::before {
  content: "ИҲМА ЭРП · «Рисклар» модули"; display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--primary); }
.page-head .sub { font-size: 12px; }
.crumbs + .page-head > h1::before, .crumbs + .page-head > div:first-child > h1:first-child::before { display: none; }
.note { display: block; line-height: 1.5; }
.note > svg:first-child { vertical-align: -2px; margin-right: 4px; }
.crumbs { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.crumbs a { color: var(--primary); }

/* ---------- Tugmalar ---------- */
.btn { height: 34px; padding: 0 15px; border-radius: 999px; border-color: var(--border); background: var(--card); color: var(--text); box-shadow: var(--shadow); transition: border-color .15s, transform .15s, background .15s; }
.btn:hover { background: var(--card); border-color: var(--border-strong); }
.btn.primary { background: linear-gradient(135deg, #8b5cf6, #6d28d9); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(109, 40, 217, .3); }
.btn.primary:hover { background: linear-gradient(135deg, #7c3aed, #5b21b6); transform: translateY(-1px); }
.btn.primary[disabled] { background: var(--primary-200); box-shadow: none; transform: none; }
.btn.outline-primary { border-color: var(--primary-200); color: var(--primary-600); background: var(--primary-50); }
.btn.ghost { box-shadow: none; }
.btn.sm { height: 28px; padding: 0 11px; }
.icon-btn { border-radius: 999px; border-color: var(--border); background: var(--card); color: var(--text-2); box-shadow: var(--shadow); }
.icon-btn.ghost { box-shadow: none; }
.link-btn { color: var(--text-2); }

/* ---------- Kartalar ---------- */
.card { background: var(--card); border-color: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.card-title { font-size: 14.5px; letter-spacing: -.01em; }
.section-title { font-size: 15px; letter-spacing: -.01em; }

/* ---------- Formalar ---------- */
.field label, .field .lbl { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.field input[type=text], .field input[type=date], .field input[type=number], .field select, .field textarea, .input {
  height: 38px; border-radius: 12px; border-color: var(--border); background-color: var(--surface-2); color: var(--text); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.field input:hover, .field select:hover, .input:hover { border-color: var(--border-strong); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { background-color: var(--card); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-100); }
.field input:disabled, .field select:disabled, .field textarea:disabled { background-color: var(--hover); }
.input-icon > svg { top: 11px; }
.input-icon .clear { top: 10px; }
html[data-theme="dark"] .field input[type=date] { color-scheme: dark; }
.pager select, .bands-editor input, .menu-pop select { background-color: var(--surface-2); color: var(--text); border-color: var(--border); border-radius: 10px; }

/* ---------- Belgilar ---------- */
.pill { height: 23px; padding: 0 9px; border-radius: 999px; }
.pill.status-detected { background: var(--primary-100); color: var(--primary-600); border-color: var(--primary-200); }
.pill.status-not_detected, .pill.outline { background: transparent; border-color: var(--border-strong); color: var(--text-2); }
.pill.status-closed, .pill.gray, .pill.archived { background: var(--hover); color: var(--muted); }
.pill.created, .pill.modified { background: var(--sky-bg); color: var(--sky); }
.tag { background: var(--hover); border-color: var(--border); color: var(--text-2); border-radius: 999px; }
.chip { height: 32px; padding: 0 14px; background: var(--card); border-color: var(--border); color: var(--text); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.chip:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.chip.active { background: linear-gradient(135deg, #8b5cf6, #6d28d9); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(109, 40, 217, .3); }
.chip.active .n { color: rgba(255, 255, 255, .8); }
.chip.active .ring { border-color: #fff; }

/* ---------- KPI ---------- */
.kpis { gap: 14px; }
.kpi { position: relative; background: var(--card); border-color: var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; min-height: 108px; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(closest-side, var(--primary-50), transparent); pointer-events: none; }
.kpi .k-label { font-size: 12px; font-weight: 600; }
.kpi .k-value { font-size: 30px; font-weight: 750; letter-spacing: -.02em; line-height: 1.05; margin-top: 10px; font-variant-numeric: tabular-nums; }
.kpi .k-sub { font-size: 11.5px; margin-top: 6px; }
.kpi.clickable:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.kpi.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100), var(--shadow); background: linear-gradient(180deg, var(--primary-50), var(--card) 70%); }

/* ---------- Sozlama qatori ---------- */
.cfg-strip { background: var(--card); border-color: var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 11px 16px; }
.cfg-strip.warn { background: var(--amber-bg); border-color: color-mix(in srgb, var(--amber) 35%, transparent); color: var(--amber); }

/* ---------- Jadvallar ---------- */
table.grid th { background: var(--surface-2); color: var(--muted); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-bottom-color: var(--border); padding: 11px 12px; }
table.grid th.sorted { color: var(--primary-600); }
table.grid td { border-bottom-color: var(--grid-line); padding: 12px; }
table.grid tbody tr { transition: background .12s; }
table.grid tr.clickable:hover td { background: var(--hover); }
table.grid tr.active-row td { background: var(--row-active); }
table.grid tr.active-row:hover td { background: var(--row-active-h); }
table.grid tr.total td { background: var(--surface-2); }
.card.flush { border-radius: var(--radius); }
.th-group, .th-sub-first, .th-sub-last { border-color: var(--border) !important; }
td .name { letter-spacing: -.005em; }

/* ---------- Sahifalash, tablar ---------- */
.pager { border-top-color: var(--border); }
.pager .pg { border-radius: 999px; }
.pager .pg.active { background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 4px 10px rgba(109, 40, 217, .3); }
.tabs { border-bottom-color: var(--border); gap: 6px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); box-shadow: var(--shadow); width: max-content; max-width: 100%; }
.tab { padding: 7px 14px; margin: 0; border: 0; border-radius: 999px; }
.tab .n { background: var(--hover); }
.tab.active { color: #fff; background: linear-gradient(135deg, #8b5cf6, #6d28d9); border-bottom-color: transparent; }
.tab.active .n { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- Tafsilot sahifasi ---------- */
dl.kv dt, dl.kv dd { border-top-color: var(--grid-line); }
dl.kv dt { color: var(--muted); }
.values-table { border-color: var(--border); border-radius: 14px; }
.values-table th { background: var(--surface-2); text-transform: uppercase; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; }
.values-table td { border-bottom-color: var(--grid-line); }
.values-table td.changed { background: var(--amber-bg); }
.big-metric { font-size: 40px; font-weight: 750; letter-spacing: -.02em; }
.tl-item::before { background: var(--border); }
.tl-ic { box-shadow: 0 0 0 4px var(--card); }
.tl-ic.user { background: var(--hover); }
.tech { background: var(--surface-2); border-color: var(--border-strong); color: var(--text-2); border-radius: 14px; }
.tech code, .note code { background: var(--hover); color: var(--text); }
.demo-card { border-color: color-mix(in srgb, var(--amber) 50%, transparent); background: color-mix(in srgb, var(--amber-bg) 45%, var(--card)); }

/* ---------- Tashkilot sahifasi ---------- */
.org-ic { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; box-shadow: 0 8px 18px rgba(109, 40, 217, .3); }
.org-name { font-size: 18px; letter-spacing: -.01em; }
.type-cards { gap: 14px; }
.type-card { background: var(--card); border-color: var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; transition: border-color .15s, transform .15s; }
.type-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.type-card .tc-name { font-size: 14px; }
.type-card .tc-foot { border-top-color: var(--grid-line); }

/* ---------- Ishga tushirish oynasi ---------- */
.run-summary { border-color: var(--border); border-radius: 16px; background: var(--surface-2); }
.run-summary > div + div { border-left-color: var(--border); }
.rs-value { font-size: 26px; letter-spacing: -.02em; }
.progress { background: var(--grid-line); }
.progress.dark i { background: var(--text); }

/* ---------- Modal, menyu, xabar ---------- */
.modal-backdrop { background: rgba(10, 8, 30, .5); backdrop-filter: blur(4px); }
.modal { background: var(--card); color: var(--text); border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.modal-head h3 { font-size: 18px; letter-spacing: -.01em; }
.menu-pop { background: var(--card); border-color: var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); }
.menu-pop .sep { background: var(--border); }
.toast { background: var(--tip-bg); color: var(--tip-text); border-radius: 14px; }
.bands-editor { border-color: var(--border); border-radius: 14px; }
.bands-editor .row { border-bottom-color: var(--grid-line); }
.bands-editor .row.head { background: var(--surface-2); text-transform: uppercase; font-weight: 700; letter-spacing: .05em; font-size: 10.5px; }
.mock-pill { background: color-mix(in srgb, var(--amber-bg) 80%, var(--card)); border-color: color-mix(in srgb, var(--amber) 60%, transparent); color: var(--amber); backdrop-filter: blur(10px); }
.mock-pill a, .mock-pill .checkbox { color: var(--amber); }
.empty { color: var(--muted); }

/* ---------- Grafiklar (risk kartasi) ---------- */
.chart { display: block; width: 100%; height: auto; }
.chart text { fill: var(--muted); }
.chart .ch-grid { stroke: var(--grid-line); stroke-width: 1; }
.chart .ch-thr { stroke: var(--text); stroke-width: 1.4; stroke-dasharray: 6 5; opacity: .6; }
.chart .ch-area { fill: url(#ch-area); }
.chart .ch-line { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 4px 8px rgba(124, 58, 237, .3)); }
.chart .ch-pt { fill: var(--card); stroke-width: 3; }
.gauge-wrap { display: flex; justify-content: center; margin: 10px 0 -6px; }
.gauge { width: 100%; max-width: 280px; height: auto; overflow: visible; }
.gauge .g-arc { fill: none; stroke-width: 18; }
.gauge .g-tk { font-size: 11px; fill: var(--muted); font-weight: 600; }
.gauge .g-needle { stroke: var(--text); stroke-width: 4; stroke-linecap: round; }
.gauge .g-hub { fill: var(--text); stroke: var(--card); stroke-width: 3; }

/* ---------- Umumiy vizual bloklar (app.js: sahifa xulosasi) ---------- */
.v-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.v-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; min-width: 0; position: relative; overflow: hidden; }
.v-card h4 { margin: 0 0 4px; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.v-card .v-sub { font-size: 11.5px; color: var(--muted); margin-bottom: 12px; }
.v-big { font-size: 34px; font-weight: 750; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.v-big small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.v-seg { display: flex; gap: 2px; height: 30px; border-radius: 8px; overflow: hidden; margin: 10px 0 8px; }
.v-seg i { display: flex; align-items: center; padding: 0 9px; min-width: 3px; font-style: normal; font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; transition: filter .15s; cursor: default; }
.v-seg i:hover { filter: brightness(1.08); }
.v-seg i.red { background: var(--sev-red); } .v-seg i.yellow { background: var(--sev-yellow); } .v-seg i.green { background: var(--sev-green); }
.v-seg i.det { background: var(--primary); } .v-seg i.nd { background: var(--teal); } .v-seg i.cl { background: #a1a1aa; } .v-seg i.none { background: var(--b0); color: var(--text-2); }
.v-seg i.b1 { background: var(--b1); color: #0b0b0b; } .v-seg i.b2 { background: var(--b2); } .v-seg i.b3 { background: var(--b3); }
html[data-theme="dark"] .v-seg i.b1 { color: #fff; } html[data-theme="dark"] .v-seg i.b3 { color: #0b0b0b; }
.v-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--muted); }
.v-leg span { display: inline-flex; align-items: center; gap: 6px; }
.v-leg b { color: var(--text); }
.v-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.v-leg i.red { background: var(--sev-red); } .v-leg i.yellow { background: var(--sev-yellow); } .v-leg i.green { background: var(--sev-green); }
.v-leg i.det { background: var(--primary); } .v-leg i.nd { background: var(--teal); } .v-leg i.cl { background: #a1a1aa; } .v-leg i.none { background: var(--b0); }
.v-leg i.b1 { background: var(--b1); } .v-leg i.b2 { background: var(--b2); } .v-leg i.b3 { background: var(--b3); }
.v-insight { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--primary-50); color: var(--text-2); font-size: 12.5px; }
.v-insight b { color: var(--text); }
.v-insight svg { color: var(--primary); flex: none; margin-top: 1px; }
.v-hist { display: flex; align-items: flex-end; gap: 3px; height: 132px; margin-top: 14px; }
.v-hist .hb { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.v-hist .hb i { display: block; width: 100%; border-radius: 4px 4px 0 0; min-height: 2px; transition: filter .15s; }
.v-hist .hb:hover i { filter: brightness(1.1); }
.v-hist .hb i.ok { background: var(--b0); } .v-hist .hb i.green { background: var(--sev-green); } .v-hist .hb i.yellow { background: var(--sev-yellow); } .v-hist .hb i.red { background: var(--sev-red); }
.v-hist .hb b { font-size: 10.5px; color: var(--text-2); margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.v-hist-ax { display: flex; gap: 3px; margin-top: 4px; }
.v-hist-ax span { flex: 1; text-align: center; font-size: 10px; color: var(--muted); white-space: nowrap; }
.v-ring { width: 64px; height: 64px; flex: none; }
.v-ring .trk { fill: none; stroke: var(--grid-line); stroke-width: 7; }
.v-ring .val { fill: none; stroke-width: 7; stroke-linecap: round; }
.v-ring text { font-size: 13px; font-weight: 750; fill: var(--text); }
.v-row { display: flex; align-items: center; gap: 14px; }
.v-bullet { position: relative; height: 6px; border-radius: 999px; background: var(--grid-line); margin-top: 6px; min-width: 60px; }
.v-bullet i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.v-bullet i.red { background: var(--sev-red); } .v-bullet i.yellow { background: var(--sev-yellow); } .v-bullet i.green { background: var(--sev-green); } .v-bullet i.none { background: var(--b2); }
.v-bullet em { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--text); opacity: .55; }
.sev-accent td:first-child { box-shadow: inset 3px 0 0 var(--acc, transparent); }
.sev-accent.red td:first-child { --acc: var(--sev-red); } .sev-accent.yellow td:first-child { --acc: var(--sev-yellow); } .sev-accent.green td:first-child { --acc: var(--sev-green); }
.v-hist { position: relative; }
.v-thr { position: absolute; top: -2px; bottom: 0; width: 0; border-left: 2px dashed var(--text); opacity: .55; pointer-events: none; }
.v-thr span { position: absolute; top: -2px; left: 6px; font-size: 10.5px; font-weight: 700; font-style: normal; white-space: nowrap; color: var(--text); }
.v-types { display: flex; flex-direction: column; gap: 9px; }
.v-type { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr) 34px; align-items: center; gap: 10px; font-size: 12px; cursor: pointer; padding: 2px 4px; margin: 0 -4px; border-radius: 8px; }
.v-type:hover { background: var(--hover); }
.v-type .nm { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-type .tr { display: flex; gap: 2px; height: 12px; }
.v-type .tr i { display: block; height: 100%; min-width: 3px; }
.v-type .tr i:first-child { border-radius: 4px 0 0 4px; } .v-type .tr i:last-child { border-radius: 0 4px 4px 0; } .v-type .tr i:only-child { border-radius: 4px; }
.v-type .tr i.red { background: var(--sev-red); } .v-type .tr i.yellow { background: var(--sev-yellow); } .v-type .tr i.green { background: var(--sev-green); } .v-type .tr i.none { background: var(--b0); }
.v-type b { text-align: right; font-variant-numeric: tabular-nums; }
td.num .v-bullet { margin-top: 6px; }
.v-scale { display: flex; gap: 2px; height: 6px; width: 160px; margin-top: 7px; border-radius: 999px; overflow: hidden; }
.v-scale i { display: block; height: 100%; }
tr.dim .v-scale { opacity: .45; }
.type-card .v-bullet { margin: 8px 0 2px; }
.type-card.sev-top { border-top: 3px solid var(--acc, var(--border)); }
.type-card.sev-top.red { --acc: var(--sev-red); } .type-card.sev-top.yellow { --acc: var(--sev-yellow); } .type-card.sev-top.green { --acc: var(--sev-green); } .type-card.sev-top.ok { --acc: var(--teal); }
/* Jurnal: oxirgi tekshiruvlar ustunlari */
.v-runs { display: flex; align-items: flex-end; gap: 6px; height: 150px; margin-top: 16px; padding-top: 14px; }
.v-runs .rb { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; cursor: pointer; }
.v-runs .col { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: var(--b1); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: filter .15s, transform .15s; }
.v-runs .col i { display: block; width: 100%; background: var(--primary); }
.v-runs .rb:hover .col { filter: brightness(1.08); transform: translateY(-2px); }
.v-runs .lb { font-size: 10px; color: var(--muted); margin-top: 5px; white-space: nowrap; }
.v-runs .fail { position: absolute; top: -16px; color: var(--sev-red); }
.v-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.v-stats div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 9px 10px; }
.v-stats b { display: block; font-size: 19px; font-weight: 750; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.v-stats span { font-size: 11px; color: var(--muted); }
.v-tipbox { position: fixed; z-index: 80; pointer-events: none; padding: 9px 12px; border-radius: 12px; background: var(--tip-bg); color: var(--tip-text); font-size: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); opacity: 0; transition: opacity .12s; max-width: 280px; }
.v-tipbox.on { opacity: 1; }
.v-tipbox b { display: block; margin-bottom: 3px; }
@media (max-width: 1280px) { .v-hero { grid-template-columns: minmax(0, 1fr); } }
