/* Faz 20: hidden özniteliği her zaman gizler (bileşen display kuralları ezmesin — ekstrede görünen ölü "Sil" düğmesi) */
[hidden] { display: none !important; }
:root {
  --ui-scale: 1;
  --table-row-h: 2.5rem;
  --table-pad-y: 0.45rem;
  --table-font: 0.96rem;
  --table-th-font: 0.8rem;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --accent-border: #c7d2fe;
  --warn: #b45309;
  --bad: #e11d48;
  --pos: #059669;
  --neg: #e11d48;
  --shadow: 0 1px 0.16rem rgba(15, 23, 42, 0.04);
  --radius: 0.64rem;
  --radius-sm: 0.48rem;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
  --header-h: 4.16rem;
}

* { box-sizing: border-box; }
html, body.h-full { height: 100%; }
html {
  /* Tek olcek dugmesi — body font shorthand bunu EZMEMELI */
  font-size: calc(12.5px * var(--ui-scale, 1));
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* Shell */
.app-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.main { flex: 1; min-width: 0; }
.content {
  max-width: 102.4rem;
  margin: 0 auto;
  padding: 0.96rem 1.28rem 1.92rem;
  width: 100%;
}

/* Sticky top header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.app-header-inner {
  max-width: 102.4rem;
  margin: 0 auto;
  padding: 0 0.96rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.96rem;
}
.brand {
  display: flex;
  gap: 0.64rem;
  align-items: center;
  color: inherit;
  flex-shrink: 0;
}
.brand-mark {
  width: 2.24rem;
  height: 2.24rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.96rem;
}
.brand-title {
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--ink);
}
.brand-accent { color: var(--accent); margin-left: 1px; }
.brand-sub {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.2;
}
.top-nav {
  display: none;
  align-items: center;
  gap: 0.16rem;
  flex: 1;
  min-width: 0;
}
.top-nav a {
  color: #475569;
  padding: 0.48rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}
.top-nav a:hover { color: var(--ink); background: #f8fafc; }
.top-nav a.on {
  color: #3730a3;
  background: var(--accent-soft);
  border-color: var(--accent-border);
  font-weight: 600;
}
.header-meta {
  margin-left: auto;
  flex-shrink: 0;
}
.page-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mob-nav {
  display: flex;
  flex-wrap: wrap; /* Faz 16: yatay kaydırma yerine sarma */
  gap: 0.48rem;
  padding: 0.48rem 0.96rem 0.64rem;
  border-top: 1px solid var(--line-soft);
  background: #f8fafc;
  -webkit-overflow-scrolling: touch;
}
.mob-nav a {
  flex-shrink: 0;
  padding: 0.32rem 0.8rem;
  border-radius: 0.32rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #475569;
  background: #fff;
  border: 1px solid var(--line);
}
.mob-nav a.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (min-width: 900px) {
  .top-nav { display: flex; }
  .mob-nav { display: none; }
  .content { padding: 1.12rem 1.6rem 2.24rem; }
  .app-header-inner { padding: 0 1.6rem; }
}

/* Legacy sidebar classes (unused, keep harmless) */
.sidebar, .side-nav, .side-foot, .topbar { display: none !important; }

/* Stack / cards */
.stack { display: flex; flex-direction: column; gap: 0.8rem; }
.card {
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius);
  padding: 0.8rem 0.96rem;
  box-shadow: var(--shadow);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.64rem;
  margin-bottom: 0.64rem;
  padding-bottom: 0.48rem;
  border-bottom: 1px solid var(--line-soft);
}
.card-head h2 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
}

