/* CRM360 — gorsel dil: template/Nexus CRM.dc.html
 *
 * TASARIM ILKELERI
 * 1. Hiyerarsi: her sey ayni agirlikta olamaz. Para rakami > etiket > yardim metni.
 * 2. Kart icinde kart YOK. Ic bolumler yuzey tonuyla ayrilir (--surface-2), cerceveyle degil.
 * 3. Sayilar tabular-nums ve saga hizali — goz sutunu tarayabilsin.
 * 4. Veri azken duzen cokmez: bos durumlar kucuk ve zarif.
 */

:root {
    /* Yuzeyler */
    --sidebar:      #0e1626;
    --sidebar-text: #e6e9f0;
    --sidebar-muted:#7d879b;
    --sidebar-label:#5c6579;
    --bg:           #f4f5f8;
    --surface:      #ffffff;
    --surface-2:    #f7f8fa;   /* kart ICI bolumler — ikinci cerceve yerine */
    --border:       #e4e7ee;
    --border-soft:  #eef0f5;

    /* Metin */
    --text:         #101425;
    --text-soft:    #4a5163;
    --text-muted:   #79808f;

    /* Anlam renkleri */
    --accent:       #4f46e5;
    --accent-dark:  #3730a3;
    --accent-soft:  #eef0ff;
    --success:      #10763a;
    --success-bg:   #e7f6ec;
    --danger:       #b5231f;
    --danger-bg:    #fdeceb;
    --warning:      #96620a;
    --warning-bg:   #fdf4e0;
    --info:         #1d4ed8;
    --info-bg:      #e8effe;

    /* Tipografi olcegi — aradaki fark GORULEBILIR olmali */
    --fs-xs:   11px;
    --fs-sm:   12.5px;
    --fs-base: 14px;
    --fs-lg:   16px;
    --fs-xl:   20px;
    --fs-2xl:  27px;
    --fs-3xl:  34px;

    --radius:    12px;
    --radius-sm: 8px;
    --shadow:    0 1px 2px rgba(16,22,38,.04);
    --shadow-lg: 0 2px 4px rgba(16,22,38,.04), 0 8px 24px rgba(16,22,38,.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    font-size: var(--fs-base);
    line-height: 1.55;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
    letter-spacing: -0.4px;
    margin: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* Para/sayi hucreleri her yerde ayni ritimde okunsun */
.num, .kpi__value, .stat__value, table.data td.num, table.data th.num {
    font-variant-numeric: tabular-nums;
}
.num, table.data td.num, table.data th.num { text-align: right; }

/* ---------- Uygulama duzeni ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: 248px;
    flex: none;
    background: var(--sidebar);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 22px 22px 18px;
}

.sidebar__logo {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), #7c6cf5);
    display: grid; place-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: var(--fs-lg); color: #fff;
}

.sidebar__name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; line-height: 1; }
.sidebar__tag  { font-size: var(--fs-xs); color: var(--sidebar-muted); margin-top: 3px; font-weight: 600; letter-spacing: .3px; }

.sidebar__nav { flex: 1; overflow-y: auto; padding: 8px 12px; }
.sidebar__label {
    font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
    color: var(--sidebar-label); padding: 14px 12px 6px;
}

.sidebar__link {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 9px 12px; margin-bottom: 2px;
    border-radius: var(--radius-sm); color: #b9c0cf;
    font-size: 13.5px; font-weight: 600; text-align: left;
}
.sidebar__link:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar__link--active { background: var(--accent); color: #fff; }
.sidebar__link--disabled { opacity: .38; cursor: not-allowed; }
.sidebar__link--disabled:hover { background: none; color: #b9c0cf; }

.sidebar__badge {
    margin-left: auto; font-size: 10px; font-weight: 700;
    background: rgba(255,255,255,.12); padding: 2px 7px; border-radius: 20px;
}

.sidebar__foot { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.07); font-size: 11.5px; color: var(--sidebar-muted); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    height: 60px;
    display: flex; align-items: center; gap: 16px;
}
.topbar__title { font-size: 15px; font-weight: 700; color: var(--text-soft); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.chip {
    font-size: 11.5px; font-weight: 700; padding: 4px 10px;
    border-radius: 20px; background: var(--accent-soft); color: var(--accent-dark);
}

.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: grid; place-items: center; font-weight: 700; font-size: 13px;
}

.content { padding: 24px 28px 40px; flex: 1; max-width: 1560px; width: 100%; }

/* ---------- Sayfa basligi ---------- *
 * Sayfanin ne oldugunu ve ne yapabilecegini SOYLER. Topbar tek kelimeyle yetinmez. */
.page {
    display: flex; align-items: flex-start; gap: 16px;
    flex-wrap: wrap; margin-bottom: 20px;
}
.page__text { min-width: 0; flex: 1; }
.page__title { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.5px; }
.page__sub { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 3px; }
.page__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Kartlar ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
}
.card--flush { padding: 0; overflow: hidden; }
.card--flush .card__head { padding: 18px 20px 0; }
.card--flush .table-wrap { margin-top: 12px; }

.card__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.card__head .card__title, .card__head .card__sub { margin-bottom: 0; }
.card__head-text { flex: 1; min-width: 0; }
.card__title { font-size: 15px; font-weight: 700; margin-bottom: 3px; letter-spacing: -.2px; }
.card__sub { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
/* Grafik solda genis, yan panel sagda dar */
.grid--split { grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); }

.stat__label { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; }
.stat__value { font-family: 'Space Grotesk', sans-serif; font-size: var(--fs-2xl); font-weight: 700; margin-top: 4px; }
.stat__hint  { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 4px; }

/* ---------- KPI seridi ---------- *
 * Sol renk seridi = anlam. Kart ICINDE kullanildiginda cerceve DUSER —
 * ikinci bir kutu ciziminin gorsel gurultusu olmaz. */
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 12px; }

