/* ==========================================================================
   WLC LOJİSTİK - SOL MENÜLÜ (SIDEBAR) & ÇİFT TEMA KURUMSAL YÖNETİM PANELİ
   ========================================================================== */

/* 1. AÇIK (BEYAZ) TEMA - ULTRA NET KURUMSAL */
:root,
:root[data-theme="light"] {
  --bg-app: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-topbar: #ffffff;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-focus: #2563eb;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.08);

  --success: #059669;
  --success-light: #ecfdf5;
  --success-border: #a7f3d0;

  --warning: #d97706;
  --warning-light: #fffbeb;
  --warning-border: #fde68a;

  --danger: #dc2626;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 25px -4px rgba(0, 0, 0, 0.12);

  --table-hover: #f8fafc;
  --input-bg: #f8fafc;
}

/* 2. KOYU TEMA - LÜKS SAFİR */
:root[data-theme="dark"] {
  --bg-app: #090d16;
  --bg-sidebar: #0f172a;
  --bg-topbar: #0f172a;
  --bg-surface: #131d31;
  --bg-card: #131d31;
  --bg-subtle: #1e293b;
  --border-color: #22324f;
  --border-subtle: #19263e;
  --border-focus: #3b82f6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: rgba(59, 130, 246, 0.15);

  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.15);
  --success-border: rgba(16, 185, 129, 0.3);

  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.15);
  --warning-border: rgba(245, 158, 11, 0.3);

  --danger: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.15);
  --danger-border: rgba(239, 68, 68, 0.3);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 16px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 30px -4px rgba(0, 0, 0, 0.7);

  --table-hover: #1e293b;
  --input-bg: #090d16;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: hidden;
}

.svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   1. SİNEMATİK İNTRO & SPLIT LOGIN
   ========================================================================== */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0f172a 20%, #020617 100%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.intro-overlay.intro-fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.intro-background-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  perspective: 500px;
  transform: rotateX(45deg) translateY(-50px);
  pointer-events: none;
}

.intro-topbar {
  position: absolute;
  top: 2rem;
  left: 2.5rem;
  right: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
}

.intro-brand-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #94a3b8;
}

.intro-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.btn-skip-intro {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-skip-intro:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--primary);
  transform: translateX(2px);
}

.intro-stage-item {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 780px;
  width: 100%;
  animation: introStageIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-stage-item.active { display: flex; }

@keyframes introStageIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.stage-visual-box {
  position: relative;
  width: 280px;
  height: 140px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cinema-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.5));
}

.stage-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.stage-caption h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.stage-caption p {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 540px;
  line-height: 1.6;
}

.intro-progress-track {
  position: absolute;
  bottom: 2rem;
  left: 2.5rem;
  right: 2.5rem;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.intro-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  box-shadow: 0 0 10px #3b82f6;
  transition: width 0.4s ease;
}

/* ==========================================================================
   4K LOJİSTİK OPERASYON VİTRİNİ & KESKİN HATLI İNCE YÖNETİCİ GİRİŞ EKRANI
   ========================================================================== */
.executive-split-login {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  background-color: #070a12;
  overflow: hidden;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* SOL TARAF: 4K GÖRSEL VİTRİN */
.login-hero-visual-side {
  flex: 1.65;
  background: url('../assets/logistics_hero_4k.jpg') center center / cover no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.5rem 4rem;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.42s cubic-bezier(0.75, 0, 0.25, 1);
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(180deg, rgba(7, 10, 18, 0.45) 0%, rgba(7, 10, 18, 0.1) 40%, rgba(7, 10, 18, 0.85) 100%),
    linear-gradient(90deg, transparent 70%, #0b0f19 100%);
  pointer-events: none;
}

.hero-top-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(7, 10, 18, 0.65);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  align-self: flex-start;
}

.hero-brand-mark {
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.08em;
}

.hero-brand-line {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.25);
}

.hero-brand-desc {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.14em;
}

