/* HemenŞimdi tasarım sistemi v3 — "Yol tabelası"
   Kaynak: İstanbul'da motorlu kurye işi. Asfalt laciverti yazı, beton gri zemin,
   reflektör turuncusu (#ff5a3c) yalnız ana eylem ve canlı durum için, tabela mavisi bilgi için.
   Yazı (v4): gövde Overpass — otoyol tabelası yazısı Highway Gothic'in açık kaynak torunu;
   başlık ve göstergeler Big Shoulders Display — dar, uzun, tabela/plaka harfi; kod ve plaka Overpass Mono.
   Turuncu üstünde yazı koyu (#18202e, 5.9:1) — reflektör yelek mantığı, beyaz yazı 3:1'de kalıyordu.
   Açık/koyu görünüm sistem ayarını izler. Kontrast oranları yorumlarda. */
:root {
  color-scheme: light dark;
  --brand: #ff5a3c;
  --brand-hover: #ff6f55;
  --brand-ink: #b8361a;        /* metin; beyaz üzerinde 5.6:1 */
  --brand-tint: #ffeee9;
  --brand-tint-2: #ffd5ca;
  --on-brand: #18202e;         /* turuncu üzerinde 5.9:1 */

  --bg: #e9ebef;               /* beton */
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --fill: #f1f2f5;
  --fill-2: #e0e3e9;
  --ink: #18202e;              /* asfalt laciverti; beyaz üzerinde 16.1:1 */
  --ink-2: #384152;
  --muted: #586173;            /* beyaz 6.2:1, beton 5.2:1 */
  --faint: #9aa1ae;
  --line: #dadee5;
  --line-strong: #c2c8d2;

  --sign: #0f4c9e;             /* tabela mavisi; beyaz üzerinde 8.0:1 */
  --sign-tint: #e7effa;

  --side: #f6f7f9;
  --side-hover: #e9ecf1;
  --side-active: var(--ink);
  --side-active-ink: #ffffff;
  --bar: rgba(255, 255, 255, .86);

  --ok: #12703a;  --ok-tint: #e3f3e9;     /* 6.2:1 */
  --warn: #855400; --warn-tint: #fff1d6;  /* 6.0:1 */
  --err: #b42318; --err-tint: #fdebe9;    /* 6.4:1 */
  --info: var(--sign); --info-tint: var(--sign-tint);

  --overlay: rgba(14, 20, 32, .48);
  --shadow-1: 0 1px 0 rgba(24, 32, 46, .04);
  --shadow-2: 0 1px 0 rgba(24, 32, 46, .04), 0 8px 24px rgba(24, 32, 46, .07);
  --shadow-3: 0 18px 50px rgba(14, 20, 32, .22);
  --focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--sign);

  /* köşe hiyerarşisi: tabela/rozet 5, kontrol 10, kart 14, sayfa 20 */
  --r-xs: 5px; --r-sm: 8px; --r: 10px; --r-lg: 14px; --r-xl: 20px;
  --ctl: 2.5rem;
  --ctl-sm: 2rem;
  --side-w: 252px;
  --font: 'Overpass', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Big Shoulders Display', 'Overpass', system-ui, sans-serif;
  --wide: 125%;                /* başlık genişliği */
  --narrow: 80%;               /* kod/plaka genişliği */
  --mono: 'Overpass Mono', ui-monospace, 'Cascadia Mono', monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  /* eski adlar (geriye uyum) */
  --brand-50: var(--brand-tint); --brand-100: var(--brand-tint-2); --brand-600: var(--brand-hover); --brand-700: var(--brand-ink);
  --ok-50: var(--ok-tint); --warn-50: var(--warn-tint); --err-50: var(--err-tint); --info-50: var(--info-tint);
  --card: var(--surface); --shadow: var(--shadow-2); --shadow-lg: var(--shadow-3);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-hover: #ff7258;
    --brand-ink: #ff9078;      /* #151c2b üzerinde 7.4:1 */
    --brand-tint: rgba(255, 90, 60, .14);
    --brand-tint-2: rgba(255, 90, 60, .3);
    --on-brand: #18202e;
    --bg: #0c111c;             /* gece asfaltı */
    --surface: #151c2b;
    --surface-raised: #1b2336;
    --fill: #20293d;
    --fill-2: #2b3650;
    --ink: #eef1f6;
    --ink-2: #c6cdd9;
    --muted: #9aa4b6;          /* #151c2b üzerinde 6.6:1 */
    --faint: #5d6880;
    --line: #253049;
    --line-strong: #34405c;
    --sign: #8db4ff;           /* 7.7:1 */
    --sign-tint: rgba(141, 180, 255, .14);
    --side: #111827;
    --side-hover: #1c2438;
    --side-active-ink: #0c111c;
    --bar: rgba(17, 24, 39, .84);
    --ok: #5bd08a;  --ok-tint: rgba(91, 208, 138, .14);
    --warn: #f3b549; --warn-tint: rgba(243, 181, 73, .14);
    --err: #ff7a6b; --err-tint: rgba(255, 122, 107, .14);
    --overlay: rgba(0, 0, 0, .62);
    --shadow-1: 0 0 0 1px rgba(255, 255, 255, .02);
    --shadow-2: 0 0 0 1px rgba(255, 255, 255, .03), 0 10px 28px rgba(0, 0, 0, .42);
    --shadow-3: 0 22px 60px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --brand-hover: #ff7258;
  --brand-ink: #ff9078;      /* #151c2b üzerinde 7.4:1 */
  --brand-tint: rgba(255, 90, 60, .14);
  --brand-tint-2: rgba(255, 90, 60, .3);
  --on-brand: #18202e;
  --bg: #0c111c;             /* gece asfaltı */
  --surface: #151c2b;
  --surface-raised: #1b2336;
  --fill: #20293d;
  --fill-2: #2b3650;
  --ink: #eef1f6;
  --ink-2: #c6cdd9;
  --muted: #9aa4b6;          /* #151c2b üzerinde 6.6:1 */
  --faint: #5d6880;
  --line: #253049;
  --line-strong: #34405c;
  --sign: #8db4ff;           /* 7.7:1 */
  --sign-tint: rgba(141, 180, 255, .14);
  --side: #111827;
  --side-hover: #1c2438;
  --side-active-ink: #0c111c;
  --bar: rgba(17, 24, 39, .84);
  --ok: #5bd08a;  --ok-tint: rgba(91, 208, 138, .14);
  --warn: #f3b549; --warn-tint: rgba(243, 181, 73, .14);
  --err: #ff7a6b; --err-tint: rgba(255, 122, 107, .14);
  --overlay: rgba(0, 0, 0, .62);
  --shadow-1: 0 0 0 1px rgba(255, 255, 255, .02);
  --shadow-2: 0 0 0 1px rgba(255, 255, 255, .03), 0 10px 28px rgba(0, 0, 0, .42);
  --shadow-3: 0 22px 60px rgba(0, 0, 0, .6);
}
@media (prefers-contrast: more) {
  :root { --muted: var(--ink-2); --line: var(--line-strong); --brand-ink: #9a2a12; }
}
@media (pointer: coarse), (max-width: 960px) {
  :root { --ctl: 2.75rem; --ctl-sm: 2.25rem; }   /* 44px / 36px dokunma */
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: .9375rem; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--sign); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.05; font-family: var(--font-display); letter-spacing: .01em; color: var(--ink); }
h4 { margin: 0 0 .4em; line-height: 1.2; font-family: var(--font); font-weight: 750; color: var(--ink); }
h1 { font-size: 2.125rem; font-weight: 800; } h2 { font-size: 1.625rem; font-weight: 800; } h3 { font-size: 1.25rem; font-weight: 750; } h4 { font-size: .9375rem; }
p { margin: 0 0 .75em; }
small, .small { font-size: .8125rem; }
b, strong { font-weight: 650; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
/* kodlar: dar ve kalın — irsaliye numarası gibi, monospace değil */
.mono { font-family: var(--mono); font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.num, .tbl td, .stat .val { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.grow { flex: 1; min-width: 0; }
.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; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 500; background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
::selection { background: var(--brand-tint-2); }

/* ---------- İskelet ---------- */
.app { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar { width: var(--side-w); background: var(--side); border-right: 1px solid var(--line); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 40; transition: transform .25s var(--ease); }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; letter-spacing: .02em; line-height: 1; color: var(--ink); }
.sidebar .brand small { display: block; margin-top: 3px; letter-spacing: 0; font-family: var(--font); font-weight: 500; font-size: .75rem; color: var(--muted); }
.brand-logo { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--brand); display: grid; place-items: center; color: var(--on-brand); font-size: 15px; flex: none; }
.nav { padding: 4px 12px 16px; overflow-y: auto; flex: 1; }
.nav-title { font-size: .75rem; font-weight: 600; color: var(--muted); padding: 18px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; min-height: 2.25rem; padding: 6px 10px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; margin-bottom: 1px; text-decoration: none; }
.nav a:hover { background: var(--side-hover); color: var(--ink); }
.nav a i { width: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.nav a.active { background: var(--side-active); color: var(--side-active-ink); font-weight: 650; }
.nav a.active i { color: var(--brand); }
.nav a .count { margin-left: auto; background: var(--brand); color: var(--on-brand); font-size: .75rem; font-weight: 750; min-width: 22px; height: 20px; padding: 0 7px; border-radius: var(--r-xs); display: grid; place-items: center; }
.main { flex: 1; margin-left: var(--side-w); min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 60px; background: var(--bar); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 8px 28px; position: sticky; top: 0; z-index: 30; }
.topbar h1 { font-size: 1.625rem; font-weight: 800; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .crumb { color: var(--muted); font-size: .75rem; }
.content { padding: 24px 28px 56px; width: 100%; max-width: 1440px; }
.menu-btn { display: none !important; }
.backdrop { display: none; }
.acct { display: flex; align-items: center; gap: 8px; height: var(--ctl); padding: 0 8px 0 4px; border-radius: var(--r); border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
.acct:hover { background: var(--fill); }
.avatar { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--fill); color: var(--ink-2); display: grid; place-items: center; font-weight: 750; font-size: .8125rem; flex: none; }
.acct .avatar { width: 30px; height: 30px; font-size: .75rem; background: var(--ink); color: var(--surface); }
.acct span { font-weight: 600; font-size: .875rem; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.popover { position: fixed; z-index: 120; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3); min-width: 240px; padding: 6px; animation: pop .14s var(--ease); }
.popover .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.popover .who b { display: block; }
.popover button, .popover a { display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--ctl-sm); padding: 6px 12px; border: none; background: none; color: var(--ink); font: inherit; border-radius: var(--r-sm); cursor: pointer; text-align: left; text-decoration: none; }
.popover button:hover, .popover a:hover { background: var(--fill); }
.popover button i, .popover a i { width: 16px; color: var(--muted); }
.popover .danger, .popover .danger i { color: var(--err); }
.tabbar { display: none; }

@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); width: min(300px, 86vw); box-shadow: none; visibility: hidden; transition: transform .25s var(--ease), visibility 0s .25s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-3); visibility: visible; transition: transform .25s var(--ease); }
  .main { margin-left: 0; }
  .backdrop.show { display: block; position: fixed; inset: 0; background: var(--overlay); z-index: 35; animation: fade .2s; }
  .content { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
  .topbar { padding: 8px 12px 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); min-height: 56px; }
  .topbar h1 { font-size: 1.125rem; }
  .topbar .crumb, .acct span { display: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--bar); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-top: 1px solid var(--line); padding: 4px 4px env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { flex: 1; min-width: 0; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font: 550 .6875rem var(--font); border: none; background: none; cursor: pointer; position: relative; text-decoration: none; border-radius: var(--r); }
  .tabbar i { font-size: 18px; }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
  .tabbar .active { color: var(--ink); font-weight: 700; }
  .tabbar .active i { color: var(--brand); }
  .tabbar .active::before { content: ''; position: absolute; top: -4px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
  .tabbar .count { position: absolute; top: 4px; left: calc(50% + 6px); background: var(--brand); color: var(--on-brand); font-size: .6875rem; font-weight: 750; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-xs); display: grid; place-items: center; }
  .toasts { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
}

