/* =============================================
   Charge Technology — Saha Operasyon Portalı
   Tema: Krem / Altın — Modern & Açık
   v2.2
============================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --gold:          #C9A84C;
  --gold-mid:      #E8C76A;
  --gold-dim:      #9A7B35;
  --gold-light:    #F5EDD6;
  --gold-glow:     rgba(201,168,76,0.15);

  --bg:            #F7F5F0;
  --surface:       #FFFFFF;
  --surface2:      #F2EFE8;
  --surface3:      #EAE6DC;

  --border:        rgba(0,0,0,0.08);
  --border-mid:    rgba(0,0,0,0.12);
  --border-gold:   rgba(201,168,76,0.3);

  --text1:         #1A1814;
  --text2:         #5C5346;
  --text3:         #9A9088;

  --sidebar-bg:    #1A1814;
  --brand-logo-bg: #000000;
  --sidebar-text:  #C5BAA8;
  --sidebar-muted: rgba(197,186,168,0.45);
  --sidebar-hover: rgba(255,255,255,0.05);
  --sidebar-active:#C9A84C;
  --sidebar-abg:   rgba(201,168,76,0.12);
  --sidebar-border:rgba(255,255,255,0.07);

  --success:       #3B6D11;
  --success-bg:    #D1FAE5;
  --success-text:  #065F46;
  --warning:       #C9A84C;
  --warning-bg:    #FEF3C7;
  --warning-text:  #92400E;
  --danger:        #A32D2D;
  --danger-bg:     #FEE2E2;
  --danger-text:   #991B1B;
  --info-bg:       #EFF6FF;
  --info-text:     #1E40AF;

  --sidebar-w:     220px;
  --topbar-h:      54px;
  --radius:        8px;
  --radius-lg:     12px;
  --radius-xl:     16px;

  --font-main:     'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:     'IBM Plex Mono', monospace;

  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:     0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text1);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-dim); text-decoration: none; }
a:hover { color: var(--gold); }

/* =============================================
   APP SHELL
============================================= */
.app-shell { display: flex; min-height: 100vh; }

/* =============================================
   SIDEBAR
============================================= */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.25s ease;
}

.sidebar-logo {
  padding: 18px 14px 16px;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-logo-bg);
}

.sidebar-logo img,
.app-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Logo siyah zeminli — koyu alanlarda sarmalayıcı */
.app-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-logo-bg);
  line-height: 0;
  border-radius: var(--radius);
}

.app-logo-wrap--header {
  padding: 5px 12px;
  border-radius: 6px;
}

.app-logo-wrap--header .app-logo {
  height: 20px;
}

.app-logo-wrap--login {
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
}

