/* OPUS — ortak stil (LUMEN lumen.css ile aynı tasarım; standart vurgu rengi farklı). Harici yazı tipi / CDN yok. */
:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --ink: #1d2433;
  --muted: #667085;
  --line: #e3e6ec;
  --soft: #f0f2f5;
  --accent: #34489e;
  --accent-soft: #e7eaf7;
  --pos: #1b7f4c;
  --pos-soft: #e3f4ea;
  --neg: #b42318;
  --neg-soft: #fde9e7;
  --warn: #a15c07;
  --warn-soft: #fdf1dc;
  --bar-a: #34489e;
  --bar-b: #c4661f;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --radius: 10px;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12151b; --panel: #1b2029; --ink: #e6e9ef; --muted: #98a2b3; --line: #2c3340; --soft: #232934;
    --accent: #8ea2ef; --accent-soft: #1f2645; --pos: #4cc38a; --pos-soft: #16352a; --neg: #f97066; --neg-soft: #3d1d1b;
    --warn: #f5b546; --warn-soft: #3b2e14; --bar-a: #8ea2ef; --bar-b: #e8914d; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12151b; --panel: #1b2029; --ink: #e6e9ef; --muted: #98a2b3; --line: #2c3340; --soft: #232934;
  --accent: #8ea2ef; --accent-soft: #1f2645; --pos: #4cc38a; --pos-soft: #16352a; --neg: #f97066; --neg-soft: #3d1d1b;
  --warn: #f5b546; --warn-soft: #3b2e14; --bar-a: #8ea2ef; --bar-b: #e8914d; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 14px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }

