/* =========================================================
   Kasa Takip - Ana CSS (Mobil Öncelikli, Masaüstünde Profesyonel)
   ========================================================= */

/* ── RESET & TOKENS ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #4F46E5;
  --primary-2:  #7C3AED;
  --primary-d:  #4338CA;
  --primary-l:  #EEF2FF;
  --primary-rgb: 79,70,229;
  --success:   #059669;
  --success-l: #D1FAE5;
  --danger:    #DC2626;
  --danger-l:  #FEE2E2;
  --warn:      #D97706;
  --warn-l:    #FEF3C7;
  --gray-50:   #F9FAFB;
  --gray-100:  #F3F4F6;
  --gray-200:  #E5E7EB;
  --gray-300:  #D1D5DB;
  --gray-400:  #9CA3AF;
  --gray-500:  #6B7280;
  --gray-600:  #4B5563;
  --gray-700:  #374151;
  --gray-800:  #1F2937;
  --gray-900:  #111827;
  --radius-sm: 8px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-xs: 0 1px 2px rgba(16,24,40,.06);
  --shadow:    0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.05);
  --shadow-md: 0 4px 10px -2px rgba(16,24,40,.1), 0 2px 4px -2px rgba(16,24,40,.06);
  --shadow-lg: 0 12px 24px -6px rgba(16,24,40,.12), 0 4px 6px -2px rgba(16,24,40,.05);
  --shadow-xl: 0 24px 48px -8px rgba(16,24,40,.18), 0 8px 16px -4px rgba(16,24,40,.06);
  --nav-h:     64px;
  --bottom-h:  68px;
  --sidebar-w: 240px;
}

html { font-size: 15px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
#app { display: flex; flex-direction: column; min-height: 100vh; }

/* Top nav */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  box-shadow: var(--shadow-xs);
}
.top-nav .nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 800; color: var(--gray-900);
  letter-spacing: -.2px;
}
.top-nav .nav-logo svg { width: 26px; height: 26px; stroke: var(--primary); flex-shrink: 0; }
.top-nav .nav-right { display: flex; align-items: center; gap: 8px; }
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform .15s;
}
.nav-avatar:hover { transform: scale(1.06); }

/* Main content */
.main-content {
  margin-top: var(--nav-h);
  margin-bottom: var(--bottom-h);
  padding: 16px;
  flex: 1;
  width: 100%;
}

/* Desktop sidebar mobilde gizli (>=768px'de görünür yapılır) */
.desktop-sidebar { display: none; }

/* Bottom nav (mobile) */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: var(--bottom-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 12px rgba(16,24,40,.08);
}
.bottom-nav .nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; padding: 6px 4px; cursor: pointer; border: none; background: transparent;
  color: var(--gray-400); font-size: 10px; font-weight: 600; gap: 3px; transition: .15s;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav .nav-item svg { width: 22px; height: 22px; transition: .15s; }
.bottom-nav .nav-item.active { color: var(--primary); }
.bottom-nav .nav-item.active svg { stroke: var(--primary); transform: translateY(-1px); }

/* ── FAB (Floating Action Button + Açılır Menü) ───────────── */
.fab-wrap { position: fixed; bottom: calc(var(--bottom-h) + 12px); right: 16px; z-index: 200; }

.fab {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb),.4);
  font-size: 26px; font-weight: 300;
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.fab:active { transform: scale(.94); }
.fab svg { transition: transform .2s ease; }
.fab.menu-open svg { transform: rotate(45deg); }

