/* Gabsis v2 — App Styles (ported from Claude Design) */

* { box-sizing: border-box; }

/* Icon sizing — MUST come before anything that uses them.
   SVG without width/height inherits font-size → renders huge. Constrain always. */
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.i-12 { width: 12px;  height: 12px; }
.i-14 { width: 14px;  height: 14px; }
.i-16 { width: 16px;  height: 16px; }
.i-18 { width: 18px;  height: 18px; }
.i-20 { width: 20px;  height: 20px; }
.i-24 { width: 24px;  height: 24px; }
.i-32 { width: 32px;  height: 32px; }
.i-40 { width: 40px;  height: 40px; } /* Faz 0.3 — Views/My/PayResult.cshtml'den taşındı */
/* Default cap for any stray SVG (without size class) */
.app svg:not([class*="i-"]),
.auth-wrap svg:not([class*="i-"]) { width: 16px; height: 16px; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  font-feature-settings: "cv11", "ss01", "ss03"; /* Faz 0.1 — tokens.css'ten korunan tipografi özelliği */
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

.text-mono { font-family: var(--font-mono); }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-sm { font-size: 12.5px; }
.text-xs { font-size: 11.5px; }
.text-lg { font-size: 16px; }

/* ─── App Shell ────────────────────────────────────────── */
.app { display: flex; min-height: 100vh; }
.main-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.page-content { padding: var(--s-7); max-width: 1400px; margin: 0 auto; width: 100%; }
.page-content.full { max-width: none; }

.page-header {
  padding: var(--s-7) var(--s-7) var(--s-5);
  border-bottom: 1px solid var(--border);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.page-header h1 { margin: 0; font-size: var(--fs-24); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.page-header .subtitle { margin-top: 4px; font-size: var(--fs-13); color: var(--text-muted); max-width: 70ch; }
.page-header-row { display: flex; align-items: flex-start; gap: var(--s-4); justify-content: space-between; flex-wrap: wrap; row-gap: 8px; }

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; padding: 0; background: transparent; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb .sep { color: var(--text-disabled); }
.breadcrumb .current { color: var(--text); font-weight: 550; }

/* ─── Sidebar ──────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--surface-muted);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10; /* Faz 0.1 — tokens.css'ten korundu, sticky table header'ların üstünde kalsın */
}

.sidebar-header { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo:hover { text-decoration: none; }

.logo-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: #08244a; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: -0.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18); flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .name { font-size: 14.5px; font-weight: 650; color: var(--text); letter-spacing: -0.015em; }
.logo-text .sub { font-size: 10.5px; color: var(--text-subtle); font-weight: 500; }

.sidebar-scroll { flex: 1; overflow-y: auto; padding: 0 12px 16px; }

/* === Sidebar nav — Claude Design v2: tüm satırlar EŞIT hizalama ===
   Top-level + alt-level + group summary aynı padding (8px 12px), aynı font (13px),
   aynı icon size (16px), aynı gap (10px). Hiçbir item diğerinden büyük/küçük değil.
   Mobile/tablet/desktop tek skala. */
.nav-section { margin-top: 16px; }
.nav-section:first-child { margin-top: 0; }

.nav-heading {
  font-size: 11px;
  color: var(--text-subtle);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px 4px;
  margin: 0;
}

.nav-list { display: flex; flex-direction: column; gap: 1px; }

/* TÜM nav item'ları (top-level, group-summary, sub) — TEK BAZ STYLE */
.nav-item,
.nav-group-summary,
.nav-sub .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 120ms, color 120ms;
  text-decoration: none;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.nav-item:hover,
.nav-group-summary:hover,
.nav-sub .nav-item:hover {
  background: var(--surface-hover);
  color: var(--text);
  text-decoration: none;
}
.nav-item.active,
.nav-sub .nav-item.active {
  background: var(--primary-soft);
  color: var(--primary-text);
  font-weight: 550;
}
.nav-item svg,
.nav-group-summary svg,
.nav-sub .nav-item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.nav-item .nav-label,
.nav-group-summary .nav-label,
.nav-sub .nav-item .nav-label { flex: 1; }
.nav-item .nav-count {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-mono);
}
.nav-item.active .nav-count {
  background: var(--primary-soft-hover);
  color: var(--primary-text);
}

/* Collapsible nav groups */
.nav-group { margin: 0; border: none; }
.nav-group[open] > .nav-group-summary .chev { transform: rotate(90deg); }
.nav-group-summary {
  /* Üstteki bütün ortak style'ı miras alır; sadece chev override */
  list-style: none;
  user-select: none;
}
.nav-group-summary::-webkit-details-marker { display: none; }
.nav-group-summary .chev {
  transition: transform .15s ease;
  color: var(--text-subtle);
  width: 14px; height: 14px;
}

/* Alt-menü item'ları soldan içerlek (visual indent) */
.nav-sub {
  padding-left: 12px;
  margin: 1px 0 0 12px;
  border-left: 1px solid var(--border-subtle);
}
.nav-sub .nav-item {
  font-size: 12.5px;
  padding: 6px 12px;
}
.nav-sub .nav-item.active {
  /* Active sub item için sol kenara primary indikator */
  background: var(--primary-soft);
  color: var(--primary-text);
}

.sidebar-footer { border-top: 1px solid var(--border); padding: 12px; display: flex; align-items: center; gap: 10px; }
.sidebar-footer .user-info { flex: 1; min-width: 0; line-height: 1.2; }
.sidebar-footer .user-info .name { font-size: 12.5px; font-weight: 550; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer .user-info .role { font-size: 11px; color: var(--text-subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Mobil denetim (26.09) — eskiden style="width:26px;height:26px" inline'dı (Ratchet
   inline_style azaltıldı). .btn-icon'un (30px) varsayılanından biraz daha kompakt. */
.sidebar-logout-btn { width: 26px; height: 26px; }

/* ─── Topbar ───────────────────────────────────────────── */
.topbar {
  height: var(--topbar-height);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center;
  padding: 0 20px; gap: 16px;
  position: sticky; top: 0; z-index: 20;
}

.site-switcher {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--border);
  padding: 5px 10px 5px 8px; border-radius: 8px; cursor: pointer;
  color: var(--text); font-size: 13px; font-family: inherit;
}
.site-switcher .mark {
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.site-switcher .name { font-weight: 550; }

.global-search {
  flex: 1; max-width: 480px;
  display: flex; align-items: center; gap: 10px;
  position: relative; /* Faz 0.1 — tokens.css'ten korundu (olası açılır sonuç paneli için) */
  background: var(--surface-muted); border: 1px solid var(--border);
  border-radius: 8px; padding: 0 10px; height: 34px;
  color: var(--text-subtle); cursor: pointer;
  font-size: 13px; font-family: inherit;
}
.global-search .placeholder { flex: 1; text-align: left; }

.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 4px; font-size: 10.5px; font-family: var(--font-mono);
  color: var(--text-muted); background: var(--surface);
}

.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); position: relative; text-decoration: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); /* Faz 0.1 — tokens.css'ten korundu */
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text); text-decoration: none; }
.icon-btn .notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--danger); border: 2px solid var(--surface);
}

