/* ==========================================================================
   KargahBan (کارگاه‌بان) design system — tokens from kargahbaan.odt
   Primary #0B2D6B · Secondary #2563EB · Accent #F97316 · Background #F5F7FB
   Text #334155 · Success #16A34A · Radius 10–14px · Vazirmatn · RTL · mobile first
   ========================================================================== */
@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Bold.ttf) format('truetype'); font-weight: 700 900; font-display: swap; }

:root {
  --kb-primary: #0B2D6B;
  --kb-primary-700: #08224f;
  --kb-primary-50: #eaf0fa;
  --kb-secondary: #2563EB;
  --kb-accent: #F97316;
  --kb-accent-600: #ea580c;
  --kb-accent-50: #fff4ec;
  --kb-bg: #F5F7FB;
  --kb-surface: #ffffff;
  --kb-border: #E5E7EB;
  --kb-text: #334155;
  --kb-heading: #0f1f3d;
  --kb-muted: #64748b;
  --kb-success: #16A34A;
  --kb-warning: #F59E0B;
  --kb-danger: #DC2626;
  --kb-radius: 12px;
  --kb-radius-sm: 10px;
  --kb-radius-lg: 14px;
  --kb-shadow: 0 1px 2px rgba(15, 31, 61, .04), 0 4px 14px rgba(15, 31, 61, .05);
  --kb-shadow-lg: 0 10px 30px rgba(11, 45, 107, .12);

  /* Bootstrap 5 theme overrides */
  --bs-primary: var(--kb-primary);
  --bs-primary-rgb: 11, 45, 107;
  --bs-secondary-rgb: 100, 116, 139;
  --bs-success: var(--kb-success);
  --bs-success-rgb: 22, 163, 74;
  --bs-warning-rgb: 245, 158, 11;
  --bs-danger-rgb: 220, 38, 38;
  --bs-info-rgb: 37, 99, 235;
  --bs-body-font-family: Vazirmatn, Tahoma, sans-serif;
  --bs-body-color: var(--kb-text);
  --bs-body-bg: var(--kb-bg);
  --bs-border-color: var(--kb-border);
  --bs-border-radius: var(--kb-radius-sm);
  --bs-border-radius-lg: var(--kb-radius-lg);
  --bs-link-color: var(--kb-secondary);
  --bs-link-color-rgb: 37, 99, 235;
  --bs-link-hover-color: var(--kb-primary);
  --bs-link-hover-color-rgb: 11, 45, 107;
  --bs-focus-ring-color: rgba(37, 99, 235, .25);
}

html, body { font-family: Vazirmatn, Tahoma, sans-serif; background: var(--kb-bg); color: var(--kb-text); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--kb-heading); font-weight: 800; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
h1:focus { outline: none; }
.text-muted { color: var(--kb-muted) !important; }
.num, .ltr { direction: ltr; unicode-bidi: embed; }

/* buttons */
.btn { border-radius: var(--kb-radius-sm); font-weight: 600; }
.btn-primary { --bs-btn-bg: var(--kb-primary); --bs-btn-border-color: var(--kb-primary); --bs-btn-hover-bg: var(--kb-primary-700); --bs-btn-hover-border-color: var(--kb-primary-700); --bs-btn-active-bg: var(--kb-primary-700); --bs-btn-disabled-bg: var(--kb-primary); --bs-btn-disabled-border-color: var(--kb-primary); }
.btn-outline-primary { --bs-btn-color: var(--kb-primary); --bs-btn-border-color: var(--kb-primary); --bs-btn-hover-bg: var(--kb-primary); --bs-btn-hover-border-color: var(--kb-primary); --bs-btn-active-bg: var(--kb-primary); }
.btn-accent { --bs-btn-color: #fff; --bs-btn-bg: var(--kb-accent); --bs-btn-border-color: var(--kb-accent); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--kb-accent-600); --bs-btn-hover-border-color: var(--kb-accent-600); --bs-btn-active-bg: var(--kb-accent-600); --bs-btn-active-color: #fff; }
.btn-success { --bs-btn-bg: var(--kb-success); --bs-btn-border-color: var(--kb-success); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--kb-primary); }
.nav-link { color: var(--kb-primary); }
.badge-soft { background: var(--kb-primary-50); color: var(--kb-primary); font-weight: 600; }
.badge-accent { background: var(--kb-accent-50); color: var(--kb-accent-600); font-weight: 600; }

