/* ─────────────────────────────────────────────────
   Uras Teknik — Lift Bakım Sistemi
   Ana stil dosyası
───────────────────────────────────────────────── */

:root {
  --red: #27363f;
  --red-dark: #191c20;
  --navy: #27363f;
  --navy-mid: #191c20;
  --navy-border: rgba(255,255,255,0.1);
  --bg: #f3f4f6;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --info: #2563eb;
  --info-bg: #dbeafe;
  --radius: 8px;
  --radius-lg: 12px;
  --sidebar-w: 210px;
  --topbar-h: 56px;
}

/* ── Karanlık Mod ── */
[data-theme="dark"] {
  --bg: #0f1419;
  --bg-card: #1a1f26;
  --border: #2a313a;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --text-light: #6b7280;
  --success-bg: #14331f;
  --warning-bg: #3a2c0a;
  --danger-bg: #3a1515;
  --info-bg: #142640;
}

/* Karanlık modda kart, tablo, input gibi yüzeyleri uyumla */
[data-theme="dark"] body { background: var(--bg); color: var(--text); }
[data-theme="dark"] .card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .login-right { background: var(--bg-card); }
[data-theme="dark"] .data-table thead th { background: #141a21; color: var(--text-muted); }
[data-theme="dark"] .data-table tbody tr:hover { background: transparent; }
[data-theme="dark"] .data-table tbody tr:hover td { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .btn-secondary:hover { background: #2d353f; }
[data-theme="dark"] .btn-outline:hover { background: #232a33; color: var(--text); }
[data-theme="dark"] .check-item:hover { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #141a21;
  color: var(--text);
  border-color: var(--border);
}
[data-theme="dark"] .btn-secondary {
  background: #232a33;
  color: var(--text);
  border-color: var(--border);
}
[data-theme="dark"] .data-table tbody td { border-bottom-color: var(--border); }
[data-theme="dark"] .topbar { border-color: var(--border); }

/* ── Karanlık mod: kart başlıkları, etiketler, açık yüzeyler ── */
/* Servis formu lift kartı başlığı */
.lift-card-header { background: #f9fafb; }
[data-theme="dark"] .lift-card-header { background: #141a21 !important; }

/* card-header genel (varsa açık zemin) */
[data-theme="dark"] .card-header { background: transparent; border-color: var(--border); }

/* Mavi bilgi etiketleri (şube, rol vb.) — açık modda açık mavi, karanlıkta koyu mavi */
.branch-tag { background: #eff6ff; color: #2563eb; }
[data-theme="dark"] .branch-tag { background: #1c2c44 !important; color: #93c5fd !important; }

/* Inline açık arka planları karanlıkta bastır (mavi/gri rozetler, kutucuklar) */
[data-theme="dark"] [style*="background:#eff6ff"],
[data-theme="dark"] [style*="background: #eff6ff"] {
  background: #1c2c44 !important;
  color: #93c5fd !important;
}
[data-theme="dark"] [style*="background:#eef2f5"],
[data-theme="dark"] [style*="background: #eef2f5"],
[data-theme="dark"] [style*="#eef2f5)"] {
  background: #232a33 !important;
  color: var(--text) !important;
}
[data-theme="dark"] [style*="background:#f9fafb"],
[data-theme="dark"] [style*="background: #f9fafb"],
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background:#ffffff"],
[data-theme="dark"] [style*="background: #ffffff"] {
  background: #141a21 !important;
}
/* Açık sarı uyarı kutusu (profil bilgilendirme) karanlıkta koyulaşsın */
[data-theme="dark"] [style*="background:#fffbeb"],
[data-theme="dark"] [style*="background: #fffbeb"] {
  background: #2a2410 !important;
  border-color: #4a3f1a !important;
}
[data-theme="dark"] .detail-row { border-color: var(--border); }
[data-theme="dark"] .empty-state { color: var(--text-muted); }

/* Tema geçiş butonu */
.theme-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  font-size: 18px;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: #fff; background: rgba(255,255,255,0.08); }

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }

/* ── Layout ────────────────────────────────────── */

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ───────────────────────────────────── */

.sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow: hidden;   /* nav kendi içinde scroll eder, user bölümü sabit kalır */
}

.sidebar-nav {
  flex: 1;
  padding: 10px 0;
  overflow-y: auto;  /* sadece menü scroll eder */
  overflow-x: hidden;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 16px;
  border-bottom: 1px solid var(--navy-border);
}

.sidebar-logo-img {
  width: 100%;
  max-width: 150px;
  height: auto;
  display: block;
}
.sidebar-logo a, .mobile-topbar a { display: inline-block; line-height: 0; }
.sidebar-logo a:hover, .mobile-topbar a:hover { opacity: 0.85; transition: opacity 0.15s; }

.logo-icon {
  width: 34px; height: 34px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 17px;
  flex-shrink: 0;
}

.logo-brand {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.logo-sub {
  font-size: 9.5px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 1px;
}


.nav-section-label {
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 16px 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  border-right: 2px solid transparent;
}

.nav-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.85); }
.nav-item.active { background: rgba(142,161,174,0.18); color: #8ea1ae; border-right-color: #8ea1ae; }
.nav-item i { font-size: 16px; width: 18px; flex-shrink: 0; }

.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--navy-border);
  flex-shrink: 0;        /* asla küçülmesin */
  background: var(--navy);
}

.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #fff;
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 12px; color: rgba(255,255,255,0.75); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 10px; color: rgba(255,255,255,0.3); }

.btn-icon {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.4);
  font-size: 16px; padding: 4px;
  display: flex; align-items: center;
  transition: color 0.15s;
}
.btn-icon:hover { color: rgba(255,255,255,0.7); }

/* ── Main Content ──────────────────────────────── */

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Topbar ────────────────────────────────────── */

.topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-title { font-size: 16px; font-weight: 600; color: var(--text); }
.page-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

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

/* ── Content Area ──────────────────────────────── */

.content {
  padding: 20px 24px;
  flex: 1;
}

/* ── Stat Cards ─────────────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
[data-theme="dark"] .stat-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.stat-label { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.4px; }
.stat-value { font-size: 26px; font-weight: 600; color: var(--text); line-height: 1; }
.stat-value.danger { color: var(--danger); }
.stat-value.warning { color: var(--warning); }
.stat-meta { font-size: 11px; color: var(--text-muted); margin-top: 5px; }
.stat-icon { display: none; }  /* yalnızca mobilde görünür */

/* ── Cards ──────────────────────────────────────── */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
[data-theme="dark"] .card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

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

.card-title { font-size: 14px; font-weight: 600; color: var(--text); }
.card-body { padding: 16px; }

/* ── Table ──────────────────────────────────────── */

.table-wrap { overflow-x: auto; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #f9fafb; }

/* ── Status Badges ───────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-info    { background: var(--info-bg);    color: var(--info); }
.badge-neutral { background: #f3f4f6;           color: var(--text-muted); }

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn i { font-size: 15px; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

.btn-secondary { background: #fff; color: var(--text-muted); border-color: var(--border); }
.btn-secondary:hover { background: #f9fafb; color: var(--text); }

.btn-outline { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-outline:hover { background: #f3f4f6; color: var(--text); }

.btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }

.btn-sm { padding: 4px 10px; font-size: 12px; min-height: 28px; }
.btn-sm i { font-size: 13px; line-height: 1; }

/* Sadece ikon butonlar (metin olmayan) */
.btn-icon-only {
  padding: 5px 8px;
  min-width: 30px;
  min-height: 30px;
  justify-content: center;
}
.btn-icon-only i { font-size: 15px; }

/* ── Forms ───────────────────────────────────────── */

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 5px; }
.form-label.required::after { content: " *"; color: var(--red); }

.form-control {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}

.form-text { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.form-select {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
}

.form-select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}

/* Checkbox kontrolü */
.check-group { display: flex; flex-direction: column; gap: 2px; }
.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: background 0.1s;
}
.check-item:hover { background: #f9fafb; }
.check-item label { font-size: 13px; color: var(--text); cursor: pointer; }
.check-item input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--red); }