.nav-section-label {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--sidebar-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 10px 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--sidebar-text);
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 1px;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
}
.nav-item .nav-icon { width: 18px; text-align: center; font-size: 15px; flex-shrink: 0; opacity: 0.85; }
.nav-item:hover { background: var(--sidebar-hover); color: #F5EDD6; }
.nav-item.active {
  background: var(--sidebar-abg);
  color: var(--sidebar-active);
  font-weight: 500;
}
.nav-item.active .nav-icon { opacity: 1; }

.nav-item-quick {
  border: 0.5px dashed rgba(201,168,76,0.25);
  color: rgba(201,168,76,0.7);
  font-size: 12px;
}
.nav-item-quick:hover {
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  border-color: rgba(201,168,76,0.5);
}

.sidebar-user {
  padding: 11px 13px;
  border-top: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: visible;
  position: relative;
  z-index: 2;
}
.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: #1A1814;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 12px; font-weight: 500; color: #E0D9CE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 10.5px; color: var(--sidebar-muted); }
.logout-btn { color: var(--sidebar-muted); font-size: 17px; padding: 3px; border-radius: 5px; transition: color 0.12s; line-height: 1; }
.logout-btn:hover { color: #F87171; }
.sidebar-profile-btn {
  color: var(--sidebar-muted);
  font-size: 16px;
  padding: 3px 5px;
  border-radius: 5px;
  transition: color 0.12s, background 0.12s;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.sidebar-profile-btn:hover { color: var(--gold-mid); background: rgba(255,255,255,0.06); }
.sidebar-profile-btn.active { color: var(--gold); }

/* =============================================
   MAIN CONTENT
============================================= */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.page-content { padding: 24px 26px; flex: 1; }

/* =============================================
   MOBİL HEADER
============================================= */
.mobile-header {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: var(--topbar-h);
  background: var(--sidebar-bg);
  position: sticky; top: 0; z-index: 90;
}
.hamburger { background: none; border: none; cursor: pointer; font-size: 20px; color: #F5EDD6; padding: 4px; }
.mobile-logo,
.mobile-header .app-logo {
  height: 22px;
  width: auto;
}

/* =============================================
   SAYFA BAŞLIĞI
============================================= */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-title { font-size: 19px; font-weight: 600; color: var(--text1); letter-spacing: -0.01em; }
.page-title small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text3);
  margin-top: 1px;
  letter-spacing: 0;
}

/* =============================================
   KARTLAR
============================================= */
.card {
  background: var(--surface);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--border);
}
.card-title {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Stat kartları */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.stat-card {
  background: var(--surface);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, transform 0.15s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.stat-card.gold::before   { background: var(--gold); }
.stat-card.green::before  { background: #639922; }
.stat-card.yellow::before { background: #EF9F27; }
.stat-card.red::before    { background: #E24B4A; }
.stat-card.blue::before   { background: #378ADD; }

.stat-label {
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 8px;
  font-weight: 500;
}
.stat-value {
  font-size: 28px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text1);
  line-height: 1;
}
.stat-icon {
  position: absolute;
  bottom: 12px; right: 14px;
  font-size: 22px;
  opacity: 0.1;
}
.stat-main { position: relative; z-index: 1; }
.stat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  min-height: 32px;
}
.stat-trend {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.stat-trend--good { color: var(--success-text); }
.stat-trend--warn { color: var(--danger-text); }
.stat-trend--flat { color: var(--text3); }
.stat-sparkline {
  color: var(--gold-dim);
  opacity: 0.85;
  flex-shrink: 0;
}
.stat-card.green .stat-sparkline { color: #639922; }
.stat-card.yellow .stat-sparkline { color: #EF9F27; }
.stat-card.red .stat-sparkline { color: #E24B4A; }
.stats-period-hint {
  font-size: 10px;
  color: var(--text3);
  margin: -12px 0 18px 2px;
  letter-spacing: 0.04em;
}
.stats-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 8px;
}
.stats-grid--compact .stat-card { padding: 14px; }
.stats-grid--compact .stat-value { font-size: 24px; }
.stats-grid--compact .stat-icon { display: none; }

/* =============================================
   TABLO
============================================= */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.data-table thead th {
  background: var(--surface2);
  color: var(--text3);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 9px 14px;
  text-align: left;
  border-bottom: 0.5px solid var(--border-mid);
  white-space: nowrap;
}
.data-table tbody td {
  padding: 11px 14px;
  border-bottom: 0.5px solid var(--border);
  color: var(--text1);
  vertical-align: middle;
}
.data-table tbody tr:hover { background: var(--gold-light); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Durum şeridi — tablo satırları */
.table-wrap--status .data-table tbody tr.wo-row td:first-child {
  box-shadow: inset 4px 0 0 var(--wo-stripe, #9A9088);
}
.table-wrap--status .data-table tbody tr.wo-row--open td:first-child       { --wo-stripe: #378ADD; }
.table-wrap--status .data-table tbody tr.wo-row--progress td:first-child  { --wo-stripe: #EF9F27; }
.table-wrap--status .data-table tbody tr.wo-row--waiting td:first-child   { --wo-stripe: #9A7B35; }
.table-wrap--status .data-table tbody tr.wo-row--resolved td:first-child  { --wo-stripe: #639922; }
.table-wrap--status .data-table tbody tr.wo-row--closed td:first-child    { --wo-stripe: #639922; }
.table-wrap--status .data-table tbody tr.wo-row--closed td:first-child    { --wo-stripe: #639922; }
.table-wrap--status .data-table tbody tr.wo-row--unclaimed td:first-child { --wo-stripe: #CA8A04; }
.table-wrap--status .data-table tbody tr.wo-row--unclaimed {
  background: rgba(202, 138, 4, 0.07);
}
.table-wrap--status .data-table tbody tr.wo-row--done {
  opacity: 0.78;
}
.table-wrap--status .data-table tbody tr.wo-row--priority-high {
  background: linear-gradient(90deg, rgba(239, 159, 39, 0.08), transparent 48%);
}
.table-wrap--status .data-table tbody tr.wo-row--priority-high:hover {
  background: linear-gradient(90deg, rgba(239, 159, 39, 0.14), var(--gold-light) 55%);
}

/* Yapışkan filtre çubuğu */
.filter-bar-sticky,
.wo-filter-bar {
  position: sticky;
  top: 0;
  z-index: 85;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.wo-filter-form,
.filter-bar-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 16px;
}
.filter-bar-form--compact {
  padding: 12px 16px;
}

/* İş emirleri — mobil filtre çekmecesi */
.wo-filter-mobile-bar {
  display: none;
}
.wo-filter-drawer-head {
  display: none;
}
.wo-filter-field .form-control {
  width: 100%;
  min-width: 0;
}
.wo-filter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.wo-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--gold-dim);
  color: #1A1814;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* Genel liste satır şeritleri */
.table-wrap--striped .list-row td:first-child,
.table-wrap--status .list-row td:first-child {
  box-shadow: inset 4px 0 0 var(--list-stripe, #9A9088);
}
.customer-row--devices  { --list-stripe: #639922; }
.customer-row--empty    { --list-stripe: #378ADD; }
.device-row--active     { --list-stripe: #639922; }
.device-row--maintenance{ --list-stripe: #EF9F27; }
.device-row--fault      { --list-stripe: #E24B4A; }
.device-row--passive    { --list-stripe: #9A9088; }
.user-row--active       { --list-stripe: #639922; }
.user-row--inactive     { --list-stripe: #9A9088; opacity: 0.65; }
.list-row--default      { --list-stripe: #C9A84C; }

/* Mini özet şeridi — rapor / liste üstü */
.list-summary-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--border);
  background: var(--surface2);
  font-size: 12px;
  color: var(--text2);
}
.list-summary-bar strong {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text1);
  margin-right: 4px;
}

/* =============================================
   BADGE'LER
============================================= */
.badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge-open         { background: #DBEAFE;             color: #1D4ED8; }
.badge-progress     { background: #FFEDD5;             color: #C2410C; }
.badge-waiting      { background: #F3E8FF;             color: #6B21A8; }
.badge-resolved     { background: var(--success-bg);  color: var(--success-text); }
.badge-closed       { background: var(--success-bg);  color: var(--success-text); }
.badge-done         { background: var(--success-bg);  color: var(--success-text); font-weight: 600; border: 0.5px solid #86EFAC; }
.badge-awaiting     { background: #CA8A04;             color: #FFFBEB; font-weight: 600; border: 0.5px solid #A16207; }

.badge-low          { background: var(--surface3);    color: var(--text3); }
.badge-normal       { background: var(--info-bg);     color: var(--info-text); }
.badge-high         { background: var(--warning-bg);  color: var(--warning-text); }
.badge-critical     { background: var(--danger-bg);   color: var(--danger-text); border: 0.5px solid #FCA5A5; }

/* =============================================
   BUTONLAR
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.13s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gold);
  color: #1A1814;
  box-shadow: 0 1px 3px rgba(201,168,76,0.3);
}
.btn-primary:hover {
  background: var(--gold-mid);
  color: #1A1814;
  box-shadow: 0 3px 10px rgba(201,168,76,0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text2);
  border: 0.5px solid var(--border-mid);
}
.btn-secondary:hover { background: var(--surface2); color: var(--text1); border-color: var(--border-gold); }

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 0.5px solid #FCA5A5;
}
.btn-danger:hover { background: #FECACA; }

.btn-sm  { padding: 5px 10px; font-size: 11.5px; }
.btn-lg  { padding: 10px 20px; font-size: 14.5px; }

/* =============================================
   FORM ELEMENLERİ
============================================= */
.form-group { margin-bottom: 15px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.form-control {
  width: 100%;
  background: var(--surface);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 8px 11px;
  color: var(--text1);
  font-family: var(--font-main);
  font-size: 13.5px;
  transition: border-color 0.13s, box-shadow 0.13s;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-control::placeholder { color: var(--text3); }
textarea.form-control { resize: vertical; min-height: 78px; }
select.form-control { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239A9088' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.form-hint { font-size: 11px; color: var(--text3); margin-top: 4px; }

/* =============================================
   ALERT
============================================= */
.alert {
  padding: 11px 15px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-bottom: 15px;
  border-left: 3px solid;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-success { background: #F0FDF4; color: var(--success); border-color: #86EFAC; }
.alert-error   { background: var(--danger-bg); color: var(--danger-text); border-color: #FCA5A5; }
.alert-warning { background: var(--warning-bg); color: var(--warning-text); border-color: #FCD34D; }
.alert-info    { background: var(--gold-light); color: var(--gold-dim); border-color: var(--gold); }

@keyframes alert-pulse-fade {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(202, 138, 4, 0.35); }
  50% { opacity: 0.82; box-shadow: 0 0 0 8px rgba(202, 138, 4, 0); }
}
@keyframes alert-pulse-danger {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(226, 75, 74, 0.35); }
  50% { opacity: 0.85; box-shadow: 0 0 0 8px rgba(226, 75, 74, 0); }
}
@keyframes badge-pulse-fade {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.78; filter: brightness(1.12); }
}
.alert-pulse-soft { animation: alert-pulse-fade 2.4s ease-in-out infinite; }
.alert-error.alert-pulse-soft { animation-name: alert-pulse-danger; }
.badge-pulse-soft { animation: badge-pulse-fade 2s ease-in-out infinite; }

/* =============================================
   MOBİL RESPONSIVE
============================================= */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-md); }
  .main-content { margin-left: 0; }
  .mobile-header { display: flex; }
  .page-content { padding: 14px 15px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Dashboard — mobilde kompakt stat kartları, grafik yok */
  .stats-grid--dashboard {
    gap: 8px;
    margin-bottom: 10px;
  }
  .stats-grid--dashboard .stat-card {
    padding: 10px 12px;
  }
  .stats-grid--dashboard .stat-card:hover {
    transform: none;
  }
  .stats-grid--dashboard .stat-value {
    font-size: 21px;
  }
  .stats-grid--dashboard .stat-icon {
    display: none;
  }
  .stats-grid--dashboard .stat-label {
    margin-bottom: 4px;
    font-size: 9px;
    letter-spacing: 0.06em;
  }
  .stats-grid--dashboard .stat-footer {
    margin-top: 4px;
    min-height: 0;
    justify-content: flex-start;
  }
  .stats-grid--dashboard .stat-sparkline {
    display: none !important;
  }
  .stats-grid--dashboard .stat-trend {
    font-size: 9px;
    white-space: normal;
    line-height: 1.25;
  }
  .stats-period-hint--dashboard {
    display: none;
  }
  .analytics-panel--compact .analytics-bars--compact {
    display: none;
  }
  .analytics-panel--compact .analytics-compact-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 6px 12px 10px;
  }
  .analytics-panel--compact .analytics-kpi--compact {
    min-width: 0;
    padding: 6px 4px;
  }
  .analytics-panel--compact .analytics-kpi--compact .analytics-kpi-value {
    font-size: 15px;
  }
  .analytics-panel--compact .analytics-kpi--compact .analytics-kpi-label {
    font-size: 9px;
  }
  .analytics-panel--compact .analytics-panel-head {
    padding: 8px 12px;
  }

  .form-row { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .wo-filter-bar,
  .filter-bar-sticky { top: var(--topbar-h); }
  .wo-filter-form,
  .filter-bar-form { padding: 12px; }

  .wo-filter-mobile-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    position: sticky;
    top: var(--topbar-h);
    z-index: 84;
  }
  .wo-filter-open-btn { flex: 1; justify-content: center; }
  .wo-filter-clear { flex-shrink: 0; }

  .wo-filter-drawer .wo-filter-drawer-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    margin: 0;
    max-height: min(88dvh, calc(100dvh - var(--topbar-h) - 12px));
    overflow-y: auto;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%);
    transition: transform 0.28s ease;
    top: auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .wo-filter-drawer.is-open .wo-filter-drawer-panel {
    transform: translateY(0);
  }
  .wo-filter-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1499;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
  }
  .wo-filter-drawer.is-open .wo-filter-drawer-backdrop {
    display: block;
  }
  .wo-filter-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 0.5px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 1;
  }
  .wo-filter-drawer-title {
    font-weight: 600;
    font-size: 15px;
  }
  .wo-filter-close-btn {
    border: none;
    background: var(--surface2);
    color: var(--text2);
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
  }
  .wo-filter-form {
    flex-direction: column;
    align-items: stretch;
  }
  .wo-filter-field {
    width: 100%;
  }
  .wo-filter-actions {
    padding-top: 4px;
    padding-bottom: 8px;
  }
  .wo-filter-actions .wo-filter-apply {
    flex: 1;
    justify-content: center;
  }
  .wo-filter-wrap .wo-filter-drawer:not(.is-open) .wo-filter-drawer-panel {
    visibility: hidden;
    pointer-events: none;
  }

  body.wo-filter-drawer-open {
    overflow: hidden;
  }
  body.wo-filter-drawer-open .mobile-bottom-nav {
    display: none !important;
  }

  .stat-footer { flex-wrap: wrap; }
  .table-wrap--status .data-table tbody tr.wo-row {
    border-left: 4px solid var(--wo-stripe, #9A9088);
  }
  .table-wrap--status .data-table tbody tr.wo-row--open       { --wo-stripe: #378ADD; }
  .table-wrap--status .data-table tbody tr.wo-row--progress   { --wo-stripe: #EF9F27; }
  .table-wrap--status .data-table tbody tr.wo-row--waiting    { --wo-stripe: #9A7B35; }
  .table-wrap--status .data-table tbody tr.wo-row--resolved  { --wo-stripe: #639922; }
  .table-wrap--status .data-table tbody tr.wo-row--closed     { --wo-stripe: #639922; }
  .table-wrap--status .data-table tbody tr.wo-row--unclaimed   { --wo-stripe: #CA8A04; background: rgba(202, 138, 4, 0.08); }
  .table-wrap--status .data-table tbody tr.wo-row td:first-child { box-shadow: none; }
  .table-wrap--striped .data-table tbody tr.list-row {
    border-left: 4px solid var(--list-stripe, #9A9088);
  }
  .table-wrap--striped .data-table tbody tr.list-row td:first-child { box-shadow: none; }

  .data-table thead { display: none; }
  .data-table tbody tr {
    display: block;
    border: 0.5px solid var(--border-mid);
    border-radius: var(--radius);
    margin-bottom: 10px;
    background: var(--surface);
    padding: 4px 0;
  }
  .data-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 0.5px solid var(--border);
    font-size: 12.5px;
  }
  .data-table tbody tr:last-child td { border-bottom: 0.5px solid var(--border); }
  .data-table tbody td::before {
    content: attr(data-label);
    font-size: 10px;
    color: var(--text3);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    margin-right: 10px;
  }

  /* İş emri detay — mobil */
  .wo-detail-layout {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .wo-action-panel {
    order: -1;
  }
  .wo-action-panel .card {
    position: sticky;
    top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 4px);
    z-index: 50;
    box-shadow: var(--shadow-md);
  }
  .wo-detail-fields {
    grid-template-columns: 1fr !important;
  }
  .wo-detail-fields .wo-detail-field {
    border-left: none !important;
  }
  .wo-detail-field {
    padding: 11px 14px;
    border-bottom: 0.5px solid var(--border);
  }
  .card-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .photo-upload-fields {
    flex-direction: column !important;
  }
  .photo-upload-fields > div {
    width: 100% !important;
    min-width: 0 !important;
  }
  .photo-add-area {
    margin: 0 0 12px;
  }
  .page-header .btn-sm {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Checklist modal — mobil tam ekran */
  body.checklist-open .mobile-bottom-nav {
    display: none !important;
  }
  .checklist-modal-overlay.open {
    padding: 0 !important;
  }
  .checklist-modal-panel {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0 !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .checklist-modal-header {
    flex-shrink: 0;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }
  .checklist-modal-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 8px;
  }
  .checklist-modal-footer {
    flex-shrink: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .cl-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px;
    padding: 12px !important;
  }
  .cl-row-options {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .cl-opt {
    justify-content: center;
    min-height: 44px;
    font-size: 14px !important;
  }
  .cl-row-label {
    font-size: 14px;
    line-height: 1.45;
  }
  .checklist-submit-btn {
    position: static !important;
    min-height: 52px;
    font-size: 15px !important;
  }
  .vehicle-dropdown.open {
    left: 16px;
    right: 16px;
  }
}

/* =============================================
   GİRİŞ SAYFASI
============================================= */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
}
.login-card {
  background: var(--surface);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-md);
}
.login-logo {
  text-align: center;
  margin-bottom: 26px;
}
.login-logo .app-logo-wrap {
  margin-bottom: 14px;
}
.login-logo .app-logo {
  height: 36px;
  width: auto;
}
.login-logo img:not(.app-logo) {
  height: 40px;
  width: auto;
  margin-bottom: 10px;
}
.login-logo p {
  font-size: 11.5px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 5px;
}
.login-divider {
  height: 0.5px;
  background: var(--border-mid);
  margin: 0 0 22px;
}
.login-credit {
  margin: 14px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.04em;
}
.login-version {
  margin: 10px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.06em;
}

/* Faz 4 — Saha fotoğraf / görsel */
.photo-add-area {
  background: var(--surface2);
  border: 0.5px dashed var(--border-gold);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 16px 16px;
}
.photo-add-hint {
  margin-top: 12px;
  margin-bottom: 0;
  line-height: 1.55;
}
.photo-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-size: 14px;
  min-height: 48px;
  flex: 1;
  min-width: 130px;
  cursor: pointer;
}
.photo-upload-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}
.photo-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 0.5px solid var(--border);
  background: var(--surface2);
  aspect-ratio: 1;
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.photo-thumb-open {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}
.photo-thumb.is-pending {
  border: 2px dashed var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}
.photo-pending-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(201, 168, 76, 0.92);
  color: #1A1814;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 4px 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.photo-pending-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-dim);
  margin-left: 6px;
}
.photo-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.9);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
}
.photo-file-card {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px 22px;
  text-decoration: none;
  color: var(--text);
  text-align: center;
}
.photo-file-icon {
  font-size: 28px;
  line-height: 1;
}
.photo-file-name {
  font-size: 9px;
  line-height: 1.25;
  word-break: break-all;
  max-height: 2.5em;
  overflow: hidden;
  opacity: 0.85;
}
.photo-file-type {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-dim);
}
.photo-file-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.photo-thumb--document,
.photo-thumb--video {
  background: var(--surface2);
}
.photo-thumb--document .photo-file-card,
.photo-thumb--video .photo-file-card {
  cursor: pointer;
}
@media (max-width: 480px) {
  .photo-upload-actions {
    flex-direction: column;
  }
  .photo-upload-actions .photo-upload-btn {
    width: 100%;
  }
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* Görsel lightbox — aynı sayfada, ok ile gezinme */
body.photo-lightbox-open {
  overflow: hidden;
}
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.photo-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.92);
  cursor: zoom-out;
}
.photo-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  max-height: calc(100vh - 48px);
  margin: 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.photo-lightbox-img-wrap {
  width: 100%;
  max-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y pinch-zoom;
}
.photo-lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
  user-select: none;
  -webkit-user-drag: none;
}
.photo-lightbox-counter {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.photo-lightbox-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.photo-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
}
.photo-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}
.photo-lightbox-nav:disabled {
  opacity: 0.25;
  cursor: default;
}
.photo-lightbox-prev {
  left: max(8px, env(safe-area-inset-left, 0px));
}
.photo-lightbox-next {
  right: max(8px, env(safe-area-inset-right, 0px));
}
@media (max-width: 640px) {
  .photo-lightbox-panel {
    margin: 0 12px;
  }
  .photo-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 28px;
    background: rgba(0, 0, 0, 0.35);
  }
  .photo-lightbox-prev { left: 4px; }
  .photo-lightbox-next { right: 4px; }
}

/* Admin/moderatör — saha kapanış bildirimi */
.staff-notify-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border-gold);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(201, 168, 76, 0.04));
  font-size: 13px;
  line-height: 1.45;
}
.staff-notify-prompt-text {
  color: var(--text2);
  flex: 1;
  min-width: 200px;
}
.staff-notify-prompt[hidden] {
  display: none !important;
}
.staff-notify-prompt--active {
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.04));
}
.staff-notify-prompt--active .staff-notify-prompt-text {
  color: var(--text1);
}

.customer-match-hint {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text3);
}
.customer-match-hint--found {
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 0.5px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  color: var(--text2);
}

/* =============================================
   İŞ EMRİ DETAY — layout
============================================= */
.wo-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}
.wo-detail-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.wo-detail-field {
  padding: 9px 14px;
  border-bottom: 0.5px solid var(--border);
}
.wo-detail-fields .wo-detail-field:nth-child(even) {
  border-left: 0.5px solid var(--border);
}
.wo-detail-field-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text3);
  margin-bottom: 4px;
  font-weight: 600;
}
.wo-detail-field-value {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text1);
  word-break: break-word;
}
.wo-detail-block {
  padding: 14px 16px;
  border-top: 0.5px solid var(--border);
}
.wo-detail-block-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text3);
  margin-bottom: 8px;
  font-weight: 600;
}
.wo-detail-block-body {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text2);
  white-space: pre-wrap;
  word-break: break-word;
}
.wo-detail-block--highlight .wo-detail-block-body {
  background: var(--surface2);
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
}
.wo-detail-block--muted .wo-detail-block-body {
  font-size: 11px;
  color: var(--text3);
  word-break: break-all;
}
.support-closure-summary {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-closure-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.support-closure-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  font-weight: 600;
}

/* Admin sistem */
.admin-count-grid {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.admin-count-value {
  font-size: 22px;
  font-weight: 700;
}
.admin-result-list {
  margin: 0;
  padding: 16px 16px 16px 32px;
  line-height: 1.8;
}
.admin-reset-form {
  padding: 0 0 8px;
}
.admin-reset-desc {
  padding: 0 16px;
  color: var(--text2);
  line-height: 1.6;
}
.admin-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 16px 12px;
  cursor: pointer;
}
.admin-check-row input {
  margin-top: 3px;
}
.admin-reset-actions {
  padding: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Checklist modal */
.checklist-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  overflow: hidden;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}
.checklist-modal-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.checklist-modal-panel {
  position: relative;
  background: var(--surface);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  margin: 20px auto;
  max-height: calc(100dvh - 40px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.checklist-modal-header {
  padding: 16px 18px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--sidebar-bg);
  flex-shrink: 0;
}
.checklist-header-title {
  font-size: 15px;
  font-weight: 600;
  color: #F5EDD6;
}
.checklist-header-sub {
  font-size: 11px;
  color: rgba(197,186,168,0.65);
  margin-top: 3px;
}
.checklist-close-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #C5BAA8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
}
.checklist-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 8px;
  -webkit-overflow-scrolling: touch;
}
.checklist-modal-body form {
  padding: 0;
}
.checklist-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text3);
  margin-bottom: 12px;
}
.checklist-modal-footer {
  flex-shrink: 0;
  padding: 12px 16px 16px;
  border-top: 0.5px solid var(--border);
  background: var(--surface);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.checklist-status {
  display: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dim);
  text-align: center;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: var(--gold-light);
  border-radius: var(--radius);
  border: 0.5px solid var(--border-gold);
}
.checklist-status.active {
  display: block;
}
.checklist-alert {
  margin-bottom: 8px !important;
  font-size: 13px;
  padding: 10px 12px !important;
}
.checklist-error-list {
  margin: 0 0 8px;
  padding-left: 18px;
  color: var(--danger-text);
  font-size: 12px;
  line-height: 1.5;
}
.checklist-submit-btn {
  width: 100%;
  padding: 14px 16px;
  background: var(--gold);
  color: #1A1814;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
}
.checklist-submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.cl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--surface2);
  border: 0.5px solid var(--border);
}
.cl-row-label {
  font-size: 13px;
  color: var(--text1);
  flex: 1;
  padding-right: 8px;
  line-height: 1.4;
}
.cl-row-options {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.cl-opt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 20px;
  border: 0.5px solid transparent;
  min-height: 36px;
}
.cl-opt input { margin: 0; }
.cl-opt-yes {
  background: var(--success-bg);
  color: var(--success-text);
}
.cl-opt-no {
  background: var(--surface3);
  color: var(--text2);
}
.cl-field-block { margin-top: 14px; }
.cl-custom-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 0.5px solid var(--border);
}
.cl-custom-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}
.vehicle-dropdown {
  display: none;
  position: absolute;
  z-index: 1001;
  left: 20px;
  right: 20px;
  background: var(--surface);
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius);
  max-height: 180px;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.vehicle-dropdown.open { display: block; }
.vehicle-dd-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  font-size: 14px;
  border: none;
  border-bottom: 0.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.vehicle-dd-item:active { background: var(--gold-light); }
#vehicle-test-section { position: relative; }

/* Tam ekran başarı */
.checklist-done-screen {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.checklist-done-screen.show {
  display: flex;
}
.checklist-done-inner {
  text-align: center;
  max-width: 320px;
}
.checklist-done-icon {
  font-size: 56px;
  margin-bottom: 12px;
  animation: checklist-pop 0.4s ease;
}
.checklist-done-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--success-text);
  margin: 0 0 10px;
}
.checklist-done-msg {
  font-size: 15px;
  color: var(--text1);
  line-height: 1.5;
  margin: 0 0 8px;
}
.checklist-done-sub {
  font-size: 13px;
  color: var(--text2);
  margin: 0 0 8px;
}
.checklist-done-hint {
  font-size: 12px;
  color: var(--text3);
  margin: 16px 0 0;
}
@keyframes checklist-pop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

body.checklist-open .app-toast-wrap {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

/* =============================================
   YARDIMCI SINIFLAR
============================================= */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-8       { gap: 8px; }
.gap-12      { gap: 12px; }
.mt-4        { margin-top: 4px; }
.mt-8        { margin-top: 8px; }
.mt-16       { margin-top: 16px; }
.text-muted  { color: var(--text3); }
.text-small  { font-size: 12px; }
.text-mono   { font-family: var(--font-mono); }
.text-right  { text-align: right; }
.text-gold   { color: var(--gold-dim); }
.w-full      { width: 100%; }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text3);
}
.empty-state .empty-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.4; }
.empty-state--modern {
  padding: 40px 24px 24px;
}
.empty-state-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: linear-gradient(145deg, var(--gold-glow), rgba(255,255,255,0.6));
  border: 0.5px solid var(--border-gold);
  box-shadow: var(--shadow-sm);
}
.empty-state-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text1);
  margin-bottom: 6px;
}
.empty-state-sub {
  font-size: 13px;
  color: var(--text3);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.5;
}
.empty-state-actions {
  text-align: center;
  padding: 0 24px 32px;
}