.topbar-sep { width: 1px; height: 22px; background: var(--border); }

.user-chip {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: transparent; border: none; color: var(--text);
  font-family: inherit; font-size: 13px; padding: 0;
}

/* ─── Avatar ───────────────────────────────────────────── */
.avatar {
  border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center;
  color: #fff; font-weight: 600; letter-spacing: -0.01em;
  flex-shrink: 0;
}
.avatar-sm { width: 26px; height: 26px; font-size: 10px; }
.avatar-md { width: 32px; height: 32px; font-size: 12px; }
.avatar-lg { width: 40px; height: 40px; font-size: 15px; }

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 500; font-size: 13.5px;
  border-radius: 8px; border: 1px solid transparent;
  padding: 0 14px; height: 34px; cursor: pointer;
  transition: all 140ms ease; white-space: nowrap;
  user-select: none; letter-spacing: -0.005em;
  text-decoration: none; line-height: 1;
  box-shadow: none;
  /* Faz 0.1 — varyantsız .btn (örn. bare "btn" class'ı) için nötr fallback,
     tokens.css'ten korundu; .btn-primary/-secondary/-ghost vb. bunu ezer. */
  background: var(--surface); color: var(--text);
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
/* Faz 43 — disabled buton state'i (önceden yalnız tarayıcı varsayılanıydı) */
.btn:disabled, .btn[disabled], .btn[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed; pointer-events: none;
}

/* Faz 0.3 — .btn-sm'in bir adım küçüğü (kompakt tablo satır aksiyonları için) */
.btn-xs { padding: 0 8px; font-size: 11.5px; height: 24px; gap: 4px; border-radius: 6px; }
.btn-sm { padding: 0 10px; font-size: 12.5px; height: 28px; }
.btn-lg { padding: 0 18px; font-size: 14.5px; height: 40px; }
.btn-xl { padding: 0 22px; font-size: 15px; height: 50px; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }

.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--surface-hover); color: var(--text); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }

.btn-success { background: var(--success); color: #fff; box-shadow: var(--shadow-sm); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: var(--shadow-sm); }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: var(--border); }
.btn-danger-ghost:hover { background: var(--danger-soft); color: var(--danger-text); }

.btn-block { width: 100%; justify-content: center; }

/* ─── Badge ────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; height: 20px; font-size: 11.5px; font-weight: 500;
  border-radius: 999px; border: 1px solid var(--border-subtle); letter-spacing: -0.005em;
  /* Faz 43 — tokens.css'ten birleştirilen özellikler: varyantsız badge'in
     varsayılan rengi + uzun etiketlerin pil dışına taşmaması */
  background: var(--surface-soft); color: var(--text-muted);
  line-height: 1.4; white-space: nowrap; max-width: 100%;
}
.badge-neutral { background: var(--surface-muted); color: var(--text-muted); border-color: var(--border); }
.badge-primary { background: var(--primary-soft); color: var(--primary-text); border-color: transparent; }
.badge-success { background: var(--success-soft); color: var(--success-text); border-color: transparent; }
.badge-warning { background: var(--warning-soft); color: var(--warning-text); border-color: transparent; }
.badge-danger  { background: var(--danger-soft);  color: var(--danger-text);  border-color: transparent; }
.badge-info    { background: var(--info-soft);    color: var(--info);         border-color: transparent; }
.badge .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* ─── Card ─────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--s-6);
  box-shadow: none;
}
.card-flush { padding: 0; }
.card-header {
  padding: var(--s-4) var(--s-6);
  border-bottom: 1px solid var(--border);
  background: transparent;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
}
.card-title { margin: 0; font-size: var(--fs-15); font-weight: 600; color: var(--text); letter-spacing: -0.01em; line-height: 1.3; }
.card-sub { font-size: var(--fs-12); color: var(--text-muted); margin-top: 2px; }