/* ---------- Bileşenler ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card-h { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; min-height: 56px; }
.card-h h3 { margin: 0; font-size: 1.25rem; }
.card-b { padding: 20px; }
.card-b.p0 { padding: 0; }
.card.tint { background: var(--brand-tint); border-color: var(--brand-tint-2); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .g2, .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.mt { margin-top: 16px; } .mt2 { margin-top: 24px; } .mb { margin-bottom: 16px; }

/* Özet panosu: ayrı kartlar yerine tek bir gösterge şeridi (tabela panosu gibi).
   Yalnız .stat içeren ızgaralar birleşir; ikon kutuları yok, sayı konuşur. */
.grid:has(> .stat):not(:has(> :not(.stat))) { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.grid:has(> .stat):not(:has(> :not(.stat))) > .stat { border: 0; border-radius: 0; box-shadow: none; }
.stat { padding: 18px 20px 16px; display: flex; gap: 14px; align-items: flex-start; position: relative; }
.stat .ic { display: none; }
.stat .lbl { color: var(--muted); font-size: .8125rem; font-weight: 550; }
.stat .val { font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; letter-spacing: .01em; margin-top: 4px; line-height: 1.15; overflow-wrap: anywhere; }
.stat .sub { font-size: .8125rem; color: var(--muted); margin-top: 2px; }
/* öne çıkan gösterge: üstte reflektör şerit */
.stat.hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(-45deg, var(--brand) 0 10px, color-mix(in srgb, var(--brand) 70%, var(--surface)) 10px 20px); }
.stat.hero .val { color: var(--ink); }
@media (max-width: 720px) { .stat { padding: 14px 14px 12px; } .stat .val { font-size: 1.75rem; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ctl); padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 600 .875rem/1.2 var(--font); cursor: pointer; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; text-decoration: none !important; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--fill); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 750; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.dark { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn.dark:hover { opacity: .9; }
.btn.ok { background: var(--ok); color: #fff; border-color: var(--ok); font-weight: 700; }
.btn.danger { color: var(--err); }
.btn.danger.solid { background: var(--err); color: #fff; border-color: var(--err); font-weight: 700; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--fill); }
.btn.sm { min-height: var(--ctl-sm); padding: 0 12px; font-size: .8125rem; border-radius: var(--r-sm); }
.btn.lg { min-height: 3rem; padding: 0 22px; font-size: 1rem; }
.btn.block { width: 100%; }
.btn.icon { width: var(--ctl); padding: 0; flex: none; }
.btn.sm.icon { width: var(--ctl-sm); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.ok, :root:not([data-theme="light"]) .btn.danger.solid { color: #0c111c; }
}
:root[data-theme="dark"] .btn.ok, :root[data-theme="dark"] .btn.danger.solid { color: #0c111c; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .field > .lbl { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input { min-height: var(--ctl); padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); font: .9375rem var(--font); color: var(--ink); width: 100%; outline: none; transition: border-color .15s, box-shadow .15s; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea.input { min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus, .input:focus-visible { border-color: var(--sign); box-shadow: 0 0 0 3px var(--sign-tint); border-radius: var(--r); }
.input:disabled { background: var(--fill); color: var(--muted); }
.input-ic { position: relative; }
.input-ic > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: 14px; }
.input-ic .input { padding-left: 38px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; min-height: var(--ctl-sm); }
.check input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: .75rem; color: var(--muted); font-weight: 650; padding: 10px 16px; background: var(--fill); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--fill) 70%, transparent); }
.tbl tbody tr[style*="cursor"]:hover, .tbl tbody tr[data-id]:hover { cursor: pointer; }
@media (max-width: 720px) {
  table.tbl { min-width: 680px; }           /* dar ekranda sütunlar ezilmez, tablo yatay kayar */
  .tbl th, .tbl td { padding: 10px 12px; }
  .card-h { gap: 6px 12px; padding: 12px 16px; }
  .card-h > span.small.muted, .card-h > .muted.small { display: none; }
}
.tbl .t-main { font-weight: 600; }
.tbl .t-sub { font-size: .8125rem; color: var(--muted); }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty > i { font-size: 26px; color: var(--faint); display: block; margin-bottom: 12px; }
.empty b { color: var(--ink); display: block; margin-bottom: 4px; }

/* Durum rozetleri: köşeli tabela; renk + şekil + metin */
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 9px; border-radius: var(--r-xs); font-size: .8125rem; font-weight: 650; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 1px; background: currentColor; flex: none; }
.badge.ok { background: var(--ok-tint); color: var(--ok); }
.badge.warn { background: var(--warn-tint); color: var(--warn); }
.badge.err { background: var(--err-tint); color: var(--err); }
.badge.info { background: var(--info-tint); color: var(--info); }
.badge.brand { background: var(--brand-tint); color: var(--brand-ink); }
.badge.plain::before { display: none; }