.hero-bottom-info {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-modes-tag {
  display: inline-block;
  background: #1e3a8a;
  color: #93c5fd;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.hero-main-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-sub-title {
  font-size: 0.95rem;
  color: #cbd5e1;
  font-weight: 400;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

/* SAĞ TARAF: İNCE, DİKEY, KESKİN HATLI GİRİŞ KOLONU */
.login-sidebar-panel {
  width: 440px;
  min-width: 400px;
  background: #0b0f19;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 2.5rem;
  z-index: 3;
  will-change: width, transform;
  transition: width 0.38s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s ease;
}

.login-sidebar-panel .sidebar-auth-body,
.login-sidebar-panel .sidebar-auth-header,
.login-sidebar-panel .sidebar-auth-footer {
  transition: opacity 0.15s ease, transform 0.2s ease;
}

/* 2. SEÇENEK: DİKEY SAHNE YÜKSELMESİ (STAGE ELEVATOR LIFT) */
.executive-split-login {
  will-change: transform;
  transition: transform 0.38s cubic-bezier(0.77, 0, 0.175, 1);
}

.executive-split-login.elevator-lift {
  transform: translateY(-100%);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.95);
}

/* Portala Giriş Efekti */
.portal-app-layout.elevator-reveal {
  animation: elevatorPortalIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes elevatorPortalIn {
  0% { transform: translateY(30px); opacity: 0.85; }
  100% { transform: translateY(0); opacity: 1; }
}

.sidebar-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.sidebar-system-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.08em;
}

.sidebar-auth-body {
  margin: auto 0;
  padding: 1.5rem 0;
}

.auth-section-title {
  margin-bottom: 1.75rem;
}

.auth-section-title h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem 0;
}

.auth-section-title p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
}

.sharp-error-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 0.65rem 0.85rem;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.sharp-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.sharp-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sharp-form-group label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
}

.sharp-input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: #070a12;
  border: 1px solid #1e293b;
  border-radius: 2px;
  font-size: 0.88rem;
  color: #f8fafc;
  outline: none;
  transition: all 0.15s ease;
}

.sharp-input:focus {
  border-color: #2563eb;
  background: #090e1a;
  box-shadow: 0 0 0 1px #2563eb;
}

.sharp-pw-container {
  position: relative;
  display: flex;
  align-items: center;
}

.sharp-pw-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  color: #3b82f6;
  letter-spacing: 0.05em;
  padding: 0;
}

.sharp-pw-toggle:hover {
  color: #60a5fa;
}

.sharp-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-top: -0.2rem;
  margin-bottom: 0.35rem;
}

.sharp-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #94a3b8;
}

.sharp-ssl-indicator {
  font-size: 0.68rem;
  color: #10b981;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.sharp-submit-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #1d4ed8;
  color: #ffffff;
  border: 1px solid #2563eb;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sharp-submit-btn:hover {
  background: #2563eb;
  border-color: #3b82f6;
}

/* HIZLI YETKİLİ SEÇİMİ */
.sharp-quick-section {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sharp-quick-header {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.sharp-quick-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.sharp-quick-btn {
  background: #070a12;
  border: 1px solid #1e293b;
  border-radius: 2px;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sharp-quick-btn:hover {
  background: #0e1526;
  border-color: #2563eb;
}

.quick-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
}

.quick-sub {
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 2px;
}

.sidebar-auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  color: #64748b;
  letter-spacing: 0.04em;
}

.footer-powered span {
  color: #64748b;
}

.footer-powered strong {
  color: #38bdf8;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-version {
  font-size: 0.65rem;
  font-weight: 700;
  color: #475569;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 2px;
}


/* ==========================================================================
   2. SOL SABİT MENÜLÜ ANA DÜZEN (SIDEBAR LAYOUT)
   ========================================================================== */
.portal-app-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  background-color: var(--bg-app);
}

