/**
 * FUNZerviceTech.ai - Modern UI & Design System
 * Copyright (c) 2026 Zafer Koçaş. Tüm Hakları Saklıdır (All Rights Reserved).
 * 5846 sayılı FSEK kapsamında tescillidir. İzinsiz kopyalanamaz ve dağıtılamaz.
 */
/* ==========================================================================
   ServisAI - Modern Design System & Styles
   ========================================================================== */

:root {
  --bg-main: #0B1120;
  --bg-card: #131E36;
  --bg-card-hover: #192746;
  --bg-subtle: #1E2D4E;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(99, 102, 241, 0.5);

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --primary: #6366F1;
  --primary-hover: #4F46E5;
  --primary-glow: rgba(99, 102, 241, 0.25);

  --accent-cyan: #06B6D4;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-rose: #F43F5E;
  --accent-purple: #A855F7;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

/* ==================== Header ==================== */
.app-header {
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 16px var(--primary-glow);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #FFF, #CBD5E1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
}

/* Role Switcher Tabs */
.role-nav {
  display: flex;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  gap: 4px;
}

.role-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.role-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.role-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.role-btn .badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  font-weight: 700;
}

/* Header Meta */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 30px;
}

.user-pill .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-pill .user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ==================== Main Content Layout ==================== */
.app-container {
  flex: 1;
  padding: 20px 28px 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.view-panel {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.view-panel.active {
  display: block;
}

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

/* ==================== Cards & Common Components ==================== */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.card-header .btn-sm {
  padding: 6px 11px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-main);
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

.btn-success {
  background: var(--accent-emerald);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.btn-success:hover {
  background: #059669;
}

.btn-outline-danger {
  background: transparent;
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.4);
}
.btn-outline-danger:hover {
  background: rgba(244, 63, 94, 0.1);
}

.btn-warning {
  background: var(--accent-amber);
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}
.btn-warning:hover {
  background: #d97706;
  color: #fff;
}

.btn-transfer {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-transfer:hover {
  background: #f59e0b;
  color: #0f172a;
  border-color: #f59e0b;
}

.btn-ai {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
}
.btn-ai:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-primary { background: rgba(99, 102, 241, 0.15); color: #818CF8; border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-purple { background: rgba(168, 85, 247, 0.15); color: #C084FC; border: 1px solid rgba(168, 85, 247, 0.3); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.chip-success { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.25); }
.chip-info { background: rgba(6, 182, 212, 0.12); color: var(--accent-cyan); border: 1px solid rgba(6, 182, 212, 0.25); }
.chip-cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.35); }

/* Forms & Inputs */
.form-select, select {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 9px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left !important;
  direction: ltr !important;
}

.form-select:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.form-select option, select option {
  background-color: #131E36;
  color: #F8FAFC;
}

.form-select optgroup, select optgroup {
  background-color: #0B1120;
  color: #94A3B8;
  font-weight: 700;
}

/* ==================== 1. YÖNETİCİ PANELİ DETAYLARI ==================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
}
.kpi-card.accent-blue::before { background: var(--primary); }
.kpi-card.accent-purple::before { background: var(--accent-purple); }
.kpi-card.accent-amber::before { background: var(--accent-amber); }
.kpi-card.accent-emerald::before { background: var(--accent-emerald); }

.kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.kpi-title {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.kpi-subtext {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.admin-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .admin-grid-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ==================== Akıllı Sevk & Çağrı Şeridi (Dispatch Banner) ==================== */
.dispatch-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-normal);
}

.dispatch-banner:hover {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15);
}

/* 1. Üst Satır: Başlık & Rozetler */
.dispatch-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dispatch-banner-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dispatch-badge {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.dispatch-channel-tag {
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* 2. Orta Detay Bölümü: Müşteri, Cihaz, Şikayet */
.dispatch-banner-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dispatch-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 600px) {
  .dispatch-info-grid {
    grid-template-columns: 1fr;
  }
}

.dispatch-info-item {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dispatch-info-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.dispatch-info-value {
  font-size: 0.88rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dispatch-info-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.dispatch-complaint-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dispatch-complaint-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* 3. Alt Buton Şeridi */
.dispatch-banner-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}

.dispatch-banner-footer .btn {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Incoming Service Calls & Dispatch Queue */
.incoming-calls-card {
  background: rgba(19, 30, 54, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.incoming-calls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.incoming-calls-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.incoming-calls-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.incoming-calls-list::-webkit-scrollbar {
  width: 5px;
}
.incoming-calls-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}
.incoming-calls-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.incoming-call-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.incoming-call-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.4);
}

.incoming-call-item.priority-urgent {
  border-left: 3px solid var(--accent-rose);
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.08) 0%, var(--bg-subtle) 100%);
}

.incoming-call-item.priority-high {
  border-left: 3px solid var(--accent-amber);
}

.incoming-call-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.incoming-call-code {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

.incoming-call-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.incoming-call-desc strong {
  color: var(--text-main);
}

.incoming-call-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.incoming-call-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ==================== Saha Personeli Kartları (Staff List) ==================== */
.staff-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.staff-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.staff-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

/* 1. Üst Kısım: Profil ve Uzmanlık */
.staff-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.staff-profile-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.staff-avatar-badge {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.4);
}

.staff-name-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.staff-role-text {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}

.staff-spec-badge {
  font-size: 0.74rem;
  padding: 4px 10px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

/* 2. Orta Kısım: Lokasyon & Araç Çipleri */
.staff-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.staff-meta-chip {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.staff-meta-chip.active-jobs-chip {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--text-main);
}

.staff-meta-chip strong {
  color: var(--text-main);
}

/* 3. Alt Kısım: Aksiyon Butonları */
.staff-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.staff-card-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Stock Matrix Table */
.stock-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.4) rgba(15, 23, 42, 0.6);
}

.stock-table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.stock-table-wrapper::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 4px;
}

.stock-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 4px;
}

.stock-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.7);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
  min-width: 660px;
}

.data-table th {
  padding: 10px 10px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.stock-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.indicator.safe { background: var(--accent-emerald); }
.indicator.warning { background: var(--accent-amber); }
.indicator.danger { background: var(--accent-rose); }

/* Maintenance Grid */
.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.maintenance-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.maintenance-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.maintenance-device {
  font-weight: 700;
  font-size: 0.95rem;
}

.maintenance-customer {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.maintenance-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==================== 2. TEKNİSYEN EKRANI DETAYLARI ==================== */
.tech-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .tech-layout { grid-template-columns: 1fr; }
}

.job-card {
  padding: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.job-card:hover {
  background: var(--bg-card-hover);
}

.job-card.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.15);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.job-code {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent-cyan);
}

.job-device {
  font-weight: 700;
  font-size: 0.92rem;
}

.job-address {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* AI Assistant Box */
.ai-assistant-box {
  background: linear-gradient(135deg, rgba(30, 45, 78, 0.9), rgba(19, 30, 54, 0.95));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 24px rgba(168, 85, 247, 0.1);
}

.ai-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.ai-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #E2E8F0;
}

.ai-sparkle {
  font-size: 1.2rem;
}

.ai-textarea-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-textarea-wrapper textarea {
  width: 100%;
  background: rgba(11, 17, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 12px;
  font-size: 0.88rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
}
.ai-textarea-wrapper textarea:focus {
  border-color: var(--accent-purple);
}

.ai-output {
  margin-top: 16px;
  background: rgba(11, 17, 32, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
}

.ai-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.status-pill {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.status-pill.status-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
}

.ai-time {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.ai-analysis-content {
  font-size: 0.88rem;
  line-height: 1.6;
}

.ai-analysis-content ol {
  margin-left: 20px;
  margin-top: 6px;
  margin-bottom: 8px;
}

.ai-analysis-content code {
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
}

/* Part Picker */
.part-picker-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.part-picker-row select {
  flex: 1;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.mini-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dim);
}
.mini-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cost-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.total-badge {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.tech-action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ==================== 3. MÜŞTERİ PORTALI DETAYLARI ==================== */
.customer-portal-box {
  max-width: 860px;
  margin: 0 auto;
}

.portal-header {
  text-align: center;
  margin-bottom: 32px;
}

.portal-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818CF8;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.portal-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.portal-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 10px auto 0 auto;
}

.search-bar-wrapper {
  display: flex;
  max-width: 540px;
  margin: 24px auto 0 auto;
  gap: 8px;
}

.search-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.btn-search {
  padding: 12px 24px;
  font-size: 0.95rem;
}

/* Tracking Card */
.tracking-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.tracking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.tracking-code-pill {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
}

.device-name {
  font-size: 1.35rem;
  font-weight: 800;
}

.device-sn {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tracking-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #34D399;
  border-radius: 50%;
}

/* Stepper Bar */
.stepper-wrapper {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  position: relative;
}

.stepper-wrapper::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--bg-subtle);
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: all var(--transition-normal);
}