/* Bölümlü kontrol */
.tabs { display: inline-flex; gap: 2px; background: var(--fill-2); padding: 3px; border-radius: var(--r); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: none; background: transparent; min-height: calc(var(--ctl) - 8px); padding: 0 14px; border-radius: 8px; font: 600 .8125rem var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap; flex: none; }
.tabs button:hover { color: var(--ink); }
.tabs button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(24, 32, 46, .14); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tabs button.active { background: var(--fill); }
}
:root[data-theme="dark"] .tabs button.active { background: var(--fill); }

.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); min-height: 56px; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; font: inherit; color: inherit; text-align: left; }
.list-item:last-child { border-bottom: none; }
.list-item[style*="cursor"]:hover, .list-item[data-i]:hover, button.list-item:hover { background: var(--fill); cursor: pointer; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input { width: auto; min-width: 200px; }
@media (max-width: 640px) { .toolbar .input { flex: 1 1 100%; min-width: 0; } }

/* ---------- Modal (telefonda alt sayfa) / bildirim ---------- */
.modal-bg { position: fixed; inset: 0; background: var(--overlay); display: flex; align-items: flex-start; justify-content: center; z-index: 100; padding: 8vh 16px; overflow-y: auto; animation: fade .18s; }
.modal { background: var(--surface-raised); border-radius: var(--r-xl); width: 100%; max-width: 560px; box-shadow: var(--shadow-3); animation: pop .2s var(--ease); border: 1px solid var(--line); }
.modal.lg { max-width: 880px; }
.modal-h { padding: 16px 16px 14px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; position: sticky; top: 0; background: var(--surface-raised); border-radius: var(--r-xl) var(--r-xl) 0 0; z-index: 2; }
.modal-h h3 { margin: 0; flex: 1; font-size: 1.0625rem; }
.modal-b { padding: 22px; }
.modal-f { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .modal-bg { align-items: flex-end; padding: 0; padding-top: 8vh; }
  .modal, .modal.lg { max-width: none; border-radius: var(--r-xl) var(--r-xl) 0 0; animation: sheet .26s var(--ease); max-height: 92vh; display: flex; flex-direction: column; border-bottom: none; }
  .modal-h::before { content: ''; position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 9px; background: var(--fill-2); }
  .modal-h { padding-top: 20px; }
  .modal-b { padding: 18px 16px; overflow-y: auto; flex: 1; }
  .modal-f { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .modal-f .btn { flex: 1; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
@keyframes sheet { from { transform: translateY(100%); } }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: var(--surface); padding: 12px 16px; border-radius: var(--r); box-shadow: var(--shadow-3); display: flex; gap: 10px; align-items: center; min-width: 260px; max-width: min(400px, calc(100vw - 40px)); animation: pop .2s var(--ease); font-weight: 500; }
.toast.ok i { color: #5bd08a; } .toast.err i { color: #ff8a7a; } .toast.info i { color: #8db4ff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .toast { background: var(--fill-2); color: var(--ink); }
}
:root[data-theme="dark"] .toast { background: var(--fill-2); color: var(--ink); }
@media (max-width: 640px) { .toasts { left: 16px; right: 16px; bottom: 16px; } .toast { min-width: 0; max-width: none; } }

.spinner { width: 22px; height: 22px; border: 2.5px solid var(--fill-2); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-screen { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 300; padding: 16px; }

/* ---------- Rota: alış → teslim, şerit çizgisi ---------- */
.route { display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; row-gap: 12px; position: relative; }
.route::before { content: ''; position: absolute; left: 6px; top: 13px; bottom: 13px; width: 2px; background: repeating-linear-gradient(to bottom, var(--ink) 0 6px, transparent 6px 11px); opacity: .55; }
.route .dot { width: 14px; height: 14px; margin-top: 3px; position: relative; z-index: 1; }
.route .dot.a { background: var(--surface); border: 3px solid var(--ink); border-radius: 3px; }
.route .dot.b { background: var(--brand); border-radius: 50%; box-shadow: 0 0 0 3px var(--brand-tint-2); }
.route .stop b { display: block; font-size: .875rem; }
.route .stop span { font-size: .8125rem; color: var(--muted); }

/* Canlı nokta */
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); position: relative; flex: none; }
.live::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* Plaka: kuryenin gerçek plakası için (TR şeridi) */
.plate { display: inline-flex; align-items: stretch; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; font: 700 .8125rem/1 var(--mono); letter-spacing: .04em; background: #fff; color: #18202e; vertical-align: middle; }
.plate::before { content: 'TR'; background: #0f4c9e; color: #fff; font-size: .5625rem; letter-spacing: .02em; padding: 0 4px; display: grid; place-items: end center; padding-bottom: 3px; }
.plate > span, .plate { white-space: nowrap; }
.plate > span { padding: 5px 7px 4px; }

/* ---------- Zaman çizelgesi / harita ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 28px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: -8px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 3px; background: var(--surface); border: 2.5px solid var(--line-strong); }
.timeline li.done::before { background: var(--ink-2); }
.timeline li.done::after { border-color: var(--ink); background: var(--ink); }
.timeline li.current::after { border-color: var(--brand); background: var(--brand); border-radius: 50%; box-shadow: 0 0 0 4px var(--brand-tint-2); }
.timeline b { display: block; font-size: .875rem; }
.timeline span { font-size: .8125rem; color: var(--muted); }
.map { height: 380px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--fill); isolation: isolate; }
.map.sm { height: 260px; }
.map.tall { height: min(560px, 70vh); }
@media (max-width: 720px) { .map { height: 300px; } }
.leaflet-tile-pane { filter: saturate(.55) contrast(1.02); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .leaflet-tile-pane { filter: brightness(.7) contrast(1.15) saturate(.45); }
}
:root[data-theme="dark"] .leaflet-tile-pane { filter: brightness(.7) contrast(1.15) saturate(.45); }
.leaflet-container { font-family: var(--font) !important; }
.leaflet-bar a { color: var(--ink) !important; }
.pin { width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); border: 2.5px solid #fff; }
.pin i { transform: rotate(45deg); color: #fff; font-size: 12px; }
.pin.brand { background: var(--brand); } .pin.brand i { color: #18202e; }
.pin.dark { background: #18202e; } .pin.ok { background: #12703a; } .pin.info { background: #0f4c9e; } .pin.gray { background: #7d8596; }

.kv { display: grid; grid-template-columns: minmax(110px, 140px) 1fr; gap: 8px 14px; font-size: .875rem; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.pill-online { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--faint); flex: none; }
.pill-online.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-tint); }
.pill-online.brk { background: var(--warn); border-radius: 2px; }
.pill-online.busy { background: var(--brand); }
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 168px; padding-top: 22px; position: relative; }
.chart-bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.chart-bars .bar { width: 100%; max-width: 34px; border-radius: 4px 4px 1px 1px; background: var(--fill-2); min-height: 3px; position: relative; transition: background .15s; }
.chart-bars .b:last-child .bar { background: var(--ink); }
.chart-bars .bar:hover { background: var(--brand); }
.chart-bars .bar:hover::after { content: attr(data-v); position: absolute; top: -26px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 2px 8px; border-radius: 6px; font-size: .75rem; white-space: nowrap; }
.chart-bars small { color: var(--muted); font-size: .75rem; }
.chart-bars.zero { height: 120px; }
.chart-empty { position: absolute; inset: 0 0 26px; display: grid; place-items: center; color: var(--muted); font-size: .875rem; text-align: center; }
.offer-timer { height: 4px; background: var(--fill-2); border-radius: 4px; overflow: hidden; }
.offer-timer > div { height: 100%; background: var(--brand); transition: width 1s linear; }
.doc-thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--fill); cursor: zoom-in; }
.bubble { padding: 8px 12px; border-radius: 12px; margin-bottom: 6px; background: var(--fill); }
.bubble.mine { background: var(--sign-tint); }

/* ---------- Giriş sayfası ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 520px); background: var(--bg); }
.auth-art { padding: 40px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; background: var(--ink); color: #c6cdd9; }
.auth-art::after { content: ''; position: absolute; left: 56px; right: 56px; bottom: 96px; height: 4px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 36px, transparent 36px 64px); pointer-events: none; }
.auth-art h1 { font-size: clamp(3rem, 5.4vw, 4.75rem); line-height: .96; font-weight: 800; max-width: 620px; margin: 0 0 18px; color: #fff; }
.auth-art p { color: #c6cdd9; max-width: 460px; font-size: 1.0625rem; }
.auth-art a { color: #fff; }
.auth-art .brand-name { color: #fff; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.auth-form .box { width: 100%; max-width: 380px; }
.ticket { max-width: 440px; background: #fff; color: #18202e; border-radius: var(--r-lg); padding: 18px 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); --muted: #586173; --ink: #18202e; --surface: #fff; --line-strong: #c2c8d2; --brand-tint-2: #ffd5ca; }
.ticket .top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: .8125rem; color: #586173; }
.ticket .top b { color: #18202e; font-family: var(--mono); font-size: .9375rem; letter-spacing: .02em; }
.ticket .bot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px dashed #c2c8d2; font-size: .875rem; }
.ticket .code { font-family: var(--font-display); font-weight: 900; font-size: 1.875rem; letter-spacing: .14em; }
.role-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--fill-2); padding: 3px; border-radius: var(--r); margin-bottom: 20px; }
.role-pick button { border: none; background: transparent; border-radius: 8px; min-height: var(--ctl); padding: 6px; font: 600 .8125rem var(--font); color: var(--ink-2); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; }
.role-pick button i { font-size: 13px; color: var(--muted); }
.role-pick button[aria-pressed=true], .role-pick button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(24, 32, 46, .16); }
.role-pick button[aria-pressed=true] i { color: var(--brand-ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .role-pick button[aria-pressed=true] { background: var(--fill); }
  :root:not([data-theme="light"]) .auth-art { background: #070b13; }
}
:root[data-theme="dark"] .role-pick button[aria-pressed=true] { background: var(--fill); }
:root[data-theme="dark"] .auth-art { background: #070b13; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-form { align-items: flex-start; padding-top: 48px; } }

/* ---------- Hareketi azalt ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .live::after { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .tabbar { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.auth-art > .small.muted { color: #9aa4b6; }
.leaflet-bar a { background: var(--surface) !important; border-color: var(--line) !important; }
.leaflet-bar a.leaflet-disabled { color: var(--faint) !important; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 80%, transparent) !important; color: var(--muted) !important; }

:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
/* Görünüm seçimi (hesap menüsü) */
.theme-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.theme-pick .tabs button { min-height: 30px; padding: 0 10px; }
.popover .theme-pick button { width: auto; display: inline-flex; min-height: 30px; padding: 0 10px; border-radius: 8px; }
.popover .theme-pick button.active { background: var(--surface); box-shadow: 0 1px 2px rgba(24, 32, 46, .14); }
:root[data-theme="dark"] .popover .theme-pick button.active { background: var(--fill); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .popover .theme-pick button.active { background: var(--fill); } }
.theme-float { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 700; background: var(--bar); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* ---------- Hareket (v4) ----------
   Düğmeler basınca hafif çöker, bırakınca yaylanır; ana düğmede reflektör parıltısı geçer.
   Sayfa değişiminde içerik bir kez yükselir; göstergeler sayarak gelir (shell.js).
   Tümü prefers-reduced-motion ile kapanır. */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: background .18s, border-color .18s, color .18s, box-shadow .2s, transform .22s var(--spring); }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.96); transition-duration: .07s; }
.btn.primary:hover:not(:disabled) { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 8px 18px -8px color-mix(in srgb, var(--brand) 85%, transparent); }
.btn.primary::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 48%, transparent 64%); transform: translateX(-120%); transition: transform .6s var(--ease); pointer-events: none; }
.btn.primary:hover::after { transform: translateX(120%); }
.btn > i { transition: transform .25s var(--spring); }
.btn:hover > i.fa-plus { transform: rotate(90deg); }
.btn:hover > i.fa-motorcycle, .btn:hover > i.fa-arrow-right { transform: translateX(3px); }
.btn.icon:hover > i { transform: scale(1.12); }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .18; transform: scale(0); animation: ripple .55s var(--ease) forwards; z-index: -1; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.nav a { position: relative; transition: background .16s, color .16s; }
.nav a i { transition: transform .22s var(--spring), color .16s; }
.nav a:hover i { transform: translateX(2px); }
.nav a.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 3px 3px 0; background: var(--brand); animation: grow-y .3s var(--spring); }
@keyframes grow-y { from { transform: scaleY(0); } }
.nav a .count { animation: pop-in .35s var(--spring); }
@keyframes pop-in { from { transform: scale(.4); opacity: 0; } }