/* ─── KPI Card ─────────────────────────────────────────── */
.kpi {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px; min-height: 120px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.kpi:hover { box-shadow: var(--shadow-sm); border-color: var(--border-strong); transform: translateY(-1px); }
/* Faz 43 — tıklanabilir KPI kartı (eski .gb-kpi'nin tek sisteme birleştirilmiş hali) */
a.kpi { text-decoration: none; color: inherit; cursor: pointer; }
a.kpi:hover, a.kpi:focus-visible { border-color: var(--primary); }
.kpi-head { display: flex; justify-content: space-between; align-items: flex-start; }
.kpi-label { font-size: 11px; font-weight: 650; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi-icon { color: var(--text-subtle); }
.kpi-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-family: var(--font-mono); line-height: 1.05; color: var(--text); font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.kpi-sub { font-size: 12px; color: var(--text-muted); }
.kpi-trend { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 11.5px; font-weight: 500; }
.kpi-trend.up { color: var(--success); }
.kpi-trend.down { color: var(--danger); }
.kpi-trend.flat { color: var(--text-subtle); }
.kpi-trend .muted { color: var(--text-subtle); font-weight: 400; }

/* Faz 47 — kompakt KPI. Liste ekranlarında özet şeridi filtre kartının *içinde*
   ikincil bilgi olarak duruyor; tam boy kart (min-height 120px, 28px değer)
   sayfanın birincil içeriği olan tabloyu bastırıyordu. */
.kpi-sm { padding: 14px 16px; gap: 0; min-height: 0; border-radius: 12px; }
.kpi-sm .kpi-value { font-size: 21px; margin-top: 4px; }

/* Faz 47 — bu iki sınıf markup'ta kullanılıyordu ama CSS'te hiç tanımlı değildi;
   uyarı/tehlike KPI'ları nötr kartla birebir aynı görünüyordu. Sol kenar şeridi +
   değer rengi ile ayrışır (renk tek başına taşıyıcı değil, etiket metni de var). */
.kpi-warning { box-shadow: inset 3px 0 0 var(--warning), var(--shadow-xs); }
.kpi-warning .kpi-value { color: var(--warning-text); }
.kpi-danger { box-shadow: inset 3px 0 0 var(--danger), var(--shadow-xs); }
.kpi-danger .kpi-value { color: var(--danger-text); }
/* .kpi:hover box-shadow'u tümden değiştirdiği için şerit hover'da kaybolmasın */
.kpi-warning:hover { box-shadow: inset 3px 0 0 var(--warning), var(--shadow-sm); }
.kpi-danger:hover { box-shadow: inset 3px 0 0 var(--danger), var(--shadow-sm); }
/* Para birimi, sayının yanında ikincil kalsın */
.kpi-unit { font-size: 0.6em; font-weight: 600; color: var(--text-muted); margin-left: 3px; }

/* Faz 0.3 — Views/My/Index.cshtml'den taşındı (hafif KPI özet şeridi, .kpi
   kartından daha kompakt — "Bu Yıl Ödeme / Açık Taleplerim / Gecikmiş" gibi) */
.stats-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md);
    padding: 14px 16px;
}
.stat-label {
    font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-subtle); font-weight: 500;
}
.stat-value {
    font-size: 22px; font-weight: 600; letter-spacing: -0.015em;
    margin-top: 4px; color: var(--text);
    font-variant-numeric: tabular-nums;
}

/* Faz 0.3 — Views/DuesSchedules/Create.cshtml'den taşındı (özet dl — sihirbaz
   son adımı, "Dönem / Yıl / Ay / Son Ödeme ..." gibi çift kolonlu özet) */
.summary-grid {
    display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px;
    margin: 0; font-size: 13px;
}
.summary-grid dt { color: var(--text-muted); }
.summary-grid dd { margin: 0; color: var(--text); font-weight: 500; }

/* ─── Grid helpers ─────────────────────────────────────── */
.grid { display: grid; gap: 14px; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-main { grid-template-columns: 1.7fr 1fr; }
.grid-triple { grid-template-columns: 1.4fr 1fr 1fr; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
/* Faz 47 — tokens.css'teki çift tanım silindi (orada gap: var(--s-3) + ayrı flex-wrap kuralı vardı).
   Bugün ekranda render edilen değer 10px; token ölçeğinde tam karşılığı olmadığı için görsel
   regresyon yaratmamak adına 10px korunuyor. */
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.spacer { flex: 1; }

/* ─── Forms ────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .field > label.control-label { font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
.field .hint { font-size: 11.5px; color: var(--text-subtle); }
/* Inline field helper — yardımcı açıklama (tutar, vade, tip alanları için kullanıcıya yönelik) */
.form-hint { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.35; }

input[type="text"].form-control,
input[type="email"].form-control,
input[type="password"].form-control,
input[type="tel"].form-control,
input[type="number"].form-control,
input[type="date"].form-control,
.form-control, .form-select {
  width: 100%; height: 36px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-size: 13.5px; font-family: inherit;
  outline: none; transition: border-color 120ms, box-shadow 120ms;
  box-shadow: none;
}
textarea.form-control {
  height: auto; min-height: 80px; padding: 10px 12px; line-height: 1.5; resize: vertical;
}
.form-control:focus, .form-select:focus, textarea.form-control:focus {
  border-color: var(--primary); box-shadow: var(--focus);
}
.form-control[readonly], .form-control:disabled { background: var(--surface-muted); color: var(--text-muted); }
.text-danger, .field-validation-error, .validation-summary-errors {
  color: var(--danger-text); font-size: 12px;
}
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Faz 0.3 — .form-control'ün küçük varyantı (.btn-sm ile orantılı) */
.form-control-sm {
  height: 30px; padding: 0 10px; font-size: 12.5px;
}

/* Identity checkbox */
.form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.form-check-input { width: 16px; height: 16px; accent-color: var(--primary); }
.form-check-label { font-size: 13px; color: var(--text-muted); }

/* Faz 0.3 — radio + metin satırı (.form-check idiomunun radio versiyonu) */
.radio-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); cursor: pointer; user-select: none; }
.radio-label input[type="radio"] { width: 16px; height: 16px; accent-color: var(--primary); }

