/* ==========================================================================
   WoraWiFi panel teması — tek dosya, bağımsız (CDN / çatı / ikon fontu YOK).
   Kullanım kılavuzu: Docs/PANEL-BILESENLER.md
   Bölümler: 1 belirteçler · 2 taban · 3 kabuk · 4 sayfa başlığı · 5 düğmeler
   6 rozet/nokta · 7 haplar/çipler/sekmeler · 8 kart/KPI · 9 tablo
   10 liste+detay · 11 form · 12 modal/toast/boş durum/uyarı/kod · 13 grafik
   14 diğer (zaman akışı, ilerleme, açılır menü, sayfalama) · 15 yardımcılar
   16 müşteri kabuğu · 17 giriş sayfası · 18 duyarlı kurallar
   ========================================================================== */

/* ---------- 1. Belirteçler ---------- */
:root {
    --accent: #0078D4;
    --accent-strong: #0F6CBD;
    --accent-soft: rgba(0, 120, 212, .10);
    --on-accent: #ffffff;
    --bg: #ffffff;
    --bg-page: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f5f5f5;
    --muted: #69797E;
    --text: #1b1b1f;
    --text-secondary: #605e5c;
    --border: #e1e5e9;
    --border-light: #f3f2f1;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --success-text: #047857;
    --warning-text: #b45309;
    --danger-text: #b91c1c;
    --info-text: #0F6CBD;
    --success-soft: rgba(16, 185, 129, .14);
    --warning-soft: rgba(245, 158, 11, .16);
    --danger-soft: rgba(239, 68, 68, .12);
    --info-soft: rgba(0, 120, 212, .10);

    --radius: 12px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow: 0 2px 8px rgba(0, 0, 0, .1);
    --shadow-pop: 0 4px 12px rgba(0, 0, 0, .15);
    --shadow-modal: 0 8px 32px rgba(0, 0, 0, .2);
    --transition: all .2s ease;

    --font: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --font-mono: Consolas, "Cascadia Mono", "SF Mono", Menlo, "Liberation Mono", monospace;

    --bar-h: 48px;
    --side-w: 232px;

    /* Grafik kategorik paleti (sıra sabittir; komşu dilimler renk körlüğünde ayrışır) */
    --seri-1: #2a78d6; --seri-2: #eb6834; --seri-3: #1baf7a; --seri-4: #eda100;
    --seri-5: #e87ba4; --seri-6: #008300; --seri-7: #6250d6; --seri-8: #e34948;
    color-scheme: light;
}

html[data-theme="dark"] {
    --accent: #4CC2FF;
    --accent-strong: #7dd3ff;
    --accent-soft: rgba(76, 194, 255, .14);
    --on-accent: #0b1720;
    --bg: #1f1f23;
    --bg-page: #1f1f23;
    --bg-secondary: #2d2d30;
    --bg-tertiary: #3c3c3c;
    --muted: #9ca3af;
    --text: #ffffff;
    --text-secondary: #d1d5db;
    --border: #404040;
    --border-light: #36363a;
    --success-text: #6ee7b7;
    --warning-text: #fcd34d;
    --danger-text: #fca5a5;
    --info-text: #7dd3ff;
    --seri-1: #3987e5; --seri-2: #d95926; --seri-3: #199e70; --seri-4: #c98500;
    --seri-5: #d55181; --seri-6: #008300; --seri-7: #9085e9; --seri-8: #e66767;
    color-scheme: dark;
}