/* ---------- kabuk ---------- */
.ust {
  position: sticky; top: 0; z-index: 20;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.ust-ic {
  max-width: 1440px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 22px; min-height: 56px; flex-wrap: wrap;
}
.logo { font-weight: 700; letter-spacing: .14em; color: var(--accent); font-size: 15px; white-space: nowrap; }
.logo small { display: block; font-weight: 500; letter-spacing: 0; color: var(--muted); font-size: 11px; }
.menu { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.menu a {
  color: var(--muted); padding: 7px 11px; border-radius: 7px; font-weight: 500; white-space: nowrap;
}
.menu a:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.menu a.aktif { background: var(--accent-soft); color: var(--accent); }
.ust-sag { display: flex; align-items: center; gap: 8px; }

main { max-width: 1440px; margin: 0 auto; padding: 22px 20px 48px; }
.baslik { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.baslik p { margin: 4px 0 0; color: var(--muted); }
.alt { max-width: 1440px; margin: 0 auto; padding: 0 20px 28px; color: var(--muted); font-size: 12px; }

/* ---------- form ---------- */
input, select, button { font: inherit; color: inherit; }
input[type="date"], input[type="search"], input[type="text"], select {
  background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; min-height: 34px;
}
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.dugme {
  background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 6px 12px; min-height: 34px;
  cursor: pointer; font-weight: 500; white-space: nowrap;
}
.dugme:hover { background: var(--soft); }
.dugme.ana { background: var(--accent); border-color: var(--accent); color: #fff; }
.dugme.ana:hover { filter: brightness(1.08); }
.dugme.kucuk { min-height: 28px; padding: 3px 9px; font-size: 12px; }
.tema-dugme { width: 36px; padding: 0; font-size: 16px; line-height: 1; }
.filtre { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filtre label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.secim { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.secim button { border: 0; background: none; padding: 6px 13px; cursor: pointer; color: var(--muted); font-weight: 500; }
.secim button.aktif { background: var(--accent); color: #fff; }

/* ---------- kartlar ---------- */
.izgara { display: grid; gap: 14px; }
.kpi-izgara { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.iki { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; min-width: 0;
}
.panel-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-bas p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.bolum { margin-top: 18px; }

.kpi { display: flex; flex-direction: column; gap: 4px; cursor: default; position: relative; }
.kpi.tik { cursor: pointer; }
.kpi.tik:hover { border-color: var(--accent); }
.kpi .kpi-etiket { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi .deger { font-size: 24px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .ek { color: var(--muted); font-size: 12.5px; }
.kpi .ek b { color: var(--ink); font-weight: 600; }
.kpi .satir { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.kpi .satir b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi .rozet { position: absolute; top: 12px; right: 12px; }

.rozet { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.rozet.pos { background: var(--pos-soft); color: var(--pos); }
.rozet.neg { background: var(--neg-soft); color: var(--neg); }
.rozet.uyari { background: var(--warn-soft); color: var(--warn); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.sessiz { color: var(--muted); }

/* ---------- içgörü ---------- */
.icgoru { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 14px; }
.icgoru div {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 10px 13px; font-size: 13.5px;
}
.icgoru div.neg { border-left-color: var(--neg); color: inherit; }
.icgoru div.pos { border-left-color: var(--pos); color: inherit; }
.icgoru div.uyari { border-left-color: var(--warn); }

.not {
  background: var(--warn-soft); color: var(--ink); border: 1px solid transparent; border-radius: 8px;
  padding: 10px 13px; font-size: 13px; margin-bottom: 14px;
}
.not b { color: var(--warn); }
.not ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- tablo ---------- */
.tablo-arac { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; }
.tablo-arac .bilgi { color: var(--muted); font-size: 12px; }
.tablo-kap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; max-height: 70vh; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th {
  position: sticky; top: var(--ust-kayma, 0px); z-index: 1; background: var(--soft); font-size: 12px; font-weight: 600; color: var(--muted);
  cursor: pointer; user-select: none;
}
th.sirali::after { content: " ▲"; font-size: 9px; }
th.sirali.azalan::after { content: " ▼"; }
td.sag, th.sag { text-align: right; }
td.kod { font-family: var(--mono); font-size: 12.5px; }
td.uzun { white-space: normal; min-width: 220px; max-width: 420px; }
tbody tr:hover td { background: var(--soft); }
tbody tr.tik { cursor: pointer; }
tfoot td { font-weight: 650; background: var(--soft); position: sticky; bottom: var(--alt-kayma, 0px); }
/* Kolon grubu tonları (kolon ayarı sinif: 'ton-1' … 'ton-4'; grubun ilk kolonu 'ton-bas' ile ayrılır).
   Yapışkan başlık / toplam satırı için opak renkler; satır üzerine gelince ortak vurgu (--soft) geçerli. */
:root { --ton-1: #f1f5fb; --ton-1-b: #e3ebf6; --ton-2: #eef7f5; --ton-2-b: #dcede9; --ton-3: #f5f3fb; --ton-3-b: #e9e5f6; --ton-4: #fcf5ec; --ton-4-b: #f4e6d3; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ton-1: #1d2532; --ton-1-b: #243042; --ton-2: #1a2829; --ton-2-b: #213536; --ton-3: #221f2e; --ton-3-b: #2c283d; --ton-4: #28231c; --ton-4-b: #352d22; }
}
:root[data-theme="dark"] { --ton-1: #1d2532; --ton-1-b: #243042; --ton-2: #1a2829; --ton-2-b: #213536; --ton-3: #221f2e; --ton-3-b: #2c283d; --ton-4: #28231c; --ton-4-b: #352d22; }
/* ---------- Renk temaları: html[data-palet] = lila | galatasaray | neon | zifir (yoksa standart) ----------
   Tema düğmesine sağ tıklayınca açılan menüden seçilir, kullanıcı başına sunucuda saklanır (lumen.js temaUygula).
   Lila ve Galatasaray açık + koyu görünümle çalışır; Neon ve Zifir karanlık her zaman koyudur.
   Artı / eksi / uyarı renkleri (yeşil / kırmızı / turuncu) anlamı için her temada aynı kalır. */
/* Lila */
:root[data-palet="lila"] {
  --bg: #faf3f8; --panel: #ffffff; --ink: #2b1f2e; --muted: #7b6884; --line: #efdcea; --soft: #f6eaf3;
  --accent: #b02f7c; --accent-soft: #fbe2f0; --bar-a: #c0398a; --bar-b: #7d4fc4;
  --ton-1: #f7eefb; --ton-1-b: #ecdcf6; --ton-2: #fdedf5; --ton-2-b: #f8d9e9; --ton-3: #f1ecfc; --ton-3-b: #e2d8f8; --ton-4: #fcf0f3; --ton-4-b: #f6dde4;
}
@media (prefers-color-scheme: dark) {
  :root[data-palet="lila"]:not([data-theme="light"]) {
    --bg: #17111a; --panel: #221a27; --ink: #f2e7f4; --muted: #b19cba; --line: #3a2d41; --soft: #2c2232;
    --accent: #ec7fbe; --accent-soft: #3d1c33; --bar-a: #ec7fbe; --bar-b: #ad8df2;
    --ton-1: #2a1f33; --ton-1-b: #35273f; --ton-2: #2f1c29; --ton-2-b: #3c2334; --ton-3: #241f36; --ton-3-b: #2f2845; --ton-4: #2d1d24; --ton-4-b: #3a252e;
  }
}
:root[data-palet="lila"][data-theme="dark"] {
  --bg: #17111a; --panel: #221a27; --ink: #f2e7f4; --muted: #b19cba; --line: #3a2d41; --soft: #2c2232;
  --accent: #ec7fbe; --accent-soft: #3d1c33; --bar-a: #ec7fbe; --bar-b: #ad8df2;
  --ton-1: #2a1f33; --ton-1-b: #35273f; --ton-2: #2f1c29; --ton-2-b: #3c2334; --ton-3: #241f36; --ton-3-b: #2f2845; --ton-4: #2d1d24; --ton-4-b: #3a252e;
}
html[data-palet] body { transition: background-color .4s; }

/* Neon: her zaman koyu zemin, camgöbeği vurgu, eflatun ikinci renk, parlama efektleri */
:root[data-palet="neon"] {
  --bg: #07070f; --panel: #0f0f1e; --ink: #e9f8ff; --muted: #8b93bd; --line: #262650; --soft: #171733;
  --accent: #00e5ff; --accent-soft: #052a35; --pos: #39ff8f; --pos-soft: #0a2e1d; --neg: #ff3d71; --neg-soft: #3a0c1f;
  --warn: #ffe24a; --warn-soft: #302908; --bar-a: #00e5ff; --bar-b: #ff2bd6;
  --shadow: 0 0 0 1px rgba(0, 229, 255, .10), 0 0 22px rgba(0, 229, 255, .07); color-scheme: dark;
  --ton-1: #0d1630; --ton-1-b: #13204a; --ton-2: #08222a; --ton-2-b: #0c313c; --ton-3: #1a0f33; --ton-3-b: #26154a; --ton-4: #260d26; --ton-4-b: #361338;
}
:root[data-palet="neon"] body {
  background-image: linear-gradient(rgba(0, 229, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px; background-attachment: fixed;
}
:root[data-palet="neon"] .ust { border-bottom-color: rgba(0, 229, 255, .45); box-shadow: 0 0 18px rgba(0, 229, 255, .15); }
:root[data-palet="neon"] .logo { text-shadow: 0 0 6px var(--accent), 0 0 16px rgba(0, 229, 255, .55); }
:root[data-palet="neon"] .kpi .deger { text-shadow: 0 0 8px currentColor; }
:root[data-palet="neon"] .kpi.tik:hover, :root[data-palet="neon"] .panel:hover { border-color: rgba(0, 229, 255, .4); }
:root[data-palet="neon"] .cubuk .dol { background: linear-gradient(90deg, var(--bar-b), var(--bar-a)); box-shadow: 0 0 8px rgba(0, 229, 255, .45); }
:root[data-palet="neon"] .sutunlar .s { box-shadow: 0 0 6px rgba(0, 229, 255, .4); }
:root[data-palet="neon"] .sutunlar .k.sec .s { box-shadow: 0 0 8px rgba(255, 43, 214, .6); }
:root[data-palet="neon"] .dugme.ana, :root[data-palet="neon"] .secim button.aktif, :root[data-palet="neon"] .cip.aktif {
  color: #021318; box-shadow: 0 0 10px rgba(0, 229, 255, .5); }
:root[data-palet="neon"] .cip.aktif small { color: rgba(2, 19, 24, .75); }

/* Galatasaray: sarı-kırmızı. Açıkta kırmızı vurgu + kırmızı üst çubuk, koyuda bordo zemin + sarı vurgu */
:root[data-palet="galatasaray"] {
  --bg: #fbf6ef; --panel: #ffffff; --ink: #2a1416; --muted: #7c5f5f; --line: #ecdcd0; --soft: #f7ede3;
  --accent: #a90432; --accent-soft: #fbe2e8; --bar-a: #c8102e; --bar-b: #f2a900;
  --ton-1: #fff7dc; --ton-1-b: #fdeaa8; --ton-2: #fdedf0; --ton-2-b: #f8d4dc; --ton-3: #fbf2e4; --ton-3-b: #f2dfc2; --ton-4: #f7eef0; --ton-4-b: #ead7dc;
  --gs-ust: #a90432; --gs-sari: #fdb912;
}
@media (prefers-color-scheme: dark) {
  :root[data-palet="galatasaray"]:not([data-theme="light"]) {
    --bg: #150a0c; --panel: #200f13; --ink: #f7ece4; --muted: #bba29a; --line: #3f1f26; --soft: #2b151a;
    --accent: #fdb912; --accent-soft: #3a2b07; --bar-a: #e0284f; --bar-b: #fdb912;
    --ton-1: #2a2110; --ton-1-b: #382b12; --ton-2: #2c1218; --ton-2-b: #3c1820; --ton-3: #261a12; --ton-3-b: #33231a; --ton-4: #2a1418; --ton-4-b: #381b21;
    --gs-ust: #5e0a1e;
  }
}
:root[data-palet="galatasaray"][data-theme="dark"] {
  --bg: #150a0c; --panel: #200f13; --ink: #f7ece4; --muted: #bba29a; --line: #3f1f26; --soft: #2b151a;
  --accent: #fdb912; --accent-soft: #3a2b07; --bar-a: #e0284f; --bar-b: #fdb912;
  --ton-1: #2a2110; --ton-1-b: #382b12; --ton-2: #2c1218; --ton-2-b: #3c1820; --ton-3: #261a12; --ton-3-b: #33231a; --ton-4: #2a1418; --ton-4-b: #381b21;
  --gs-ust: #5e0a1e;
}
:root[data-palet="galatasaray"] .ust { background: var(--gs-ust); border-bottom: 3px solid var(--gs-sari); }
:root[data-palet="galatasaray"] .logo { color: var(--gs-sari); }
:root[data-palet="galatasaray"] .ust .menu a, :root[data-palet="galatasaray"] .ust .menu-ek-dugme { color: rgba(255, 255, 255, .88); }
:root[data-palet="galatasaray"] .ust .menu a:hover, :root[data-palet="galatasaray"] .ust .menu-ek-dugme:hover { background: rgba(255, 255, 255, .12); color: #fff; }
:root[data-palet="galatasaray"] .ust .menu a.aktif { background: var(--gs-sari); color: #5a0018; }
:root[data-palet="galatasaray"] .ust .menu-ek { border-top-color: rgba(255, 255, 255, .2); }
:root[data-palet="galatasaray"] .ust .menu-ek-kapsam { color: rgba(255, 255, 255, .75); }
@media (prefers-color-scheme: dark) {
  :root[data-palet="galatasaray"]:not([data-theme="light"]) .dugme.ana, :root[data-palet="galatasaray"]:not([data-theme="light"]) .secim button.aktif,
  :root[data-palet="galatasaray"]:not([data-theme="light"]) .cip.aktif { color: #2a1a00; }
}
:root[data-palet="galatasaray"][data-theme="dark"] .dugme.ana, :root[data-palet="galatasaray"][data-theme="dark"] .secim button.aktif,
:root[data-palet="galatasaray"][data-theme="dark"] .cip.aktif { color: #2a1a00; }

/* Zifir karanlık: tam siyah zemin (OLED), düşük parlaklık, renksiz vurgu; her zaman koyu */
:root[data-palet="zifir"] {
  --bg: #000000; --panel: #000000; --ink: #cfd3da; --muted: #747a85; --line: #1c1e22; --soft: #0d0e10;
  --accent: #aab3c0; --accent-soft: #15181c; --pos: #3fae5f; --pos-soft: #0b1a10; --neg: #e5534b; --neg-soft: #1f0d0c;
  --warn: #c99a2e; --warn-soft: #1d1608; --bar-a: #5d6573; --bar-b: #9aa3b0; --shadow: none; color-scheme: dark;
  --ton-1: #07080b; --ton-1-b: #0e1015; --ton-2: #060a0a; --ton-2-b: #0c1213; --ton-3: #09070c; --ton-3-b: #110e15; --ton-4: #0b0907; --ton-4-b: #14110d;
}
:root[data-palet="zifir"] .dugme.ana, :root[data-palet="zifir"] .secim button.aktif, :root[data-palet="zifir"] .cip.aktif { color: #000; }
:root[data-palet="zifir"] .cip.aktif small { color: rgba(0, 0, 0, .7); }
:root[data-palet="zifir"] .ortu { background: rgba(0, 0, 0, .7); }
:root[data-palet="zifir"] .pencere { border: 1px solid var(--line); }

/* ---------- Tema menüsü (tema düğmesine sağ tık / telefonda menüdeki "Tema seç") ---------- */
.tema-menu { position: fixed; z-index: 70; width: 248px; max-width: calc(100vw - 16px); background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .28); padding: 10px; }
.tema-menu-baslik { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 2px 4px 6px; }
.tema-menu .secim { display: flex; margin-bottom: 12px; }
.tema-menu .secim button { flex: 1; padding: 6px 4px; }
.tema-renk { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; color: inherit; padding: 7px 8px;
  border-radius: 8px; cursor: pointer; text-align: left; font-weight: 500; }
.tema-renk:hover { background: var(--soft); }
.tema-renk[aria-checked="true"] { background: var(--accent-soft); }
.tema-renk small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.tema-renk .tik-isaret { margin-left: auto; color: var(--accent); font-weight: 700; visibility: hidden; }
.tema-renk[aria-checked="true"] .tik-isaret { visibility: visible; }
.tema-ornek { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(127, 127, 127, .35); }
.tema-menu-not { margin: 8px 4px 0; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.tema-menu .secim button[disabled] { opacity: .45; cursor: not-allowed; }
@media print { .tema-menu { display: none !important; } }

td.ton-1 { background: var(--ton-1); } th.ton-1, tfoot td.ton-1 { background: var(--ton-1-b); }
td.ton-2 { background: var(--ton-2); } th.ton-2, tfoot td.ton-2 { background: var(--ton-2-b); }
td.ton-3 { background: var(--ton-3); } th.ton-3, tfoot td.ton-3 { background: var(--ton-3-b); }
td.ton-4 { background: var(--ton-4); } th.ton-4, tfoot td.ton-4 { background: var(--ton-4-b); }
th.ton-bas, td.ton-bas { border-left: 1px solid var(--line); }
.bos { padding: 26px; text-align: center; color: var(--muted); }

/* ---------- grafik ---------- */
.cubuklar { display: flex; flex-direction: column; gap: 7px; }
.cubuk { display: grid; grid-template-columns: minmax(110px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; }
.cubuk .e { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.cubuk .yol { background: var(--soft); border-radius: 4px; height: 14px; overflow: hidden; }
.cubuk .dol { height: 100%; background: var(--bar-a); border-radius: 4px; min-width: 2px; }
.cubuk .d { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 92px; text-align: right; }
.cubuk.tik { cursor: pointer; }
.cubuk.tik:hover .e { color: var(--accent); }

.cift { display: flex; flex-direction: column; gap: 9px; }
.cift-satir { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 10px; align-items: center; font-size: 12.5px; }
.cift-satir .yol { height: 18px; background: var(--soft); border-radius: 4px; position: relative; overflow: hidden; }
.cift-satir .dol { height: 100%; border-radius: 4px; }
.cift-satir .yol span { position: absolute; left: 8px; top: 0; line-height: 18px; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--ink); }
.cift-satir.bas { color: var(--muted); font-size: 12px; font-weight: 600; }
.cift-satir.tik { cursor: pointer; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
.cift-satir.tik:hover { background: var(--soft); }
.cift-satir.tik:hover > div:first-child { color: var(--accent); }
tbody tr.tik td:first-child { position: relative; }
.lejant { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.lejant i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

.sutun-bilgi {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px;
  background: var(--soft); border-radius: 7px; padding: 4px 6px 4px 10px; margin-bottom: 8px; font-size: 13px;
}
.sutun-bilgi b { font-variant-numeric: tabular-nums; }
.sutunlar { display: flex; align-items: stretch; gap: 2px; height: 150px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.sutunlar .k { flex: 1; min-width: 4px; display: flex; align-items: flex-end; cursor: pointer; border-radius: 3px 3px 0 0; }
.sutunlar .k:hover { background: var(--soft); }
.sutunlar .s { width: 100%; background: var(--bar-a); border-radius: 3px 3px 0 0; opacity: .8; }
.sutunlar .k:hover .s { opacity: 1; }
.sutunlar .k.sec .s { background: var(--bar-b); opacity: 1; }
.sutunlar .k.sec { background: var(--warn-soft); }
.sutun-alt { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 4px; }

/* ---------- sekme ---------- */
.sekmeler { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; }
.sekmeler button {
  border: 0; background: none; padding: 8px 12px; cursor: pointer; color: var(--muted); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.sekmeler button.aktif { color: var(--accent); border-bottom-color: var(--accent); }
.sekmeler button .rozet { margin-left: 4px; }

/* ---------- durum ---------- */
.yukleniyor { color: var(--muted); padding: 18px 4px; }
.yukleniyor::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px;
  border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: don .8s linear infinite;
}
@keyframes don { to { transform: rotate(360deg); } }
.hata { background: var(--neg-soft); color: var(--neg); border-radius: 8px; padding: 10px 13px; font-size: 13px; }

/* ---------- pencere ---------- */
.ortu { position: fixed; inset: 0; background: rgba(15, 20, 30, .45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; }
.pencere { background: var(--panel); border-radius: 12px; width: min(1100px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.pencere-bas { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); gap: 12px; }
.pencere-ic { padding: 16px 18px; overflow: auto; }
.kapat { border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; }
.pencere.genis { width: min(1500px, 100%); }
.ara-baslik { margin: 18px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.alanlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; padding: 1px; border-radius: 8px; overflow: hidden; }
.alanlar > div { background: var(--panel); outline: 1px solid var(--line); padding: 8px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.alanlar > div > span { font-size: 11.5px; color: var(--muted); }
.alanlar > div > b { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pencere .tablo-kap { max-height: 58vh; }

/* ---------- pencere üst bilgisi: solda bilgi listesi, sağda tutar kutusu ---------- */
.belge-bas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 300px); gap: 18px; align-items: start; }
.belge-bas.ekstre { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.bilgi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; font-size: 13px; }
.bilgi > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.bilgi dt { color: var(--muted); font-size: 12px; padding-top: 1px; }
.bilgi dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.tutar-kutu { background: var(--soft); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.tutar-kutu > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.tutar-kutu span { color: var(--muted); }
.tutar-kutu b { font-weight: 600; white-space: nowrap; }
.tutar-kutu .son { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 7px; }
.tutar-kutu .son span { color: var(--ink); font-weight: 600; }
.tutar-kutu .son b { font-size: 16px; }
.mini-kartlar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.mini { background: var(--soft); border-radius: 8px; padding: 8px 11px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mini > span { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.mini > b { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini > i, .mini > em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.mini > em.neg { color: var(--neg); font-size: 13px; }
.mini.tik { cursor: pointer; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .12s, background .12s; }
.mini.tik:hover, .mini.tik:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); outline: none; }
.mini > span small { font-size: 14px; line-height: 0; font-weight: 700; color: var(--accent); }
@media (max-width: 900px) {
  .belge-bas, .belge-bas.ekstre { grid-template-columns: 1fr; }
  .mini-kartlar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bilgi { grid-template-columns: 1fr; }
}

/* ---------- çek/senet gruplama çipleri ---------- */
.cipler { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cip { border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; color: var(--ink); }
.cip b { font-variant-numeric: tabular-nums; margin-left: 4px; }
.cip small { color: var(--muted); margin-left: 3px; }
.cip:hover { border-color: var(--accent); }
.cip.aktif { background: var(--accent); border-color: var(--accent); color: #fff; }
.cip.aktif small { color: rgba(255, 255, 255, .8); }
.bolme td.uzun { min-width: 150px; max-width: 260px; }
.bolmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.bolme { min-width: 0; }
.bolme-bas { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 6px; margin-bottom: 8px; border-bottom: 2px solid var(--pos); }
.bolme.cikis .bolme-bas { border-bottom-color: var(--neg); }
.bolme-bas b { font-size: 17px; font-variant-numeric: tabular-nums; }
.bolme-ozet { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; min-height: 20px; }
@media (max-width: 960px) { .bolmeler { grid-template-columns: 1fr; } }

@media (max-width: 720px) {
  .ust-ic { padding: 8px 16px; gap: 8px; }
  main { padding: 16px 16px 40px; }
  .iki { grid-template-columns: 1fr; }
  .kpi .deger { font-size: 21px; }
  .cift-satir { grid-template-columns: 84px 1fr 1fr; }
}
@media print {
  .ust, .tablo-arac, .filtre, .dugme { display: none !important; }
  body { background: #fff; }
  .panel { box-shadow: none; break-inside: avoid; }
  .tablo-kap { max-height: none; overflow: visible; }
}
.ekstre-ust { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 6px; }
.ekstre-ust p { margin: 0; font-size: 12px; }
.kpi .ek .proje-kirilim { font-size: 12px; }
/* Sayfa altı hesaplama açıklaması */
.hesap-alt { margin-top: 22px; padding: 16px 2px 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.hesap-alt h3 { margin: 0 0 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.hesap-alt dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.hesap-alt dl > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 10px; }
.hesap-alt dt { color: var(--ink); font-weight: 600; }
.hesap-alt dd { margin: 0; }
@media (max-width: 900px) { .hesap-alt dl { grid-template-columns: 1fr; } .hesap-alt dl > div { grid-template-columns: 1fr; gap: 0; } }
.stok-link { color: var(--accent); text-decoration: none; border-bottom: 1px dotted currentColor; }
/* Gösterge paneli: en önemli rozet — yaklaşan çek/senet ödemesi */
.icgoru a.kritik {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink);
  background: var(--warn-soft); border: 1px solid var(--warn); border-left: 6px solid var(--warn); border-radius: 10px;
  padding: 12px 16px; font-size: 14.5px; box-shadow: var(--shadow);
}
.icgoru a.kritik:hover { filter: brightness(.98); }
.kritik-ikon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--warn); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.kritik-metin { flex: 1; min-width: 0; }
.kritik-baslik { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--warn); margin-bottom: 2px; }
.kritik-tutar { flex: none; text-align: right; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--warn); line-height: 1.1; }
.kritik-tutar small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
@media (max-width: 600px) { .icgoru a.kritik { flex-wrap: wrap; } .kritik-tutar { text-align: left; } }
.kpi-git { color: var(--accent); font-weight: 700; }
/* Kolon filtresi (başlığın altında) */
th .th-baslik { display: block; }
th input.ff { display: block; width: 100%; min-width: 56px; margin-top: 4px; padding: 3px 6px; font: inherit; font-size: 11.5px; font-weight: 400;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 5px; }
th.sag input.ff { text-align: right; }
th input.ff::placeholder { color: var(--muted); opacity: .6; }
th input.ff:focus { outline: none; border-color: var(--accent); }
th input.ff.dolu { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.filtre-kapali th input.ff { display: none; }
@media print { th input.ff { display: none !important; } }

/* ---------- oturum: giriş sayfası ---------- */
[hidden] { display: none !important; }
input[type="password"], input[type="email"] {
  background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; min-height: 34px;
}
.giris-govde { min-height: 100vh; display: flex; }
.giris-kap { margin: auto; width: 100%; max-width: 420px; padding: 40px 16px; }
.giris-kart { padding: 26px 26px 22px; }
.giris-logo { font-size: 20px; margin-bottom: 20px; }
.giris-logo small { font-size: 12px; margin-top: 2px; }
.giris-form { display: flex; flex-direction: column; gap: 12px; }
.giris-form h1 { font-size: 18px; }
.giris-form p { margin: 0; font-size: 13px; }
.giris-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.giris-form label input { font-weight: 400; color: var(--ink); min-height: 40px; font-size: 15px; }
.giris-form .dugme { min-height: 40px; }
.giris-ipucu { color: var(--muted); font-size: 12px !important; }
.giris-mesaj { border-radius: 8px; padding: 9px 12px; font-size: 13px; margin-bottom: 14px; background: var(--soft); }
.giris-mesaj.neg { background: var(--neg-soft); color: var(--neg); }
.giris-mesaj.pos { background: var(--pos-soft); color: var(--pos); }
.giris-alt { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }
.kod-giris { letter-spacing: .3em; font-family: var(--mono); text-align: center; font-size: 20px !important; }
.karekod { align-self: center; background: #fff; padding: 6px; border-radius: 8px; line-height: 0; }
.karekod svg { width: 196px; height: 196px; display: block; }
.anahtar { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; user-select: all; overflow-wrap: anywhere; color: var(--ink); }

/* ---------- oturum: üst bardaki kullanıcı düğmesi ve hesap penceresi ---------- */
.kullanici-dugme { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
/* Bildirim zili */
.zil-dugme { position: relative; width: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.zil-dugme.var { color: var(--accent); }
.zil-sayi { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--neg); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--panel); }
.zil-sayi[hidden] { display: none; }
.bildirim-cihaz { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: 13.5px; }
.bildirim-cihaz p { margin: 6px 0 8px; }
.bildirim-cihaz .dugme-satir { display: flex; gap: 8px; flex-wrap: wrap; }
.bildirim-cihaz .form-sonuc { margin-top: 6px; }
.bildirim-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.bildirim-liste { list-style: none; margin: 0; padding: 0; }
.bildirim-oge { padding: 10px 12px 10px 22px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; border-radius: 8px; }
.bildirim-oge:hover, .bildirim-oge:focus-visible { background: var(--soft); outline: none; }
.bildirim-oge.yeni::before { content: ''; position: absolute; left: 8px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.bildirim-oge.yeni .bildirim-baslik { font-weight: 700; }
.bildirim-baslik { font-weight: 550; font-size: 13.5px; }
.bildirim-metin { font-size: 13px; color: var(--ink); margin-top: 2px; }
.bildirim-zaman { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.pencere.dar { width: min(560px, 100%); }
.hesap-bolum { border-top: 1px solid var(--line); padding: 14px 0; }
.hesap-bolum:first-child { border-top: 0; padding-top: 0; }
.hesap-bolum h3 { margin-bottom: 8px; }
.hesap-bolum p { margin: 0 0 10px; font-size: 13px; }
.form-satir { display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.form-satir label, .yon-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); font-weight: 600; }
.form-satir label input, .yon-form label input[type="text"], .yon-form label select { font-weight: 400; color: var(--ink); }
.form-sonuc { font-size: 13px; min-height: 0; }
.form-sonuc.neg { color: var(--neg); }
.form-sonuc.pos { color: var(--pos); }
.yetki-yok { padding: 22px; text-align: center; color: var(--muted); }

/* ---------- yönetim sayfası ---------- */
.yon-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.onay { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; color: var(--ink) !important; font-size: 13px !important; cursor: pointer; }
.onay input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.yetki-agac { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.yetki-grup { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; }
.yetki-grup > .onay { font-weight: 650 !important; }
.yetki-alt { margin: 6px 0 0 24px; display: flex; flex-direction: column; gap: 5px; }
.yetki-alt.kapali { opacity: .45; }
.gecici-kutu { background: var(--warn-soft); border-radius: 8px; padding: 12px 14px; margin: 10px 0; font-size: 13px; }
.gecici-kutu code { font-family: var(--mono); font-size: 18px; font-weight: 700; letter-spacing: .06em; user-select: all; display: inline-block; margin: 4px 8px 4px 0; color: var(--ink); }
.islemler { display: flex; flex-wrap: wrap; gap: 8px; }
.dugme.tehlike { color: var(--neg); border-color: var(--neg); }
.dugme.tehlike.emin { background: var(--neg); color: #fff; }
.pencere-alt { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }

/* ---------- yönetim: gruplar, yetki etiketleri, kapsam seçimi ---------- */
.yetki-etiket { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: 99px; margin-left: 2px; letter-spacing: .02em; vertical-align: 1px; }
.yetki-etiket.grup { background: var(--accent-soft); color: var(--accent); }
.yetki-etiket.ek { background: var(--pos-soft); color: var(--pos); }
.yetki-etiket.cikar { background: var(--neg-soft); color: var(--neg); text-decoration: line-through; }
.kod-secim { display: flex; flex-wrap: wrap; gap: 6px; }
.kod-cip { border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; background: var(--panel); }
.kod-cip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.kod-secim-bas { margin-bottom: 6px; font-size: 13px; }
.kod-diger { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 8px; max-width: 320px; }
.kod-diger input { font-weight: 400; color: var(--ink); }
.kapsam-izgara { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.kapsam-izgara > div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.kapsam-rozet { max-width: 260px; overflow: hidden; text-overflow: ellipsis; cursor: help; }

/* ---------- iç içe tablo (ör. sipariş → sipariş kalemleri) ---------- */
.ac-kapa-th, .ac-kapa-td { width: 30px; padding-left: 6px !important; padding-right: 0 !important; }
.ac-kapa { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 13px; width: 22px; height: 22px; border-radius: 5px; padding: 0; line-height: 1; }
.ac-kapa:hover { background: var(--soft); color: var(--ink); }
tr.ust-satir.acik > td { background: var(--accent-soft); border-bottom-color: transparent; }
tr.ust-satir.acik .ac-kapa { color: var(--accent); }
tr.alt-satir > td { background: var(--soft); padding: 6px 10px 12px !important; }
tr.alt-satir:hover > td { background: var(--soft); }
.ic-tablo { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 12.5px; }
.ic-tablo th { position: static; background: var(--panel); font-size: 11px; padding: 6px 9px; border-bottom: 1px solid var(--line); }
.ic-tablo td { padding: 5px 9px; border-bottom: 1px solid var(--line); }
.ic-tablo tr:last-child td { border-bottom: 0; }
.ic-tablo tr.eslesen td { background: var(--warn-soft); }
.ic-tablo tr.soluk td { opacity: .55; }
/* Hatalı / dikkat isteyen satır (L.tablo satirSinif → 'satir-hata'): kırmızı zemin + sol çizgi */
tr.satir-hata > td, tbody tr.satir-hata:hover > td { background: var(--neg-soft); }
tr.satir-hata > td:first-child { box-shadow: inset 3px 0 0 var(--neg); }
.tkart.satir-hata { border-color: var(--neg); background: var(--neg-soft); }
.ic-not { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
@media print { .ac-kapa-th, .ac-kapa-td { display: none; } }

/* ---------- KDV durumu ---------- */
tr.ara-toplam td { background: var(--soft); font-weight: 600; }
tr.genel-toplam td { border-top: 2px solid var(--line); font-size: 15px; font-weight: 700; }
tr.genel-toplam.neg td:last-child { color: var(--neg); }
tr.genel-toplam.pos td:last-child { color: var(--pos); }

/* ---------- tablo: kart görünümü (telefonda varsayılan, L.tablo ayar.kart) ---------- */
.tablo-kap.kart-mod { border: 0; border-radius: 0; overflow: visible; max-height: none; }
.tablo-kap.kart-mod > table { display: none; }
.kart-liste { display: flex; flex-direction: column; gap: 8px; }
.tkart { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.tkart.tik { cursor: pointer; }
.tkart.tik:active, .tkart.tik:focus-visible { background: var(--soft); outline: none; border-color: var(--accent); }
.tkart.toplam { background: var(--soft); }
.tkart-bas { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tkart-baslik { font-weight: 600; min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.tkart-baslik .rozet { margin-left: 4px; vertical-align: 1px; }
.tkart-sag { flex: none; text-align: right; font-weight: 700; font-size: 15.5px; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.3; }
.tkart-sag small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.tkart-alt { color: var(--muted); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.tkart-alanlar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--line); }
.tkart-alanlar > div { display: flex; flex-direction: column; min-width: 0; }
.tkart-alanlar dt { font-size: 11px; color: var(--muted); }
.tkart-alanlar dd { margin: 0; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* Kart görünümünde alan grupları: tonlu baloncuklar (kart ayarı gruplar / sagSinif; tonlar tablo kolon gruplarıyla aynı) */
.tkart-gruplar { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.tkart-grup { border-radius: 8px; padding: 6px 9px 7px; background: var(--soft); }
.tkart-grup-baslik { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.tkart-grup .tkart-alanlar { margin: 0; padding: 0; border: 0; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 4px 12px; }
.tkart-sag-ton { border-radius: 8px; padding: 4px 8px; margin: -2px -4px 0 0; }
.tkart-grup.ton-1, .tkart-sag-ton.ton-1 { background: var(--ton-1); }
.tkart-grup.ton-2, .tkart-sag-ton.ton-2 { background: var(--ton-2); }
.tkart-grup.ton-3, .tkart-sag-ton.ton-3 { background: var(--ton-3); }
.tkart-grup.ton-4, .tkart-sag-ton.ton-4 { background: var(--ton-4); }
.tkart.toplam .tkart-grup.ton-1 { background: var(--ton-1-b); } .tkart.toplam .tkart-grup.ton-2 { background: var(--ton-2-b); }
.tkart.toplam .tkart-grup.ton-3 { background: var(--ton-3-b); } .tkart.toplam .tkart-grup.ton-4 { background: var(--ton-4-b); }
.kart-sira { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.kart-sira select { min-height: 30px; padding: 3px 6px; max-width: 160px; }

/* ---------- kabuk: telefon menüsü (masaüstünde gizli) ---------- */
.menu-dugme, .menu-ek { display: none; }
.menu-ek-dugme { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 11px 12px; border-radius: 7px; cursor: pointer; color: var(--ink); font-weight: 500; font-size: 15px; }
.menu-ek-dugme:hover { background: var(--soft); }
.menu-ek-kapsam { padding: 8px 12px; font-size: 13px; color: var(--muted); }
.yenile-ikon { display: none; }

/* ---------- üst çubuk: sıkı görünüm (lumen.js .menu-kisa: tam görünüm sığmadığında) ---------- */
.m-kisa { display: none; }
.ust.menu-kisa .m-uzun { display: none; }
.ust.menu-kisa .m-kisa { display: inline; }
.ust.menu-kisa .ust-ic { gap: 14px; }
.ust.menu-kisa .logo small { display: none; }
.ust.menu-kisa .menu a { padding: 7px 9px; }
.ust.menu-kisa .yenile-dugme { width: 38px; padding: 0; }
.ust.menu-kisa .yenile-ikon { display: inline; font-size: 18px; line-height: 1; }
.ust.menu-kisa .yenile-metin { display: none; }

/* ---------- üst çubuk: menü tek satıra sığmazsa ☰ menü (lumen.js .menu-dar ekler; pencere genişliği, ölçekleme, kullanıcı adı fark etmez) ---------- */
.ust.menu-dar .ust-ic { flex-wrap: nowrap; position: relative; }
.ust.menu-dar .ust-sag { margin-left: auto; min-width: 0; }
.ust.menu-dar .menu-dugme { display: inline-flex; align-items: center; justify-content: center; width: 40px; padding: 0; font-size: 18px; flex: none; }
.ust.menu-dar .menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 2px;
  background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(16, 24, 40, .14);
  padding: 8px 12px 12px; max-height: calc(100vh - 60px); overflow-y: auto;
}
.ust.menu-dar.menu-acik .menu { display: flex; }
.ust.menu-dar .menu a { padding: 10px 12px; font-size: 15px; }

/* ---------- telefon (≤720 px) ---------- */
@media (max-width: 720px) {
  /* Üst çubuk: tek satır — LUMEN · tarih · yenile · ☰ (tema, hesap, kapsam menünün altında) */
  .ust-ic { gap: 8px; padding: 6px 12px; min-height: 52px; position: relative; }
  .logo { font-size: 14px; flex: none; }
  .logo small { display: none; }
  .ust-sag { margin-left: auto; gap: 6px; min-width: 0; }
  .ust-sag .tema-dugme, .ust-sag .kullanici-dugme, .ust-sag .kapsam-rozet { display: none; }
  .yenile-dugme { width: 38px; padding: 0; }
  .yenile-ikon { display: inline; font-size: 18px; line-height: 1; }
  .yenile-metin { display: none; }
  #genel-tarih { width: 142px; min-width: 0; }
  .ust.menu-dar .menu { max-height: calc(100vh - 52px); }
  .menu-ek { display: block; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }

  /* Sayfa */
  main { padding: 12px 12px 32px; }
  .alt { padding: 0 12px 24px; }
  h1 { font-size: 19px; }
  .baslik { margin-bottom: 12px; gap: 10px; }
  .izgara { gap: 10px; }
  .panel { padding: 12px; }
  .bolum { margin-top: 12px; }
  .kpi-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 11px 12px; }
  .kpi .kpi-etiket { font-size: 10.5px; letter-spacing: .02em; }
  .kpi .deger { font-size: 19px; }
  .kpi .ek, .kpi .satir { font-size: 11.5px; }
  .kpi .rozet { position: static; align-self: flex-start; }
  .icgoru { grid-template-columns: 1fr; }

  /* Form: iOS yazarken yakınlaştırmasın (16 px), alanlar satırı doldursun */
  input[type="date"], input[type="search"], input[type="text"], input[type="password"], input[type="email"], input[type="number"], select { font-size: 16px; }
  .filtre { gap: 8px; }
  .filtre label { flex: 1 1 140px; min-width: 0; }
  .filtre label input, .filtre label select { width: 100%; }
  .secim { max-width: 100%; overflow-x: auto; }
  .secim button { white-space: nowrap; }

  /* Tablo: sayfanın içinde ikinci bir dikey kaydırma olmasın; yatayda kendi içinde kayar */
  .tablo-kap { max-height: none; }
  .tablo-arac > .filtre:first-child { flex: 1 1 100%; }
  .tablo-arac input[type="search"] { min-width: 0 !important; flex: 1 1 100%; }
  .tablo-arac > .filtre:last-child { flex: 1 1 100%; align-items: center; gap: 6px; }
  .tablo-arac > .filtre:last-child .bilgi { margin-right: auto; }
  .filtre label.kart-sira { flex: 0 1 auto; flex-direction: row; align-items: center; gap: 5px; }
  .kart-sira select { max-width: 130px; }
  th, td { padding: 7px 8px; }
  td.uzun { min-width: 160px; }
  .cubuk { grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 8px; }
  .cubuk .d { min-width: 70px; font-size: 12px; }

  /* Pencere: tam ekran */
  .ortu { padding: 0; align-items: stretch; }
  .pencere, .pencere.genis, .pencere.dar { width: 100%; max-height: none; height: 100%; border-radius: 0; }
  .pencere-bas { padding: 10px 12px; }
  .pencere-bas h2 { font-size: 15px; }
  .pencere-ic { padding: 12px; }
  .pencere .tablo-kap { max-height: none; }
  .mini > b { font-size: 15px; }
  .ekstre-ust { flex-wrap: wrap; }
}

/* ---------- yeni sürüm bandı ---------- */
.surum-bant { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--panel); border-radius: 10px; padding: 10px 12px 10px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  font-size: 13.5px; max-width: calc(100vw - 24px); }
.surum-bant .dugme { background: var(--panel); color: var(--ink); border-color: transparent; }
.surum-bant .kapat-bant { background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; font-size: 16px; padding: 4px; }
@media print { .surum-bant { display: none !important; } }

/* ---------- belge akışı (teklif → sipariş → irsaliye → fatura) ---------- */
.pencere-bas .akis-dugme { margin-left: auto; white-space: nowrap; }
.ak-ag { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 44px; overflow: auto; padding: 2px 2px 8px; }
.ak-svg { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; overflow: visible; }
.ak-svg path { fill: none; stroke: var(--muted); stroke-opacity: .45; stroke-width: 1.5; }
.ak-svg path.vurgu { stroke: var(--accent); stroke-opacity: 1; stroke-width: 2.2; }
.ak-svg path.atla { stroke-dasharray: 5 4; }
.ak-ag.atlamali { padding-bottom: 30px; }
.ak-sutun { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ak-sutun h3 { margin: 0 0 2px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ak-kart { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; transition: border-color .12s, box-shadow .12s; }
.ak-kart .ak-ust { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ak-kart .ak-alt { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; }
.ak-kart .ak-alt .sessiz { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-tutar { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ak-kart.tik { cursor: pointer; }
.ak-kart.tik:hover, .ak-kart.tik:focus-visible { border-color: var(--accent); }
.ak-kart.bagli { border-color: var(--accent); }
.ak-kart.aktif { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.ak-kart.soluk { opacity: .6; border-style: dashed; }
.ak-bag { display: none; font-size: 11.5px; overflow-wrap: anywhere; }
.ak-tutar.neg { color: var(--neg); }
.ak-dip { margin-top: 2px; padding: 8px 10px; border-top: 2px solid var(--line); font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.ak-dip-ust { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); }
.ak-dip-ust b { color: var(--ink); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .akis-dugme .akis-metin { display: none; }
  /* Dar ekran: sütunlar alt alta, çizgi yok; her kartta geldiği belgeler yazılır */
  .ak-ag { grid-auto-flow: row; grid-auto-columns: auto; gap: 20px; overflow: visible; }
  .ak-svg { display: none; }
  .ak-sutun { gap: 8px; }
  .ak-bag { display: block; }
}

/* ---------- evrak akışı (çek / senet yolculuğu) ---------- */
.ev-baslik { margin: 18px 0 8px; font-size: 14px; font-weight: 600; }
.ev-baslik .sessiz { font-weight: 400; font-size: 12.5px; }
.ev-akis { list-style: none; margin: 0; padding: 0; position: relative; }
.ev-akis li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; position: relative; padding: 0 0 12px; }
.ev-akis li::before { content: ''; position: absolute; left: 99px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel); border: 2px solid var(--muted); z-index: 1; }
.ev-akis li::after { content: ''; position: absolute; left: 105px; top: 14px; bottom: -6px; width: 2px; background: var(--line); }
.ev-akis li:last-child::after { display: none; }
.ev-akis li.pos::before { border-color: var(--pos); background: var(--pos); }
.ev-akis li.neg::before { border-color: var(--neg); background: var(--neg); }
.ev-akis li.uyari::before { border-color: var(--warn); }
.ev-akis li.duzeltme { opacity: .55; }
.ev-akis li.duzeltme::before { border-style: dashed; }
.ev-akis li.ev-simdi::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ev-akis li.ev-simdi.neg::before { border-color: var(--neg); background: var(--neg); }
.ev-akis li.ev-simdi.pos::before { border-color: var(--pos); background: var(--pos); }
.ev-tarih { font-size: 12.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; padding-top: 1px; }
.ev-ic { padding-left: 22px; min-width: 0; font-size: 13.5px; }
.ev-ic .sessiz { font-size: 12px; }
.ev-taraf { overflow-wrap: anywhere; }
.ev-bordro { font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 700px) {
  .ev-akis li { grid-template-columns: 74px 1fr; gap: 10px; }
  .ev-akis li::before { left: 79px; }
  .ev-akis li::after { left: 85px; }
  .ev-ic { padding-left: 18px; }
}

/* ---------- OPUS ---------- */
/* Veritabanı rozeti (üst çubuk): test veritabanında sarı, başka bir veritabanında kırmızı. Telefonda da görünür kalır. */
.vt-rozet { font-size: 11.5px; letter-spacing: .02em; cursor: help; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.vt-rozet[hidden] { display: none; }
/* Ana sayfa modül kartları */
.modul-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.modul-kart { display: block; padding: 16px 18px; color: var(--ink); border: 1px solid var(--line); }
.modul-kart:hover { text-decoration: none; border-color: var(--accent); }
.modul-kart h3 { margin-bottom: 4px; color: var(--accent); }
.modul-kart p { margin: 0; font-size: 13px; color: var(--muted); }
.modul-kart.bekliyor { opacity: .6; cursor: default; }
.modul-kart.bekliyor:hover { border-color: var(--line); }
.bilgi-liste { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 13.5px; }
.bilgi-liste dt { color: var(--muted); }
.bilgi-liste dd { margin: 0; }
/* Netsis yazma denemesi adımları (yönetim) */
.deneme-adimlar { margin: 8px 0 0; padding-left: 22px; font-size: 13px; }
.deneme-adimlar li { margin: 4px 0; }

/* ---------- teklif ve parametre formları (adım 5–6) ---------- */
input[type="number"], textarea {
  background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; min-height: 34px; font: inherit; color: var(--ink);
}
textarea { min-height: 120px; width: 100%; resize: vertical; line-height: 1.45; }
input:disabled, select:disabled, textarea:disabled, input[readonly] { background: var(--soft); color: var(--muted); }
.alan-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 12px; }
.alan-izgara label, .alan { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); font-weight: 600; min-width: 0; }
.alan-izgara label input, .alan-izgara label select, .alan-izgara label textarea { font-weight: 400; width: 100%; }
.alan-izgara .genis2 { grid-column: span 2; }
.alan-izgara .tam { grid-column: 1 / -1; }
.alan-not { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.cari-sec { display: flex; gap: 6px; }
.cari-sec input { flex: 1 1 auto; min-width: 0; }
.cari-ad { font-weight: 400; color: var(--ink); font-size: 12.5px; min-height: 16px; }
.arac-cubuk { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.arac-cubuk .bosluk { flex: 1 1 auto; }
.durum-metni { font-size: 12.5px; color: var(--muted); }
.durum-metni.neg { color: var(--neg); }
.durum-metni.pos { color: var(--pos); }
.bilgi-bant { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px; }
.bilgi-bant.uyari { border-left-color: var(--warn); background: var(--warn-soft); }
.bilgi-bant.neg { border-left-color: var(--neg); background: var(--neg-soft); }
.toplam-kutu { display: grid; grid-template-columns: max-content max-content; gap: 4px 18px; justify-content: end; font-size: 13.5px; }
.toplam-kutu dt { color: var(--muted); text-align: right; }
.toplam-kutu dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; min-width: 120px; }
.toplam-kutu .genel { font-weight: 700; font-size: 15px; color: var(--ink); }
.teklif-alt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
@media (max-width: 900px) { .teklif-alt { grid-template-columns: 1fr; } .toplam-kutu { justify-content: start; } }
.uyari-isaret { color: var(--warn); font-weight: 700; cursor: help; }
.prm-ayar textarea { min-height: 150px; }
.prm-ayar .alan-izgara { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.degisti-rozet { margin-left: 6px; }

/* Tabulator: OPUS renkleri (açık / koyu tema değişkenleriyle) */
.tabulator { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--ink); }
.tabulator .tabulator-header { background: var(--soft); border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.tabulator .tabulator-header .tabulator-col { background: var(--soft); border-right: 1px solid var(--line); }
.tabulator .tabulator-header .tabulator-col .tabulator-col-content { padding: 6px 8px; }
.tabulator .tabulator-tableholder { background: var(--panel); }
.tabulator .tabulator-tableholder .tabulator-table { background: var(--panel); color: var(--ink); }
.tabulator-row { background: var(--panel); border-bottom: 1px solid var(--line); min-height: 30px; }
.tabulator-row.tabulator-row-even { background: var(--panel); }
.tabulator-row.tabulator-selectable:hover { background: var(--soft); }
.tabulator-row .tabulator-cell { border-right: 1px solid var(--line); padding: 5px 8px; }
.tabulator-row .tabulator-cell.tabulator-editable { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); cursor: text; }
.tabulator-row .tabulator-cell.tabulator-editing { border: 1px solid var(--accent); padding: 0; }
.tabulator-row .tabulator-cell.tabulator-editing input, .tabulator-row .tabulator-cell.tabulator-editing select { background: var(--panel); color: var(--ink); padding: 4px 6px; }
.tabulator-row .tabulator-cell.sag, .tabulator .tabulator-header .tabulator-col.sag .tabulator-col-title { text-align: right; }
.tabulator .tabulator-footer { background: var(--soft); border-top: 1px solid var(--line); color: var(--ink); }
.tabulator .tabulator-footer .tabulator-calcs-holder { background: var(--soft); border-top: 0; }
.tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row { background: var(--soft); font-weight: 600; }
.tabulator .tabulator-placeholder .tabulator-placeholder-contents, .tabulator-placeholder span { color: var(--muted) !important; font-size: 13px !important; font-weight: 400 !important; padding: 14px !important; }
.tabulator-row.satir-uyari .tabulator-cell:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.tabulator .sil-hucre { color: var(--neg); cursor: pointer; text-align: center; font-weight: 700; }
.tabulator-tooltip { background: var(--ink); color: var(--panel); border-radius: 6px; font-size: 12px; padding: 5px 8px; max-width: 420px; }

/* ---------- Kanal teklif formu: SmartTeklif ekranına yakın yerleşim (sol başlık, sağ satırlar, alt notlar / düğmeler / toplamlar) ---------- */
.dugme.yesil { background: var(--pos); border-color: var(--pos); color: #fff; }
.dugme.mavi { background: var(--accent); border-color: var(--accent); color: #fff; }
.dugme.kirmizi { background: var(--neg); border-color: var(--neg); color: #fff; }
.dugme.yesil:hover, .dugme.mavi:hover, .dugme.kirmizi:hover { filter: brightness(1.08); background-color: inherit; }
.dugme.yesil:hover { background: var(--pos); } .dugme.mavi:hover { background: var(--accent); } .dugme.kirmizi:hover { background: var(--neg); }
.dugme.genis { width: 100%; }
.dugme:disabled { opacity: .55; cursor: default; }
main.genis-sayfa { max-width: none; }
.form-ust { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.form-ust h1 { margin: 0; font-size: 20px; }
.form-ust .bosluk { flex: 1 1 auto; }
.teklif-duzen { display: grid; grid-template-columns: minmax(330px, 430px) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.teklif-sol { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.teklif-sag { padding: 8px; display: flex; flex-direction: column; min-width: 0; }
/* Satır tablosu sağ panelin kalan yüksekliğini doldurur (panel, soldaki form kadar uzar); dar ekranda sabit yükseklik */
.teklif-sag > .tabulator { flex: 1 1 0; min-height: 320px; }
.yatay-form { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 6px 10px; align-items: center; font-size: 13px; }
.yatay-form > label { color: var(--muted); font-size: 12.5px; }
.yatay-form input, .yatay-form select { width: 100%; min-height: 30px; padding: 4px 8px; }
.yatay-form .iki-alan { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.yatay-form .cari-sec input { cursor: pointer; }
.yatay-form .cari-sec .dugme { min-height: 30px; padding: 2px 9px; }
.yatay-form .cari-ad { grid-column: 2; margin-top: -3px; }
.agirlik-toplam { text-align: right; font-weight: 600; font-size: 13px; padding: 6px 10px 2px; color: var(--muted); }
.agirlik-toplam b { color: var(--ink); }
.teklif-alt2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .9fr) minmax(260px, .8fr); gap: 16px; margin-top: 12px; align-items: start; padding: 12px 14px; }
.teklif-dugmeler { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.teklif-dugmeler .tam { grid-column: 1 / -1; }
.teklif-dugmeler .dugme { min-height: 36px; }
.gosterge-anahtar { display: flex; flex-wrap: wrap; gap: 6px 14px; grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); padding-top: 4px; }
.gosterge-anahtar label { display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.toplam-form input[readonly] { text-align: right; font-variant-numeric: tabular-nums; background: var(--soft); color: var(--ink); border-style: dashed; }
.toplam-form input { text-align: right; }
.toplam-form .genel { font-weight: 700; }
.tabulator-row.secili, .tabulator-row.secili .tabulator-cell { background: var(--accent-soft) !important; }
.tabulator .ekle-hucre { color: var(--accent); cursor: pointer; text-align: center; font-weight: 700; }
.fiyat-ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fiyat-ikili h3 { margin: 0 0 6px; font-size: 14px; }
@media (max-width: 1100px) {
  .teklif-duzen, .teklif-alt2 { grid-template-columns: 1fr; }
  .teklif-sag > .tabulator { flex: none; height: 60vh !important; }
}
@media (max-width: 600px) { .fiyat-ikili { grid-template-columns: 1fr; } }
.yatay-form input[type="checkbox"], .gosterge-anahtar input[type="checkbox"] { width: auto; min-height: 0; margin: 0; }
.gosterge-anahtar label { flex-direction: row; }
.tabulator .sira-tutamac { cursor: grab; }
.tabulator .sira-tutamac .tutamac { color: var(--muted); letter-spacing: -2px; margin-right: 2px; }
.tabulator-row.tabulator-moving { box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.tabulator-menu { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.18); font-size: 13px; }
.tabulator-menu .tabulator-menu-item { padding: 7px 12px; }
.tabulator-menu .tabulator-menu-item:not(.tabulator-menu-item-disabled):hover { background: var(--soft); }

/* Siparişe çevir penceresi (adım 8) */
.siparis-ozet { width: 100%; border-collapse: collapse; font-size: 13px; margin: 4px 0 8px; }
.siparis-ozet th { text-align: left; font-weight: 400; color: var(--muted); padding: 4px 10px 4px 0; white-space: nowrap; background: none; position: static; border: 0; }
.siparis-ozet td { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; padding: 4px 0; overflow-wrap: anywhere; }
.siparis-ozet tr + tr { border-top: 1px dashed var(--line); }
.siparis-ozet tr.toplam th, .siparis-ozet tr.toplam td { font-weight: 700; color: var(--ink); }
.engel-metni { white-space: pre-line; }

/* Listede küçük ikon kolonları (Kanal teklifleri: yazdır, siparişe çevir) */
th.ikon-kol, td.ikon-kol { width: 1%; padding-left: 4px; padding-right: 0; text-align: center; }
th.ikon-kol input.ff { display: none; }
.ikon-dugme { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 24px; border-radius: 6px; color: var(--accent); vertical-align: middle; }
.ikon-dugme svg { width: 16px; height: 16px; }
a.ikon-dugme:hover, a.ikon-dugme:focus-visible { background: var(--accent-soft); }
.ikon-dugme.pasif { color: var(--pos); cursor: default; }

/* Pano teklif formu (adım 10) */
.kur-uygula { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.kur-uygula .dugme { min-height: 30px; padding: 2px 10px; font-weight: 700; }
.pano-alt { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)) minmax(260px, .9fr); gap: 16px; margin-top: 12px; align-items: start; padding: 12px 14px; }
.pano-alt .yatay-form { grid-template-columns: 140px minmax(0, 1fr); }
.alt-toplam { text-align: right; font-size: 13px; color: var(--muted); padding: 8px 4px 0; }
.alt-toplam b { color: var(--ink); font-variant-numeric: tabular-nums; }
.alt-ekle { flex-wrap: wrap; align-items: center; }
@media (max-width: 1100px) { .pano-alt { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .pano-alt { grid-template-columns: 1fr; } }

/* Teklif ekleri (adım 12) */
.ek-yukle { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 10px; border: 2px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; cursor: pointer; }
.ek-yukle.ustunde { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.ek-yukle input[type="file"] { max-width: 260px; }

/* Kısa bildirimler (toplu değişiklik: kur, bakır, iskonto…) — L.bildirim */
.bildirimler { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; z-index: 1200; pointer-events: none; }
.bildirim { background: var(--ink); color: var(--bg, #fff); font-size: 13px; padding: 7px 14px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.18); max-width: min(560px, 92vw); opacity: .96; transition: opacity .5s; }
.bildirim.gidiyor { opacity: 0; }

/* Pano alt satır renkleri (kullanıcı isteği 25.11.2026): birim fiyat 0 kırmızı, son alışın altında sarı, ayraç ayrı renk */
.tabulator-row.satir-sifir, .tabulator-row.satir-sifir.tabulator-row-even { background: var(--neg-soft); }
.tabulator-row.satir-sifir .tabulator-cell[tabulator-field="netFiyat"] { color: var(--neg); font-weight: 700; }
.tabulator-row.satir-zarar, .tabulator-row.satir-zarar.tabulator-row-even { background: var(--warn-soft); }
.tabulator-row.satir-zarar .tabulator-cell[tabulator-field="netFiyat"] { color: var(--warn); font-weight: 700; }
.tabulator-row.satir-ayrac, .tabulator-row.satir-ayrac.tabulator-row-even { background: var(--accent-soft); border-top: 2px solid var(--accent); }
.tabulator-row.satir-ayrac .tabulator-cell { color: var(--accent); }
.ayrac-etiket { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--accent); }

/* Sipariş Basımı listesi: yazdırılan siparişler yeşil zemin, kapalı sipariş kırmızı yazı */
tr.satir-yazdirildi > td, tbody tr.satir-yazdirildi:hover > td { background: var(--pos-soft); }
tr.satir-kapali > td { color: var(--neg); }

/* Teklif formu (kullanıcı istekleri 25.11.2026): iş emrine giden alanların etiketi kırmızı; kolon seçimi tablonun üstünde;
   sevk notu iki satırlık kutu (tek satırlık metin, Enter yeni satır açmaz); karakter sınırı sayacı; Kanal satır renkleri */
.is-emri { color: var(--neg); font-weight: 600; }
.yatay-form textarea { width: 100%; min-height: 0; padding: 4px 8px; resize: vertical; font: inherit; line-height: 1.35; }
.kolon-secim { padding: 0 2px 6px; }
.alan-sinir { display: block; grid-column: 2; font-size: 11.5px; color: var(--warn); margin-top: -2px; }
.alan-sinir.dolu { color: var(--neg); font-weight: 600; }
.tabulator-row.satir-hata, .tabulator-row.satir-hata.tabulator-row-even { background: var(--neg-soft); }
.tabulator-row.satir-hata .tabulator-cell[tabulator-field="stokKodu"], .tabulator-row.satir-hata .tabulator-cell[tabulator-field="stokAdi"] { color: var(--neg); font-weight: 700; }

/* Teklif formu (kullanıcı istekleri 25.11.2026, 2. tur): TCMB kuru USD kırmızı / EUR mavi; "Daha Fazla İşlem" menüsü; sac / daldırma penceresi */
.kur-usd { color: var(--neg); font-weight: 600; }
.kur-eur { color: #1d5bd8; font-weight: 600; }
:root[data-theme="dark"] .kur-eur { color: #7aa7ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kur-eur { color: #7aa7ff; } }
.kolon-secim { align-items: center; }
details.menu { position: relative; margin-left: auto; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu .menu-liste { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 250px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 4px; display: flex; flex-direction: column; }
details.menu .menu-liste button { text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: 6px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
details.menu .menu-liste button:hover, details.menu .menu-liste button:focus-visible { background: var(--accent-soft); }
details.menu .menu-liste hr { border: 0; border-top: 1px solid var(--line); margin: 3px 0; }
.fiyat-pencere .fiyat-ikili { grid-template-columns: repeat(2, 240px); justify-content: center; }
.fiyat-pencere .fiyat-tek { width: 240px; margin: 0 auto; }
.fiyat-pencere .fiyat-ust { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12.5px; }
.tabulator-row.fiyat-degisti .tabulator-cell { font-weight: 700; }
@media (max-width: 600px) { .fiyat-pencere .fiyat-ikili { grid-template-columns: 1fr; } .fiyat-pencere .fiyat-tek { width: auto; } }

/* Pano teklif notları (kullanıcı isteği 25.11.2026): solda iç not ve üretim notu, sağda müşteri notu (kırmızı başlık) */
.teklif-notlar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 12px; padding: 12px 14px; }
.teklif-notlar .not-sol { display: flex; flex-direction: column; gap: 12px; }
.not-alan { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.not-alan .not-bas { font-weight: 600; color: var(--ink); }
.not-alan .not-bas .sessiz { font-weight: 400; }
.not-alan textarea { width: 100%; padding: 6px 8px; font: inherit; font-size: 13px; color: var(--ink); line-height: 1.4; resize: vertical; }
.teklif-notlar .not-sag textarea { flex: 1 1 auto; }
.musteri-not { color: var(--neg); font-weight: 700; }
@media (max-width: 900px) { .teklif-notlar { grid-template-columns: 1fr; } }
.pano-notlar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.pano-notlar .not-sol { display: flex; flex-direction: column; gap: 12px; }
.pano-notlar .not-sag textarea { flex: 1 1 auto; }
@media (max-width: 700px) { .pano-notlar { grid-template-columns: 1fr; } }

/* Pano notu açılır kutusu (Not kolonu): satırın altında, otomatik kaydedilir. Notu olan panonun simgesi turuncu rozet */
.pano-not-kutu { position: fixed; z-index: 40; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.22); padding: 10px 12px 12px; }
.pano-not-kutu .pano-not-bas { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: 13px; }
.pano-not-kutu .pano-not-bas .sessiz { font-size: 12px; }
.pano-not-kutu textarea { min-height: 0; }
.tabulator .ekle-hucre .not-var { display: inline-block; background: var(--warn); color: #fff; border-radius: 5px; padding: 0 5px; line-height: 1.5; }
/* Seçili / üzerine gelinen satırda da kırmızı (fiyat 0, stok yok) ve sarı (son alışın altında) vurgu kalır; seçim çerçeveyle gösterilir */
.tabulator-row.satir-sifir.secili, .tabulator-row.satir-sifir.secili .tabulator-cell, .tabulator-row.satir-sifir:hover,
.tabulator-row.satir-hata.secili, .tabulator-row.satir-hata.secili .tabulator-cell, .tabulator-row.satir-hata:hover { background: var(--neg-soft) !important; }
.tabulator-row.satir-zarar.secili, .tabulator-row.satir-zarar.secili .tabulator-cell, .tabulator-row.satir-zarar:hover { background: var(--warn-soft) !important; }
.tabulator-row.secili.satir-sifir, .tabulator-row.secili.satir-hata, .tabulator-row.secili.satir-zarar { outline: 2px solid var(--accent); outline-offset: -2px; }
/* Sac penceresi: son alıştan düşük fiyat (kullanıcı isteği 25.11.2026) */
.son-alis-uyari { border: 2px solid var(--neg); background: var(--neg-soft); color: var(--neg); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.son-alis-uyari .son-alis-bas { font-size: 16px; font-weight: 800; letter-spacing: .02em; margin-bottom: 4px; }
.son-alis-uyari ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.5; }
.son-alis-uyari p { margin: 4px 0 0; font-size: 12.5px; }
.tabulator-row.fiyat-dusuk .tabulator-cell[tabulator-field="fiyat"] { color: var(--neg); font-weight: 800; }
/* Sac / daldırma penceresi: teklifte kullanılan kalınlık (nokta + soldan vurgu) */
.kullanilan-isaret { color: var(--accent); font-size: 11px; }
.tabulator-row.fiyat-kullanilan .tabulator-cell:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.tabulator-row.fiyat-kullanilan, .tabulator-row.fiyat-kullanilan.tabulator-row-even { background: var(--accent-soft); }
/* Basım: stok durumu seçimi (radyo) */
.stok-modu { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 13.5px; margin: 0 0 10px; }
.stok-modu .stok-modu-bas { font-weight: 600; }
.stok-modu label { display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.stok-modu input { width: auto; min-height: 0; margin: 0; }
.stok-modu.kucuk { font-size: 13px; margin: 0; gap: 4px 12px; }
