:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #eef2f0;
  --text: #15201c;
  --muted: #64716c;
  --line: #dfe5e2;
  --accent: #0e9f6e;
  --accent-ink: #ffffff;
  --accent-soft: #dcf3ea;
  --accent-2: #3b6fd8;
  --warn: #c2410c;
  --warn-soft: #fdeee4;
  --danger: #c62828;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(16 24 20 / .05), 0 4px 16px rgb(16 24 20 / .04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1412;
    --surface: #121d1a;
    --surface-2: #182622;
    --text: #e6eeeb;
    --muted: #8b9a95;
    --line: #22332e;
    --accent: #2fd29a;
    --accent-ink: #062018;
    --accent-soft: #123a2d;
    --accent-2: #7aa2ff;
    --warn: #fb923c;
    --warn-soft: #3a2414;
    --danger: #f87171;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0; letter-spacing: -.02em; }
h2 { font-size: 1rem; margin: 0; }
small, .small { font-size: .82rem; }
.muted { color: var(--muted); }
.d-block { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- üst bar & menü ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  padding: 10px max(16px, env(safe-area-inset-left)); padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); white-space: nowrap; }
.brand svg { color: var(--accent); fill: var(--accent); stroke: none; width: 22px; height: 22px; }
.brand:hover { text-decoration: none; }
.carpick { position: relative; }
.carpick summary { list-style: none; cursor: pointer; padding: 6px 10px 6px 6px; margin-left: -6px; border-radius: 10px; }
.carpick summary::-webkit-details-marker { display: none; }
.carpick summary:hover, .carpick[open] summary { background: var(--surface-2); }
.carpick .chev { width: 16px; height: 16px; color: var(--muted); fill: none; stroke: currentColor; transition: transform .15s; }
.carpick[open] .chev { transform: rotate(180deg); }
.carmenu {
  position: absolute; top: calc(100% + 6px); left: -6px; z-index: 30; min-width: 220px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgb(0 0 0 / .12); display: grid; gap: 2px;
}
.carmenu .lbl { padding: 4px 10px 6px; }
.carmenu a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); font-weight: 500; }
.carmenu a:hover { background: var(--surface-2); text-decoration: none; }
.carmenu a.on { color: var(--accent); font-weight: 600; }
.carmenu a svg { width: 18px; height: 18px; }
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px;
  color: var(--muted); font-weight: 500;
}
.nav a svg { width: 18px; height: 18px; }
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.on { background: var(--accent-soft); color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.btn.block { width: 100%; min-height: 48px; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.link:hover { color: var(--text); text-decoration: underline; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px; }
.foot { max-width: 1180px; margin: 0 auto; padding: 0 16px 32px; display: flex; gap: 20px; font-size: .85rem; }
.foot a { color: var(--muted); }

.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.head-row p { margin: 4px 0 0; }

.flash {
  padding: 10px 14px; border-radius: 10px; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.flash.err { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.note { color: var(--muted); font-size: .85rem; margin: -6px 0 18px; }

select, input {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-height: 42px; width: 100%;
}
input:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 1px; border-color: var(--accent); }
.period select { width: auto; min-width: 210px; }
.search { width: 260px; max-width: 100%; }

/* ---------- kartlar ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-h a { font-size: .85rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid2 > .card { min-width: 0; }

.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.kpi .lbl, .lbl { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi .val { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.kpi .val small { font-size: .85rem; font-weight: 500; color: var(--muted); margin-left: 2px; }
.kpi .sub { font-size: .82rem; color: var(--muted); }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.full { grid-column: 1 / -1; }

/* büyük kartlar: toplam harcama & gidilen yol */
.kpi.big { flex-direction: row; align-items: center; gap: 20px; padding: 22px 24px; }
.big-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.kpi.big .big-main .val { font-size: 2.6rem; }
.big-side { display: flex; flex-direction: column; gap: 10px; padding-left: 20px; border-left: 1px solid var(--line); }
.big-side > div { display: flex; flex-direction: column; }
.big-side b { font-size: 1.35rem; letter-spacing: -.01em; }
.kpi.hero { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kpi.hero .lbl, .kpi.hero .sub, .kpi.hero .val small { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
.kpi.hero .big-side { border-left-color: color-mix(in srgb, var(--accent-ink) 25%, transparent); }

/* bakıma kalan: --h (0 kırmızı … 140 yeşil) ile renklenir */
.kpi.service {
  --tone: hsl(var(--h) 72% 36%);
  background: color-mix(in srgb, hsl(var(--h) 80% 50%) 10%, var(--surface));
  border-color: color-mix(in srgb, hsl(var(--h) 80% 45%) 45%, var(--line));
  justify-content: center; padding: 18px 22px;
}
.kpi.service .val { color: var(--tone); font-size: 2.1rem; }
.svc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.gauge {
  position: relative; height: 10px; margin: 10px 0 6px; border-radius: 99px; overflow: hidden;
  background: linear-gradient(90deg, hsl(0 80% 50% / .16), hsl(28 92% 52% / .16), hsl(48 95% 50% / .16), hsl(95 60% 45% / .16), hsl(140 60% 40% / .16));
}
.gauge i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, hsl(max(0, calc(var(--h) - 30)) 85% 48%), hsl(var(--h) 75% 45%));
}
.gauge-scale { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: var(--muted); }
.gauge-scale .link { font-size: .78rem; color: var(--tone); font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .kpi.service { --tone: hsl(var(--h) 75% 62%); background: color-mix(in srgb, hsl(var(--h) 70% 45%) 14%, var(--surface)); }
}

/* ikili kutular */
.kpi.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
.duo > div { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; }
.duo > div + div { border-left: 1px solid var(--line); }
.duo b { font-size: 1.4rem; letter-spacing: -.01em; }

.legend { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; }
.sw.a { background: var(--accent); } .sw.b { background: var(--accent-2); } .sw.c { background: color-mix(in srgb, var(--muted) 45%, transparent); }
.chart { position: relative; height: 260px; width: 100%; min-width: 0; }
.chart canvas { max-width: 100%; }
.card { min-width: 0; }

.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--line); }
.list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; color: var(--text); }
.list a:hover { text-decoration: none; }
.list a:hover b { color: var(--accent); }
.list span { display: flex; flex-direction: column; min-width: 0; }
.list .r { text-align: right; }
.list small { color: var(--muted); }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 96px 1fr 34px 66px; align-items: center; gap: 10px; font-size: .9rem; }
.bars .n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .c, .bars .p { text-align: right; color: var(--muted); }
.bar { display: block; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* ---------- tablolar ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); font-weight: 600; }
.tbl .n { text-align: right; }
.tbl .strong, .strong { font-weight: 600; }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.tbl tr.grp td { background: var(--bg); font-weight: 700; font-size: .8rem; color: var(--muted); padding: 14px 12px 6px; }
.tbl tr:target td { background: var(--accent-soft); }
.tbl td.odd { color: var(--warn); }
.tbl td.op { white-space: normal; }
.tbl .act a { font-size: .85rem; }
.barcell { min-width: 200px; }
.barcell .bar { display: inline-block; width: 90px; vertical-align: middle; margin-right: 10px; }
.tag { display: inline-block; font-size: .7rem; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); vertical-align: 1px; }
.tag.now { background: var(--accent-soft); color: var(--accent); }