.step.completed .step-circle {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #fff;
}

.step.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 16px var(--primary-glow);
}

.step-label {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.step.active .step-label {
  color: var(--text-main);
  font-weight: 700;
}

/* Details Grid */
.cust-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .cust-details-grid { grid-template-columns: 1fr; }
}

.detail-block {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.block-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.block-text {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.5;
}

.warranty-list {
  list-style: none;
  font-size: 0.88rem;
}

.warranty-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* Approval Box */
.cust-approval-box {
  background: linear-gradient(135deg, rgba(30, 45, 78, 0.8), rgba(19, 30, 54, 0.9));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 650px) {
  .cust-approval-box { flex-direction: column; align-items: stretch; text-align: center; }
  .approval-actions { justify-content: center; }
}

.approval-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.approval-price {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.approval-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.approval-actions {
  display: flex;
  gap: 12px;
}

/* ==================== Toast Notifications ==================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--text-main);
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
  min-width: 280px;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Teknisyen GPS Banner */
.tech-gps-trigger-banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.trigger-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-main);
}

/* ==================== Canlı Saha GPS Takip Paneli ==================== */
.gps-tracking-panel {
  border: 1px solid rgba(6, 182, 212, 0.3);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.08);
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.gps-header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gps-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
}

@media (max-width: 960px) {
  .gps-map-grid { grid-template-columns: 1fr; }
}

/* Map Canvas Box */
.map-visual-box {
  background: #060B14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.map-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.map-city-tag {
  color: #CBD5E1;
  font-weight: 600;
}

.map-gps-status {
  color: var(--accent-emerald);
  font-weight: 600;
}

.vector-map-canvas {
  position: relative;
  height: 240px;
  width: 100%;
  background: radial-gradient(circle at 60% 40%, #0F1D38, #070D1A 85%);
  border-radius: var(--radius-sm);
  margin: 12px 0;
  overflow: hidden;
}

.map-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

.map-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.route-path-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 6 6;
}

.route-path-fg {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.6));
}

/* Map Pins */
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.pin-bubble {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.target-bubble {
  border-color: rgba(244, 63, 94, 0.4);
  color: #FDA4AF;
}

.target-pulse {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: radarTarget 2s infinite;
  z-index: -1;
}

@keyframes radarTarget {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

/* Moving Vehicle Marker */
.map-vehicle-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.vehicle-icon {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 0 16px var(--primary-glow);
  position: relative;
  z-index: 2;
}

.vehicle-pulse {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.4);
  top: 50%;
  left: 17px;
  transform: translate(-50%, -50%);
  animation: radarVehicle 1.8s infinite;
}

@keyframes radarVehicle {
  0% { transform: translate(-50%, -50%) scale(0.7); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

.vehicle-tag {
  background: rgba(11, 17, 32, 0.95);
  border: 1px solid var(--border-active);
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 8px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.vehicle-tag strong {
  font-size: 0.72rem;
  color: #38BDF8;
  font-family: 'JetBrains Mono', monospace;
}

.vehicle-tag span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.map-footer-note {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Telemetry Box */
.telemetry-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.telemetry-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}

.t-label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.t-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
  line-height: 1.2;
}

.t-value.highlight-cyan {
  color: var(--accent-cyan);
}

.t-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--primary));
  transition: width 0.4s ease;
}

.telemetry-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-mini {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
}

.stat-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 600;
}

.stat-num {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

.text-success { color: var(--accent-emerald) !important; }
.w-100 { width: 100%; }

/* ==================== Modal Pencere Stilleri ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
  overflow-y: auto;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
}

.modal-box > form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-title-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.modal-close-btn:hover { color: var(--text-main); }

.modal-body {
  padding: 18px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
}

.report-pre-content {
  background: #060B14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #E2E8F0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  background: var(--bg-card);
}

/* ==================== Çağrı Kabul Formu Stilleri ==================== */
.intake-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 12px;
  column-gap: 16px;
}

@media (max-width: 650px) {
  .intake-form-grid { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* ==================== Servis Kabul & QR Etiketi Stilleri ==================== */
.label-modal-box {
  max-width: 580px;
}

.printable-service-label {
  background: #FFFFFF;
  color: #0F172A;
  border: 2px dashed #334155;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  font-family: 'Plus Jakarta Sans', sans-serif;
  position: relative;
}

.label-company-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0F172A;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.label-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.3px;
}

.label-logo-icon {
  font-size: 1.2rem;
}

.label-type-tag {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.label-tracking-box {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  margin-bottom: 14px;
}

.label-tracking-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 1px;
}

.label-tracking-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.7rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 2px;
}

.label-info-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.label-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label-field {
  display: flex;
  flex-direction: column;
}

.lbl-f-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.5px;
}

.lbl-f-val {
  font-size: 0.88rem;
  color: #0F172A;
}

.lbl-f-val.font-mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.label-qr-col {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-code-box {
  width: 110px;
  height: 110px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-svg-preview {
  width: 90px;
  height: 90px;
}

.qr-scan-label {
  font-size: 0.58rem;
  font-weight: 800;
  color: #0F172A;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.label-complaint-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 12px;
}

.lbl-complaint-text {
  font-size: 0.78rem;
  color: #334155;
  line-height: 1.4;
  margin-top: 2px;
}

.label-footer-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748B;
  border-top: 1px dashed #CBD5E1;
  padding-top: 8px;
}

/* Service Label styles continue below; unified @media print is defined in section 11 */

/* ==================== WhatsApp & SMS Bildirim Merkezi Stilleri ==================== */
.notification-modal-box {
  max-width: 640px;
}

.notif-recipient-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.recipient-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rec-avatar {
  width: 38px;
  height: 38px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.rec-phone {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

/* Kanal Seçim Butonları */
.channel-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.channel-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.channel-btn .ch-icon {
  font-size: 1.5rem;
}

.channel-btn strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
}

.channel-btn small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.channel-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.channel-btn.active#btn-channel-whatsapp {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.08);
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.15);
}

.channel-btn.active#btn-channel-whatsapp strong {
  color: #25D366;
}

.channel-btn.active#btn-channel-sms {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 16px var(--primary-glow);
}

.channel-btn.active#btn-channel-sms strong {
  color: var(--primary);
}

/* Şablon Pill Butonları */
.notif-templates-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.templates-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.template-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-main);
}

.pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* WhatsApp Phone Mockup */
.whatsapp-phone-mockup {
  background: #0B141A;
  border: 1px solid #222E35;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.wa-header {
  background: #1F2C34;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-back-arrow {
  color: #8696A0;
  font-size: 1.1rem;
}

.wa-profile-pic {
  width: 32px;
  height: 32px;
  background: #00A884;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
}

.wa-contact-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #E9EDEF;
}

.wa-contact-status {
  font-size: 0.7rem;
  color: #00A884;
}

.wa-header-right {
  display: flex;
  gap: 14px;
  color: #8696A0;
  font-size: 0.95rem;
}

.wa-chat-canvas {
  background: #0B141A;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 16px 16px;
  padding: 16px 14px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.wa-date-chip {
  align-self: center;
  background: #182229;
  color: #8696A0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.wa-bubble {
  align-self: flex-end;
  max-width: 88%;
  background: #005C4B;
  color: #E9EDEF;
  border-radius: 8px 0px 8px 8px;
  padding: 10px 12px 6px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
}

.wa-bubble-text {
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.wa-bubble-text strong {
  color: #FFFFFF;
  font-weight: 700;
}

.wa-bubble-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.wa-time {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
}

.wa-ticks {
  font-size: 0.72rem;
  color: #53BDEB; /* Çift mavi tik */
  font-weight: bold;
}

/* Metin Düzenleme & Karakter Sayacı */
.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-counter-badge {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-dim);
}

/* WhatsApp Aksiyon Butonu */
.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-whatsapp:hover {
  background: #20BD5A;
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
}

/* ==================== 8. Harita Teknisyen Seçici Stilleri ==================== */
/* ==================== 8. Harita Teknisyen Seçici & Google Maps Stilleri ==================== */
.map-tech-selector-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.map-select-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.map-tech-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
}

.map-tech-search-input {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.8rem;
  width: 175px;
  outline: none;
  transition: all var(--transition-fast);
}

.map-tech-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  width: 210px;
}