#view.enter > * { animation: rise .42s var(--ease) both; }
#view.enter > *:nth-child(2) { animation-delay: .05s; }
#view.enter > *:nth-child(3) { animation-delay: .1s; }
#view.enter > *:nth-child(n+4) { animation-delay: .14s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.tabs button, .role-pick button { transition: background .2s, color .2s, box-shadow .2s, transform .2s var(--spring); }
.tabs button:active, .role-pick button:active { transform: scale(.95); }
.input, select.input, textarea.input { transition: border-color .18s, box-shadow .22s, background .18s; }
.input:hover:not(:focus):not(:disabled) { border-color: color-mix(in srgb, var(--line-strong) 50%, var(--ink-2)); }
.check input { transition: transform .2s var(--spring); }
.check input:active { transform: scale(.85); }

.tbl tbody tr { transition: background .14s; }
button.list-item { transition: background .14s, padding-left .2s var(--ease); }
button.list-item:hover { padding-left: 24px; }
.card { transition: box-shadow .2s, border-color .2s; }
.badge { transition: background .2s, color .2s; }
.badge.brand::before, .badge.info::before { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

.modal { animation: modal-in .32s var(--spring); }
@keyframes modal-in { from { transform: translateY(14px) scale(.97); opacity: 0; } }
.toast { animation: toast-in .4s var(--spring); position: relative; overflow: hidden; }
.toast::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--brand); transform-origin: left; animation: toast-life 4s linear forwards; }
.toast.err::after { animation-duration: 6.5s; background: #ff8a7a; }
@keyframes toast-in { from { transform: translateX(24px) scale(.96); opacity: 0; } }
@keyframes toast-life { to { transform: scaleX(0); } }
.popover { animation: pop .2s var(--spring); transform-origin: top right; }
#bell.ring > i { animation: ring .9s ease-in-out; transform-origin: 50% 0; }
@keyframes ring { 15%, 45% { transform: rotate(14deg); } 30%, 60% { transform: rotate(-12deg); } 75% { transform: rotate(5deg); } }
#theme-btn > i { transition: transform .5s var(--spring); }
#theme-btn:active > i { transform: rotate(-40deg) scale(.85); }
.chart-bars .bar { transform-origin: bottom; animation: bar-up .6s var(--ease) both; }
.chart-bars .b:nth-child(2) .bar { animation-delay: .03s; } .chart-bars .b:nth-child(3) .bar { animation-delay: .06s; }
.chart-bars .b:nth-child(4) .bar { animation-delay: .09s; } .chart-bars .b:nth-child(5) .bar { animation-delay: .12s; }
.chart-bars .b:nth-child(6) .bar { animation-delay: .15s; } .chart-bars .b:nth-child(n+7) .bar { animation-delay: .18s; }
@keyframes bar-up { from { transform: scaleY(0); } }

/* Kontör uyarı şeridi ve üst çubuk göstergesi */
.kontor-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r-lg); margin-bottom: 16px; border: 1px solid var(--warn); background: var(--warn-tint); color: var(--warn); font-weight: 600; }
.kontor-bar.err { border-color: var(--err); background: var(--err-tint); color: var(--err); }
.kontor-bar .grow { color: var(--ink); font-weight: 500; }
.kontor-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: var(--r-sm); background: var(--fill); font: 700 .8125rem var(--font); color: var(--ink); text-decoration: none !important; white-space: nowrap; transition: background .15s, transform .2s var(--spring); }
.kontor-chip:hover { background: var(--fill-2); transform: translateY(-1px); }
.kontor-chip.low { background: var(--err-tint); color: var(--err); }
.kontor-chip i { color: var(--brand-ink); }
@media (max-width: 640px) { .kontor-chip span { display: none; } }
.main > .kontor-bar { margin: 16px 28px 0; max-width: 1384px; }
@media (max-width: 960px) { .main > .kontor-bar { margin: 12px 16px 0; } }
.pkg, .tariff-list button { position: relative; overflow: hidden; isolation: isolate; }