/* SOL KENAR MENÜSÜ */
.sidebar-wrapper {
  width: 280px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 100;
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.sidebar-brand {
  padding: 1.35rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-emblem-box {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.brand-text-col h2 {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.675rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-section {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

/* DİKEY AY SEÇİCİ */
.month-selector-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.month-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}

.month-btn-row:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.month-btn-row.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  font-weight: 700;
}

.month-badge-pill {
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.1);
}

:root[data-theme="dark"] .month-badge-pill {
  background: rgba(255, 255, 255, 0.15);
}

.month-btn-row.active .month-badge-pill {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* SİDEBAR NAVİGASYON MENÜSÜ */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav .nav-tab {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.sidebar-nav .nav-tab:hover {
  background-color: var(--bg-subtle);
  color: var(--primary);
}

.sidebar-nav .nav-tab.active {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  border-left: 3px solid var(--primary);
}

.sidebar-footer {
  margin-top: auto;
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-btn-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}

.sidebar-btn-link:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}


/* ==========================================================================
   3. SAĞ ANA ALAN & ÜST BAR (TOPBAR)
   ========================================================================== */
.portal-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}

.portal-topbar {
  height: 64px;
  background-color: var(--bg-topbar);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
  gap: 1rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.65rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-main);
  white-space: nowrap;
}

.btn-icon-bell {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.btn-icon-bell:hover {
  background: var(--bg-card);
  border-color: var(--color-primary);
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.topbar-menu-item {
  width: 100%;
  padding: 8px 14px;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.15s ease;
}

.topbar-menu-item:hover {
  background: var(--bg-subtle);
}

.topbar-notif-item {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: background 0.15s ease;
}

.topbar-notif-item.unread {
  background: rgba(59, 130, 246, 0.05);
}

.topbar-notif-item:hover {
  background: var(--bg-subtle);
}

.file-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-main);
  white-space: nowrap;
}

.badge-count {
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.725rem;
}

/* LÜKS YÖNETİCİ PROFİL KARTI (SAĞ ÜST) */
.executive-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  margin-left: 0.5rem;
}

.executive-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.executive-meta {
  display: flex;
  flex-direction: column;
}

.executive-name {
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.executive-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.1;
}

.btn-logout-circle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.btn-logout-circle:hover {
  color: var(--danger);
}


/* ==========================================================================
   4. ANA İÇERİK & KPI KARTLARI (KOMPAKT & MİNİMAL)
   ========================================================================== */