.fab-menu {
  position: absolute; bottom: calc(100% + 14px); right: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.fab-menu-item {
  display: flex; align-items: center; gap: 10px; border: none; cursor: pointer;
  background: #fff; padding: 6px 6px 6px 18px; border-radius: 30px;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(8px) scale(.92); pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.fab-menu.open .fab-menu-item { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.fab-menu.open .fab-menu-item:nth-child(1) { transition-delay: .05s; }
.fab-menu-text { font-size: 13px; font-weight: 700; color: var(--gray-700); white-space: nowrap; }
.fab-menu-ico {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.fab-menu-ico--gelir { background: var(--success-l); color: var(--success); }
.fab-menu-ico--gider { background: var(--danger-l);  color: var(--danger); }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs); border: 1px solid var(--gray-100);
  overflow: hidden;
}
.kasa-list-card { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.kasa-list-card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-200); }
.kasa-list-card:active { transform: scale(.99); }
.card-header {
  padding: 14px 18px; border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-header h2 { font-size: 14.5px; font-weight: 700; color: var(--gray-900); }
.card-body { padding: 18px; }

/* ── SUMMARY CARDS ────────────────────────────────────────── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin-bottom: 20px;
}
.summary-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 16px 50px 16px 16px; box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-100);
  position: relative; transition: transform .15s, box-shadow .15s;
}
.summary-card::before {
  content: ''; position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; background: var(--gray-100);
}
.summary-card.gelir::before { content: '💚'; background: var(--success-l); }
.summary-card.gider::before { content: '🔴'; background: var(--danger-l); }
.summary-card.net::before   { content: '📈'; background: var(--primary-l); }
.summary-card.islem::before { content: '⚡'; background: var(--warn-l); }
.summary-card .s-label { font-size: 11px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .5px; }
.summary-card .s-value { font-size: 21px; font-weight: 800; color: var(--gray-900); margin-top: 6px; line-height: 1.1; }
.summary-card .s-sub   { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

/* ── KASA CARDS ───────────────────────────────────────────── */
.kasa-scroll { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.kasa-card {
  border-radius: var(--radius-lg); padding: 16px;
  color: #fff; cursor: pointer; min-width: 0;
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.kasa-card:active { transform: scale(.97); }
.kasa-card::after {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.kasa-card .k-name { font-size: 13px; font-weight: 600; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kasa-card .k-balance { font-size: 20px; font-weight: 800; margin: 8px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kasa-card .k-currency { font-size: 11px; opacity: .75; }

/* ── İŞLEM LİSTESİ ────────────────────────────────────────── */
.islem-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--gray-100);
  transition: background .15s; border-radius: 8px;
}
.islem-item:last-child { border-bottom: none; }
.islem-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px;
}
.islem-icon.gelir { background: var(--success-l); color: var(--success); }
.islem-icon.gider { background: var(--danger-l);  color: var(--danger); }
.islem-info { flex: 1; min-width: 0; }
.islem-info .i-title { font-size: 14px; font-weight: 600; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.islem-info .i-sub   { font-size: 12px; color: var(--gray-400); margin-top: 1px; }
.islem-amount { text-align: right; flex-shrink: 0; }
.islem-amount .a-val  { font-size: 15px; font-weight: 700; }
.islem-amount .a-val.gelir { color: var(--success); }
.islem-amount .a-val.gider { color: var(--danger); }
.islem-amount .a-date { font-size: 11px; color: var(--gray-400); margin-top: 2px; }

/* ── FORM ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  font-size: 15px; color: var(--gray-900); outline: none;
  background: #FAFAFA; transition: .2s;
  -webkit-appearance: none; appearance: none;
}
.form-control:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.12); }
.form-control.error { border-color: var(--danger); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius); border: none;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: .15s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.3); }
.btn-primary   { background: var(--primary); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover   { background: var(--primary-d); }
.btn-success   { background: var(--success); color: #fff; }
.btn-danger    { background: var(--danger);  color: #fff; }
.btn-outline   { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-l); }
.btn-ghost     { background: var(--gray-100); color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-200); }
.btn-sm        { padding: 7px 14px; font-size: 13px; }
.btn-full      { width: 100%; }
.btn:active    { transform: scale(.97); }
.btn:disabled  { opacity: .55; cursor: not-allowed; transform: none; }

/* Tab buttons */
.tab-group { display: flex; background: var(--gray-100); border-radius: var(--radius); padding: 3px; gap: 2px; margin-bottom: 16px; }
.tab-btn { flex: 1; padding: 8px; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; background: transparent; color: var(--gray-500); transition: .15s; }
.tab-btn.active { background: #fff; color: var(--primary); box-shadow: var(--shadow); }

/* ── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(17,24,39,.55); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-sheet {
  background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 600px;
  max-height: 92vh; overflow-y: auto;
  transform: translateY(100%); transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-handle { width: 40px; height: 4px; background: var(--gray-200); border-radius: 2px; margin: 12px auto 0; }
.modal-header { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--gray-100); }
.modal-header h3 { font-size: 17px; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; background: var(--gray-100); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--gray-500); font-size: 18px; transition: .15s; }
.modal-close:hover { background: var(--gray-200); }
.modal-body { padding: 20px; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--gray-100); display: flex; gap: 10px; }
.modal-footer .btn { flex: 1; padding: 13px; font-size: 15px; }

/* ── EVRAK GÖRÜNTÜLEME MODALI (tam sayfa, kaydırmasız) ──────── */
#islemGoruntuleModal .modal-sheet { height: 92vh; max-height: 92vh; display: flex; flex-direction: column; }
#islemGoruntuleModal .modal-header,
#islemGoruntuleModal .modal-footer { flex: 0 0 auto; }
#islemGoruntuleModal .modal-body {
  flex: 1 1 auto; min-height: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
#islemGoruntuleModal .modal-body img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
}
#islemGoruntuleModal .modal-body .belge-zoom-link {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 0;
}

/* ── İŞLEM TİP ROZETİ ─────────────────────────────────────── */
.islem-tip-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius); margin-bottom: 20px;
  font-size: 14px; font-weight: 700;
  background: var(--success-l); color: var(--success);
}
.islem-tip-badge.gider { background: var(--danger-l); color: var(--danger); }

/* ── İŞLEM TİPİ SEÇİM BUTONLARI ───────────────────────────── */
.tip-choice-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg); background: #fff;
  font-size: 16px; font-weight: 700; color: var(--gray-900);
  cursor: pointer; transition: .15s;
}
.tip-choice-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.tip-choice-gelir:hover { border-color: var(--success); background: var(--success-l); }
.tip-choice-gider:hover { border-color: var(--danger); background: var(--danger-l); }
.tip-choice-icon {
  font-size: 24px; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tip-choice-gelir .tip-choice-icon { background: var(--success-l); }
.tip-choice-gider .tip-choice-icon { background: var(--danger-l); }

/* ── AYARLAR SAYFASI NAVİGASYON ───────────────────────────── */
.settings-nav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.settings-nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 12px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg);
  background: #fff; cursor: pointer; transition: .15s; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.settings-nav-btn:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.settings-nav-btn.active { border-color: var(--primary); background: var(--primary-l); }