.kpi__card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 15px 16px 15px 19px;
    overflow: hidden;
}
.kpi__card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--border);
}
.kpi__card--accent::before  { background: var(--accent); }
.kpi__card--success::before { background: var(--success); }
.kpi__card--danger::before  { background: var(--danger); }
.kpi__card--warning::before { background: var(--warning); }
.kpi__card--info::before    { background: var(--info); }

.kpi__label {
    font-size: var(--fs-xs); letter-spacing: .07em; text-transform: uppercase;
    color: var(--text-muted); font-weight: 700;
}
.kpi__value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: var(--fs-2xl); font-weight: 700; line-height: 1.15;
    margin-top: 5px; letter-spacing: -.6px;
}
.kpi__value--sm { font-size: var(--fs-xl); }
.kpi__hint { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 4px; line-height: 1.45; }

/* Kart icindeki KPI: cerceve/golge yok, yumusak yuzey */
.card .kpi__card {
    background: var(--surface-2);
    border-color: transparent;
    box-shadow: none;
}

/* ---------- Tablo ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
    text-align: left; font-size: var(--fs-xs); letter-spacing: .5px; text-transform: uppercase;
    color: var(--text-muted); font-weight: 700; padding: 9px 14px;
    border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--border-soft); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data tfoot th {
    border-top: 1px solid var(--border); border-bottom: none;
    text-transform: none; font-size: 13px; color: var(--text);
    letter-spacing: 0; padding-top: 12px;
}
.card--flush table.data th:first-child,
.card--flush table.data td:first-child { padding-left: 20px; }
.card--flush table.data th:last-child,
.card--flush table.data td:last-child { padding-right: 20px; }

/* ---------- Bos durum ---------- *
 * Veri yokken sayfa cokmemeli: kucuk, sakin, aciklayici. */
.empty {
    padding: 26px 20px; text-align: center;
    color: var(--text-muted); font-size: var(--fs-sm);
    background: var(--surface-2); border-radius: var(--radius-sm);
}
.empty__title { font-weight: 700; color: var(--text-soft); font-size: var(--fs-base); margin-bottom: 2px; }