/* ---------- 2. Taban ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    background: var(--bg-page);
    color: var(--text);
}
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 20px; font-weight: 600; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 600; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; border-spacing: 0; }
img, svg { vertical-align: middle; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::placeholder { color: var(--muted); opacity: 1; }

/* Simge (satır içi SVG; <ww-simge> ve WW.simge aynı sınıfı üretir) */
.simge {
    width: 16px; height: 16px; flex-shrink: 0;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
.simge-sm { width: 14px; height: 14px; }
.simge-lg { width: 20px; height: 20px; }
.simge-xl { width: 32px; height: 32px; stroke-width: 1.5; }

/* ---------- 3. Uygulama kabuğu (yönetim) ---------- */
.app-bar {
    position: sticky; top: 0; z-index: 1000;
    height: var(--bar-h);
    display: flex; align-items: center; gap: 16px;
    padding: 0 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.app-title {
    display: flex; align-items: center; gap: 8px;
    font-weight: 600; color: var(--text); white-space: nowrap;
}
.app-title:hover { text-decoration: none; }
.app-title .simge { color: var(--accent); width: 18px; height: 18px; }
.app-context { color: var(--text-secondary); font-size: 12px; white-space: nowrap; }

/* Üst modül menüsü — sekme dili (aktifte vurgu rengi + alt çizgi) */
.mod-nav { display: flex; align-items: stretch; gap: 20px; height: 100%; overflow-x: auto; scrollbar-width: none; }
.mod-nav::-webkit-scrollbar { display: none; }
.mod-link {
    position: relative; display: flex; align-items: center; gap: 6px;
    color: var(--text-secondary); font-size: 14px; white-space: nowrap;
    transition: var(--transition);
}
.mod-link:hover { color: var(--text); text-decoration: none; }
.mod-link.active { color: var(--accent); font-weight: 600; }
.mod-link.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
}

/* Global arama */
.app-search { position: relative; flex: 1; max-width: 480px; margin-left: auto; }
.app-search > .simge { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input {
    width: 100%; padding: 7px 12px 7px 36px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--bg); color: var(--text); font-size: 14px;
    transition: var(--transition);
}
.search-input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.search-panel {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    max-height: 60vh; overflow: auto;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-pop); z-index: 1100; padding: 6px 0;
}
.search-panel.open { display: block; }
.search-group {
    padding: 8px 16px 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .5px;
    color: var(--text-secondary); font-weight: 600;
}
.search-item { display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: var(--text); }
.search-item:hover, .search-item.active { background: var(--bg-secondary); text-decoration: none; }
.search-item .ico {
    width: 32px; height: 32px; border-radius: 50%; background: var(--bg-secondary); color: var(--accent);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.search-item.active .ico, .search-item:hover .ico { background: var(--bg); }
.search-item .t { font-size: 12px; font-weight: 500; }
.search-item .s { font-size: 11px; color: var(--text-secondary); }
.search-empty { padding: 16px; font-size: 12px; color: var(--text-secondary); text-align: center; }

/* Üst çubuk simge düğmesi + kullanıcı menüsü */
.icon-btn {
    width: 32px; height: 32px; border: none; background: none; border-radius: var(--radius-md);
    color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center;
    transition: var(--transition); flex-shrink: 0;
}
.icon-btn:hover { background: var(--bg-secondary); color: var(--text); text-decoration: none; }
.nav-toggle { display: none; }
.user-btn {
    display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px;
    border: none; background: none; border-radius: var(--radius-md); color: var(--text); font-size: 12px;
}
.user-btn:hover { background: var(--bg-secondary); }
.user-btn .ad { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-monogram {
    width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.avatar-monogram.lg { width: 48px; height: 48px; font-size: 16px; }
.avatar-monogram.soft { background: var(--bg-secondary); color: var(--accent); }

/* Gövde: sol menü + içerik */
.app-body { display: flex; align-items: flex-start; min-height: calc(100vh - var(--bar-h)); }
.side-nav {
    position: sticky; top: var(--bar-h);
    width: var(--side-w); flex-shrink: 0;
    height: calc(100vh - var(--bar-h)); overflow-y: auto;
    background: var(--bg); border-right: 1px solid var(--border);
    padding: 8px 0 16px;
}
.nav-group-title {
    padding: 16px 16px 6px; font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px; color: var(--text-secondary);
}
.nav-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 16px;
    color: var(--text-secondary); white-space: nowrap; transition: var(--transition);
}
.nav-item:hover { background: var(--bg-secondary); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--bg-secondary); color: var(--accent); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.nav-item .simge { width: 18px; height: 18px; }
.nav-item .count { margin-left: auto; }
.nav-backdrop { display: none; }

.main-content { flex: 1; min-width: 0; padding: 16px 24px 32px; }

/* Breadcrumb */
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; font-size: 12px; color: var(--text-secondary); min-height: 18px; }
.crumb a { color: var(--text-secondary); }
.crumb a:hover { color: var(--accent); }
.crumb .simge { width: 12px; height: 12px; color: var(--muted); }
.crumb .son { color: var(--text); font-weight: 600; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 4. Sayfa başlığı ---------- */
.page-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light);
}
.page-head.no-line { border-bottom: 0; padding-bottom: 0; }
.page-info { display: flex; align-items: center; gap: 16px; min-width: 0; }
.page-title { font-size: 20px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.page-sub { margin-top: 2px; font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.page-sub b { color: var(--text); font-weight: 600; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- 5. Düğmeler ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 7px 14px; min-height: 32px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--text);
    font-size: 13px; line-height: 1.2; white-space: nowrap; text-decoration: none;
    transition: var(--transition);
}
.btn:hover { background: var(--bg-secondary); border-color: var(--accent); text-decoration: none; }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-secondary { background: var(--bg-secondary); border-color: var(--bg-secondary); }
.btn-secondary:hover { background: var(--bg-tertiary); border-color: var(--border); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; }
.btn-outline-danger { background: transparent; border-color: var(--danger); color: var(--danger-text); }
.btn-outline-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-sm { padding: 4px 10px; min-height: 26px; font-size: 12px; }
.btn-sm .simge { width: 14px; height: 14px; }
.btn-lg { padding: 10px 18px; min-height: 40px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: 0; width: 32px; min-height: 32px; }
.btn-icon.btn-sm { width: 26px; min-height: 26px; }
.btn-link {
    display: inline-flex; align-items: center; gap: 4px; padding: 0; min-height: 0;
    border: 0; background: none; color: var(--accent); font-size: inherit;
}
.btn-link:hover { background: none; text-decoration: underline; }
.btn-link.danger { color: var(--danger-text); }
.btn.is-loading { pointer-events: none; opacity: .7; }
.btn.is-loading::before {
    content: ""; width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid currentColor; border-top-color: transparent; animation: ww-don .8s linear infinite;
}
.btn-group { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- 6. Rozet + durum noktası ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 12px;
    font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap;
    background: var(--bg-secondary); color: var(--text-secondary);
}
.badge .simge { width: 12px; height: 12px; }
.badge-neutral { background: var(--bg-tertiary); color: var(--text-secondary); }
.badge-success { background: var(--success-soft); color: var(--success-text); }
.badge-warning { background: var(--warning-soft); color: var(--warning-text); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger-text); }
.badge-info    { background: var(--info-soft);    color: var(--info-text); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.dot-success { background: var(--success); }
.dot-warning { background: var(--warning); }
.dot-danger  { background: var(--danger); }
.dot-info    { background: var(--info); }
.dot-pulse { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); animation: ww-nabiz 2s infinite; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }

/* Sayaç hapı (menü, filtre, sekme içinde) */
.count {
    display: inline-flex; align-items: center; justify-content: center; min-width: 20px;
    padding: 0 6px; border-radius: 12px; background: var(--muted); color: #fff;
    font-size: 11px; font-weight: 600; line-height: 18px;
}

/* ---------- 7. Filtre hapları, etiket çipleri, sekmeler ---------- */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
    border: 1px solid var(--border); border-radius: 999px;
    background: var(--bg); color: var(--text); font-size: 12px; transition: var(--transition);
}
.filter-chip:hover { background: var(--bg-secondary); border-color: var(--accent); text-decoration: none; }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.filter-chip.active .count { background: rgba(255, 255, 255, .28); color: inherit; }
/* Dilimli seçici (7/30/90 gün gibi): .filter-chips.segment */
.filter-chips.segment { gap: 0; }
.filter-chips.segment .filter-chip { border-radius: 0; margin-left: -1px; }
.filter-chips.segment .filter-chip:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); margin-left: 0; }
.filter-chips.segment .filter-chip:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.filter-chips.segment .filter-chip.active { position: relative; z-index: 1; }

.tag-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-secondary); color: var(--text); font-size: 12px; transition: var(--transition);
}
button.tag-chip:hover, a.tag-chip:hover { border-color: var(--accent); text-decoration: none; }
.tag-chip.active { border-color: var(--accent); background: var(--accent-soft); color: var(--info-text); }
.tag-chip .count { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); line-height: 16px; }
.tag-chip .tag-x { border: 0; background: none; padding: 0; color: var(--text-secondary); display: inline-flex; }
.tag-chip .tag-x:hover { color: var(--danger-text); }

