/* ───────── Çek Takip · tasarım sistemi ───────── */
:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --ink: #0e1726;
  --ink-2: #3b475c;
  --muted: #6b7a90;
  --line: #e4e8f0;
  --line-2: #eef1f6;
  --brand: #2f54eb;
  --brand-ink: #1d3fc4;
  --brand-soft: #e8edff;
  --in: #0b9467;
  --in-soft: #e1f5ec;
  --out: #dc3f45;
  --out-soft: #fdebec;
  --warn: #b86e00;
  --warn-soft: #fff2d9;
  --info: #2a6fdb;
  --info-soft: #e6f0ff;
  --violet: #7048e8;
  --violet-soft: #efeaff;
  --gray-soft: #eef0f4;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-2: 0 8px 24px rgba(16, 24, 40, .08), 0 2px 6px rgba(16, 24, 40, .05);
  --shadow-3: 0 24px 60px rgba(16, 24, 40, .22);
  --side-bg: #0c1424;
  --side-ink: #a8b6d0;
  --side-active: rgba(255, 255, 255, .09);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
}
:root[data-theme="dark"] {
  --bg: #0a101b;
  --surface: #111a2a;
  --surface-2: #152033;
  --ink: #e7ecf6;
  --ink-2: #b4c0d6;
  --muted: #8493ad;
  --line: #22304a;
  --line-2: #1a2740;
  --brand: #6f8dff;
  --brand-ink: #9db2ff;
  --brand-soft: #1b2850;
  --in: #3fcf9b;
  --in-soft: #11382d;
  --out: #ff7378;
  --out-soft: #3d1b20;
  --warn: #f0b04a;
  --warn-soft: #3a2c10;
  --info: #6ea7ff;
  --info-soft: #162b4d;
  --violet: #a58bff;
  --violet-soft: #2a2050;
  --gray-soft: #1c2740;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .4);
  --shadow-3: 0 24px 60px rgba(0, 0, 0, .6);
  --side-bg: #070c16;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a101b; --surface: #111a2a; --surface-2: #152033; --ink: #e7ecf6; --ink-2: #b4c0d6;
    --muted: #8493ad; --line: #22304a; --line-2: #1a2740; --brand: #6f8dff; --brand-ink: #9db2ff;
    --brand-soft: #1b2850; --in: #3fcf9b; --in-soft: #11382d; --out: #ff7378; --out-soft: #3d1b20;
    --warn: #f0b04a; --warn-soft: #3a2c10; --info: #6ea7ff; --info-soft: #162b4d; --violet: #a58bff;
    --violet-soft: #2a2050; --gray-soft: #1c2740; --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-2: 0 8px 24px rgba(0, 0, 0, .4); --shadow-3: 0 24px 60px rgba(0, 0, 0, .6); --side-bg: #070c16;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px;
  line-height: 1.45; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.011em; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ───────── Kabuk ───────── */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side {
  background: var(--side-bg); color: var(--side-ink); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; padding: 18px 14px; z-index: 30;
  background-image: radial-gradient(120% 60% at 0% 0%, rgba(47, 84, 235, .22), transparent 60%);
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 4px 8px 18px; color: #fff; }
.brand-logo { width: 118px; height: auto; display: block; }
.auth-logo { width: 150px; height: auto; display: block; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(145deg, #4b6bff, #2441c9); box-shadow: 0 6px 16px rgba(47, 84, 235, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.brand-mark svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -.02em; line-height: 1.1; }
.brand-sub { font-size: 11px; color: var(--side-ink); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); align-self: stretch; }
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #5f7094; padding: 14px 10px 6px; font-weight: 600; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: var(--side-ink);
  font-weight: 500; position: relative; text-decoration: none; transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav a.on { background: var(--side-active); color: #fff; }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: #6f8dff; }
.nav .badge-n { margin-left: auto; background: var(--out); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; min-width: 20px; text-align: center; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg, #5b78ff, #3a55d8); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.user-card .u-ad { color: #fff; font-weight: 600; font-size: 13px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 108px; }
.user-card .u-rol { font-size: 11.5px; color: #7f90ae; }
.side-tools { display: flex; gap: 6px; margin-left: auto; }
.side-tools button { background: transparent; border: 0; color: var(--side-ink); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.side-tools button:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 32px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar .menu-btn { display: none; }
.page-title { font-size: 20px; letter-spacing: -.02em; }
.search { position: relative; margin-left: auto; width: min(380px, 38vw); }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; pointer-events: none; }
.search input { width: 100%; padding: 9px 44px 9px 36px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; box-shadow: var(--shadow-1); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 11px var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: var(--surface-2); }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); overflow: hidden; z-index: 40; }
.suggest button { display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; padding: 9px 12px; border: 0; background: transparent; cursor: pointer; }
.suggest button:hover, .suggest button.hot { background: var(--surface-2); }
.suggest .s-baslik { padding: 8px 12px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.content { padding: 26px 32px 80px; max-width: 1440px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { font-size: 24px; letter-spacing: -.025em; }
.page-head .sub { color: var(--muted); margin-top: 3px; }
.page-head .grow { flex: 1; }

/* ───────── Bileşenler ───────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; }
.card-h h3 { font-size: 14.5px; }
.card-h .sub { color: var(--muted); font-size: 12.5px; }
.card-h .grow { flex: 1; }
.card-b { padding: 16px 20px 20px; }
.grid { display: grid; gap: 18px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.hr { height: 1px; background: var(--line); margin: 14px 0; border: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow-1); transition: background .12s, border-color .12s, transform .06s, box-shadow .12s; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--line) 60%, var(--muted)); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(20, 40, 160, .35), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
:root[data-theme="dark"] .btn-primary { color: #0a1030; }
.btn-in { background: var(--in); border-color: var(--in); color: #fff; }
.btn-in:hover { background: color-mix(in srgb, var(--in) 86%, #000); border-color: transparent; }
.btn-danger { color: var(--out); }
.btn-danger:hover { background: var(--out-soft); border-color: var(--out); }
.btn-solid-danger { background: var(--out); border-color: var(--out); color: #fff; }
.btn-solid-danger:hover { background: color-mix(in srgb, var(--out) 85%, #000); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--gray-soft); border-color: transparent; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn-icon { padding: 7px; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: dön .7s linear infinite; }
@keyframes dön { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .err { font-size: 12px; color: var(--out); font-weight: 500; }
.input, .select, textarea.input {
  width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; transition: border-color .12s, box-shadow .12s; min-height: 38px;
}
textarea.input { resize: vertical; min-height: 72px; }
.input:hover, .select:hover { border-color: color-mix(in srgb, var(--line) 55%, var(--muted)); }
.input:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.input.bad { border-color: var(--out); }
.input.money { font-weight: 650; font-size: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b7a90' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.input-group { display: flex; gap: 8px; }
.input-group .select { width: 92px; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); padding: 5px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .12s; white-space: nowrap;
}
.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip.warn.on { background: var(--warn); border-color: var(--warn); color: #fff; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--gray-soft); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.seg button.on.in { color: var(--in); }
.seg button.on.out { color: var(--out); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.b-gray { background: var(--gray-soft); color: var(--ink-2); }
.b-green { background: var(--in-soft); color: var(--in); }
.b-red { background: var(--out-soft); color: var(--out); }
.b-amber { background: var(--warn-soft); color: var(--warn); }
.b-blue { background: var(--info-soft); color: var(--info); }
.b-violet { background: var(--violet-soft); color: var(--violet); }

.dir { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; flex: none; }
.dir svg { width: 15px; height: 15px; stroke-width: 2.2; }
.dir.in { background: var(--in-soft); color: var(--in); }
.dir.out { background: var(--out-soft); color: var(--out); }

.amount { font-variant-numeric: tabular-nums; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }
.amount .k { font-weight: 500; opacity: .55; }
.amount .cur { font-weight: 500; color: var(--muted); margin-left: 3px; font-size: .86em; }
.in-t { color: var(--in); } .out-t { color: var(--out); } .warn-t { color: var(--warn); }

.pill { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.late { background: var(--out-soft); color: var(--out); }
.pill.today { background: var(--warn-soft); color: var(--warn); }
.pill.soon { background: var(--info-soft); color: var(--info); }
.pill.far { background: var(--gray-soft); color: var(--muted); }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .e-ico { width: 54px; height: 54px; border-radius: 16px; background: var(--gray-soft); display: grid; place-items: center; margin: 0 auto 12px; color: var(--muted); }
.empty .e-ico svg { width: 26px; height: 26px; }
.empty h4 { color: var(--ink); margin-bottom: 4px; font-size: 15px; }
.skeleton { background: linear-gradient(90deg, var(--gray-soft), var(--line-2), var(--gray-soft)); background-size: 200% 100%; animation: iskelet 1.2s infinite; border-radius: 8px; }
@keyframes iskelet { to { background-position: -200% 0; } }

/* ───────── Pano ───────── */
.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--kc, var(--brand)); }
.kpi .k-lbl { color: var(--muted); font-weight: 600; font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.kpi .k-val { font-size: 27px; margin: 8px 0 2px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.kpi .k-val .k { font-size: 17px; }
.kpi .k-sub { color: var(--muted); font-size: 12.5px; }
.kpi .k-extra { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.kpi.in { --kc: var(--in); } .kpi.out { --kc: var(--out); } .kpi.net { --kc: var(--brand); } .kpi.warn { --kc: var(--warn); }
.kpi .k-ico { margin-left: auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--kc) 12%, transparent); color: var(--kc); }
.agenda { display: flex; flex-direction: column; }
.ag-grp { padding: 12px 20px 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ag-grp .badge-n { background: var(--out); color: #fff; padding: 0 7px; border-radius: 999px; font-size: 11px; letter-spacing: 0; }
.ag-grp.today .badge-n { background: var(--warn); }
.ag-row { display: flex; align-items: center; gap: 12px; padding: 9px 20px; cursor: pointer; border-top: 1px solid var(--line-2); transition: background .1s; }
.ag-row:hover { background: var(--surface-2); }
.ag-row .t { min-width: 0; flex: 1; }
.ag-row .t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-row .t span { font-size: 12px; color: var(--muted); }
.ag-row .r { text-align: right; }
.ag-row .quick { opacity: 0; transition: opacity .12s; }
.ag-row:hover .quick, .ag-row:focus-within .quick { opacity: 1; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--font); fill: var(--muted); font-size: 11px; }
.chart .grid-l { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .axis { stroke: var(--line); }
.chart .bar-in { fill: var(--in); } .chart .bar-out { fill: var(--out); }
.chart .bar-in, .chart .bar-out { transition: opacity .12s; }
.chart .hit:hover ~ .bar-in, .chart .col:hover .bar-in, .chart .col:hover .bar-out { opacity: .78; }
.chart .net-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .net-dot { fill: var(--surface); stroke: var(--brand); stroke-width: 2; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); align-items: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tip { position: fixed; z-index: 90; pointer-events: none; background: #0e1726; color: #fff; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; box-shadow: var(--shadow-2); line-height: 1.5; opacity: 0; transition: opacity .1s; max-width: 260px; }
.tip.on { opacity: 1; }
.tip b { display: block; margin-bottom: 2px; }
.tip .tr { display: flex; justify-content: space-between; gap: 18px; font-variant-numeric: tabular-nums; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 8px 0; cursor: pointer; }
.hbar:hover .hb-name { color: var(--brand); }
.hbar .hb-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .hb-track { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--gray-soft); display: flex; overflow: hidden; }
.hbar .hb-track i { display: block; height: 100%; }
.hbar .hb-track i.in { background: var(--in); } .hbar .hb-track i.out { background: var(--out); }
.tl { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding-bottom: 14px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gray-soft); color: var(--muted); z-index: 1; }
.tl-dot svg { width: 12px; height: 12px; stroke-width: 2.4; }
.tl-dot.g { background: var(--in-soft); color: var(--in); } .tl-dot.r { background: var(--out-soft); color: var(--out); }
.tl-dot.b { background: var(--info-soft); color: var(--info); } .tl-dot.a { background: var(--warn-soft); color: var(--warn); } .tl-dot.v { background: var(--violet-soft); color: var(--violet); }
.tl-item .tl-t { font-weight: 600; }
.tl-item .tl-s { font-size: 12.5px; color: var(--muted); }
.tl-item.undone .tl-t { text-decoration: line-through; opacity: .6; }

/* ───────── Tablo ───────── */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar .select, .toolbar .input { width: auto; min-width: 150px; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; user-select: none; }
.tbl th.sortable { cursor: pointer; }
.tbl th.sortable:hover { color: var(--ink); }
.tbl th .arr { opacity: .8; margin-left: 4px; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr { cursor: pointer; transition: background .08s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr.sel { background: var(--brand-soft); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; } .tbl .c { text-align: center; }
.tbl .cell-main { font-weight: 600; }
.tbl .cell-sub { font-size: 12px; color: var(--muted); }
.tbl .ck { width: 38px; padding-right: 0; }
.tbl input[type=checkbox], .ck-box { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.tbl-foot { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); flex-wrap: wrap; }
.tbl-foot .sums { display: flex; gap: 18px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.tbl-foot .sums span { color: var(--muted); }
.tbl-foot .sums b { margin-left: 4px; }
.pager { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.selbar {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 0); z-index: 50; background: var(--ink); color: var(--surface);
  border-radius: 16px; padding: 10px 12px 10px 18px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-3);
  animation: yüksel .18s ease-out; max-width: calc(100vw - 24px); flex-wrap: wrap;
}
@keyframes yüksel { from { transform: translate(-50%, 16px); opacity: 0; } }
.selbar .s-n { font-weight: 650; margin-right: 4px; white-space: nowrap; }
.selbar .btn { background: rgba(255, 255, 255, .1); border-color: transparent; color: inherit; box-shadow: none; }
:root:not([data-theme="dark"]) .selbar .btn:hover { background: rgba(255, 255, 255, .2); }
.selbar .btn-in { background: var(--in); color: #fff; }

/* ───────── Çekmece & diyalog ───────── */
.scrim { position: fixed; inset: 0; background: rgba(8, 14, 28, .45); backdrop-filter: blur(2px); z-index: 60; animation: sol .15s; }
@keyframes sol { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface); z-index: 61; box-shadow: var(--shadow-3); display: flex; flex-direction: column; animation: kay .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes kay { from { transform: translateX(40px); opacity: 0; } }
.drawer-h { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); position: relative; }
.drawer-h .x { position: absolute; top: 14px; right: 14px; }
.drawer-b { flex: 1; overflow-y: auto; padding: 20px 24px 30px; }
.drawer-f { border-top: 1px solid var(--line); padding: 14px 24px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.drawer-f .f-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.drawer-f .f-row.sec .btn { font-size: 12.5px; padding: 5px 9px; }
.big-amount { font-size: 34px; font-weight: 750; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: 10px; }
.big-amount .k { font-size: 22px; font-weight: 500; opacity: .5; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; font-weight: 550; min-width: 0; overflow-wrap: anywhere; }
.sec-t { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 24px 0 10px; display: flex; align-items: center; gap: 8px; }
.sec-t .grow { height: 1px; background: var(--line); }
.eks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ek { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--gray-soft); cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.ek img { width: 100%; height: 100%; object-fit: cover; }
.ek .ek-ad { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ek .ek-x { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .12s; }
.ek:hover .ek-x { opacity: 1; }
.ek-add { border: 2px dashed var(--line); background: transparent; cursor: pointer; font-weight: 600; flex-direction: column; gap: 4px; }
.ek-add:hover { border-color: var(--brand); color: var(--brand); }
dialog { border: 0; padding: 0; background: transparent; color: inherit; max-width: 100vw; max-height: 100vh; }
dialog::backdrop { background: rgba(8, 14, 28, .5); backdrop-filter: blur(3px); }
dialog[open] { animation: dlg .18s cubic-bezier(.2, .8, .2, 1); }
@keyframes dlg { from { transform: translateY(14px) scale(.985); opacity: 0; } }
.dlg { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-3); width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); display: flex; flex-direction: column; border: 1px solid var(--line); }
.dlg.wide { width: min(760px, calc(100vw - 24px)); }
.dlg-h { padding: 20px 24px 6px; display: flex; align-items: flex-start; gap: 12px; }
.dlg-h h3 { font-size: 18px; letter-spacing: -.02em; }
.dlg-h .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.dlg-b { padding: 14px 24px 8px; overflow-y: auto; }
.dlg-f { padding: 14px 24px 20px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.dlg-f .left { margin-right: auto; }
.callout { padding: 11px 14px; border-radius: 11px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.callout svg { margin-top: 1px; }
.callout.warn { background: var(--warn-soft); color: var(--warn); }
.callout.err { background: var(--out-soft); color: var(--out); }
.callout.info { background: var(--info-soft); color: var(--info); }
.callout .btn { margin-left: auto; }
.combo { position: relative; }
.combo-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); max-height: 260px; overflow-y: auto; z-index: 70; padding: 4px; }
.combo-list button { display: flex; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; align-items: center; gap: 8px; }
.combo-list button:hover, .combo-list button.hot { background: var(--brand-soft); }
.combo-list .yeni { color: var(--brand); font-weight: 600; }
.toasts, #toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { background: var(--ink); color: var(--surface); padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow-2); font-weight: 550; display: flex; align-items: center; gap: 10px; animation: yüksel2 .2s; pointer-events: auto; max-width: 420px; }
.toast.err { background: var(--out); color: #fff; }
.toast .btn { padding: 2px 8px; background: rgba(255, 255, 255, .15); border: 0; color: inherit; box-shadow: none; }
@keyframes yüksel2 { from { transform: translateY(10px); opacity: 0; } }

/* ───────── Takvim ───────── */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-h { padding: 10px 8px; text-align: center; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.cal-d { min-height: 104px; padding: 7px 8px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 3px; transition: background .08s; background: var(--surface); }
.cal-d:nth-child(7n) { border-right: 0; }
.cal-d:hover { background: var(--surface-2); }
.cal-d.off { background: var(--surface-2); }
.cal-d.dim .cal-n { opacity: .35; }
.cal-d.tatil { background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 6px, var(--surface) 6px, var(--surface) 12px); }
.cal-d.sel { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-soft); }
.cal-n { font-weight: 650; font-size: 13px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-d.bugun .cal-n { background: var(--brand); color: #fff; }
.cal-t { font-size: 10.5px; color: var(--muted); position: absolute; right: 8px; top: 9px; max-width: 70%; text-align: right; line-height: 1.2; }
.cal-amt { font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-amt.in { color: var(--in); } .cal-amt.out { color: var(--out); }
.cal-cnt { margin-top: auto; font-size: 11px; color: var(--muted); }
.cal-d.gec .cal-cnt { color: var(--out); font-weight: 600; }

/* ───────── Giriş ───────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-art { background: var(--side-bg); color: #fff; padding: 56px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  background-image: radial-gradient(90% 70% at 10% 0%, rgba(47, 84, 235, .55), transparent 60%), radial-gradient(70% 60% at 100% 100%, rgba(11, 148, 103, .32), transparent 60%); }
.auth-art h1 { font-size: 40px; line-height: 1.12; letter-spacing: -.035em; margin: auto 0 14px; max-width: 460px; }
.auth-art p { color: #b7c4de; max-width: 420px; font-size: 16px; }
.auth-art .feats { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; color: #cdd8ee; }
.auth-art .feats div { display: flex; gap: 10px; align-items: center; }
.auth-art .feats svg { color: #5fe0b2; }
.cheque-art { position: absolute; right: -90px; top: 90px; width: 420px; transform: rotate(-8deg); opacity: .95; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .4)); }
.auth-form { display: grid; place-items: center; padding: 32px; background: var(--bg); }
.auth-box { width: min(400px, 100%); }
.auth-box h2 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 6px; }
.auth-box .lead { color: var(--muted); margin-bottom: 24px; }
.auth-box .stack { gap: 16px; }

/* ───────── Ayarlar / Raporlar ───────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.yas-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: 9px 0; }
.yas-bar { display: flex; align-items: center; gap: 10px; }
.yas-bar i { display: block; height: 22px; border-radius: 6px; min-width: 2px; }
.yas-bar i.in { background: var(--in); } .yas-bar i.out { background: var(--out); }
.yas-bar span { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.stat-row { display: flex; gap: 28px; flex-wrap: wrap; }
.stat .s-l { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.stat .s-v { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }

/* ───────── Duyarlı ───────── */
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-102%); transition: transform .22s; box-shadow: var(--shadow-3); }
  .side.open { transform: none; }
  .topbar { padding: 10px 16px; }
  .topbar .menu-btn { display: inline-flex; }
  .content { padding: 18px 16px 90px; }
  .search { width: auto; flex: 1; }
  .search kbd { display: none; }
  .page-title { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .hide-m { display: none; }
  .g3, .g2 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .cal-d { min-height: 72px; padding: 5px; }
  .cal-t { display: none; }
  .cal-amt { font-size: 10.5px; }
  .kv { grid-template-columns: 110px 1fr; }
  .yas-row { grid-template-columns: 80px 1fr; }
  .yas-row > :nth-child(3) { grid-column: 2; }
}
.show-m { display: none; }
@media (max-width: 900px) { .show-m { display: inline-flex; } }
@media (max-width: 700px) {
  .filtre-alt { display: none; }
  .filtre-alt.acik { display: flex; }
  .toolbar { padding: 12px; }
  .toolbar .select, .toolbar .input, .toolbar .search { min-width: 0; flex: 1 1 140px; width: auto !important; }
  .toolbar .row { flex-wrap: wrap; width: 100%; }
  .toolbar .row .input { flex: 1 1 130px; }
  /* Çek listesi telefonda kart görünümüne dönüşür */
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody { display: block; }
  .tbl.cards tr { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "ck cek tutar" "ck firma vade" "ck durum rozet"; gap: 3px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); align-items: center; }
  .tbl.cards td { padding: 0; border: 0; min-width: 0; }
  .tbl.cards td:nth-child(1) { grid-area: ck; align-self: start; padding-top: 3px; width: auto; }
  .tbl.cards td:nth-child(2) { grid-area: cek; }
  .tbl.cards td:nth-child(3) { grid-area: firma; }
  .tbl.cards td:nth-child(4) { grid-area: vade; text-align: right; }
  .tbl.cards td:nth-child(5) { grid-area: rozet; display: block; text-align: right; }
  .tbl.cards td:nth-child(6) { grid-area: tutar; }
  .tbl.cards td:nth-child(7) { grid-area: durum; }
  .tbl.cards .cell-main { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: minmax(0, 1fr); }
  .kpi .k-val { font-size: 24px; }
  .selbar { bottom: 12px; padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ───────── Yazdırma ───────── */
@media print {
  .side, .topbar, .selbar, #toasts, .no-print { display: none !important; }
  .app { display: block; }
  body { background: #fff; }
  .content { padding: 0; max-width: none; }
}

/* ───────── Kasa ve bankalar ───────── */
.kpis { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }
.kpi.cash { --kc: #0e7490; }
.hesaplar { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hesap-kart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; text-align: left; box-shadow: var(--shadow-1); transition: border-color .12s, box-shadow .12s, transform .08s; display: flex; flex-direction: column; gap: 4px; font: inherit; color: inherit; }
.hesap-kart:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow-2); }
.hesap-kart.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.hesap-kart.pasif { opacity: .6; }
.hesap-kart .hk-ust { display: flex; align-items: center; gap: 10px; }
.hesap-kart .hk-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--info-soft); color: var(--info); flex: none; }
.hesap-kart .hk-ico.kasa { background: var(--warn-soft); color: var(--warn); }
.hesap-kart .hk-ad { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hesap-kart .hk-alt { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hesap-kart .hk-bakiye { font-size: 24px; font-weight: 700; letter-spacing: -.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.hesap-kart .hk-gun { font-size: 12.5px; display: flex; gap: 10px; font-variant-numeric: tabular-nums; min-height: 18px; }
.hesap-kart .hk-pay { height: 5px; border-radius: 99px; background: var(--gray-soft); margin-top: 8px; overflow: hidden; }
.hesap-kart .hk-pay i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.gun-nav { display: inline-flex; align-items: center; gap: 6px; }
.gun-nav .input { width: auto; min-width: 150px; }
.tbl .kaynak { font-size: 11.5px; padding: 1px 7px; border-radius: 6px; background: var(--gray-soft); color: var(--muted); font-weight: 600; white-space: nowrap; }
.tbl tr.nopoint { cursor: default; }
.tbl .r-act { text-align: right; white-space: nowrap; width: 1%; }

/* ───────── Güvenlik ───────── */
.adimlar { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 18px; }
.adimlar li::marker { font-weight: 700; color: var(--brand); }
.qr-kutu { display: flex; gap: 18px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.qr { background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); line-height: 0; }
.qr svg { width: 168px; height: 168px; }
code.anahtar { display: block; font-family: var(--mono); font-size: 15px; letter-spacing: .06em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-top: 4px; word-break: break-all; }
.kod-girdi { font-family: var(--mono); font-size: 20px; letter-spacing: .25em; text-align: center; max-width: 190px; }
.kodlar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; max-width: 420px; }
.kodlar code { font-family: var(--mono); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 8px; padding: 7px 10px; text-align: center; letter-spacing: .06em; }
@media (max-width: 1180px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .g3 { grid-template-columns: minmax(0, 1fr); } .hesaplar { grid-template-columns: minmax(0, 1fr); } }