.settings-nav-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center; font-size: 22px; transition: .15s;
}
.settings-nav-btn.active .settings-nav-icon { background: var(--primary); }
.settings-nav-label { font-size: 13px; font-weight: 700; color: var(--gray-700); }
.settings-nav-btn.active .settings-nav-label { color: var(--primary); }

.settings-section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.settings-back-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 20px; border: 1.5px solid var(--gray-200);
  background: #fff; color: var(--gray-700); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: .15s; flex-shrink: 0;
}
.settings-back-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-l); }
.settings-section-name { font-size: 15px; font-weight: 700; color: var(--gray-900); }

/* ── LOGO ÖNİZLEME ────────────────────────────────────────── */
.logo-preview-box {
  width: 100%; max-width: 240px; height: 120px; border: 1.5px dashed var(--gray-200);
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--gray-50);
}
.logo-preview-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-preview-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--gray-400); font-size: 28px; }
.logo-preview-empty span:last-child { font-size: 12px; font-weight: 600; }

/* ── BADGE ────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-gelir { background: var(--success-l); color: #065F46; }
.badge-gider { background: var(--danger-l);  color: #991B1B; }
.badge-info  { background: var(--primary-l); color: #3730A3; }
.badge-warn  { background: var(--warn-l);    color: #92400E; }

/* ── TABLE ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--gray-100); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 10px 12px; text-align: left; font-weight: 600; color: var(--gray-500); background: var(--gray-50); border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); color: var(--gray-900); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }

/* ── ALERTS ───────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 13px; margin-bottom: 14px; }
.alert-error   { background: var(--danger-l);  color: #991B1B; }
.alert-success { background: var(--success-l); color: #065F46; }
.alert-warn    { background: var(--warn-l);    color: #92400E; }
.alert-info    { background: var(--primary-l); color: #3730A3; }

/* ── EMPTY STATE ──────────────────────────────────────────── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--gray-400); }
.empty-state svg { width: 48px; height: 48px; margin-bottom: 12px; stroke: var(--gray-300); }
.empty-state p { font-size: 14px; }

/* ── LOADING ──────────────────────────────────────────────── */
.spinner {
  width: 24px; height: 24px; border: 3px solid var(--gray-200);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .7s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── TOAST ────────────────────────────────────────────────── */
#toastContainer { position: fixed; top: 72px; right: 16px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: #1F2937; color: #fff; padding: 12px 18px;
  border-radius: var(--radius); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); max-width: 320px;
  animation: slideIn .25s ease;
  pointer-events: all;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.warn    { background: var(--warn); }
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── CHIP SELECTOR ─────────────────────────────────────────── */
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 14px; border-radius: 20px; border: 1.5px solid var(--gray-200); font-size: 13px; font-weight: 500; cursor: pointer; background: #fff; color: var(--gray-700); transition: .15s; }
.chip.active { border-color: var(--primary); background: var(--primary-l); color: var(--primary); font-weight: 700; }

