@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

/* ── colors_and_type.css ── */
/* =============================================================================
   Buhta MFO — Colors & Type
   Single source of truth for brand colors, fonts, and semantic typography vars.
   Lifted directly from the existing codebase (mfo_buhta_3 base template) and
   normalized so every section uses the SAME tokens.
   ============================================================================= */

/* ---------- Font faces -------------------------------------------------- */
/* Brand display: ALS Hauss (woff hosted in /fonts).
   The codebase itself only loads Medium via @font-face but uses Inter and
   Manrope from Google Fonts everywhere. We expose all three weights. */
/* @font-face ALSHauss 400 normal: declared by tokens.json (fonts/ALSHauss-Book.woff) */
/* @font-face ALSHauss 500 normal: declared by tokens.json (fonts/ALSHauss-Medium.woff) */
/* @font-face ALSHauss 700 normal: declared by tokens.json (fonts/ALSHauss-Bold.woff) */

/* UI runtime fonts — used by every Django template via base.html */


:root {  /* @kind other */
}

/* =============================================================================
   SEMANTIC TYPOGRAPHY
   Apply these to plain tags so unstyled HTML inherits the brand. The codebase
   reaches for ad-hoc font-size/font-weight inline very often; pulling those
   into named classes is the main hygiene win.
   ============================================================================= */
body {
    font-family: var(--font-ui);
    font-size: var(--t-base);
    line-height: var(--lh-base);
    color: var(--fg1);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, .h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--t-2xl);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
    color: var(--fg1);
    margin: 0 0 var(--space-3);
}
h2, .h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--t-xl);
    line-height: var(--lh-tight);
    letter-spacing: -0.015em;
    color: var(--fg1);
    margin: 0 0 var(--space-2);
}
h3, .h3 {
    font-weight: 600;
    font-size: var(--t-lg);
    line-height: var(--lh-snug);
    letter-spacing: -0.01em;
    color: var(--fg1);
    margin: 0 0 var(--space-2);
}
h4, .h4 {
    font-weight: 500;
    font-size: var(--t-md);
    line-height: var(--lh-snug);
    color: var(--fg1);
    margin: 0 0 var(--space-1);
}

p { margin: 0 0 var(--space-3); color: var(--fg2); }

small, .small { font-size: var(--t-sm); color: var(--fg2); }

/* "Eyebrow" / micro caps used for section dividers, KPI labels, table headers */
.eyebrow, .label-caps {
    font-size: var(--t-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fg3);
}

/* Money / numeric values — always Manrope + tabular nums */
.amount, .num {
    font-family: var(--font-number);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: var(--fg1);
    white-space: nowrap;
}
.amount-xl { font-size: var(--t-3xl); }
.amount-lg { font-size: var(--t-xl); }
.amount-md { font-size: var(--t-md); }
.amount-sm { font-size: var(--t-base); }

a {
    color: var(--buhta-blue);
    text-decoration: none;
    transition: color var(--t-base-anim) var(--ease);
}
a:hover { color: var(--buhta-blue-hover); }

code, kbd, samp, pre {
    font-family: var(--font-mono);
    font-size: 0.85em;
}

/* Focusable selection — Buhta blue tint */
::selection { background: rgba(15, 85, 237, 0.18); color: var(--buhta-navy); }

/* ── ui_kits/manager-cabinet/styles.css ── */
/* ui_kits/manager-cabinet/styles.css
   Local recreation of the canonical `<style>` block from base.html.
   Tokens come from ../../colors_and_type.css; this layer wires components. */

/* ── colors_and_type.css ── */

/* ── ui_kits/manager-cabinet/styles.css ── */


* { box-sizing: border-box; }
html, body, #root { height: 100%; }
body { margin: 0; background: var(--bg); font-family: var(--font-ui); color: var(--fg1); -webkit-font-smoothing: antialiased; }