.map-tech-dropdown {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  max-width: 280px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.map-tech-dropdown:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.map-tech-count-badge {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Harita Üst Barı ve Katman Değiştiriciler */
.map-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.map-overlay-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.map-layer-toggles {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.map-toggle-btn {
  background: rgba(30, 41, 59, 0.7);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.map-toggle-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.map-toggle-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.map-gmaps-link {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.map-gmaps-link:hover {
  background: #10b981;
  color: #fff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* Gerçek Google Harita Leaflet Stilleri */
.real-map-canvas {
  height: 310px !important;
  background: #0B1329;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  z-index: 1;
}

.leaflet-container {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  background: #0b1329 !important;
}

/* Leaflet Özel Araç İşaretçisi */
.leaflet-veh-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.leaflet-veh-pin {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.75), 0 4px 10px rgba(0, 0, 0, 0.6);
  border: 2px solid #ffffff;
  z-index: 10;
}

.leaflet-veh-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.4);
  animation: pulseVehMarker 1.6s infinite ease-out;
  z-index: -1;
}

@keyframes pulseVehMarker {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.leaflet-veh-label {
  margin-top: 4px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.5);
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

.leaflet-veh-label strong {
  color: #38bdf8;
  font-size: 0.76rem;
  font-family: 'JetBrains Mono', monospace;
}

.leaflet-veh-label span {
  color: #f1f5f9;
  font-size: 0.7rem;
}

/* Leaflet Hedef Müşteri İşaretçisi */
.leaflet-target-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.leaflet-target-pin {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f43f5e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.75), 0 4px 10px rgba(0, 0, 0, 0.6);
  border: 2px solid #ffffff;
  z-index: 10;
}

.leaflet-target-label {
  margin-top: 4px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(244, 63, 94, 0.5);
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

.leaflet-target-label strong {
  color: #fda4af;
  font-size: 0.76rem;
}

.leaflet-target-label span {
  color: #cbd5e1;
  font-size: 0.68rem;
}

/* Leaflet Koyu Tema Pop-up Stilleri */
.leaflet-popup-content-wrapper {
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid rgba(6, 182, 212, 0.4) !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6) !important;
}

.leaflet-popup-tip {
  background: #0f172a !important;
  border: 1px solid rgba(6, 182, 212, 0.4) !important;
}

.leaflet-popup-content {
  margin: 10px 14px !important;
  font-size: 0.82rem !important;
  line-height: 1.45 !important;
}

.leaflet-popup-content h4 {
  margin: 0 0 6px 0;
  font-size: 0.92rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==================== 9. Saha Personeli Atanan İşler Modalı ==================== */
.staff-jobs-modal-box {
  max-width: 680px;
  width: 95%;
}

.staff-modal-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

.staff-modal-kpi-strip .strip-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.staff-modal-kpi-strip .strip-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.staff-modal-kpi-strip .strip-value {
  font-size: 1.15rem;
  font-family: 'JetBrains Mono', monospace;
}

.staff-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.staff-job-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all var(--transition-fast);
}

.staff-job-card:hover {
  border-color: var(--primary);
  background: rgba(30, 41, 59, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.staff-job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.staff-job-code {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-light);
}

.staff-job-device {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.staff-job-customer {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.staff-job-complaint {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.staff-job-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

.staff-job-cost {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 0.88rem;
}

/* ==================== 10. Raporlama & BI Paneli Stilleri ==================== */
.reports-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.report-export-actions {
  display: flex;
  gap: 10px;
}

.report-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) auto;
  gap: 16px;
  align-items: flex-end;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: var(--radius-lg);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  position: relative;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-checkbox-group {
  display: flex;
  align-items: center;
  padding-bottom: 8px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.report-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.rep-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all var(--transition-fast);
}

.rep-kpi-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.rep-kpi-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.rep-kpi-val {
  font-size: 1.55rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-main);
}

.rep-kpi-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.report-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.report-table-header {
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-table-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.report-date-badge {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  background: var(--bg-subtle);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.rep-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.rep-table th {
  background: rgba(30, 41, 59, 0.5);
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.rep-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  vertical-align: middle;
}

.rep-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.rep-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==================== 11. Yazdırma / PDF Çıktı Desteği (@media print) ==================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 12mm;
  }

  html, body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 9.5pt !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  /* 1. Tüm sayfalarda gizlenecek arayüz bileşenleri */
  .app-header, 
  .role-nav, 
  .report-filter-bar, 
  .report-export-actions, 
  .modal-backdrop:not(.is-printing-target), 
  .toast-container,
  button,
  .btn,
  .btn-report-open-wa,
  .btn-view-staff-jobs {
    display: none !important;
  }

  .view-panel {
    display: none !important;
  }

  /* 2. Raporlar Paneli Görünürlüğü (Varsayılan Yazdırma Modu) */
  #reports-view {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #reports-view * {
    visibility: visible !important;
  }

  .content-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  .report-header {
    border-bottom: 2px solid #0F172A !important;
    padding-bottom: 8px !important;
    margin-bottom: 14px !important;
  }

  .report-title-group h2 {
    color: #0F172A !important;
    font-size: 16pt !important;
    margin: 0 0 4px 0 !important;
  }

  .report-title-group p {
    color: #475569 !important;
    font-size: 8.5pt !important;
    margin: 0 !important;
  }

  /* KPI Kartları */
  .report-kpi-row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }

  .rep-kpi-card {
    border: 1px solid #CBD5E1 !important;
    background: #F8FAFC !important;
    color: #0F172A !important;
    padding: 8px 10px !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .rep-kpi-title {
    color: #475569 !important;
    font-size: 7.5pt !important;
    font-weight: 600 !important;
    display: block !important;
  }

  .rep-kpi-val {
    color: #0284C7 !important;
    font-size: 13pt !important;
    font-weight: 700 !important;
    display: block !important;
    margin: 3px 0 !important;
  }

  .rep-kpi-sub {
    color: #64748B !important;
    font-size: 7pt !important;
  }

  /* Tablo ve Başlıklar */
  .report-table-wrapper {
    margin-top: 10px !important;
    border: none !important;
    box-shadow: none !important;
  }

  .report-table-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid #CBD5E1 !important;
    padding-bottom: 6px !important;
  }

  .report-table-title {
    color: #0F172A !important;
    font-size: 11pt !important;
    font-weight: 700 !important;
    margin: 0 !important;
  }

  .report-date-badge {
    color: #64748B !important;
    font-size: 7.5pt !important;
  }

  .table-responsive {
    overflow: visible !important;
  }

  .rep-table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 8.5pt !important;
  }

  .rep-table thead {
    display: table-header-group !important;
  }

  .rep-table tbody {
    display: table-row-group !important;
  }

  .rep-table tr {
    display: table-row !important;
    page-break-inside: avoid;
  }

  .rep-table th {
    display: table-cell !important;
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border: 1px solid #94A3B8 !important;
    padding: 6px 8px !important;
    font-weight: 700 !important;
    text-align: left !important;
  }

  .rep-table td {
    display: table-cell !important;
    color: #1E293B !important;
    border: 1px solid #CBD5E1 !important;
    padding: 6px 8px !important;
    background: #FFFFFF !important;
  }

  .badge {
    border: 1px solid #64748B !important;
    color: #0F172A !important;
    background: transparent !important;
    font-size: 7.5pt !important;
    padding: 1px 4px !important;
    font-weight: 600 !important;
  }

  /* 3. Özel Modallar (Etiket ve Ekspertiz Raporu Baskısı) */
  body.printing-label #reports-view,
  body.printing-expert-report #reports-view {
    display: none !important;
  }

  body.printing-label #label-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: block !important;
    background: transparent !important;
  }
  body.printing-label #label-modal .modal-box {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  body.printing-label .printable-service-label {
    margin: 0 auto;
    border: 1px solid #000 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  body.printing-expert-report * {
    visibility: hidden;
  }
  body.printing-expert-report #report-modal,
  body.printing-expert-report #report-modal * {
    visibility: visible;
  }
  body.printing-expert-report #report-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    display: block !important;
    background: #ffffff !important;
    padding: 0 !important;
  }
  body.printing-expert-report #report-modal .modal-box {
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  body.printing-expert-report #report-modal .modal-close-btn,
  body.printing-expert-report #report-modal .modal-footer,
  body.printing-expert-report #btn-report-open-signature {
    display: none !important;
  }
  body.printing-expert-report #report-pre-text {
    color: #111827 !important;
    background: #ffffff !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
    font-size: 8.5pt !important;
    border: none !important;
    font-family: "Courier New", Courier, monospace !important;
  }
  body.printing-expert-report #report-signatures-card {
    background: #ffffff !important;
    border: 1px solid #64748b !important;
    color: #000000 !important;
    page-break-inside: avoid;
    margin-top: 15px !important;
  }
  body.printing-expert-report #report-signatures-card * {
    color: #000000 !important;
  }
  body.printing-expert-report #report-signatures-card div {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
  }
}