/* Fiyat modeli (tarife) seçici */
.tariff { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; }
.tariff-list { display: flex; flex-direction: column; gap: 4px; }
.tariff-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 12px; border-radius: var(--r); border: 1px solid transparent; background: var(--fill); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .15s, color .15s, transform .2s var(--spring); }
.tariff-list button:hover { transform: translateX(2px); }
.tariff-list button b { font-size: .875rem; }
.tariff-list button span { font-size: .75rem; color: var(--muted); }
.tariff-list button[aria-pressed=true] { background: var(--ink); color: var(--surface); }
.tariff-list button[aria-pressed=true] span { color: color-mix(in srgb, var(--surface) 75%, transparent); }
.tariff-ex { margin-top: 6px; padding: 10px 12px; border-radius: var(--r); background: var(--sign-tint); color: var(--ink-2); font-size: .8125rem; }
@media (max-width: 720px) { .tariff { grid-template-columns: 1fr; } .tariff-list { flex-direction: row; overflow-x: auto; } .tariff-list button { flex: none; } }
.range-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 9px; border-radius: var(--r-xs); border: 1px dashed var(--line-strong); background: transparent; color: var(--ink-2); font: 600 .8125rem var(--font); cursor: pointer; transition: background .15s, border-color .15s; }
.chip-btn:hover { background: var(--fill); border-color: var(--ink-2); }