/* Sayfa giriş animasyonu */
body.page-is-loading .page-content {
  opacity: 0;
}
body:not(.page-is-loading) .page-content {
  animation: pageFadeIn 0.38s ease forwards;
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Tablo yüklenirken hafif shimmer (isteğe bağlı) */
body.page-is-loading .card-table .table-wrap {
  min-height: 120px;
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: tableShimmer 1.2s ease infinite;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
body.page-is-loading .card-table .data-table {
  visibility: hidden;
}
@keyframes tableShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =============================================
   PWA — Kurulum banner & standalone
============================================= */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--sidebar-bg);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  animation: pwa-slide-up 0.35s ease;
}
.pwa-install-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #F5EDD6;
  font-size: 12px;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}
.pwa-install-text strong { font-size: 13px; color: var(--gold-mid); }
.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pwa-install-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--sidebar-text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.pwa-ios-hint {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px 40px 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--gold-light);
  border-top: 1px solid var(--border-gold);
  color: var(--text2);
  font-size: 12.5px;
  line-height: 1.5;
}
.pwa-ios-hint em { font-style: normal; font-weight: 600; color: var(--gold-dim); }
@keyframes pwa-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

body.tech-mobile-nav .pwa-install-banner {
  bottom: calc(62px + env(safe-area-inset-bottom, 0px));
}
body.tech-mobile-nav .pwa-ios-hint,
body.tech-mobile-nav .pwa-android-hint {
  bottom: calc(62px + env(safe-area-inset-bottom, 0px));
}