/* ==================== 10. Transfer Modalı & Önizleme Kartı ==================== */
.transfer-modal-box {
  max-width: 580px;
}

.transfer-preview-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 10px;
}

.tp-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tp-box {
  flex: 1;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.tp-role {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 2px;
}

.tp-name {
  font-size: 0.9rem;
  color: var(--text-main);
  display: block;
}

.tp-stock {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
}

.tp-arrow {
  font-size: 1.4rem;
  color: var(--accent-cyan);
}

.tp-result {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  text-align: center;
  color: var(--text-muted);
}

/* ==================== 11. Yeni Bakım & Garanti Modalı & Kartları ==================== */
.maintenance-modal-box {
  max-width: 680px;
}

.maintenance-warranty-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: #6EE7B7;
}

.maintenance-serial {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

/* ==================== 12. Çoklu Stok, Atölye & Akıllı Envanter Arama Stilleri ==================== */
.text-cyan { color: #38BDF8 !important; }
.text-purple { color: #C084FC !important; }
.text-emerald { color: #34D399 !important; }
.text-rose { color: #FB7185 !important; }
.text-amber { color: #FBBF24 !important; }

/* Envanter KPI Şeridi */
.stock-kpi-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}

.stock-kpi-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 3px 5px;
  min-width: 0;
}

.stock-kpi-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-kpi-val {
  font-size: 1rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

.stock-kpi-alert-item {
  cursor: pointer;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.stock-kpi-alert-item:hover {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.5);
  transform: translateY(-1px);
}

/* Arama ve Filtreleme Araç Çubuğu */
.stock-filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  width: 100%;
}

.stock-search-box {
  position: relative;
  flex: 1 1 200px;
  min-width: 180px;
  display: flex;
  align-items: center;
}

.stock-search-icon {
  position: absolute;
  left: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
}

.stock-search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 9px 36px 9px 34px;
  font-size: 0.85rem;
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.stock-search-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.stock-search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.stock-search-clear:hover {
  color: #fff;
}

.stock-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stock-filter-btn {
  font-size: 0.8rem;
  padding: 7px 12px;
  transition: all 0.2s ease;
}

.stock-filter-btn.active {
  background: rgba(244, 63, 94, 0.18) !important;
  border-color: var(--accent-rose) !important;
  color: #FDA4AF !important;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.25);
}

/* Kategori Hapları (Pills) */
.stock-category-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.category-pill {
  white-space: nowrap;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.category-pill.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(168, 85, 247, 0.18));
  border-color: var(--accent-cyan);
  color: #E2E8F0;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

/* Lokasyon & Depo Kayan Bandı (Location Pills) */
.stock-location-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.4) rgba(15, 23, 42, 0.5);
}

.stock-location-pills::-webkit-scrollbar {
  height: 5px;
}

.stock-location-pills::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 4px;
}

.stock-location-pills::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 4px;
}

.stock-location-pills::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.65);
}

.location-pill {
  white-space: nowrap;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 5px 13px;
  border-radius: 18px;
  font-size: 0.76rem;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-pill:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--text-main);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.location-pill.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.25));
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* Stoktan Çıkar / Sil Butonu */
.btn-delete-stock {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.btn-delete-stock:hover {
  background: rgba(244, 63, 94, 0.3);
  border-color: #f43f5e;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.3);
}

/* Tablo Hücreleri & Kategori Rozetleri */
.stock-cat-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.12);
  color: #94A3B8;
  margin-bottom: 3px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.workshop-badge {
  color: #C084FC;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stock-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.stock-footer-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==================== 13. Servis Çağrıları & Sevk Kuyruğu Stilleri ==================== */
.incoming-calls-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.incoming-calls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.incoming-calls-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.incoming-calls-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
}

.incoming-call-item {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.incoming-call-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(56, 189, 248, 0.3);
}

.incoming-call-item.priority-urgent {
  border-left-color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.04);
}

.incoming-call-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.incoming-call-code {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 0.84rem;
}

.incoming-call-desc {
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.35;
}

.incoming-call-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  padding-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

/* ==================== 12. Personel İşe Giriş & Çıkış Stilleri ==================== */
.btn-staff-exit {
  color: var(--accent-rose) !important;
  border-color: rgba(244, 63, 94, 0.35) !important;
  background: rgba(244, 63, 94, 0.05) !important;
  transition: all 0.2s ease;
}
.btn-staff-exit:hover {
  background: rgba(244, 63, 94, 0.2) !important;
  border-color: var(--accent-rose) !important;
  color: #fff !important;
}

.staff-exit-box {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}
.staff-exit-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.staff-exit-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-rose);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.staff-exit-jobs-alert {
  background: rgba(15, 23, 42, 0.7);
  border-left: 3px solid var(--accent-amber);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-main);
  margin-top: 10px;
}

/* ==================== 13. Servis Araçları & Filo Yönetimi Stilleri ==================== */
.fleet-modal-box {
  max-width: 960px;
  width: 95%;
  max-height: 90vh;
}

.fleet-layout-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}
@media (max-width: 860px) {
  .fleet-layout-grid {
    grid-template-columns: 1fr;
  }
}

.fleet-form-panel {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fleet-form-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.fleet-cards-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}

.fleet-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.fleet-vehicle-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
  position: relative;
}
.fleet-vehicle-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(30, 41, 59, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.plate-badge {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #111827;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.8px;
  padding: 2px 8px 2px 3px;
  border-radius: 4px;
  border: 1.5px solid #374151;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  line-height: 1.2;
}
.plate-badge .plate-tr {
  background: #1d4ed8;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 2px;
  margin-right: 6px;
  letter-spacing: 0;
}

.fleet-vehicle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fleet-vehicle-body {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fleet-vehicle-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
}

/* ==================== 14. Yönetici Tanımlama & Profil Stilleri ==================== */
.manager-modal-box {
  max-width: 880px;
  width: 95%;
  max-height: 88vh;
}

.manager-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}
@media (max-width: 820px) {
  .manager-layout-grid {
    grid-template-columns: 1fr;
  }
}

.manager-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
}

.manager-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}
.manager-card.is-active {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.manager-profile-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.manager-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3);
}
.manager-card.is-active .manager-avatar {
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
}

.manager-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.manager-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.manager-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}
.manager-title {
  font-size: 0.8rem;
  color: var(--accent-cyan);
}
.manager-meta-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.manager-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==================== 15. Çağrı Sevk & Uzman Seçim Modalı Stilleri ==================== */
#dispatch-assign-modal {
  z-index: 1100;
}

.assign-order-summary-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.assign-order-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.assign-order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .assign-order-grid {
    grid-template-columns: 1fr;
  }
}

.assign-tech-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 4px;
}

.assign-tech-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.assign-tech-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateX(2px);
}
.assign-tech-card.is-selected {
  border-color: var(--accent-cyan) !important;
  background: rgba(6, 182, 212, 0.12) !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.assign-tech-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.assign-radio-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.assign-tech-card.is-selected .assign-radio-indicator {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan);
}
.assign-radio-indicator::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  display: none;
}
.assign-tech-card.is-selected .assign-radio-indicator::after {
  display: block;
}

.assign-tech-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.assign-tech-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.assign-tech-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.assign-tech-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}
.assign-tech-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.assign-tech-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.assign-tech-jobs-badge {
  font-size: 0.74rem;
  font-weight: 600;
}

.badge-recommended {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(6, 182, 212, 0.2));
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.4);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==================== 16. Servis Aracı Operasyon & Personel Zimmet Stilleri ==================== */
#vehicle-action-modal,
#staff-vehicle-modal {
  z-index: 1100;
}

#vehicle-action-modal .modal-box,
#staff-vehicle-modal .modal-box {
  max-width: 680px;
  width: 95%;
}

.fleet-vehicle-card {
  cursor: pointer;
  transition: all 0.2s ease;
}
.fleet-vehicle-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.15);
  transform: translateY(-2px);
}

.staff-vehicle-chip {
  cursor: pointer;
  transition: all 0.2s ease;
}
.staff-vehicle-chip:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  transform: translateY(-1px);
}

.veh-action-summary-card,
.staff-veh-summary-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.veh-action-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.veh-action-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 580px) {
  .veh-action-info-grid { grid-template-columns: 1fr; }
}

.veh-action-block {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.veh-action-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
}

.veh-select-wrapper {
  flex: 1 1 280px;
  min-width: 0;
}