/* Faz 0.3 — Identity "beni hatırla" checkbox (Areas/Identity/Pages/Account/Login.cshtml),
   gb-* auth tasarım diliyle tutarlı: .form-check-input'un gb-accent tonlu karşılığı */
.gb-check { width: 16px; height: 16px; accent-color: var(--gb-accent-900); cursor: pointer; }

/* ─── Table ────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--surface); }
.data-table thead th {
  text-align: left; padding: 11px 16px;
  background: var(--surface-muted); border-bottom: 1px solid var(--border-strong);
  font-size: 11px; font-weight: 650; color: var(--text-subtle);
  letter-spacing: 0.04em; text-transform: uppercase;
}
/* Yapışkan başlık yalnız opt-in: .data-table.sticky-head olan tablolarda.
   (Global sticky bazı kompleks başlıkları kaydırıyordu — UI bozulması, geri alındı.) */
.data-table.sticky-head thead th { position: sticky; top: var(--topbar-height, 56px); z-index: 5; }
.data-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; overflow-wrap: break-word; }
.data-table tbody tr { transition: background var(--dur-fast) var(--ease); }
/* Faz 43 — tıklanınca detay paneli açan satırlar kendini belli etsin */
.data-table tbody tr.row-click { cursor: pointer; }
.data-table tbody tr:hover { background: var(--surface-hover); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .num { font-family: var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Faz 43 — tokens.css'ten taşınan .data-table ek kuralları (tek kaynak: bu dosya) */
.data-table td.clip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table td.desc { white-space: normal; }
.data-table tr.total-row td { font-weight: 700; border-top: 2px solid var(--primary); border-bottom: none; background: var(--surface); }
.data-table .row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.data-table .row-actions .icon-btn { width: 28px; height: 28px; border-color: transparent; }
.data-table .row-actions .icon-btn:hover { border-color: var(--border); }

/* Faz 0.3 — Views/Persons/Index.cshtml'den taşındı: satır aksiyon dropdown'u
   (mobilde birden fazla ikonu tek menüde toplayan .icon-btn tetikleyici) */
.row-action-toggle { cursor: pointer; }
.row-action-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 200;
    min-width: 150px;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-md, 8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    padding: 4px 0;
}
.row-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    transition: background .12s;
}
.row-action-item:hover { background: var(--surface-hover); }
.row-action-item--danger { color: var(--danger) !important; }

/* Faz 0.1 dedupe — tokens.css'teki (ölü) token'lı sürüm yerine burası tek
   kaynak; 48px/24px/13px zaten var(--s-9)/var(--s-6)/var(--fs-13) ile birebir
   örtüşüyor, token'a geçirildi (görsel değişiklik yok). */
.empty-state { padding: var(--s-9) var(--s-6); text-align: center; color: var(--text-muted); font-size: var(--fs-13); }

/* ─── Dropdown (kanonik) ───────────────────────────────────
   Faz 43 — 6 sayfada 6 farklı lokal implementasyonu vardı (Buildings'te CSS hiç
   olmadığı için menü sürekli açık görünüyordu). Tek kaynak: bu blok + site.js
   gabsisDismissibleGroup. Açılma: .dropdown.open */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  display: none; position: absolute; right: 0; top: 100%; z-index: 200;
  min-width: 150px; margin-top: 4px; padding: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: var(--shadow-md);
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 7px 10px; border: none; background: none; text-align: left;
  font-size: 13px; color: var(--text); border-radius: 6px; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.dropdown-item:hover { background: var(--surface-hover); }
.dropdown-item--danger { color: var(--danger); }

/* Panoya kopyala butonu (.gb-copy) — IBAN/telefon/TC yanı */
.gb-copy { background: none; border: none; cursor: pointer; color: var(--text-subtle);
  padding: 2px 5px; font-size: 12px; border-radius: 4px; line-height: 1; vertical-align: middle; }
.gb-copy:hover { background: var(--surface-hover); color: var(--text); }
.gb-copy.gb-copied { color: var(--success-text, #16a34a); }

/* ─── Toolbar ──────────────────────────────────────────── */
.toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
  background: var(--surface); flex-wrap: wrap;
}
.toolbar .search { flex: 1; max-width: 360px; position: relative; }
.toolbar .search input {
  width: 100%; height: 32px; padding: 0 12px 0 32px;
  background: var(--surface-muted); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 13px;
  font-family: inherit; outline: none;
}
.toolbar .search input:focus { border-color: var(--primary); box-shadow: var(--focus); }
.toolbar .search svg {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-subtle); pointer-events: none;
}

/* ─── Auth pages ───────────────────────────────────────── */
/* 2 kolonlu grid: sol brand / sağ form. Zoom ve window-resize'da
   kolonlar taşmasın diye minmax(0,1fr) + overflow-x:hidden koruması. */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--bg);
  overflow-x: hidden;
}
.auth-wrap * { box-sizing: border-box; }

/* 900px breakpoint: tek kolon, brand gizlenir (mobil/tablet) */
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}