.pwa-android-hint {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px 40px 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: #1A1814;
  border-top: 2px solid var(--gold);
  color: #F5EDD6;
  font-size: 12.5px;
  line-height: 1.5;
}
.pwa-android-hint em { font-style: normal; font-weight: 600; color: var(--gold-mid); }

/* PWA standalone — iPhone & Android ana ekran ikonu */
html.pwa-standalone {
  background: #1A1814;
  min-height: 100%;
}
html.pwa-standalone body {
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  padding-top: 0;
}
html.pwa-standalone .mobile-header {
  padding-top: env(safe-area-inset-top, 0px);
  min-height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
}
html.pwa-standalone body.tech-mobile-nav .page-content {
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}
html.pwa-standalone .page-content {
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}
html.pwa-standalone .login-page {
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html.pwa-standalone .pwa-install-banner,
html.pwa-standalone .pwa-android-hint,
html.pwa-standalone .pwa-ios-hint {
  display: none !important;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  html { background: #1A1814; }
  body {
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    padding-top: 0;
  }
  .mobile-header {
    padding-top: env(safe-area-inset-top, 0px);
    min-height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  }
  body.tech-mobile-nav .page-content {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }
  .page-content {
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .login-page {
    min-height: 100dvh;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .pwa-install-banner,
  .pwa-android-hint,
  .pwa-ios-hint { display: none !important; }
}

/* =============================================
   TEKNİSYEN — Alt navigasyon (mobil / PWA)
============================================= */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--sidebar-bg);
  border-top: 1px solid var(--sidebar-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  align-items: stretch;
  justify-content: space-around;
}

body.tech-mobile-nav .mobile-bottom-nav {
  display: flex;
}

body.tech-mobile-nav .page-content {
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 6px;
  color: var(--sidebar-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-item:active { background: var(--sidebar-hover); }
.mobile-nav-item.active {
  color: var(--sidebar-active);
}
.mobile-nav-item.active .mobile-nav-icon { transform: scale(1.08); }
.mobile-nav-icon {
  font-size: 22px;
  line-height: 1;
  transition: transform 0.15s;
}
.mobile-nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mobile-nav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 28px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--gold);
  color: #1A1814;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.mobile-nav-item-camera .mobile-nav-icon-wrap {
  width: 44px;
  height: 44px;
  margin-top: -18px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-mid), var(--gold-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(201,168,76,0.45);
  border: 3px solid var(--sidebar-bg);
}
.mobile-nav-item-camera .mobile-nav-icon { font-size: 20px; }
.mobile-nav-item-camera.active .mobile-nav-icon-wrap {
  box-shadow: 0 4px 18px rgba(201,168,76,0.65);
}

@media (min-width: 769px) and (not (display-mode: standalone)) {
  body.tech-mobile-nav .mobile-bottom-nav { display: none; }
  body.tech-mobile-nav .page-content { padding-bottom: 14px; }
}

/* Profil sayfası */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 20px;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 2px solid var(--border-gold);
  color: var(--gold-dim);
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text1);
  margin: 0 0 4px;
}
.profile-email {
  font-size: 13px;
  color: var(--text3);
  margin: 0 0 8px;
}
.profile-links {
  display: flex;
  flex-direction: column;
  padding: 4px 0 8px;
}
.profile-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text1);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 0.5px solid var(--border);
  transition: background 0.12s;
}
.profile-link-item:last-child { border-bottom: none; }
.profile-link-item:active,
.profile-link-item:hover { background: var(--surface2); }
.profile-link-item span:first-child { font-size: 18px; width: 28px; text-align: center; }