.veh-select-wrapper select,
.veh-action-input-row select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.veh-action-input-row .btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 14px;
}

@media (max-width: 620px) {
  .veh-action-input-row {
    flex-direction: column;
    align-items: stretch;
  }
  .veh-action-input-row .btn {
    width: 100%;
    justify-content: center;
  }
}

.veh-status-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .veh-status-options-grid { grid-template-columns: 1fr; }
}

.btn-status-option {
  background: rgba(30, 41, 59, 0.6);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn-status-option:hover {
  border-color: var(--accent-cyan);
  background: rgba(30, 41, 59, 0.9);
}
.btn-status-option.is-selected {
  border-color: var(--accent-cyan) !important;
  background: rgba(6, 182, 212, 0.16) !important;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

.btn-status-option strong {
  display: block;
  font-size: 0.84rem;
  color: var(--text-main);
}
.btn-status-option small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==================== Kategori Yönetimi & Gelişmiş Çip Stilleri ==================== */
#category-manager-modal {
  z-index: 1100;
}

.category-pill.pill-add-category {
  border-style: dashed;
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.05);
}

.category-pill.pill-add-category:hover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.15);
  color: #fff;
}

.category-pill-count {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.category-pill.active .category-pill-count {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
}

.cat-row-icon {
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.cat-part-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* ==================== Akıllı Toplu Stok İçe Aktarma Stilleri ==================== */
.modal-box-lg {
  max-width: 880px;
}

.bulk-tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.bulk-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bulk-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.bulk-tab-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.bulk-dropzone {
  border: 2px dashed rgba(99, 102, 241, 0.45);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.55);
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.bulk-dropzone:hover, .bulk-dropzone.drag-over {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
  transform: translateY(-1px);
}

.dropzone-icon {
  font-size: 2.2rem;
  margin-bottom: 2px;
}

.dropzone-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
}

.dropzone-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.selected-file-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-top: 10px;
}

.file-icon {
  font-size: 1.4rem;
}

.file-info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
}

.file-info span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.btn-clear-file {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 6px;
  transition: color 0.2s;
}

.btn-clear-file:hover {
  color: var(--accent-rose);
}

.bulk-preview-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-main);
}

.preview-table-wrapper {
  max-height: 200px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.preview-table {
  font-size: 0.78rem;
  margin: 0;
}

.preview-table th {
  padding: 8px 10px;
  position: sticky;
  top: 0;
  background: #0d1527;
  z-index: 2;
  font-size: 0.72rem;
}

.preview-table td {
  padding: 7px 10px;
}

.preview-footer-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 6px;
}

/* ==================== Leaflet Gerçek Google Haritalar & Çok Modlu Türkiye Seyahati ==================== */
.map-turkey-btn {
  background: rgba(225, 29, 72, 0.12) !important;
  border-color: rgba(225, 29, 72, 0.35) !important;
  color: #FDA4AF !important;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.map-turkey-btn:hover {
  background: rgba(225, 29, 72, 0.25) !important;
  border-color: #F43F5E !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

/* Leaflet Özel HTML Teknisyen Markerı */
.leaflet-veh-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  cursor: pointer;
}

.leaflet-veh-pin {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.6);
  position: relative;
  z-index: 5;
  transition: transform 0.2s ease;
}

.leaflet-veh-marker:hover .leaflet-veh-pin {
  transform: scale(1.15);
}

.leaflet-veh-pulse {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.4);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: leafletVehPulse 1.8s infinite;
  z-index: -1;
}

@keyframes leafletVehPulse {
  0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}

/* Farklı Seyahat Modları için Özel Işıma ve Renk Temaları */
.mode-flight .leaflet-veh-pin {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.8);
  border-color: #38bdf8;
}
.mode-flight .leaflet-veh-pulse {
  background: rgba(6, 182, 212, 0.45);
}

.mode-train .leaflet-veh-pin {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
  border-color: #c084fc;
}
.mode-train .leaflet-veh-pulse {
  background: rgba(139, 92, 246, 0.45);
}

.mode-bus .leaflet-veh-pin {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.75);
  border-color: #fde68a;
}
.mode-bus .leaflet-veh-pulse {
  background: rgba(245, 158, 11, 0.4);
}

.mode-scooter .leaflet-veh-pin {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.75);
  border-color: #a7f3d0;
}
.mode-scooter .leaflet-veh-pulse {
  background: rgba(16, 185, 129, 0.4);
}

.leaflet-veh-label {
  background: rgba(10, 15, 29, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 4px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 6;
}

.leaflet-veh-label strong {
  font-size: 0.7rem;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.leaflet-veh-label span {
  font-size: 0.65rem;
  color: #94a3b8;
}

/* Leaflet Özel HTML Hedef Müşteri Markerı */
.leaflet-target-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  cursor: pointer;
}

.leaflet-target-pin {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.7));
  animation: targetBounce 2s infinite ease-in-out;
}

@keyframes targetBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.leaflet-target-label {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 2px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.leaflet-target-label strong {
  font-size: 0.7rem;
  color: #f87171;
  font-weight: 700;
}

.leaflet-target-label span {
  font-size: 0.64rem;
  color: #94a3b8;
}

/* Leaflet Koyu Siber Tema Pop-up Stilleri */
.leaflet-popup-content-wrapper {
  background: rgba(10, 16, 30, 0.96) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 15px rgba(6, 182, 212, 0.2) !important;
  backdrop-filter: blur(10px);
}

.leaflet-popup-tip {
  background: rgba(10, 16, 30, 0.96) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

.leaflet-popup-content {
  margin: 12px 14px !important;
  line-height: 1.4 !important;
}

.leaflet-popup-content h4 {
  margin: 0 0 6px 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.leaflet-popup-content p {
  margin: 0;
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.leaflet-popup-close-button {
  color: #94a3b8 !important;
  padding: 6px 8px !important;
}

.leaflet-popup-close-button:hover {
  color: #f43f5e !important;
}

/* ==================== 16. Teknisyen Seçici & Müşteri Onay Rozeti Stilleri ==================== */
.tech-switcher-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.65);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  margin-top: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tech-switcher-box label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.tech-switcher-box select {
  font-size: 0.82rem;
  padding: 4px 10px;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 6px;
  cursor: pointer;
  flex: 1;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tech-switcher-box select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
  outline: none;
}

.badge-customer-approved {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #10b981 !important;
  border: 1px solid #10b981 !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
  animation: customer-badge-glow 2.5s infinite ease-in-out;
}

@keyframes customer-badge-glow {
  0%, 100% {
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.25);
    border-color: #10b981;
  }
  50% {
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.55);
    border-color: #34d399;
  }
}

/* ==================== Teknisyen Saha Teşhis & Müdahale Grid ==================== */
.tech-diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .tech-diagnosis-grid {
    grid-template-columns: 1fr;
  }
}

.tech-diagnosis-card {
  background: rgba(11, 17, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.tech-diagnosis-card:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
  background: rgba(15, 23, 42, 0.85);
}

.tech-diag-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-main);
}

