/* ==========================================================================
   Yakamoz Premium Muhasebe Tasarım Sistemi & CSS Bileşenleri (index.css)
   ========================================================================== */
/* 1. Reset & Temel Ayarlar */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}
.text-right {
  text-align: right !important;
}
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --border-radius-sm: var(--radius-sm);
  --border-radius-md: var(--radius-md);
  --border-radius-lg: var(--radius-lg);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-sidebar: #ffffff;
  --bg-navbar: rgba(255, 255, 255, 0.85);
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #ffffff;
  --bg-modal: #ffffff;
  --bg-dropdown: #ffffff;
  --bg-table-header: #f1f5f9;
  --border-color: #e2e8f0;
  --border-color-hover: #cbd5e1;
  --border-color-active: #818cf8;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-on-accent: #ffffff;
  --accent-primary: #4338ca;
  --accent-primary-hover: #3730a3;
  --accent-primary-subtle: #e0e7ff;
  --accent-success: #059669;
  --accent-success-subtle: #d1fae5;
  --accent-danger: #dc2626;
  --accent-danger-subtle: #fee2e2;
  --accent-warning: #d97706;
  --accent-warning-subtle: #fef3c7;
  --primary: var(--accent-primary);
  --primary-hover: var(--accent-primary-hover);
  --primary-glow: rgba(67, 56, 202, 0.25);
  --success: var(--accent-success);
  --success-light: rgba(5, 150, 105, 0.12);
  --danger: var(--accent-danger);
  --danger-light: rgba(220, 38, 38, 0.12);
  --warning: var(--accent-warning);
  --warning-light: rgba(217, 119, 6, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.15);
  /* Modal/backdrop arka planı: yarı saydam bir örtü olmalı, kart rengiyle (--bg-modal) karıştırılmamalı.
     --bg-modal opak olduğu için tam ekran overlay'lerde kullanılınca arkadaki sayfa tamamen kayboluyordu. */
  --overlay-backdrop: rgba(15, 23, 42, 0.55);
  --glass-blur: blur(6px);
}
[data-theme="dark"], body.dark-theme {
  --bg-app: #1e2530;
  --bg-surface: #262e3d;
  --bg-surface-hover: #2f3849;
  --bg-sidebar: #181e29;
  --bg-navbar: rgba(38, 46, 61, 0.85);
  --bg-card: #262e3d;
  --bg-card-hover: #2f3849;
  --bg-input: #1a202c;
  --bg-modal: #262e3d;
  --bg-dropdown: #262e3d;
  --overlay-backdrop: rgba(0, 0, 0, 0.65);
  --bg-table-header: #1a202c;
  --border-color: #3a4356;
  --border-color-hover: #4a5568;
  --border-color-active: #6366f1;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-on-accent: #ffffff;
  --accent-primary: #6366f1;
  --accent-primary-hover: #818cf8;
  --accent-primary-subtle: rgba(99, 102, 241, 0.15);
  --accent-success: #10b981;
  --accent-success-subtle: rgba(16, 185, 129, 0.15);
  --accent-danger: #ef4444;
  --accent-danger-subtle: rgba(239, 68, 68, 0.15);
  --accent-warning: #f59e0b;
  --accent-warning-subtle: rgba(245, 158, 11, 0.15);
  --primary: var(--accent-primary);
  --primary-hover: var(--accent-primary-hover);
  --primary-glow: rgba(99, 102, 241, 0.35);
  --success: var(--accent-success);
  --success-light: rgba(16, 185, 129, 0.15);
  --danger: var(--accent-danger);
  --danger-light: rgba(239, 68, 68, 0.15);
  --warning: var(--accent-warning);
  --warning-light: rgba(245, 158, 11, 0.15);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.35);
}
[data-theme="light"], .light-theme {
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-sidebar: #ffffff;
  --bg-navbar: rgba(255, 255, 255, 0.85);
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #ffffff;
  --bg-modal: #ffffff;
  --bg-dropdown: #ffffff;
  --overlay-backdrop: rgba(15, 23, 42, 0.55);
  --bg-table-header: #f1f5f9;
  --border-color: #e2e8f0;
  --border-color-hover: #cbd5e1;
  --border-color-active: #818cf8;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-on-accent: #ffffff;
  --accent-primary: #4338ca;
  --accent-primary-hover: #3730a3;
  --accent-primary-subtle: #e0e7ff;
  --accent-success: #059669;
  --accent-success-subtle: #d1fae5;
  --accent-danger: #dc2626;
  --accent-danger-subtle: #fee2e2;
  --accent-warning: #d97706;
  --accent-warning-subtle: #fef3c7;
  --primary: var(--accent-primary);
  --primary-hover: var(--accent-primary-hover);
  --primary-glow: rgba(67, 56, 202, 0.25);
  --success: var(--accent-success);
  --success-light: rgba(5, 150, 105, 0.12);
  --danger: var(--accent-danger);
  --danger-light: rgba(220, 38, 38, 0.12);
  --warning: var(--accent-warning);
  --warning-light: rgba(217, 119, 6, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.15);
  color-scheme: light;
}
/* Skin: Zümrüt Finans (localStorage key "eye-care") */
.eye-care-theme {
  --bg-app: #0f1a16;
  --bg-surface: #16241d;
  --bg-surface-hover: #1c2e25;
  --bg-sidebar: #0d1712;
  --bg-navbar: rgba(15, 26, 22, 0.9);
  --bg-card: #16241d;
  --bg-card-hover: #1c2e25;
  --bg-input: #101c16;
  --bg-modal: #16241d;
  --bg-dropdown: #16241d;
  --overlay-backdrop: rgba(0, 0, 0, 0.65);
  --bg-table-header: #101c16;
  --border-color: rgba(16, 185, 129, 0.16);
  --border-color-hover: rgba(16, 185, 129, 0.3);
  --border-color-active: #10b981;
  --text-primary: #f0fdf7;
  --text-secondary: #a7d9c4;
  --text-muted: #6b9c86;
  --text-on-accent: #ffffff;
  --accent-primary: #10b981;
  --accent-primary-hover: #059669;
  --accent-primary-subtle: rgba(16, 185, 129, 0.15);
  --accent-success: #22c55e;
  --accent-success-subtle: rgba(34, 197, 94, 0.15);
  --accent-danger: #ef4444;
  --accent-danger-subtle: rgba(239, 68, 68, 0.15);
  --accent-warning: #f59e0b;
  --accent-warning-subtle: rgba(245, 158, 11, 0.15);
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.25);
  --primary-gradient: linear-gradient(135deg, #10b981, #34d399);
  --success: #22c55e;
  --success-light: rgba(34, 197, 94, 0.15);
  --success-text: #4ade80;
  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.15);
  --danger-text: #f87171;
  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.15);
  --warning-text: #fbbf24;
  --info: #06b6d4;
  --info-light: rgba(6, 182, 212, 0.15);
  --info-text: #22d3ee;
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px -12px rgba(0, 0, 0, 0.6);
  --shadow-primary: 0 8px 30px -6px rgba(16, 185, 129, 0.3);
  --glass-border: 1px solid rgba(16, 185, 129, 0.16);
  color-scheme: dark;
}
/* Skin: Gece Pro (localStorage key "high-contrast") */
.high-contrast-theme {
  --bg-app: #0d1117;
  --bg-surface: #161b22;
  --bg-surface-hover: #21262d;
  --bg-sidebar: #010409;
  --bg-navbar: #161b22;
  --bg-card: #21262d;
  --bg-card-hover: #30363d;
  --bg-input: #0d1117;
  --bg-modal: #161b22;
  --bg-dropdown: #21262d;
  --overlay-backdrop: rgba(0, 0, 0, 0.7);
  --bg-table-header: #010409;
  --border-color: #30363d;
  --border-color-hover: #8b949e;
  --border-color-active: #58a6ff;
  --text-primary: #ffffff;
  --text-secondary: #f0f6fc;
  --text-muted: #c9d1d9;
  --text-on-accent: #0d1117;
  --accent-primary: #58a6ff;
  --accent-primary-hover: #79c0ff;
  --accent-primary-subtle: rgba(88, 166, 255, 0.18);
  --accent-success: #3fb950;
  --accent-success-subtle: rgba(63, 185, 80, 0.2);
  --accent-danger: #f85149;
  --accent-danger-subtle: rgba(248, 81, 73, 0.2);
  --accent-warning: #d29922;
  --accent-warning-subtle: rgba(210, 153, 34, 0.2);
  --primary: #58a6ff;
  --primary-hover: #79c0ff;
  --primary-glow: rgba(88, 166, 255, 0.4);
  --primary-gradient: linear-gradient(135deg, #1f6feb, #58a6ff);
  --success: #3fb950;
  --success-light: rgba(63, 185, 80, 0.2);
  --success-text: #56d364;
  --danger: #f85149;
  --danger-light: rgba(248, 81, 73, 0.2);
  --danger-text: #ff7b72;
  --warning: #d29922;
  --warning-light: rgba(210, 153, 34, 0.2);
  --warning-text: #e3b341;
  --info: #38bdf8;
  --info-light: rgba(56, 189, 248, 0.2);
  --info-text: #7dd3fc;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.8);
  --shadow-primary: 0 8px 30px rgba(88, 166, 255, 0.4);
  --glass-border: 1px solid #30363d;
  color-scheme: dark;
}
/* Skin: Enerjik Turuncu (localStorage key "energetic") */
.energetic-theme {
  --bg-app: #fff7ed;
  --bg-surface: #ffffff;
  --bg-surface-hover: #fff1e0;
  --bg-sidebar: #ffffff;
  --bg-navbar: rgba(255, 255, 255, 0.9);
  --bg-card: #ffffff;
  --bg-card-hover: #fff7ed;
  --bg-input: #ffffff;
  --bg-modal: #ffffff;
  --bg-dropdown: #ffffff;
  --overlay-backdrop: rgba(67, 20, 7, 0.5);
  --bg-table-header: #fff1e0;
  --border-color: #fed7aa;
  --border-color-hover: #fdba74;
  --border-color-active: #f97316;
  --text-primary: #431407;
  --text-secondary: #9a3412;
  --text-muted: #c2704a;
  --text-on-accent: #ffffff;
  --accent-primary: #f97316;
  --accent-primary-hover: #ea580c;
  --accent-primary-subtle: #ffedd5;
  --accent-success: #16a34a;
  --accent-success-subtle: rgba(22, 163, 74, 0.12);
  --accent-danger: #dc2626;
  --accent-danger-subtle: rgba(220, 38, 38, 0.12);
  --accent-warning: #d97706;
  --accent-warning-subtle: rgba(217, 119, 6, 0.12);
  --primary: #f97316;
  --primary-hover: #ea580c;
  --primary-glow: rgba(249, 115, 22, 0.25);
  --primary-gradient: linear-gradient(135deg, #f97316, #fb923c);
  --success: #16a34a;
  --success-light: rgba(22, 163, 74, 0.12);
  --success-text: #15803d;
  --danger: #dc2626;
  --danger-light: rgba(220, 38, 38, 0.12);
  --danger-text: #b91c1c;
  --warning: #d97706;
  --warning-light: rgba(217, 119, 6, 0.12);
  --warning-text: #92400e;
  --info: #0891b2;
  --info-light: rgba(8, 145, 178, 0.12);
  --info-text: #0e7490;
  --shadow-sm: 0 1px 3px rgba(154, 52, 18, 0.08);
  --shadow-md: 0 4px 20px -2px rgba(154, 52, 18, 0.12);
  --shadow-lg: 0 12px 32px -4px rgba(154, 52, 18, 0.18);
  --shadow-primary: 0 8px 30px -6px rgba(249, 115, 22, 0.3);
  --glass-border: 1px solid #fed7aa;
  color-scheme: light;
}
.deniz-theme {
  --bg-app: #0c1f24;
  --bg-surface: #123138;
  --bg-surface-hover: #163a42;
  --bg-sidebar: #081a1e;
  --bg-navbar: rgba(12, 31, 36, 0.85);
  --bg-card: #123138;
  --bg-card-hover: #163a42;
  --bg-input: #0a2429;
  --bg-modal: #123138;
  --bg-dropdown: #123138;
  --overlay-backdrop: rgba(0, 0, 0, 0.65);
  --bg-table-header: #0a2429;
  --border-color: #1e4750;
  --border-color-hover: #285863;
  --border-color-active: #14b8a6;
  --text-primary: #eafffb;
  --text-secondary: #8fc8cf;
  --text-muted: #5f9aa3;
  --text-on-accent: #ffffff;
  --accent-primary: #14b8a6;
  --accent-primary-hover: #2dd4bf;
  --accent-primary-subtle: rgba(20, 184, 166, 0.16);
  --accent-success: #34d399;
  --accent-success-subtle: rgba(52, 211, 153, 0.14);
  --accent-danger: #f87171;
  --accent-danger-subtle: rgba(248, 113, 113, 0.14);
  --accent-warning: #fbbf24;
  --accent-warning-subtle: rgba(251, 191, 36, 0.14);
  --primary: #14b8a6;
  --primary-hover: #2dd4bf;
  --primary-glow: rgba(20, 184, 166, 0.3);
  --primary-gradient: linear-gradient(135deg, #14b8a6, #38bdf8);
  --success: #34d399;
  --success-light: rgba(52, 211, 153, 0.12);
  --success-text: #6ee7b7;
  --danger: #f87171;
  --danger-light: rgba(248, 113, 113, 0.12);
  --danger-text: #fca5a5;
  --warning: #fbbf24;
  --warning-light: rgba(251, 191, 36, 0.12);
  --warning-text: #fcd34d;
  --info: #38bdf8;
  --info-light: rgba(56, 189, 248, 0.12);
  --info-text: #7dd3fc;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 8px 30px -6px rgba(20, 184, 166, 0.35);
  --glass-border: 1px solid #1e4750;
  color-scheme: dark;
}
.sunset-theme {
  --bg-app: #1a1024;
  --bg-surface: #241531;
  --bg-surface-hover: #2c1a3c;
  --bg-sidebar: #140c1c;
  --bg-navbar: rgba(26, 16, 36, 0.85);
  --bg-card: #241531;
  --bg-card-hover: #2c1a3c;
  --bg-input: #180f22;
  --bg-modal: #241531;
  --bg-dropdown: #241531;
  --overlay-backdrop: rgba(0, 0, 0, 0.65);
  --bg-table-header: #180f22;
  --border-color: #3d2650;
  --border-color-hover: #4e2f66;
  --border-color-active: #f97316;
  --text-primary: #fdf4ff;
  --text-secondary: #c9a8d9;
  --text-muted: #8f739e;
  --text-on-accent: #1a1024;
  --accent-primary: #f97316;
  --accent-primary-hover: #fb923c;
  --accent-primary-subtle: rgba(249, 115, 22, 0.16);
  --accent-success: #34d399;
  --accent-success-subtle: rgba(52, 211, 153, 0.14);
  --accent-danger: #f87171;
  --accent-danger-subtle: rgba(248, 113, 113, 0.14);
  --accent-warning: #fbbf24;
  --accent-warning-subtle: rgba(251, 191, 36, 0.14);
  --primary: #f97316;
  --primary-hover: #fb923c;
  --primary-glow: rgba(249, 115, 22, 0.3);
  --primary-gradient: linear-gradient(135deg, #f97316, #ec4899);
  --success: #34d399;
  --success-light: rgba(52, 211, 153, 0.12);
  --success-text: #6ee7b7;
  --danger: #f87171;
  --danger-light: rgba(248, 113, 113, 0.12);
  --danger-text: #fca5a5;
  --warning: #fbbf24;
  --warning-light: rgba(251, 191, 36, 0.12);
  --warning-text: #fcd34d;
  --info: #ec4899;
  --info-light: rgba(236, 72, 153, 0.12);
  --info-text: #f9a8d4;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 8px 30px -6px rgba(249, 115, 22, 0.35);
  --glass-border: 1px solid #3d2650;
  color-scheme: dark;
}
.grafit-theme {
  --bg-app: #17181c;
  --bg-surface: #1f2024;
  --bg-surface-hover: #26272c;
  --bg-sidebar: #101114;
  --bg-navbar: rgba(23, 24, 28, 0.85);
  --bg-card: #1f2024;
  --bg-card-hover: #26272c;
  --bg-input: #131418;
  --bg-modal: #1f2024;
  --bg-dropdown: #1f2024;
  --overlay-backdrop: rgba(0, 0, 0, 0.65);
  --bg-table-header: #131418;
  --border-color: #2f3036;
  --border-color-hover: #3a3b42;
  --border-color-active: #818cf8;
  --text-primary: #f2f2f0;
  --text-secondary: #a3a5ab;
  --text-muted: #6c6e74;
  --text-on-accent: #ffffff;
  --accent-primary: #818cf8;
  --accent-primary-hover: #a5b4fc;
  --accent-primary-subtle: rgba(129, 140, 248, 0.16);
  --accent-success: #34d399;
  --accent-success-subtle: rgba(52, 211, 153, 0.14);
  --accent-danger: #f87171;
  --accent-danger-subtle: rgba(248, 113, 113, 0.14);
  --accent-warning: #fbbf24;
  --accent-warning-subtle: rgba(251, 191, 36, 0.14);
  --primary: #818cf8;
  --primary-hover: #a5b4fc;
  --primary-glow: rgba(129, 140, 248, 0.25);
  --primary-gradient: linear-gradient(135deg, #818cf8, #6366f1);
  --success: #34d399;
  --success-light: rgba(52, 211, 153, 0.12);
  --success-text: #6ee7b7;
  --danger: #f87171;
  --danger-light: rgba(248, 113, 113, 0.12);
  --danger-text: #fca5a5;
  --warning: #fbbf24;
  --warning-light: rgba(251, 191, 36, 0.12);
  --warning-text: #fcd34d;
  --info: #94a3b8;
  --info-light: rgba(148, 163, 184, 0.12);
  --info-text: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 8px 30px -6px rgba(129, 140, 248, 0.3);
  --glass-border: 1px solid #2f3036;
  color-scheme: dark;
}
body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  text-decoration: none;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color-hover);
  border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
/* ==========================================================================
   2. Uygulama Düzeni (App Layout)
   ========================================================================== */
.app-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
  transition: grid-template-columns var(--transition-smooth);
}
.app-container.sidebar-collapsed {
  grid-template-columns: 80px 1fr;
}
.app-container.kiosk-mode {
  grid-template-columns: 1fr;
}
.app-container.kiosk-mode .app-sidebar,
.app-container.kiosk-mode .app-navbar {
  display: none;
}
.app-sidebar {
  background-color: var(--bg-sidebar);
  border-right: var(--glass-border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: width var(--transition-smooth), background-color var(--transition-smooth);
  overflow: hidden;
}
.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 26px 16px 18px;
  border-bottom: var(--glass-border);
  transition: padding var(--transition-smooth);
}
.brand-logo-wrap {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.2), var(--shadow-sm);
  flex-shrink: 0;
  overflow: hidden;
  transition: width var(--transition-smooth), height var(--transition-smooth), padding var(--transition-smooth), border-radius var(--transition-smooth);
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  transition: opacity var(--transition-smooth);
}
.brand-tagline {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: -4px;
  transition: opacity var(--transition-smooth);
}
.sidebar-collapsed .sidebar-brand {
  padding: 14px 8px;
}
.sidebar-collapsed .brand-logo-wrap {
  width: 40px;
  height: 40px;
  padding: 4px;
  border-radius: 12px;
}
.sidebar-collapsed .brand-title,
.sidebar-collapsed .brand-tagline,
.sidebar-collapsed .sidebar-heading,
.sidebar-collapsed .sidebar-heading-button span {
  display: none !important;
}
.sidebar-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  padding: 8px 10px 140px 10px !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  scroll-behavior: smooth !important;
  touch-action: pan-y !important;
  scrollbar-width: thin !important;
  scrollbar-color: #818cf8 rgba(0, 0, 0, 0.2) !important;
}
.sidebar-nav::-webkit-scrollbar {
  width: 8px !important;
  display: block !important;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15) !important;
  border-radius: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background-color: #818cf8 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background-color: #6366f1 !important;
}
a.nav-item,
button.nav-item,
.nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  background: transparent;
  border: none;
  border-radius: var(--border-radius-md) !important;
  color: var(--text-secondary) !important;
  font-family: var(--font-sans);
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  letter-spacing: 0.1px;
}
.light-theme .sidebar-section-heading,
.light-theme .sidebar-heading {
  color: #4f46e5 !important;
}
a.nav-item:hover,
button.nav-item:hover,
.nav-item:hover,
a.nav-item:focus {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateX(3px);
}
a.nav-item.active,
button.nav-item.active,
.nav-item.active {
  background: var(--role-accent-subtle, rgba(99, 102, 241, 0.16)) !important;
  color: var(--primary, #6366f1) !important;
  font-weight: 700 !important;
  border-left: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  border-radius: var(--border-radius-md) !important;
  transform: translateX(0);
}
a.nav-item.active .nav-icon,
.nav-item.active .nav-icon,
a.nav-item.active .nav-text,
.nav-item.active .nav-text {
  color: var(--primary, #6366f1) !important;
}
.light-theme a.nav-item.active,
.light-theme .nav-item.active,
.light-theme a.nav-item.active .nav-text,
.light-theme .nav-item.active .nav-text,
.light-theme a.nav-item.active .nav-icon,
.light-theme .nav-item.active .nav-icon {
  background: rgba(67, 56, 202, 0.1) !important;
  color: var(--accent-primary, #4338ca) !important;
  border-left: none !important;
}
.sidebar-group-header {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--text-muted, #94a3b8) !important;
  text-transform: none !important;
  letter-spacing: 0.2px !important;
  padding: 14px 12px 6px 12px !important;
}
button.sidebar-group-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 16px);
  margin: 4px 8px !important;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  color: var(--text-secondary, #475569) !important;
  padding: 10px 12px !important;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
button.sidebar-group-toggle:hover {
  border-color: var(--role-accent, var(--primary));
  color: var(--role-accent, var(--primary)) !important;
}
button.sidebar-group-toggle.group-open {
  background: var(--role-accent-subtle, rgba(99, 102, 241, 0.12));
  border-color: var(--role-accent, var(--primary));
  color: var(--role-accent, var(--primary)) !important;
}
button.sidebar-group-toggle.superadmin-heading {
  color: var(--role-accent, #ef4444) !important;
  background: var(--role-accent-subtle, rgba(239, 68, 68, 0.1));
  border-color: var(--role-accent-subtle, rgba(239, 68, 68, 0.3));
}
button.sidebar-group-toggle.superadmin-heading:hover,
button.sidebar-group-toggle.superadmin-heading.group-open {
  border-color: var(--role-accent, #ef4444);
  background: var(--role-accent-subtle, rgba(239, 68, 68, 0.18));
}
.group-chevron {
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.15s ease;
}
.group-chevron.expanded {
  transform: rotate(90deg);
}
.sidebar-group-divider {
  height: 1px;
  background: var(--border-color, rgba(225, 225, 225, 0.1));
  margin: 12px 10px 6px 10px;
}
.sidebar-search-box {
  position: relative;
  margin: 8px 10px 12px 10px;
  display: flex;
  align-items: center;
}
.sidebar-search-input {
  width: 100%;
  padding: 7px 28px 7px 30px;
  border-radius: 9px;
  background: var(--role-accent-subtle, rgba(148, 163, 184, 0.06));
  border: 1px solid var(--border-color, #334155);
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
}
.sidebar-search-icon {
  position: absolute;
  left: 9px;
  color: var(--text-muted);
  pointer-events: none;
}
.sidebar-search-clear {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
}
.sidebar-section-heading,
.sidebar-heading {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--text-muted, #94a3b8) !important;
  text-transform: none !important;
  letter-spacing: 0.2px !important;
  padding: 14px 12px 6px 12px !important;
}
details.sidebar-category {
  margin-top: 4px !important;
  border-radius: 8px !important;
  width: 100% !important;
}
summary.sidebar-heading-button {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: all 0.2s ease !important;
  color: #818cf8 !important;
  background: transparent !important;
  list-style: none !important;
  outline: none !important;
}
summary.sidebar-heading-button::-webkit-details-marker,
summary.sidebar-heading-button::marker {
  display: none !important;
  content: "" !important;
}
summary.sidebar-heading-button:hover {
  background: rgba(99, 102, 241, 0.12) !important;
  color: #a5b4fc !important;
}
.light-theme summary.sidebar-heading-button {
  color: #4f46e5 !important;
}
.light-theme summary.sidebar-heading-button:hover {
  background: rgba(79, 70, 229, 0.08) !important;
  color: #4338ca !important;
}
.chevron-icon {
  font-size: 0.85rem !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-block !important;
}
details[open] summary.sidebar-heading-button .chevron-icon {
  transform: rotate(180deg) !important;
}
details.sidebar-category .sidebar-submenu,
.sidebar-submenu {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  padding-left: 8px !important;
  padding-top: 4px !important;
  padding-bottom: 6px !important;
  max-height: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.sidebar-submenu.hide {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}
.nav-text {
  white-space: nowrap;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  transition: opacity var(--transition-smooth);
}
.sidebar-collapsed .nav-text {
  opacity: 0;
  width: 0;
  pointer-events: none;
}
.sidebar-company-card {
  padding: 16px;
  margin: 12px;
  background: var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
}
.company-initials {
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-sm);
  background: var(--border-color-hover);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}
.company-info {
  display: flex;
  flex-direction: column;
  transition: opacity var(--transition-smooth);
  overflow: hidden;
}
.company-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.company-status {
  font-size: 0.725rem;
  color: var(--success-text);
  font-weight: 500;
}
.sidebar-collapsed .sidebar-company-card {
  padding: 8px;
  margin: 8px;
  justify-content: center;
}
.sidebar-collapsed .company-info {
  opacity: 0;
  width: 0;
  pointer-events: none;
}
.app-main-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
.app-navbar {
  height: 70px;
  background-color: var(--bg-navbar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 40;
  position: sticky;
  top: 0;
  transition: background-color var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}
.navbar-left, .navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.navbar-breadcrumbs {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}
.navbar-search-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 14px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 240px;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.navbar-search-btn:hover {
  border-color: var(--role-accent, var(--primary));
  background: var(--bg-card-hover);
  color: var(--text-primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.18), inset 0 1px 2px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.navbar-search-btn:hover .search-btn-icon {
  color: var(--role-accent, var(--primary));
  transform: scale(1.1);
}
.search-btn-icon {
  transition: transform 0.2s ease, color 0.2s ease;
  color: var(--role-accent, var(--primary));
}
.search-btn-text {
  font-size: 0.86rem;
  font-weight: 500;
  flex: 1;
}
.search-btn-kbd {
  font-size: 0.68rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(79, 70, 229, 0.35));
  padding: 3px 7px;
  border-radius: 6px;
  font-weight: 800;
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #a5b4fc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.quick-btn {
  background: var(--role-accent, var(--primary)) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  padding: 8px 16px !important;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.28) !important;
  transition: all 0.25s ease !important;
}
.quick-btn:hover {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6) !important;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
}
.quick-search-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 100px;
  animation: modal-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.quick-search-modal {
  width: 100%;
  max-width: 680px;
  background: #0f172a;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 16px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}
.quick-search-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
  background: rgba(30, 41, 59, 0.5);
}
.search-modal-icon {
  color: #818cf8;
  flex-shrink: 0;
}
.quick-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.05rem;
  color: #f8fafc;
  font-family: inherit;
  font-weight: 500;
}
.quick-search-input::placeholder {
  color: #64748b;
  font-size: 0.95rem;
}
.quick-search-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}
.quick-search-body {
  padding: 12px;
  overflow-y: auto;
  max-height: 480px;
}
.quick-search-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #818cf8;
  letter-spacing: 0.06em;
  padding: 8px 12px 4px 12px;
}
.quick-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 2px;
  border: 1px solid transparent;
}
.quick-search-item.selected, .quick-search-item:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.4);
}
.quick-search-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.quick-search-item-info {
  flex: 1;
  overflow: hidden;
}
.quick-search-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
}
.quick-search-item-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-search-item-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.quick-search-item-arrow {
  font-size: 0.9rem;
  color: #64748b;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.quick-search-item.selected .quick-search-item-arrow {
  opacity: 1;
  color: #818cf8;
}
.quick-search-empty {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 0.9rem;
}
.quick-search-footer {
  padding: 10px 20px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-hint {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer-hint kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: inherit;
  font-size: 0.68rem;
  color: #cbd5e1;
}
@keyframes modal-fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.app-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  position: relative;
}
.app-content > div {
  animation: entry-fade 350ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes entry-fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ==========================================================================
   3. Premium UI Elemanları (Butonlar, Kartlar vb.)
   ========================================================================== */
.card {
  background-color: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}
.card:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
button {
  outline: none;
}
.primary-button {
  background: linear-gradient(135deg, var(--role-accent, var(--primary)) 0%, var(--role-accent-hover, var(--primary-hover)) 100%);
  color: white;
  border: none;
  border-radius: var(--border-radius-md);
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-primary);
  transition: all var(--transition-smooth);
}
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -6px var(--role-accent, var(--primary)), var(--shadow-primary);
}
.primary-button:active {
  transform: translateY(0);
}
.secondary-button {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}
.secondary-button:hover {
  background-color: var(--border-color-hover);
  border-color: var(--text-muted);
}
.danger-button {
  background-color: var(--danger-light);
  color: var(--danger-text);
  border: 1px solid rgba(255, 75, 75, 0.2);
  border-radius: var(--border-radius-md);
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}
.danger-button:hover {
  background-color: var(--danger);
  color: white;
  box-shadow: 0 8px 24px -6px rgba(255, 75, 75, 0.4);
}
.icon-button {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
  background-color: var(--bg-card);
  border: var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.icon-button:hover {
  color: var(--text-primary);
  background-color: var(--border-color-hover);
  border-color: var(--text-muted);
}
/* ==========================================================================
   4. Tablolar & Veri Listeleri
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--border-radius-md);
  border: var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: var(--bg-card);
}
.custom-table th {
  padding: 16px 20px;
  background-color: rgba(0, 0, 0, 0.15);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color);
}
.light-theme .custom-table th {
  background-color: rgba(0, 0, 0, 0.02);
}
.custom-table td {
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
  white-space: nowrap;
}
.custom-table tbody tr {
  transition: background-color var(--transition-fast);
}
.custom-table tbody tr:hover {
  background-color: var(--bg-card-hover);
}
.custom-table tbody tr:last-child td {
  border-bottom: none;
}
/* ==========================================================================
   5. Form Elemanları (Inputs, Selects, Labels)
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-input, .form-select, .form-textarea {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  outline: none;
  width: 100%;
  transition: all var(--transition-fast);
}
.form-input:hover, .form-select:hover, .form-textarea:hover {
  border-color: var(--border-color-hover);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background-color: var(--bg-app);
}
.form-textarea {
  resize: vertical;
  min-height: 80px;
}
/* ==========================================================================
   6. Dashboard Grid ve Özet Kartları
   ========================================================================== */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
}
.stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.stat-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon-wrapper.primary {
  background-color: var(--primary-glow);
  color: var(--primary);
}
.stat-icon-wrapper.success {
  background-color: var(--success-light);
  color: var(--success-text);
}
.stat-icon-wrapper.danger {
  background-color: var(--danger-light);
  color: var(--danger-text);
}
.stat-icon-wrapper.warning {
  background-color: var(--warning-light);
  color: var(--warning-text);
}
/* ==========================================================================
   7. Modallar (Spotlight ve Form Popups)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-modal);
  backdrop-filter: var(--glass-blur);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-content {
  background-color: var(--bg-dropdown);
  border: var(--glass-border);
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 650px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: entry-fade 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-content.large {
  max-width: 950px;
}
.modal-header {
  padding: 20px 24px;
  border-bottom: var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}
.modal-close-btn:hover {
  color: var(--text-primary);
}
.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}
.modal-footer {
  padding: 16px 24px;
  border-top: var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background-color: rgba(0, 0, 0, 0.08);
}
.light-theme .modal-footer {
  background-color: rgba(0, 0, 0, 0.02);
}
/* ==========================================================================
   8. Spotlight Search Modal (Ctrl + K)
   ========================================================================== */