/* ---------- formlar ---------- */
.form h2 { margin-bottom: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.fields.one { grid-template-columns: 1fr; }
.fields label, .stack label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.fields .wide { grid-column: 1 / -1; }
.fields input { color: var(--text); font-weight: 500; font-size: 1rem; }
form.form { max-width: 720px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.chip { font: inherit; font-size: .82rem; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.live { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 12px; background: var(--surface-2); border-radius: 10px; margin-bottom: 8px; }
.live > div { display: flex; flex-direction: column; }
.live b { font-size: 1.05rem; }
.live b.bad { color: var(--danger); }
.danger-zone { max-width: 720px; margin-top: 16px; text-align: right; }
.empty { text-align: center; padding: 48px 18px; }
.stack-forms { display: grid; gap: 16px; max-width: 720px; }
.mb { margin-bottom: 16px; }
.crumb { margin: 0 0 6px; font-size: .85rem; }
.linkcard { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text); }
.linkcard:hover { text-decoration: none; border-color: var(--accent); }
.linkcard span { display: flex; flex-direction: column; }
.linkcard svg { color: var(--muted); }
.secret { border-color: var(--accent); background: var(--accent-soft); }
.secret p { margin: 0 0 10px; }
.secret-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.secret code { font-size: 1.15rem; font-weight: 700; padding: 8px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); user-select: all; }
.user-row { border-bottom: 1px solid var(--line); }
.user-row:last-child { border-bottom: 0; }
.user-row summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.user-row summary::-webkit-details-marker { display: none; }
.user-row summary:hover { background: var(--surface-2); }
.user-row .who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.user-row .chev { color: var(--muted); transition: transform .15s; }
.user-row[open] .chev { transform: rotate(180deg); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 700; flex: none; }
.user-edit { padding: 4px 18px 18px 64px; display: grid; gap: 14px; }
.role-form { display: grid; gap: 12px; justify-items: start; }
.user-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); gap: 2px; margin-bottom: 4px; }
.seg label { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.seg label:has(input:checked) { background: var(--surface); box-shadow: var(--shadow); color: var(--accent); }
.seg input { accent-color: var(--accent); width: auto; min-height: 0; margin: 0; }
.cars { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.cars legend { padding: 0; margin-bottom: 8px; }
.cars[disabled] { opacity: .45; }
.chk { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.chk input { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
form.card.form .seg { margin-bottom: 14px; }
.history { padding-bottom: 8px; }
#gecmis { margin-top: 16px; }
#gecmis .hist-stats { margin-bottom: 0; }
.veh .tbl.past { margin: 0; width: 100%; }
.veh .hist-foot { padding: 0 18px 8px; line-height: 1.7; }
.tbl.past td.spend b { display: block; }
.tbl.past td.spend small { display: block; color: var(--muted); font-size: .78rem; }
.hist-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.hist-stats > div { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.hist-stats b { font-size: 1.3rem; letter-spacing: -.01em; }
.tbl.past { margin: 0 -18px; width: calc(100% + 36px); }
.tbl.past td:first-child { width: 42%; }
.tbl.past .share { display: flex; align-items: center; gap: 8px; margin: 6px 0 0 34px; max-width: 380px; }
.tbl.past .share .bar { flex: 1; height: 5px; }
.tbl.past .share small { min-width: 42px; text-align: right; color: var(--muted); font-weight: 600; }
.tbl.past tr.now td { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.hist-foot { margin: 12px 0 6px; }
.hist-foot b { color: var(--text); font-weight: 600; }
.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
  font-style: normal; font-size: .68rem; font-weight: 700; line-height: 1; min-width: 17px; height: 17px; padding: 0 5px;
  display: inline-grid; place-items: center; border-radius: 99px; background: var(--warn); color: #fff; margin-left: 2px;
}
.ok-line { margin: 0; }
.issue + .issue { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.issue > p { margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
.issue > p b { color: var(--text); }
.fix-list { display: grid; gap: 10px; }
.fix-row { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.fix-info { display: flex; flex-direction: column; }
.fix-info small { color: var(--muted); }
.fix-form { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px; align-items: end; }
.fix-form label { display: flex; flex-direction: column; gap: 4px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.fix-form input.need { border-color: var(--warn); background: color-mix(in srgb, var(--warn-soft) 60%, var(--surface)); }
.fix-form .btn { min-height: 42px; }
.plain { margin: 0; padding-left: 18px; font-size: .9rem; }
.fields.name-row { grid-template-columns: 1fr 9.5rem; }
.rank {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; margin-right: 10px;
  border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: .75rem; font-weight: 700;
}
.tbl.ops tr:nth-child(-n+3) .rank { background: var(--accent-soft); color: var(--accent); }
.tbl.ops tr.more { display: none; }
.tbl.ops.all tr.more { display: table-row; }
.showall {
  display: block; width: 100%; padding: 13px; border: 0; border-top: 1px solid var(--line);
  background: var(--surface); color: var(--accent); font: inherit; font-weight: 600; cursor: pointer;
}
.showall:hover { background: var(--surface-2); }

/* ---------- giriş ---------- */
body.bare { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; }
.login { width: min(360px, 100%); text-align: center; }
.login h1 { margin-top: 12px; }
.login p { margin: 4px 0 22px; }
.login-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent); }
.login-mark svg { width: 30px; height: 30px; fill: var(--accent-ink); stroke: none; }
.stack { display: grid; gap: 14px; text-align: left; }

/* ---------- mobil ---------- */
@media (max-width: 900px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .span3 { grid-column: 1 / -1; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body:not(.bare) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .wrap { padding: 16px 16px 28px; }
  .top { justify-content: space-between; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .add span { display: none; }
  .add { min-height: 38px; padding: 6px 10px; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; margin: 0; gap: 0; z-index: 20;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line);
    justify-content: space-around;
  }
  .nav a { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: .68rem; flex: 1; text-align: center; border-radius: 8px; }
  .nav a svg { width: 22px; height: 22px; }
  .nav a.on { background: none; }
  h1 { font-size: 1.35rem; }
  .head-row { margin-bottom: 14px; }
  .period, .period select, .search { width: 100%; }
  .kpi { padding: 13px 14px; }
  .kpi .val { font-size: 1.3rem; }
  .kpi.big { padding: 16px; gap: 14px; }
  .kpi.big .big-main .val { font-size: 1.9rem; }
  .big-side { padding-left: 14px; gap: 6px; }
  .big-side b { font-size: 1.1rem; }
  .kpi.service .val { font-size: 1.7rem; }
  .duo > div { padding: 13px 14px; }
  .duo b { font-size: 1.15rem; }
  .chart { height: 220px; }
  .fields { grid-template-columns: 1fr 1fr; gap: 12px; }
  .live { grid-template-columns: 1fr 1fr; }
  .bars li { grid-template-columns: 84px 1fr 30px 62px; gap: 8px; }
  .fields.name-row { grid-template-columns: 1fr 6.5rem; }
  .tbl.ops.all tr.more { display: grid; }
  .fix-form { grid-template-columns: 1fr 1fr; }
  .user-edit { padding: 4px 18px 18px; }
  .head-row > div { min-width: 0; max-width: 100%; }
  .head-row p.one-line { font-size: .9rem; }

  /* aylık: ay + harcama üstte, 3x2 ayrıntı, en altta "o aydan beri" tek satır */
  .hist-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hist-stats > div { padding: 10px 12px; }
  .hist-stats b { font-size: 1.1rem; white-space: nowrap; }
  .tbl.past tr.now { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
  .tbl.past tr.now td { background: none; }
  .tbl.past { margin: 0 -18px; }
  .tbl.past td:first-child { width: auto; grid-column: 1 / 3; grid-row: 1; }
  .tbl.past td:nth-child(3) { grid-column: 3; grid-row: 1; text-align: right !important; }
  .tbl.past td:nth-child(3)::before { display: none; }
  .veh .tbl.past { margin: 0; }
  .tbl.past td.spend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
    padding-top: 8px !important; border-top: 1px dashed var(--line); margin-top: 2px; }
  .tbl.past td.spend::before { width: 100%; }
  .tbl.past td.spend b { display: inline; }
  .tbl.past td.spend small { display: inline; }
  .tbl.past .share { max-width: none; }
  .tbl.mon tr { gap: 8px 12px; }
  .tbl.mon td:nth-child(1) { grid-column: 1 / 3; grid-row: 1; align-self: center; }
  .tbl.mon td:nth-child(5) { grid-column: 3; grid-row: 1; text-align: right !important; font-size: 1.05rem; }
  .tbl.mon td:nth-child(5)::before { display: none; }
  .tbl.mon td:nth-child(2) { grid-row: 2; grid-column: 1; }
  .tbl.mon td:nth-child(3) { grid-row: 2; grid-column: 2; }
  .tbl.mon td:nth-child(4) { grid-row: 2; grid-column: 3; }
  .tbl.mon td:nth-child(6) { grid-row: 3; grid-column: 1; }
  .tbl.mon td:nth-child(7) { grid-row: 3; grid-column: 2; }
  .tbl.mon td:nth-child(8) { grid-row: 3; grid-column: 3; }
  .tbl.mon td.since { grid-row: 4; grid-column: 1 / -1; display: flex; gap: 6px; align-items: baseline; font-size: .85rem; }
  .tbl.mon td.since::before { display: inline; }
  .nav a { position: relative; }
  .nav .badge { position: absolute; top: 2px; left: 50%; margin-left: 6px; }
  .tbl.ops tr { gap: 8px 12px; }
  .tbl.ops td:nth-child(1) { grid-column: 1 / 3; grid-row: 1; display: flex; align-items: center; }
  .tbl.ops td:nth-child(2) { grid-column: 3; grid-row: 1; text-align: right !important; }
  .tbl.ops td:nth-child(4) { grid-row: 2; }
  .tbl.ops td:nth-child(3) { grid-column: 1; grid-row: 3; }
  .tbl.ops td:nth-child(5) { grid-column: 2; grid-row: 3; }
  .tbl.ops td:nth-child(6) { grid-column: 3; grid-row: 3; }
  .tbl.ops td:nth-child(7) { display: none; }
  .tbl.ops .barcell .bar { width: calc(100% - 90px); }

  /* tabloları kart satırlarına çevir */
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl tr { padding: 10px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 12px; }
  .tbl tr.grp { display: block; padding: 0; }
  .tbl tr.grp td { padding: 12px 14px 6px; }
  .tbl td { border: 0; padding: 0; text-align: left !important; white-space: normal; }
  .tbl td[data-l]::before { content: attr(data-l); display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .tbl td:first-child { grid-column: 1 / 3; font-weight: 600; }
  .tbl td:first-child::before { display: none; }
  .tbl.charges td.op { grid-column: 3; grid-row: 1; text-align: right !important; font-weight: 600; }
  .tbl.charges td.op::before { display: none; }
  .tbl.charges td:first-child::before, .tbl td.act { display: none; }
  .tbl.charges tr { cursor: pointer; }
  .tbl.charges td.pil { display: none; }
  .barcell { min-width: 0; grid-column: 1 / -1; }
  .barcell .bar { width: 50%; }
}