.tech-diag-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.tech-diag-hint {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.tech-diag-textarea {
  width: 100%;
  background: rgba(5, 10, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 8px 10px;
  font-size: 0.82rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  line-height: 1.45;
  transition: border-color 0.2s ease;
}

.tech-diag-textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(5, 10, 20, 0.85);
}

/* ==================== Teknisyen Yolculuk & Masraf Formu Stilleri ==================== */
.tech-expenses-box {
  background: linear-gradient(135deg, rgba(20, 32, 58, 0.88), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.tech-reimbursement-badge {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.3px;
}

.part-tab-nav button {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (max-width: 900px) {
  .local-part-grid, .expense-form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==================== Teknisyen İş Adımları Günlüğü Stilleri ==================== */
.tech-work-steps-panel {
  background: rgba(19, 30, 54, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.tech-work-steps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-outline-cyan {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.35);
  transition: all 0.2s ease;
}

.btn-outline-cyan:hover {
  background: rgba(6, 182, 212, 0.25);
  color: #ffffff;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.quick-step-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-tag-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.73rem;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-tag-step:hover {
  background: rgba(99, 102, 241, 0.2);
  color: var(--text-main);
  border-color: var(--primary);
}

.tech-add-step-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tech-steps-list-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.tech-step-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 17, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.83rem;
  color: var(--text-main);
  gap: 10px;
}

.tech-step-item .step-num {
  font-weight: 800;
  color: var(--accent-cyan);
  font-size: 0.8rem;
  white-space: nowrap;
}

.tech-step-item .step-text {
  flex: 1;
  word-break: break-word;
}

.tech-step-item .btn-del-step {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

.tech-step-item .btn-del-step:hover {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.15);
}

/* ==================== Sevk Masası Tamamlanan Çağrı Stili ==================== */
.incoming-call-item.is-completed-call {
  background: rgba(16, 185, 129, 0.04) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.incoming-call-item.is-completed-call::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: #10B981;
  border-radius: 4px 0 0 4px;
}

.badge-call-completed {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-weight: 700;
}

/* ==================== Raporlama Ekranı Select & Popover İyileştirmesi ==================== */
.report-filter-bar select {
  min-width: 220px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: left !important;
  direction: ltr !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* ==================== Custom Select Dropdown UI (Zero-Bug System) ==================== */
.custom-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.custom-select-wrapper {
  position: relative;
  width: 100%;
  min-width: 220px;
  user-select: none;
  font-family: inherit;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-subtle, #131E36);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  color: var(--text-main, #F8FAFC);
  padding: 10px 14px;
  border-radius: var(--radius-md, 8px);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  outline: none;
  text-align: left;
}

.custom-select-trigger:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(30, 45, 78, 0.85);
}

.custom-select-trigger:focus-visible,
.custom-select-wrapper.is-open .custom-select-trigger {
  border-color: var(--primary, #6366F1);
  box-shadow: 0 0 0 2px var(--primary-glow, rgba(99, 102, 241, 0.35));
}

.custom-select-trigger .trigger-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  padding-right: 8px;
}

.custom-select-trigger .arrow-icon {
  font-size: 0.72rem;
  color: var(--text-dim, #94A3B8);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: auto;
  flex-shrink: 0;
}

.custom-select-wrapper.is-open .arrow-icon {
  transform: rotate(180deg);
  color: var(--primary, #6366F1);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 240px;
  max-width: min(520px, 95vw);
  box-sizing: border-box;
  background: #111A2E;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 99999;
  display: none;
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden !important;
  padding: 6px;
  backdrop-filter: blur(16px);
}

.custom-select-wrapper.is-open .custom-select-dropdown {
  display: block;
  animation: customDropdownAnim 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes customDropdownAnim {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.custom-select-dropdown::-webkit-scrollbar {
  width: 6px;
}
.custom-select-dropdown::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 4px;
}
.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.45);
  border-radius: 4px;
}
.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.75);
}

.custom-option {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #E2E8F0;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
  transition: all 0.12s ease;
  text-align: left;
}

.custom-option:hover {
  background: rgba(99, 102, 241, 0.22);
  color: #FFFFFF;
}

.custom-option.is-selected {
  background: rgba(99, 102, 241, 0.35);
  color: #FFFFFF;
  font-weight: 700;
}

.custom-option .custom-option-label {
  flex: 1;
  text-align: left;
}

.custom-option .custom-option-check {
  color: var(--accent-cyan, #06B6D4);
  font-weight: 800;
  font-size: 0.95rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* ==================== 12. GÜVENLİK, GİRİŞ MODALI & AUTH STİLLERİ ==================== */
.login-modal-box {
  max-width: 440px !important;
  width: 92% !important;
  background: linear-gradient(135deg, rgba(17, 26, 46, 0.98), rgba(11, 17, 32, 0.98)) !important;
  border: 1px solid rgba(99, 102, 241, 0.35) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 24px rgba(99, 102, 241, 0.15) !important;
  padding: 28px !important;
  backdrop-filter: blur(20px);
}

.login-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.login-brand-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary, #6366F1), var(--accent-cyan, #06B6D4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #FFF;
  box-shadow: 0 0 24px var(--primary-glow, rgba(99, 102, 241, 0.4));
}

.login-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main, #F8FAFC);
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
}

.login-subtitle {
  font-size: 0.82rem;
  color: var(--text-dim, #94A3B8);
  margin: 0;
}

.login-role-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}

.login-tab-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-dim, #94A3B8);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.login-tab-btn:hover {
  color: var(--text-main, #F8FAFC);
}

.login-tab-btn.active {
  background: var(--primary, #6366F1);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-dim, #94A3B8);
  font-size: 1rem;
  pointer-events: none;
}

.input-with-icon .form-input {
  padding-left: 38px;
  padding-right: 38px;
  width: 100%;
}

.btn-toggle-pwd {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-dim, #94A3B8);
  padding: 4px;
  transition: color 0.15s ease;
}

.btn-toggle-pwd:hover {
  color: var(--text-main, #F8FAFC);
}

.pin-display-wrapper {
  margin-bottom: 12px;
}

.pin-input {
  text-align: center !important;
  font-size: 1.4rem !important;
  letter-spacing: 14px !important;
  font-weight: 800 !important;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1.5px solid rgba(99, 102, 241, 0.4) !important;
}

.mobile-pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.pin-key {
  height: 48px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-main, #F8FAFC);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-key:hover, .pin-key:active {
  background: rgba(99, 102, 241, 0.3);
  border-color: var(--primary, #6366F1);
  transform: scale(0.97);
}

.pin-key.pin-clear {
  color: var(--accent-rose, #F43F5E);
  font-size: 1rem;
}

.pin-key.pin-back {
  color: var(--accent-amber, #F59E0B);
  font-size: 1.1rem;
}

.btn-login-submit {
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}

.login-error-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 12px;
  text-align: center;
  animation: shakeAnim 0.35s ease-in-out;
}

@keyframes shakeAnim {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.login-modal-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==================== 13. TEKNİSYEN EKRANI MOBİL & TABLET OPTİMİZASYONU ==================== */
.tech-mobile-toggle-bar {
  display: none;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 10px;
  padding: 4px;
  gap: 6px;
  margin-bottom: 16px;
}

.tech-m-toggle-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-dim, #94A3B8);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.tech-m-toggle-btn.active {
  background: var(--primary, #6366F1);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

/* Tablet & Telefon (max-width: 860px) Kuralları */
@media (max-width: 860px) {
  .tech-mobile-toggle-bar {
    display: flex;
  }

  /* Mobil modda sekme görünüm kontrolü */
  .tech-layout.tech-show-bench .tech-jobs-column {
    display: none !important;
  }
  .tech-layout.tech-show-bench .tech-workbench-column {
    display: block !important;
  }

  .tech-layout.tech-show-jobs .tech-workbench-column {
    display: none !important;
  }
  .tech-layout.tech-show-jobs .tech-jobs-column {
    display: block !important;
  }

  /* Dokunmatik hedefleri büyüt */
  .job-card {
    padding: 14px;
    margin-bottom: 10px;
  }

  .tech-gps-trigger-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .tech-gps-trigger-banner .btn {
    width: 100%;
    min-height: 44px;
    font-size: 0.92rem;
  }

  .ai-textarea-wrapper textarea {
    font-size: 16px !important; /* iOS otomatik zoom engeli */
  }

  .tech-diagnosis-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .part-picker-row {
    flex-direction: column;
    gap: 8px;
  }

  .part-picker-row .btn {
    width: 100%;
    min-height: 44px;
  }

  .quick-step-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .btn-tag-step {
    padding: 7px 11px;
    font-size: 0.8rem;
    min-height: 36px;
  }

  .tech-add-step-row {
    flex-direction: column;
    gap: 8px;
  }

  .tech-add-step-row .btn {
    width: 100%;
    min-height: 42px;
  }

  /* Header & Navigation Mobil Uyumu */
  .app-header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
  }

  .role-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
  }

  .role-btn {
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  .header-actions {
    gap: 6px;
  }

  .user-pill {
    padding: 4px 8px;
  }

  .user-name {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ==================== Sevk Masası Tepsi Sekmeleri (Dispatch Trays) ==================== */
.dispatch-tray-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.btn-tray-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tray-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-tray-tab.active {
  background: var(--bg-card);
  color: var(--accent-cyan);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.tray-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.tray-pill-warning {
  background: rgba(245, 158, 11, 0.25) !important;
  color: #fbbf24 !important;
}

.tray-pill-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

/* ==================== Resmi Muhasebe & Tahsilat Fişi Tasarımı ==================== */
.printable-accounting-receipt {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  color: var(--text-main);
  font-family: inherit;
}

.receipt-header-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.receipt-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.receipt-logo {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.receipt-company-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.receipt-company-sub {
  margin: 2px 0 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.receipt-meta-box {
  text-align: right;
}

.receipt-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.receipt-no {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.receipt-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.receipt-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .receipt-grid-2col {
    grid-template-columns: 1fr;
  }
}

.receipt-card-info {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
}

.receipt-section-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 4px;
  gap: 8px;
}

.receipt-row span {
  color: var(--text-muted);
}

.receipt-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin-top: 6px;
}

.receipt-mini-table th {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.receipt-mini-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.receipt-mini-table tfoot td {
  padding: 8px 10px;
  border-bottom: none;
}

.receipt-grand-total-row td {
  background: rgba(16, 185, 129, 0.08);
  border-top: 2px solid rgba(16, 185, 129, 0.3) !important;
  border-bottom: 2px solid rgba(16, 185, 129, 0.3) !important;
}

.receipt-signatures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 14px;
}

@media (max-width: 640px) {
  .receipt-signatures-grid {
    grid-template-columns: 1fr;
  }
}

.receipt-sig-box {
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px;
}

.receipt-sig-line {
  margin: 8px 0;
  padding: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  min-height: 28px;
}

/* Print Baskı Stili */
@media print {
  body.printing-accounting-receipt * {
    visibility: hidden;
  }
  body.printing-accounting-receipt #accounting-receipt-modal,
  body.printing-accounting-receipt #accounting-receipt-modal * {
    visibility: visible;
  }
  body.printing-accounting-receipt #accounting-receipt-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: #ffffff !important;
    display: block !important;
    padding: 0 !important;
  }
  body.printing-accounting-receipt .modal-box {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    color: #111827 !important;
  }
  body.printing-accounting-receipt .modal-header,
  body.printing-accounting-receipt .modal-footer,
  body.printing-accounting-receipt .receipt-payment-method-row {
    display: none !important;
  }
  body.printing-accounting-receipt .printable-accounting-receipt {
    background: #ffffff !important;
    color: #111827 !important;
    border: none !important;
  }
  body.printing-accounting-receipt .printable-accounting-receipt * {
    color: #111827 !important;
  }
  body.printing-accounting-receipt .receipt-card-info,
  body.printing-accounting-receipt .receipt-diagnosis-summary div,
  body.printing-accounting-receipt .receipt-tech-expenses-section {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
  }
}

/* ==================== 18. Sistem Ayarları & Tarife Yönetimi Stilleri ==================== */
.settings-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  transition: all 0.2s ease;
}

.settings-rate-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(56, 189, 248, 0.3);
}

.settings-rate-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.settings-rate-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings-rate-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.settings-rate-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-rate-amount-input {
  width: 95px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-cyan);
  text-align: right;
}

.btn-delete-rate {
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.3);
  padding: 4px 8px;
  font-size: 0.8rem;
}

.btn-delete-rate:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: var(--accent-rose);
}

@media (max-width: 768px) {
  .settings-grid-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ==================== 19. TCMB Canlı Döviz & Çoklu Para Birimi Stilleri ==================== */
.currency-badge-usd {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.currency-badge-eur {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.part-currency-tag {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  margin-left: 4px;
}

/* ==================== 20. Toplu Excel Parça Yükleme Döviz Seçim Çubuğu ==================== */
.bulk-currency-bar {
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.bulk-currency-bar .currency-label-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}
.bulk-currency-bar .currency-label-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}
.bulk-currency-select {
  min-width: 250px;
  font-size: 0.82rem;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bulk-currency-select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* ==================== 21. Cihaz Sicil Kartı & Seri No Takip Stilleri ==================== */
.equipment-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.equipment-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.equipment-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.equipment-view-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 4px 0;
}
.equipment-view-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.equipment-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.eq-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.eq-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
}
.eq-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.eq-kpi-data {
  display: flex;
  flex-direction: column;
}
.eq-kpi-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}
.eq-kpi-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.equipment-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.equipment-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.equipment-search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.equipment-search-field {
  width: 100%;
  padding: 10px 40px 10px 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-fast);
}
.equipment-search-field:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}
.equipment-search-clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
}
.equipment-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.eq-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.eq-pill-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-main);
}
.eq-pill-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.equipment-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.equipment-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.equipment-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}
.equipment-table td {
  padding: 12px 14px;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}