/* ── Form Row ────────────────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ── Section divider ─────────────────────────────── */
.section-divider {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 0 8px;
  border-bottom: 2px solid var(--red);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Alert ───────────────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
}
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-danger   { background: var(--danger-bg);  color: var(--danger); }

/* ── Chip / Model Tag ───────────────────────────── */
.model-chip {
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  font-weight: 600;
}
[data-theme="dark"] .model-chip {
  background: #232a33;
  border-color: var(--border);
  color: #cbd5e1;
}

/* ── Empty state ─────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.empty-state i {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(128,128,128,0.08);
  border: 1px solid var(--border);
}
.empty-state p {
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.5;
}
.empty-state .empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-top: 16px;
}
.empty-state .empty-title + p { margin-top: 6px; }
.empty-state .btn { margin-top: 18px; }

/* ── Details list ────────────────────────────────── */
.detail-row {
  display: flex;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { width: 160px; flex-shrink: 0; color: var(--text-muted); font-weight: 500; }
.detail-value { flex: 1; color: var(--text); }

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

.login-left {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--navy);
}

.login-brands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  opacity: 0.25;
  margin-top: 40px;
}

.login-brand-item {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px;
  border-radius: var(--radius);
}

.login-right {
  width: 420px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-form-wrapper {
  width: 100%;
  max-width: 340px;
}

.login-logo {
  margin-bottom: 32px;
}

.login-logo-icon {
  width: 48px; height: 48px;
  background: var(--red);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px;
  margin-bottom: 12px;
}

.login-logo-brand { font-size: 20px; font-weight: 700; color: var(--navy); }
.login-logo-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.login-title { font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.login-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

.validation-summary { 
  background: var(--danger-bg);
  color: var(--danger);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  margin-bottom: 16px;
  list-style: none;
}

/* ── Responsive ──────────────────────────────────── */
/* Mobil üst çubuk ve karartma — masaüstünde gizli */
.mobile-topbar { display: none; }
.sidebar-overlay { display: none; }

@media (max-width: 768px) {
  /* Sidebar kayan panel olur */
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.35);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }

  /* Karartma */
  .sidebar-overlay {
    display: block; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 1100;
    opacity: 0; pointer-events: none; transition: opacity 0.25s;
  }
  .sidebar-overlay.show { opacity: 1; pointer-events: auto; }

  /* Mobil üst çubuk */
  .mobile-topbar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; margin: -16px -16px 16px;
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 900;
  }
  .mobile-menu-btn {
    width: 40px; height: 40px; border-radius: 10px; border: none;
    background: rgba(128,128,128,0.12); color: var(--text);
    font-size: 20px; display: flex; align-items: center; justify-content: center;
    cursor: pointer;
  }
  .mobile-topbar-logo { max-height: 30px; }

  /* Gösterge paneli: mobilde istatistikler tek sütun yatay kompakt kart */
  .stats-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
  }
  .stat-card .stat-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
    background: rgba(128,128,128,0.12);
  }
  .stat-card .stat-body { flex: 1; order: 2; }
  .stat-card .stat-label { margin-bottom: 2px; }
  .stat-card .stat-label i { display: none; }  /* ikon zaten solda stat-icon'da */
  .stat-card .stat-value { font-size: 24px; order: 3; margin-left: auto; }
  .stat-card .stat-meta { margin-top: 1px; }

  /* Mobilde ağır grafikleri gizle (küçük ekranda okunmuyor) */
  .hide-mobile { display: none !important; }

  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { width: 100%; }

  /* Lift detay sayfası — mobilde tek sütun, fotoğraf tam otursun */
  /* İki sütun bilgi grid'leri mobilde tek sütun */
  .info-grid-2 { grid-template-columns: 1fr !important; gap: 12px !important; }

  .lift-detail-grid { grid-template-columns: 1fr !important; }
  .lift-status-strip { flex-direction: column !important; align-items: stretch !important; text-align: center; }
  .lift-status-strip .lift-detail-photo {
    width: 100% !important; height: auto !important; aspect-ratio: 1 / 1;
    max-width: 260px; margin: 8px auto 0;
  }
  /* Admin bakım durumu kartı içi (bilgiler + foto) mobilde dikey */
  .lift-status-inner { flex-direction: column !important; }
  .lift-status-inner .lift-detail-photo {
    width: 100% !important; height: auto !important; aspect-ratio: 1 / 1;
    max-width: 260px; margin: 12px auto 0;
  }

  /* Tablolar taşmasın — yatay kaydırma (etiketsiz tablolar için) */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 560px; }

  /* Kart görünümlü tablolar (data-label'lı) — mobilde her satır bir kart */
  .table-wrap.cards-wrap { overflow-x: visible; }
  .data-table.cards-mobile { min-width: 0; }
  .data-table.cards-mobile thead { display: none; }
  .data-table.cards-mobile,
  .data-table.cards-mobile tbody,
  .data-table.cards-mobile tr,
  .data-table.cards-mobile td { display: block; width: 100%; }
  .data-table.cards-mobile tr {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
  }
  .data-table.cards-mobile td {
    border: none !important;
    padding: 6px 0 !important;
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; text-align: right;
  }
  .data-table.cards-mobile td::before {
    content: attr(data-label);
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    text-align: left; flex-shrink: 0;
  }
  /* Etiketsiz (işlem/buton) hücre tam genişlik */
  .data-table.cards-mobile td[data-label=""] { justify-content: flex-end; }
  .data-table.cards-mobile td[data-label=""]::before { display: none; }
  .data-table.cards-mobile td[data-label=""] > div { width: 100%; justify-content: stretch; }
  .data-table.cards-mobile td[data-label=""] .btn { flex: 1; justify-content: center; }

  /* Topbar (sayfa başlıkları) dikey */
  .topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .topbar-actions { width: 100%; flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s;
  backdrop-filter: blur(2px);
}

.modal-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.08);
  transform: scale(0.95);
  transition: transform 0.2s;
  text-align: center;
}

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.modal-message {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal-actions .btn {
  min-width: 120px;
  justify-content: center;
}

.btn-success-modal {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}
.btn-success-modal:hover { background: #15803d; }

/* ── Uyarı Bandı (müşteri bakım uyarıları) ── */
.alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  border: 1px solid;
}
.alert-banner-danger {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}
.alert-banner-warning {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #b45309;
}
[data-theme="dark"] .alert-banner-danger {
  background: #2a1515;
  border-color: #7f1d1d;
  color: #fca5a5;
}
[data-theme="dark"] .alert-banner-warning {
  background: #2a2410;
  border-color: #78531a;
  color: #fcd34d;
}

/* Sıralanabilir tablo başlıkları */
.data-table.sortable thead th { transition: background 0.15s; }
.data-table.sortable thead th:hover { background: rgba(128,128,128,0.06); }
[data-theme="dark"] .data-table.sortable thead th:hover { background: rgba(255,255,255,0.04); }