.spotlight-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-modal);
  backdrop-filter: var(--glass-blur);
  display: flex;
  justify-content: center;
  padding-top: 15vh;
  z-index: 200;
}
.spotlight-container {
  background-color: var(--bg-dropdown);
  border: var(--glass-border);
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 650px;
  height: max-content;
  max-height: 480px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: entry-fade 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.spotlight-header {
  padding: 16px 20px;
  border-bottom: var(--glass-border);
  display: flex;
  align-items: center;
  gap: 14px;
}
.spotlight-search-icon {
  color: var(--text-secondary);
}
#spotlight-input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-primary);
  width: 100%;
}
.spotlight-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}
.spotlight-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}
.spotlight-results {
  display: flex;
  flex-direction: column;
}
.spotlight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.spotlight-item:hover, .spotlight-item.selected {
  background-color: var(--bg-card-hover);
}
.spotlight-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.spotlight-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.spotlight-item:hover .spotlight-item-icon, .spotlight-item.selected .spotlight-item-icon {
  background-color: var(--primary-glow);
  color: var(--primary);
}
.spotlight-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.spotlight-item-subtitle {
  font-size: 0.775rem;
  color: var(--text-muted);
}
.spotlight-item-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
}
.spotlight-item-badge.cmd {
  background-color: var(--primary-glow);
  color: var(--primary);
}
.spotlight-item-badge.cari {
  background-color: var(--success-light);
  color: var(--success-text);
}
.spotlight-item-badge.stok {
  background-color: var(--warning-light);
  color: var(--warning-text);
}
.spotlight-footer {
  padding: 12px 20px;
  border-top: var(--glass-border);
  display: flex;
  gap: 20px;
  background-color: rgba(0,0,0,0.15);
  font-size: 0.725rem;
  color: var(--text-muted);
}
.light-theme .spotlight-footer {
  background-color: rgba(0,0,0,0.01);
}
.shortcut-tip kbd {
  background-color: var(--border-color);
  padding: 1px 4px;
  border-radius: 3px;
  margin-right: 3px;
}
/* ==========================================================================
   9. Hızlı İşlem Ekleme Dropdown
   ========================================================================== */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background-color: var(--bg-dropdown);
  border: var(--glass-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-md);
  min-width: 200px;
  z-index: 60;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: entry-fade 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
  width: 100%;
}
.dropdown-item:hover {
  background-color: var(--bg-card-hover);
}
.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 6px 0;
}
.hidden {
  display: none !important;
}
/* ==========================================================================
   10. Toast Bildirimleri (Alerts)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 300;
}
.toast {
  background-color: var(--bg-dropdown);
  border: var(--glass-border);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 400px;
  animation: slide-in-toast 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: all var(--transition-smooth);
}
.toast.removing {
  opacity: 0;
  transform: translateX(100px);
}
@keyframes slide-in-toast {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}
.toast.success { border-left: 4px solid var(--success-text); }
.toast.danger { border-left: 4px solid var(--danger-text); }
.toast.warning { border-left: 4px solid var(--warning-text); }
.toast.info { border-left: 4px solid var(--info-text); }
.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.toast.success .toast-icon { color: var(--success-text); }
.toast.danger .toast-icon { color: var(--danger-text); }
.toast.warning .toast-icon { color: var(--warning-text); }
.toast.info .toast-icon { color: var(--info-text); }
.toast-content { flex: 1; }
.toast-title { font-weight: 600; font-size: 0.85rem; }
.toast-message { font-size: 0.775rem; color: var(--text-secondary); }
.toast-close { background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; }
.toast-close:hover { color: var(--text-primary); }
/* ==========================================================================
   11. Yükleme Göstergesi (Spinner) & Yardımcı Sınıflar
   ========================================================================== */