.equipment-table tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}
.equipment-serial-link {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #38bdf8;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.equipment-serial-link:hover {
  color: #7dd3fc;
}
.equipment-loc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.loc-workshop { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.3); }
.loc-customer { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.loc-warehouse { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.loc-vehicle { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.3); }
.loc-delivered { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

.equipment-war-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.war-active { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.war-expired { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.35); }

/* Cihaz Pasaportu Modalı Stilleri */
.passport-official-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.passport-brand-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}
.passport-company-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.passport-barcode-box {
  text-align: right;
}
.passport-barcode-sim {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--text-dim);
}
.passport-serial-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.05em;
}
.passport-print-date {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.passport-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.pass-meta-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}
.pass-meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.pass-meta-val {
  font-size: 0.92rem;
  color: var(--text-main);
}
.pass-meta-sub {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.passport-section-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.passport-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.passport-count-tag {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 600;
}
.passport-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  border-left: 3px solid var(--accent-cyan);
}
.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.8rem;
}
.timeline-badge-order {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #38bdf8;
}
.timeline-date {
  color: var(--text-muted);
  font-size: 0.74rem;
}
.timeline-complaint {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 4px;
}
.timeline-action {
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 6px;
}
.timeline-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-dim);
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 6px;
  margin-top: 6px;
}
.passport-parts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.passport-parts-table th {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dim);
  font-size: 0.74rem;
}
.passport-parts-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.passport-summary-bar {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.pass-sum-item {
  display: flex;
  flex-direction: column;
}
.pass-sum-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.pass-sum-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}
.pass-sum-grand .pass-sum-val {
  font-size: 1.15rem;
  font-weight: 800;
}

/* Baskı Stili */
@media print {
  body.printing-equipment-passport * {
    visibility: hidden;
  }
  body.printing-equipment-passport #equipment-passport-modal,
  body.printing-equipment-passport #equipment-passport-modal * {
    visibility: visible;
  }
  body.printing-equipment-passport #equipment-passport-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff !important;
    display: block !important;
    padding: 0 !important;
  }
  body.printing-equipment-passport .modal-box {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    color: #111827 !important;
  }
  body.printing-equipment-passport .modal-header,
  body.printing-equipment-passport .modal-footer {
    display: none !important;
  }
  body.printing-equipment-passport .passport-section-box,
  body.printing-equipment-passport .pass-meta-card,
  body.printing-equipment-passport .timeline-card {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
  }
  body.printing-equipment-passport * {
    color: #111827 !important;
  }
}

/* ==================== 22. Sesli Saha Müdahale Asistanı Stilleri ==================== */
.tech-voice-bar {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.25) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1.5px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.tech-voice-bar.is-listening {
  border-color: #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.35);
}

.tech-voice-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-voice-info {
  flex: 1 1 300px;
}

.tech-voice-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.voice-icon-pulse {
  font-size: 1.25rem;
  display: inline-block;
  animation: pulseMic 2s infinite ease-in-out;
}

@keyframes pulseMic {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.5)); }
  50% { transform: scale(1.18); filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.8)); }
}

.tech-voice-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.btn-voice-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
}

.btn-voice-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.6);
  transform: translateY(-1px);
}

.btn-voice-primary.recording {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
  animation: recGlow 1.2s infinite alternate ease-in-out;
}

@keyframes recGlow {
  from { box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
  to { box-shadow: 0 0 24px rgba(239, 68, 68, 0.9); }
}

.btn-voice-mini {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #93c5fd;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-voice-mini:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: #ffffff;
}

.btn-voice-mini.recording {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #fca5a5;
  animation: recGlow 1s infinite alternate;
}

.tech-voice-transcript-banner {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 14px;
}

.voice-wave-container {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
  flex-shrink: 0;
}

.wave-bar {
  width: 3px;
  height: 8px;
  background: #ef4444;
  border-radius: 2px;
  animation: waveAnim 1s infinite ease-in-out;
}

.wave-bar:nth-child(2) { animation-delay: 0.2s; height: 16px; background: #f59e0b; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; height: 22px; background: #10b981; }
.wave-bar:nth-child(4) { animation-delay: 0.6s; height: 12px; background: #3b82f6; }

@keyframes waveAnim {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1.4); }
}

.voice-transcript-text {
  flex: 1;
  font-size: 0.84rem;
  color: #fde047;
  font-style: italic;
  line-height: 1.4;
  max-height: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-voice-stop {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-voice-stop:hover {
  background: rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

/* ==================== 23. İnteraktif Web & Sosyal Medya Widget Stilleri ==================== */
.embed-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .embed-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== 24. Resmi e-Fatura / e-Arşiv Stilleri & Baskı ==================== */
.printable-efatura-container {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

@media print {
  body.printing-efatura * {
    visibility: hidden;
  }
  body.printing-efatura #efatura-preview-modal,
  body.printing-efatura #printable-efatura-document,
  body.printing-efatura #printable-efatura-document * {
    visibility: visible;
  }
  body.printing-efatura #efatura-preview-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff !important;
    display: block !important;
    padding: 0 !important;
  }
  body.printing-efatura .modal-box {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    padding: 0 !important;
  }
  body.printing-efatura .modal-header,
  body.printing-efatura .modal-footer,
  body.printing-efatura .efatura-api-status-bar {
    display: none !important;
  }
  body.printing-efatura .printable-efatura-container {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

/* ==========================================================================
   25. CANLI DEMO & UZMAN TEST REHBERİ STİLLERİ
   ========================================================================== */

.btn-warning-glow {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #0b1120 !important;
  font-weight: 700 !important;
  border: 1px solid #fbbf24 !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
  animation: pulseDemoGuide 2.5s infinite;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-warning-glow:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.75);
  transform: translateY(-1px);
}

@keyframes pulseDemoGuide {
  0% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 22px rgba(245, 158, 11, 0.75); }
  100% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.3); }
}

.btn-outline-warning {
  background: transparent;
  border: 1px solid #f59e0b;
  color: #fbbf24;
  font-weight: 600;
}
.btn-outline-warning:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #fde68a;
  border-color: #fbbf24;
}