/* Toolbar */
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.64rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.64rem 0.8rem;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.toolbar .left, .toolbar .right {
  display: flex;
  gap: 0.48rem;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar .right { margin-left: auto; }
.toolbar .field, .toolbar .select {
  width: auto;
  min-width: 14.4rem;
  max-width: 25.6rem;
}

/* Fields — compact, no spinners */
.field, .select, textarea.field {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.48rem 0.64rem;
  font: inherit;
  font-size: 0.96rem;
  color: inherit;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.field:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 0.16rem var(--accent-soft);
}
input.field[type="number"]::-webkit-outer-spin-button,
input.field[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input.field[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.field.mono { font-family: var(--mono); font-size: 0.92rem; }
.secret-field { position: relative; }
.secret-field .field { padding-right: 2.5rem; }
.secret-toggle {
  position: absolute;
  right: 0.28rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 0;
}
.secret-toggle:hover { color: #0f172a; background: #f1f5f9; }
.secret-toggle svg { width: 1.15rem; height: 1.15rem; display: block; }
.label {
  display: block;
  font-size: 0.88rem;
  color: #475569;
  margin-bottom: 0.24rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.48rem 0.8rem;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.25;
}
.btn:hover { background: var(--accent-hover); }
.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover { background: #f8fafc; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Tabs */
.tabs { display: flex; gap: 0.32rem; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 500;
  color: #475569;
}
.tab.on {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: #3730a3;
  font-weight: 600;
}

/* Tables — single-line, fixed density via CSS vars (Ayarlar → Ekran) */
.table-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  min-width: 58rem;
  border-collapse: collapse;
  table-layout: fixed;
}
.table th,
.table td {
  height: var(--table-row-h);
  max-height: var(--table-row-h);
  padding: var(--table-pad-y) 0.64rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis;
  box-sizing: border-box;
  line-height: 1.25;
}
.table th {
  text-align: left;
  font-size: var(--table-th-font);
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.table td {
  font-size: var(--table-font);
}
/* Faz 2 — hücre tip sınıfları TableRegistry'den gelir: .c-date .c-num .c-money .c-badge .c-action .c-text .c-img .c-multi
   Görsel stil Faz 5'te (tipografi) bu sınıflara bağlanacak; şimdilik görünüm değişmesin diye yalnız çok satırlı hücre tanımlı.
   Satır yüksekliği: tablo hücresinde `height` zaten en az yükseklik gibi davranır (içerik uzarsa satır büyür). */
.table td.c-multi { white-space: normal !important; line-height: 1.2; }
.table td .c-l1 { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table td .c-l2 { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86em; color: var(--muted); }
.table td > * {
  max-width: 100%;
}
.table td.cell-clip,
.table td.col-unvan,
.table td.col-name,
.table td.col-cari,
.table td.col-desc,
.table td.col-tip,
.table td.col-fisno {
  cursor: pointer;
}
.table tr:hover td { background: rgba(248, 250, 252, .85); }
.table .btn {
  padding: 0.2rem 0.5rem;
  font-size: calc(var(--table-font) * 0.92);
  vertical-align: middle;
}
.table .btn.ghost { white-space: nowrap !important; }
.table .chip {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.table .thumb,
.table .thumb.empty {
  width: 1.6rem;
  height: 1.6rem;
  display: inline-block;
  vertical-align: middle;
  object-fit: cover;
  border-radius: 0.25rem;
}
.table .thumb.empty {
  background: #e2e8f0;
}

.mono { font-family: var(--mono); font-size: 0.92em; font-variant-numeric: tabular-nums; }
.strong { font-weight: 600; }
.muted { color: var(--muted); font-size: 0.92em; }
.right, .table th.right, .table td.right { text-align: right !important; }
.center, .table th.center, .table td.center { text-align: center !important; }
.table th.col-actions, .table td.col-actions {
  text-align: center !important;
  white-space: nowrap !important;
}
.table td.col-actions .btn { margin-left: 0.16rem; }
.table td.col-money,
.table td.nowrap {
  white-space: nowrap !important;
}
.table th.center.col-money { text-align: center !important; }
#cari-table .col-money { width: 11.84rem; }
#cari-table .col-actions { width: 12.8rem; }
#stok-table .col-kdv { width: 4.48rem; }
#fis-table .col-money,
#dash-fis-table .col-money,
#giderfis-table .col-money { width: 8.96rem; }
#finans-table .col-money { width: 8.64rem; }

/* Shared col widths */
.table .col-date { width: 7.68rem; }
.table .col-code { width: 4.48rem; }
.table .col-fisno { width: 11.84rem; }
.table .col-tip { width: 10.24rem; }
.table .col-yon { width: 6.08rem; }
.table .col-kanal { width: 6.08rem; }
.table .col-doviz { width: 4.48rem; }
.table .col-money { width: 8.32rem; }
.table .col-status { width: 7.04rem; }
.table .col-unit { width: 4.48rem; }
.table .col-kdv { width: 5.12rem; }
.table .col-isk { width: 5.76rem; }
.table .col-qty { width: 5.76rem; }
.table .col-img { width: 3.52rem; }
.table .col-barkod { width: 5.76rem; }
.table .col-actions { width: 11.84rem; }
.table .col-grow { width: auto; }
/* Faz 4: gizliler gösterilirken satırda Göster düğmesi de var → işlem kolonu genişler */
.table.gizli-goster .col-actions { width: 15.2rem; }
#cari-table.gizli-goster .col-actions { width: 7.5rem; }
#stok-table .col-actions { width: 7.5rem; }
#stok-table.gizli-goster .col-actions { width: 7.5rem; }

#fis-table .col-cari,
#dash-fis-table .col-cari,
#giderfis-table .col-cari { width: auto; }
/* Faz 15: giriş/çıkış hesabı kolonları eşit genişlik; uzun ad tek satırda kırpılır (tam ad title'da) */
#finans-table .col-hesap { width: 15%; max-width: 15rem; }
#finans-table td.col-hesap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#finans-table .col-desc { width: auto; }
#cari-table .col-unvan { width: auto; }
#stok-table .col-name { width: auto; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }

.chip {
  display: inline-block;
  padding: 1px 0.48rem;
  border-radius: 0.32rem;
  --chip-bg: #f1f5f9; /* Faz 5: arka plan değişkenden — tipografi ayarı saydamlığı buna uygular */
  background: var(--chip-bg);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}
.chip.ok { --chip-bg: #ecfdf5; color: #047857; }
.chip.warn { --chip-bg: #fff7ed; color: #c2410c; }
.chip.bad { --chip-bg: #fff1f2; color: #be123c; }

/* KPI */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.64rem;
}
@media (min-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.kpi {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius);
  padding: 0.8rem;
  box-shadow: var(--shadow);
}
.kpi .kpi-l {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.kpi .kpi-v {
  font-size: 1.28rem;
  font-weight: 700;
  margin-top: 0.16rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.kpi .kpi-h { margin-top: 0.16rem; font-size: 0.8rem; }

.check { display: none !important; }
.linkish {
  background: none;
  border: 0;
  color: var(--accent);
  font: inherit;
  font-family: var(--mono);
  cursor: pointer;
  padding: 0;
  font-size: 0.92rem;
}

/* Toast */
.toast {
  position: fixed;
  top: 1.12rem;
  right: 1.12rem;
  z-index: 100;
  max-width: min(30.4rem, calc(100vw - 2.24rem));
  background: #0f172a;
  color: #fff;
  padding: 0.64rem 0.96rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.35;
  box-shadow: 0 0.64rem 1.92rem rgba(15, 23, 42, .2);
  pointer-events: none;
}
.toast[hidden] { display: none !important; }

/* Wizard drawer */
.wiz-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .35);
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  backdrop-filter: blur(1px);
}
.wiz, .wiz-panel {
  width: min(86.4rem, 96vw);
  max-width: 96vw;
  height: 100%;
  background: #fff;
  color: var(--ink);
  box-shadow: -0.64rem 0 2.4rem rgba(15, 23, 42, .12);
  display: flex;
  flex-direction: column;
  animation: slide .18s ease;
}
@keyframes slide {
  from { transform: translateX(1.28rem); opacity: .7; }
  to { transform: none; opacity: 1; }
}
.wiz-head {
  padding: 0.8rem 1.12rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
  background: #f8fafc;
}
.wiz-title-line {
  margin: 0 0 0.32rem;
  font-size: 1.04rem;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.32rem;
  line-height: 1.35;
}
.wiz-title-main { font-weight: 700; }
.wiz-title-cari {
  font-weight: 500;
  font-size: 0.96rem;
  color: #475569;
}
.wiz-title-cari .cari-inline { font-weight: 500; }
.wiz-title-cari .neg { color: var(--neg); font-weight: 700; }
.wiz-title-cari .pos { color: var(--pos); font-weight: 700; }
.wiz-summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.64rem 0.8rem;
}
.wiz-summary-row .wiz-summary { margin-top: 0; flex: 1; min-width: 0; }
.wiz-onay-slot { flex-shrink: 0; margin-left: auto; }
.wiz-onay-slot .switch { transform: none; }

.wiz-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 0.32rem;
}
.wiz-pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 79.92rem;
  padding: 0.24rem 0.64rem;
  font-size: 0.88rem;
  cursor: pointer;
  color: #475569;
}
.wiz-pill:hover { border-color: var(--accent-border); background: var(--accent-soft); }
.wiz-pill.on {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: #3730a3;
  font-weight: 600;
}
.wiz-pill.done {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}
.wiz-steps { display: none !important; }
.wiz-body {
  padding: 0.96rem 1.12rem;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.wiz-body.has-lines { overflow: hidden; padding-bottom: 0.64rem; }
.wiz-foot {
  padding: 0.96rem 1.12rem;
  min-height: 6.4rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.96rem 1.28rem;
  background: #f8fafc;
}
.wiz-foot-left, .wiz-foot-right {
  display: flex;
  align-items: center;
}
.wiz-foot-mid { min-width: 0; display: flex; justify-content: center; align-items: center; }
.wiz-cari-bar, .wiz-title-cari {
  padding: 0;
  border: 0;
  background: transparent;
}
.cari-inline { display: inline; word-break: break-word; }
.cari-inline .neg { color: var(--neg); font-weight: 700; }
.cari-inline .pos { color: var(--pos); font-weight: 700; }
.lines-toolbar { display: none !important; }
.lines-add { display: none; }
.lines-add-row td {
  padding: 0.32rem 0.64rem !important;
  border-bottom: 0 !important;
  background: #fff !important;
}
.lines-add-row .btn { padding: 0.32rem 0.64rem; font-size: 0.88rem; }
.lines-table {
  table-layout: fixed;
  width: 100%;
  min-width: 62.4rem;
  margin: 0;
  border-collapse: collapse;
}
.lines-table th, .lines-table td {
  white-space: nowrap;
  padding: 0.32rem 0.4rem !important;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lines-table th.right, .lines-table td.right { text-align: right; }
.lines-table .col-img {
  width: 3.2rem;
  min-width: 3.2rem;
  max-width: 3.2rem;
  padding-left: 0.32rem !important;
  padding-right: 0 !important;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.72rem;
}
.lines-table .col-kod {
  width: 3.52rem;
  min-width: 3.52rem;
  max-width: 4.16rem;
  padding-left: 0 !important;
  padding-right: 0.32rem !important;
}
.lines-table .col-urun { width: auto; min-width: 9.6rem; white-space: normal; }
.lines-table .col-mik { width: 5.12rem; min-width: 5.12rem; max-width: 5.12rem; }
.lines-table .col-fiyat { width: 5.76rem; min-width: 5.76rem; max-width: 5.76rem; }
.lines-table .col-isk { width: 4.64rem; min-width: 4.64rem; max-width: 4.64rem; }
.lines-table .col-kdv { width: 4.16rem; min-width: 4.16rem; max-width: 4.16rem; }
.lines-table .col-tutar { width: 7.04rem; min-width: 7.04rem; max-width: 8rem; }
.lines-table .col-del { width: 2.56rem; min-width: 2.56rem; max-width: 2.56rem; padding: 0.16rem !important; }
.lines-table .thumb { width: 2.24rem; height: 2.24rem; }
.lines-table .cell-edit {
  cursor: text;
  position: relative;
  min-height: 2.4rem;
  height: 2.4rem;
}
.lines-table .cell-edit .cell-val {
  user-select: none;
  -webkit-user-select: none;
}
.lines-table .col-urun.cell-edit {
  height: auto;
  min-height: 2.4rem;
}
.lines-table .cell-val {
  display: block;
  min-height: 1.25em;
  line-height: 1.25em;
  padding: 0.16rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.lines-table td.right .cell-val { text-align: right; }
.lines-table .cell-input {
  position: absolute !important;
  left: 0.16rem;
  right: 0.16rem;
  top: 0.16rem;
  bottom: 0.16rem;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 1px 0.24rem !important;
  font-size: 0.88rem !important;
  box-sizing: border-box;
  z-index: 2;
}
.lines-table .cell-input-num { text-align: right; }
.lines-table .lines-suggest,
.lines-table td.cell-edit .suggest {
  position: absolute;
  left: 0;
  top: calc(100% + 0.16rem);
  min-width: 20.8rem;
  max-width: 28.8rem;
  z-index: 30;
  margin-top: 0;
}
.fis-foot-totals {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  gap: 0;
  font-family: var(--font);
  font-size: 0.88rem;
  line-height: 1.25;
}
.fft-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.16rem 0.96rem;
  border-right: 0.16rem solid #334155;
}
.fft-block:last-child { border-right: 0; padding-right: 0; }
.fft-block:first-child { padding-left: 0; }
.fft-block-sum {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 0;
  padding: 0 0 0 0.96rem;
  align-items: stretch;
}
.fft-sub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.16rem 0.96rem;
  border-right: 1px solid #94a3b8;
}
.fft-sub:last-child {
  border-right: 0;
  padding-right: 0;
}
.fft-sub:first-child { padding-left: 0; }
.fft-kv {
  display: inline-grid;
  grid-template-columns: max-content max-content;
  column-gap: 0.48rem;
  align-items: baseline;
  white-space: nowrap;
}
.fft-kv.fft-isk {
  grid-template-columns: max-content 2.6rem max-content;
  column-gap: 0.32rem;
}
.fft-kv .lbl {
  text-align: left;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
}
.fft-kv .val {
  text-align: right;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.fft-kv.total .lbl { color: var(--ink); }
.fft-kv.total .val { color: var(--accent); font-size: 0.96rem; }
.fft-pct {
  width: 2.6rem !important;
  max-width: 2.6rem !important;
  min-width: 0 !important;
  padding: 1px 0.24rem !important;
  font-size: 0.84rem !important;
  text-align: right;
  height: 1.6rem;
}
.fft-pct:disabled {
  opacity: .45;
  background: #f1f5f9;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.64rem;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid .field,
.form-grid .select,
.wiz-body .field,
.wiz-body .select {
  max-width: 25.6rem;
}
.form-grid .full .field,
.form-grid .full .select,
.wiz-body .full .field {
  max-width: 100%;
}

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.48rem; }
.choice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem;
  cursor: pointer;
  background: #fff;
  text-align: left;
  font: inherit;
  font-size: 0.96rem;
}
.choice.on, .choice:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}
.choice b { display: block; margin-bottom: 0.16rem; font-size: 0.96rem; }

.lines { display: flex; flex-direction: column; gap: 0.48rem; }
.line {
  display: grid;
  grid-template-columns: 1.6fr .7fr .8fr .6fr auto;
  gap: 0.48rem;
  align-items: center;
}

.suggest, .suggest-list {
  margin-top: 0.32rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  max-height: 17.6rem;
  overflow: auto;
  z-index: 5;
  position: relative;
}
.suggest button, .suggest-list button {
  display: flex;
  gap: 0.64rem;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  padding: 0.48rem 0.64rem;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.suggest button .mono, .suggest-list button .mono {
  font-family: var(--mono);
  font-weight: 600;
  font-size: inherit;
}
.suggest button:hover, .suggest-list button:hover { background: #f8fafc; }
.suggest button.on, .suggest-list button.on { background: #e0e7ff; }
.aramali-secim { min-width: 0; }
.aramali-secim .suggest-list { max-height: 14rem; }
.aramali-secim [data-secili] { margin-top: 0.35rem; }

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #f1f5f9;
  border-radius: 79.92rem;
  padding: 0.16rem 0.64rem;
  cursor: pointer;
  font: inherit;
  min-width: 5.25rem;
  min-height: 1.76rem;
  transition: background .15s, border-color .15s;
  box-sizing: border-box;
}
.switch .sw-knob {
  position: absolute;
  top: 50%;
  left: 0.16rem;
  width: 1.44rem;
  height: 1.44rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 0.16rem rgba(0, 0, 0, .12);
  transform: translateY(-50%);
  transition: left .15s ease, background .15s;
  z-index: 2;
  pointer-events: none;
}
.switch.on { background: var(--accent-soft); border-color: var(--accent-border); }
.switch.on .sw-knob {
  left: calc(100% - 1.6rem);
  background: var(--accent);
  transform: translateY(-50%);
}
.switch .sw-txt {
  position: relative;
  z-index: 1;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1;
  white-space: nowrap;
  padding-left: 1.44rem;
  padding-right: 0.16rem;
  text-align: center;
  min-width: 2.75rem;
}
.switch.on .sw-txt {
  color: #3730a3;
  padding-left: 0.16rem;
  padding-right: 1.44rem;
}

.thumb {
  width: 2.24rem;
  height: 2.24rem;
  object-fit: cover;
  border-radius: 0.32rem;
  border: 1px solid var(--line);
  background: #f8fafc;
  display: inline-block;
  vertical-align: middle;
}
.thumb.lg { width: 5.76rem; height: 5.76rem; border-radius: 0.48rem; }
.thumb.empty {
  background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 0.4rem, #e2e8f0 0.4rem, #e2e8f0 0.8rem);
}
.gorsel-row { display: flex; gap: 0.8rem; align-items: center; }
.param-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.56rem 0;
  border-bottom: 1px solid var(--line-soft);
}


/* ========== Ayarlar shell: sol nav + sağ sekmeler ========== */
.ayarlar-shell {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  min-height: 60vh;
}
.ayarlar-nav {
  position: sticky;
  top: calc(var(--header-h) + 0.64rem);
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.64rem 0.48rem;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}
.ayarlar-nav-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 0.32rem 0.64rem 0.48rem;
}
.ayarlar-nav-item {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  border-radius: var(--radius-sm);
  padding: 0.56rem 0.64rem;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}
.ayarlar-nav-item:hover {
  background: #f8fafc;
  color: var(--ink);
}
.ayarlar-nav-item.on {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: #3730a3;
}
.ayarlar-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.64rem;
}
.ayarlar-section[hidden] { display: none !important; }
.ayarlar-tabs {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius);
  padding: 0.4rem;
  box-shadow: var(--shadow);
}
.ayarlar-panels { min-width: 0; }
.ayarlar-panel[hidden] { display: none !important; }
.ayarlar-panel.card { margin: 0; }

@media (max-width: 800px) {
  .ayarlar-shell {
    grid-template-columns: 1fr;
  }
  .ayarlar-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .ayarlar-nav-title { width: 100%; padding-bottom: 0.16rem; }
}

/* Ayarlar iskonto parametreleri — iki kolon yan yana */
#param-grid.param-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 16rem));
  gap: 0.8rem 1.6rem;
  width: max-content;
  max-width: 100%;
  align-items: start;
}
#param-grid .param-col {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-width: 0;
}
#param-grid .param-col > .label {
  margin-bottom: 0.16rem;
}
#param-grid .param-row {
  justify-content: flex-start;
  gap: 0.8rem;
  padding: 0.32rem 0.48rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  min-width: 0;
}
#param-grid .param-row > span {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}
#param-grid .param-row .switch {
  flex: 0 0 auto;
}
@media (max-width: 700px) {
  #param-grid.param-cols {
    grid-template-columns: minmax(0, 16rem);
  }
}

