/* frontend2 — Mapping (React) uygulamasındaki theme.ts tokenlarıyla birebir eşleşen tema. */
:root {
  --primary: #5D87FF;
  --primary-dark: #4570EA;
  --primary-light: #ECF2FF;
  --secondary: #49BEFF;
  --success: #13DEB9;
  --success-light: #E6FFFA;
  --warning: #FFAE1F;
  --warning-light: #FEF5E5;
  --error: #FA896B;
  --error-light: #FDEDE8;
  --info: #539BFF;
  --info-light: #EBF3FE;

  --text: #2A3547;
  --text-muted: #5A6A85;
  --border: #EAEFF4;
  --bg: #F4F6FA;
  --card: #FFFFFF;

  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 6px 24px rgba(42, 53, 71, 0.08);
  --shadow-sm: 0 2px 8px rgba(42, 53, 71, 0.06);
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

a { text-decoration: none; color: inherit; }
button { font-family: var(--font); }

/* ---------- Login (split-screen) ---------- */
.login-page { min-height: 100vh; display: flex; background: var(--bg); }

/* Sol marka paneli */
.login-brand {
  flex: 0 0 46%; max-width: 620px; position: relative; overflow: hidden; color: #fff;
  display: flex; flex-direction: column; justify-content: center; padding: 56px 56px;
  background: linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 55%, #7a9bff 100%);
}
.login-brand::before, .login-brand::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), transparent 70%);
}
.login-brand::before { top: -140px; right: -120px; width: 380px; height: 380px; }
.login-brand::after { bottom: -160px; left: -100px; width: 420px; height: 420px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.14), transparent 70%); }
.login-brand-inner { position: relative; z-index: 1; max-width: 420px; }
.login-brand-logo {
  width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; letter-spacing: 1px; margin-bottom: 26px; color: #fff;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.login-brand-name { font-size: 30px; font-weight: 800; margin: 0 0 12px; line-height: 1.18; }
.login-brand-tag { font-size: 15px; line-height: 1.7; margin: 0 0 34px; color: rgba(255,255,255,.86); }
.login-features { display: flex; flex-direction: column; gap: 16px; }
.login-feature { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: rgba(255,255,255,.94); }
.login-feature-ico {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
}
.login-feature-ico svg { width: 15px; height: 15px; stroke: #fff; }

/* Sağ form paneli */
.login-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.login-card {
  position: relative; background: var(--card); border-radius: var(--radius-lg); padding: 40px 38px;
  width: 100%; max-width: 400px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.login-card-logo {
  display: none; width: 52px; height: 52px; border-radius: 15px; margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
  font-size: 18px; font-weight: 800; letter-spacing: 1px; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(93,135,255,.33);
}
.login-head { margin-bottom: 26px; }
.login-title { font-size: 23px; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.login-subtitle { font-size: 14px; color: var(--text-muted); margin: 0; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-group { display: flex; flex-direction: column; gap: 7px; }
.login-label { font-size: 13px; font-weight: 600; color: var(--text); }
.login-input-wrap { position: relative; display: flex; align-items: center; }
.login-input-ico {
  position: absolute; left: 13px; width: 17px; height: 17px; stroke: var(--text-muted);
  pointer-events: none; transition: stroke .15s;
}
.login-input {
  padding: 12px 14px 12px 40px; border-radius: 10px; border: 1.5px solid var(--border);
  font-size: 14px; outline: none; color: var(--text); background: #fff;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.login-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(93,135,255,.13); }
.login-input:focus + .login-input-ico, .login-input-wrap:focus-within .login-input-ico { stroke: var(--primary); }
.login-error {
  background: var(--error-light); color: #c0392b; padding: 10px 14px; border-radius: 8px;
  font-size: 13px; border: 1px solid rgba(250,137,107,.33);
}
.login-button {
  padding: 13px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 4px;
  box-shadow: 0 8px 18px rgba(93,135,255,.25); transition: filter .15s, transform .05s;
}
.login-button:hover { filter: brightness(1.05); }
.login-button:active { transform: translateY(1px); }
.login-button:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.login-switch-section { text-align: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.login-switch-text { font-size: 13px; color: var(--text-muted); }
.login-switch-button {
  background: none; border: none; color: var(--primary); font-weight: 700;
  font-size: 13px; cursor: pointer; margin-left: 4px;
}
.login-hidden { display: none !important; }

@media (max-width: 900px) {
  .login-brand { display: none; }
  .login-card-logo { display: flex; }
  .login-head { text-align: center; }
}

/* ---------- App layout (sidebar + topbar) ---------- */
.app-wrapper { min-height: 100vh; background: var(--bg); display: flex; }
.sidebar {
  width: 256px; flex: 0 0 256px; background: #fff; border-right: 1px solid var(--border);
  height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column;
  padding: 20px 16px; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.nav-logo {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
  font-size: 17px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(93,135,255,.28);
}
.nav-title { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.18; }
.nav-logo-sm { font-size: 12.5px; letter-spacing: .5px; }
.login-logo-sm { font-size: 18px; letter-spacing: 1px; }
.nav-links { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-ico { width: 19px; height: 19px; flex: 0 0 19px; }
/* Kenar çubuğu altı: Çıkış */
.nav-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.nav-logout { color: var(--danger, #e5484d); }
.nav-logout .nav-ico { color: var(--danger, #e5484d); }
.nav-logout:hover { background: rgba(229,72,77,.10); color: var(--danger, #e5484d); }
.nav-logout:hover .nav-ico { color: var(--danger, #e5484d); }

/* Menü öğesi (link) */
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  border: none; background: none; color: var(--text-muted); font-size: 14px; font-weight: 500;
  cursor: pointer; text-align: left; width: 100%; text-decoration: none;
  transition: background .16s ease, color .16s ease;
}
.nav-link:hover { background: var(--primary-light); color: var(--primary-dark); }
.nav-link .nav-ico { color: var(--text-muted); transition: color .16s ease; }
.nav-link:hover .nav-ico { color: var(--primary); }
.nav-link.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(93,135,255,.32);
}
.nav-link.active .nav-ico { color: #fff; }
.nav-top { margin-bottom: 6px; }

/* Toplanabilir grup */
.nav-group { display: flex; flex-direction: column; margin-top: 4px; }
.nav-group-header {
  display: flex; align-items: center; gap: 11px; width: 100%; cursor: pointer;
  padding: 10px 12px; border: none; background: none; border-radius: 10px;
  font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--text);
  letter-spacing: .2px; transition: background .16s ease;
}
.nav-group-header:hover { background: var(--bg); }
.nav-group-ico { color: var(--text-muted); }
.nav-group-label { flex: 1; text-align: left; }
.nav-chevron {
  width: 15px; height: 15px; flex: 0 0 15px; color: var(--text-muted);
  transition: transform .26s ease; opacity: .7;
}
.nav-group.open > .nav-group-header { color: var(--primary-dark); }
.nav-group.open > .nav-group-header .nav-group-ico { color: var(--primary); }
.nav-group.open > .nav-group-header .nav-chevron { transform: rotate(90deg); color: var(--primary); opacity: 1; }

/* Grup gövdesi: kapalıyken toplanır */
.nav-group-items {
  display: flex; flex-direction: column; gap: 2px;
  max-height: 0; overflow: hidden; opacity: 0;
  padding-left: 12px; margin-left: 9px; border-left: 1.5px solid var(--border);
  transition: max-height .28s ease, opacity .22s ease, margin .28s ease, padding .28s ease;
}
.nav-group.open > .nav-group-items {
  max-height: 520px; opacity: 1; margin-top: 3px; margin-bottom: 4px;
}
.nav-group-items .nav-link { padding: 8px 12px; font-size: 13.5px; }

.content-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center;
  justify-content: space-between; padding: 0 28px; gap: 8px;
}
.page-title { font-size: 17px; font-weight: 700; color: var(--text); }
.top-right { display: flex; align-items: center; gap: 14px; }
.user-row { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 38px;
  background: linear-gradient(135deg, var(--secondary), var(--primary)); color: #fff;
  font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text); }
.user-mail { font-size: 11px; color: var(--text-muted); }
.logout-btn {
  padding: 8px 16px; border-radius: 9px; border: 1.5px solid var(--border);
  background: #fff; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer;
}
.main { flex: 1; min-width: 0; padding: 28px; width: 100%; }

/* ---------- Home / dashboard ---------- */
.welcome { margin-bottom: 22px; }
.welcome-title { font-size: 24px; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.welcome-sub { font-size: 14px; color: var(--text-muted); margin: 0; }
.err-banner { background: var(--error-light); color: var(--error); padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }

.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 18px; }
.hero { background: var(--card); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.hero-badge { width: 48px; height: 48px; border-radius: 14px; flex: 0 0 48px; }
.hero-value { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1.1; }
.hero-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 18px; }
.cat { background: var(--card); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); cursor: pointer; }
.cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cat-bar { width: 5px; height: 22px; border-radius: 3px; flex: 0 0 5px; }
.cat-title { font-size: 15px; font-weight: 700; color: var(--text); flex: 1; }
.cat-total { font-size: 22px; font-weight: 800; color: var(--text); }
.cat-items { display: flex; flex-direction: column; gap: 9px; }
.cat-item { display: flex; align-items: center; gap: 9px; }
.cat-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.cat-item-label { font-size: 13px; color: var(--text-muted); flex: 1; }
.cat-item-val { font-size: 14px; font-weight: 700; color: var(--text); }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.mini { background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.mini-val { font-size: 22px; font-weight: 700; color: var(--text); }
.mini-label { font-size: 12px; color: var(--text-muted); }

.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 18px; }
.card-title { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 18px; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.link-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); cursor: pointer; background: #fff; }
.link-icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; flex: 0 0 40px; }
.link-title { font-size: 14px; font-weight: 600; color: var(--text); flex: 1; }
.link-arrow { color: var(--text-muted); font-size: 16px; }
.loading-note { color: var(--text-muted); font-size: 13px; text-align: center; padding: 8px; }

/* ============================================================
   Paylaşılan yönetim/CRUD bileşenleri — React sayfalarının
   (KurumlarPage vb.) slate/mavi paletiyle birebir eşleşir.
   Tüm taşınan iç sayfalar bu sınıfları paylaşır.
   ============================================================ */

/* Sayfa başlığı */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-title { font-size: 24px; font-weight: 700; color: #0f172a; margin: 0 0 6px; }
.page-hint { font-size: 13px; color: #64748b; margin: 0; max-width: 720px; line-height: 1.6; }
.page-loading { padding: 60px; text-align: center; color: #94a3b8; }

/* Butonlar */
.btn { padding: 10px 18px; border-radius: 9px; border: none; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font); white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.btn-ghost { padding: 10px 16px; border-radius: 9px; border: 1.5px solid #e2e8f0; background: #fff; color: #64748b; font-size: 14px; font-weight: 500; cursor: pointer; font-family: var(--font); }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 8px; }
.btn-link { background: none; border: none; color: #3b82f6; font-size: 13px; font-weight: 600; cursor: pointer; margin-right: 12px; padding: 0; }
.btn-del-link { background: none; border: none; color: #ef4444; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }

/* Hata / bilgi kutusu */
.form-error { background: #fef2f2; color: #dc2626; padding: 10px 14px; border-radius: 8px; font-size: 13px; border: 1px solid #fecaca; margin-bottom: 12px; }

/* Veri tablosu */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #f1f5f9; }
.data-table th { text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; border-bottom: 1px solid #f1f5f9; background: #f8fafc; }
.data-table th.t-mid { text-align: center; }
.data-table th.t-action { text-align: right; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid #f8fafc; font-size: 14px; color: #334155; }
.data-table td.t-code { font-weight: 700; color: #0f172a; }
.data-table td.t-mid { text-align: center; }
.data-table td.t-action { text-align: right; white-space: nowrap; }
.data-table .t-empty { padding: 30px; text-align: center; color: #94a3b8; font-size: 14px; }
.t-muted { color: #cbd5e1; }

/* Rozetler */
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.badge-ok { color: #059669; background: #ecfdf5; }
.badge-no { color: #94a3b8; background: #f1f5f9; }
.badge-async { color: #1d4ed8; background: #eff6ff; }
.badge-sync { color: #c2410c; background: #fff7ed; }
.badge-offline { color: #475569; background: #eef2f7; }
.badge-tanim { color: #0d9488; background: #f0fdfa; }
.badge-grup { color: #6d28d9; background: #f5f3ff; }

/* Form alanları */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.field-label { font-size: 13px; font-weight: 600; color: #334155; }
.field-input { padding: 10px 14px; border-radius: 8px; border: 1.5px solid #e2e8f0; font-size: 14px; outline: none; color: #0f172a; background: #fff; font-family: var(--font); width: 100%; }
.field-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Bölüm kartı + checkbox ızgarası */
.section-card { border: 1px solid #f1f5f9; border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; background: #fcfcfd; }
.section-title { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.section-hint { font-size: 12px; color: #94a3b8; margin: 0 0 8px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #334155; cursor: pointer; }
.check-row.is-disabled { opacity: .5; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 720px; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid #f1f5f9; }
.modal-title { font-size: 17px; font-weight: 700; color: #0f172a; margin: 0; }
.modal-close { background: none; border: none; color: #94a3b8; font-size: 18px; cursor: pointer; font-weight: 700; }
.modal-tabs { display: flex; gap: 4px; padding: 0 22px; border-bottom: 1px solid #f1f5f9; }
.modal-tab { padding: 12px 16px; border: none; border-bottom: 2px solid transparent; background: none; color: #64748b; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.modal-tab.active { border-bottom-color: #3b82f6; color: #1d4ed8; font-weight: 700; }
.modal-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid #f1f5f9; }

/* Katlanır alt panel + chip (tahsilat grupları vb.) */
.sub-panel { background: #fff; border-radius: 12px; border: 1px solid #f1f5f9; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 16px; overflow: hidden; }
.sub-toggle { width: 100%; text-align: left; padding: 14px 20px; border: none; background: none; font-size: 14px; font-weight: 700; color: #0f172a; cursor: pointer; }
.sub-body { padding: 0 20px 20px; border-top: 1px solid #f1f5f9; }
.sub-form { display: flex; gap: 8px; align-items: center; margin: 16px 0 12px; flex-wrap: wrap; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: #f5f3ff; border: 1px solid #ddd6fe; }
.chip-name { font-size: 13px; font-weight: 600; color: #6d28d9; }
.chip-count { font-size: 11px; font-weight: 700; color: #fff; background: #a78bfa; border-radius: 999px; padding: 1px 7px; }
.chip-edit { background: none; border: none; color: #7c3aed; font-size: 11px; font-weight: 600; cursor: pointer; padding: 0; }
.chip-del { background: none; border: none; color: #ef4444; font-size: 12px; cursor: pointer; padding: 0; }

/* Yardımcılar */
.is-hidden { display: none !important; }

/* Ortak: başarı bandı, ayar kartı, alan ipucu, sayfa alt başlığı */
.form-success { background: #eff6ff; color: #1d4ed8; padding: 10px 14px; border-radius: 8px; font-size: 13px; border: 1px solid #bfdbfe; margin-bottom: 16px; font-weight: 600; }
.page-subtitle { font-size: 14px; color: #64748b; margin: 0; }
.field-hint { font-size: 12px; color: #94a3b8; }
.settings-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid #f1f5f9; max-width: 480px; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Cache Yönetimi ---------- */
.cache-wrap { max-width: 980px; }
.page-head-ico { width: 46px; height: 46px; border-radius: 13px; flex: 0 0 46px; display: flex; align-items: center; justify-content: center; }
.page-head-ico svg { width: 23px; height: 23px; stroke-width: 2; }
.cache-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.cache-stat { background: #fff; border: 1px solid #eef2f7; border-radius: 14px; padding: 15px 16px; display: flex; align-items: center; gap: 13px; box-shadow: 0 1px 3px rgba(15,23,42,.05); }
.cache-stat-ico { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 42px; display: flex; align-items: center; justify-content: center; }
.cache-stat-ico svg { width: 21px; height: 21px; stroke-width: 2; }
.cache-stat-val { font-size: 21px; font-weight: 800; color: #0f172a; line-height: 1.1; letter-spacing: -.3px; }
.cache-stat-lbl { font-size: 12px; color: #64748b; margin-top: 3px; }
.ico-blue { background: #eff6ff; color: #2563eb; }
.ico-orange { background: #fff7ed; color: #ea580c; }
.ico-green { background: #ecfdf5; color: #059669; }
.ico-violet { background: #f5f3ff; color: #7c3aed; }

.cache-card { background: #fff; border: 1px solid #eef2f7; border-radius: 16px; padding: 22px 24px; box-shadow: 0 1px 3px rgba(15,23,42,.05); margin-bottom: 18px; }
.cache-card-head { display: flex; align-items: flex-start; gap: 14px; }
.cache-card-badge { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 40px; display: flex; align-items: center; justify-content: center; }
.cache-card-badge svg { width: 20px; height: 20px; stroke-width: 2; }
.cache-card-tt { flex: 1; min-width: 0; }
.cache-card-h { font-size: 15.5px; font-weight: 700; color: #0f172a; margin: 0; }
.cache-card-desc { font-size: 12.5px; color: #94a3b8; margin: 4px 0 0; line-height: 1.55; }
.cache-card-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.cache-card-body { margin-top: 18px; }
.cache-fields { display: flex; gap: 16px; flex-wrap: wrap; }

.cache-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: #334155; }
.cache-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.cache-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid #e2e8f0; background: #fff; font-size: 13px; font-weight: 500; color: #475569; cursor: pointer; user-select: none; transition: border-color .12s, background .12s, color .12s; }
.cache-chip:hover { border-color: #cbd5e1; }
.cache-chip:has(input:checked) { border-color: #fdba74; background: #fff7ed; color: #c2410c; font-weight: 600; }
.cache-chip input { accent-color: #ea580c; margin: 0; }

.cache-table-wrap { border: 1px solid #eef2f7; border-radius: 12px; overflow: hidden; }
.cache-table-wrap .data-table { border: none; border-radius: 0; }
.cache-table-wrap .data-table tbody tr:hover { background: #f8fafc; }
.cache-count { display: inline-flex; min-width: 34px; justify-content: center; padding: 3px 11px; border-radius: 999px; background: #f1f5f9; color: #475569; font-weight: 700; font-size: 13px; }
.cache-total-badge { font-size: 13px; font-weight: 600; color: #475569; margin: 14px 0 0; }
.cache-sub-title { font-size: 13.5px; font-weight: 700; color: #0f172a; margin: 0 0 4px; }
.cache-sub-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cache-divider { height: 1px; background: #eef2f7; margin: 22px 0; }
.cache-token-row td { background: #fafbff; }
.cache-token-row td.t-code { font-weight: 700; color: #0f172a; }

/* ---------- Ayar satırı (Kuyruk Ayarları vb.) ---------- */
.set-wrap { max-width: 760px; }
.set-rows { display: flex; flex-direction: column; }
.set-row { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid #f1f5f9; }
.set-row:first-child { padding-top: 4px; }
.set-row:last-child { border-bottom: none; padding-bottom: 4px; }
.set-row-ico { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 40px; display: flex; align-items: center; justify-content: center; }
.set-row-ico svg { width: 20px; height: 20px; stroke-width: 2; }
.set-row-main { flex: 1; min-width: 0; }
.set-row-title { font-size: 14px; font-weight: 600; color: #0f172a; margin: 0 0 3px; }
.set-row-hint { font-size: 12.5px; color: #94a3b8; margin: 0; line-height: 1.5; }
.set-row-field { flex: 0 0 auto; }
.set-input {
  width: 130px; padding: 11px 14px; border-radius: 10px; border: 1.5px solid #e2e8f0;
  font-size: 15px; font-weight: 600; text-align: center; outline: none; color: #0f172a;
  background: #fff; font-family: var(--font); transition: border-color .15s ease, box-shadow .15s ease;
}
.set-input:hover { border-color: #cbd5e1; }
.set-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.set-foot { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #f1f5f9; }
@media (max-width: 560px) {
  .set-row { flex-wrap: wrap; }
  .set-row-field { width: 100%; padding-left: 56px; }
  .set-input { width: 100%; text-align: left; }
}

.toolbar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.select-input { padding: 10px 14px; border-radius: 8px; border: 1.5px solid #e2e8f0; font-size: 14px; outline: none; color: #0f172a; background: #fff; font-family: var(--font); }

/* Ortak: düzenlenebilir satır-grid (uyarı kodları, ekran tanımları vb.) */
.edit-card { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid #f1f5f9; }
.edit-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.edit-table th { text-align: left; padding: 8px 10px; color: #475569; font-weight: 700; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
.edit-tr { border-bottom: 1px solid #f1f5f9; }
.edit-tr.dirty { background: #fffbeb; }
.edit-td { padding: 6px 8px; vertical-align: middle; }
.edit-td-action { padding: 6px 8px; text-align: right; white-space: nowrap; }
.cell-input { width: 100%; padding: 8px 10px; border-radius: 6px; border: 1.5px solid #e2e8f0; font-size: 13px; outline: none; color: #0f172a; background: #fff; box-sizing: border-box; font-family: var(--font); }
.cell-input:disabled { background: #f1f5f9; color: #64748b; cursor: not-allowed; }
.btn-save-row { padding: 7px 12px; border-radius: 6px; border: none; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; margin-right: 8px; }
.btn-save-row:disabled { background: #cbd5e1; cursor: default; }
.btn-del-row { background: none; border: none; color: #ef4444; font-size: 15px; font-weight: 700; cursor: pointer; }
.filter-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid #f1f5f9; margin-bottom: 20px; }

/* Ortak: segmented filtre, arama, tür-toggle, modal form alanları, isim/badge (Müşteriler/Hesaplar) */
.toolbar-split { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.seg { display: inline-flex; background: #fff; border-radius: 10px; border: 1px solid var(--border); padding: 4px; gap: 4px; }
.seg-btn { padding: 7px 16px; border-radius: 7px; border: none; background: none; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.seg-btn.active { background: var(--primary-light); color: var(--primary-dark); }
.search-input { padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--border); font-size: 14px; outline: none; color: var(--text); background: #fff; min-width: 240px; font-family: var(--font); }
.type-toggle { display: flex; gap: 10px; margin-bottom: 4px; }
.type-btn { flex: 1; padding: 11px; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; color: var(--text-muted); font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.type-btn.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.form-section { font-size: 13px; font-weight: 700; color: #0f172a; margin-top: 6px; padding-bottom: 4px; border-bottom: 2px solid var(--primary-light); }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; min-width: 140px; }
.form-field.full { flex: 1 1 100%; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.form-input { padding: 10px 12px; border-radius: 9px; border: 1.5px solid var(--border); font-size: 14px; outline: none; color: var(--text); background: #fff; box-sizing: border-box; font-family: var(--font); }
.form-textarea { padding: 10px 12px; border-radius: 9px; border: 1.5px solid var(--border); font-size: 14px; outline: none; color: var(--text); background: #fff; box-sizing: border-box; resize: vertical; font-family: var(--font); }
.name-main { font-size: 14px; font-weight: 600; color: #0f172a; }
.name-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.badge-ind { background: var(--info-light); color: var(--primary-dark); }
.badge-corp { background: var(--warning-light); color: #b45309; }
.modal-body-form { display: flex; flex-direction: column; gap: 14px; }

/* Talimatlı İşlemler bantları */
.ti-banner { margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.ti-banner-ok { background: #E6FFFA; color: #059669; border: 1px solid rgba(19,222,185,.5); }
.ti-banner-fail { background: #fee2e2; color: #991b1b; border: 1px solid #f87171; }
.ti-sahip-ok { margin-top: 10px; background: #EBF3FE; color: #1e40af; padding: 10px 14px; border-radius: 8px; font-size: 14px; border: 1px solid rgba(93,135,255,.2); }
.ti-err { margin-top: 10px; background: #FDEDE8; color: #c0392b; padding: 10px 14px; border-radius: 8px; font-size: 13px; border: 1px solid rgba(250,137,107,.33); }

/* Fatura Ödeme İptal: iptal butonu + sonuç popup */
.iptal-btn { padding: 8px 14px; border-radius: 7px; border: none; background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.iptal-btn:disabled { opacity: .6; cursor: not-allowed; }
.popup-modal { background: #fff; border-radius: 14px; padding: 28px 32px; width: 420px; max-width: 90vw; box-shadow: 0 20px 50px rgba(0,0,0,.25); text-align: center; }
.popup-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: #fff; }
.popup-icon-ok { background: linear-gradient(135deg, #10b981, #059669); }
.popup-icon-fail { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.popup-title { font-size: 18px; font-weight: 700; color: #0f172a; margin: 0 0 8px; }
.popup-msg { font-size: 14px; color: #475569; margin: 0 0 20px; line-height: 1.5; word-break: break-word; }
.popup-btn { padding: 10px 28px; border-radius: 8px; border: none; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }

/* Mutabakat */
.filter-flex { background: #fff; border-radius: 12px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid #f1f5f9; margin-bottom: 16px; display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.check-inline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #334155; padding-bottom: 9px; cursor: pointer; }
.btn-refresh { padding: 10px 16px; border-radius: 8px; border: 1.5px solid #e2e8f0; background: #fff; color: #334155; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.btn-act { padding: 6px 12px; border-radius: 6px; border: 1.5px solid #e2e8f0; background: #fff; color: #334155; font-size: 12px; font-weight: 600; cursor: pointer; margin-right: 8px; font-family: var(--font); }
.btn-act-primary { padding: 6px 12px; border-radius: 6px; border: none; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.mu-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.mu-badge-ok { background: #ecfdf5; color: #059669; }
.mu-badge-fail { background: #fef2f2; color: #dc2626; }
.mu-badge-wait { background: #f1f5f9; color: #64748b; }
.mu-badge-manuel { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #fef3c7; color: #b45309; }
.mu-badge-oto { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #eff6ff; color: #1d4ed8; }
.detail-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.detail-table th { text-align: left; padding: 8px 10px; color: #475569; font-weight: 700; border-bottom: 2px solid #e2e8f0; }
.detail-table th.r, .detail-table td.r { text-align: right; }
.detail-table td { padding: 8px 10px; color: #334155; border-bottom: 1px solid #f1f5f9; }
.detail-table td.val { color: #0f172a; font-weight: 600; }
.detail-table td.dash { color: #cbd5e1; }
.fark-list { margin: 0; padding-left: 18px; font-size: 13px; color: #dc2626; display: flex; flex-direction: column; gap: 4px; }
.field-textarea { width: 100%; min-height: 70px; padding: 10px 12px; border-radius: 8px; border: 1.5px solid #e2e8f0; font-size: 14px; outline: none; color: #0f172a; box-sizing: border-box; resize: vertical; font-family: var(--font); }

/* İş Çalıştırma */
.jr-selector { display: flex; gap: 16px; background: #fff; padding: 18px 22px; border-radius: 12px; border: 1px solid #f1f5f9; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 16px; flex-wrap: wrap; }
.jr-card { background: #fff; border-radius: 12px; border: 1px solid #f1f5f9; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 16px; overflow: hidden; }
.jr-card-head { font-size: 15px; font-weight: 700; color: #0f172a; }
.jr-card-head-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #f1f5f9; }
.jr-def-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.jr-check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #334155; font-weight: 500; }
.jr-placeholder { padding: 40px; text-align: center; color: #94a3b8; font-size: 14px; background: #f8fafc; border-radius: 12px; border: 1px dashed #e2e8f0; }
.jr-btn-soft { padding: 8px 16px; border-radius: 8px; border: 1.5px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.jr-info { background: #ecfdf5; color: #059669; padding: 9px 14px; border-radius: 8px; font-size: 13px; border: 1px solid #a7f3d0; }
.jr-cron { display: inline-block; margin-top: 3px; background: #f1f5f9; color: #475569; padding: 1px 6px; border-radius: 4px; font-family: monospace; font-size: 11px; }
.jr-day-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.jr-day-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; border: 1.5px solid #e2e8f0; background: #fff; font-size: 13px; color: #475569; cursor: pointer; font-weight: 500; }
.jr-day-chip.on { border-color: #3b82f6; background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.jr-time-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.jr-time-group { display: flex; flex-direction: column; gap: 6px; min-width: 88px; }
.jr-colon { font-size: 18px; font-weight: 700; color: #94a3b8; padding-bottom: 10px; }
.jr-cron-preview { font-size: 13px; color: #475569; background: #f8fafc; padding: 10px 14px; border-radius: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.jr-modal { background: #fff; border-radius: 14px; padding: 24px; width: 560px; max-width: 92vw; max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }

/* Kuyruk İzleme */
.ki-log-btn { padding: 6px 12px; border-radius: 6px; border: 1.5px solid #e2e8f0; background: #fff; color: #334155; font-size: 12px; font-weight: 600; cursor: pointer; margin-right: 8px; font-family: var(--font); }
.ki-edit-btn { padding: 6px 12px; border-radius: 6px; border: 1.5px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 600; cursor: pointer; margin-right: 8px; font-family: var(--font); }
.ki-requeue-btn { padding: 6px 12px; border-radius: 6px; border: none; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; margin-right: 8px; font-family: var(--font); }
.ki-success-btn { padding: 6px 12px; border-radius: 6px; border: none; background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; margin-right: 8px; font-family: var(--font); }
.ki-cancelop-btn { padding: 6px 12px; border-radius: 6px; border: none; background: linear-gradient(135deg, #f97316, #c2410c); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.ki-st-ok { background: #ecfdf5; color: #059669; }
.ki-st-fail { background: #fef2f2; color: #dc2626; }
.ki-st-send { background: #eff6ff; color: #1d4ed8; }
.ki-st-iptal { background: #fff7ed; color: #c2410c; }
.ki-st-wait { background: #f1f5f9; color: #64748b; }
.ki-pre { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 8px; font-size: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; margin: 0; }
.ki-textarea { width: 100%; min-height: 220px; padding: 12px; border-radius: 8px; border: 1.5px solid #e2e8f0; font-size: 13px; font-family: monospace; outline: none; color: #0f172a; box-sizing: border-box; resize: vertical; }
.confirm-text { font-size: 14px; color: #334155; margin: 0 0 10px; line-height: 1.5; }
.btn-green { background: linear-gradient(135deg, #10b981, #059669) !important; }
.btn-orange { background: linear-gradient(135deg, #f97316, #c2410c) !important; }

/* ============================================================
   Faturalı İşlemler — React FaturaliIslemlerPage.tsx styles birebir.
   ============================================================ */
.fi-card { background: #fff; border-radius: 12px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid #f1f5f9; margin-bottom: 12px; }
.fi-card-title { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0 0 12px; }
.fi-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fi-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.fi-req { color: #ef4444; }
.fi-hint { font-size: 11px; font-weight: 400; color: #94a3b8; }
.fi-warn { margin-top: 12px; background: #fffbeb; color: #b45309; padding: 10px 14px; border-radius: 8px; font-size: 13px; border: 1px solid #fde68a; }
.fi-error { margin-top: 12px; background: #fef2f2; color: #dc2626; padding: 10px 14px; border-radius: 8px; font-size: 13px; border: 1px solid #fecaca; }
.fi-vallist { margin: 0 0 14px; padding: 10px 14px 10px 32px; background: #fffbeb; color: #b45309; border-radius: 8px; font-size: 13px; border: 1px solid #fde68a; }
.fi-empty { color: #94a3b8; font-size: 14px; padding: 20px; text-align: center; background: #f8fafc; border-radius: 8px; }
.fi-link { color: #3b82f6; font-weight: 600; }
.fi-hesapbox { margin-top: 14px; padding-top: 14px; border-top: 1px solid #f1f5f9; }
.fi-hesapfields { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
/* Ödeme yöntemi (koşullu form) */
.fi-odemebox { margin-top: 14px; padding-top: 14px; border-top: 1px solid #f1f5f9; }
.fi-odeme-detay-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; margin-top: 8px; }
.fi-kasa-baslik { font-weight: 700; color: #334155; font-size: 13px; margin: 12px 0 6px; }
.fi-kasa-ok { color: #16a34a; font-weight: 600; margin-top: 8px; }
.fi-kasa-err { color: #dc2626; font-weight: 600; margin-top: 8px; }
.fi-kasa-warn { color: #b45309; font-weight: 600; margin-top: 8px; }
/* Referans grid — kolon içi Taşı */
.fi-tasi-btn { font-size: 11px; margin-left: 6px; padding: 1px 6px; }
.fi-tasi-val { color: #0f172a; }
.fi-lookup-loading { font-size: 13px; color: #64748b; font-weight: 600; padding-bottom: 10px; }
.fi-lookup-ok { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 14px; background: #eff6ff; color: #1e40af; padding: 12px 16px; border-radius: 10px; font-size: 14px; border: 1px solid #bfdbfe; }
.fi-lookup-bakiye { font-weight: 700; }
.fi-bakiye-warn { margin-top: 12px; background: #fee2e2; color: #991b1b; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 700; border: 1px solid #f87171; }
.fi-lookup-none { margin-top: 14px; background: #fffbeb; color: #b45309; padding: 10px 14px; border-radius: 8px; font-size: 13px; border: 1px solid #fde68a; }
.fi-tablewrap { overflow-x: auto; }
.fi-pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.fi-pager-btn { padding: 7px 14px; border-radius: 8px; border: 1.5px solid #e2e8f0; background: #fff; color: #334155; font-size: 13px; font-weight: 600; cursor: pointer; }
.fi-pager-btn:disabled { opacity: .5; cursor: not-allowed; }
.fi-pager-info { font-size: 13px; color: #64748b; font-weight: 600; }
.fi-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fi-th { text-align: left; padding: 10px 12px; color: #475569; font-weight: 700; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
.fi-tr { border-bottom: 1px solid #f1f5f9; }
.fi-td { padding: 10px 12px; color: #0f172a; white-space: nowrap; }
.fi-td-right { text-align: right; }
.fi-cell-input { width: 100%; padding: 8px 10px; border-radius: 6px; border: 1.5px solid #e2e8f0; font-size: 13px; outline: none; color: #0f172a; background: #fff; box-sizing: border-box; font-family: var(--font); }
.fi-cell-input:disabled { background: #f1f5f9; color: #64748b; cursor: not-allowed; }
.fi-add-cart-btn { padding: 7px 14px; border-radius: 7px; border: none; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.fi-added-tag { display: inline-block; padding: 6px 12px; border-radius: 7px; background: #ecfdf5; color: #059669; font-size: 12px; font-weight: 700; white-space: nowrap; }
.fi-delete-btn { background: none; border: none; color: #ef4444; font-size: 15px; font-weight: 700; cursor: pointer; }
.fi-src-tag { display: block; font-size: 10px; font-weight: 600; color: #94a3b8; text-transform: none; margin-top: 2px; }
.fi-uyari { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; margin-bottom: 16px; border: 1px solid transparent; }
.fi-uyari-icon { font-size: 16px; font-weight: 700; }
.fi-uyari-ok { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.fi-uyari-fail { background: #fee2e2; color: #991b1b; border-color: #f87171; font-weight: 700; font-size: 15px; }
.fi-uyari-plain { background: #f8fafc; color: #475569; border-color: #e2e8f0; }
.fi-debug { margin-top: 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 14px; }
.fi-debug-summary { font-size: 13px; font-weight: 600; color: #475569; cursor: pointer; }
.fi-mono { font-family: monospace; font-size: 12px; }
.fi-meta-row { display: flex; gap: 20px; font-size: 12px; color: #475569; margin: 12px 0; flex-wrap: wrap; }
.fi-panels { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.fi-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.fi-panel-title { font-size: 12px; font-weight: 700; color: #475569; padding: 8px 12px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.fi-pre { margin: 0; padding: 12px; font-size: 12px; font-family: monospace; color: #0f172a; white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto; }
.fi-queued { margin-top: 16px; background: #eff6ff; color: #1d4ed8; padding: 14px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1.5px solid #bfdbfe; }
.fi-odeme-btn { margin-top: 16px; padding: 11px 22px; border-radius: 9px; border: none; background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.fi-odeme-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Auth config formu (ortak) */
.ac-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ac-label { font-size: 13px; font-weight: 600; color: #334155; display: flex; align-items: center; gap: 8px; }
.ac-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #334155; cursor: pointer; }
.ac-secret { font-size: 10px; font-weight: 600; color: #b45309; background: #fef3c7; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }
.ac-empty { font-size: 13px; color: #94a3b8; font-style: italic; padding: 8px 0; }

/* Maskeli şifre alanları (Kimlik Bilgileri + auth-config göz simgesi) */
.kb-secret, .ac-secret-wrap { position: relative; display: flex; align-items: center; }
.kb-secret .field-input, .ac-secret-wrap .field-input { padding-right: 40px; width: 100%; }
.kb-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 15px; line-height: 1; padding: 4px; opacity: .75; }
.kb-eye:hover { opacity: 1; }
.kb-pass-wrap { display: inline-flex; align-items: center; gap: 8px; }
.kb-pass { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; }
.kb-eye-row { position: static; transform: none; font-size: 14px; }

/* Tanım Taşıma: sekmeler + checkbox listeleri */
.tab-row { display: flex; gap: 6px; border-bottom: 2px solid #e2e8f0; }
.tab-btn { background: none; border: none; padding: 10px 18px; font-size: 14px; font-weight: 600; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-btn.active { color: #1d4ed8; border-bottom-color: #1d4ed8; }
.chk-list { display: flex; flex-direction: column; gap: 6px; border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; }
.chk-list label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #334155; cursor: pointer; }

/* Aranabilir kurum combobox */
.kc-wrap { position: relative; }
.kc-input { width: 100%; box-sizing: border-box; }
.kc-wrap.kc-disabled .kc-input { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.kc-menu { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1.5px solid #e2e8f0; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); max-height: 260px; overflow: auto; }
.kc-opt { padding: 8px 12px; font-size: 14px; color: #334155; cursor: pointer; }
.kc-opt:hover { background: #eff6ff; }
.kc-opt.kc-sel { background: #dbeafe; font-weight: 600; }
.kc-empty, .kc-more { padding: 8px 12px; font-size: 12px; color: #94a3b8; }

/* Entegrasyonlar */
.int-form-card { background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid #f1f5f9; margin-bottom: 24px; }
.int-divider { font-size: 12px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; margin: 8px 0 16px; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; }
.int-map-btn { padding: 6px 12px; border-radius: 6px; border: 1.5px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 600; cursor: pointer; margin-right: 6px; font-family: var(--font); }
.int-edit-btn { padding: 6px 12px; border-radius: 6px; border: 1.5px solid #e2e8f0; background: #fff; color: #334155; font-size: 12px; font-weight: 600; cursor: pointer; margin-right: 6px; font-family: var(--font); }
.int-del-btn { padding: 6px 12px; border-radius: 6px; border: 1.5px solid #fecaca; background: #fef2f2; color: #dc2626; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.int-row { cursor: pointer; }

/* Ekran Tanımları */
.sd-kurum-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.sd-kurum-label { font-size: 13px; font-weight: 600; color: #334155; }
.sd-kurum-select { padding: 9px 14px; border-radius: 8px; border: 1.5px solid #e2e8f0; font-size: 14px; outline: none; color: #0f172a; background: #fff; min-width: 220px; font-family: var(--font); }
.sd-prompt { padding: 40px; text-align: center; color: #94a3b8; font-size: 14px; background: #fff; border-radius: 12px; border: 1px solid #f1f5f9; }
.sd-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.sd-tab { padding: 10px 18px; border-radius: 9px 9px 0 0; border: none; background: none; color: #64748b; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.sd-tab.active { background: #fff; color: #1d4ed8; box-shadow: 0 -1px 3px rgba(0,0,0,.04); }
.sd-panel { background: #fff; border-radius: 0 12px 12px 12px; padding: 24px; border: 1px solid #f1f5f9; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.sd-method-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9; }
.sd-method-label { font-size: 13px; font-weight: 600; color: #334155; margin-right: 4px; }
/* Çipler tek span içinde → yan yana, aralıklı (yapışık değil) diz. */
#sd-methods { display: flex; flex-wrap: wrap; gap: 10px; }
.sd-method-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 7px 14px; border-radius: 8px; border: 1.5px solid #e2e8f0; background: #fff; color: #334155; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.sd-method-chip.active { border-color: #3b82f6; background: #eff6ff; color: #1d4ed8; }
.sd-method-chip-name { font-size: 11px; font-weight: 400; color: #94a3b8; }
.sd-dir-block { margin-bottom: 24px; }
.sd-dir-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sd-dir-title { font-size: 14px; font-weight: 700; color: #0f172a; }
.sd-add-btn { padding: 6px 12px; border-radius: 7px; border: 1.5px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.sd-empty { padding: 14px; text-align: center; color: #94a3b8; font-size: 13px; background: #f8fafc; border-radius: 8px; }
.sd-table { width: 100%; border-collapse: collapse; }
.sd-th { text-align: left; padding: 8px 10px; font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; border-bottom: 1px solid #f1f5f9; }
.sd-th.mid { text-align: center; }
.sd-th.num { width: 70px; }
.sd-td { padding: 6px 10px; border-bottom: 1px solid #f8fafc; }
.sd-td.mid { text-align: center; }
.sd-td.act { text-align: center; }
.sd-input { width: 100%; padding: 7px 10px; border-radius: 6px; border: 1.5px solid #e2e8f0; font-size: 13px; outline: none; color: #0f172a; background: #fff; box-sizing: border-box; font-family: var(--font); }
.sd-input.locked { background: #f8fafc; color: #64748b; font-weight: 600; }
.sd-num-input { width: 64px; padding: 7px 8px; border-radius: 6px; border: 1.5px solid #e2e8f0; font-size: 13px; outline: none; color: #0f172a; background: #fff; box-sizing: border-box; font-family: var(--font); }
.sd-source-wrap { display: flex; flex-direction: column; gap: 6px; }
.sd-dash { color: #cbd5e1; }
.sd-std-tag { display: inline-block; padding: 2px 7px; border-radius: 5px; background: #eff6ff; color: #1d4ed8; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.sd-del { background: none; border: none; color: #ef4444; font-size: 14px; cursor: pointer; }
.sd-move-wrap { display: inline-flex; gap: 4px; justify-content: center; }
.sd-move-btn { width: 24px; height: 24px; padding: 0; border-radius: 6px; border: 1.5px solid #e2e8f0; background: #fff; color: #475569; font-size: 11px; line-height: 1; cursor: pointer; }
.sd-move-btn:disabled { color: #cbd5e1; cursor: not-allowed; background: #f8fafc; }
.sd-save-btn { padding: 10px 22px; border-radius: 8px; border: none; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.sd-flags { display: flex; gap: 24px; flex-wrap: wrap; padding: 12px 16px; background: #f8fafc; border-radius: 8px; margin-bottom: 18px; border: 1px solid #e2e8f0; }
.sd-flag-check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #334155; cursor: pointer; }

/* Mapping Wizard */
.mw-back { background: none; border: none; color: #3b82f6; font-size: 14px; font-weight: 600; cursor: pointer; padding: 0 0 16px; font-family: var(--font); }
.mw-head-card { background: #fff; border-radius: 12px; padding: 24px 28px; margin-bottom: 20px; border: 1px solid #f1f5f9; box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.mw-title { font-size: 22px; font-weight: 700; color: #0f172a; margin: 0 0 8px; }
.mw-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mw-url { font-size: 13px; color: #64748b; }
.mw-counts { display: flex; gap: 24px; }
.mw-count-box { text-align: center; }
.mw-count-num { font-size: 22px; font-weight: 700; color: #0f172a; }
.mw-count-label { font-size: 12px; color: #94a3b8; }

/* Servis Methodları sekmesi */
.sm-switch { display: flex; gap: 8px; margin-bottom: 20px; }
.sm-switch-btn { padding: 9px 16px; border-radius: 8px; border: 1.5px solid #e2e8f0; background: #fff; color: #64748b; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.sm-switch-btn.active { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.sm-form-card { background: #f8fafc; border-radius: 10px; padding: 20px; border: 1px solid #e2e8f0; margin-bottom: 24px; }
.sm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sm-row3 { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 16px; }
.sm-textarea { padding: 10px 14px; border-radius: 8px; border: 1.5px solid #e2e8f0; font-size: 13px; outline: none; color: #0f172a; background: #fff; min-height: 90px; font-family: monospace; resize: vertical; box-sizing: border-box; width: 100%; }
.sm-add-btn { padding: 10px 18px; border-radius: 8px; border: none; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.sm-list-title { font-size: 15px; font-weight: 700; color: #0f172a; margin: 8px 0 12px; }
.sm-list { display: flex; flex-direction: column; gap: 8px; }
.sm-method-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; }
.sm-method-info { display: flex; align-items: center; gap: 12px; }
.sm-http-badge { font-size: 11px; font-weight: 700; color: #1d4ed8; background: #eff6ff; padding: 4px 8px; border-radius: 6px; min-width: 48px; text-align: center; }
.sm-method-name { font-size: 14px; font-weight: 600; color: #0f172a; display: flex; align-items: center; gap: 8px; }
.sm-token-badge { font-size: 10px; font-weight: 600; color: #b45309; background: #fef3c7; padding: 2px 7px; border-radius: 999px; }
.sm-method-meta { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.sm-row-delete { background: none; border: none; color: #ef4444; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.sm-empty { color: #94a3b8; font-size: 14px; padding: 24px; text-align: center; background: #f8fafc; border-radius: 8px; }

/* Method & Alan Eşleme sekmesi */
.mp-hint { font-size: 13px; color: #64748b; margin-bottom: 16px; line-height: 1.6; }
.mp-code { background: #f1f5f9; color: #0f172a; padding: 1px 6px; border-radius: 4px; font-family: monospace; font-size: 12px; }
.mp-list { display: flex; flex-direction: column; gap: 10px; }
.mp-pm-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.mp-pm-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; flex-wrap: wrap; gap: 10px; }
.mp-pm-left { display: flex; align-items: center; gap: 12px; }
.mp-status-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.mp-pm-name { font-size: 14px; font-weight: 600; color: #0f172a; }
.mp-pm-code { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.mp-pm-desc { font-size: 12px; color: #64748b; margin-top: 4px; max-width: 640px; line-height: 1.45; }
.mp-pm-right { display: flex; align-items: center; gap: 10px; }
.mp-service-select { padding: 8px 12px; border-radius: 8px; border: 1.5px solid #e2e8f0; font-size: 13px; color: #0f172a; background: #fff; min-width: 200px; font-family: var(--font); }
.mp-map-btn { padding: 8px 14px; border-radius: 8px; border: 1.5px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.mp-map-btn:disabled { opacity: .5; cursor: not-allowed; }
.mp-editor { background: #f8fafc; border-top: 1px solid #e2e8f0; padding: 18px; }
.mp-dir-block { margin-bottom: 18px; }
.mp-dir-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mp-dir-title { font-size: 13px; font-weight: 700; color: #334155; }
.mp-add-row-btn { padding: 5px 12px; border-radius: 6px; border: 1px solid #cbd5e1; background: #fff; color: #475569; font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.mp-no-rows { font-size: 12px; color: #94a3b8; padding: 10px; background: #fff; border-radius: 6px; text-align: center; }
.mp-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; }
.mp-th { text-align: left; font-size: 11px; font-weight: 600; color: #94a3b8; padding: 8px 10px; text-transform: uppercase; border-bottom: 1px solid #f1f5f9; }
.mp-th-sg { text-align: center; font-size: 11px; font-weight: 600; color: #94a3b8; padding: 8px 6px; text-transform: uppercase; border-bottom: 1px solid #f1f5f9; width: 92px; }
.mp-td-sg { padding: 6px; border-bottom: 1px solid #f8fafc; text-align: center; }
.mp-td { padding: 6px 10px; border-bottom: 1px solid #f8fafc; }
.mp-td-arrow { text-align: center; color: #cbd5e1; font-weight: 700; }
.mp-td-action { text-align: center; }
.mp-cell-input { width: 100%; padding: 7px 10px; border-radius: 6px; border: 1.5px solid #e2e8f0; font-size: 13px; outline: none; color: #0f172a; background: #fff; box-sizing: border-box; font-family: var(--font); }
.mp-locked-input { background: #f1f5f9; color: #64748b; font-weight: 600; cursor: not-allowed; }
.mp-combo { display: flex; gap: 4px; align-items: center; }
.mp-combo-pick { flex: 0 0 38px; padding: 7px 4px; border-radius: 6px; border: 1.5px solid #e2e8f0; font-size: 13px; color: #475569; background: #f8fafc; cursor: pointer; }
.mp-param-box { display: flex; flex-direction: column; gap: 5px; min-width: 220px; }
.mp-preset-select { background: #fffbeb; border-color: #fde68a; color: #92400e; font-weight: 600; }
.mp-regex-box { display: flex; flex-direction: column; gap: 5px; min-width: 220px; }
.mp-regex-row { display: flex; gap: 5px; }
.mp-regex-check { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #64748b; }
.mp-concat-hint { font-size: 11px; color: #94a3b8; line-height: 1.4; }
.mp-row-delete { background: none; border: none; color: #ef4444; font-size: 14px; cursor: pointer; }
.mp-save-btn { padding: 10px 20px; border-radius: 8px; border: none; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; margin-top: 4px; font-family: var(--font); }
.mp-dash { color: #cbd5e1; }

/* Mutabakat — kalem bazlı kıyas (Detay) */
.mu-ic { margin-top: 18px; border-top: 1px solid #e2e8f0; padding-top: 14px; }
.mu-ic-head { font-size: 14px; font-weight: 700; color: #0f172a; margin: 0 0 8px; }
.mu-ic-summary { font-size: 12.5px; color: #475569; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.mu-ic-block { margin-bottom: 12px; }
.mu-ic-title { font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.mu-ic-only-k .mu-ic-title { color: #b45309; }
.mu-ic-only-s .mu-ic-title { color: #0369a1; }
.mu-ic-diff .mu-ic-title { color: #dc2626; }
.mu-ic-ok { color: #059669; font-size: 13px; padding: 8px 0; font-weight: 600; }
.mu-ic-note { color: #64748b; font-size: 12.5px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 10px; margin-top: 14px; }

/* Mutabakat — Kuruma Gönder zincir sonucu (tür kartı) */
.mu-tur-card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; margin-top: 12px; background: #fff; }
.mu-tur-head { font-size: 13px; font-weight: 700; color: #0f172a; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mu-chain-line { font-size: 12.5px; color: #334155; padding: 3px 0; }
.mu-code { font-family: monospace; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 5px; padding: 1px 6px; font-size: 12px; color: #0f172a; }

/* Kalem kıyası — kurumdan gelen + sistemde bulunan yan yana */
.mu-ic-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .mu-ic-cols { grid-template-columns: 1fr; } }
.modal.mu-compare-wide { max-width: 900px; }

/* ScreenDefinitions — select (combobox) seçenekler editörü */
.sd-opts-tr > .sd-opts-cell { background: #f8fafc; padding: 0; }
.sd-opts-box { padding: 10px 12px 12px; border-left: 3px solid #3b82f6; margin: 2px 0 6px; }
.sd-opts-title { font-size: 11.5px; color: #64748b; margin-bottom: 8px; }
.sd-opts-table { width: 100%; border-collapse: collapse; }
.sd-opts-table th { text-align: left; font-size: 11px; color: #94a3b8; font-weight: 600; padding: 2px 6px; }
.sd-opts-table td { padding: 2px 6px; }
.sd-opts-table td.act { width: 34px; text-align: center; }
.sd-opts-add { margin-top: 8px; padding: 5px 12px; border: 1px dashed #93c5fd; background: #eff6ff; color: #1d4ed8; border-radius: 7px; font-size: 12px; cursor: pointer; font-family: var(--font); }
.sd-opts-service { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #334155; margin-bottom: 8px; }
.sd-combo-res { font-size: 12px; margin-top: 4px; }
.sd-combo-ok { color: #334155; }
.sd-combo-item { display: inline-block; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px; padding: 2px 8px; margin: 2px 4px 2px 0; }
.sd-combo-item small { color: #64748b; }
.sd-combo-detay { margin-top: 6px; }
.sd-combo-detay summary { cursor: pointer; color: #1d4ed8; font-weight: 600; font-size: 12px; }
.sd-combo-kv { font-size: 11px; color: #64748b; margin: 4px 0; word-break: break-all; }
.sd-combo-lbl { font-size: 11px; font-weight: 700; color: #475569; margin-top: 6px; }
.sd-combo-pre { margin: 2px 0 0; padding: 8px 10px; background: #0f172a; color: #e2e8f0; border-radius: 6px; font-size: 11px; max-height: 180px; overflow: auto; white-space: pre-wrap; word-break: break-word; }

/* ScreenDefinitions — sıralı ödeme hücresi */
.sd-so-wrap { display: flex; align-items: center; gap: 6px; justify-content: center; }
.sd-so-yon { width: auto; min-width: 84px; padding: 2px 4px; font-size: 12px; }

/* ScreenDefinitions — kanal bazlı gizleme hücresi */
.sd-kanal-wrap { display: flex; flex-wrap: wrap; gap: 3px 10px; }
.sd-kanal-chk { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: #475569; white-space: nowrap; }
.sd-kanal-chk input { margin: 0; }

/* ================= Mobil / responsive ================= */
/* Hamburger + topbar sol grup (masaüstünde hamburger gizli) */
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-left .page-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 40px; height: 40px;
  flex: 0 0 40px; border: none; background: none; color: var(--text); border-radius: 10px;
  cursor: pointer; margin-left: -6px;
}
.nav-toggle:hover { background: var(--bg); }
/* Üst bar kaldırıldı: mobilde menüyü açan yüzen buton (masaüstünde gizli, .nav-toggle display:none) */
.nav-toggle-float {
  position: fixed; top: 12px; left: 12px; z-index: 65; width: 40px; height: 40px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15,23,42,.14); margin-left: 0;
}

/* Geniş tabloları saran yatay kaydırma kutusu (JS ekler) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

/* Mobilde kenardan açılan menü için perde (masaüstünde gizli) */
.nav-backdrop { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .sidebar {
    position: fixed; top: 0; left: 0; height: 100vh; width: 264px; flex-basis: 264px;
    z-index: 60; transform: translateX(-100%); transition: transform .28s ease;
    box-shadow: 0 12px 40px rgba(15,23,42,.22);
  }
  .sidebar.open { transform: translateX(0); }
  .nav-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(15,23,42,.45);
    opacity: 0; visibility: hidden; transition: opacity .22s ease; z-index: 55;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .topbar { padding: 0 16px; }
  .main { padding: 64px 14px 18px; }
  .table-scroll > .data-table, .table-scroll > .mp-table { min-width: max-content; }
}

@media (max-width: 600px) {
  .user-mail { display: none; }
  .page-title { font-size: 15px; }
  .logout-btn { padding: 7px 12px; }
  .modal-overlay { padding: 12px; }
  .modal-head, .modal-body, .modal-foot, .modal-tabs { padding-left: 16px; padding-right: 16px; }
  .settings-card { padding: 18px 16px; }
}

@media (max-width: 460px) {
  .user-meta { display: none; }
  .login-card { padding: 32px 22px; }
  .main { padding: 14px 10px; }
}

/* ============================================================
   GLOBAL GÖRSEL İYİLEŞTİRME — tüm sayfalar (yalnızca görsel:
   gölge, kenarlık, hover, geçiş). Yapı/genişlik değişmez.
   Dosya sonunda olduğundan aynı seçicilerde son söz burada.
   ============================================================ */

/* Kartlar: tutarlı yumuşak gölge + zarif kenarlık + daha yuvarlak */
.card, .settings-card, .sub-panel {
  border-color: #eef2f7;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05);
}
.section-card { border-color: #eef2f7; border-radius: 12px; background: #fbfcfe; }

/* Butonlar: geçiş + hover + primary derinliği */
.btn { transition: filter .15s ease, transform .06s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary { box-shadow: 0 6px 16px rgba(59, 130, 246, .26); }
.btn:hover:not(:disabled) { filter: brightness(1.05); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-ghost { transition: border-color .15s ease, background .15s ease, color .15s ease; }
.btn-ghost:hover { border-color: #cbd5e1; background: #f8fafc; color: #334155; }
.btn-link:hover, .btn-del-link:hover { text-decoration: underline; }
.btn-refresh, .btn-act { transition: border-color .15s ease, background .15s ease, color .15s ease; }
.btn-refresh:hover, .btn-act:hover { border-color: #cbd5e1; background: #f8fafc; color: #0f172a; }
.btn-act-primary, .btn-save-row { transition: filter .15s ease, transform .06s ease; }
.btn-act-primary:hover, .btn-save-row:hover:not(:disabled) { filter: brightness(1.06); }
.btn-act-primary:active, .btn-save-row:active { transform: translateY(1px); }

/* Girdi / seçim / metin alanı: geçiş + hover kenarlık + tutarlı odak */
.field-input, .select-input, .field-textarea {
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field-input:hover, .select-input:hover, .field-textarea:hover { border-color: #cbd5e1; }
.select-input:focus, .field-textarea:focus {
  border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

/* Veri tablosu: satır hover + başlık harf aralığı + son satır çizgisiz */
.data-table th { letter-spacing: .4px; }
.data-table tbody tr { transition: background .12s ease; }
.data-table tbody tr:hover { background: #f8fafc; }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Dashboard: tıklanabilir kartlarda hafif kalkış, diğerlerinde yumuşak gölge */
.cat, .link-card { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.cat:hover, .link-card:hover {
  transform: translateY(-2px); border-color: #dbe3ec;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
}
.hero, .mini { transition: box-shadow .16s ease, transform .16s ease; }
.hero:hover, .mini:hover { box-shadow: 0 8px 22px rgba(15, 23, 42, .08); }

/* Modal + katlanır panel başlığı */
.modal { border-radius: 16px; }
.modal-tab { transition: color .15s ease, border-color .15s ease; }
.modal-close { transition: color .15s ease; }
.modal-close:hover { color: #ef4444; }
.sub-toggle { transition: background .15s ease; }
.sub-toggle:hover { background: #f8fafc; }

/* Rozet/chip küçük dokunuş */
.badge { letter-spacing: .2px; }

/* ============================================================
   SOL MENÜ (sidebar) RAFİNASYONU — yalnızca görsel.
   Markup/sınıflar aynı (JS akordeon bağımlılıkları korunur).
   ============================================================ */
.sidebar {
  padding: 18px 14px; gap: 2px;
  border-right: 1px solid #eef2f7;
  scrollbar-width: thin; scrollbar-color: #e5eaf1 transparent;
}
.sidebar::-webkit-scrollbar { width: 7px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #e5eaf1; border-radius: 999px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* Marka: alt ayraç + biraz daha belirgin logo */
.brand { padding: 6px 8px 16px; margin-bottom: 10px; border-bottom: 1px solid #f1f5f9; transition: opacity .15s ease; }
.brand:hover { opacity: .85; }
.nav-logo { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 8px 18px rgba(93, 135, 255, .30); }
.nav-title { font-size: 15.5px; letter-spacing: -.2px; }

/* Grup başlığı → zarif, büyük harfli bölüm etiketi (yine de akordeon) */
.nav-group { margin-top: 6px; }
.nav-group-header {
  padding: 8px 12px 8px 10px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px; color: #9aa7b8; border-radius: 8px;
}
.nav-group-header:hover { background: #f6f8fb; color: #64748b; }
.nav-group-ico { width: 16px; height: 16px; flex: 0 0 16px; opacity: .9; }
.nav-chevron { opacity: .55; }
.nav-group.open > .nav-group-header { color: var(--primary); }
.nav-group.open > .nav-group-header .nav-group-ico { color: var(--primary); }

/* Menü linkleri: yumuşak geçiş + hover kaydırma + belirgin aktif parıltı */
.nav-link {
  padding: 9px 12px; border-radius: 10px; font-size: 13.5px;
  transition: background .16s ease, color .16s ease, transform .12s ease, box-shadow .16s ease;
}
.nav-link:hover { transform: translateX(2px); }
.nav-link.active { box-shadow: 0 8px 20px rgba(93, 135, 255, .38); }
.nav-link.active:hover { transform: translateX(2px); filter: brightness(1.03); }

/* Grup gövdesi bağlantı çizgisi + iç link boyutu */
.nav-group-items { margin-left: 10px; padding-left: 14px; border-left: 1.5px solid #eef2f7; }
.nav-group-items .nav-link { font-size: 13px; padding: 8px 12px; }

/* Alt: Çıkış ayracı */
.nav-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f5f9; }

/* ============================================================
   FORM / MODAL RAFİNASYONU — tüm formlar (yalnızca görsel).
   Paylaşılan .modal / .field / .section-card / .check-row.
   ============================================================ */

/* Modal çerçevesi: daha derin gölge + rahat iç boşluk */
.modal { box-shadow: 0 24px 60px rgba(15, 23, 42, .28); }
.modal-head { padding: 20px 24px; }
.modal-title { font-size: 18px; }
.modal-body { padding: 22px 24px; }
.modal-foot { padding: 16px 24px; }

/* Sekmeler: yumuşak renk + gradient alt gösterge */
.modal-tabs { padding: 0 24px; }
.modal-tab {
  padding: 13px 16px; font-size: 13.5px; color: #94a3b8;
  position: relative; border-bottom: 2px solid transparent; transition: color .15s ease;
}
.modal-tab:hover { color: #475569; }
.modal-tab.active { color: #1d4ed8; border-bottom-color: transparent; }
.modal-tab.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2.5px;
  border-radius: 3px; background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

/* Alanlar: rahat dikey ritim + biraz daha yuvarlak, ferah girdi */
.field { gap: 7px; }
.grid-2 { gap: 16px 18px; }
.field-label { letter-spacing: .1px; }
.field-input, .select-input { padding: 11px 14px; border-radius: 9px; }
.field-textarea { border-radius: 9px; }

/* Onay kutuları: markaya uygun renk + boyut + hover */
.check-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; flex: 0 0 auto; }
.check-row { transition: color .12s ease; }
.check-row:hover:not(.is-disabled) { color: #0f172a; }

/* Form içi bölüm kartı: biraz daha ferah */
.section-card { padding: 16px 18px; }
.section-title { font-size: 13.5px; }
.section-hint { line-height: 1.5; }

/* ---------- Kullanım Kılavuzu ---------- */
.ico-teal { background: #f0fdfa; color: #0d9488; }
.ico-rose { background: #fff1f2; color: #e11d48; }
.guide-intro {
  background: linear-gradient(135deg, #eef4ff, #f5f3ff);
  border: 1px solid #e6ecfb; border-radius: 16px; padding: 18px 22px; margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 14px;
}
.guide-intro svg { width: 22px; height: 22px; stroke-width: 2; color: var(--primary-dark); flex: 0 0 22px; margin-top: 1px; }
.guide-intro p { margin: 0; font-size: 13.5px; color: #475569; line-height: 1.7; }
.guide-list { display: flex; flex-direction: column; }
.guide-item { display: flex; align-items: flex-start; gap: 13px; padding: 14px 0; border-bottom: 1px solid #f1f5f9; }
.guide-item:first-child { padding-top: 2px; }
.guide-item:last-child { border-bottom: none; padding-bottom: 2px; }
.guide-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: 0 0 9px; }
.guide-item-main { flex: 1; min-width: 0; }
.guide-item-name {
  font-size: 14px; font-weight: 700; color: #0f172a; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; transition: color .12s ease;
}
.guide-item-name:hover { color: var(--primary-dark); }
.guide-arrow { opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; font-weight: 700; }
.guide-item:hover .guide-arrow { opacity: .65; transform: translateX(0); }
.guide-item-desc { font-size: 12.5px; color: #94a3b8; margin: 4px 0 0; line-height: 1.6; }