/* ---------- Liste (kart ici satirlar) ---------- */
.list { display: flex; flex-direction: column; }
.list__item { padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.list__item:last-child { border-bottom: none; padding-bottom: 0; }
.list__item:first-child { padding-top: 0; }
.list__title { font-weight: 600; font-size: 13.5px; }
.list__meta { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 1px; }

/* ---------- Rozetler ---------- */
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.badge--ok      { background: var(--success-bg); color: var(--success); }
.badge--wait    { background: #eef0f5; color: var(--text-muted); }
.badge--active  { background: var(--info-bg); color: var(--info); }
.badge--danger  { background: var(--danger-bg); color: var(--danger); }

/* ---------- Formlar ---------- */
.field { margin-bottom: 16px; }
.field__label { display: block; font-size: var(--fs-sm); font-weight: 700; margin-bottom: 6px; }
.field__input, .input {
    width: 100%; padding: 9px 12px;
    border: 1px solid #d8dde6; border-radius: var(--radius-sm);
    background: #fff; color: var(--text);
}
.field__input:focus, .input:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.field__hint { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 16px; border: 1px solid transparent; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--text-soft); border-color: var(--border); }
.btn--ghost:hover { color: var(--text); background: var(--surface-2); }
.btn--sm { padding: 5px 11px; font-size: 12.5px; }
.btn--block { width: 100%; }

/* ---------- Segment (pill) sekme cubugu — cerceveli, KONTROL gibi okunur ----------
 * Hem baglantili .tabs (raporlar) hem radio tabanli .dtabs__nav (detaylar)
 * ayni gorsel dili paylasir: yumusak zeminli cerceve, aktif sekme beyaz pill. */
.tabs, .dtabs__nav {
    display: inline-flex; flex-wrap: wrap; gap: 3px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 4px;
    margin-bottom: 18px;
    max-width: 100%;
}
.tabs__link, .dtabs__tab {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; font-size: 13.5px; font-weight: 700;
    color: var(--text-muted); border-radius: 7px; white-space: nowrap; cursor: pointer;
}
.tabs__link:hover, .dtabs__tab:hover { color: var(--text); background: rgba(16,22,38,.045); }

/* Aktif sekme = beyaz kabartma pill */
.tabs__link--active {
    background: var(--surface); color: var(--accent); box-shadow: var(--shadow);
}
.tabs__link--active:hover { background: var(--surface); }

/* ---------- Detay sekmeleri (saf CSS, JS YOK) ----------
 * Gizli radio + label ile calisir; icindeki formlar sorunsuz gonderilir. */
.dtabs__radio { position: absolute; opacity: 0; pointer-events: none; }
.dtabs__count {
    font-size: 11px; font-weight: 700; min-width: 18px; text-align: center;
    background: var(--surface); color: var(--text-muted);
    border: 1px solid var(--border); border-radius: 20px; padding: 0 6px;
}
.dtabs__panel { display: none; }

/* Radio isaretli → ilgili sekme pill'lenir, ilgili panel gorunur. 6 sekmeye kadar. */
#dt-1:checked ~ .dtabs__nav [for="dt-1"],
#dt-2:checked ~ .dtabs__nav [for="dt-2"],
#dt-3:checked ~ .dtabs__nav [for="dt-3"],
#dt-4:checked ~ .dtabs__nav [for="dt-4"],
#dt-5:checked ~ .dtabs__nav [for="dt-5"],
#dt-6:checked ~ .dtabs__nav [for="dt-6"] {
    background: var(--surface); color: var(--accent); box-shadow: var(--shadow);
}
#dt-1:checked ~ .dtabs__nav [for="dt-1"] .dtabs__count,
#dt-2:checked ~ .dtabs__nav [for="dt-2"] .dtabs__count,
#dt-3:checked ~ .dtabs__nav [for="dt-3"] .dtabs__count,
#dt-4:checked ~ .dtabs__nav [for="dt-4"] .dtabs__count,
#dt-5:checked ~ .dtabs__nav [for="dt-5"] .dtabs__count,
#dt-6:checked ~ .dtabs__nav [for="dt-6"] .dtabs__count {
    background: var(--accent-soft); color: var(--accent-dark); border-color: transparent;
}
#dt-1:checked ~ .dtabs__body #panel-1,
#dt-2:checked ~ .dtabs__body #panel-2,
#dt-3:checked ~ .dtabs__body #panel-3,
#dt-4:checked ~ .dtabs__body #panel-4,
#dt-5:checked ~ .dtabs__body #panel-5,
#dt-6:checked ~ .dtabs__body #panel-6 { display: block; }

/* Tanimlar (definition list) — detay ozet alanlari */
.dl { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 18px; font-size: 13.5px; }
.dl dt { color: var(--text-muted); font-weight: 600; }
.dl dd { margin: 0; font-weight: 600; }