/* ============================================================
   LAYOUT — Sidebar + main column + topbar
   ============================================================ */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    background: var(--buhta-sidebar);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 1040;
}
.sidebar-brand {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand img { height: 20px; filter: brightness(0) invert(1); display: block; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
.sidebar-section-title {
    font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: rgba(255,255,255,0.35);
    padding: 16px 24px 6px;
}
.sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 24px; color: rgba(255,255,255,0.6);
    text-decoration: none; font-size: 0.875rem; font-weight: 500;
    transition: all 0.15s; border-left: 3px solid transparent; cursor: pointer;
    background: transparent; border-top: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; font-family: inherit;
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.sidebar-link.active {
    color: #fff;
    background: rgba(15, 85, 237, 0.15);
    border-left-color: var(--buhta-yellow);
}
.sidebar-link i { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-user {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; gap: 10px;
}
.sidebar-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; color: rgba(255,255,255,0.7);
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 0.82rem; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-role { font-size: 0.68rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.04em; }
.sidebar-user .bi-chevron-up { color: rgba(255,255,255,0.3); font-size: 0.75rem; }

.main-wrapper { flex: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
    height: var(--topbar-height);
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px;
    position: sticky; top: 0; z-index: 1030;
}
.topbar-title { font-weight: 600; font-size: 0.95rem; color: var(--fg1); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.main-content { flex: 1; padding: 24px 28px 40px; }
.footer-buhta { background: #fff; border-top: 1px solid var(--border); padding: 16px 28px; font-size: 0.8rem; color: var(--fg3); display: flex; justify-content: space-between; align-items: center; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1.1; color: var(--fg1); margin: 0 0 6px; }
.page-head p { color: var(--fg3); font-size: 0.875rem; margin: 0; }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar { display: flex; gap: 12px; align-items: stretch; margin-bottom: 20px; flex-wrap: wrap; }
.filter-bar .inp-wrap { position: relative; flex: 1; min-width: 240px; }
.filter-bar .inp-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--fg-muted); }
.filter-bar .inp-wrap input { padding-left: 36px; }

/* ============================================================
   INPUTS
   ============================================================ */
.inp, select.inp {
    width: 100%; box-sizing: border-box;
    border: 1px solid var(--border); border-radius: var(--r-md);
    padding: 8px 12px; font: inherit; font-size: 0.875rem;
    color: var(--fg1); background: #fff; outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: var(--font-ui);
}
.inp:hover { border-color: var(--gray-400); }
.inp:focus { border-color: var(--buhta-blue); box-shadow: var(--ring-blue); }
.inp::placeholder { color: var(--fg-muted); }
select.inp {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237A8B9E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.inp-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--fg2); margin-bottom: 6px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    font: inherit; font-family: var(--font-ui);
    font-weight: 500; font-size: 0.875rem;
    border-radius: var(--r-md); padding: 8px 18px;
    border: 1px solid transparent; cursor: pointer;
    transition: all 0.15s;
    display: inline-flex; align-items: center; gap: 6px;
    line-height: 1.25; white-space: nowrap;
}
.btn-primary { background: var(--buhta-blue); color: #fff; }
.btn-primary:hover { background: var(--buhta-blue-hover); }
.btn-primary:focus { outline: none; box-shadow: var(--ring-blue); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--fg2); }
.btn-outline:hover { border-color: var(--gray-400); color: var(--fg1); background: var(--gray-50); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { font-size: 0.8rem; padding: 6px 12px; border-radius: var(--r-sm); }
.btn-lg { font-size: 1rem; padding: 12px 24px; border-radius: var(--r-lg); }
.btn-ghost { background: transparent; color: var(--fg2); padding: 6px 10px; }
.btn-ghost:hover { background: var(--gray-100); color: var(--fg1); }
.btn-icon { width: 30px; height: 30px; padding: 0; border-radius: var(--r-sm); background: transparent; color: var(--fg3); border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn-icon:hover { background: var(--gray-100); color: var(--fg1); }
.btn-icon.info:hover { background: var(--buhta-blue-light); color: var(--buhta-blue); }
.btn-icon.edit { color: var(--success-fg); }
.btn-icon.edit:hover { background: var(--success-bg); }
.btn-icon.delete { color: var(--danger); }
.btn-icon.delete:hover { background: var(--danger-bg); }
.btn-icon.play { color: var(--buhta-blue); }
.btn-icon.play:hover { background: var(--buhta-blue-light); }

/* ============================================================
   CARD
   ============================================================ */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.card-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-soft);
    display: flex; justify-content: space-between; align-items: center;
}
.card-head h6 { margin: 0; font-weight: 500; font-size: 0.92rem; color: var(--fg1); display: flex; align-items: center; gap: 8px; }
.card-head .meta { font-size: 0.75rem; color: var(--fg3); }
.card-body { padding: 16px 18px; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    font-size: 0.72rem; font-weight: 600;
    padding: 4px 10px; border-radius: var(--r-sm);
    display: inline-flex; align-items: center; gap: 4px;
    white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success-fg); }
.badge-warning { background: var(--warning-bg); color: var(--warning-fg); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger-fg); }
.badge-info    { background: var(--buhta-blue-light); color: var(--buhta-blue); }
.badge-yellow  { background: var(--buhta-yellow-bg); color: #92400E; }
.badge-navy    { background: #EEEEF8; color: var(--buhta-navy); }

.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; }
.status-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-dot.new::before  { background: var(--buhta-blue); } .status-dot.new  { color: var(--buhta-blue); }
.status-dot.app::before  { background: var(--success-fg); } .status-dot.app  { color: var(--success-fg); }
.status-dot.rev::before  { background: var(--warning); }    .status-dot.rev  { color: var(--warning-fg); }
.status-dot.sig::before  { background: var(--buhta-navy); } .status-dot.sig  { color: var(--buhta-navy); }

/* ============================================================
   KPI STRIP
   ============================================================ */
.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; transition: box-shadow 0.2s; }
.kpi:hover { box-shadow: var(--shadow-md); }
.kpi-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--fg3); font-weight: 600; margin-bottom: 6px; }
.kpi-value { font-family: var(--font-number); font-weight: 700; font-size: 1.4rem; color: var(--fg1); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-value .sym { color: var(--fg3); font-weight: 600; font-size: 0.7em; }
.kpi-sub { font-size: 0.75rem; color: var(--fg3); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.kpi-change { display: inline-flex; align-items: center; gap: 2px; font-size: 0.72rem; font-weight: 600; }
.kpi-change.up { color: var(--success-fg); }
.kpi-change.down { color: var(--danger); }

/* ============================================================
   OP-CARD list rows
   ============================================================ */
.op-row {
    display: flex; align-items: center; padding: 12px 18px;
    border-bottom: 1px solid var(--border-soft); gap: 12px;
    text-decoration: none; color: inherit;
    transition: background 0.15s;
}
.op-row:last-child { border-bottom: 0; }
.op-row:hover { background: var(--gray-50); }
.op-ic {
    width: 34px; height: 34px; border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; flex-shrink: 0;
}
.op-ic.blue   { background: var(--buhta-blue-light); color: var(--buhta-blue); }
.op-ic.green  { background: var(--success-bg); color: var(--success-fg); }
.op-ic.red    { background: var(--danger-bg); color: var(--danger); }
.op-ic.yellow { background: var(--buhta-yellow-bg); color: var(--warning-fg); }
.op-ic.navy   { background: #EEEEF8; color: var(--buhta-navy); }
.op-info { flex: 1; min-width: 0; }
.op-title { font-size: 0.85rem; font-weight: 500; color: var(--fg1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-desc  { font-size: 0.75rem; color: var(--fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-right { text-align: right; flex-shrink: 0; }
.op-amount { font-family: var(--font-number); font-weight: 700; font-size: 0.88rem; color: var(--fg1); font-variant-numeric: tabular-nums; }
.op-date { font-size: 0.72rem; color: var(--fg3); }
.op-date.overdue { color: var(--danger); font-weight: 600; }
.op-empty { padding: 32px 18px; text-align: center; color: var(--fg-muted); font-size: 0.85rem; }
.op-empty i { font-size: 1.5rem; display: block; margin-bottom: 8px; opacity: 0.4; }
.see-all { display: block; text-align: center; padding: 10px; font-size: 0.78rem; font-weight: 500; color: var(--buhta-blue); text-decoration: none; border-top: 1px solid var(--border-soft); }
.see-all:hover { background: var(--gray-50); }

/* ============================================================
   TABLE
   ============================================================ */
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table thead th {
    font-weight: 600; color: var(--fg3); font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.04em;
    padding: 10px 20px; background: var(--gray-50);
    border-bottom: 1px solid var(--border); text-align: left;
}
.table tbody td {
    vertical-align: middle; padding: 14px 20px;
    border-bottom: 1px solid var(--border-soft); color: var(--gray-800);
}
.table tbody tr { cursor: pointer; transition: background 0.15s; }
.table tbody tr:hover td { background: var(--gray-50); }
.table .num { font-family: var(--font-number); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--fg1); }
.table .actions { text-align: right; white-space: nowrap; }

/* Grouped status strip — list of contracts grouped by status. */
.status-group { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; position: relative; margin-bottom: 20px; }
.status-group::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
/* 7 status-strip colors — точная палитра из applications/application_list.html */
.status-group.new::before      { background: #3B82F6; }                /* Новые — синий */
.status-group.review::before   { background: var(--warning); }         /* На рассм. — оранжевый */
.status-group.approved::before { background: var(--success); }         /* Одобренные — зелёный */
.status-group.signed::before   { background: var(--buhta-cyan); }      /* Подписанные — бирюза #0FB8ED */
.status-group.active::before   { background: #2563EB; }                /* Активные — насыщ. синий */
.status-group.closed::before   { background: var(--gray-500); }        /* Закрытые — серый */
.status-group.overdue::before  { background: var(--danger); }          /* Просрочка — красный */
.status-group-head { padding: 14px 20px 14px 24px; display: flex; justify-content: space-between; align-items: center; }
.status-group-head .total { font-family: var(--font-number); font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--fg1); }
.status-group .table { border-top: 1px solid var(--border-soft); }
.status-group .table thead th { padding-left: 24px; }
.status-group .table tbody td { padding-left: 24px; }

/* ============================================================
   TABS
   ============================================================ */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab {
    padding: 10px 4px; font-size: 0.88rem; font-weight: 500;
    color: var(--fg3); text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    background: transparent; border-top: 0; border-right: 0; border-left: 0; cursor: pointer; font-family: inherit;
}
.tab:hover { color: var(--fg1); }
.tab.active { color: var(--fg1); border-bottom-color: var(--fg1); }

/* ============================================================
   FORM SECTION (for onboarding / client create)
   ============================================================ */
.form-section { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px; }
.form-section h3 { font-size: 1.05rem; font-weight: 600; color: var(--fg1); margin: 0 0 4px; }
.form-section .sub { font-size: 0.85rem; color: var(--fg3); margin: 0 0 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* ============================================================
   STEPPER (for onboarding flow)
   ============================================================ */
.stepper { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; }
.step .num {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--gray-100); color: var(--fg3);
    font-weight: 600; font-size: 0.82rem; flex-shrink: 0;
    font-family: var(--font-number);
}
.step.active .num { background: var(--buhta-blue); color: #fff; }
.step.done .num { background: var(--success); color: #fff; }
.step .lab { font-size: 0.85rem; color: var(--fg3); font-weight: 500; }
.step.active .lab { color: var(--fg1); font-weight: 600; }
.step.done .lab { color: var(--fg1); }
.step-line { flex: 1; min-width: 20px; height: 1px; background: var(--border); }
.step.done + .step-line { background: var(--success); }

/* ============================================================
   DASHBOARD bits
   ============================================================ */
.dash-greeting { margin-bottom: 24px; }
.dash-greeting h4 { font-weight: 500; font-size: 1.25rem; color: var(--fg1); margin: 0 0 2px; }
.dash-greeting p { color: var(--fg3); font-size: 0.85rem; margin: 0; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.col-stack { display: flex; flex-direction: column; gap: 16px; }
.month-selector {
    padding: 6px 12px; border: 1px solid var(--border);
    border-radius: var(--r-md); font-size: 0.85rem; color: var(--fg1);
    background: #fff; cursor: pointer; font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237A8B9E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding: 8px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bar-col .bar-track { width: 100%; height: 100%; display: flex; align-items: flex-end; gap: 4px; }
.bar-col .bar { flex: 1; background: var(--buhta-blue); border-radius: 4px 4px 0 0; min-height: 8px; transition: opacity .15s; }
.bar-col .bar.alt { background: var(--success); }
.bar-col .lab { font-size: 0.72rem; color: var(--fg3); font-weight: 500; }
.legend { display: flex; gap: 16px; font-size: 0.78rem; color: var(--fg2); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: middle; }

/* ============================================================
   RANK MEDALS
   ============================================================ */
.rank { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; font-size: 0.72rem; font-family: var(--font-number); }
.rank.r1 { background: linear-gradient(135deg, #FFE600, #F59E0B); color: var(--buhta-navy); }
.rank.r2 { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.rank.r3 { background: linear-gradient(135deg, #d97706, #92400e); color: #fff; }
.rank.ro { background: var(--gray-100); color: var(--fg3); }

/* ============================================================
   DONUT (CSS conic-gradient — quick & cheap)
   ============================================================ */
.donut {
    width: 100px; height: 100px; border-radius: 50%;
    background: conic-gradient(var(--success) 0% 78%, var(--warning) 78% 92%, var(--danger) 92% 100%);
    position: relative;
}
.donut::after {
    content: ''; position: absolute; inset: 14px; background: #fff; border-radius: 50%;
}
.donut-center {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; z-index: 1;
}
.donut-center .v { font-family: var(--font-number); font-weight: 700; font-size: 1.1rem; color: var(--danger); }
.donut-center .l { font-size: 0.6rem; color: var(--fg3); }

/* ============================================================
   PIPELINE / FUNNEL pills (compact)
   ============================================================ */
.pipeline { display: flex; gap: 6px; flex-wrap: wrap; }
.pipe-pill { font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: var(--r-sm); }

/* ============================================================
   ALERT
   ============================================================ */
.alert {
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    padding: 12px 14px;
    font-size: 0.875rem;
    background: #fff;
    display: flex; gap: 10px; align-items: flex-start;
}
.alert.warn { background: var(--warning-bg); border-color: #FDE68A; color: var(--warning-fg); }
.alert.danger { background: var(--danger-bg); border-color: #FECACA; color: var(--danger-fg); }
.alert.info { background: var(--buhta-blue-light); border-color: #C7D9FC; color: var(--buhta-blue); }