/* Kontör paketleri */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pkg { border: 1.5px solid var(--line-strong); border-radius: var(--r-lg); padding: 14px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--ink); transition: border-color .15s, transform .22s var(--spring), box-shadow .2s; }
.pkg:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.pkg[aria-pressed=true] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint-2); }
.pkg .n { font: 800 2rem/1 var(--font-display); }
.pkg .p { color: var(--muted); font-size: .8125rem; margin-top: 6px; }

/* Anahtar (özellik aç/kapat) */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch-row:last-child { border-bottom: 0; }
.switch-row b { display: block; font-size: .875rem; }
.switch-row span { font-size: .8125rem; color: var(--muted); }
.switch { position: relative; width: 44px; height: 26px; flex: none; appearance: none; -webkit-appearance: none; margin: 0; border-radius: 26px; background: var(--fill-2); cursor: pointer; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .28s var(--spring); }
.switch:checked { background: var(--ok); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { box-shadow: var(--focus); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn:hover:not(:disabled) { transform: none; }
  button.list-item:hover { padding-left: 20px; }
  .btn.primary::after, .ripple { display: none; }
}

/* ---------- Düzen v5: tam genişlik, daralan kenar menü, alt menüler ---------- */
.content { max-width: none; }
.main { transition: margin-left .22s var(--ease); }
.side-btn { display: inline-flex; }
.side-toggle { display: flex; align-items: center; gap: 11px; margin: 4px 12px 14px; min-height: 2.25rem; padding: 6px 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); font: 500 .875rem var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.side-toggle:hover { background: var(--side-hover); color: var(--ink); }
.side-toggle i { width: 18px; text-align: center; transition: transform .3s var(--spring); }
.app.collapsed .side-toggle i { transform: rotate(180deg); }
.nav a .lbl, .nav-parent .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Alt menü grupları */
.nav-parent { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 2.25rem; padding: 6px 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-2); font: 500 .9375rem var(--font); text-align: left; cursor: pointer; margin-bottom: 1px; transition: background .16s, color .16s; }
.nav-parent:hover { background: var(--side-hover); color: var(--ink); }
.nav-parent > i:first-child { width: 18px; text-align: center; color: var(--muted); font-size: 14px; transition: transform .22s var(--spring); }
.nav-parent:hover > i:first-child { transform: translateX(2px); }
.nav-parent .chev { font-size: 11px; color: var(--muted); transition: transform .25s var(--ease); }
.nav-group.open .nav-parent .chev { transform: rotate(180deg); }
.nav-group.has-active > .nav-parent { color: var(--ink); font-weight: 650; }
.nav-group.has-active > .nav-parent > i:first-child { color: var(--brand); }
.nav-sub { display: none; position: relative; margin: 2px 0 6px 19px; padding-left: 10px; border-left: 2px solid var(--line); }
.nav-group.open .nav-sub { display: block; animation: rise .22s var(--ease); }
.nav a.sub { min-height: 2rem; font-size: .875rem; padding: 5px 10px; }
.nav a.sub i { font-size: 10px; width: 12px; }
.nav a.sub.active::before { left: -12px; }

@media (min-width: 961px) {
  .app.collapsed { --side-w: 72px; }
  .app.collapsed .sidebar { width: 72px; transition: width .22s var(--ease), box-shadow .22s; }
  .app.collapsed .sidebar .lbl,
  .app.collapsed .sidebar .nav-title,
  .app.collapsed .sidebar .chev,
  .app.collapsed .sidebar .nav-sub,
  .app.collapsed .sidebar .count { display: none !important; }
  .app.collapsed .sidebar .nav { overflow-x: hidden; }
  .app.collapsed .sidebar .nav a, .app.collapsed .sidebar .nav-parent, .app.collapsed .sidebar .side-toggle { justify-content: center; padding-left: 0; padding-right: 0; }
  .app.collapsed .sidebar .brand { justify-content: center; padding-left: 0; padding-right: 0; }
  .app.collapsed .sidebar .nav-group.has-active > .nav-parent { background: var(--side-active); }
  .app.collapsed .sidebar .nav-group.has-active > .nav-parent > i:first-child { color: var(--brand); }
}
@media (max-width: 960px) {
  .side-btn, .side-toggle { display: none !important; }
}

/* Modal: başlık ve alt çubuk sabit, yalnız gövde kayar (başlık alanların üstüne binmez) */
.modal-bg { align-items: flex-start; padding: 5vh 16px; overflow: hidden; }
.modal { display: flex; flex-direction: column; max-height: 90vh; max-height: 90dvh; }
.modal-h { position: static; flex: none; }
.modal-b { overflow-y: auto; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
.modal-f { flex: none; }
@media (max-width: 640px) { .modal-bg { padding: 6vh 0 0; } }

/* Giriş kutusu + sağ simge düğmesi (alıcı adı unvanı, telefon arama) */
.addon { position: relative; display: flex; }
.addon .input { padding-right: 46px; }
.addon > .addon-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: calc(var(--ctl) - 8px); border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
.addon > .addon-btn:hover, .addon > .addon-btn[aria-expanded=true] { background: var(--fill); color: var(--ink); }
.addon .menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 180px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-3); padding: 4px; animation: pop .16s var(--spring); }
.addon .menu button { display: flex; width: 100%; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.addon .menu button:hover, .addon .menu button:focus-visible { background: var(--fill); }
.title-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .8125rem; color: var(--ink-2); }
.title-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 2px; }