.loading-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  gap: 16px;
  color: var(--text-secondary);
}
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge.success, .badge-success { background-color: var(--success-light); color: var(--success-text, var(--success)); }
.badge.danger, .badge-danger { background-color: var(--danger-light); color: var(--danger-text, var(--danger)); }
.badge.warning, .badge-warning { background-color: var(--warning-light); color: var(--warning-text, var(--warning)); }
.badge.info, .badge-info { background-color: var(--info-light, rgba(8, 145, 178, 0.12)); color: var(--info-text, var(--accent-primary)); }
/* badge-primary/badge-secondary: bileşenlerde .badge ile birlikte tireli varyant olarak kullanılıyor
   (ör. class="badge badge-primary"), ama karşılık gelen nokta'lı ".badge.primary" hiç var olmadı -
   uygulama genelindeki durum rozetleri (GİB Durumu, SATIŞ/ALIŞ vb.) bu yüzden renksiz görünüyordu. */
.badge-primary { background-color: var(--accent-primary-subtle); color: var(--primary); }
.badge-secondary { background-color: var(--bg-table-header); color: var(--text-secondary); }
.money-plus { color: var(--success-text); }
.money-minus { color: var(--danger-text); }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.page-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.page-actions { display: flex; gap: 12px; }
#theme-toggle .sun-icon { display: none; }
#theme-toggle .moon-icon { display: block; }
.light-theme #theme-toggle .sun-icon { display: block; }
.light-theme #theme-toggle .moon-icon { display: none; }
/* Responsive Mobil Uyumluluk - 900px yerine 1024px: dar bir masaustu penceresi
   (ör. iki siteyi yan yana karsilastirirken) de off-canvas menuyu almali, aksi
   halde 900-1024px arasinda sidebar tam genislikte sabit kalip icerigi
   sikistiriyordu (asagidaki, artik kaldirilan 768-1024px "tablet" kuraliyla da
   catisiyordu). */