.main-wrapper {
  max-width: 1680px;
  width: 100%;
  padding: 1rem 1.25rem 2.5rem 1.25rem;
  flex: 1;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.kpi-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-icon {
  display: flex;
  align-items: center;
  color: var(--primary);
}

.kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.kpi-footer {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   5. SEKME PANELLERİ & KARTLAR
   ========================================================================== */
.tab-content-panel {
  display: none;
  animation: fadeIn 0.2s ease;
}

.tab-content-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 1100px) {
  .charts-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1rem;
}

.card-header {
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.card-subtitle {
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.card-body {
  padding: 0.85rem 1.15rem;
}

.chart-container {
  position: relative;
  height: 280px;
  width: 100%;
}

/* ==========================================================================
   TABLOLAR & KOMPAKT ERP DATA GRID
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.785rem;
  text-align: left;
  line-height: 1.25;
}

.data-table th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  user-select: none;
}

.data-table td {
  padding: 0.4rem 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.data-table tbody tr {
  transition: background-color 0.1s ease;
}

.data-table tbody tr:hover {
  background-color: var(--table-hover);
}

/* KOMPAKT VE TEK SATIR PLAKA ETİKETİ */
.plate-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-break: keep-all;
  background: var(--bg-subtle);
  color: var(--primary);
  border: 1px solid var(--border-color);
  font-family: 'Consolas', 'SFMono-Regular', Menlo, Monaco, monospace;
  font-weight: 800;
  font-size: 0.735rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* HÜCRE BUDAMA & GENİŞLİK KONTROLLERİ */
.cell-truncate-sm {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-truncate-md {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-nowrap {
  white-space: nowrap;
}

/* TABLO SABİT ALT TOPLAM SATIRI (FOOTER ROW) */
.table-summary-foot {
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.table-summary-foot tr {
  background: var(--bg-subtle) !important;
  border-top: 2px solid var(--primary) !important;
  border-bottom: 2px solid var(--border-color) !important;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
}

.table-summary-foot td {
  padding: 0.55rem 0.65rem !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

/* BUTONLAR & MİKRO AKSİYONLAR */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background-color: var(--bg-surface);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
  border-color: var(--primary);
}

.btn-sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
}

.btn-xs {
  padding: 0.18rem 0.45rem;
  font-size: 0.7rem;
  border-radius: 4px;
}

.btn-micro {
  padding: 0.15rem 0.35rem;
  font-size: 0.7rem;
  border-radius: 4px;
  line-height: 1.1;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.75rem;
  gap: 0.5rem;
  color: var(--text-muted);
  width: 280px;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.8rem;
  width: 100%;
}

.form-select {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.775rem;
  background: var(--bg-surface);
  color: var(--text-main);
  outline: none;
}

/* ROZETLER */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
}

.badge-primary { background: var(--primary-light); color: var(--primary); border: 1px solid rgba(37, 99, 235, 0.3); }
.badge-success { background: var(--success-light); color: var(--success); border: 1px solid var(--success-border); }
.badge-warning { background: var(--warning-light); color: var(--warning); border: 1px solid var(--warning-border); }
.badge-danger { background: var(--danger-light); color: var(--danger); border: 1px solid var(--danger-border); }
.badge-info { background: rgba(6, 182, 212, 0.15); color: #0284c7; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-light { background: var(--bg-subtle); color: var(--text-muted); border: 1px solid var(--border-color); }

.text-profit { color: var(--success); }
.text-loss { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 600; }

/* MODALLAR & TOAST */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active { display: flex; }

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body .form-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 0;
}

.modal-body .form-group label {
  display: block;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  height: 1.1rem;
}

.modal-body .form-control,
.modal-body .form-select {
  width: 100%;
  padding: 0.45rem 0.65rem;
  font-size: 0.825rem;
  height: 38px;
  box-sizing: border-box;
}

.modal-body textarea.form-control {
  height: auto;
}

.mapping-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.mapping-table th, .mapping-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.825rem;
}

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-aur-link {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  display: inline-block;
  font-family: inherit;
}
.btn-aur-link span {
  transition: all 0.15s ease;
}
.btn-aur-link:hover span {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 2px 6px rgba(14, 116, 144, 0.3);
  transform: translateY(-1px);
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  animation: slideUp 0.25s ease;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pagination-container {
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* HERO */
.empty-state-hero {
  max-width: 860px;
  margin: 3rem auto;
  text-align: center;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
}

.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--primary-light);
  border-radius: 50%;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.hero-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2rem auto;
}

.hero-dropzone {
  background: var(--bg-subtle);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 2rem;
}

.hero-dropzone:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.supported-headers-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: left;
  border: 1px solid var(--border-color);
}

.supported-headers-box h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.headers-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.headers-tags span {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   MODAL NAV TABS & FLEET DRIVER REPEATER
   ========================================================================== */
.modal-nav-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  padding: 0 1.25rem;
  background: var(--bg-subtle);
}

.modal-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 0.65rem 1rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.modal-tab-btn:hover {
  color: var(--text-main);
}

.modal-tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: var(--bg-surface);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.modal-tab-pane {
  display: none;
}

.modal-tab-pane.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.driver-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.driver-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(14, 116, 144, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(14, 116, 144, 0.3);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-call:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-whatsapp:hover {
  background: #10b981;
  color: #ffffff;
}

/* ==========================================================================
   ULTRA MODERN CARI KART MODAL THEME
   ========================================================================== */
.cari-modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cari-hero-header {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cari-hero-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cari-avatar-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(14, 116, 144, 0.3);
  flex-shrink: 0;
}

.cari-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cari-company-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.02em;
}

.cari-meta-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cari-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* 4'LÜ KPI GRID */
.cari-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
}

.cari-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.15s ease;
}

.cari-kpi-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.cari-kpi-card.highlight-debt {
  background: var(--bg-surface);
}

.cari-kpi-label {
  font-size: 0.675rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cari-kpi-val {
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 1px;
}

/* PILL SEKMELER */
.cari-nav-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem 0 1.5rem;
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-surface);
}

.cari-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 0.65rem 1.15rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all 0.15s ease;
}

.cari-tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.cari-tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: var(--bg-surface);
}

/* ŞOFÖR KARTLARI GRID */
.cari-driver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.cari-driver-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  transition: all 0.15s ease;
}

.cari-driver-box:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.eu-plate-box {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-weight: 800;
  font-size: 0.825rem;
  overflow: hidden;
  letter-spacing: 0.04em;
}