/* Ödeme türü simgeleri */
.pay-pick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 720px) { .pay-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pay-pick label { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 8px 4px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink-2); font-size: .75rem; font-weight: 650; text-align: center; line-height: 1.2; cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .2s var(--spring); }
.pay-pick label:hover { transform: translateY(-1px); border-color: var(--ink-2); }
.pay-pick label i { font-size: 20px; color: var(--muted); transition: color .15s, transform .25s var(--spring); }
.pay-pick input { position: absolute; opacity: 0; pointer-events: none; }
.pay-pick input:checked + label, .pay-pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--ink); }
.pay-pick label:has(input:checked) i { color: var(--brand-ink); transform: scale(1.1); }
.pay-pick label:has(input:focus-visible) { box-shadow: var(--focus); }

/* Adres: il / ilçe / mahalle / sokak */
.addr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 12px; }
@media (max-width: 860px) { .addr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-sec { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; font: 750 .8125rem var(--font); color: var(--ink-2); }
.form-sec::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.form-sec i { color: var(--brand-ink); }

/* Müşteri listesi */
.cust-list { max-height: 52vh; overflow-y: auto; margin: 10px -22px -22px; border-top: 1px solid var(--line); }
.cust-list button.list-item { padding-left: 22px; }

/* Güncel durum: solda liste, sağda harita */
.live-grid { display: grid; grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); gap: 16px; align-items: start; }
.live-grid .live-list { max-height: calc(100vh - 170px); overflow-y: auto; }
.live-grid .live-map { position: sticky; top: 76px; }
.live-grid .live-map .map { height: calc(100vh - 110px); min-height: 420px; }
@media (max-width: 1000px) { .live-grid { grid-template-columns: 1fr; } .live-grid .live-map { position: static; order: -1; } .live-grid .live-map .map { height: 360px; } .live-grid .live-list { max-height: none; } }
.live-card { display: block; width: 100%; text-align: left; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; cursor: pointer; transition: background .14s, box-shadow .14s; }
.live-card:hover, .live-card.sel { background: var(--fill); }
.live-card.sel { box-shadow: inset 4px 0 0 var(--brand); }
.live-card .t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.live-card .m { font-size: .8125rem; color: var(--muted); margin-top: 4px; }
.live-card .age { margin-left: auto; font-size: .75rem; color: var(--muted); white-space: nowrap; }
.live-card .age.late { color: var(--err); font-weight: 700; }