/* Kamera iş emri seçici */
.camera-job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.camera-job-card {
  display: block;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.camera-job-card:active {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
}
.camera-job-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.camera-job-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text1);
  margin-bottom: 6px;
}
.camera-job-meta { line-height: 1.5; margin-bottom: 12px; }
.camera-job-action { text-align: right; }

/* Toast bildirimleri */
.app-toast-wrap {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 1300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
body:not(.tech-mobile-nav) .app-toast-wrap {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.app-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: auto;
}
.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.app-toast-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #86EFAC;
}
.app-toast-error {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid #FCA5A5;
}
.app-toast-info {
  background: var(--gold-light);
  color: var(--gold-dim);
  border: 1px solid var(--border-gold);
}
.app-toast-icon { font-size: 20px; flex-shrink: 0; }
.app-toast-text { flex: 1; }

.alert-prominent {
  font-size: 15px;
  font-weight: 600;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

/* Checklist başarı paneli */
.checklist-success-panel {
  text-align: center;
  padding: 28px 16px 20px;
  background: var(--success-bg);
  border: 1px solid #86EFAC;
  border-radius: var(--radius);
  margin-top: 12px;
}
.checklist-success-icon { font-size: 48px; margin-bottom: 8px; }
.checklist-success-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--success-text);
  margin: 0 0 8px;
}
.checklist-success-msg {
  font-size: 14px;
  color: var(--success-text);
  margin: 0 0 6px;
  line-height: 1.5;
}
.checklist-success-sub {
  font-size: 13px;
  color: var(--text2);
  margin: 0 0 8px;
}
.checklist-success-hint {
  font-size: 12px;
  color: var(--text3);
  margin: 12px 0 0;
}