.tabs-container { margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.tabs { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 0; border: none; background: none;
    color: var(--text-secondary); font-size: 14px; white-space: nowrap; transition: var(--transition);
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--accent); font-weight: 600; }
.tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.tab .count { background: var(--bg-tertiary); color: var(--text-secondary); }
.tab.active .count { background: var(--accent); color: var(--on-accent); }
.tabs.tabs-sm { gap: 16px; }
.tabs.tabs-sm .tab { font-size: 12px; padding: 10px 0; }
.tabs.tabs-fill .tab { flex: 1; justify-content: center; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- 8. Kart, kart ızgarası, bilgi satırları, KPI ---------- */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-light); }
.card + .card, .card + .data-table, .data-table + .card, .data-table + .data-table { margin-top: 16px; }
.card-grid > .card, .split-detail-body > .card + .card { margin-top: 0; }
.card-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 20px; border-bottom: 1px solid var(--border-light);
}
.card-header h3 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-header .card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-body { padding: 20px; }
.card-body.flush { padding: 0; }
.card-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border-light); }
.card.compact .card-header { padding: 10px 16px; }
.card.compact .card-header h3 { font-size: 13px; }
.card.compact .card-body { padding: 12px 16px; }
a.card { display: block; color: inherit; transition: var(--transition); }
a.card:hover, .card.hover:hover { box-shadow: var(--shadow); text-decoration: none; border-color: var(--accent); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid .span-2 { grid-column: span 2; }
.card-grid .span-all { grid-column: 1 / -1; }
.card-grid + .card-grid, .card-grid + .card, .card + .card-grid, .stat-grid + .card, .stat-grid + .card-grid { margin-top: 20px; }

/* Anahtar / değer satırları */
.kv-list { display: flex; flex-direction: column; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-light); align-items: baseline; }
.kv:first-child { padding-top: 0; }
.kv:last-child { border-bottom: 0; padding-bottom: 0; }
.kv .k { font-size: 12px; color: var(--text-secondary); }
.kv .v { font-size: 13px; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.kv-list.wide .kv { grid-template-columns: 180px minmax(0, 1fr); }

/* İstatistik (KPI) kutuları */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-light); padding: 14px 16px; min-width: 0;
}
.stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-secondary); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stat-value { margin-top: 4px; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.stat-sub { margin-top: 2px; font-size: 12px; color: var(--text-secondary); }
.stat-sub.up { color: var(--success-text); }
.stat-sub.down { color: var(--danger-text); }
.stat.with-icon { display: flex; align-items: center; gap: 12px; }
.stat-icon {
    width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon .simge { width: 20px; height: 20px; }
.stat-grid.plain .stat { box-shadow: none; background: var(--bg-secondary); border-color: transparent; border-radius: var(--radius-md); }
/* Başlık yanındaki küçük sayaç çipleri */
.kpi-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.kpi-chip { background: var(--bg-secondary); padding: 6px 12px; border-radius: var(--radius-md); text-align: center; min-width: 80px; }
.kpi-chip .kpi-label { font-size: 10px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px; }
.kpi-chip .kpi-value { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 2px; }

/* ---------- 9. Tablo ---------- */
.data-table { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-light); overflow: hidden; }
.table-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 12px 20px; border-bottom: 1px solid var(--border-light);
}
.table-header h3 { font-size: 16px; font-weight: 600; }
.table-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 20px; border-top: 1px solid var(--border-light); font-size: 12px; color: var(--text-secondary); }
.table { width: 100%; }
.table th, .table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--border-light); font-size: 12px; vertical-align: middle; }
.table th {
    background: var(--bg-secondary); font-weight: 600; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; font-size: 11px;
}
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--text); }
.table th.sorted-asc::after { content: " ▲"; font-size: 9px; }
.table th.sorted-desc::after { content: " ▼"; font-size: 9px; }
.table tbody tr { transition: background .15s ease; }
.table tbody tr:hover { background: var(--bg-secondary); }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.selected { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.table tbody tr:last-child td { border-bottom: none; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.actions, .table th.actions { text-align: right; white-space: nowrap; }
.table td.actions .btn + .btn { margin-left: 4px; }
.table td.empty-row { padding: 32px 16px; text-align: center; color: var(--text-secondary); font-size: 13px; }
.table tbody tr:has(td.empty-row):hover { background: none; }
.table .main { font-weight: 600; color: var(--text); font-size: 13px; }
.table .sub { color: var(--text-secondary); font-size: 11px; }
.table.table-sm th, .table.table-sm td { padding: 6px 12px; }
.table.table-sticky thead th { position: sticky; top: 0; z-index: 1; }

/* ---------- 10. Liste + sağ detay (iki kolon) ---------- */
.split {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    height: calc(100vh - var(--split-offset, 180px)); min-height: 480px;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-light); overflow: hidden;
}
.split.auto-height { height: auto; min-height: 0; }
.split-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.split-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 12px 16px; border-bottom: 1px solid var(--border-light);
}
.split-cols, .split-row { display: grid; column-gap: 12px; align-items: center; padding: 0 16px; grid-template-columns: var(--split-cols, 1fr); }
.split-cols {
    min-height: 34px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-light);
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-secondary);
}
.split-list { flex: 1; overflow: auto; min-height: 0; }
.split-list > .table-wrap, .split-list > .table { width: 100%; }
.split-row { padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); font-size: 12px; cursor: pointer; transition: background .15s ease; }
.split-row > * { min-width: 0; }
.split-row:hover { background: var(--bg-secondary); }
.split-row.active { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.split-foot { padding: 8px 16px; border-top: 1px solid var(--border-light); font-size: 12px; color: var(--text-secondary); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.split-detail { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--border); background: var(--bg-secondary); }
.split-detail-head { padding: 14px 16px 0; background: var(--bg); border-bottom: 1px solid var(--border); }
.split-detail-head.no-tabs { padding-bottom: 14px; }
.split-detail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.split-detail-title { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.split-detail-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.split-detail-head .tabs { margin-top: 8px; }
.split-detail-body { flex: 1; overflow: auto; min-height: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.split-detail-body > .tab-panel.active { display: flex; flex-direction: column; gap: 12px; }
.split-detail-body .tab-panel > .card + .card { margin-top: 0; }
.split-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 40px 24px; text-align: center; color: var(--text-secondary); }
.split-empty .simge { width: 32px; height: 32px; opacity: .45; stroke-width: 1.5; }

/* Satır kimliği kalıbı: yuvarlak simge/monogram + başlık + alt satır (liste, arama, kuyruk) */
.ident { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ident-icon {
    position: relative; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    background: var(--bg-secondary); color: var(--accent);
    display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.split-row:hover .ident-icon, .split-row.active .ident-icon, .table tbody tr:hover .ident-icon { background: var(--bg); }
.ident-icon .dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border: 2px solid var(--bg); }
.ident-text { min-width: 0; }
.ident-title { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ident-sub { font-size: 11px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 11. Form ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid.cols-1 { grid-template-columns: minmax(0, 1fr); }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .form-group { margin-bottom: 0; }
.form-grid .form-full { grid-column: 1 / -1; }
.form-group { margin-bottom: 16px; min-width: 0; }
.form-label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.form-label .req { color: var(--danger); }
.form-control {
    display: block; width: 100%; padding: 7px 12px; min-height: 34px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--text); font-size: 14px; transition: border-color .2s ease;
}
.form-control:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form-control:read-only:not(select), .form-control:disabled { background: var(--bg-tertiary); color: var(--text-secondary); }
textarea.form-control { min-height: 72px; resize: vertical; line-height: 1.5; }
select.form-control {
    appearance: none; -webkit-appearance: none; padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2369797E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
.form-control.form-control-sm { padding: 4px 10px; min-height: 26px; font-size: 12px; }
select.form-control.form-control-sm { padding-right: 28px; }
.form-control.is-invalid, .is-invalid > .form-control { border-color: var(--danger); }
.form-control.is-invalid:focus { outline-color: var(--danger); }
.form-help { margin-top: 4px; font-size: 11px; color: var(--text-secondary); }
.form-error { margin-top: 4px; font-size: 11px; color: var(--danger-text); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.form-section { margin: 20px 0 12px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-secondary); padding-bottom: 6px; border-bottom: 1px solid var(--border-light); }
.form-section:first-child { margin-top: 0; }
.input-group { display: flex; }
.input-group > .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); min-width: 0; }
.input-group > .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-left: -1px; }

.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.check-list { display: flex; flex-direction: column; gap: 8px; }
.check-list.inline { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }

.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
    position: relative; width: 40px; height: 22px; border-radius: 11px; flex-shrink: 0;
    background: var(--border); transition: background .2s ease;
}
.switch-track::after {
    content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s ease;
}
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: .5; }
/* Ayar satırı: solda başlık+açıklama, sağda kontrol */
.setting-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.setting-item:last-child { border-bottom: 0; }
.setting-item h4 { font-size: 14px; font-weight: 500; }
.setting-item p { font-size: 12px; color: var(--text-secondary); }