.auth-form-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px clamp(16px, 4vw, 40px);
  min-width: 0; /* grid child taşma koruması */
}
.auth-card {
  width: 100%;
  max-width: 440px;
  min-width: 0;
}
.auth-card h1 { margin: 0 0 6px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
.auth-card .lead { color: var(--text-muted); font-size: 13.5px; margin-bottom: 28px; }

.auth-brand {
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--surface-muted) 100%);
  padding: clamp(32px, 5vw, 56px);
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--border);
  min-width: 0;
  overflow: hidden;
}
.auth-brand .tagline { font-size: clamp(22px, 3vw, 34px); font-weight: 600; letter-spacing: -0.025em; color: var(--text); line-height: 1.15; max-width: 440px; }
.auth-brand .sub { color: var(--text-muted); margin-top: 16px; max-width: 440px; line-height: 1.6; font-size: 14.5px; }
.auth-brand ul.features { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 12px; }
.auth-brand ul.features li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 13.5px; }
.auth-brand ul.features li svg { color: var(--primary); flex-shrink: 0; }

/* ─── Misc ─────────────────────────────────────────────── */
.link-btn {
  background: transparent; border: none; padding: 0;
  color: var(--primary); font: inherit; cursor: pointer;
}
.link-btn:hover { color: var(--primary-hover); text-decoration: underline; }