/* =============================================
   FAZ B — Operasyon Merkezi & Bildirimler
============================================= */
.ops-quick-link { border-left: 3px solid var(--gold); }
.ops-quick-link-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  flex-wrap: wrap;
}

.ops-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}
.ops-main { min-width: 0; }
.ops-sidebar { min-width: 0; }

.ops-map-card .card-header { flex-wrap: wrap; gap: 8px; }
.ops-map {
  width: 100%;
  height: 420px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: #e8e4dc;
  z-index: 1;
}
.ops-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 10px 16px 14px;
  font-size: 12px;
  color: var(--text2);
  border-top: 1px solid var(--border);
}
.ops-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.ops-dot--open { background: #378ADD; }
.ops-dot--progress { background: #EF9F27; }
.ops-dot--waiting { background: #9A7B35; }
.ops-dot--high { background: #E24B4A; }

.ops-map-pin-wrap { background: none; border: none; }
.ops-map-pin {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.ops-map-popup { min-width: 160px; line-height: 1.45; }
.ops-map-popup a { color: var(--gold-dim); font-size: 13px; }

.ops-stale-banner { margin-bottom: 16px; }

.ops-tech-list {
  list-style: none;
  margin: 0;
  padding: 0 16px 12px;
}
.ops-tech-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.ops-tech-item:last-child { border-bottom: none; }
.ops-tech-name { font-weight: 600; font-size: 14px; }
.ops-tech-metrics { display: flex; gap: 6px; flex-shrink: 0; }
.ops-metric {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg2);
  color: var(--text2);
  white-space: nowrap;
}
.ops-metric--gold { background: var(--gold-bg); color: var(--gold-dim); }

.ops-timeline {
  list-style: none;
  margin: 0;
  padding: 8px 16px 14px;
}
.ops-timeline-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.ops-timeline-item:last-child { border-bottom: none; }
.ops-timeline-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-dim);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  width: 38px;
}
.ops-timeline-wo {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
}
.ops-timeline-wo:hover { color: var(--gold-dim); }

/* Bildirim çanı */
.sidebar-user .ops-notify-wrap { display: block; flex-shrink: 0; }
.mobile-header .ops-notify-wrap { display: none; margin-left: auto; }

.ops-notify-bell {
  position: relative;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--sidebar-border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  color: #F5EDD6;
  transition: background .15s;
}
.ops-notify-bell:hover { background: rgba(255,255,255,.14); }
.mobile-header .ops-notify-bell {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.15);
}

.ops-notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1a1a;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.ops-notify-badge--warn { background: #E24B4A; color: #fff; }

.ops-notify-panel[hidden],
.ops-notify-badge[hidden] {
  display: none !important;
}

.ops-notify-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 200;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(70vh, 480px);
}

/* Sidebar: panel ana içeriğe doğru açılır (220px sidebar'a sığmaz) */
.sidebar-user .ops-notify-panel {
  position: fixed;
  left: calc(var(--sidebar-w) + 10px);
  bottom: 10px;
  right: auto;
  width: min(320px, calc(100vw - var(--sidebar-w) - 20px));
  max-height: min(70vh, calc(100vh - 20px));
}

.mobile-header .ops-notify-panel {
  bottom: auto;
  top: calc(100% + 8px);
  position: absolute;
  left: auto;
  right: 0;
  width: min(320px, calc(100vw - 16px));
  max-height: min(60vh, 420px);
}
.ops-notify-wrap { position: relative; }

.ops-notify-panel-head {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.ops-notify-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.sidebar-user .ops-notify-list,
.mobile-header .ops-notify-list {
  max-height: none;
}
.ops-notify-item a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.ops-notify-item a:hover { background: var(--bg2); }
.ops-notify-item--warn a { border-left: 3px solid #E24B4A; }
.ops-notify-item--read a { opacity: 0.55; }
.ops-notify-item--read .ops-notify-item-title { font-weight: 500; }
.ops-notify-item-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.ops-notify-item-sub {
  display: block;
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}
.ops-notify-empty {
  padding: 20px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text3);
}
.ops-notify-panel-foot {
  display: block;
  padding: 10px 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dim);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  text-decoration: none;
}
.ops-notify-panel-foot:hover { background: var(--gold-bg); }

.customer-360-stats { margin-bottom: 16px; }

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

@media (max-width: 768px) {
  .sidebar-user .ops-notify-wrap { display: none; }
  .mobile-header .ops-notify-wrap { display: block; }
  .mobile-header .ops-notify-panel {
    position: fixed;
    top: calc(var(--topbar-h) + 8px);
    right: 8px;
    left: 8px;
    width: auto;
    bottom: auto;
    max-height: min(65vh, calc(100vh - var(--topbar-h) - 16px));
  }
  .ops-quick-link-inner { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   FAZ C — Saha GPS, offline kuyruk, saha UI
============================================= */
.field-offline-banner[hidden] { display: none !important; }
.field-offline-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--info-bg);
  border: 1px solid rgba(30, 64, 175, 0.2);
  font-size: 13px;
  color: var(--info-text);
}
.field-offline-banner--offline {
  background: var(--warning-bg);
  border-color: rgba(201, 168, 76, 0.45);
  color: var(--warning-text);
}
.field-offline-banner-icon { font-size: 18px; flex-shrink: 0; }
.field-offline-banner-text { flex: 1; min-width: 160px; }
.field-offline-sync-btn { margin-left: auto; }

.field-action-card {
  border-left: 4px solid var(--gold);
  overflow: hidden;
}
.field-action-card--open { border-left-color: #378ADD; }
.field-action-card--in_progress { border-left-color: #EF9F27; }
.field-action-card--waiting_parts { border-left-color: #9A7B35; }
.field-action-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.field-action-body { padding: 14px 16px 16px; }
.field-close-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.field-close-btn,
.field-claim-btn {
  justify-content: center;
  font-size: 15px;
  padding: 14px;
}
.field-close-hint,
.field-claim-hint { text-align: center; margin-top: 8px; }

.field-claim-hero {
  text-align: center;
  padding: 20px 16px 16px;
  background: linear-gradient(180deg, var(--gold-glow) 0%, transparent 100%);
}
.field-claim-icon {
  font-size: 36px;
  margin-bottom: 8px;
  line-height: 1;
}
.field-claim-text {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 14px;
  line-height: 1.5;
}

.field-upload-zone {
  margin: 0 16px 16px;
  border: 2px dashed var(--border-gold);
  border-radius: var(--radius-lg);
  background: var(--gold-light);
}
.field-upload-zone-inner { padding: 18px 16px; text-align: center; }
.field-upload-btn { min-width: 140px; }

.field-tech-hint {
  margin-bottom: 16px;
  border-left: 3px solid #CA8A04;
}
.field-tech-hint-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
}
.field-tech-hint-icon { font-size: 24px; flex-shrink: 0; }

.field-dash-card {
  margin-bottom: 16px;
  border-left: 3px solid var(--gold);
}
.field-dash-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 16px 16px;
}

.field-gps-link {
  font-weight: 500;
  font-size: 13px;
}

.checklist-progress[hidden] { display: none !important; }
.checklist-progress {
  height: 4px;
  background: var(--surface3);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.checklist-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 999px;
  transition: width 0.25s ease;
}

@media (max-width: 768px) {
  .field-upload-btn { width: 100%; justify-content: center; }
  .field-dash-actions .btn { flex: 1; justify-content: center; min-width: 140px; }
}

/* ─── Staff topbar & global search ─── */
.staff-topbar {
  padding: 10px 20px 0;
  max-width: 100%;
}
.global-search-wrap {
  position: relative;
  max-width: 420px;
}
.global-search-input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  background: var(--surface2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 12px center no-repeat;
  color: var(--text);
  font-size: 14px;
}
.global-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  max-height: 320px;
  overflow-y: auto;
}
.global-search-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 0.5px solid var(--border);
}
.global-search-item:last-child { border-bottom: none; }
.global-search-item:hover { background: var(--surface2); }
.global-search-item-icon { flex-shrink: 0; font-size: 16px; }
.global-search-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.global-search-item-sub { font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.global-search-empty { padding: 12px; font-size: 13px; color: var(--text3); }

/* ─── Dashboard analytics ─── */
.analytics-panel .analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  padding: 0 16px 12px;
}
.analytics-kpi {
  background: var(--surface2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: center;
}
.analytics-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-dim);
  line-height: 1.2;
}
.analytics-kpi-label {
  font-size: 11px;
  color: var(--text3);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.analytics-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  padding: 8px 16px 0;
  border-top: 0.5px solid var(--border);
}
.analytics-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-width: 0;
}
.analytics-bar {
  width: 100%;
  max-width: 36px;
  background: linear-gradient(180deg, var(--gold-dim), var(--gold));
  border-radius: 4px 4px 0 0;
  margin-top: auto;
}
.analytics-bar-label {
  font-size: 10px;
  color: var(--text3);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ─── Ops map — canlı teknisyen ─── */
.ops-dot--tech { background: #2d8a4e; }
.ops-map-pin-wrap--tech { z-index: 600 !important; }
.ops-map-pin--tech {
  width: 20px;
  height: 20px;
  background: #2d8a4e;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(45,138,78,.35);
}

@media (max-width: 768px) {
  .staff-topbar { padding: 8px 12px 0; }
  .global-search-wrap { max-width: none; }
}

/* ─── Moderatör açık iş özeti ─── */
.mod-open-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 0;
}
.mod-open-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.mod-open-chip--high { background: #FEE2E2; color: #991B1B; }
.mod-open-chip--normal { background: #FEF3C7; color: #92400E; }
.mod-open-chip--low { background: var(--surface2); color: var(--text2); }
.mod-open-hint { padding: 8px 16px 0; margin: 0; }
.mod-open-table { margin-top: 8px; }
.mod-open-customer strong { font-size: 13px; color: var(--text1); }

/* ─── Analytics compact ─── */
.analytics-panel--compact .analytics-panel-head {
  padding: 10px 16px;
}
.analytics-compact-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 8px 16px 12px;
  flex-wrap: nowrap;
}
.analytics-kpi--compact {
  flex: 0 0 auto;
  background: var(--surface2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  text-align: center;
  min-width: 72px;
}
.analytics-kpi--compact .analytics-kpi-value {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-dim);
  line-height: 1.2;
}
.analytics-kpi--compact .analytics-kpi-label {
  display: block;
  font-size: 10px;
  color: var(--text3);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.analytics-bars--compact {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 52px;
  min-width: 120px;
  padding: 0;
  border: none;
}
.analytics-bars--compact .analytics-bar { max-width: 24px; }
.analytics-bars--compact .analytics-bar-label { font-size: 9px; }
.analytics-details {
  border-top: 0.5px solid var(--border);
  padding: 0 16px 10px;
}
.analytics-details summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text2);
  padding: 8px 0 4px;
  user-select: none;
}
.data-table--compact th,
.data-table--compact td {
  padding: 8px 10px;
  font-size: 12px;
}