/* ── COLOR SWATCH ──────────────────────────────────────────── */
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: .15s; }
.color-swatch.selected { border-color: var(--gray-900); transform: scale(1.1); }

/* ── CRON BİLGİ SATIRLARI ─────────────────────────────────── */
.cron-row { margin-bottom: 14px; }
.cron-row:last-child { margin-bottom: 0; }
.cron-row-label { font-size: 13px; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.cron-row-time { font-weight: 500; color: var(--gray-400); }
.cron-code {
  display: flex; align-items: center; gap: 8px;
  background: var(--gray-900); border-radius: var(--radius); padding: 10px 12px;
}
.cron-code code {
  flex: 1; font-family: 'Courier New', monospace; font-size: 12.5px; color: #D1FAE5;
  white-space: nowrap; overflow-x: auto;
}
.cron-code .btn { flex-shrink: 0; }

/* ── FİLTRE CHECKBOX ───────────────────────────────────────── */
.filter-check {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--gray-600);
  cursor: pointer; white-space: nowrap; user-select: none;
}
.filter-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

/* ── FİLTRE (Açılır/Kapanır) ──────────────────────────────── */
.filter-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 18px; background: transparent; border: none; cursor: pointer;
  font-size: 14.5px; font-weight: 700; color: var(--gray-900); transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.filter-toggle:hover { background: var(--gray-50); }