/* ==========================================================================
   26. DİJİTAL MÜŞTERİ İMZASI, SANAL POS & MULTI-TENANT SAAS STİLLERİ
   ========================================================================== */

/* Header SaaS Tenant Switcher */
.tenant-switcher-badge {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 20px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #e2e8f0;
  font-size: 0.76rem;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.tenant-switcher-badge:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: #a78bfa;
  transform: translateY(-1px);
}

.tenant-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  display: inline-block;
}

.tenant-plan-tag {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Tenant Item Card */
.tenant-item-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.tenant-item-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
}

.tenant-item-card.is-active {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

@media (max-width: 640px) {
  .pos-action-grid,
  .new-tenant-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   27. İLK AYARLAR & SERVİS KURULUM (ONBOARDING) STİLLERİ
   ========================================================================== */
.settings-modal-box {
  max-width: 1060px !important;
  width: 96% !important;
  height: 88vh !important;
  max-height: 88vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.settings-nav-tabs {
  flex-shrink: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 8px !important;
  padding: 10px 18px !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  box-sizing: border-box !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(15, 23, 42, 0.98) !important;
  overflow: hidden !important; /* Kaydırma çubuğunu ve sağdaki okları tamamen kaldırır */
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE/Edge */
}

.settings-nav-tabs::-webkit-scrollbar {
  display: none !important; /* Chrome / Safari / Edge */
  width: 0 !important;
  height: 0 !important;
}

.settings-tab-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 8px !important;
  background: rgba(30, 41, 59, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  font-size: 0.83rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
}

.settings-tab-btn .tab-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.settings-tab-btn .tab-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-tab-btn:hover {
  color: #ffffff !important;
  background: rgba(51, 65, 85, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1px);
}

.settings-tab-btn.active {
  color: #38bdf8 !important;
  background: rgba(15, 23, 42, 1) !important;
  border-color: #38bdf8 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25), inset 0 0 6px rgba(56, 189, 248, 0.1) !important;
}

.settings-tab-rates-highlight {
  border-color: rgba(251, 191, 36, 0.55) !important;
  background: rgba(251, 191, 36, 0.12) !important;
  color: #fbbf24 !important;
}

.settings-tab-rates-highlight:hover {
  border-color: rgba(251, 191, 36, 0.85) !important;
  background: rgba(251, 191, 36, 0.2) !important;
  color: #fef08a !important;
}

.settings-tab-rates-highlight.active {
  border-color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.22) !important;
  color: #fef08a !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35), inset 0 0 8px rgba(245, 158, 11, 0.15) !important;
}

.settings-tab-pane {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.settings-tab-pane.active {
  display: block;
}

.onboarding-wizard-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(56, 189, 248, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.company-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.settings-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.settings-staff-card {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.settings-staff-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(30, 41, 59, 0.85);
}

.settings-device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.settings-device-card {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.2s ease;
}

.settings-device-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(30, 41, 59, 0.85);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .settings-nav-tabs {
    padding: 6px 10px 0;
  }
  .settings-tab-btn {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
  .company-profile-grid,
  .settings-staff-grid,
  .settings-device-grid {
    grid-template-columns: 1fr !important;
  }
}







/* ==========================================================================
   21. KURULUM SIHIRBAZI (ONBOARDING WIZARD) VE SIRKET FATURA KARTI STILLERI
   ========================================================================== */

/* Sihirbaz Ilerleme Cubugu (Progress Track) */
.wizard-progress-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 0 0 20px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow-x: auto;
  gap: 6px;
}

.wizard-step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.wizard-step-node:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.wizard-step-node.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
  border-color: rgba(168, 85, 247, 0.5);
  color: #fff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.wizard-step-node.completed {
  color: #34d399;
}

.wizard-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.wizard-step-node.active .wizard-step-num {
  background: #8b5cf6;
  color: #fff;
}

.wizard-step-node.completed .wizard-step-num {
  background: #10b981;
  color: #fff;
}

.wizard-step-title {
  font-size: 0.8rem;
  font-weight: 600;
}

/* Sektor Secim Kartlari */
.wizard-sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.wizard-sector-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.wizard-sector-card:hover {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.12);
  transform: translateY(-2px);
}

.wizard-sector-card.selected {
  border-color: #a78bfa;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(30, 41, 59, 0.9) 100%);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

.wizard-sector-icon {
  font-size: 1.8rem;
  margin-bottom: 2px;
}

.wizard-sector-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
}

.wizard-sector-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.35;
}

/* Sirket Fatura Karti (Teknisyen Dis Harcama Ibrazi) */
.company-billing-card {
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 100%);
  border: 2px solid #818cf8;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(99, 102, 241, 0.25);
  position: relative;
  overflow: hidden;
}

.company-billing-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.billing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.billing-card-badge {
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid #818cf8;
  color: #c7d2fe;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.billing-card-legal-name {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 8px 0 0;
  letter-spacing: -0.01em;
}

.billing-card-tax-row {
  display: flex;
  gap: 20px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(167, 139, 250, 0.4);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.billing-card-tax-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.billing-card-tax-label {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.billing-card-tax-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #38bdf8;
  font-family: monospace;
  letter-spacing: 0.05em;
}

.billing-card-address-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.billing-card-address-text {
  font-size: 0.95rem;
  color: #f1f5f9;
  line-height: 1.45;
  margin: 4px 0 0;
}

.billing-card-copy-box {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Fatura Karti Yazdirma */
@media print {
  body.printing-billing-card {
    background: #fff !important;
    color: #000 !important;
  }
  body.printing-billing-card * {
    visibility: hidden;
  }
  body.printing-billing-card #company-billing-info-modal,
  body.printing-billing-card #company-billing-info-modal .modal-card,
  body.printing-billing-card #company-billing-info-modal .company-billing-card,
  body.printing-billing-card #company-billing-info-modal .company-billing-card * {
    visibility: visible !important;
  }
  body.printing-billing-card #company-billing-info-modal {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    background: #fff !important;
  }
  body.printing-billing-card .company-billing-card {
    border: 2px solid #000 !important;
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
  }
  body.printing-billing-card .billing-card-legal-name,
  body.printing-billing-card .billing-card-tax-value,
  body.printing-billing-card .billing-card-address-text {
    color: #000 !important;
  }
  body.printing-billing-card .modal-close,
  body.printing-billing-card .billing-card-copy-box {
    display: none !important;
  }
}

/* ==========================================================================
   YÖNETİCİ & KONTROL PANELİ ÜST KOMUTA ÇUBUĞU (ADMIN SUBNAV BAR)
   ========================================================================== */
.admin-subnav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-subnav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-subnav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  color: var(--text-dim, #94a3b8);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.admin-subnav-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main, #f8fafc);
  border-color: rgba(255, 255, 255, 0.16);
}

.admin-subnav-btn.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.18);
}

.admin-subnav-btn .subnav-icon {
  font-size: 1rem;
}

.admin-subnav-btn .badge {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-weight: 700;
}

/* ==================== Modüler Yönetici Sekmeleri & Odak Düzeni ==================== */
#gps-view, #inventory-view {
  width: 100%;
  min-width: 0;
}

#gps-view .gps-tracking-panel {
  margin-top: 0 !important;
}

#inventory-view .content-card {
  width: 100%;
  box-sizing: border-box;
}

#inventory-view .stock-table-wrapper {
  max-height: 640px;
  overflow-y: auto;
}

.dispatch-column, .staff-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kpi-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