/* Periyodik rapor (PDF) önizleme kağıdı */
.paper { background: #fff; color: #18202e; max-width: 840px; margin: 0 auto; padding: 36px 40px; border-radius: 6px; box-shadow: var(--shadow-2); font: 12.5px/1.45 'Overpass', system-ui, sans-serif; }
.paper h2 { font: 800 28px/1 'Big Shoulders Display', sans-serif; color: #18202e; margin: 0; letter-spacing: .01em; }
.paper .ph { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 14px; border-bottom: 3px solid #ff5a3c; margin-bottom: 16px; }
.paper .ph .sm { color: #586173; font-size: 11.5px; }
.paper table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.paper th { text-align: left; font-size: 10.5px; color: #586173; border-bottom: 1px solid #c2c8d2; padding: 6px 6px; }
.paper td { border-bottom: 1px solid #e3e6eb; padding: 5px 6px; vertical-align: top; }
.paper .r { text-align: right; white-space: nowrap; }
.paper .sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #dadee5; border: 1px solid #dadee5; margin: 6px 0 16px; }
.paper .sum div { background: #fff; padding: 10px 12px; }
.paper .sum b { display: block; font: 800 20px/1.1 'Big Shoulders Display', sans-serif; margin-top: 2px; }
.paper .net { margin-top: 16px; padding: 12px 14px; background: #f1f2f5; border-left: 4px solid #ff5a3c; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.paper .foot { margin-top: 22px; color: #586173; font-size: 10.5px; display: flex; justify-content: space-between; }
.paper h4 { margin: 18px 0 4px; font-size: 13px; }

/* =================== v7: subdomain paneller, logo menüsü, günlük gösterge, sipariş işlemleri, vardiya, bölge, kurye paneli =================== */
/* Logo = menü düğmesi */
.sidebar .brand { width: 100%; border: 0; background: none; cursor: pointer; text-align: left; border-radius: var(--r); transition: background .15s; }
.sidebar .brand:hover { background: var(--side-hover); }
.sidebar .brand:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }
.sidebar .brand:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.brand-logo { transition: transform .25s var(--spring); }
.role-pick { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 420px) { .role-pick { grid-template-columns: repeat(2, 1fr); } }

/* Bildirim kutusu */
.bell-n { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: var(--on-brand); font: 700 .6875rem/18px var(--font); text-align: center; }
#bell:has(.bell-n:not(.hidden)) #bell-dot { display: none; }
.bell-list { margin: 0 -22px -22px; max-height: 60vh; overflow-y: auto; }
.bell-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 22px; border-top: 1px solid var(--line); }
.bell-item.unread { background: var(--brand-tint); }
.bell-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--fill); color: var(--ink-2); flex: none; }
.bell-ic.brand { background: var(--brand-tint); color: var(--brand-ink); } .bell-ic.ok { background: var(--ok-tint); color: var(--ok); }
.bell-ic.warn { background: var(--warn-tint); color: var(--warn); } .bell-ic.info { background: var(--info-tint); color: var(--info); }

/* Günlük gösterge */
.day-bar { align-items: center; }
.day-t { display: flex; flex-direction: column; min-width: 150px; text-align: center; }
.day-t b { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .01em; }
.delta { font-size: .75rem; color: var(--muted); }
.delta.up { color: var(--ok); } .delta.down { color: var(--err); }
.hbar { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto auto; gap: 10px; align-items: center; padding: 7px 0; font-size: .875rem; }
.hbar-t { height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.hbar-t span { display: block; height: 100%; border-radius: 4px; background: var(--brand); transition: width .5s var(--ease); }
.hbar.ok .hbar-t span { background: var(--ok); } .hbar.warn .hbar-t span { background: var(--warn); } .hbar.err .hbar-t span { background: var(--err); }
.hbar small { min-width: 70px; text-align: right; }
.hero-cta { box-shadow: inset 4px 0 0 var(--brand), var(--shadow-1); }
.hero-cta .card-b { padding: 20px 24px; gap: 20px; align-items: center; }
.hero-cta h2 { margin: 2px 0 4px; }

/* Güncel durum: tablo %60 + harita %40 */
.live-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.live-split .live-tbl { min-width: 0; }
.live-split .live-tbl .tbl-wrap { max-height: calc(100vh - 170px); overflow: auto; }
.live-split .live-map { position: sticky; top: 76px; }
.live-split .live-map .map { height: calc(100vh - 150px); min-height: 420px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.live-t thead th { position: sticky; top: 0; background: var(--card); z-index: 1; }
.live-t tbody tr { cursor: pointer; }
.live-t tbody tr:hover { background: var(--fill); }
.live-t tbody tr.sel { background: var(--brand-tint); box-shadow: inset 4px 0 0 var(--brand); }
.live-t tbody tr.late td:first-child { box-shadow: inset 3px 0 0 var(--err); }
.live-t .clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-t td { vertical-align: middle; }
.age { font-weight: 700; font-variant-numeric: tabular-nums; } .age.late { color: var(--err); }
.tab-n { font-size: .75rem; color: var(--muted); font-weight: 600; } .tab-n.late { color: var(--err); }
.map-legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 14px; color: var(--muted); }
.pin-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.pin-dot.dark { background: #18202e; } .pin-dot.brand { background: var(--brand); } .pin-dot.ok { background: #12703a; } .pin-dot.gray { background: #7d8596; }
.pin.err { background: #c8321e; }
@media (max-width: 1100px) { .live-split { grid-template-columns: 1fr; } .live-split .live-map { position: static; order: -1; } .live-split .live-map .map { height: 340px; } .live-split .live-tbl .tbl-wrap { max-height: none; } }

/* Sipariş işlemleri menüsü */
.order-menu { min-width: 220px; }
.zone-warn { background: var(--err-50); border-color: var(--err-tint); color: var(--err); gap: 10px; margin-bottom: 10px; }

/* Bölge haritası */
.zone-split { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.zone-map { height: calc(100vh - 140px); min-height: 460px; border-radius: var(--r-lg); cursor: crosshair; }
.zone-steps { padding-left: 18px; margin: 4px 0 14px; color: var(--ink-2); line-height: 1.6; }
.zone-v { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); color: #18202e; font: 800 10px/16px var(--font); text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); cursor: grab; }
@media (max-width: 900px) { .zone-split { grid-template-columns: 1fr; } .zone-map { height: 420px; } }

/* Vardiya planı */
.shift-t th, .shift-t td { padding-left: 6px; padding-right: 6px; }
.shift-c { min-width: 108px; }
.shift-c .input { min-height: 30px; padding: 2px 6px; font: 500 .8125rem var(--mono); width: 100%; }
.shift-c .input + .input { margin-top: 4px; }
.shift-c .input:placeholder-shown, .shift-c .input:invalid { color: var(--faint); }
tr.row-err td { background: var(--err-50); } tr.row-warn td { background: var(--warn-50); }

/* Destek şeridi */
.support-strip { gap: 14px; align-items: center; flex-wrap: wrap; }
.support-strip > i { font-size: 22px; color: var(--brand); }

/* ---------- Kurye paneli ---------- */
.k-sw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--fill-2); padding: 4px; border-radius: var(--r); }
.k-sw button { min-height: 52px; border: 0; border-radius: calc(var(--r) - 3px); background: transparent; font: 700 .9375rem var(--font); color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.k-sw button i { font-size: 16px; color: var(--muted); }
.k-sw button[aria-checked=true] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.k-sw button.ok[aria-checked=true] i { color: var(--ok); } .k-sw button.warn[aria-checked=true] i { color: var(--warn); }
.k-banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); margin-bottom: 12px; background: var(--warn-50); color: var(--ink); }
.k-banner.err { background: var(--err-50); } .k-banner > i { font-size: 20px; color: var(--warn); } .k-banner.err > i { color: var(--err); }
.k-job { box-shadow: inset 0 4px 0 var(--brand), var(--shadow-1); }
.k-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; counter-reset: s; }
.k-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); position: relative; }
.k-steps li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); color: var(--muted); font-weight: 800; }
.k-steps li.done span { background: var(--ok); color: #fff; } .k-steps li.done { color: var(--ok); }
.k-steps li.cur span { background: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 4px var(--brand-tint); } .k-steps li.cur { color: var(--ink); }
.k-stop { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); margin-top: 8px; opacity: .62; }
.k-stop.on { opacity: 1; border-color: var(--brand); background: var(--brand-50); }
.k-stop > i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--fill); flex: none; }
.k-stop.on > i { background: var(--brand); color: var(--on-brand); }
.k-pay { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px; margin-top: 8px; border-radius: var(--r); background: var(--fill); }
.k-pay > i { color: var(--brand-ink); }
.k-offer { padding: 14px 18px; border-top: 1px solid var(--line); }
.k-offer .row { gap: 8px; }
.k-earn { font-family: var(--font-display); font-size: 1.25rem; color: var(--ok); }
.k-code { font: 800 1.75rem var(--mono); letter-spacing: .5em; text-align: center; min-height: 58px; }
.k-week { display: grid; grid-template-columns: repeat(7, 1fr); }
.k-day { display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; border-left: 1px solid var(--line); align-items: flex-start; }
.k-day:first-child { border-left: 0; } .k-day.today { background: var(--brand-50); box-shadow: inset 0 3px 0 var(--brand); }
@media (max-width: 760px) { .k-week { grid-template-columns: 1fr; } .k-day { flex-direction: row; align-items: center; flex-wrap: wrap; border-left: 0; border-top: 1px solid var(--line); } .k-day b { min-width: 90px; } }
.k-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.k-doc { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px dashed var(--line-strong); border-radius: var(--r); cursor: pointer; text-align: center; align-items: center; }
.k-doc:hover { background: var(--fill); } .k-doc:focus-within { outline: 2px solid var(--focus); }
.k-doc img { width: 100%; height: 80px; object-fit: cover; border-radius: 8px; } .k-doc > i { font-size: 28px; color: var(--faint); height: 80px; display: grid; place-items: center; }
.k-doc.approved { border-style: solid; border-color: var(--ok); } .k-doc.rejected { border-style: solid; border-color: var(--err); } .k-doc.rejected .small { color: var(--err); }
.live-t th, .live-t td { padding-left: 8px; padding-right: 8px; }
.live-t th:first-child, .live-t td:first-child { padding-left: 14px; }
.live-t .clip { max-width: 200px; }
.live-t .clip-s { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-t .badge { white-space: nowrap; }
@media (min-width: 1500px) { .live-t .clip { max-width: 280px; } }
/* Nakit yönetimi */
.cash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.cash-card .card-h { gap: 10px; }
.cash-total { font-family: var(--font-display); font-size: 1.375rem; }
.cash-row { display: flex; gap: 10px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); }