/* surfaces */
.card { border: 1px solid rgba(229, 231, 235, .6); border-radius: var(--kb-radius); box-shadow: var(--kb-shadow); background: var(--kb-surface); }
.table { --bs-table-bg: transparent; }
.table thead th { font-weight: 700; font-size: .82rem; color: var(--kb-muted); white-space: nowrap; border-bottom-color: var(--kb-border); }
.form-control, .form-select { border-radius: var(--kb-radius-sm); border-color: #d6dbe3; }
.form-control:focus, .form-select:focus { border-color: var(--kb-secondary); box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15); }
.form-check-input:checked { background-color: var(--kb-primary); border-color: var(--kb-primary); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--kb-heading); }
.alert { border-radius: var(--kb-radius-sm); border: 0; }
.alert-info { background: var(--kb-primary-50); color: var(--kb-primary); }
.alert-success { background: #e8f7ee; color: #14632f; }
.invalid { outline: 1px solid var(--kb-danger); }
.validation-message { color: var(--kb-danger); font-size: .85rem; }

/* logo */
.kb-logo { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none !important; }
.kb-mark { flex-shrink: 0; }
.kb-g, .kb-bar { fill: var(--kb-primary); }
.kb-in { fill: #fff; }
.kb-helmet { fill: var(--kb-accent); }
.kb-swoosh { stroke: var(--kb-accent); stroke-width: 6; stroke-linecap: round; }
.kb-shine { fill: #fff; opacity: .35; }
.kb-word { display: inline-flex; flex-direction: column; line-height: 1.15; }
.kb-name { font-weight: 900; font-size: 1.35rem; letter-spacing: -.01em; }
.kb-a { color: var(--kb-primary); }
.kb-b { color: var(--kb-accent); }
.kb-tag { font-size: .72rem; color: var(--kb-muted); font-weight: 400; }
.kb-logo-dark .kb-g, .kb-logo-dark .kb-bar { fill: #fff; }
.kb-logo-dark .kb-in { fill: var(--kb-primary); }
.kb-logo-dark .kb-a { color: #fff; }
.kb-logo-dark .kb-tag { color: #a9b8d6; }

/* public site */
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--kb-border); position: sticky; top: 0; z-index: 20; }
.site-header .nav-a { color: var(--kb-text); font-weight: 600; font-size: .92rem; }
.site-header .nav-a:hover { color: var(--kb-primary); text-decoration: none; }
.site-footer { background: var(--kb-primary); color: #c7d2e8; padding: 2.5rem 0 1.5rem; margin-top: 3rem; }
.site-footer a { color: #fff; }
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(37, 99, 235, .35), transparent), linear-gradient(135deg, #0B2D6B, #123c8a); color: #fff; padding: 4rem 0 3.5rem; }
.hero h1 { font-weight: 900; line-height: 1.6; color: #fff; }
.hero .lead { opacity: .9; }
.underline-accent { display: inline-block; border-bottom: 4px solid var(--kb-accent); padding-bottom: .15rem; }
.feature { height: 100%; }
.feature .icon { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; background: var(--kb-primary-50); }
.price { font-size: 2rem; font-weight: 900; color: var(--kb-primary); }
.auth-box { max-width: 460px; margin: 2.5rem auto; }

/* company / admin panel */
.panel { display: flex; min-height: 100vh; }
.sidebar { width: 252px; background: linear-gradient(180deg, #0B2D6B, #08224f); color: #c7d2e8; flex-shrink: 0; padding: 1rem .75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .co { color: #fff; font-weight: 700; padding: .25rem .5rem .9rem; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: .6rem; }
.sidebar .co small { display: block; color: #a9b8d6; font-weight: 400; margin-top: .4rem; }
.sidebar a { display: block; color: #c7d2e8; padding: .5rem .65rem; border-radius: var(--kb-radius-sm); font-size: .92rem; margin-bottom: 2px; }
.sidebar a:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.sidebar a.active { background: rgba(249, 115, 22, .14); color: #fff; box-shadow: inset -3px 0 0 var(--kb-accent); }
.sidebar .sep { font-size: .72rem; color: #7c8db5; margin: 1rem .65rem .35rem; font-weight: 700; }
.panel-main { flex-grow: 1; min-width: 0; padding: 1.25rem 1.5rem; }
.topbar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
@media (max-width: 991.98px) {
  .panel { display: block; }
  .panel-main { padding: 1rem; }
}
.stat { padding: 1rem 1.1rem; position: relative; overflow: hidden; }
.stat .v { font-size: 1.6rem; font-weight: 900; color: var(--kb-heading); }
.stat .l { color: var(--kb-muted); font-size: .85rem; }
.stat-blue { background: var(--kb-secondary); color: #fff; } .stat-green { background: var(--kb-success); color: #fff; } .stat-orange { background: var(--kb-accent); color: #fff; } .stat-navy { background: var(--kb-primary); color: #fff; }
.stat-blue .v, .stat-green .v, .stat-orange .v, .stat-navy .v, .stat-blue .l, .stat-green .l, .stat-orange .l, .stat-navy .l { color: #fff; }

/* field / Telegram Mini App */
.field { max-width: 720px; margin: 0 auto; padding: .75rem; }
.field-top { display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; background: var(--kb-primary); color: #fff; position: sticky; top: 0; z-index: 10; }
.field-top .btn-light { background: rgba(255, 255, 255, .12); border: 0; color: #fff; }
.field-top .text-muted { color: #a9b8d6 !important; }
.field .btn, .field .form-control, .field .form-select { min-height: 44px; }
.tile { display: block; padding: 1.1rem; border-radius: var(--kb-radius); background: #fff; box-shadow: var(--kb-shadow); color: inherit; border: 1px solid rgba(229, 231, 235, .6); }
.tile:hover { text-decoration: none; border-color: var(--kb-secondary); }
.tile .t { font-weight: 700; color: var(--kb-heading); }
.row-card { background: #fff; border-radius: var(--kb-radius-sm); padding: .6rem; margin-bottom: .5rem; border: 1px solid var(--kb-border); }
.sticky-actions { position: sticky; bottom: 0; background: rgba(245, 247, 251, .95); padding: .6rem 0; }
.preview { white-space: pre-wrap; background: #fff; border-radius: var(--kb-radius-sm); padding: .8rem; border: 1px solid var(--kb-border); font-size: .9rem; }

/* charts — blue / orange / green per brand */
.gauge { margin: 0 auto; text-align: center; }
.gauge svg { width: 100%; }
.gauge-track { fill: none; stroke: #e7ebf2; stroke-width: 16; stroke-linecap: round; }
.gauge-value { fill: none; stroke-width: 16; stroke-linecap: round; }
.gauge-target { stroke: var(--kb-accent); stroke-width: 3.5; }
.gauge-num { font-size: 26px; font-weight: 800; fill: var(--kb-heading); font-family: Vazirmatn, Tahoma; }
.gauge-sub { font-size: 11px; fill: var(--kb-muted); font-family: Vazirmatn, Tahoma; }
.gauge figcaption { font-weight: 700; margin-top: -.25rem; color: var(--kb-heading); }
.barchart .bar-row { display: grid; grid-template-columns: minmax(80px, 34%) 1fr 64px; gap: .5rem; align-items: center; margin-bottom: .35rem; font-size: .85rem; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: #eef2f7; border-radius: 99px; height: 10px; display: block; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 99px; float: right; }
.bar-val { color: var(--kb-muted); text-align: left; }
.columnchart { width: 100%; height: 150px; }
.columnchart .col-label { font-size: 2.6px; fill: var(--kb-muted); font-family: Vazirmatn, Tahoma; }
.linechart { width: 100%; }
.linechart .grid { stroke: #eef2f7; }
.linechart .axis { font-size: 8px; fill: var(--kb-muted); font-family: Vazirmatn, Tahoma; }
.linechart .today { stroke: #94a3b8; stroke-dasharray: 3 3; }
.linechart .planned { fill: none; stroke: var(--kb-accent); stroke-width: 2; stroke-dasharray: 5 3; }
.linechart .actual { fill: none; stroke: var(--kb-secondary); stroke-width: 2.2; }
.linechart .actual-dot { fill: var(--kb-secondary); }
.legend .lg { display: inline-block; width: 14px; height: 4px; border-radius: 2px; vertical-align: middle; }
.legend .lg.planned { background: var(--kb-accent); }
.legend .lg.actual { background: var(--kb-secondary); }

/* checklist */
.cl-table td, .cl-table th { vertical-align: middle; font-size: .85rem; }
.cl-table .form-check-input { width: 1.3em; height: 1.3em; }
.grade { display: inline-block; min-width: 26px; text-align: center; border-radius: 8px; padding: 1px 8px; font-weight: 700; }
.grade-A { background: #dcfce7; color: #15803d; } .grade-B { background: #dbeafe; color: #1d4ed8; }
.grade-C { background: #ffedd5; color: #c2410c; } .grade-D { background: #fee2e2; color: #b91c1c; }

#blazor-error-ui { background: #fff7ed; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, .2); display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; left: .75rem; top: .5rem; }
.blazor-error-boundary { background: var(--kb-danger); padding: 1rem; color: white; border-radius: var(--kb-radius-sm); }
.blazor-error-boundary::after { content: "خطایی در نمایش این بخش رخ داد."; }

/* ===================== landing page ===================== */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }
.lp-hero { padding: 4.5rem 0 4rem; }
.lp-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.lp-pill { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 99px; padding: .3rem .8rem; font-size: .82rem; }
.lp-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; opacity: .9; }
.lp-checks li { display: inline-flex; align-items: center; gap: .35rem; }
.lp-checks .kb-icon { color: var(--kb-accent); }
.lp-section { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.lp-band { background: #fff; border-block: 1px solid var(--kb-border); padding-top: 4rem !important; padding-bottom: 4rem !important; }
.lp-head { text-align: center; max-width: 640px; margin: 0 auto 2.25rem; }
.lp-head h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin-top: .4rem; }
.lp-head p { color: var(--kb-muted); margin: .5rem 0 0; }
.lp-kicker { display: inline-block; color: var(--kb-accent-600); background: var(--kb-accent-50); border-radius: 99px; padding: .15rem .75rem; font-size: .8rem; font-weight: 700; }
.lp-feature { padding: 1.4rem; transition: transform .15s, box-shadow .15s; }
.lp-feature:hover { transform: translateY(-3px); box-shadow: var(--kb-shadow-lg); }
.lp-feature h3, .lp-report h3 { font-size: 1rem; margin: .9rem 0 .4rem; }
.lp-feature p, .lp-report p { color: var(--kb-muted); font-size: .88rem; margin: 0; line-height: 1.9; }
.lp-ic { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; }
.lp-ic-sm { width: 36px; height: 36px; border-radius: 10px; }
.lp-ic-blue { background: #e8effe; color: var(--kb-secondary); }
.lp-ic-orange { background: var(--kb-accent-50); color: var(--kb-accent); }
.lp-ic-green { background: #e6f6ec; color: var(--kb-success); }
.lp-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.lp-list li { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; font-weight: 600; color: var(--kb-heading); }
.lp-list .kb-icon { color: var(--kb-secondary); flex-shrink: 0; }
.lp-progress { position: relative; height: 10px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.lp-progress span { position: absolute; top: 0; right: 0; height: 100%; border-radius: 99px; }
.lp-progress-plan { background: rgba(249, 115, 22, .35); }
.lp-progress-act { background: var(--kb-secondary); height: 6px !important; top: 2px !important; }
.lp-tg { background: #eef3fb; border-color: #dbe5f5; line-height: 1.9; margin: 0; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; counter-reset: s; }
.lp-steps li { position: relative; background: var(--kb-bg); border-radius: var(--kb-radius); padding: 1.25rem 1rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.lp-steps li span:last-child { color: var(--kb-muted); font-size: .86rem; line-height: 1.8; }
.lp-steps strong { color: var(--kb-heading); }
.lp-step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--kb-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: .4rem; }
.lp-steps li:last-child .lp-step-n { background: var(--kb-accent); }
.lp-price-main { border: 2px solid var(--kb-accent) !important; }
.lp-faq summary { font-weight: 700; color: var(--kb-heading); cursor: pointer; }
.lp-strip { background: linear-gradient(135deg, #0B2D6B, #123c8a); color: #fff; border-radius: var(--kb-radius-lg); padding: 1.5rem 1.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.lp-strip-title { font-size: 1.3rem; font-weight: 900; }
.lp-strip-items { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .92rem; }
.lp-strip-items span { display: inline-flex; align-items: center; gap: .4rem; }
.lp-strip-items .kb-icon { color: var(--kb-accent); }

/* dashboard illustration */
.lp-laptop { max-width: 560px; margin: 0 auto; filter: drop-shadow(0 25px 40px rgba(0, 0, 0, .3)); }
.lp-screen { display: flex; background: #fff; border: 10px solid #1e293b; border-bottom-width: 14px; border-radius: 14px 14px 4px 4px; overflow: hidden; color: var(--kb-text); font-size: 11px; }
.lp-base { height: 12px; background: linear-gradient(#cbd5e1, #94a3b8); border-radius: 0 0 14px 14px; margin: 0 -4%; }
@media (max-width: 575.98px) { .lp-base { margin: 0 -2%; } }
.lp-side { width: 27%; background: var(--kb-primary); color: #c7d2e8; padding: .6rem .45rem; display: flex; flex-direction: column; gap: .2rem; }
.lp-side .lp-side-logo { margin-bottom: .5rem; }
.lp-side .lp-side-logo .kb-name { font-size: .85rem; white-space: nowrap; }
.lp-side .lp-side-logo { gap: .3rem; }
.lp-side > span { display: flex; align-items: center; gap: .35rem; padding: .3rem .4rem; border-radius: 6px; }
.lp-side > span.on { background: rgba(249, 115, 22, .18); color: #fff; }
.lp-body { flex: 1; background: var(--kb-bg); padding: .6rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.lp-welcome { font-weight: 800; color: var(--kb-heading); }
.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.lp-stat { border-radius: 8px; padding: .4rem .5rem; display: flex; flex-direction: column; }
.lp-stat span { font-size: 9px; opacity: .9; }
.lp-stat b { font-size: 1.1rem; }
.lp-panels { display: grid; grid-template-columns: 1fr 1.4fr; gap: .4rem; }
.lp-panel { background: #fff; border-radius: 8px; padding: .45rem; box-shadow: var(--kb-shadow); display: flex; flex-direction: column; justify-content: space-between; }
.lp-panel svg { margin-top: .5rem; }
.lp-panel-t { font-weight: 700; font-size: 9.5px; color: var(--kb-heading); }

/* ===================== panels (company + admin) ===================== */
.sidebar { display: flex; flex-direction: column; }
.sidebar .co { position: relative; }
.sidebar a { display: flex; align-items: center; gap: .6rem; }
.sidebar a .kb-icon { opacity: .85; flex-shrink: 0; }
.sidebar a.active .kb-icon { color: var(--kb-accent); opacity: 1; }
.sidebar-close { position: absolute; left: 0; top: .2rem; background: none; border: 0; color: #c7d2e8; padding: .25rem; }
.sidebar-logout { margin-top: auto; padding: 1rem .25rem 0; }
.sidebar-logout .btn { color: #c7d2e8; border: 1px solid rgba(255, 255, 255, .15); display: inline-flex; justify-content: center; align-items: center; gap: .4rem; }
.sidebar-logout .btn:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar-backdrop { display: none; }
.panel-main { padding-top: 0; }

.kb-topbar { display: flex; align-items: center; gap: .75rem; background: #fff; margin: 0 -1.5rem 1.25rem; padding: .7rem 1.5rem; border-bottom: 1px solid var(--kb-border); position: sticky; top: 0; z-index: 15; }
.kb-topbar-menu { background: var(--kb-primary-50); color: var(--kb-primary); border: 0; border-radius: var(--kb-radius-sm); width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.kb-topbar-title { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.kb-topbar-welcome { font-weight: 800; color: var(--kb-heading); }
.kb-topbar-sub { font-size: .8rem; color: var(--kb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-user { display: inline-flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none !important; padding: .2rem .25rem .2rem .7rem; border-radius: 99px; }
.kb-user:hover { background: var(--kb-bg); }
.kb-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--kb-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: 0 0 0 3px var(--kb-accent-50); }
.kb-user-text { flex-direction: column; line-height: 1.3; }
.kb-user-text b { font-size: .88rem; color: var(--kb-heading); }
.kb-user-text small { font-size: .75rem; color: var(--kb-muted); }

.kb-stat { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1rem 1.1rem; border-radius: var(--kb-radius); color: #fff; box-shadow: var(--kb-shadow); height: 100%; text-decoration: none !important; }
.kb-stat .l { font-size: .82rem; opacity: .92; }
.kb-stat .v { font-size: 1.7rem; font-weight: 900; line-height: 1.3; }
.kb-stat .v small { font-size: .95rem; font-weight: 600; opacity: .8; }
.kb-stat .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .2); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kb-stat-blue { background: var(--kb-secondary); }
.kb-stat-green { background: var(--kb-success); }
.kb-stat-orange { background: var(--kb-accent); }
.kb-stat-navy { background: var(--kb-primary); }
.kb-stat-red { background: var(--kb-danger); }
.kb-stat-light { background: #fff; color: var(--kb-heading); border: 1px solid rgba(229, 231, 235, .6); }
.kb-stat-light .ic { background: var(--kb-primary-50); color: var(--kb-primary); }
.kb-onboard { border-right: 4px solid var(--kb-accent) !important; }

@media (max-width: 991.98px) {
  .panel { display: block; }
  .sidebar { display: flex; position: fixed; top: 0; bottom: 0; right: 0; width: 270px; height: 100vh; z-index: 1050; transform: translateX(100%); transition: transform .2s ease; box-shadow: var(--kb-shadow-lg); }
  .sidebar.open { transform: none; }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 31, 61, .45); z-index: 1040; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
  .kb-topbar { margin: 0 -1rem 1rem; padding: .6rem 1rem; }
}
ol { list-style-type: persian; }
.kb-ob-list { list-style: none; padding: 0; display: grid; gap: .35rem; }
.kb-ob-list li { display: flex; align-items: center; gap: .5rem; }
.kb-ob-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cbd5e1; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kb-ob-dot.done { background: var(--kb-success); border-color: var(--kb-success); color: #fff; }