.search-box { position: relative; display: inline-block; width: 100%; max-width: 260px; }
.search-box > .simge { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 14px; height: 14px; pointer-events: none; }
.search-box input {
    width: 100%; padding: 5px 10px 5px 30px; min-height: 30px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--text); font-size: 12px;
}
.search-box input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.search-box.wide { max-width: none; }

/* ---------- 12. Modal, onay, toast, boş durum, uyarı şeridi, kod kutusu ---------- */
.modal {
    display: none; position: fixed; inset: 0; z-index: 2000;
    align-items: flex-start; justify-content: center;
    padding: 48px 16px; overflow: auto; background: rgba(0, 0, 0, .4);
}
.modal.open { display: flex; }
body.modal-open { overflow: hidden; }
.modal-box {
    width: 100%; max-width: 560px; background: var(--bg); color: var(--text);
    border-radius: var(--radius); box-shadow: var(--shadow-modal);
    animation: ww-belir .16s ease;
}
.modal-box.sm { max-width: 380px; }
.modal-box.lg { max-width: 860px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border-light); }
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close { width: 28px; height: 28px; border: 0; background: none; border-radius: var(--radius-sm); color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--bg-secondary); color: var(--text); }
.modal-body { padding: 20px; }
.modal-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border-light); }
.modal-footer .left { margin-right: auto; }
.confirm-text { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }

.toast-wrap { position: fixed; top: 60px; right: 16px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast {
    display: flex; align-items: flex-start; gap: 8px; padding: 10px 14px;
    border-radius: var(--radius-md); box-shadow: var(--shadow-pop);
    background: #1b1b1f; color: #fff; font-size: 13px; pointer-events: auto;
    border-left: 4px solid var(--success); animation: ww-kay .2s ease; overflow-wrap: anywhere;
}
.toast.err { border-left-color: var(--danger); }
.toast .simge { margin-top: 2px; color: var(--success); }
.toast.err .simge { color: var(--danger); }
.toast.gidiyor { opacity: 0; transition: opacity .25s ease; }

.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 40px 24px; text-align: center; color: var(--text-secondary); }
.empty .simge, .empty-icon .simge { width: 32px; height: 32px; opacity: .45; stroke-width: 1.5; }
.empty-title { font-size: 14px; font-weight: 600; color: var(--text); }
.empty-text { font-size: 13px; max-width: 420px; }
.empty .btn { margin-top: 8px; }
.empty.dashed { border: 1px dashed var(--border); border-radius: var(--radius); }
.empty.sm { padding: 20px 16px; }

.loading-box { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--text-secondary); font-size: 13px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: ww-don .8s linear infinite; flex-shrink: 0; }

.alert {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; margin-bottom: 16px;
    border-radius: var(--radius-md); border: 1px solid transparent; border-left-width: 4px;
    background: var(--info-soft); border-color: rgba(0, 120, 212, .25); border-left-color: var(--accent);
    font-size: 13px; color: var(--text);
}
.alert > .simge { margin-top: 2px; color: var(--accent); }
.alert-body { flex: 1; min-width: 0; }
.alert-title { font-weight: 600; }
.alert-warning { background: var(--warning-soft); border-color: rgba(245, 158, 11, .35); border-left-color: var(--warning); }
.alert-warning > .simge { color: var(--warning-text); }
.alert-danger { background: var(--danger-soft); border-color: rgba(239, 68, 68, .3); border-left-color: var(--danger); }
.alert-danger > .simge { color: var(--danger-text); }
.alert-success { background: var(--success-soft); border-color: rgba(16, 185, 129, .3); border-left-color: var(--success); }
.alert-success > .simge { color: var(--success-text); }

.code-box { position: relative; border-radius: var(--radius-md); background: #1b1b1f; color: #e6edf3; }
.code-box pre {
    margin: 0; padding: 12px 84px 12px 14px; overflow: auto; max-height: 320px;
    font-family: var(--font-mono); font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-all;
}
.code-box.nowrap pre { white-space: pre; word-break: normal; }
.code-copy {
    position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .08); color: #e6edf3; font-size: 11px;
}
.code-copy:hover { background: rgba(255, 255, 255, .18); }
.code-copy .simge { width: 12px; height: 12px; }
code, .mono { font-family: var(--font-mono); font-size: .92em; }
code { padding: 1px 5px; border-radius: var(--radius-sm); background: var(--bg-tertiary); }
.code-box code { padding: 0; background: none; }