.lines-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}
.lines-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.ozet-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0.8rem;
}
.ozet-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.96rem;
  background: #f8fafc;
}
.ozet-card h4 {
  margin: 0 0 0.64rem;
  font-size: 0.8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.ozet-isk { display: grid; grid-template-columns: 1fr; gap: 0.64rem; }
.ozet-isk .field { max-width: 12.8rem; }
.ozet-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.ozet-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ozet-row .label { margin: 0; }
.ozet-row.total {
  padding-top: 0.64rem;
  margin-top: 0.16rem;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.ozet-row.total b { font-size: 1.2rem; color: var(--accent); }
.ozet-actions {
  margin-top: 0.8rem;
  padding-top: 0.64rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.gorsel-thumbs { display: flex; flex-wrap: wrap; gap: 0.64rem; }
.gorsel-thumb {
  position: relative;
  width: 6.72rem;
  border: 0.16rem solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.24rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.24rem;
}
.gorsel-thumb.is-primary {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.16rem var(--accent-soft);
}
.gorsel-thumb img {
  width: 5.92rem;
  height: 5.92rem;
  object-fit: cover;
  border-radius: 0.32rem;
  display: block;
}
.gorsel-thumb .gorsel-x {
  position: absolute;
  top: 0.16rem;
  right: 0.16rem;
  width: 1.44rem;
  height: 1.44rem;
  border: 0;
  border-radius: 79.92rem;
  background: rgba(15, 23, 42, .78);
  color: #fff;
  cursor: pointer;
  font-size: 0.96rem;
  line-height: 1;
}
.gorsel-thumb .gorsel-ana {
  display: flex;
  align-items: center;
  gap: 0.24rem;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.gorsel-thumb.is-primary .gorsel-ana {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 900px) {
  .ozet-layout { grid-template-columns: 1fr; }
  .wiz, .wiz-panel { width: 100%; }
  .form-grid, .choice-grid, .line { grid-template-columns: 1fr; }
  .form-grid .field,
  .form-grid .select,
  .wiz-body .field,
  .wiz-body .select { max-width: 100%; }
}


/* UI scale (Ayarlar) — Chrome zoom tarzi */
.scale-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.scale-zoom {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}
.scale-zoom .btn-zoom {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.scale-zoom .btn-zoom:hover { background: var(--line-soft); }
.scale-zoom .btn-zoom:disabled {
  opacity: 0.35;
  cursor: default;
}
.scale-zoom .scale-val {
  min-width: 4.2rem;
  padding: 0 0.6rem;
  text-align: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.96rem;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  line-height: 2.4rem;
  user-select: none;
}
.gorsel-actions { margin-top: 0.8rem; }
.gorsel-hint { margin-top: 0.48rem; }


/* Wizard head actions + confirm */
.wiz-head-actions {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  flex-shrink: 0;
}
.btn.danger {
  background: #fff;
  color: var(--bad);
  border: 1px solid #fecdd3;
}
.btn.danger:hover {
  background: #fff1f2;
  border-color: #fda4af;
}
.btn.danger .ico {
  display: inline-block;
  margin-right: 0.24rem;
  font-size: 0.96rem;
  line-height: 1;
}
.confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.confirm-box {
  width: min(26rem, 100%);
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .2);
  padding: 1rem 1.1rem;
}
.confirm-box h4 {
  margin: 0 0 0.48rem;
  font-size: 1rem;
}
.confirm-box p {
  margin: 0 0 0.96rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.48rem;
}


/* Taslak satirlari */
tr.row-taslak > td {
  background: #fff1f2 !important;
}
tr.row-taslak:hover > td {
  background: #ffe4e6 !important;
}
.chip.taslak {
  --chip-bg: #ffe4e6;
  border-color: #fecdd3;
  color: #be123c;
}


/* Cell full-text popup */
.cell-pop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 23, 42, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cell-pop-backdrop[hidden] { display: none !important; }
.cell-pop {
  width: min(32rem, 100%);
  max-height: min(70vh, 28rem);
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cell-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.cell-pop-body {
  padding: 0.9rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--ink);
}
.kisalt {
  cursor: pointer;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.kisalt-m, .kisalt-d { display: inline; }
.kisalt-hover {
  position: fixed;
  z-index: 130;
  max-width: min(28rem, calc(100vw - 1.2rem));
  padding: 0.45rem 0.6rem;
  background: #0f172a;
  color: #fff;
  border-radius: 0.4rem;
  font-size: 0.86rem;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .25);
  pointer-events: none;
  white-space: pre-wrap;
  word-break: break-word;
}
.kisalt-hover[hidden] { display: none !important; }
.kisalt-pop-act { padding: 0 0.9rem 0.85rem; }

/* Ekran ayarları — tablo yoğunluğu */
.ui-device-tabs {
  display: inline-flex;
  gap: 0.25rem;
  margin: 0.6rem 0 0.4rem;
  padding: 0.2rem;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
}
.ui-device-tabs .tab {
  border: 0;
  background: transparent;
  padding: 0.4rem 0.85rem;
  border-radius: 0.3rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}
.ui-device-tabs .tab.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.ui-device-hint { margin: 0 0 0.8rem; }
.ui-pref-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 28rem;
}
.ui-pref-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ui-pref-field .label em {
  font-style: normal;
  font-family: var(--mono);
  color: var(--ink);
  font-weight: 600;
  margin-left: 0.35rem;
}
.ui-pref-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent, #2563eb);
}

/* Faz 16: ≤900px tablolar "yığılmış kart" — masaüstüyle aynı kolonlar, yatay kaydırma yok (aşağıdaki Faz 16 bloğu) */

/* ===== Faz 4: gizli kayıtlar ===== */
/* Gizli (aktif=0) ana kayıt satırları yalnız tablo .gizli-goster iken görünür ("Gizlenenleri göster") */
table:not(.gizli-goster) > tbody > tr.row-gizli { display: none; }
tr.row-gizli > td { color: var(--muted, #64748b); background: #f8fafc; }
tr.row-gizli > td img.thumb { opacity: .55; filter: grayscale(.6); }
.chip.gizli { --chip-bg: #f1f5f9; color: #475569; border: 1px dashed #94a3b8; }
.wiz-gizli-bar[hidden] { display: none; }
.wiz-gizli-bar {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
  padding: .55rem 1.12rem; background: #f1f5f9; border-bottom: 1px dashed #94a3b8; color: #334155; font-size: .92rem;
}
/* ===== Faz 4: üst üste paneller (stacked) ===== */
.wiz-backdrop.wiz-stacked { background: rgba(15, 23, 42, .28); }
.wiz-backdrop.wiz-stacked > .wiz-panel { width: min(80rem, 92vw); box-shadow: -0.9rem 0 2.6rem rgba(15, 23, 42, .28); }
.wiz-backdrop.wiz-under > .wiz-panel { filter: brightness(.97); }
.wiz-back { display: inline-flex; align-items: center; gap: .3rem; }
@media (max-width: 700px) {
  .wiz-backdrop.wiz-stacked > .wiz-panel { width: 100vw; max-width: 100vw; }
}

/* ===== Faz 5: Tipografi ayarları (Ayarlar › Sistem › Ekran Ayarları) =====
 * Kural: yalnız kullanıcının DEĞİŞTİRDİĞİ özellik uygulanır (html'e t-<grup>-<özellik> sınıfı + --t-<grup>-<özellik> değişkeni;
 * APP.applyTypo — layout/app.php). Ayar yoksa bugünkü görünüm birebir korunur. Registry hücre sınıfları (.c-*) kullanıldığı için
 * mevcut ve gelecekteki tüm tablolar otomatik etkilenir. Anlamsal renkler (.pos/.neg, durum rozetleri) korunur. */
html.t-ui-ff body { font-family: var(--t-ui-ff); }
html.t-ui-size body { font-size: var(--t-ui-size); }
html.t-ui-bold body { font-weight: var(--t-ui-fw); }
html.t-ui-italic body { font-style: var(--t-ui-fst); }
/* 1 · Sayısal — tutar / miktar / tarih (tüm listeler + iç içerik; rozet ve +/- renk korunur) */
html.t-num-ff .table td.c-num, html.t-num-ff .table td.c-money, html.t-num-ff .table td.c-date,
html.t-num-ff .table td.c-num :not(.chip), html.t-num-ff .table td.c-money :not(.chip), html.t-num-ff .table td.c-date :not(.chip) { font-family: var(--t-num-ff) !important; }
html.t-num-size .table td.c-num, html.t-num-size .table td.c-money, html.t-num-size .table td.c-date,
html.t-num-size .table td.c-num :not(.chip), html.t-num-size .table td.c-money :not(.chip), html.t-num-size .table td.c-date :not(.chip) { font-size: var(--t-num-size) !important; }
html.t-num-bold .table td.c-num, html.t-num-bold .table td.c-money, html.t-num-bold .table td.c-date,
html.t-num-bold .table td.c-num :not(.chip), html.t-num-bold .table td.c-money :not(.chip), html.t-num-bold .table td.c-date :not(.chip) { font-weight: var(--t-num-fw) !important; }
html.t-num-italic .table td.c-num, html.t-num-italic .table td.c-money, html.t-num-italic .table td.c-date,
html.t-num-italic .table td.c-num :not(.chip), html.t-num-italic .table td.c-money :not(.chip), html.t-num-italic .table td.c-date :not(.chip) { font-style: var(--t-num-fst) !important; }
html.t-num-color .table td.c-num:not(.pos):not(.neg), html.t-num-color .table td.c-money:not(.pos):not(.neg), html.t-num-color .table td.c-date:not(.neg),
html.t-num-color .table td.c-num :not(.chip):not(.pos):not(.neg), html.t-num-color .table td.c-money :not(.chip):not(.pos):not(.neg):not(.bky),
html.t-num-color .table td.c-date :not(.chip):not(.neg),
html.t-num-color .table .bky:not(.pos):not(.neg) { color: var(--t-num-color) !important; }
/* 2 · Badge — tüm aileler (Durum, Fiş tipi, Yön, Kanal, Hesap türü, Cari tipi, e-Fatura, Kaynak, Stok yönü) */
html.t-badge-ff .chip { font-family: var(--t-badge-ff) !important; }
html.t-badge-size .chip { font-size: var(--t-badge-size) !important; }
html.t-badge-bold .chip { font-weight: var(--t-badge-fw) !important; }
html.t-badge-italic .chip { font-style: var(--t-badge-fst) !important; }
html.t-badge-color .chip { color: var(--t-badge-color) !important; }
/* 3 · Aksiyon — Düzenle / Ekstre / Stok hareketleri / menü */
html.t-act-ff .table td.c-action .btn, html.t-act-ff .table td.col-actions .btn, html.t-act-ff .table .act-row .btn, html.t-act-ff .table .act-more-menu .btn { font-family: var(--t-act-ff) !important; }
html.t-act-size .table td.c-action .btn, html.t-act-size .table td.col-actions .btn, html.t-act-size .table .act-row .btn, html.t-act-size .table .act-more-menu .btn { font-size: var(--t-act-size) !important; }
html.t-act-bold .table td.c-action .btn, html.t-act-bold .table td.col-actions .btn, html.t-act-bold .table .act-row .btn, html.t-act-bold .table .act-more-menu .btn { font-weight: var(--t-act-fw) !important; }
html.t-act-italic .table td.c-action .btn, html.t-act-italic .table td.col-actions .btn, html.t-act-italic .table .act-row .btn, html.t-act-italic .table .act-more-menu .btn { font-style: var(--t-act-fst) !important; }
html.t-act-color .table td.c-action .btn, html.t-act-color .table td.col-actions .btn, html.t-act-color .table .act-row .btn, html.t-act-color .table .act-more-menu .btn { color: var(--t-act-color) !important; }
/* 4 · Metin kolonları — tek satır + çok satırlı 1. satır (rozet rengi korunur) */
html.t-txt-ff .table td.c-text, html.t-txt-ff .table td.c-multi .c-l1,
html.t-txt-ff .table td.c-text :not(.chip), html.t-txt-ff .table td.c-multi .c-l1 :not(.chip) { font-family: var(--t-txt-ff) !important; }
html.t-txt-size .table td.c-text, html.t-txt-size .table td.c-multi .c-l1,
html.t-txt-size .table td.c-text :not(.chip), html.t-txt-size .table td.c-multi .c-l1 :not(.chip) { font-size: var(--t-txt-size) !important; }
html.t-txt-bold .table td.c-text, html.t-txt-bold .table td.c-multi .c-l1,
html.t-txt-bold .table td.c-text :not(.chip), html.t-txt-bold .table td.c-multi .c-l1 :not(.chip) { font-weight: var(--t-txt-fw) !important; }
html.t-txt-italic .table td.c-text, html.t-txt-italic .table td.c-multi .c-l1,
html.t-txt-italic .table td.c-text :not(.chip), html.t-txt-italic .table td.c-multi .c-l1 :not(.chip) { font-style: var(--t-txt-fst) !important; }
html.t-txt-color .table td.c-text, html.t-txt-color .table td.c-multi .c-l1,
html.t-txt-color .table td.c-text :not(.chip), html.t-txt-color .table td.c-multi .c-l1 :not(.chip) { color: var(--t-txt-color) !important; }
/* 5 · 2. satır */
html.t-l2-ff .table td .c-l2, html.t-l2-ff .table td .c-l2 :not(.chip) { font-family: var(--t-l2-ff) !important; }
html.t-l2-size .table td .c-l2, html.t-l2-size .table td .c-l2 :not(.chip) { font-size: var(--t-l2-size) !important; }
html.t-l2-bold .table td .c-l2, html.t-l2-bold .table td .c-l2 :not(.chip) { font-weight: var(--t-l2-fw) !important; }
html.t-l2-italic .table td .c-l2, html.t-l2-italic .table td .c-l2 :not(.chip) { font-style: var(--t-l2-fst) !important; }
html.t-l2-color .table td .c-l2, html.t-l2-color .table td .c-l2 :not(.chip) { color: var(--t-l2-color) !important; }
html.t-badge-bg .chip:not(.ok):not(.warn):not(.bad):not(.taslak):not(.gizli) { --chip-bg: var(--t-badge-bg); border-color: var(--t-badge-bg); }
html.t-badge-alpha .chip { background: color-mix(in srgb, var(--chip-bg) calc(100% - var(--t-badge-alpha)), transparent) !important; }
html.t-act-bg .table td.c-action .btn, html.t-act-bg .table td.col-actions .btn, html.t-act-bg .table .act-row .btn, html.t-act-bg .table .act-more-menu .btn { background: var(--t-act-bg) !important; border-color: var(--t-act-bg) !important; }
html.t-badge-alpha .table td.c-action .btn.ghost, html.t-badge-alpha .table td.col-actions .btn.ghost, html.t-badge-alpha .table .act-row .btn.ghost { background: color-mix(in srgb, var(--t-act-bg, #fff) calc(100% - var(--t-badge-alpha)), transparent) !important; }
/* Ayar ekranı */
.typo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .8rem; margin-top: .6rem; }
.typo-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .7rem; background: #fff; }
.typo-card h4 { margin: 0 0 .45rem; font-size: .92rem; }
.typo-card .typo-hint { color: var(--muted); font-size: .8rem; margin: -.25rem 0 .45rem; }
.typo-row { display: grid; grid-template-columns: 6.4rem 1fr auto; align-items: center; gap: .4rem; margin: .22rem 0; font-size: .86rem; }
.typo-row .select, .typo-row .field { padding: .2rem .4rem; min-height: 0; }
.typo-row input[type=color] { width: 2.4rem; height: 1.6rem; padding: 0; border: 1px solid var(--line); border-radius: .3rem; background: #fff; }
.typo-row .typo-def { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.typo-row .typo-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .9rem; padding: 0 .2rem; }
.typo-row .typo-x[hidden] { display: none; }
.typo-section-title { margin: 1.1rem 0 .2rem; font-size: 1rem; }
.typo-preview { margin-top: .9rem; }
.typo-actions { display: flex; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
/* Faz 5: ayar ekranı geniş — kaydırıcılar dar kalsın, kartlar/önizleme tam genişlik */
.ui-pref-grid { max-width: none; }
.ui-pref-grid > .ui-pref-field { max-width: 28rem; }

/* ---------- Faz 6: numaralama ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.seg-btn { border: 0; border-right: 1px solid var(--line); background: transparent; padding: 0.45rem 0.9rem; font: inherit; cursor: pointer; color: var(--ink); min-height: 2.4rem; }
.seg-btn:last-child { border-right: 0; }
.seg-btn.on { background: var(--accent-soft); color: #3730a3; font-weight: 600; }
.seg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.muted.small, .small.muted { font-size: 0.85em; margin-top: 0.2rem; }
#seri-table .col-actions, #fseri-table .col-actions { width: 21rem; }
.ayarlar-panel[data-ayar-panel="numaralama"] + .ayarlar-panel[data-ayar-panel="numaralama"] { margin-top: 0.9rem; }
@media (max-width: 760px) {
  .seg { display: flex; width: 100%; }
  .seg-btn { flex: 1 1 0; min-height: 2.75rem; padding: 0.45rem 0.4rem; }
}

/* ---------- Faz 7: kur ---------- */
.kur-rozet { font-size: 0.78em; padding: 0.05rem 0.4rem; vertical-align: middle; }
.kur-rozet.manuel { --chip-bg: #fef3c7; color: #92400e; }
[data-kur-yenile] { font-size: 1.05em; padding: 0 0.25rem; min-width: 1.6rem; }
.kur-aciklama p { margin: 0.35rem 0; }
@media (max-width: 760px) { [data-kur-yenile] { min-width: 2.5rem; min-height: 2.5rem; } }

/* ---------- Faz 9: bakiye standardı + cari bilgi modalı ---------- */
.bky-alt { font-size: 0.82em; margin-top: 0.12rem; line-height: 1.25; }
.ekstre-bar { display: flex; align-items: center; gap: 0.6rem 1rem; flex-wrap: wrap; margin-bottom: 0.55rem; }
.ekstre-doviz { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; font-weight: 600; }
.ekstre-doviz select { font-weight: 500; min-height: 2.2rem; }
.ekstre-bar-not { font-size: 0.82rem; }
.ekstre-ozet { display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; margin-top: 0.7rem; padding-top: 0.55rem; border-top: 1px solid var(--line); }
.ekstre-ozet-item { font-size: 0.9rem; padding: 0.25rem 0.45rem; border-radius: var(--radius-sm); }
.ekstre-ozet-item.on { background: var(--accent-soft, #eef2ff); }

/* Faz 21: tek döviz seçilince TRY kolonları her cihazda gizlenir */

/* Listeler: belge/cari dövizi; TRY kolonları her cihazda gizli */
.table [data-col].col-off { display: none !important; }
[data-table="fis"] [data-col="onceki_try"],
[data-table="fis"] [data-col="guncel_try"],
[data-table="cari"] [data-col="bakiye_try"],
[data-table="finans"] [data-col="tutar_try"] { display: none !important; }
.ekstre-try-gizli [data-col="try_karsilik"],
.ekstre-try-gizli [data-col="bakiye_try"] { display: none !important; }

@media (max-width: 900px) {
  .ekstre-bar { align-items: stretch; }
  .ekstre-doviz { width: 100%; justify-content: space-between; }
  .ekstre-doviz select { flex: 1; min-width: 0; }
  .ekstre-ozet { flex-direction: column; gap: 0.35rem; }
}

.bky.pos { color: var(--pos); }
.bky.neg { color: var(--neg); }
.bky-ek { font-weight: 600; font-size: 0.85em; }
.bky-tahmini .bky { font-style: italic; opacity: 0.75; }
td.muted .bky { color: var(--muted); }
.cari-info-bakiye { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.8rem; margin-bottom: 1rem; }
.cari-info-bakiye > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.9rem; background: var(--surface); }
.cari-info-bakiye .big { font-size: 1.25em; font-weight: 600; margin-top: 0.2rem; font-family: var(--mono); }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.4rem 1.2rem; }
.kv-grid .kv { display: flex; justify-content: space-between; gap: 0.8rem; border-bottom: 1px solid var(--line-soft); padding: 0.35rem 0; min-width: 0; }
.kv-grid .kv b { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.cari-info-act { margin-top: 1rem; }
@media (max-width: 760px) { .kv-grid { grid-template-columns: 1fr; } }

/* Faz 10 — Cari tablosu + tek adımlı cari formu */
#cari-table .col-ilet { width: 22%; }
.chip.efat, .chip[data-badge="efatura"] { --chip-bg: #e0f2fe; color: #075985; border-color: #bae6fd; font-size: .78em; padding: 0 .4rem; vertical-align: 1px; }
.cf-swrow { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .55rem; font-size: .86rem; }
.cf-sevk-off { opacity: .72; }
.cf-sevk-off .field, .cf-sevk-off .select, .cf-sevk-off textarea { background: #f8fafc; }
.wiz-backdrop.wiz-compact > .wiz-panel { width: min(26.5rem, 94vw); max-height: min(90vh, 40rem); }
.wiz-compact .wiz-body { padding: .65rem .85rem .85rem; }
.fatura-view { display: flex; flex-direction: column; gap: .28rem; }
.fatura-view .kv { display: grid; grid-template-columns: 8.4rem minmax(0, 1fr); gap: .12rem .55rem; align-items: start; font-size: .86rem; }
.fatura-view .kv b { font-weight: 600; word-break: break-word; }
@media (max-width: 900px) {
  .wiz-backdrop.wiz-compact > .wiz-panel { width: 100%; max-width: 100vw; max-height: 100dvh; }
}
.cari-form { display: flex; flex-direction: column; gap: .9rem; }
.cf-grp { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .75rem .75rem; background: #fff; }
.cf-h { margin: 0 0 .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.cf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem .75rem; align-items: end; }
.cf-grid .cf-w2 { grid-column: span 2; }
.cf-grid .cf-full { grid-column: 1 / -1; }
.cf-grid .field, .cf-grid .select { max-width: none !important; width: 100%; }
.cf-grid textarea.field { resize: vertical; min-height: 3.2rem; }
@media (max-width: 1100px) {
  .cf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .cf-grid { grid-template-columns: 1fr; }
  .cf-grid .cf-w2 { grid-column: 1 / -1; }
  .cf-grp { padding: .5rem .6rem .6rem; }
}

/* Faz 11 — stok kartı (cf-grid ile 4/2/1 kolon) */
.stok-form .gorsel-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.stok-form textarea.field { resize: vertical; min-height: 3.2rem; }

/* Faz 12.1 — fiş toplam barı (Geri | bar | Kaydet) */
.fis-totbar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem 1.6rem; width: 100%; font-size: .86rem; line-height: 1.2; }
.fis-totbar .tb-grp { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem 1.1rem; }
.fis-totbar .tb-left { padding-right: 1.6rem; border-right: 2px solid var(--line); }
.fis-totbar .tb-kv { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; min-width: 0; }
.fis-totbar .tb-kv .lbl { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.fis-totbar .tb-kv .val { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fis-totbar .tb-isk { flex-direction: row; align-items: center; gap: .35rem; }
.fis-totbar .tb-isk .lbl { align-self: center; }
.fis-totbar .tb-pct { display: inline-flex; align-items: center; gap: .1rem; }
.fis-totbar .tb-pct i { font-style: normal; color: var(--muted); font-size: .78rem; }
.fis-totbar .tb-total { padding: .25rem .7rem; border-radius: var(--radius-sm); background: var(--accent-soft); }
.fis-totbar .tb-total .lbl { color: #3730a3; font-weight: 600; }
.fis-totbar .tb-total .val { color: var(--accent); font-size: 1.12rem; font-weight: 700; }
.fis-totbar .tb-try { font-size: .74rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 700px) {
  .fis-totbar { gap: .35rem; justify-content: stretch; }
  .fis-totbar .tb-grp { width: 100%; justify-content: space-between; gap: .3rem .6rem; }
  .fis-totbar .tb-left { padding-right: 0; border-right: 0; padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
  .fis-totbar .tb-total .val { font-size: 1rem; }
}

/* Faz 13 — parçalı vade, taksitler */
.vade-parcali { white-space: nowrap; }
.vp-ico { font-size: .78em; color: var(--accent); font-weight: 600; }
.vade-bol { display: flex; align-items: flex-end; gap: .6rem; flex-wrap: wrap; }
.vade-bol-sor { display: inline-flex; align-items: flex-end; gap: .4rem; }
.vade-bol-sor .field, .vade-plan-head .field { width: 4.5rem !important; max-width: 4.5rem !important; }
.vade-plan { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem .6rem; background: #fff; }
.vade-plan-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .4rem; }
.vade-plan-head .label { margin: 0; }
.vade-plan-table td .field { max-width: none !important; width: 100%; min-height: 2.4rem; }
.vade-plan-foot { margin-top: .4rem; font-size: .84rem; }
.vade-plan-foot.ok { color: var(--pos); }
.vade-plan-foot.neg { color: var(--neg); }
.taksit-gir { width: 7rem !important; max-width: 7rem !important; min-height: 2.4rem; }
.table tr.ekstre-taksit td { background: #f8fafc; font-size: .9em; }
.ekstre-taksit-no { padding-left: 1rem; color: var(--muted); }
@media (max-width: 700px) {
  .taksit-gir { width: 100% !important; max-width: none !important; }
}

/* =====================================================================
 * Faz 16 — Mobil uyumluluk (≤900px)
 * Tablolar: her satır bir kart. Hücreler içeriği kadar (flex-grow yok).
 * "etiket: değer" akış; tutar/bakiye 1. satır sağda, işlemler 2. satır sağda.
 * ===================================================================== */
@media (max-width: 900px) {
  .table-wrap { overflow: visible; margin-inline: 0; }
  .table { min-width: 0 !important; width: 100%; table-layout: auto; }
  .table, .table > tbody { display: block; }
  .table > thead { display: none; } /* başlıklar hücre etiketlerinde (td::before) */
  .table > tbody > tr { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .4rem .8rem; padding: .6rem .7rem; border-bottom: 1px solid var(--line); background: #fff; }
  .table > tbody > tr:last-child { border-bottom: 0; }
  .table > tbody > tr > td {
    display: block; flex: 0 1 auto; min-width: 0; width: auto !important; max-width: none !important;
    height: auto; max-height: none; padding: 0; border: 0; text-align: left !important; white-space: normal !important; overflow: visible !important; text-overflow: clip;
    overflow-wrap: anywhere; background: transparent;
  }
  .table > tbody > tr > td.col-off { display: none !important; }
  .table > tbody > tr > td::before {
    content: attr(data-label); display: block; font-size: .74em; font-weight: 600; color: var(--muted);
    font-family: var(--font, inherit); font-style: normal; letter-spacing: 0; text-transform: none; margin-bottom: .05rem;
  }
  .table > tbody > tr > td.center, .table > tbody > tr > td.right, .table > tbody > tr > td.col-actions { text-align: left !important; }
  .table > tbody > tr > td.c-ana { flex: 0 1 auto; font-size: 1.05em; font-weight: 600; }
  .table > tbody > tr > td.c-ana::before { display: none; }
  .table > tbody > tr > td.col-img { flex: 0 0 auto; }
  .table > tbody > tr > td.col-img::before { display: none; }
  .table > tbody > tr:has(> td.col-img) > td.c-ana { align-self: center; }
  .table > tbody > tr > td.c-action, .table > tbody > tr > td.col-actions { flex: 0 0 auto; display: flex; flex-wrap: nowrap; gap: .25rem; padding-top: 0; }
  .table > tbody > tr > td.c-action::before, .table > tbody > tr > td.col-actions::before { display: none; }
  .table > tbody > tr > td.col-del { flex: 0 0 auto; order: 201 !important; margin-left: auto; }
  .table > tbody > tr > td.col-del::before { display: none; }
  /* boş tablo / tek hücreli satır */
  .table > tbody > tr > td[colspan] { flex-basis: 100%; text-align: center !important; }
  .table > tbody > tr > td[colspan]::before { display: none; }
  /* satır renkleri karta taşınır */
  .table > tbody > tr.row-taslak { background: #fff1f2; }
  .table > tbody > tr.row-gizli { background: #f8fafc; }
  .table > tbody > tr.ekstre-taksit { background: #f8fafc; }
  .table > tbody > tr:hover > td { background: transparent; }
  .table > tbody > tr.row-taslak > td, .table > tbody > tr.row-taslak:hover > td { background: transparent !important; }
  .table td .c-l1, .table td .c-l2 { white-space: normal; }
  .table .chip { white-space: nowrap; }
  #finans-table td.col-hesap, .table > tbody > tr > td.col-actions, .table > tbody > tr > td.c-ana { white-space: normal !important; }
  .lines-scroll { overflow-x: hidden; }
  /* fiş kalem kartı: düzenlenebilir hücreler dokunmaya uygun */
  .lines-table > tbody > tr > td[data-cell] { min-height: 2.5rem; padding: .2rem .35rem; border: 1px dashed var(--line); border-radius: .3rem; }
  .lines-table > tbody > tr > td[data-cell] input, .lines-table > tbody > tr > td[data-cell] select { width: 100%; min-height: 2.4rem; }

  /* dokunma hedefleri ≥ 40px */
  .btn, .tab, .seg-btn, .choice, .ayarlar-nav-item, .mob-nav a, .chip-btn, .btn-zoom { min-height: max(40px, 2.5rem); }
  .btn, .tab, .mob-nav a, .ayarlar-nav-item { display: inline-flex; align-items: center; justify-content: center; }
  .table td .btn:not(.btn-ico), .table td .linkish { min-height: max(40px, 2.5rem); min-width: max(40px, 2.5rem); }
  .linkish { display: inline-flex; align-items: center; min-height: max(40px, 2.5rem); }
  .field, .select { min-height: max(40px, 2.5rem); }
  .switch { position: relative; }
  .switch::after { content: ""; position: absolute; inset: -.6rem -.4rem; } /* görünüm aynı, dokunma alanı ≥40px */
  /* iOS: 16px altı input odakta yakınlaştırır */
  input.field, select.select, textarea.field, .field, .field.mono, .select, textarea, .cell-input,
  .suggest button, .suggest-list button { font-size: max(16px, 1em) !important; }
  .suggest button, .suggest-list button { min-height: max(40px, 2.5rem); font-weight: 500; }
  .cell-input, .fis-totbar input, .fis-totbar .field { min-height: 40px; height: auto; }
  /* araç çubukları sarılır */
  .toolbar, .toolbar .left, .toolbar .right, .tabs { flex-wrap: wrap; }
  .tabs { overflow-x: visible; }
}

/* ===== Faz 18.1: ikonlu işlem butonları ===== */
.act-row { display: inline-flex; align-items: center; justify-content: center; gap: .16rem; }
.act-row > .btn.btn-ico, .act-more > .btn.btn-ico { margin-left: 0 !important; }
.act-more { position: relative; display: inline-flex; }
.act-more-menu {
  position: fixed; z-index: 80; display: flex; flex-direction: column; gap: .2rem;
  padding: .28rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: 0 .45rem 1.2rem rgba(15, 23, 42, .16);
}
#stok-table .act-row { gap: .55rem; }
#stok-table td.col-actions { gap: .55rem; }
#stok-table .act-more-menu { gap: .5rem; padding: .4rem; }
.act-more-menu[hidden] { display: none !important; }
.act-more-menu .btn.btn-ico { margin: 0 !important; }
.btn-act-more.ico-daha .ico-svg { width: 1.05em; height: 1.05em; }
.act-more.open .btn-act-more { background: var(--accent-soft, #eef2ff); }
.btn.btn-ico { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; padding: 0; vertical-align: middle; position: relative; }
.btn-ico .ico-svg { width: 1.15em; height: 1.15em; display: block; pointer-events: none; }
.btn.btn-ico.btn-cari-info { width: 4.2rem; }
.btn-cari-info .ico-svg { width: 2.3em; height: 1.2em; }
.table td .btn.btn-ico { margin-left: .16rem; }
.btn-ico.ico-sil:hover, .btn-ico.ico-sil:focus-visible { color: var(--neg, #dc2626); }
.btn-ico:focus-visible::after {
  content: attr(aria-label); position: absolute; bottom: calc(100% + .3rem); left: 50%; transform: translateX(-50%);
  background: #0f172a; color: #fff; font-size: .75rem; font-weight: 500; padding: .15rem .45rem; border-radius: .3rem; white-space: nowrap; z-index: 30; pointer-events: none;
}
#cari-table .col-actions, #stok-table .col-actions, #hesap-table .col-actions { width: 7.5rem; }
#seri-table .col-actions, #fseri-table .col-actions { width: 10.5rem; }
@media (max-width: 900px) {
  .btn.btn-ico { width: max(40px, 2.5rem); height: max(40px, 2.5rem); }
  .btn.btn-ico.btn-cari-info { width: max(80px, 5rem); }
}

/* Faz 18.2: rozet aile kartları (Ayarlar › Görünüm) — açılır kart + değer renk satırları */
.badge-fams { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: .8rem; margin-top: .6rem; align-items: start; }
.badge-fam > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .92rem; }
.badge-fam > summary::-webkit-details-marker { display: none; }
.badge-fam > summary::before { content: "▸"; color: var(--muted); }
.badge-fam[open] > summary::before { content: "▾"; }
.badge-fam[open] > summary { margin-bottom: .45rem; }
.badge-fam .badge-ayarli { color: var(--accent, #2563eb); font-size: .7rem; }
.badge-fam .badge-fam-ornek { margin-left: auto; display: inline-flex; gap: .25rem; flex-wrap: wrap; }
.badge-fam .typo-row .typo-x, .badge-renk-row .typo-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .9rem; padding: 0 .2rem; }
.badge-renk-row .typo-x[hidden] { display: none; }
.badge-renk-baslik { margin: .6rem 0 .25rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.badge-renk-row { display: grid; grid-template-columns: minmax(6.4rem, 1fr) auto auto auto; align-items: center; gap: .4rem; margin: .22rem 0; font-size: .8rem; }
.badge-renk-row label { display: inline-flex; align-items: center; gap: .25rem; }
.badge-renk-row input[type=color] { width: 2.2rem; height: 1.5rem; padding: 0; border: 1px solid var(--line); border-radius: .3rem; background: #fff; }
.badge-renk-row .typo-def { font-size: .72rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 900px) {
  .badge-fams { grid-template-columns: 1fr; }
  .badge-renk-row { grid-template-columns: 1fr auto auto auto; }
  .badge-renk-row .typo-def { display: none; }
}

/* =====================================================================
 * Mobil kart (≤900px) — hücreler içeriği kadar (flex-grow yok).
 * Tutar/bakiye 1. satır sağda kilitli; işlem 2. satır sağda kilitli.
 * Yalnız stok 1. satır kısıtlı: görsel · kod · ad · bakiye.
 * Cari / fiş / finans 1. satırında başka kolon kısıtı yok.
 * ===================================================================== */
@media (max-width: 900px) {
  /* Özet kartlar: satır no + konum (akış / sağa) JS ile; sabit order kırılmaz. */
  .table > tbody > tr { gap: .2rem .55rem; padding: .5rem .65rem; align-items: center; }
  .table > tbody > tr::before, .table > tbody > tr::after { content: none; display: none; flex: none; }
  .table > tbody > tr > td { flex: 0 1 auto; }
  .table > tbody > tr > td::before { display: inline; font-size: .78em; margin: 0 .25em 0 0; }
  .table > tbody > tr > td.m-img { flex: 0 0 auto; }
  .table > tbody > tr > td.m-img::before { display: none; }
  .table > tbody > tr > td.m-b { flex: 0 1 auto; min-width: 0; font-weight: 600; font-size: 1em; }
  .table > tbody > tr > td.m-b::before { display: none; }
  .table > tbody > tr > td.m-b .c-l2 { display: block; font-weight: 400; }
  .table > tbody > tr > td.m-i { flex: 0 1 auto; min-width: 0; font-size: .82em; line-height: 1.35; }
  .table > tbody > tr > td.m-i .c-l1, .table > tbody > tr > td.m-i .c-l2 { display: inline; }
  .table > tbody > tr > td.m-i .c-l2:not(:empty)::before { content: " · "; }
  .table > tbody > tr > td.m-i .linkish, .table > tbody > tr > td.m-b .linkish { min-height: 0; min-width: 0; display: inline; position: relative; }
  .table > tbody > tr > td.m-i .linkish::after, .table > tbody > tr > td.m-b .linkish::after { content: ""; position: absolute; inset: -.6rem -.3rem; }
  .table > tbody > tr > td.m-r { flex: 0 1 auto; min-width: 0; }
  .table > tbody > tr > td.m-r::before { display: none; }
  .table > tbody > tr > td.m-br { flex: 0 0 auto; margin-left: auto; font-weight: 700; text-align: right !important; white-space: nowrap !important; }
  .table > tbody > tr > td.m-br.c-money::before { display: none; }
  .table > tbody > tr:has(> td.m-img) > td.m-b { align-self: center; }
  .table > tbody > tr > td.m-a { flex: 0 0 auto; flex-basis: auto !important; margin-left: auto; display: flex; gap: .2rem; padding-top: 0; align-items: center; }
  #stok-table > tbody > tr > td.m-a { gap: .55rem; }
  .table > tbody > tr > td.m-a::before { display: none; }
  .table > tbody > tr > td.m-a.c-num::before { display: inline; align-self: center; }
  .table > tbody > tr > td.m-satir-kir {
    display: block !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    pointer-events: none;
  }
  .table > tbody > tr > td.m-satir-kir::before { display: none !important; content: none !important; }
  .table > tbody > tr > td[data-m-pin="akis"] { margin-left: 0 !important; }
  .table > tbody > tr > td.m-pin-lead,
  .table > tbody > tr > td[data-m-pin="sag"].m-pin-lead { margin-left: auto !important; }
  .table > tbody > tr > td[data-m-pin="sag"] {
    flex: 0 0 auto;
    text-align: right !important;
    white-space: nowrap !important;
  }
  .table > tbody > tr > td.m-satir-doldur {
    flex: 1 1 auto !important;
    min-width: 4.5rem;
    max-width: 100%;
    overflow: hidden !important;
    white-space: nowrap !important;
  }
  .table > tbody > tr > td.m-satir-doldur .c-l1,
  .table > tbody > tr > td.m-satir-doldur .strong,
  .table > tbody > tr > td.m-satir-doldur .kisalt,
  .table > tbody > tr > td.m-satir-doldur .kisalt-m {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
  }
  #cari-table > tbody > tr > td[data-col="unvan"] .c-l2 { display: none !important; }
  /* Mobil: e-Fatura rozeti kısa metin */
  .chip[data-badge="efatura"] { font-size: 0 !important; }
  .chip[data-badge="efatura"]::after { content: "e-fat"; font-size: .75rem; font-weight: 600; line-height: 1.35; }
  /* işlem: yalnız SVG, kutu yok; dokunma alanı ::before ile */
  .table td.m-a .btn.btn-ico,
  .table td.col-actions .btn.btn-ico {
    width: auto !important; height: auto !important; min-width: 0 !important; min-height: 0 !important;
    margin: 0; padding: 0; background: transparent !important; border: none !important; box-shadow: none;
  }
  .table td.m-a .btn.btn-ico .ico-svg,
  .table td.col-actions .btn.btn-ico .ico-svg { width: 1.3rem; height: 1.3rem; }
  .table td.m-a .btn.btn-ico.btn-cari-info,
  .table td.col-actions .btn.btn-ico.btn-cari-info {
    width: 2.6rem !important; height: 1.35rem !important;
    min-width: 2.6rem !important; min-height: 1.35rem !important;
  }
  .table td.m-a .btn.btn-ico.btn-cari-info .ico-svg,
  .table td.col-actions .btn.btn-ico.btn-cari-info .ico-svg { width: 2.4rem; height: 1.35rem; }
  .table td.m-a .btn.btn-ico::before,
  .table td.col-actions .btn.btn-ico::before { content: ""; position: absolute; inset: -.45rem; }
  /* boş numara: mobilde "Numarasız" */
  .table .bos-no { font-size: 0; }
  .table .bos-no::after { content: "Numarasız"; font-size: .8rem; font-weight: 500; color: var(--muted); }
  /* boş satır */
  .table > tbody > tr:has(> td[colspan])::before, .table > tbody > tr:has(> td[colspan])::after { display: none; }
}
/* Faz 18.5: mobil modallar — başlık sıkı (başlık + butonlar tek satır, özet hapları küçük ve tek satırlık), form 2 kolon */
@media (max-width: 900px) {
  .wiz-head { flex-wrap: wrap; padding: .5rem .7rem; gap: .3rem .5rem; align-items: center; }
  .wiz-head-main { display: contents; }
  .wiz-title-line { order: 1; flex: 1 1 0; min-width: 0; margin: 0; font-size: .98rem; }
  .wiz-title-cari { flex-basis: 100%; font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .wiz-head-actions { order: 2; gap: .35rem; }
  .wiz-summary-row { order: 3; flex: 0 0 100%; gap: .3rem .5rem; min-width: 0; max-width: 100%; }
  .wiz-summary-row .wiz-summary { max-width: 100%; overflow: hidden; }
  .wiz-summary { gap: .25rem; }
  .wiz-pill { font-size: .74rem; padding: .1rem .5rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wiz-body .label, .form-grid .label { margin-bottom: .15rem; font-size: .8rem; }
}
@media (min-width: 340px) and (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr 1fr; gap: .5rem .6rem; align-items: end; }
  .form-grid > .full { grid-column: 1 / -1; }
}

/* =====================================================================
 * Faz 18.8 — Fiş kalem satırı (≤900px), kesin tanım:
 *  satır 1: görsel · "Kod / Ürün adı" (kalan tam genişlik, 2 satır rezerv; 2. satır yarım olsa da yer ayrılır)
 *  satır 2: Miktar · Fiyat · İskonto (aktif olanlar) · KDV% · Satır tutarı (her zaman en sağda, sağa dayalı)
 *  ileride eklenecek kolonlar satır 3'e sarar (en çok 3 satır).
 *  Sil: kartın sağ üst köşesinde çok küçük kırmızı çöp kutusu — absolute overlay, diğer alanları itmez/kaydırmaz.
 * Flex satırlar (tr::before/::after = satır kırılımı): her satırdaki hücreler flex-grow ile tam genişliği
 * eşit doldurur — eksik dolu satır 2/3'te bile hücreler genişler, satır sağda boşluk bırakmaz.
 * ===================================================================== */
@media (max-width: 900px) {
  .lines-table > tbody > tr:not(.lines-add-row) {
    display: flex; flex-wrap: wrap; gap: .35rem .3rem; align-items: flex-end;
    padding: .55rem .55rem .5rem; position: relative;
  }
  .lines-table > tbody > tr:not(.lines-add-row)::before, .lines-table > tbody > tr:not(.lines-add-row)::after { content: ""; display: block; flex: 0 0 100%; height: 0; margin: 0; }
  .lines-table > tbody > tr:not(.lines-add-row)::before { order: 15; }
  .lines-table > tbody > tr:not(.lines-add-row)::after { order: 25; }
  .lines-table > tbody > tr > td { order: 30 !important; margin: 0 !important; flex: 1 1 0; min-width: 0; width: auto; max-width: none; } /* yeni kolon → satır 3, eşit genişler */
  /* satır 1: görsel + ürün adı (kalan tam genişlik, 2 satır) */
  .lines-table > tbody > tr > td.col-img { order: 10 !important; flex: 0 0 auto; align-self: flex-start; }
  .lines-table > tbody > tr > td.col-img .thumb { width: 2.3rem; height: 2.3rem; }
  .lines-table > tbody > tr > td.col-kod { display: none !important; } /* Faz 19: kod ürün hücresinde "Kod / Ürün adı" olarak */
  .lines-table > tbody > tr > td.col-urun {
    order: 12 !important;
    flex: 1 1 0;
    align-self: flex-start;
    min-width: 0;
    width: auto;
    max-width: none;
    height: auto !important;
    min-height: calc(1.3em * 2 + .4rem);
    padding-right: 1.7rem !important;
    white-space: normal !important;
    overflow: hidden;
    text-overflow: unset;
  }
  .lines-table > tbody > tr > td.col-urun::before { display: none; }
  .lines-table > tbody > tr > td.col-urun .cell-val {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
    word-break: break-word;
    line-height: 1.3;
    min-height: 2.6em;
    padding: 0;
  }
  .lines-table > tbody > tr > td.col-urun.cell-edit { height: auto !important; min-height: calc(1.3em * 2 + .4rem); }
  /* satır 2: Miktar · Fiyat · İsk… · KDV · Tutar (en sağda) — hepsi eşit, satırı tam doldurur */
  .lines-table > tbody > tr > td:is(.col-mik, .col-fiyat, .col-isk, .col-kdv) { order: 20 !important; flex: 1 1 0; }
  .lines-table > tbody > tr > td.col-tutar { order: 24 !important; flex: 1 1 0; }
  .lines-table > tbody > tr > td.col-tutar { text-align: right !important; font-weight: 700; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis; }
  .lines-table > tbody > tr > td.col-tutar::before { display: block; text-align: right; margin: 0 0 .05rem; font-size: .72em; line-height: 1.2; font-weight: 600; }
  /* sayısal hücreler: etiket üstte, değer sağa dayalı */
  .lines-table > tbody > tr > td[data-cell]:not(.col-urun) { font-size: .9em; text-align: right !important; }
  .lines-table > tbody > tr > td[data-cell]:not(.col-urun)::before { display: block; text-align: left; margin: 0 0 .05rem; font-size: .72em; line-height: 1.2; }
  .lines-table .cell-input { width: 100%; min-width: 0; }
  /* sil: sağ üst köşe overlay, küçük kırmızı, akış dışı */
  .lines-table > tbody > tr > td.col-del { position: absolute; top: .12rem; right: .12rem; order: 0 !important; flex: none; padding: 0 !important; width: auto; max-width: none; min-width: 0; z-index: 2; }
  .lines-table > tbody > tr > td.col-del::before { display: none; }
  .lines-table > tbody > tr > td.col-del .btn.btn-ico {
    width: 1.35rem !important; height: 1.35rem !important; min-width: 0 !important; min-height: 0 !important;
    border: 0; background: transparent; color: var(--neg, #dc2626); padding: 0; position: relative;
  }
  .lines-table > tbody > tr > td.col-del .btn.btn-ico .ico-svg { width: .9rem; height: .9rem; }
  .lines-table > tbody > tr > td.col-del .btn.btn-ico::after { content: ""; position: absolute; inset: -.45rem; } /* görünüm küçük, dokunma alanı geniş */
  .lines-add-row > td { display: block; text-align: center !important; }

  /* Gider kalem: her zaman görünür .field kutuları (fiş cell-input overlay değil).
     .cell-edit 2.4rem + overflow:hidden 40px dokunma alanını kesiyordu. */
  .lines-table[data-table="giderkalem"] > tbody > tr > td {
    overflow: visible;
  }
  .lines-table[data-table="giderkalem"] > tbody > tr > td.cell-edit {
    height: auto !important;
    min-height: 40px;
    overflow: visible;
  }
  .lines-table[data-table="giderkalem"] > tbody > tr > td.col-urun {
    overflow: visible;
    min-height: 0 !important;
    height: auto !important;
  }
  .lines-table[data-table="giderkalem"] > tbody > tr > td:is(.col-mik, .col-fiyat, .col-kdv)::before,
  .lines-table[data-table="giderkalem"] > tbody > tr > td.col-tutar::before {
    display: block !important;
    content: attr(data-label);
    text-align: left;
    margin: 0 0 .05rem;
    font-size: .72em;
    line-height: 1.2;
    font-weight: 600;
    color: var(--muted);
  }
  .lines-table[data-table="giderkalem"] > tbody > tr > td.col-tutar::before { text-align: right; }
  .lines-table[data-table="giderkalem"] > tbody > tr > td.col-urun::before { display: none !important; }
  .lines-table[data-table="giderkalem"] .field {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 40px;
    padding: .28rem .32rem !important;
    box-sizing: border-box;
  }
}
.lines-table[data-table="giderkalem"] td,
.lines-table[data-table="giderkalem"] td.cell-edit {
  overflow: visible;
  height: auto;
  min-height: 2.4rem;
}

/* Faz 19: kalem ürün hücresindeki kod öneki yalnız mobilde (masaüstünde ayrı Kod kolonu var) */
.lines-table .kod-on { display: none; }
@media (max-width: 900px) { .lines-table .kod-on { display: inline; color: var(--muted); font-weight: 500; } }

/* Faz 21.1: mobil kartta etiketsiz kolonlar (registry mobil_etiket=false → td.m-noetiket); değer yerinde kalır */
@media (max-width: 900px) { .table > tbody > tr > td.m-noetiket::before { display: none !important; } }

/* Faz 21.7–21.8: kolon düzenleyici + sürükleme */
.btn-tablo-ayar { font-size: 1.05rem; }
.toolbar .btn-tablo-ayar,
.card-head .btn-tablo-ayar { order: 99; }
.card-head .btn-tablo-ayar { margin-left: auto; }
.btn-tablo-excel { white-space: nowrap; }
.tablo-ayar-float { display: none !important; }
.tablo-ayar { display: flex; flex-direction: column; gap: 0.7rem; }
.tablo-ayar-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.tablo-ayar-bar select { min-height: 2.2rem; }
.tablo-col-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.tablo-col-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.35rem 0.5rem; background: #fff; }
.tablo-col-row.kilitli { opacity: 0.78; }
.tablo-col-row.dragging { opacity: 0.45; }
.tablo-col-row.drag-over { outline: 2px dashed var(--accent, #4f46e5); }
.tablo-col-grip { cursor: grab; color: var(--muted); min-width: 1.2rem; text-align: center; user-select: none; }
.tablo-col-ad { flex: 1 1 8rem; font-weight: 600; min-width: 0; }
.tablo-col-sw { display: inline-flex; align-items: center; }
.tablo-col-move { display: inline-flex; gap: 0.15rem; }
.tablo-col-move .btn { min-width: 2.1rem; padding: 0.15rem 0.35rem; }
.tablo-ayar-act { margin-top: 0.2rem; }
.tablo-ayar-not { margin: 0; font-size: .82rem; line-height: 1.4; }
.tablo-satir-grup { display: flex; flex-direction: column; gap: .35rem; }
.tablo-satir-baslik { font-size: .75rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }
.tablo-col-satir { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--muted); }
.tablo-col-satir select { min-height: 2.1rem; }
.tablo-col-konum { display: inline-flex; gap: .15rem; }
.tablo-col-konum .btn { min-height: 2.1rem; padding: .15rem .45rem; }
.tablo-col-konum .btn.on { background: var(--accent-soft, #eef2ff); color: var(--accent, #2563eb); }
.tablo-col-w { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--muted); }
.tablo-col-w input { width: 4.6rem; min-height: 2.1rem; text-align: right; }
thead th.tablo-th-drag { opacity: 0.45; cursor: grabbing !important; }
thead th.tablo-th-over { box-shadow: inset 0 -3px 0 var(--accent, #4f46e5); }
@media (min-width: 901px) {
  table[data-table] thead th[data-col] { cursor: grab; }
}
@media (max-width: 900px) {
  .tablo-ayar-bar { align-items: stretch; }
  .tablo-ayar-bar label { width: 100%; display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
  .tablo-ayar-bar select { flex: 1; min-width: 0; }
  .tablo-col-row { padding: 0.5rem; }
}

/* Faz 22: giriş + profil + kullanıcı tipleri */
.login-body { background: var(--bg); }
.login-wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 1.6rem 1rem;
}
.login-card {
  width: 100%;
  max-width: 22rem;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.2rem 1.3rem;
}
.login-brand { display: flex; gap: 0.64rem; align-items: center; margin-bottom: 1rem; color: inherit; }
.login-title { font-size: 1.15rem; margin: 0 0 0.8rem; }
.login-error {
  background: #fef2f2;
  color: var(--bad);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.64rem;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.login-form .label { margin-top: 0.55rem; }
.login-submit { width: 100%; margin-top: 1rem; justify-content: center; }

.header-meta { display: flex; align-items: center; gap: 0.64rem; }
.user-menu { position: relative; }
.user-avatar {
  width: 2.24rem;
  height: 2.24rem;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: #3730a3;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.user-avatar:hover, .user-avatar[aria-expanded="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.user-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 13.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 0.6rem 1.4rem rgba(15, 23, 42, .12);
  padding: 0.45rem;
  z-index: 40;
}
.user-drop-id { padding: 0.35rem 0.5rem 0.55rem; border-bottom: 1px solid var(--line-soft); margin-bottom: 0.35rem; }
.user-drop-ad { font-weight: 700; font-size: 0.92rem; }
.user-drop-mail, .user-drop-rol { font-size: 0.78rem; color: var(--muted); }
.user-drop-btn {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.5rem 0.55rem;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.user-drop-btn:hover { background: #f8fafc; }
.user-drop-btn.danger { color: var(--bad); }
.user-drop form { margin: 0; }

.rol-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}
.rol-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: auto;
  max-height: 28rem;
  background: #fff;
}
.rol-item {
  display: flex;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  padding: 0.55rem 0.7rem;
  font: inherit;
  cursor: pointer;
}
.rol-item:hover { background: #f8fafc; }
.rol-item.on { background: var(--accent-soft); color: #3730a3; font-weight: 700; }
.rol-item .muted { font-weight: 500; font-size: 0.78rem; }
.rol-editor {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  background: #fff;
  min-width: 0;
}
.izin-agac { list-style: none; margin: 0; padding: 0; }
.izin-agac ul { list-style: none; margin: 0.15rem 0 0 1.1rem; padding: 0; }
.izin-node { display: flex; align-items: center; gap: 0.4rem; padding: 0.18rem 0; font-size: 0.92rem; }
.izin-node input { width: 1rem; height: 1rem; }
.rol-editor-actions { display: flex; gap: 0.5rem; margin-top: 0.9rem; flex-wrap: wrap; }

@media (max-width: 800px) {
  .rol-layout { grid-template-columns: 1fr; }
  .user-avatar { width: max(40px, 2.5rem); height: max(40px, 2.5rem); }
}


.confirm-box.wide { width: min(48rem, 100%); }
.confirm-choices { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.confirm-choices .btn { flex: 1; min-width: 6rem; }
.kapat-prev { max-height: 50vh; overflow: auto; margin: 0 0 0.9rem; }
.kapat-prev input.field { width: 5.5rem; text-align: right; }


.filter-row { --ana-tab-h: 2.2rem; display: flex; align-items: flex-end; gap: 0.32rem; flex-wrap: wrap; }
.filter-row .tabs { align-items: flex-end; }
.filter-row .tabs:not(.tabs-sm) .tab {
  min-height: var(--ana-tab-h);
  height: var(--ana-tab-h);
  box-sizing: border-box;
}
.filter-row .tabs-sm .tab {
  font-size: inherit;
  padding: 0 0.8rem;
  min-height: calc(var(--ana-tab-h) * 0.8) !important;
  height: calc(var(--ana-tab-h) * 0.8);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  border-color: var(--accent-border);
}
.filter-row .tabs-sm .tab.on {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: #3730a3;
  font-weight: 600;
}
@media (max-width: 900px) {
  .filter-row { --ana-tab-h: max(40px, 2.5rem); }
}
/* Excel yükleme + toplu onay */
.excel-yukle-box { max-height: min(92vh, 52rem); overflow: auto; }
.excel-yukle-box .ey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: .7rem .9rem;
  margin: .6rem 0 1rem;
}
.excel-yukle-box .ey-grid label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; }
.ey-mod { display: flex; align-items: center; gap: .6rem; align-self: end; padding-bottom: .15rem; }
.ey-file { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.ey-map-list { display: flex; flex-direction: column; gap: .35rem; max-height: 22rem; overflow: auto; padding-right: .2rem; }
.ey-grup { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: .55rem; color: var(--muted, #667); }
.ey-row { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(10rem, 1.3fr); gap: .4rem .7rem; align-items: center; }
.ey-row span { display: flex; flex-direction: column; line-height: 1.2; }
.ey-row small { font-weight: 400; opacity: .55; font-size: .72rem; }
.ey-row.ey-req span { font-weight: 650; }
.ey-rapor { margin-top: .7rem; font-size: .85rem; white-space: pre-wrap; }
.ey-rapor pre { margin: .4rem 0 0; max-height: 10rem; overflow: auto; font-size: .78rem; }
.ey-toplu { display: inline-flex; gap: .35rem; margin-right: .4rem; }
.ey-th-sec, .ey-td-sec { width: 2.1rem; }
.ey-bar { height: .45rem; background: var(--line, #e5e5e5); border-radius: 99px; overflow: hidden; margin: .4rem 0 .7rem; }
.ey-bar i { display: block; height: 100%; width: 0; background: var(--accent, #2a6); transition: width .2s; }
.neg { color: #b42318; }

.ey-bar.indeterminate i { width: 38%; animation: ey-slide 1.15s ease-in-out infinite; }
@keyframes ey-slide { 0% { transform: translateX(-130%); } 100% { transform: translateX(280%); } }

.ey-ipucu { font-size: .82rem; margin: 0 0 .7rem; }