@media screen and (max-width: 1024px) {
  .app-container { grid-template-columns: 1fr; }
  .app-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
    z-index: 200;
    box-shadow: var(--shadow-lg);
  }
  .app-container.mobile-sidebar-open .app-sidebar { transform: translateX(0); }
  .navbar-search-btn { width: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .search-btn-text, .search-btn-kbd { display: none; }
  .hidden-mobile { display: none !important; }
  .app-navbar { padding: 0 16px; }
  .app-content { padding: 16px; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .page-title { font-size: 1.45rem; }
  .page-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
  .page-actions button, .page-actions a { flex: 1; min-width: 120px; justify-content: center; }
  .custom-table th, .custom-table td { padding: 10px 12px; font-size: 0.8rem; }
  .app-container.sidebar-collapsed { grid-template-columns: 1fr !important; }
  .app-container.sidebar-collapsed .app-sidebar { width: 300px !important; }
  .sidebar-collapsed .brand-title, .sidebar-collapsed .brand-tagline { opacity: 1 !important; width: auto !important; pointer-events: auto !important; display: block !important; }
  .sidebar-collapsed .brand-logo-wrap { width: 108px !important; height: 108px !important; padding: 6px !important; border-radius: 26px !important; }
  .sidebar-collapsed .nav-text { opacity: 1 !important; width: auto !important; pointer-events: auto !important; }
  .sidebar-collapsed .sidebar-company-card { padding: 16px !important; margin: 12px !important; justify-content: flex-start !important; }
  .sidebar-collapsed .company-info { opacity: 1 !important; width: auto !important; pointer-events: auto !important; }
}
@media screen and (max-width: 600px) {
  .app-navbar { height: 60px; }
  .navbar-breadcrumbs { font-size: 0.95rem; }
  .quick-btn span { display: none; }
  .quick-btn { padding: 10px; border-radius: 50%; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .modal-content { width: 95%; margin: 10px; }
  .modal-body { padding: 16px; }
  .modal-footer { padding: 12px 16px; }
}
/* position:fixed KOSULSUZ kalmali: .app-container bir CSS Grid, ve fixed/absolute
   olmayan (static) bir eleman grid'in 3. cocugu sayilip 2 sutunluk grid'i 2 satira
   boler (ana icerik ikinci satira duser, bos gorunur). Sadece GORSEL kisim (koyu
   perde + blur) mobil off-canvas menude anlamli oldugu icin @media ile sinirli;
   masaustunde perde boylece hem gorunmez hem grid'i bozmaz. */
.mobile-sidebar-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
}
@media screen and (max-width: 1024px) {
  .mobile-sidebar-backdrop {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 190;
    animation: fade-in-backdrop 200ms ease forwards;
  }
}
@keyframes fade-in-backdrop { from { opacity: 0; } to { opacity: 1; } }
/* Company Management & Segmented Control Tabs */
.company-segmented-tabs {
    display: inline-flex;
    gap: 6px;
    background: var(--bg-dropdown);
    padding: 6px;
    border-radius: var(--border-radius-md);
    border: var(--glass-border);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.company-tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}
.company-tab-item:hover { color: var(--text-primary); background: rgba(99, 102, 241, 0.08); }
.company-tab-item.active {
    color: #ffffff !important;
    background: var(--role-accent, var(--primary)) !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.company-tab-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.22);
    color: currentColor;
}
.company-tab-item:not(.active) .company-tab-badge {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
}
/* 12. Fatura Yazdırma & PDF Medya Kuralları (@media print) */
@page { size: A4; margin: 12mm; }
@media print {
  body, html { background: white !important; color: black !important; }
  .app-sidebar, .app-navbar, .page-header, .nav-tabs, .page-actions, .print-actions,
  .secondary-button, .primary-button, .modal-backdrop, .toast-container, footer,
  .mobile-bottom-nav, .mobile-sidebar-backdrop, .no-print { display: none !important; }
  .app-container, .app-content, main { margin: 0 !important; padding: 0 !important; background: transparent !important; border: none !important; box-shadow: none !important; display: block !important; }
  .print-invoice-sheet { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; border: none !important; box-shadow: none !important; background: white !important; color: black !important; font-size: 10pt !important; }
  .table-container { overflow: visible !important; width: 100% !important; max-width: 100% !important; }
  .data-table, .custom-table { width: 100% !important; max-width: 100% !important; font-size: 8pt !important; table-layout: auto !important; border-collapse: collapse !important; }
  .data-table th, .custom-table th, .data-table td, .custom-table td { word-wrap: break-word; white-space: normal !important; padding: 3px 4px !important; line-height: 1.25 !important; vertical-align: middle !important; font-weight: normal !important; }
  .data-table th, .custom-table th { text-align: center !important; }
  .data-table tr, .custom-table tr { page-break-inside: avoid; }
  .data-table .report-total-row td, .custom-table .report-total-row td { font-weight: 700 !important; }
  .mizan-table th:nth-child(1), .mizan-table td:nth-child(1) { width: 10%; }
  .mizan-table th:nth-child(2), .mizan-table td:nth-child(2) { width: 26%; }
  .mizan-table th:nth-child(3), .mizan-table td:nth-child(3) { width: 8%; }
  .mizan-table th:nth-child(4), .mizan-table td:nth-child(4),
  .mizan-table th:nth-child(5), .mizan-table td:nth-child(5),
  .mizan-table th:nth-child(6), .mizan-table td:nth-child(6),
  .mizan-table th:nth-child(7), .mizan-table td:nth-child(7) { width: 14%; white-space: nowrap !important; }
  .report-main-grid { display: block !important; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
/* 13. MOBİL ULTRA UYUMLULUK & ERGONOMİ (MOBILE UX & TOUCH TARGETS) */
.mobile-bottom-nav { display: none; }
@media screen and (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 62px;
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
    backdrop-filter: var(--glass-blur);
  }
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.2s ease;
  }
  .mobile-nav-item.active { color: var(--primary); }
  .mobile-nav-item.active svg { transform: translateY(-2px); filter: drop-shadow(0 2px 8px var(--primary-glow)); }
  .app-content { padding-bottom: 74px !important; }
  .ai-fab-container { bottom: 74px !important; right: 16px !important; }
  .ai-assistant-modal { position: fixed !important; top: 10px !important; bottom: 74px !important; left: 10px !important; right: 10px !important; width: auto !important; max-height: calc(100vh - 84px) !important; border-radius: 16px !important; }
  input, select, textarea, .form-input, .primary-button, .secondary-button { min-height: 44px !important; font-size: 0.95rem !important; }
  .page-header { margin-bottom: 16px !important; }
  .page-title { font-size: 1.3rem !important; }
  .table-container { overflow-x: auto !important; -webkit-overflow-scrolling: touch; border-radius: 10px; }
}
/* MERKEZİ HATA KART & MODAL STİLLERİ (CUSTOM ERROR BOUNDARY) */
.custom-error-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modal-fade-in 0.25s ease-out;
}
.custom-error-card {
  width: 100%;
  max-width: 580px;
  background: #1e293b;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 20px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(239, 68, 68, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #f8fafc;
}
.error-card-header {
  padding: 32px 32px 20px 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.12) 0%, rgba(30, 41, 59, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.error-icon-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}