/* Aciliverir form (kart icinde ikincil eylem) */
.reveal { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.reveal > summary {
    cursor: pointer; list-style: none; padding: 11px 15px;
    font-weight: 700; font-size: 13.5px; color: var(--accent);
    background: var(--surface-2); display: flex; align-items: center; gap: 8px;
}
.reveal > summary::-webkit-details-marker { display: none; }
.reveal > summary::before { content: '+'; font-size: 16px; line-height: 1; }
.reveal[open] > summary::before { content: '−'; }
.reveal[open] > summary { border-bottom: 1px solid var(--border); }
.reveal__body { padding: 16px 15px; }

/* ---------- Uyarilar ---------- */
.alert { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.alert--error   { background: var(--danger-bg);  color: var(--danger); }
.alert--success { background: var(--success-bg); color: var(--success); }
.alert--info    { background: var(--info-bg);    color: var(--info); }
.alert--warning { background: var(--warning-bg); color: var(--warning); }

/* ---------- Marka görsel önizleme (ayarlar) ---------- */
.marka-onizleme {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 12px; margin-bottom: 8px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: #fff;
    background-image:
        linear-gradient(45deg, #f0f1f4 25%, transparent 25%),
        linear-gradient(-45deg, #f0f1f4 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f0f1f4 75%),
        linear-gradient(-45deg, transparent 75%, #f0f1f4 75%);
    background-size: 14px 14px;
    background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}
.marka-onizleme img { max-height: 64px; max-width: 220px; display: block; }
.marka-onizleme--kase img { max-height: 90px; }

/* ---------- Modal (katalog seçici vb.) ---------- */
[x-cloak] { display: none !important; }
.modal {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 40px 16px;
}
.modal__arka { position: absolute; inset: 0; background: rgba(16,22,38,.5); }
.modal__kutu {
    position: relative; z-index: 1;
    background: var(--surface); border-radius: var(--radius);
    width: 100%; max-width: 600px; max-height: 82vh;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.modal__bas {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.modal__liste { max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.katalog-satir {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
    padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); cursor: pointer;
}
.katalog-satir:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Giris ekrani ---------- */
.auth {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--sidebar);
    padding: 24px;
}
.auth__box { width: 100%; max-width: 400px; }
.auth__brand { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 22px; }
.auth__brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; color: #fff; }
.auth__card { background: var(--surface); border-radius: 14px; padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.auth__title { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.auth__sub { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }
.auth__foot { text-align: center; margin-top: 18px; font-size: 12px; color: var(--sidebar-muted); }

/* ---------- Hata sayfalari ---------- */
.errorpage { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.errorpage__code { font-family: 'Space Grotesk', sans-serif; font-size: 68px; font-weight: 700; color: var(--accent); }
.errorpage__msg { font-size: var(--fs-lg); color: var(--text-muted); margin: 8px 0 20px; }

/* ---------- Grafikler (saf CSS/SVG — harici kutuphane yok) ---------- */

/* Yatay cubuk */
.chart-bar { display: flex; flex-direction: column; gap: 10px; }
.chart-bar__row { display: grid; grid-template-columns: minmax(130px, 1.5fr) 3fr minmax(104px, auto); gap: 14px; align-items: center; }
.chart-bar__label { font-size: 13px; font-weight: 600; min-width: 0; }
.chart-bar__label > span:first-child { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-bar__sub { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--text-muted); margin-top: 1px; }
.chart-bar__track { background: var(--surface-2); border-radius: 6px; height: 22px; overflow: hidden; }
.chart-bar__fill { height: 100%; border-radius: 6px; min-width: 3px; }
.chart-bar__value { font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* Cizgi / alan — Y ekseni etiketleriyle */
.chart-line { color: var(--text); }
.chart-line__legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.chart-line__key { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-soft); font-weight: 600; }
.chart-line__key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-line__plot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.chart-line__y {
    display: flex; flex-direction: column; justify-content: space-between;
    font-size: var(--fs-xs); color: var(--text-muted); text-align: right;
    font-variant-numeric: tabular-nums; padding-bottom: 4px; white-space: nowrap;
}
.chart-line__x {
    display: flex; margin-top: 6px; font-size: var(--fs-xs); color: var(--text-muted);
}
.chart-line__x span { flex: 1; text-align: center; min-width: 0; overflow: hidden; }

/* Huni — asamalar ortalanip daralir, gercek bir huni gibi okunur */
.funnel { display: flex; flex-direction: column; gap: 5px; }
.funnel__row { display: grid; grid-template-columns: minmax(140px, auto) minmax(0, 1fr) minmax(160px, auto); gap: 14px; align-items: center; }
.funnel__stage { font-size: 13px; font-weight: 600; }
.funnel__bar { display: flex; justify-content: center; }
.funnel__fill {
    height: 32px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: var(--fs-sm); font-weight: 700; min-width: 26px;
}
.funnel__fill--empty { background: var(--surface-2) !important; color: var(--text-muted); }
.funnel__meta { font-size: var(--fs-sm); color: var(--text-soft); text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

@media (max-width: 1180px) {
    .grid--split { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .sidebar { display: none; }
    .content { padding: 18px; }
}

@media (max-width: 700px) {
    .chart-bar__row { grid-template-columns: 1fr; gap: 4px; }
    .chart-bar__value { text-align: left; }
    .funnel__row { grid-template-columns: 1fr; gap: 4px; }
    .funnel__meta { text-align: left; }
    .chart-line__x { display: none; }
}