.eu-plate-flag {
  background: var(--bg-surface);
  color: var(--text-muted);
  border-right: 1px solid var(--border-color);
  padding: 2px 6px;
  font-size: 0.65rem;
  font-weight: 800;
}

.eu-plate-text {
  padding: 2px 8px;
}

/* DEPARTMAN & FİNANS KARTLARI (TEMİZ KURUMSAL ÇERÇEVE) */
.cari-dept-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cari-dept-card:hover {
  border-color: rgba(14, 116, 144, 0.4);
}

.cari-dept-header {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cari-dept-badge {
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cari-dept-body {
  padding: 1rem;
}

.cari-dept-item {
  margin-bottom: 0.65rem;
}
.cari-dept-item:last-child {
  margin-bottom: 0;
}

.cari-dept-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
/* ==========================================================================
   DİJİTAL SEFER DOSYASI & EVRAK ÇANTASI STILLERI
   ========================================================================== */
.dossier-slot-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.dossier-slot-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.dossier-slot-header {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dossier-slot-content {
  padding: 0.85rem;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dossier-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem 0.75rem;
  text-align: center;
  background: var(--bg-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dossier-dropzone:hover, .dossier-dropzone.drag-active {
  border-color: var(--color-primary);
  background: rgba(59, 130, 246, 0.06);
}

.dossier-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  gap: 10px;
}

.dossier-file-info {
  flex: 1;
  min-width: 0;
}

.dossier-file-name {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dossier-file-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.dossier-file-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

/* ==========================================================================
   FATURA DURUMU & SATIR BOYAMA VURGULARI
   ========================================================================== */
tr.row-invoiced {
  background: rgba(16, 185, 129, 0.08) !important;
  border-left: 4px solid #10b981 !important;
  transition: background-color 0.2s ease;
}

tr.row-invoiced:hover {
  background: rgba(16, 185, 129, 0.14) !important;
}

tr.row-requested {
  background: rgba(59, 130, 246, 0.06) !important;
  border-left: 4px solid #3b82f6 !important;
  transition: background-color 0.2s ease;
}

tr.row-requested:hover {
  background: rgba(59, 130, 246, 0.12) !important;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   FİYATLAMA & TEDARİKÇİ İHALE MASASI (CARRIER RFQ & TENDER HUB) STİLLERİ
   ========================================================================== */
.rfq-item-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.rfq-item-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.rfq-item-card.active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.04);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.rfq-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.rfq-route-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.rfq-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.rfq-bid-board-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  margin-bottom: 0.6rem;
  transition: all 0.15s ease;
}

.rfq-bid-board-row:hover {
  background: var(--bg-card);
}

.rfq-bid-board-row.rank-1 {
  background: rgba(16, 185, 129, 0.07);
  border-color: rgba(16, 185, 129, 0.3);
  border-left: 4px solid #10b981;
}

.rfq-bid-board-row.rank-2 {
  background: rgba(59, 130, 246, 0.04);
  border-color: rgba(59, 130, 246, 0.2);
  border-left: 4px solid #3b82f6;
}

.rfq-bid-board-row.rank-3 {
  background: rgba(245, 158, 11, 0.04);
  border-color: rgba(245, 158, 11, 0.2);
  border-left: 4px solid #f59e0b;
}

.rfq-rank-badge {
  font-size: 1.1rem;
  width: 28px;
  text-align: center;
}

/* 🏷️ ÇOKLU İHALE HAT & GRUP SEÇİM KARTLARI */
.rfq-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  margin-bottom: 0.75rem;
}

.rfq-group-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 2px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.rfq-group-card:hover {
  border-color: #3b82f6;
  background: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.rfq-group-card.selected {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.08) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2) !important;
}

.rfq-group-card .group-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rfq-group-card .group-card-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.rfq-group-card .group-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rfq-group-card .group-card-name {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rfq-group-card.selected .group-card-name {
  color: #065f46;
}

[data-theme="dark"] .rfq-group-card.selected .group-card-name {
  color: #34d399;
}

.rfq-group-card .group-card-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.rfq-group-card .group-card-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: transparent;
  transition: all 0.15s ease;
  flex-shrink: 0;
  margin-left: 6px;
}

.rfq-group-card.selected .group-card-checkbox {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}