.error-card-title { font-size: 1.35rem; font-weight: 800; color: #f87171; margin: 0 0 8px 0; }
.error-card-subtitle { font-size: 0.88rem; color: #cbd5e1; line-height: 1.5; margin: 0; }
.error-card-body { padding: 20px 32px; }
.error-detail-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
}
.error-detail-row { display: flex; flex-direction: column; gap: 2px; }
.error-detail-label { font-size: 0.72rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; }
.error-detail-val { font-size: 0.85rem; color: #f8fafc; word-break: break-all; }
.error-message-text { color: #fca5a5; font-weight: 700; font-family: monospace; }
.error-stacktrace-container {
  margin-top: 14px;
  background: #0f172a;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding: 12px;
  max-height: 180px;
  overflow-y: auto;
}
.error-stacktrace-title { font-size: 0.75rem; font-weight: 700; color: #f87171; margin-bottom: 6px; }
.error-stacktrace-text { font-size: 0.72rem; color: #cbd5e1; white-space: pre-wrap; word-break: break-all; margin: 0; font-family: consolas, monospace; }
.error-card-footer {
  padding: 20px 32px;
  background: rgba(15, 23, 42, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.error-btn-secondary { padding: 9px 16px; background: rgba(51, 65, 85, 0.6); color: #cbd5e1; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; font-size: 0.82rem; font-weight: 700; cursor: pointer; margin-right: auto; transition: all 0.2s; }
.error-btn-secondary:hover { background: rgba(71, 85, 105, 0.8); color: #fff; }
.error-btn-home { padding: 9px 16px; background: rgba(99, 102, 241, 0.15); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.3); border-radius: 10px; font-size: 0.84rem; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.error-btn-home:hover { background: rgba(99, 102, 241, 0.3); color: #fff; }
.error-btn-primary { padding: 9px 20px; background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: #ffffff; border: none; border-radius: 10px; font-size: 0.85rem; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4); transition: all 0.2s; }
.error-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6); }
#blazor-error-ui { display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; z-index: -99999 !important; }
#blazor-error-ui .reload { display: inline-block !important; margin-top: 14px !important; padding: 8px 18px !important; background: linear-gradient(135deg, #6366f1, #4f46e5) !important; color: #ffffff !important; border-radius: 8px !important; text-decoration: none !important; font-weight: 800 !important; }
#blazor-error-ui .dismiss { cursor: pointer !important; position: absolute !important; right: 14px !important; top: 14px !important; color: #94a3b8 !important; }
#components-reconnect-modal, .components-reconnect-show, .components-reconnect-failed, .components-reconnect-rejected, .components-reconnect-hide, div[id="components-reconnect-modal"] {
  display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; z-index: -99999 !important;
}
/* ERP Portal Resizable Table & DataGrid System */
th.resizable-col { position: relative; user-select: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-resizer { position: absolute; top: 0; right: 0; width: 10px; cursor: col-resize; user-select: none; height: 100%; z-index: 100; background: transparent; transition: background 0.15s ease; }
.col-resizer:hover, .col-resizer.resizing { background: #6366f1 !important; box-shadow: 0 0 10px rgba(99, 102, 241, 0.9); }
.erp-grid-container { width: 100%; overflow-x: auto; background: var(--bg-card, #0f172a); border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1)); border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); }
.erp-grid-container::-webkit-scrollbar { height: 14px !important; background: #0f172a !important; }
.erp-grid-container::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.9) !important; border-radius: 7px; }
.erp-grid-container::-webkit-scrollbar-thumb { background: #475569 !important; border-radius: 7px !important; border: 2px solid #0f172a !important; }
.erp-grid-container::-webkit-scrollbar-thumb:hover { background: #6366f1 !important; }
.erp-grid-table { width: 100%; border-collapse: collapse; font-size: 0.77rem; table-layout: fixed; color: var(--text-primary, #f8fafc); }
.erp-grid-table th { background: rgba(30, 41, 59, 0.95); color: #94a3b8; font-weight: 700; text-transform: uppercase; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.72rem; letter-spacing: 0.4px; }
.erp-grid-table td { padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.78rem; }
.erp-grid-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.015); }
.erp-grid-table tbody tr:hover { background: rgba(99, 102, 241, 0.12) !important; }
.erp-toolbar-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); color: #cbd5e1; font-size: 0.72rem; font-weight: 700; padding: 5px 10px; border-radius: 5px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: all 0.15s ease; white-space: nowrap; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
.erp-toolbar-btn:hover { background: rgba(99, 102, 241, 0.25); border-color: #6366f1; color: #ffffff; transform: translateY(-1px); }
/* NavMenu, MainLayout & Tablet Responsive Bileşen Sınıfları */
/* Eskiden burada 768-1024px arasi icin ayri, tersine-mantikli ("not(.sidebar-collapsed)"
   = daralt, ".sidebar-collapsed" = genislet) bir "tablet ikon rafi" kurali vardi.
   Off-canvas menu araligi 900px'ten 1024px'e cikarilinca bu iki kural tamamen
   cakisiyordu (ayni aralikta hem "sidebar sabit genis" hem "off-canvas gizli"
   davranisi tanimliydi) - kafa karistirici ve hataya acikti, kaldirildi. Artik
   1024px ve alti her yerde TEK bir davranis var: off-canvas + hamburger.*/
@media screen and (max-width: 1024px) {
  .nav-item,
  .icon-button,
  .quick-btn,
  .form-input,
  .form-select,
  .primary-button,
  .secondary-button {
    min-height: 44px !important;
  }
}
.brand-meta {
  min-width: 0;
}
.brand-badge-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 3px;
}
.sidebar-role-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--role-accent, var(--primary));
  background-color: var(--role-accent-subtle, rgba(99, 102, 241, 0.15));
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar-role-badge-muted {
  color: var(--text-muted);
  background-color: var(--bg-input);
}
.brand-context-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 5px;
}
/* Header - Çalışılan Firma / Dönem kapsülü (HeaderCompanyContext.razor) */
.header-ctx-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 14px;
  border-radius: 24px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  text-decoration: none;
}
.header-ctx-cluster:hover {
  border-color: var(--role-accent, var(--primary));
}
.header-ctx-bayi {
  cursor: pointer;
}
.header-ctx-item {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  padding-right: 12px;
  border-right: 1px solid var(--border-color);
}
.header-ctx-item:last-of-type {
  border-right: none;
  padding-right: 0;
}
.header-ctx-k {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}
.header-ctx-v {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-ctx-swap {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--role-accent, var(--primary));
  color: var(--text-on-accent, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header-ctx-error {
  color: var(--danger);
  display: flex;
  align-items: center;
  cursor: help;
}
.header-period-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
  outline: none;
  appearance: none;
  max-width: 120px;
}
@media (max-width: 900px) {
  .header-ctx-cluster { gap: 6px; padding: 5px 6px 5px 10px; }
  .header-ctx-v, .header-period-select { max-width: 84px; font-size: 0.78rem; }
  .header-ctx-item:not(:last-of-type) { padding-right: 8px; }
}
@media (max-width: 560px) {
  .header-ctx-item .header-ctx-k { display: none; }
  .header-ctx-v, .header-period-select { max-width: 60px; }
}
.user-card {
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  position: relative;
  z-index: 10;
}
.user-initials {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  color: white;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.user-info {
  overflow: hidden;
  flex: 1;
}
.sidebar-user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user-role {
  font-size: 0.72rem;
  color: #34d399;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-settings-btn {
  background: var(--role-accent-subtle, rgba(99, 102, 241, 0.14));
  border: none;
  color: var(--role-accent, #a5b4fc);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s;
}
.user-settings-icon {
  color: var(--role-accent, #a5b4fc);
}
.sidebar-nav-spacer {
  height: 140px;
  min-height: 140px;
  flex-shrink: 0;
}
.superadmin-heading {
  color: var(--role-accent, #ef4444);
  font-size: 0.7rem;
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.root-badge {
  background: var(--role-accent-subtle, rgba(239, 68, 68, 0.15));
  border: 1px solid var(--role-accent, #ef4444);
  color: var(--role-accent, #ef4444);
  font-size: 0.6rem;
  padding: 2px 6px;
  font-weight: 800;
  border-radius: 4px;
}
.saas-admin-nav-item {
  text-decoration: none;
  background: linear-gradient(135deg, var(--role-accent, #b91c1c) 0%, var(--role-accent-hover, #ef4444) 100%);
  color: var(--text-on-accent, #ffffff) !important;
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 10px 14px;
  box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800;
}
.saas-admin-icon {
  color: var(--text-on-accent, #ffffff);
  flex-shrink: 0;
}
.saas-admin-text {
  font-weight: 800;
  color: var(--text-on-accent, #ffffff) !important;
  font-size: 0.9rem;
}
.saas-admin-badge {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.25);
  color: var(--text-on-accent, #ffffff);
  font-weight: 800;
  border-radius: 6px;
}
.sidebar-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-subsection-heading {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.gib-heading {
  padding: 6px 12px 2px 12px;
  color: var(--role-accent, #818cf8);
}
.local-invoice-heading {
  padding: 10px 12px 2px 12px;
  color: #34d399;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
}
.nav-badge {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 2px 6px;
}
.settings-nav-item {
  text-decoration: none;
  background: var(--role-accent-subtle, rgba(99, 102, 241, 0.16));
  border: 1px solid var(--role-accent, rgba(99, 102, 241, 0.4));
  font-weight: 800;
  border-radius: 8px;
  margin-top: 4px;
  margin-bottom: 4px;
}
.settings-icon {
  color: var(--role-accent, #818cf8);
}
.settings-text {
  color: var(--role-accent, var(--primary)) !important;
  font-weight: 800;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-badge {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 2px 6px;
  background: var(--role-accent, #6366f1);
  color: #fff;
  font-weight: 800;
  border-radius: 4px;
  flex-shrink: 0;
}
.company-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
}
.company-modal-card {
  background: var(--bg-modal);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}
.company-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.company-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.company-modal-close {
  background: var(--bg-surface-hover);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.company-modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-bottom: 14px;
  margin-top: -6px;
}
.company-modal-search {
  margin-bottom: 14px;
}
.company-search-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
}
.company-modal-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}
.company-modal-item {
  padding: 12px 16px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}
.company-modal-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(124, 58, 237, 0.25) 100%);
  border-color: var(--role-accent, #6366f1);
}
.company-item-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.company-item-name.active {
  color: var(--role-accent, var(--primary));
}
.company-item-tax {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.company-active-badge {
  background: #10b981;
  color: #000;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 8px;
}
.company-modal-footer {
  margin-top: 20px;
  text-align: right;
}
.company-modal-btn {
  padding: 10px 22px;
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.88rem;
}
.quick-action-dropdown {
  display: block;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1000;
  width: 200px;
}
.theme-menu-dropdown {
  display: block;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1000;
  width: 230px;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  background: var(--bg-dropdown);
  border: var(--glass-border);
}
.theme-menu-header {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px 8px 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.theme-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.theme-menu-item.active {
  background-color: var(--role-accent-subtle, rgba(99, 102, 241, 0.15));
  border-left: 3px solid var(--role-accent, var(--primary));
}
.theme-menu-item-icon {
  font-size: 1.1rem;
}
.theme-menu-item-title {
  font-size: 0.85rem;
  color: var(--text-primary);
}
.theme-menu-item-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.logout-form {
  display: inline-block;
  margin-left: 10px;
}
.logout-button {
  color: var(--danger-text);
}
.impersonation-banner {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #000000;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  position: relative;
  z-index: 1000;
}
.impersonation-text {
  display: flex;
  align-items: center;
  gap: 10px;
}
.impersonation-exit-btn {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 6px 16px;
  font-weight: 800;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.license-trial-banner {
  background: linear-gradient(90deg, #6366f1, #4f46e5);
  color: #ffffff;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}
.license-trial-text {
  display: flex;
  align-items: center;
  gap: 10px;
}
.license-trial-btn {
  background: #ffffff;
  color: #4f46e5;
  border: none;
  padding: 5px 14px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}
.license-expired-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.license-expired-card {
  background: #1e293b;
  border: 1px solid #ef4444;
  border-radius: 16px;
  padding: 36px;
  max-width: 480px;
  text-align: center;
  color: #f8fafc;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7);
}
.license-expired-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}
.license-expired-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f87171;
  margin-bottom: 12px;
}
.license-expired-msg {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}
.license-expired-btn {
  width: 100%;
  padding: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}
/* ==========================================================================
   Rol Bazlı Vurgu Rengi Katmanı (data-theme'den bağımsız, üstüne biner)
   ========================================================================== */
[data-role="customer"] {
  --role-accent: #4338ca;
  --role-accent-hover: #3730a3;
  --role-accent-subtle: #e0e7ff;
  --role-label: "Müşteri Portalı";
}
[data-role="dealer"] {
  --role-accent: #ea580c;
  --role-accent-hover: #c2410c;
  --role-accent-subtle: #ffedd5;
  --role-label: "Bayi Paneli";
}
[data-role="admin"] {
  --role-accent: #b91c1c;
  --role-accent-hover: #991b1b;
  --role-accent-subtle: #fee2e2;
  --role-label: "Süper Admin";
}
[data-theme="dark"][data-role="customer"],
body.dark-theme[data-role="customer"],
body.eye-care-theme[data-role="customer"],
body.high-contrast-theme[data-role="customer"],
body.deniz-theme[data-role="customer"],
body.sunset-theme[data-role="customer"],
body.grafit-theme[data-role="customer"] {
  --role-accent: #6366f1;
  --role-accent-hover: #818cf8;
  --role-accent-subtle: rgba(99, 102, 241, 0.15);
}
[data-theme="dark"][data-role="dealer"],
body.dark-theme[data-role="dealer"],
body.eye-care-theme[data-role="dealer"],
body.high-contrast-theme[data-role="dealer"],
body.deniz-theme[data-role="dealer"],
body.sunset-theme[data-role="dealer"],
body.grafit-theme[data-role="dealer"] {
  --role-accent: #fb923c;
  --role-accent-hover: #fdba74;
  --role-accent-subtle: rgba(251, 146, 60, 0.15);
}
[data-theme="dark"][data-role="admin"],
body.dark-theme[data-role="admin"],
body.eye-care-theme[data-role="admin"],
body.high-contrast-theme[data-role="admin"],
body.deniz-theme[data-role="admin"],
body.sunset-theme[data-role="admin"],
body.grafit-theme[data-role="admin"] {
  --role-accent: #ef4444;
  --role-accent-hover: #f87171;
  --role-accent-subtle: rgba(239, 68, 68, 0.15);
}
/* ==========================================================================
   Auth / Login Component Styles (Design Tokens Driven)
   ========================================================================== */
.auth-page-wrapper { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: var(--bg-app); padding: var(--space-md); position: relative; transition: background-color var(--transition-smooth); }
.auth-theme-bar { position: absolute; top: var(--space-lg); right: var(--space-lg); }
.theme-toggle-btn { display: flex; align-items: center; gap: var(--space-xs); padding: 6px 12px; background-color: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-secondary); font-family: var(--font-sans); font-size: 0.825rem; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-sm); transition: all var(--transition-fast); }
.theme-toggle-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.auth-container { background-color: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: var(--space-xl); width: 100%; max-width: 440px; box-shadow: var(--shadow-md); transition: all var(--transition-smooth); }
.auth-header { text-align: center; margin-bottom: var(--space-lg); }
.auth-brand-badge { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; background-color: var(--accent-primary); color: var(--text-on-accent); border-radius: var(--radius-md); margin-bottom: var(--space-sm); box-shadow: var(--shadow-sm); }
.auth-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--text-primary); margin: 0; letter-spacing: -0.5px; }
.auth-subtitle { font-family: var(--font-sans); font-size: 0.875rem; color: var(--text-secondary); margin-top: var(--space-xs); }
.auth-error-alert { margin-bottom: var(--space-md); color: var(--accent-danger); background-color: var(--accent-danger-subtle); border: 1px solid var(--accent-danger); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); font-size: 0.85rem; display: flex; align-items: center; gap: var(--space-sm); }
.auth-form-content { display: flex; flex-direction: column; gap: var(--space-md); }
.auth-field { display: flex; flex-direction: column; gap: var(--space-xs); }
.auth-label { font-family: var(--font-sans); font-size: 0.825rem; color: var(--text-secondary); font-weight: 600; }
.auth-input { padding: 10px 14px; background-color: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-sans); font-size: 0.925rem; outline: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.auth-input:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-primary-subtle); }
.auth-options { display: flex; justify-content: space-between; align-items: center; font-size: 0.825rem; color: var(--text-secondary); margin-top: var(--space-xs); }
.auth-checkbox-label { display: flex; align-items: center; gap: var(--space-xs); cursor: pointer; }
.auth-checkbox { accent-color: var(--accent-primary); cursor: pointer; }
.auth-link { color: var(--accent-primary); text-decoration: none; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }
.auth-submit-btn { width: 100%; padding: 12px; font-family: var(--font-sans); font-weight: 700; background-color: var(--role-accent, var(--accent-primary)); color: var(--text-on-accent); border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.95rem; margin-top: var(--space-xs); box-shadow: var(--shadow-sm); transition: background-color var(--transition-fast), transform var(--transition-fast); }
.auth-submit-btn:hover { background-color: var(--role-accent-hover, var(--accent-primary-hover)); transform: translateY(-1px); }
.auth-submit-btn-focusable:focus-visible { outline: 2px solid var(--role-accent, var(--accent-primary)); outline-offset: 2px; }
.auth-card-footer { text-align: center; margin-top: var(--space-lg); font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid var(--border-color); padding-top: var(--space-md); }
.auth-card-footer p { margin: 0; }
.auth-link-bold { color: var(--accent-primary); text-decoration: none; font-weight: 700; }
.auth-link-bold:hover { text-decoration: underline; }
@media screen and (max-width: 767px) {
  .auth-page-wrapper { padding: var(--space-sm); justify-content: flex-start; padding-top: 60px; }
  .auth-container { max-width: 100%; padding: var(--space-lg) var(--space-md); border-radius: var(--radius-sm); }
  .auth-theme-bar { top: var(--space-md); right: var(--space-md); }
}

/* ==========================================================================
   Ortak Boş Durum (Empty State) Sınıfı & Mobil Tablo Kart Dönüşümü
   ========================================================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  gap: 10px;
}

.empty-state-icon {
  color: var(--text-muted);
  opacity: 0.6;
  margin-bottom: 4px;
}

.empty-state-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0;
}

.empty-state-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 320px;
}

/* ==========================================================================
   .custom-table / .data-table Masaüstü Temel Görünümü
   Bu sınıflar 23+ dosyada kullanılıyordu ama sadece mobil (@media max-width:600px)
   kuralları tanımlıydı - masaüstünde tamamen stilsiz (kenarlıksız, başlıksız) düz
   HTML tablo olarak render oluyorlardı. Bu blok eksik masaüstü temelini sağlar.
   ========================================================================== */
.custom-table, .data-table {
  width: 100%;
  border-collapse: collapse;
}
.custom-table thead, .data-table thead {
  background-color: var(--bg-table-header);
}
.custom-table th, .data-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}
.custom-table td, .data-table td {
  padding: 10px 12px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}
.custom-table tbody tr, .data-table tbody tr {
  transition: background-color 0.15s ease;
}
.custom-table tbody tr:hover, .data-table tbody tr:hover {
  background-color: var(--bg-card-hover);
}

@media screen and (max-width: 600px) {
  .custom-table, .data-table {
    display: block;
    width: 100%;
  }
  .custom-table thead, .data-table thead {
    display: none;
  }
  .custom-table tbody, .data-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .custom-table tr, .data-table tr {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 12px 14px;
    gap: 8px;
    width: 100% !important;
  }
  /* !important gerekli: bircok tabloda <td style="padding:12px"> gibi inline
     stiller var, bunlar external kural olmadan inline'i asamaz - kartlarin
     devasa/bosluklu gorunmesinin sebebi buydu. width/text-align icin de ayni. */
  .custom-table td, .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 5px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    text-align: right !important;
    font-size: 0.84rem;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  /* td'nin ic gorsel/metin cocuklari (span/div) da flex ogesi oldugu icin
     ayni min-width:auto sinirlamasina takilip tasabiliyordu. */
  .custom-table td > *, .data-table td > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .custom-table td:empty, .data-table td:empty {
    display: none !important;
  }
  .custom-table td:last-child, .data-table td:last-child {
    border-bottom: none !important;
  }
  .custom-table td::before, .data-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
  }
  .custom-table td[data-label=""]::before, .data-table td[data-label=""]::before,
  .custom-table td:not([data-label])::before, .data-table td:not([data-label])::before {
    content: none;
  }
  /* Aksiyon butonlari (Tahsilat/Odeme/Detaylar vb.) genelde inline
     flex-wrap:nowrap ile satir disina tasiyordu - kartta sarsin diye zorlandi. */
  .custom-table td > div, .data-table td > div {
    flex-wrap: wrap !important;
  }
}

/* Fatura Girisi ust bilgi karti: Cari/Tarih/Finansal 3 sabit sutundu
   (1.2fr 1fr 1fr), dar ekranda her sutun birkac on piksele sikisip
   alanlar kullanilamaz hale geliyordu. */
@media screen and (max-width: 900px) {
  .fatura-main-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Fatura Girisi Siparis/Irsaliye sekmesi: Siparis Bilgileri / Irsaliye & Sevkiyat
   Bilgileri sabit 2 sutundu, dar ekranda basliklar kesiliyor ve sag sutun
   ekran disina tasiyordu. */
@media screen and (max-width: 900px) {
  .fatura-siparis-grid {
    grid-template-columns: 1fr !important;
  }
  .fatura-siparis-grid > div:first-child {
    border-right: none !important;
    padding-right: 0 !important;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px !important;
  }
}


/* SaaS Admin kısayolu - özgüllük çakışmalarını kesin çözüm için
   üç seviyeli seçiciler, .nav-item .nav-icon (2 seviye) ve benzeri
   genel kuralları güvenle ezer */
.sidebar-nav .saas-admin-nav-item {
  background: linear-gradient(135deg, var(--role-accent, #b91c1c) 0%, var(--role-accent-hover, #ef4444) 100%) !important;
  box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4) !important;
}

.sidebar-nav .saas-admin-nav-item .nav-icon,
.sidebar-nav .saas-admin-nav-item .saas-admin-icon {
  color: var(--text-on-accent, #ffffff) !important;
}

.sidebar-nav .saas-admin-nav-item .nav-text,
.sidebar-nav .saas-admin-nav-item .saas-admin-text {
  color: var(--text-on-accent, #ffffff) !important;
  font-weight: 800 !important;
}

.sidebar-nav .saas-admin-nav-item .badge,
.sidebar-nav .saas-admin-nav-item .saas-admin-badge {
  background: rgba(255, 255, 255, 0.25) !important;
  color: var(--text-on-accent, #ffffff) !important;
}

/* Bu link için :hover ve olası .active durumunu da kırmızı
   gradient ile tutarlı tut, genel .nav-item:hover / .nav-item.active
   kurallarının ezmesini engelle */
.sidebar-nav a.saas-admin-nav-item:hover,
.sidebar-nav a.saas-admin-nav-item.active {
  background: linear-gradient(135deg, var(--role-accent, #b91c1c) 0%, var(--role-accent-hover, #ef4444) 100%) !important;
  color: var(--text-on-accent, #ffffff) !important;
  transform: translateX(3px);
}

.sidebar-nav a.saas-admin-nav-item:hover .nav-icon,
.sidebar-nav a.saas-admin-nav-item.active .nav-icon,
.sidebar-nav a.saas-admin-nav-item:hover .nav-text,
.sidebar-nav a.saas-admin-nav-item.active .nav-text {
  color: var(--text-on-accent, #ffffff) !important;
}

/* ==========================================================================
   Excel Tarzı Grid Çizgileri & Zebra Striping (Fatura Tablosu)
   ========================================================================== */
.excel-grid-table,
.modern-invoice-table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  width: 100%;
}

.excel-grid-table th,
.excel-grid-table td,
.modern-invoice-table th,
.modern-invoice-table td {
  border: 1px solid var(--border-color) !important;
}

.excel-grid-table th,
.modern-invoice-table th {
  background-color: var(--bg-table-header, var(--bg-card)) !important;
  border-bottom: 2px solid var(--border-color) !important;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 10px !important;
  font-size: 0.78rem !important;
}

.excel-grid-table td,
.modern-invoice-table td {
  padding: 7px 10px !important;
  font-size: 0.81rem !important;
}


.excel-grid-table tbody tr,
.modern-invoice-table tbody tr {
  background-color: var(--bg-card);
}

/* Zebra striping for even rows */
.excel-grid-table tbody tr:nth-child(even),
.modern-invoice-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.028) !important;
}

body.light-theme .excel-grid-table tbody tr:nth-child(even),
body.light-theme .modern-invoice-table tbody tr:nth-child(even),
[data-theme="light"] .excel-grid-table tbody tr:nth-child(even),
[data-theme="light"] .modern-invoice-table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.022) !important;
}

/* Hover effect */
.excel-grid-table tbody tr:hover,
.modern-invoice-table tbody tr:hover {
  background-color: rgba(94, 92, 230, 0.08) !important;
}

/* Selected row effect */
.excel-grid-table tbody tr.row-selected,
.modern-invoice-table tbody tr.row-selected {
  background-color: rgba(94, 92, 230, 0.14) !important;
}

/* ==========================================================================
   Satır sağ-tık / hızlı aksiyon menüsü (Cari, Stok, Kasa, Banka, Fatura,
   Personel, İrsaliye/Sipariş modüllerinde ortak kullanılır)
   ========================================================================== */
.row-context-menu,
.context-menu {
  animation: fadeInMenu 0.15s ease-out;
}
.context-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 8px);
  padding: 8px 14px;
  font-size: 0.825rem;
  background: none;
  border: none;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 4px;
  margin: 0 4px;
}
.context-item:hover {
  background: rgba(94, 92, 230, 0.15);
  color: var(--primary);
  padding-left: 18px;
}
.context-item.text-danger {
  color: var(--danger-text);
}
.context-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger-text);
}
@keyframes fadeInMenu {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* ============================================================
   MOBIL: SABIT SUTUNLU GRID'LERI TEK SUTUNA INDIRME (yardimci sinif)
   ------------------------------------------------------------
   Sayfalarda "display: grid; grid-template-columns: 1fr 1fr" gibi SABIT
   sutun sayilari inline style ile yaziliyor. Inline style, ozgullukte her
   zaman sinif kurallarini yendigi icin normal bir media query bunlari
   ezemez - bu yuzden !important gerekiyor (ayni cozum .fatura-main-grid ve
   .fatura-siparis-grid icin de kullanildi).

   Kullanim: sabit sutunlu grid div'ine class="bd-grid-collapse" ekle.
   Masaustunde hicbir sey degismez; 900px altinda tek sutuna iner.
   ============================================================ */
@media screen and (max-width: 900px) {
  .bd-grid-collapse {
    grid-template-columns: 1fr !important;
  }
}

/* Modul sekmeleri (Stok/Cari sayfalarindaki ust sekme seridi) dar ekranda
   yan yana sigmayip yatay tasma yaratiyordu. Sarma her zaman aciktir;
   genis ekranda zaten tek satira sigdigi icin gorunum degismez. */
.module-tabs {
  flex-wrap: wrap;
}