/* ---------- 13. Grafik kapları ---------- */
.chart-box { position: relative; width: 100%; min-height: 60px; }
.chart-box svg { display: block; width: 100%; overflow: visible; }
.chart-box text { font-family: var(--font); font-size: 11px; fill: var(--text-secondary); }
.chart-grid-line { stroke: var(--border-light); stroke-width: 1; }
.chart-axis-line { stroke: var(--border); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--chart-color, var(--accent)); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: var(--chart-color, var(--accent)); opacity: .12; }
.chart-point { fill: var(--chart-color, var(--accent)); stroke: var(--bg); stroke-width: 2; }
.chart-bar { fill: var(--chart-color, var(--accent)); transition: fill .15s ease; }
.chart-hit { fill: transparent; }
.chart-hit:hover + .chart-bar, .chart-bar.hover { fill: var(--accent-strong); }
.chart-cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-tip {
    position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, -100%);
    padding: 4px 8px; border-radius: var(--radius-sm); background: #1b1b1f; color: #fff;
    font-size: 11px; white-space: nowrap; box-shadow: var(--shadow-pop);
}
.chart-tip b { font-weight: 600; }
.chart-empty { display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 13px; border: 1px dashed var(--border); border-radius: var(--radius-md); }
.chart-donut { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.chart-donut svg { width: 150px; height: 150px; flex-shrink: 0; }
.chart-donut .donut-total { font-size: 20px; font-weight: 600; fill: var(--text); }
.chart-donut .donut-label { font-size: 10px; fill: var(--text-secondary); }
.chart-donut circle.dilim { transition: opacity .15s ease; }
.chart-donut.hovering circle.dilim:not(.hover) { opacity: .35; }
.chart-legend { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.chart-legend .satir { display: flex; align-items: center; gap: 8px; padding: 1px 4px; border-radius: var(--radius-sm); }
.chart-legend .satir.hover { background: var(--bg-secondary); }
.chart-legend .renk { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.chart-legend .ad { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.chart-legend .deger { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.chart-legend .oran { color: var(--text-secondary); min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 14. Diğer bileşenler ---------- */
/* Zaman akışı / olay geçmişi */
.timeline-list { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-secondary); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.timeline-content { flex: 1; min-width: 0; }
.timeline-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.timeline-title { font-size: 12px; font-weight: 500; color: var(--text); }
.timeline-time { font-size: 11px; color: var(--text-secondary); white-space: nowrap; }
.timeline-body { font-size: 11px; color: var(--text-secondary); line-height: 1.4; overflow-wrap: anywhere; }

/* İlerleme / kota çubuğu */
.progress { height: 6px; border-radius: 3px; background: var(--bg-tertiary); overflow: hidden; }
.progress-bar { height: 100%; border-radius: 3px; background: var(--accent); transition: width .3s ease; }
.progress-bar.success { background: var(--success); }
.progress-bar.warning { background: var(--warning); }
.progress-bar.danger { background: var(--danger); }

/* Açılır menü */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    display: none; position: absolute; top: calc(100% + 4px); right: 0; z-index: 1100; min-width: 180px;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-pop); padding: 4px 0;
}
.dropdown-menu.left { right: auto; left: 0; }
.dropdown.open > .dropdown-menu { display: block; }
.dropdown-head { padding: 8px 14px; border-bottom: 1px solid var(--border-light); margin-bottom: 4px; }
.dropdown-head .t { font-size: 13px; font-weight: 600; }
.dropdown-head .s { font-size: 11px; color: var(--text-secondary); }
.dropdown-item {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 14px;
    border: 0; background: none; color: var(--text); font-size: 13px; text-align: left; white-space: nowrap;
}
.dropdown-item:hover { background: var(--bg-secondary); text-decoration: none; }
.dropdown-item.danger { color: var(--danger-text); }
.dropdown-sep { height: 1px; margin: 4px 0; background: var(--border-light); }

/* Sayfalama */
.pager { display: inline-flex; align-items: center; gap: 4px; }
.pager .btn { min-width: 28px; }
.pager .btn.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pager-info { font-size: 12px; color: var(--text-secondary); margin: 0 8px; }

/* Araç satırı: solda filtreler, sağda arama/eylem */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- 15. Yardımcılar ---------- */
.text-muted { color: var(--text-secondary); }
.text-success { color: var(--success-text); }
.text-warning { color: var(--warning-text); }
.text-danger { color: var(--danger-text); }
.text-accent { color: var(--accent); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tabular { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.gap-4 { gap: 4px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-0 { margin-top: 0 !important; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.w-100 { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes ww-don { to { transform: rotate(360deg); } }
@keyframes ww-belir { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes ww-kay { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes ww-nabiz { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); } 70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

/* ---------- 16. Müşteri kabuğu (ayrı, sade görünüm) ---------- */
body.tema-musteri {
    --accent: #0f766e;
    --accent-strong: #0b5f59;
    --accent-soft: rgba(15, 118, 110, .10);
    --info-text: #0b5f59;
    --info-soft: rgba(15, 118, 110, .10);
    --bg-page: #f4f6f7;
    --seri-1: #0f766e;
}
html[data-theme="dark"] body.tema-musteri {
    --accent: #2dd4bf; --accent-strong: #5eead4; --accent-soft: rgba(45, 212, 191, .14);
    --info-text: #5eead4; --bg-page: #18181b; --seri-1: #199e70;
}
.musteri-bar { background: var(--accent); color: var(--on-accent); }
.musteri-bar-in { max-width: 1160px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; gap: 16px; }
.musteri-marka { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; }
.musteri-marka:hover { text-decoration: none; }
.musteri-marka .logo { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.musteri-marka .logo .simge { width: 18px; height: 18px; }
.musteri-marka .ad { font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.musteri-marka .alt { font-size: 11px; opacity: .8; line-height: 1.2; }
.musteri-sag { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 12px; white-space: nowrap; }
.musteri-sag .kisi { opacity: .9; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.musteri-cikis { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, .4); color: inherit; }
.musteri-cikis:hover { background: rgba(255, 255, 255, .14); text-decoration: none; }
.musteri-menu { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 900; }
.musteri-menu .tabs { max-width: 1160px; margin: 0 auto; padding: 0 20px; gap: 28px; }
.musteri-menu .tab { padding: 14px 0; }
.musteri-icerik { max-width: 1160px; margin: 0 auto; padding: 24px 20px 40px; }
.musteri-alt { max-width: 1160px; margin: 0 auto; padding: 0 20px 24px; font-size: 11px; color: var(--text-secondary); text-align: center; }

/* ---------- 17. Giriş sayfası ---------- */
body.giris-sayfa { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--bg-secondary); }
.giris-kart { width: 100%; max-width: 380px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.giris-marka { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.giris-marka .logo { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; }
.giris-marka .logo .simge { width: 22px; height: 22px; }
.giris-marka h1 { font-size: 20px; line-height: 1.2; }
.giris-marka p { font-size: 12px; color: var(--text-secondary); }
.giris-alt { margin-top: 20px; font-size: 11px; color: var(--text-secondary); text-align: center; }

/* ---------- 18. Duyarlı kurallar ---------- */
@media (max-width: 1100px) {
    .split { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
    .split-list { max-height: 60vh; }
    .split-detail { border-left: 0; border-top: 1px solid var(--border); max-height: 75vh; }
    .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid.cols-3 .span-2 { grid-column: span 2; }
}
@media (max-width: 992px) {
    .nav-toggle { display: inline-flex; }
    .app-context { display: none; }
    .side-nav {
        position: fixed; top: var(--bar-h); left: 0; bottom: 0; z-index: 1200; height: auto;
        transform: translateX(-100%); transition: transform .25s ease; box-shadow: none;
        width: min(280px, 84vw);
    }
    html.nav-open .side-nav { transform: none; box-shadow: var(--shadow-modal); }
    html.nav-open .nav-backdrop { display: block; position: fixed; inset: var(--bar-h) 0 0 0; z-index: 1150; background: rgba(0, 0, 0, .4); }
    .app-search { max-width: 260px; }
}
@media (max-width: 768px) {
    .main-content { padding: 12px 16px 24px; }
    .app-bar { gap: 10px; padding: 0 10px; }
    .app-search { display: none; }
    .mod-nav { gap: 14px; margin-right: auto; }
    .user-btn .ad { display: none; }
    .card-grid, .card-grid.cols-2, .card-grid.cols-4 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .card-grid .span-2 { grid-column: auto; }
    .form-grid, .form-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
    .page-head { align-items: flex-start; }
    .modal { padding: 16px 10px; }
    .kv, .kv-list.wide .kv { grid-template-columns: 110px minmax(0, 1fr); }
    .musteri-sag .kisi { display: none; }
    /* Dar ekranda liste satırı: yalnız ilk iki sütun (kimlik + durum) görünür, başlık satırı gizlenir. */
    .split-cols { display: none; }
    .split-row { grid-template-columns: minmax(0, 1fr) auto; }
    .split-row > :nth-child(n+3) { display: none; }
    .musteri-icerik { padding: 16px 14px 32px; }
    .musteri-bar-in, .musteri-menu .tabs { padding: 0 14px; }
    .toast-wrap { top: auto; bottom: 16px; left: 16px; right: 16px; max-width: none; }
}
@media (max-width: 480px) {
    .app-title span { display: none; }
    .page-title { font-size: 18px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat-value { font-size: 20px; }
    .giris-kart { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
    .app-bar, .side-nav, .crumb, .page-actions, .musteri-menu, .toast-wrap { display: none !important; }
    .main-content { padding: 0; }
}