.filter-toggle-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.filter-toggle-title svg { color: var(--gray-400); flex-shrink: 0; }
.filter-toggle-badge {
  font-size: 11px; font-weight: 600; color: var(--gray-500); background: var(--gray-100);
  padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.filter-toggle-chevron { color: var(--gray-400); flex-shrink: 0; transition: transform .2s ease; }
.filter-toggle.open .filter-toggle-chevron { transform: rotate(180deg); }
.filter-toggle.open { border-bottom: 1px solid var(--gray-100); }

.filter-collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.filter-collapse-inner { overflow: hidden; min-height: 0; }
.filter-collapse.open { grid-template-rows: 1fr; }

/* ── SECTION TITLE ─────────────────────────────────────────── */
.section-title { font-size: 13px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }

/* ── EVRAK ÖNİZLEME (işlem ekle/düzenle) ──────────────────── */
.belge-onizleme-satir {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px; border-radius: var(--radius); background: var(--gray-50);
  border: 1px solid var(--gray-200); margin-bottom: 8px; font-size: 13px; color: var(--gray-700);
}
.belge-onizleme-satir .btn-sm { margin-left: auto; padding: 4px 10px; font-size: 12px; }
.belge-onizleme-satir .btn-sm + .btn-sm { margin-left: 0; }

/* ── RESPONSIVE (Tablet/Desktop) ───────────────────────────── */
@media (min-width: 640px) {
  .summary-grid { grid-template-columns: repeat(4, 1fr); }
  .main-content { padding: 24px; max-width: 1200px; margin-left: auto; margin-right: auto; }
}

@media (min-width: 768px) {
  .bottom-nav { display: none; }
  .fab-wrap { bottom: 28px; right: 28px; }
  .main-content { margin-bottom: 0; }

  .desktop-sidebar {
    position: fixed; top: var(--nav-h); left: 0; bottom: 0; width: var(--sidebar-w);
    background: #fff; border-right: 1px solid var(--gray-100);
    padding: 16px 0 0; overflow-y: auto; z-index: 50;
    display: flex; flex-direction: column; gap: 2px;
  }
  .main-content { margin-left: var(--sidebar-w); margin-right: 0; width: calc(100% - var(--sidebar-w)); }

  .sidebar-item {
    display: flex; align-items: center; gap: 10px;
    margin: 1px 10px; padding: 10px 14px; cursor: pointer; border: none; background: transparent;
    color: var(--gray-500); font-size: 14px; font-weight: 500; width: calc(100% - 20px); text-align: left;
    border-radius: var(--radius); transition: .15s;
  }
  .sidebar-item:hover { background: var(--gray-50); color: var(--gray-900); }
  .sidebar-item.active { background: var(--primary); color: #fff; font-weight: 700; box-shadow: var(--shadow-xs); }
  .sidebar-item.active svg { stroke: #fff; }
  .sidebar-item svg { width: 18px; height: 18px; flex-shrink: 0; }

  .sidebar-item-logout { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--gray-100); color: var(--danger); }
  .sidebar-item-logout:hover { background: var(--danger-l); color: var(--danger); }

  /* Kasa kartlarını geniş ekranda grid'e al */
  .kasa-scroll { grid-template-columns: repeat(5, 1fr); }
  .kasa-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

  .card:hover { box-shadow: var(--shadow); }
  .islem-item:hover { background: var(--gray-50); }

  /* Modal'ı ortalanmış dialog olarak göster */
  .modal-overlay { align-items: center; padding: 24px; }
  .modal-sheet { border-radius: var(--radius-xl); max-width: 540px; max-height: 86vh; box-shadow: var(--shadow-xl); transform: translateY(16px) scale(.97); }
  .modal-overlay.open .modal-sheet { transform: translateY(0) scale(1); }
  .modal-handle { display: none; }

  #islemGoruntuleModal .modal-sheet { height: 86vh; max-height: 86vh; }
}

/* ── PRINT ────────────────────────────────────────────────── */
@media print {
  .top-nav, .bottom-nav, .fab-wrap, .desktop-sidebar, .no-print { display: none !important; }
  .main-content { margin: 0; padding: 0; }
}

/* Swipe actions */
.swipe-item { position: relative; overflow: hidden; }
.swipe-actions { position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; transform: translateX(100%); transition: transform .2s; }
.swipe-action-btn { padding: 0 18px; height: 100%; display: flex; align-items: center; border: none; cursor: pointer; font-size: 13px; font-weight: 600; color: #fff; }