.hr-soft { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

.alert {
  padding: 12px 16px; border-radius: 10px; font-size: 13px;
  border: 1px solid; display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px;
}
.alert-success { background: var(--success-soft); color: var(--success-text); border-color: transparent; }
.alert-danger  { background: var(--danger-soft);  color: var(--danger-text);  border-color: transparent; }
.alert-warning { background: var(--warning-soft); color: var(--warning-text); border-color: transparent; }
.alert-info    { background: var(--info-soft);    color: var(--info);         border-color: transparent; }
/* Faz 0.3 — .alert-info'nun renksiz/nötr varyantı */
.alert-neutral { background: var(--surface-soft); color: var(--text-muted); border-color: transparent; }

/* Hide default Identity UI _ValidationScripts nav */
nav.navbar { display: none !important; }

/* Override Bootstrap defaults Identity UI brings in */
.container, .container-fluid { max-width: none; padding: 0; }

/* Faz 10B — Trial / billing uyarı banner'ı (Layout-level).
   Faz 11B — Main content ile arada 16px gap. */
.trial-banner {
  padding: 10px var(--s-7);
  font-size: var(--fs-13);
  border-bottom: 1px solid;
  display: flex;
  gap: var(--s-2);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--s-4);
}
.trial-banner-info    { background: #FEF3C7; border-color: #FDE68A; color: #92400E; }
.trial-banner-warning { background: #FED7AA; border-color: #FDBA74; color: #9A3412; }
.trial-banner-danger  { background: #FEE2E2; border-color: #FECACA; color: #991B1B; }
.trial-banner a { color: inherit; font-weight: 600; text-decoration: underline; margin-left: auto; }

/* QA-fix: Form submit loading state — site.js .is-loading class'ı + spinner ekler */
button.is-loading,
input[type="submit"].is-loading {
    opacity: 0.7;
    cursor: progress;
    pointer-events: none;
}
.spinner {
    display: inline-block;
    animation: gv2-spin 0.8s linear infinite;
    margin-right: 4px;
    font-weight: bold;
}
@keyframes gv2-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ─── İş [4] — Premium rozet + kapı ─────────────────────────────── */
.nav-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--warning, #ca8a04);
  background: var(--warning-bg, #fef9c3);
  border: 1px solid var(--warning-border, #fde68a);
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: auto;
  flex-shrink: 0;
  text-transform: uppercase;
}
.nav-premium-gate {
  opacity: .72;
  cursor: pointer;
}
.nav-premium-gate:hover {
  opacity: 1;
  background: var(--surface-hover);
  color: var(--text);
}

/* ─── Filter Bar ───────────────────────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; }

/* ─── Mobil düzeltmeleri (1024px) ─────────────────────────── */
@media (max-width: 1024px) {
  /* Sidebar off-canvas çekme (Fix 2) */
  .sidebar {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    height: 100vh !important;
    width: 280px; max-width: 86vw;
    z-index: 50;
    transform: translateX(-100%);
    /* Mobil denetim (26.09) — kapalı drawer yalnız ekran dışına kaymamalı, gerçekten
       gizlenmeli: visibility:hidden onu hem Tab sırasından hem erişilebilirlik
       ağacından çıkarır ve JS çalışmasa bile geçerlidir. Gecikme, kapanma
       animasyonu bitene kadar görünürlüğü korur. */
    visibility: hidden;
    transition: transform .25s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear .25s;
  }
  .sidebar.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .25s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0s;
  }
  .app { display: block !important; }
  .main-area { width: 100%; }

  /* Nav dokunma hedefleri (Fix 4) */
  .nav-item,
  .nav-group-summary,
  .nav-sub .nav-item {
    padding: 10px 12px;
    min-height: 44px;
  }
}

/* ─── Mobil düzeltmeleri (768px) ──────────────────────────── */
@media (max-width: 768px) {
  /* Grid tek sütun (Fix 1) */
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4,
  .grid-main,
  .grid-triple {
    grid-template-columns: 1fr;
  }
  .input-row { grid-template-columns: 1fr; }

  /* İkon buton dokunma hedefi (Fix 3) */
  .icon-btn {
    min-width: 44px;
    min-height: 44px;
  }

  /* Tablo satır aksiyon butonları (Fix 12) */
  .data-table .row-actions .icon-btn {
    width: 36px;
    height: 36px;
  }

  /* Standart buton dokunma hedefi (Fix 5) */
  .btn:not(.btn-sm) {
    min-height: 44px;
  }

  /* Küçük buton dokunma hedefi (Fix 11) */
  .btn-sm {
    height: auto;
    min-height: 36px;
    padding: 0 12px;
  }

  /* Arama çubuğu gizle (Fix 10) */
  .global-search {
    display: none;
  }

  /* Premium rozet okunabilir font (Fix 6) */
  .nav-premium-badge {
    font-size: 11px;
  }

  /* Logo alt yazı okunabilir font (Fix 7) */
  .logo-text .sub {
    font-size: 12px;
  }

  /* Navigasyon bölüm başlığı okunabilir font (Fix 8) */
  .nav-heading {
    font-size: 12px;
  }

  /* Yardımcı metin okunabilir font (Fix 9) */
  .text-xs {
    font-size: 12px;
  }
  .text-sm {
    font-size: 13px;
  }

  /* Mobilde gizlenecek tablo sütunları (Fix 14) */
  .hide-mobile,
  .col-mobile-hidden {
    display: none !important;
  }
}

/* Faz 0.3 — Views/Persons/Details.cshtml + Views/Sites/Index.cshtml'den
   taşındı: Bootstrap-uyumlu responsive tablo sütun yardımcıları
   (Bootstrap yüklü değil, burada tanımlanır). İki view'da da aynı amaçla
   ufak farklı iki uygulama vardı (biri koşulsuz .d-none + ≥768 override,
   diğeri yalnız ≤767.98 medyası içinde .d-none) — aynı görsel sonucu veren
   Bootstrap'in kendi (daha genel, .d-md-none bonus'lu) davranışı tek kaynak
   olarak seçildi; ikisini yan yana tutmak site.css'e gereksiz çakışan
   seçici eklerdi (bu dedupe çalışmasının amacına aykırı olurdu). */
.d-none { display: none !important; }
@media (min-width: 768px) {
  .d-md-table-cell { display: table-cell !important; }
  .d-md-none { display: none !important; }
}
@media (max-width: 767.98px) {
  .d-none.d-md-table-cell { display: none !important; }
}

/* ─── Faz 43 — prefers-reduced-motion ──────────────────────
   Hareket azaltma tercihi olan kullanıcılarda tüm animasyon/geçişler
   fiilen kapatılır (vestibüler rahatsızlıklar, erişilebilirlik). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Faz 47 — tekilleştirme sonrası (bkz. site.css başlığı) */

/* Faz 47 Hat B — _Layout.cshtml/_Sidebar.cshtml split + inline-style temizliği.
   Append-only blok: mevcut kurallar değiştirilmez/silinmez, yalnız eklenir. */

/* _Topbar.cshtml */
.topbar-title-area { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar-page-title { font-size: var(--fs-14); font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.topbar-search { flex: 1; max-width: 320px; min-width: 0; }
.topbar-avatar { background: var(--primary); color: var(--text-on-primary); }
.topbar-username { font-size: var(--fs-13); font-weight: 500; color: var(--text); }
.topbar-logout-form { margin: 0; }

/* Yardım popover listesi (.popover-help) */
.popover-head-title { font-weight: 600; font-size: var(--fs-13); color: var(--text); }
.help-list { list-style: none; margin: 0; padding: 6px 0; }
.help-list li { padding: 0; }
.help-list-btn,
.help-list-link {
  width: 100%; text-align: left; background: none; border: none;
  padding: 9px 14px; font-size: 13px; color: var(--text); cursor: pointer;
  display: flex; align-items: center; gap: 8px; border-radius: var(--r-sm);
  text-decoration: none;
}
.help-list-btn:hover, .help-list-link:hover { background: var(--surface-muted); }
.help-list-icon-primary { color: var(--primary); }
.help-list-icon-muted { color: var(--text-muted); }
.help-list-shortcuts { border-top: 1px solid var(--border-subtle); padding-top: 6px; margin-top: 2px; }
.help-list-shortcuts-title { padding: 6px 14px; font-size: 11px; color: var(--text-subtle); }
.help-list-shortcuts-row {
  padding: 0 14px 6px; font-size: 12px; color: var(--text-muted);
  display: flex; gap: 12px; flex-wrap: wrap;
}
.help-list-shortcuts-row kbd {
  background: var(--surface-muted); border: 1px solid var(--border);
  border-radius: 3px; padding: 1px 4px; font-size: 11px;
}

/* _ImpersonationBanner.cshtml */
.impersonation-banner {
  background: var(--warning-bg, #fff3cd); border-bottom: 2px solid var(--warning, #f59e0b);
  padding: 10px 20px; display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; flex-wrap: wrap; color: var(--warning-text, #92400e);
}
.impersonation-banner svg { color: var(--warning-text, #92400e); flex-shrink: 0; }
.impersonation-banner-form { margin: 0; }

/* _PasswordSuggestBanner.cshtml */
.pw-suggest-dismiss {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: 18px; line-height: 1; color: inherit; padding: 0 6px;
}

/* _InviteLinkModal.cshtml */
.invite-modal-overlay {
  position: fixed; inset: 0; z-index: 9000; background: rgba(0, 0, 0, .45);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.invite-modal-panel {
  background: var(--surface); border-radius: 12px; padding: 28px 32px;
  max-width: 520px; width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.invite-modal-panel--sm { max-width: 480px; }
.invite-modal-title { margin: 0 0 8px; font-size: 17px; }
.invite-modal-desc { font-size: 13px; color: var(--text-subtle); margin: 0 0 16px; }
.invite-modal-row { display: flex; gap: 8px; align-items: center; }
.invite-modal-input {
  flex: 1; font-size: 12px; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--bg-subtle); color: var(--text); font-family: monospace;
}
.invite-modal-footer { margin-top: 16px; text-align: right; }
.invite-modal-fields { display: flex; flex-direction: column; gap: 10px; }
.invite-modal-label {
  font-size: 11px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: .04em;
}
.invite-modal-note { font-size: 12px; color: var(--text-subtle); margin: 14px 0 0; }

/* _GabiWidget.cshtml */
#gabi-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #1F3A5F; color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(31, 58, 95, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 9998;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
#gabi-fab:hover { transform: scale(1.06); box-shadow: 0 8px 24px rgba(31, 58, 95, 0.45), 0 3px 10px rgba(0, 0, 0, 0.12); }
#gabi-fab:active { transform: scale(0.97); }
#gabi-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 440px; max-width: 100vw;
  background: var(--surface, #fff);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  display: flex; flex-direction: column;
  animation: gabiSlideIn 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
#gabi-drawer[hidden] { display: none; }
#gabi-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #fff);
  flex-shrink: 0;
}
.gabi-drawer-header-title { display: flex; align-items: center; gap: 8px; }
.gabi-drawer-header-icon { color: #1F3A5F; }
#gabi-drawer-title { font-weight: 600; font-size: 14px; }
.gabi-drawer-header-actions { display: flex; gap: 4px; }
#gabi-fullscreen, #gabi-drawer-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px; color: var(--text-muted);
  text-decoration: none; background: transparent; border: none; cursor: pointer;
}
#gabi-fullscreen:hover, #gabi-drawer-close:hover { background: var(--surface-soft, #f1f5f9); color: var(--text); }
#gabi-drawer-frame { flex: 1; width: 100%; border: 0; background: #FAF8F3; }
@keyframes gabiSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@media (max-width: 480px) {
  #gabi-drawer { width: 100vw; }
  #gabi-fab { bottom: 16px; right: 16px; }
}

/* SiteDocuments/Index.cshtml — .dropdown içindeki form aksiyonları (B5) */
.dropdown-form { margin: 0; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Views/Help/* — accordion deseni (27× tekrar eden inline style yerine, B9).
   <details class="card help-step" veya class="card">
     <summary class="help-acc-summary">
       <div class="help-acc-summary-main">
         <div class="help-acc-summary-title">…</div>
         <div class="help-acc-summary-sub">…</div>
       </div>
       <svg class="help-acc-chevron">…</svg>
     </summary>
     <div class="help-acc-body"><div class="help-acc-body-inner">…</div></div>
   </details> */
.help-acc-summary {
  padding: 16px 20px; cursor: pointer; display: flex; align-items: center;
  gap: 12px; list-style: none;
}
.help-acc-summary-main { flex: 1; }
.help-acc-summary-title { font-size: 14px; font-weight: 600; }
.help-acc-summary-sub { font-size: 12px; color: var(--text-muted); }
.help-acc-chevron { color: var(--text-subtle); transition: transform 120ms; }
details[open] > summary .help-acc-chevron { transform: rotate(180deg); }
.help-acc-body { padding: 0 20px 20px 20px; border-top: 1px solid var(--border-subtle); }
.help-acc-body-inner { padding-top: 16px; font-size: 13px; line-height: 1.7; }
.help-list-indent { padding-left: 20px; }
.help-note-box { background: var(--surface-muted); padding: 12px 16px; margin-top: 12px; font-size: 12px; }
.mt-10 { margin-top: 10px; }
.badge-tour-hint { margin-left: 8px; font-size: 11px; }
.legal-h2 { font-size: 18px; font-weight: 600; margin: 32px 0 12px; }

/* Views/Home/Index.cshtml (dashboard) — tekrar eden inline flex/typography desenleri (B9).
   Not: SVG sparkline/bar/stroke renkleri gibi veri-bağımlı (per-datapoint) inline style'lar
   kasıtlı olarak kalır — statik class'a taşınamaz (her satırda farklı hesaplanan değer). */
.dash-inline-flex-sm { display: inline-flex; align-items: center; gap: 6px; }
.dash-inline-flex-xs { display: inline-flex; align-items: center; gap: 4px; }
.dash-row-end { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dash-row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dash-caption { font-size: 12px; color: var(--text-muted); }
.dash-flex-1 { flex: 1; min-width: 0; }
.report-filters .filter-actions .adv-toggle { margin-left: 4px; }
.report-filters.adv-row { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.report-filters.adv-row.is-open { display: flex; }
.cell-right { text-align: right; }
.hint-row { margin-top: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Faz 47 Hat A — gerçek ortak eksikler tespit edildi: bu sınıflar birden çok view'da
   (Persons/Details, ExpenseVendors/CariKart, Reports/IsletmeDefteri|GelirGiderOzet|
   DaireBazliBorc|GelirGiderTablosu|Tahsilat, Charges/Unit, ExpenseInvoices/Index,
   Maintenance/Index) kullanılıyordu ama tek kaynakta tanımlı değildi — sadece
   Persons/Details.cshtml'in yerel <style>'ında vardı (diğer sayfalarda etkisizdi).
   Tek kaynağa taşındı; Persons/Details'teki yerel kopya silindi. */
.no-print { }
@media print {
  .no-print { display: none !important; }
}
@media (min-width: 768px) {
}
@media (max-width: 767.98px) {
}

/* Faz 47 Hat A — spacing/görünürlük utility'leri (brief'te "mevcut" varsayılmıştı,
   gerçekte tanımsızdı; Persons/Index, Persons/Details, Reports/GelirGiderOzet ve
   diğer sahip olunan ekranlarda inline style yerine kullanılabilsin diye eklendi). */
.mb-0 { margin-bottom: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
/* .card.card-flush + style="overflow:hidden" tek başına 70+ view'da tekrarlanan bir
   desen (tablo köşe radius'unu kırpmak için) — .card-flush'ın kendisine eklenmedi
   çünkü bazı kartlar içinde position:absolute dropdown/menü barındırıyor (kırpılırdı).
   Opt-in genel amaçlı sınıf: */
.overflow-hidden { overflow: hidden !important; }
/* Faz 47 Hat A filtre kartlarının standart iç boşluğu — bu fazda dönüştürülen
   15+ .report-filters kartında tekrarlanıyordu. */
.card-pad { padding: 14px 20px !important; }
.card-pad-b { padding: 14px 20px !important; border-bottom: 1px solid var(--border-subtle); }
/* Tablo satırındaki "başlık gibi görünen link" deseni (Persons/Index, ExpenseInvoices/Index
   vb. birçok listede tekrarlanıyordu — hepsi aynı 3 özelliği inline yazıyordu). */
.row-title-link { color: var(--text); font-weight: 550; text-decoration: none; }
.text-success { color: var(--success-text) !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.flex-1 { flex: 1 1 0% !important; }
/* .alert varsayılanı zaten display:flex/align-items:flex-start/gap:10px/font-size:13px
   veriyor (site.css .alert) — sayfa içi banner'larda sık tekrarlanan tek fark margin idi. */
.alert-inset { margin: 8px 20px 0 !important; }
.alert-row { align-items: center !important; }

/* Faz 48 — Kasalar sekmeleri (.tab-bar/.tab-btn/.tab-panel). Faz 32.9'da sidebar
   section-tab stilleri silinirken bu ekranın kullandığı sınıflar da tanımsız kalmış;
   sekmeler çıplak <button> olarak render oluyordu. Ratchet allowlist'inden çıkarıldı. */
.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 4px; }
.tab-btn {
  background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 10px 14px; font-size: var(--fs-13); font-weight: 500; color: var(--text-muted);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 4px; }
.tab-panel { margin-top: 12px; }

/* Faz 49 — Playwright mobil guard'ının yakaladığı yatay taşmalar (375px):
   Kişi Detay başlık aksiyon satırı ve Kasalar sekme çubuğu flex-wrap/overflow
   olmadan sayfayı 987px / 414px'e genişletiyordu. */
.pd-actions-row { flex-wrap: wrap; row-gap: 8px; }
.tab-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.tab-bar .tab-btn { flex: 0 0 auto; white-space: nowrap; }

/* Faz 49 — Anasayfa mobil taşması (375px → 470px): grid sütunu `1fr` olduğu için
   satırın min-content'ine (3 sütunlu istatistik şeridi) kadar büyüyordu. minmax(0,1fr)
   sütunu konteynere kilitler; içerik gerekirse kartın içinde yatay kayar. */
@media (max-width: 768px) {
  .home-main-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .home-main-grid > * { min-width: 0; }
  .home-main-grid .card { min-width: 0; overflow-x: auto; }
  .home-main-grid .stats-row { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
}

/* === Mobil dokunma/erişilebilirlik düzeltmeleri (mobil denetim 26.09) === */

/* Fix 2 — iOS Safari auto-zoom: tokens.css'teki 16px kuralı site.css'in .form-control
   (13.5px) ve .report-filters :is(...) (fs-13, daha yüksek özgüllük) kuralları
   tarafından eziliyordu (aynı dosyada sonradan tanımlanan ya da daha özgül seçici
   kazanıyordu). Burada !important ile GERÇEKTEN kazanan tek kural: sadece dar/dokunmatik
   ekranlarda (≤1024px) metin girişleri 16px — etiketler (label) DEĞİŞMEZ, yalnız alanlar.
   390px'te yatay taşma oluşturmadığı doğrulandı (genişlik zaten %100 / grid hücresi). */
@media (max-width: 1024px) {
  input[type="text"], input[type="email"], input[type="password"],
  input[type="tel"], input[type="number"], input[type="date"],
  input[type="search"], input[type="url"],
  select, textarea,
  .input, .form-control, .form-select, .gb-input {
    font-size: 16px !important;
  }
}

/* Fix 3 — satır başlığı bağlantıları (Persons/Index vb.) dokunma hedefi: 81×17 → dikey
   padding ile büyütülür. Yalnız dar/dokunmatik ekranlarda; masaüstü yoğunluğu korunur. */
@media (max-width: 768px), (pointer: coarse) {
  .row-title-link { display: inline-block; padding: 8px 0; line-height: 1.3; }
  /* Sidebar/topbar logo hedefi (84×29) — hafif dikey boşluk, tasarım değişmez. */
  .logo { padding: 4px 0; }
  /* Sidebar dip çıkış butonu (30×44) — bkz. aşağıdaki .sidebar-logout-btn temel kuralı */
  .sidebar-logout-btn { width: 36px; height: 36px; }
}

/* Fix 4 — GABI yüzen balonu (#gabi-fab, sağ altta sabit) mobilde sayfanın son
   satırının/butonunun üstüne biniyordu (bkz. Sakin/Ödeme akışı, Sakin/Anasayfa
   ekran görüntüleri). Sayfa içeriğinin altına balon yüksekliği + boşluk kadar pay
   bırakılır (safe-area dahil) — balonun kendisi taşınmaz, animasyonu bozulmaz. */
@media (max-width: 768px) {
  .page-content {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
