/* =========================================================================
   Crane Tracking & Management System (SaaS)
   Dashboard CSS Styling - Reverted Premium Industrial Slate Theme
   ========================================================================= */

/* Yazı ve ikonlar yerel servis edilir; sayfa açılışında üçüncü tarafa IP/
   user-agent aktarımı yapılmaz. */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('/assets/fonts/MaterialIcons-Regular.woff2') format('woff2');
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* =========================================================================
   NILVERA TARZI AÇIK TEMA
   Koyu lacivert sidebar + açık gri içerik + beyaz kartlar + turkuaz aksiyon
   ========================================================================= */
:root {
  --color-primary: #12B3A6;
  --color-primary-glow: rgba(18, 179, 166, 0.25);
  --color-bg: #F1F5F9;
  --color-surface: #FFFFFF;
  --color-surface-hover: #F8FAFC;
  --color-border: #CBD5E1; /* Bolder border for forms and cards */
  --color-text-main: #0B132B; /* Much darker text for higher readability */
  --color-text-sub: #3B4A60; /* Darker subtext for better contrast */
  --color-title: #0F172A;

  /* Sidebar (Nilvera koyu lacivert) */
  --sidebar-bg: #101827;
  --sidebar-bg-active: #1C2839;
  --sidebar-text: #94A3B8;
  --sidebar-text-active: #FFFFFF;

  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --color-info: #3B82F6;

  --color-green: #10B981;
  --color-red: #EF4444;
  --color-yellow: #F59E0B;

  --font-display: 'Segoe UI', Arial, sans-serif;
  --font-body: 'Segoe UI', Arial, sans-serif;
  --sidebar-width: 240px;

  --gap-cards: 20px;
  --padding-cards: 20px;
  --radius-cards: 10px;
}

/* Eski koyu/açık tema anahtarı: artık her iki durumda da açık tema kullanılır */
body.light-theme {
  --color-bg: #F1F5F9;
  --color-surface: #FFFFFF;
  --color-surface-hover: #F8FAFC;
  --color-border: #CBD5E1;
  --color-text-main: #0B132B;
  --color-text-sub: #3B4A60;
}

/* Reset & Scrollbar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-body);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* =========================================================================
   Layout Structure
   ========================================================================= */

/* Sidebar (Nilvera tarzı koyu lacivert) */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  border-right: none;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: #FFFFFF;
  letter-spacing: 1px;
  line-height: 1.4;
  text-transform: uppercase;
}

.sidebar-nav {
  list-style: none;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 13.5px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-item a .material-icons {
  font-size: 19px;
}

.nav-item.active > a,
.nav-item a:hover {
  background-color: var(--sidebar-bg-active);
  color: var(--sidebar-text-active);
  border-left-color: var(--color-primary);
}

/* Alt sekmeler (örn. Hizmet Teslim Fişleri > Fiş Ekle / Fişler) */
.nav-sub {
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 4px 0;
  padding-left: 30px;
}

.nav-item.open .nav-sub {
  display: flex;
}

.nav-sub .nav-subitem a {
  padding: 8px 12px;
  font-size: 12.5px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 8px 8px 0;
  color: var(--sidebar-text);
}

.nav-sub .nav-subitem.active a,
.nav-sub .nav-subitem a:hover {
  color: var(--sidebar-text-active);
  border-left-color: var(--color-primary);
  background-color: var(--sidebar-bg-active);
}

.nav-caret {
  margin-left: auto;
  font-size: 16px !important;
  transition: transform 0.2s ease;
}

.nav-item.open .nav-caret {
  transform: rotate(180deg);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--sidebar-text);
}

.sidebar-account {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-top-color: var(--color-border);
}

.sidebar-account-company {
  overflow: hidden;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.sidebar-account-heading .sidebar-account-company {
  flex: 1 1 auto;
  min-width: 0;
}

.sidebar-account-name {
  overflow: hidden;
  color: var(--sidebar-text-active);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account-email {
  overflow: hidden;
  color: var(--color-text-sub);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account-badges {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 3px;
  min-height: 18px;
  overflow: visible;
}

@media (min-width: 761px) {
  .sidebar {
    overflow: hidden;
  }

  .sidebar-nav {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .sidebar-footer {
    flex: 0 0 auto;
  }

  body:not(.sidebar-collapsed) .sidebar-footer .sidebar-account-badges {
    display: flex !important;
  }
}

.sidebar-account-role,
.sidebar-account-tier {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.sidebar-account-role {
  border: 1px solid rgba(46, 134, 222, .35);
  color: #b9d9ff;
  background: rgba(46, 134, 222, .16);
}

.sidebar-account-role.staff {
  border-color: rgba(18, 179, 166, .4);
  color: #8ee7df;
  background: rgba(18, 179, 166, .15);
}

.sidebar-account-tier {
  color: var(--color-bg);
  background: var(--color-primary);
}

/* Şirket sahibi masaüstü hızlı işlemleri: hesap bilgilerinin hemen altında,
   kenar çubuğunun sol alt bölümünde yer alır. Mobil arayüzde gösterilmez. */
.company-desktop-actions {
  flex: 0 0 auto;
  width: auto;
  display: grid;
  grid-template-columns: repeat(2, 30px);
  gap: 5px;
  margin: 0;
}

.company-desktop-actions[hidden] {
  display: none !important;
}

.company-desktop-action {
  width: 30px;
  height: 30px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.company-desktop-action:hover {
  transform: translateY(-1px);
}

.company-desktop-action:focus-visible {
  outline: 3px solid rgba(110, 231, 245, .25);
  outline-offset: 2px;
}

.company-desktop-action .material-icons {
  flex: 0 0 auto;
  font-size: 17px;
}

.company-desktop-action-home {
  border-color: rgba(110, 231, 245, .24);
  background: rgba(110, 231, 245, .09);
  color: #c8f7fc;
}

.company-desktop-action-home:hover {
  border-color: rgba(110, 231, 245, .45);
  background: rgba(110, 231, 245, .16);
}

.company-desktop-action-logout {
  border-color: rgba(251, 113, 133, .25);
  background: rgba(251, 113, 133, .08);
  color: #fda4af;
}

.company-desktop-action-logout:hover {
  border-color: rgba(251, 113, 133, .48);
  background: rgba(251, 113, 133, .16);
}

.sidebar-session-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #fda4af;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.sidebar-session-logout[hidden] {
  display: none !important;
}

.sidebar-session-logout .material-icons {
  font-size: 16px;
}

/* Kapalı 36 modalın sabit, bulanıklaştırılmış kompozit katmanlar oluşturması
   özellikle iOS WebKit'te ciddi bellek baskısı yaratıyordu. Kapalı modalları
   render ağacından tamamen çıkar; açık modalın mevcut görünümünü koru. */
body.dashboard-page .modal-backdrop:not(.open) {
  display: none !important;
  visibility: hidden !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.dashboard-page .modal-backdrop.open {
  display: flex;
  visibility: visible;
}

body.dashboard-page .mobile-sidebar-toggle,
body.dashboard-page .sidebar-toggle,
body.dashboard-page .sidebar-nav a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 760px) {
  .company-desktop-actions {
    display: none !important;
  }
}

/* Main Content Area */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Header */
.top-header {
  height: 70px;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 99;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 8px 16px;
  width: 320px;
}

.header-search input {
  background: none;
  border: none;
  color: var(--color-text-main);
  outline: none;
  font-size: 17px;
  width: 100%;
}

.header-search input::placeholder {
  color: var(--color-text-sub);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.header-greeting {
  color: var(--color-text-main);
  font-size: 15px;
  font-weight: 600;
}

.btn-theme-toggle {
  background: none;
  border: none;
  color: var(--color-text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.btn-theme-toggle:hover {
  background-color: var(--color-surface-hover);
  color: var(--color-primary);
}

.btn-audit {
  background-color: var(--color-primary);
  color: #121212;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-audit:hover {
  background-color: #0FA396;
}

.notification-bell {
  position: relative;
  cursor: pointer;
  color: var(--color-text-sub);
  display: flex;
  align-items: center;
}

.notification-bell:hover {
  color: var(--color-primary);
}

.notification-bell .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--color-red);
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
}

.content-container {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* =========================================================================
   Dashboard Panel Grid Elements
   ========================================================================= */

/* KPI stats cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 12px;
}

.kpi-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.kpi-header {
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-sub);
  letter-spacing: 0.5px;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
}

.kpi-subtext {
  font-size: 17px;
  color: var(--color-text-sub);
}

/* Specific colors */
.kpi-card.success .kpi-value { color: var(--color-primary); }
.kpi-card.warning .kpi-value { color: var(--color-yellow); }
.kpi-card.danger .kpi-value { color: var(--color-red); }

/* Mid-grid 2-column layout */
.mid-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

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

/* Panel card containers */
.panel-card { background-color: var(--color-surface); border-radius: var(--radius-cards); padding: var(--padding-cards); border: 1px solid var(--color-border); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }

.panel-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Alerts List */
.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 18px;
}

.alert-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.alert-indicator.red { background-color: var(--color-red); }
.alert-indicator.yellow { background-color: var(--color-yellow); }

.alert-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alert-message {
  font-weight: 600;
}

.alert-meta {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  color: var(--color-text-sub);
}

/* Fleet layout */
.fleet-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

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

.crane-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crane-plate {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.crane-model {
  font-size: 17px;
  color: var(--color-text-sub);
}

/* Dynamic status badges (Reverted to solid style preferred by user) */
.status-badge {
  font-size: 18px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  color: white;
}

.status-badge.safe { background-color: var(--color-green); }
.status-badge.unsafe { background-color: var(--color-red); }
.status-badge.maintenance { background-color: var(--color-yellow); }
.status-badge.suspended { background-color: var(--color-red); }

/* =========================================================================
   Fiş Fatura / Tahsilat durum rozetleri
   Fatura: mavi (kesildi) / gri (kesilmedi)  —  Tahsilat: yeşil (alındı) / kırmızı (bekliyor)
   Renk + ikon + yazı birlikte kullanılır; renk körü kullanıcılar için de ayırt edilebilir.
   ========================================================================= */
.flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.flag-badge .material-icons { font-size: 14px; }

.flag-badge.invoice-issued {
  background-color: rgba(46, 134, 222, 0.15);
  color: #2e86de;
  border-color: #2e86de;
}

.flag-badge.invoice-pending {
  background-color: rgba(128, 128, 128, 0.15);
  color: #8a8a8a;
  border-color: #8a8a8a;
}

.flag-badge.payment-paid {
  background-color: rgba(30, 158, 98, 0.15);
  color: #1e9e62;
  border-color: #1e9e62;
}

.flag-badge.payment-unpaid {
  background-color: rgba(210, 75, 75, 0.15);
  color: #d24b4b;
  border-color: #d24b4b;
}

.flag-badge.payment-partial {
  background-color: #fff7ed;
  color: #c2410c;
  border-color: #fdba74;
}

/* =========================================================================
   Şirketler CRM (Faz 1): müşteri durum rozeti + detay ekranı sekme pilleri
   ========================================================================= */
.company-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.company-status-badge.aktif { background-color: rgba(30, 158, 98, 0.15); color: #1e9e62; border-color: #1e9e62; }
.company-status-badge.pasif { background-color: rgba(128, 128, 128, 0.15); color: #8a8a8a; border-color: #8a8a8a; }
.company-status-badge.borclu { background-color: rgba(230, 162, 60, 0.15); color: #e6a23c; border-color: #e6a23c; }
.company-status-badge.odemesi-gecikmis { background-color: rgba(210, 75, 75, 0.15); color: #d24b4b; border-color: #d24b4b; }
.company-status-badge.yeni-musteri { background-color: rgba(46, 134, 222, 0.15); color: #2e86de; border-color: #2e86de; }

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

.company-detail-tab-pill {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-sub);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.company-detail-tab-pill:hover { color: var(--color-text); }

.company-detail-tab-pill.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.company-detail-tab-body { min-height: 80px; }

/* Sade cari hesap: bilgi hiyerarşisi, güçlü ayrımlar ve okunaklı formlar */
.cari-summary-grid {
  grid-template-columns: minmax(280px, 1.45fr) repeat(2, minmax(190px, 1fr));
  gap: 14px;
}

.cari-balance-card,
.cari-summary-card,
.cari-action-card,
.cari-section-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
}

.cari-balance-card {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 5px solid var(--color-primary);
}

.cari-balance-card.has-debt { border-left-color: var(--color-red); }
.cari-balance-card.is-clear { border-left-color: var(--color-green); }
.cari-balance-card > div,
.cari-summary-card { display: flex; flex-direction: column; gap: 5px; }
.cari-balance-card > .material-icons {
  flex: 0 0 auto;
  color: var(--color-text-sub);
  font-size: 38px;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  opacity: .65;
}
.cari-balance-card > div > span,
.cari-summary-card > span { color: var(--color-text-sub); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .45px; }
.cari-balance-card strong { font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
.cari-balance-card.has-debt strong { color: var(--color-red); }
.cari-balance-card small,
.cari-summary-card small { color: var(--color-text-sub); font-size: 12px; }
.cari-summary-card { padding: 22px; justify-content: center; }
.cari-summary-card strong { font-size: 21px; line-height: 1.2; }

.cari-action-card {
  margin-bottom: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, var(--color-surface), color-mix(in srgb, var(--color-primary) 6%, var(--color-surface)));
}

.cari-action-card h3,
.cari-section-heading h3,
.cari-ledger-heading h3 { margin: 3px 0 4px; font-size: 18px; line-height: 1.3; }
.cari-action-card p,
.cari-section-heading p { margin: 0; color: var(--color-text-sub); font-size: 13px; line-height: 1.55; }
.cari-eyebrow { color: var(--color-primary); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.cari-primary-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.cari-action-button { min-height: 42px; padding: 9px 14px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.cari-action-button .material-icons { font-size: 18px; }

.cari-section-card { margin-bottom: 16px; padding: 22px; }
.cari-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cari-status-pill { border-radius: 999px; padding: 6px 11px; font-size: 11px; font-weight: 800; white-space: nowrap; background: rgba(230, 162, 60, .14); color: #b7791f; border: 1px solid rgba(230, 162, 60, .35); }
.cari-status-pill.ready { background: rgba(30, 158, 98, .12); color: var(--color-green); border-color: rgba(30, 158, 98, .35); }
.cari-status-pill.waiting { background: rgba(210, 75, 75, .11); color: var(--color-red); border-color: rgba(210, 75, 75, .3); }

.cari-tariff-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; }
.cari-field-card { display: flex; flex-direction: column; padding: 15px; border-radius: 10px; border: 1px solid var(--color-border); background: var(--color-bg); cursor: text; }
.cari-field-card > span { font-size: 14px; font-weight: 800; }
.cari-field-card > small { min-height: 34px; padding-top: 4px; color: var(--color-text-sub); font-size: 11px; line-height: 1.45; }
.cari-field-card > div { display: flex; align-items: center; gap: 8px; margin-top: 9px; border-top: 1px solid var(--color-border); padding-top: 10px; }
.cari-field-card input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--color-text-main); font-size: 20px; font-weight: 800; }
.cari-field-card b { color: var(--color-text-sub); font-size: 12px; }
.cari-tariff-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 18px; }
.cari-switch-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.cari-switch-row input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--color-primary); }
.cari-switch-row span { display: flex; flex-direction: column; gap: 2px; }
.cari-switch-row b { font-size: 13px; }
.cari-switch-row small { color: var(--color-text-sub); font-size: 11px; line-height: 1.4; }
.cari-tariff-preview { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--color-border); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cari-tariff-preview > div { display: flex; flex-direction: column; margin-right: auto; }
.cari-tariff-preview span { color: var(--color-text-sub); font-size: 11px; }
.cari-tariff-preview label { font-size: 12px; font-weight: 700; }
.cari-tariff-preview input { width: 78px; margin: 0 5px; padding: 7px; border: 1px solid var(--color-border); border-radius: 7px; background: var(--color-bg); color: var(--color-text-main); }
.cari-tariff-preview strong { min-width: 190px; text-align: right; color: var(--color-primary); font-size: 14px; }

.cari-tariff-panel { padding: 0; overflow: hidden; }
.cari-equipment-pricing { margin: 0; padding: 0; }
.vehicle-pricing-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 88% -40%, rgba(45, 212, 191, .32), transparent 42%),
    linear-gradient(135deg, #101d3b 0%, #17325a 60%, #155e75 100%);
  color: #fff;
}
.vehicle-pricing-hero::after {
  content: '';
  position: absolute;
  right: 18%;
  bottom: -55px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
}
.vehicle-pricing-hero-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 15px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
.vehicle-pricing-hero-icon .material-icons { font-size: 27px; }
.vehicle-pricing-hero-copy { position: relative; z-index: 1; min-width: 0; margin-right: auto; }
.vehicle-pricing-hero .cari-eyebrow { color: #5eead4; }
.vehicle-pricing-hero h3 { margin: 4px 0 5px; color: #fff; font-size: 20px; line-height: 1.25; }
.vehicle-pricing-hero p { max-width: 760px; margin: 0; color: #d7e7f4; font-size: 12px; line-height: 1.55; }
.vehicle-pricing-hero .cari-equipment-price-add {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  border-color: #5eead4;
  background: #14b8a6;
  color: #071a29;
  box-shadow: 0 8px 22px rgba(6, 78, 59, .26);
}
.vehicle-pricing-automation {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 18px 20px 16px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--color-primary) 26%, var(--color-border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--color-primary) 5%, var(--color-surface));
}
.vehicle-pricing-automation-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-primary) 15%, var(--color-surface));
  color: var(--color-primary);
  font-size: 21px;
}
.vehicle-pricing-automation > div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.vehicle-pricing-automation b { color: var(--color-text-main); font-size: 13px; }
.vehicle-pricing-automation small { color: var(--color-text-sub); font-size: 10px; line-height: 1.4; }
.vehicle-pricing-toggle { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; cursor: pointer; }
.vehicle-pricing-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.vehicle-pricing-toggle > span {
  position: relative;
  width: 42px;
  height: 23px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, .25);
  transition: background .18s ease;
}
.vehicle-pricing-toggle > span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .28);
  transition: transform .18s ease;
}
.vehicle-pricing-toggle input:checked + span { background: var(--color-primary); }
.vehicle-pricing-toggle input:checked + span::after { transform: translateX(19px); }
.vehicle-pricing-toggle input:focus-visible + span { outline: 3px solid rgba(37, 99, 235, .3); outline-offset: 2px; }
.vehicle-pricing-toggle input:disabled + span { opacity: .58; cursor: not-allowed; }
.vehicle-pricing-toggle em { min-width: 124px; color: var(--color-text-sub); font-size: 11px; font-style: normal; font-weight: 700; }
.vehicle-pricing-toggle em[data-state="enabled"] { color: #087f5b; }
.cari-equipment-price-add { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; white-space: nowrap; }
.cari-equipment-price-add .material-icons { font-size: 18px; }
.cari-equipment-pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 20px 20px; }
.cari-equipment-price-group { min-width: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: 13px; background: var(--color-surface); box-shadow: 0 5px 16px rgba(15, 23, 42, .05); }
.cari-equipment-price-title { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--color-border); background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 7%, var(--color-surface)), var(--color-surface)); }
.cari-equipment-price-title > .material-icons { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface)); color: var(--color-primary); font-size: 19px; }
.cari-equipment-price-title > div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.cari-equipment-price-title b { color: var(--color-text-main); font-size: 13px; }
.cari-equipment-price-title small { color: var(--color-text-sub); font-size: 10px; line-height: 1.4; }
.cari-equipment-price-title > strong { flex: 0 0 auto; padding: 5px 8px; border: 1px solid color-mix(in srgb, var(--color-primary) 24%, var(--color-border)); border-radius: 999px; background: var(--color-surface); color: var(--color-primary); font-size: 10px; }
.cari-equipment-price-table { width: 100%; min-width: 0; table-layout: fixed; }
.cari-equipment-price-table th { white-space: nowrap; font-size: 10px; }
.cari-equipment-price-table td { vertical-align: middle; font-size: 11px; }
.cari-equipment-price-table :is(th, td):nth-child(1) { width: 39%; }
.cari-equipment-price-table :is(th, td):nth-child(2) { width: 25%; }
.cari-equipment-price-table :is(th, td):nth-child(3) { width: 17%; }
.cari-equipment-price-table :is(th, td):nth-child(4) { width: 19%; text-align: right; }
.cari-equipment-price-asset { display: flex; flex-direction: column; gap: 2px; }
.cari-equipment-price-asset b { color: var(--color-text-main); font-size: 12px; }
.cari-equipment-price-asset small { color: var(--color-text-sub); font-size: 10px; line-height: 1.35; }
.cari-equipment-price-actions { display: flex; justify-content: flex-end; gap: 5px; }
.cari-equipment-price-empty { padding: 26px 18px !important; color: var(--color-text-sub); text-align: center; }
.cari-equipment-price-empty > .material-icons { display: block; margin-bottom: 7px; color: var(--color-primary); font-size: 28px; opacity: .72; }
.cari-equipment-price-empty > b,
.cari-equipment-price-empty > small { display: block; }
.cari-equipment-price-empty > b { margin-bottom: 3px; color: var(--color-text-main); font-size: 12px; }
.cari-equipment-price-empty > small { max-width: 330px; margin: 0 auto; font-size: 10px; line-height: 1.5; }
.cari-pricing-modal-hint { margin: -2px 0 14px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--color-primary) 24%, var(--color-border)); border-radius: 8px; background: color-mix(in srgb, var(--color-primary) 6%, var(--color-surface)); color: var(--color-text-sub); font-size: 11px; line-height: 1.5; }
.cari-field-hint { display: block; margin-top: 5px; color: var(--color-text-sub); font-size: 10px; line-height: 1.4; }

.cari-statement-controls { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.cari-statement-controls > label,
.cari-custom-dates label { display: flex; flex-direction: column; gap: 5px; color: var(--color-text-sub); font-size: 11px; font-weight: 700; }
.cari-statement-controls .form-control { min-width: 160px; }
.cari-custom-dates { display: flex; gap: 10px; }
.cari-advanced-filters { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--color-border); }
.cari-advanced-filters summary { color: var(--color-text-sub); cursor: pointer; font-size: 12px; font-weight: 700; }
.cari-advanced-filters > div { display: flex; gap: 9px; flex-wrap: wrap; padding-top: 12px; }
.cari-advanced-filters .form-control { width: auto; min-width: 170px; }
.cari-ledger-shell {
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}
.cari-ledger-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 20px 22px;
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 87% 0, color-mix(in srgb, var(--color-primary) 12%, transparent), transparent 30%),
    linear-gradient(120deg, color-mix(in srgb, #14213d 5%, var(--color-surface)), var(--color-surface));
}
.cari-ledger-title-block { display: flex; align-items: center; gap: 13px; min-width: 0; }
.cari-ledger-title-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), #2563eb);
  color: #fff;
  font-size: 23px;
  box-shadow: 0 7px 16px rgba(37, 99, 235, .2);
}
.cari-ledger-heading h3 { margin: 3px 0 2px; color: var(--color-title); font-size: 18px; }
.cari-ledger-heading p { margin: 0; color: var(--color-text-sub); font-size: 11px; line-height: 1.5; }
.cari-ledger-header-actions { flex: 0 0 auto; }
.cari-ledger-header-actions .btn-action-small { min-height: 38px; display: inline-flex; align-items: center; gap: 6px; }
.cari-ledger-header-actions .material-icons { font-size: 17px; }
.cari-statement-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--color-border); background: var(--color-bg); }
.cari-statement-selection-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; color: #9a6700; font-size: 11px; font-weight: 700; }
.cari-statement-selection-note .material-icons { font-size: 15px; }
.cari-statement-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border: 1px solid var(--color-border); border-radius: 11px; background: var(--color-surface); }
.cari-statement-card-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: var(--color-bg); color: var(--color-text-sub); font-size: 18px; }
.cari-statement-card > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.cari-statement-card small { overflow: hidden; color: var(--color-text-sub); font-size: 9px; font-weight: 700; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.cari-statement-card strong { color: var(--color-text-main); font-size: 14px; white-space: nowrap; }
.cari-statement-card.debit .cari-statement-card-icon,
.cari-statement-card.debit strong { color: var(--color-red); }
.cari-statement-card.credit .cari-statement-card-icon,
.cari-statement-card.credit strong,
.cari-statement-card.clear .cari-statement-card-icon,
.cari-statement-card.clear strong { color: var(--color-green); }
.cari-ledger-selection-bar { align-items: center; justify-content: space-between; gap: 14px; padding: 11px 18px; border-bottom: 1px solid #93c5fd; background: #eff6ff; color: #1e3a8a; }
.cari-ledger-selection-count,
.cari-ledger-selection-actions { display: flex; align-items: center; gap: 8px; }
.cari-ledger-selection-count { font-size: 12px; font-weight: 800; }
.cari-ledger-selection-count .material-icons { color: #2563eb; font-size: 19px; }
.cari-ledger-selection-actions .btn-action-small { min-height: 34px; padding: 6px 10px; background: #fff; }

.company-receipt-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.cari-ledger-selection-actions .material-icons { font-size: 15px; }
.cari-ledger-selection-actions .cari-selection-remove { border-color: #fca5a5; background: #fff7f7; color: #b91c1c; }
.cari-ledger-selection-actions .cari-selection-remove:hover { border-color: #ef4444; background: #fee2e2; color: #991b1b; }
.cari-ledger-table-wrap { overflow-x: auto; border: 0; border-radius: 0; }
.cari-ledger-table { width: 100%; min-width: 1040px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cari-ledger-table :is(th, td):nth-child(1) { width: 124px; }
.cari-ledger-table :is(th, td):nth-child(2) { width: auto; }
.cari-ledger-table :is(th, td):nth-child(3) { width: 156px; }
.cari-ledger-table :is(th, td):nth-child(4) { width: 145px; }
.cari-ledger-table :is(th, td):nth-child(5) { width: 165px; }
.cari-ledger-table :is(th, td):nth-child(6) { width: 154px; }
.cari-ledger-table th { padding: 11px 13px; border-bottom: 1px solid var(--color-border); background: color-mix(in srgb, #1e3a8a 5%, var(--color-bg)); color: var(--color-text-sub); font-size: 9px; font-weight: 800; letter-spacing: .55px; text-transform: uppercase; white-space: nowrap; }
.cari-ledger-table td { padding: 13px; border-bottom: 1px solid color-mix(in srgb, var(--color-border) 72%, transparent); background: var(--color-surface); vertical-align: middle; line-height: 1.4; transition: background .15s ease; }
.cari-ledger-table tbody tr:last-child td { border-bottom: 0; }
.cari-ledger-row { position: relative; }
.cari-ledger-row td:first-child { border-left: 3px solid transparent; }
.cari-ledger-row.ledger-receipt td:first-child { border-left-color: #6366f1; }
.cari-ledger-row.ledger-payment td:first-child { border-left-color: var(--color-green); }
.cari-ledger-row.ledger-equipment td:first-child { border-left-color: #0ea5e9; }
.cari-ledger-row.ledger-manual td:first-child { border-left-color: #f59e0b; }
.cari-ledger-row.ledger-reversal td:first-child { border-left-color: #94a3b8; }
.cari-ledger-row:hover td { background: color-mix(in srgb, var(--color-primary) 3%, var(--color-surface)); }
.cari-ledger-row.is-selected td { background: #eff6ff; }
.cari-ledger-date { display: flex; flex-direction: column; gap: 2px; }
.cari-ledger-date b { color: var(--color-text-main); font-size: 11px; }
.cari-ledger-date small { color: var(--color-text-sub); font-size: 9px; }
.cari-ledger-description { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cari-ledger-description > div { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
.cari-ledger-description b { overflow: hidden; max-width: 100%; color: var(--color-text-main); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cari-ledger-kind-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; background: #eef2ff; color: #4f46e5; }
.cari-ledger-kind-icon.payment { background: #ecfdf5; color: #059669; }
.cari-ledger-kind-icon.equipment { background: #f0f9ff; color: #0284c7; }
.cari-ledger-kind-icon.manual { background: #fffbeb; color: #d97706; }
.cari-ledger-kind-icon.reversal { background: #f1f5f9; color: #64748b; }
.cari-ledger-kind-icon .material-icons { font-size: 17px; }
.cari-money-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.cari-money-chip .material-icons { font-size: 13px; }
.cari-money-chip.debit { color: var(--color-red); }
.cari-money-chip.credit { color: var(--color-green); }
.cari-ledger-muted { color: #94a3b8; }
.cari-ledger-balance { display: flex; flex-direction: column; gap: 1px; }
.cari-ledger-balance b { font-size: 12px; white-space: nowrap; }
.cari-ledger-balance small { color: var(--color-text-sub); font-size: 8px; text-transform: uppercase; }
.cari-ledger-balance.debit b { color: var(--color-red); }
.cari-ledger-balance.credit b,
.cari-ledger-balance.clear b { color: var(--color-green); }
.cari-ledger-status-stack { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; }
.cari-ledger-status-stack small { color: var(--color-text-sub); font-size: 9px; }
.cari-ledger-status-badge { display: inline-flex; align-items: center; gap: 3px; width: fit-content; max-width: 100%; padding: 3px 7px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg); color: var(--color-text-sub); font-size: 8px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.cari-ledger-status-badge .material-icons { font-size: 10px; }
.cari-ledger-status-badge.success { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.cari-ledger-status-badge.warning { border-color: #fde68a; background: #fffbeb; color: #a16207; }
.cari-ledger-status-badge.danger { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.cari-ledger-source-button { display: inline-flex; align-items: center; gap: 3px; margin-top: 5px; padding: 3px 6px; border: 1px solid #bae6fd; border-radius: 6px; background: #f0f9ff; color: #0369a1; cursor: pointer; font: inherit; font-size: 8px; font-weight: 800; }
.cari-ledger-source-button .material-icons { font-size: 11px; }
.cari-ledger-table .cari-ledger-action-cell { width: 48px; padding-inline: 7px; text-align: center; }
.cari-ledger-table .cari-ledger-select-cell {
  width: 66px;
  padding-inline: 9px;
  text-align: center;
  vertical-align: middle;
}
.cari-ledger-table th.cari-ledger-select-cell,
.cari-ledger-table td.cari-ledger-select-cell {
  position: sticky;
  right: 0;
  z-index: 2;
  box-shadow: -8px 0 14px rgba(15, 23, 42, .05);
}
.cari-ledger-table th.cari-ledger-select-cell { z-index: 3; background: color-mix(in srgb, #1e3a8a 5%, var(--color-bg)); color: var(--color-text-main); }
.cari-ledger-table td.cari-ledger-select-cell { background: var(--color-surface); }
.cari-ledger-row:hover td.cari-ledger-select-cell { background: color-mix(in srgb, var(--color-primary) 3%, var(--color-surface)); }
.cari-ledger-row.is-selected td.cari-ledger-select-cell { background: #eff6ff; }
.cari-ledger-table th.cari-ledger-select-cell label { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; cursor: pointer; }
.cari-ledger-row-select { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface); cursor: pointer; }
.cari-ledger-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-primary-dark);
  cursor: pointer;
  vertical-align: middle;
}
.cari-ledger-checkbox:focus-visible { outline: 3px solid rgba(37, 99, 235, .32); outline-offset: 2px; }
.cari-ledger-reverse-button { display: inline-grid; place-items: center; width: 29px; height: 29px; border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; color: #dc2626; cursor: pointer; }
.cari-ledger-reverse-button .material-icons { font-size: 15px; }
.cari-ledger-empty { padding: 42px 20px !important; color: var(--color-text-sub); text-align: center; }
.cari-ledger-empty > .material-icons { display: block; margin-bottom: 6px; color: var(--color-primary); font-size: 32px; opacity: .65; }
.cari-ledger-empty > b,
.cari-ledger-empty > small { display: block; }
.cari-ledger-empty > b { color: var(--color-text-main); font-size: 13px; }
.cari-ledger-empty > small { margin-top: 3px; font-size: 10px; }
.cari-ledger-pagination { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 64px; padding: 10px 18px; border-top: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-bg) 55%, var(--color-surface)); }
.cari-pagination-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); color: var(--color-primary); cursor: pointer; box-shadow: 0 2px 7px rgba(15, 23, 42, .05); }
.cari-pagination-button .material-icons { font-size: 18px; }
.cari-pagination-button:disabled { color: #94a3b8; cursor: not-allowed; opacity: .55; }
.cari-pagination-status { display: flex; min-width: 105px; flex-direction: column; align-items: center; gap: 1px; color: var(--color-text-main); font-size: 10px; }
.cari-pagination-status b { color: var(--color-primary); font-size: 12px; }
.cari-pagination-status small { color: var(--color-text-sub); font-size: 9px; }

@media (max-width: 980px) {
  .cari-summary-grid { grid-template-columns: 1fr 1fr; }
  .cari-balance-card { grid-column: 1 / -1; }
  .cari-tariff-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .cari-equipment-pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .cari-statement-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cari-action-card { align-items: flex-start; flex-direction: column; }
  .cari-primary-actions { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .cari-summary-grid,
  .cari-tariff-grid { grid-template-columns: 1fr; }
  .cari-balance-card { grid-column: auto; }
  .cari-action-card,
  .cari-section-card { padding: 17px; }
  .cari-primary-actions { width: 100%; }
  .cari-action-button { flex: 1 1 100%; justify-content: center; }
  .cari-tariff-footer { align-items: stretch; flex-direction: column; }
  .cari-custom-dates { width: 100%; flex-direction: column; }
  .cari-statement-controls > label,
  .cari-statement-controls > button,
  .cari-custom-dates label { width: 100%; }
  .cari-statement-controls .form-control { width: 100%; }
  .cari-tariff-preview strong { width: 100%; text-align: left; }
  .vehicle-pricing-hero { align-items: flex-start; flex-wrap: wrap; padding: 20px 17px; }
  .vehicle-pricing-hero-copy { flex: 1 1 calc(100% - 70px); }
  .vehicle-pricing-hero .cari-equipment-price-add { justify-content: center; width: 100%; }
  .vehicle-pricing-automation { align-items: flex-start; flex-wrap: wrap; margin: 14px; }
  .vehicle-pricing-toggle { width: 100%; padding-top: 5px; }
  .cari-equipment-pricing-grid { padding: 0 14px 14px; }
  .cari-equipment-price-add { justify-content: center; width: 100%; }
  .cari-ledger-heading { align-items: flex-start; flex-direction: column; padding: 17px; }
  .cari-ledger-title-block { align-items: flex-start; }
  .cari-ledger-header-actions,
  .cari-ledger-header-actions .btn-action-small { width: 100%; }
  .cari-ledger-header-actions .btn-action-small { justify-content: center; }
  .cari-statement-summary { grid-template-columns: 1fr; padding: 12px; }
  .cari-ledger-selection-bar { align-items: stretch; flex-direction: column; }
  .cari-ledger-selection-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cari-ledger-selection-actions .cari-selection-remove { grid-column: 1 / -1; }
}

/* =========================================================================
   Açılır menüler (Dışa Aktar + satır İşlemler)
   ========================================================================= */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 500;
  min-width: 210px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  border-radius: 6px;
  text-decoration: none;
  user-select: none;
}

.dropdown-menu a:hover {
  background-color: var(--color-bg);
  color: var(--color-primary);
}

.dropdown-menu .menu-divider {
  height: 1px;
  background-color: var(--color-border);
  margin: 4px 6px;
}

/* Satır işlemleri menüsü sayfada tek kopyadır, tıklanan satıra göre konumlanır */
#receiptActionsMenu {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
}

/* =========================================================================
   Table Area - Delivery Receipts Log
   ========================================================================= */

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

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 17px;
}

.custom-table th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text-sub);
  border-bottom: 1px solid var(--color-border);
  padding: 16px;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.custom-table td {
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.custom-table tr:hover td {
  background-color: var(--color-surface-hover);
}

/* Actions & Buttons */
.btn-action-small {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-action-small:hover {
  background-color: var(--color-primary);
  color: #121212;
  border-color: var(--color-primary);
}

.text-bold {
  font-weight: 600;
}

/* =========================================================================
   Modal - Geolocation Map & Signature Visualizer
   ========================================================================= */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(18, 18, 18, 0.85);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.modal-backdrop.open .modal-content {
  transform: translateY(0);
}

.modal-content > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

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

.modal-title-bar h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 17px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--color-text-sub);
  font-size: 20px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--color-red);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  min-height: 0;
}

.modal-footer {
  flex-shrink: 0;
}

/* Map placeholder inside modal */
.map-iframe-container {
  height: 300px;
  width: 100%;
  background-color: var(--color-bg);
  border-radius: 6px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
}

.map-placeholder-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-text-sub);
  text-align: center;
  font-size: 17px;
}

/* =========================================================================
   SPA Tab Panels & Admin CRUD Forms
   ========================================================================= */

.tab-panel {
  display: none;
}

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

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

.form-group label {
  font-size: 16px;
  font-weight: 700; /* Bolder label */
  color: var(--color-text-main); /* High contrast */
  margin-bottom: 4px;
}

.form-control {
  background-color: var(--color-surface); /* White bg is more readable */
  border: 2px solid #94A3B8; /* Bolder, thicker border */
  color: var(--color-text-main);
  padding: 10px 14px;
  border-radius: 6px;
  outline: none;
  font-size: 17px;
  font-family: var(--font-body);
  font-weight: 600; /* Bolder text inside input */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

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

textarea.form-control {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.btn-danger-small {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  color: #E57373;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-danger-small:hover {
  background-color: var(--color-red);
  color: white;
  border-color: var(--color-red);
}

select.form-control {
  cursor: pointer;
}

select.form-control option {
  background-color: var(--color-surface);
  color: var(--color-text-main);
}

/* Unsafe Asset Pulse Animations */
.crane-card.unsafe {
  border-color: var(--color-red) !important;
  animation: card-pulse-red 2s infinite;
}

.kpi-card.danger-glow-active {
  border-color: var(--color-red) !important;
  animation: card-pulse-red 2s infinite;
}

@keyframes card-pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(211, 47, 47, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
  }
}


/* ==========================================
   V2 UI/UX OVERRIDES
   ========================================== */

/* Typography Overrides */
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  font-size: 15px;
  font-weight: 500; /* Slightly thicker general body font */
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-title);
  font-family: var(--font-display);
}

h2 { font-size: 20px; }
.card h3, .panel-header h2 { font-size: 16px; }
.text-sub { font-size: 13px; color: var(--color-text-sub); }

/* Spacing & Layout Overrides */
.dashboard-grid, .grid, .status-grid {
  gap: var(--gap-cards) !important;
}

.card, .status-card, .data-panel {
  background: var(--color-surface);
  border-radius: var(--radius-cards);
  padding: var(--padding-cards);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover, .status-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* Smart Cards (Left Border) */
.smart-card {
  border-left: 4px solid var(--color-primary);
}
.smart-card.success { border-left-color: var(--color-success); }
.smart-card.warning { border-left-color: var(--color-warning); }
.smart-card.danger { border-left-color: var(--color-danger); }
.smart-card.info { border-left-color: var(--color-info); }

/* Buttons Standard */
.btn, button {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 0 20px;
  height: 50px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-weight: 700; /* Bolder button labels */
}

.btn-primary {
  background: var(--color-primary);
  color: #000;
}
.btn-primary:hover {
  background: #e0a300;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #4A4A4A;
  color: #FFF;
}
.btn-secondary:hover { background: #5a5a5a; }

.btn-danger { background: var(--color-danger); color: #FFF; }
.btn-success { background: var(--color-success); color: #FFF; }
.btn-outline { 
  background: transparent; 
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Forms Standard */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 15px;
  font-weight: 700; /* Bolder form labels */
  color: var(--color-text-main); /* Higher contrast color */
  margin-bottom: 2px;
}
.form-group input, .form-group select, .form-group textarea {
  height: 50px;
  background: var(--color-surface); /* White bg is cleaner and more readable */
  border: 2px solid #94A3B8; /* 2px thick border for high readability */
  border-radius: 8px;
  padding: 0 16px;
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600; /* Bolder input text */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
  outline: none;
}
.form-group.has-error input { border-color: var(--color-danger); }
.form-group.has-success input { border-color: var(--color-success); }

/* Table V2 */
.table-container {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}
.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.custom-table th {
  background: var(--color-bg);
  color: var(--color-title);
  font-weight: 600;
  text-align: left;
  padding: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2px solid var(--color-border);
}
.custom-table td {
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  height: 52px;
}
.custom-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}
.custom-table tr:hover { background: var(--color-surface-hover); }

/* Sidebar Menu V2 */
.sidebar {
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
}
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-item {
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  color: var(--color-text-sub);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 15px;
  margin: 0 12px;
}
.nav-item:hover {
  background: var(--color-surface);
  color: var(--color-text-main);
}
.nav-item.active {
  background: rgba(18, 179, 166, 0.1);
  color: var(--color-primary);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
  margin-left: 0;
  padding-left: 28px;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toast {
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  color: var(--color-text-main);
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  transform: translateX(120%);
  animation: slideInRight 0.3s forwards;
}
.toast.success { border-left-color: var(--color-success); }
.toast.error { border-left-color: var(--color-danger); }
.toast.warning { border-left-color: var(--color-warning); }

@keyframes slideInRight {
  to { transform: translateX(0); }
}

/* =========================================================================
   NILVERA UI DÜZELTMELERİ
   Açık temaya uygun kompakt yazı boyutları, buton ve tablo stilleri.
   Bu blok dosyanın sonunda olduğu için önceki kuralları ezer.
   ========================================================================= */

body {
  font-size: 13px;
}

/* Butonlar: küçük, büyük harfli, turkuaz (Nilvera aksiyon stili) */
.btn-audit {
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 9px 16px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-audit:hover {
  box-shadow: 0 2px 10px var(--color-primary-glow);
  filter: brightness(1.05);
  transform: none;
}

.btn-action-small {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.btn-action-small:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-danger-small {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
}

/* Kartlar: beyaz, ince gölge */
.panel-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-cards);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.panel-title {
  font-size: 15px;
  color: var(--color-title);
}

/* Tablolar: küçük gri büyük-harf başlık, kompakt hücre */
.custom-table th,
.data-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-sub);
  font-weight: 600;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.custom-table td,
.data-table td {
  font-size: 13px;
  border-bottom: 1px solid var(--color-border);
}

.custom-table tr:hover td,
.data-table tr:hover td {
  background-color: var(--color-surface-hover);
}

/* Rozetler: küçük */
.status-badge {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.crane-plate {
  font-size: 12px;
  font-weight: 700;
}

.crane-model {
  font-size: 12px;
}

/* Form kontrolleri */
.form-control,
.search-input {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  font-size: 13px;
  border-radius: 6px;
}

.form-control:focus,
.search-input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-group label {
  font-size: 11.5px;
  color: var(--color-text-sub);
  font-weight: 600;
}

/* KPI ve genel metinler */
.kpi-subtext { font-size: 11.5px; }

/* Modallar açık temaya uysun */
.modal-content {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

/* Toast gölgesi açık temada yumuşak */
.toast {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

/* Nilvera tarzı ikincil (mavi) buton varyantı */
.btn-primary-blue {
  background-color: #2E86DE !important;
  color: #fff !important;
}
@keyframes fadeOut {
  to { opacity: 0; }
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg) 25%, var(--color-surface) 50%, var(--color-bg) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}
@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Page Header */
.page-header {
  margin-bottom: 32px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 8px;
}

/* Search Bar V2 */
.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}
.search-wrapper input {
  width: 100%;
  height: 50px;
  border-radius: 25px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0 48px;
  color: var(--color-text-main);
}
.search-wrapper .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-sub);
}
.search-wrapper .filter-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-sub);
  cursor: pointer;
}


/* Force reset for sidebar overlapping text */
.sidebar-nav .nav-item {
  height: auto !important;
  display: block !important;
  padding: 0 !important;
  margin-bottom: 4px;
}
.sidebar-nav .nav-item a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  min-height: 48px;
  height: auto !important;
  white-space: normal !important;
  line-height: 1.4 !important;
  border-radius: 8px !important;
}
.sidebar-nav .nav-item.active {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 4px 0 !important;
}
.sidebar-nav .nav-item.active a {
  background: rgba(18, 179, 166, 0.12) !important;
  color: var(--color-primary) !important;
  border-left: 4px solid var(--color-primary) !important;
  border-radius: 0 8px 8px 0 !important;
}

/* =========================================================================
   FILTER BAR STYLES
   ========================================================================= */

.search-input {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-main);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(18, 179, 166, 0.15);
}

.search-input::placeholder {
  color: var(--color-text-sub);
  font-size: 12px;
}

.filter-bar select.search-input {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 28px;
}

input[type='date'].search-input {
  cursor: pointer;
  width: 140px;
}

input[type='date'].search-input::-webkit-calendar-picker-indicator {
  filter: invert(0.5);
  cursor: pointer;
}

/* Araç Evrak Merkezi — sigorta, kasko, TÜVTÜRK ve egzoz takip ekranı */
.vehicle-documents-hero,.vehicle-documents-summary,.vehicle-documents-alerts,.vehicle-documents-controls,.vehicle-documents-table-wrap{border:1px solid var(--color-border);border-radius:10px;background:var(--color-surface);box-shadow:0 1px 3px rgba(15,23,42,.1)}
.vehicle-documents-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px;color:#fff;background:linear-gradient(120deg,#1d4ed8,#0891b2 58%,#0f9f6e);border-color:rgba(255,255,255,.18)}
.vehicle-documents-eyebrow{margin:0 0 5px;color:#dff8ff;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.vehicle-documents-hero h2{margin:0;color:#fff;font-size:24px}.vehicle-documents-hero p:not(.vehicle-documents-eyebrow){margin:9px 0 0;color:#e7f7ff;font-size:13px;line-height:1.55}
.vehicle-documents-primary,.vehicle-documents-secondary,.vehicle-documents-doc-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:7px;cursor:pointer;font:inherit;font-size:12px;font-weight:750}.vehicle-documents-primary{padding:11px 15px;color:#123042;background:#fff;white-space:nowrap}.vehicle-documents-primary .material-icons,.vehicle-documents-secondary .material-icons,.vehicle-documents-doc-button .material-icons{font-size:17px}
.vehicle-documents-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px;padding:16px}.vehicle-documents-metric{border:1px solid transparent;border-radius:8px;padding:16px}.vehicle-documents-metric span{display:block;font-size:12px;font-weight:700}.vehicle-documents-metric strong{display:block;margin-top:5px;font-size:30px;line-height:1}.vehicle-documents-metric.danger{color:#dc2626;border-color:#fecaca;background:#fff1f2}.vehicle-documents-metric.warning{color:#c76b06;border-color:#fed7aa;background:#fff7e8}.vehicle-documents-metric.success{color:#07825a;border-color:#a7f3d0;background:#ecfdf5}
.vehicle-documents-alerts{margin-top:16px;padding:18px;border-top:4px solid #f59e0b}.vehicle-documents-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:12px}.vehicle-documents-section-head h3{margin:0;color:var(--color-title);font-size:15px}.vehicle-documents-section-head span{color:var(--color-text-sub);font-size:12px}.vehicle-documents-alert-list{display:grid;gap:9px}.vehicle-documents-alert{display:flex;gap:9px;align-items:baseline;padding:11px 13px;border:1px solid transparent;border-radius:7px;font-size:12px}.vehicle-documents-alert.expired{color:#b91c1c;background:#fff1f2;border-color:#fecaca}.vehicle-documents-alert.warning{color:#b45309;background:#fff7e8;border-color:#fed7aa}.vehicle-documents-empty{margin:0;padding:12px;color:#07825a;font-size:12px;font-weight:650;text-align:center}
.vehicle-documents-controls{display:grid;grid-template-columns:minmax(210px,1fr) 200px auto auto;gap:12px;align-items:end;margin-top:16px;padding:16px}.vehicle-documents-controls label{display:grid;gap:6px;color:#0B132B;font-size:12px;font-weight:800}.vehicle-documents-controls input,.vehicle-documents-controls select{min-height:40px;padding:9px 10px;border:2px solid #94A3B8;border-radius:7px;background:var(--color-surface);color:var(--color-text-main);font:inherit;font-size:13px;font-weight:600}.vehicle-documents-secondary{min-height:40px;padding:9px 12px;color:#fff;background:#0891b2;font-weight:700}
.vehicle-documents-table-wrap{margin-top:16px;overflow-x:auto}.vehicle-documents-table{width:100%;min-width:1060px;border-collapse:collapse;font-size:12px}.vehicle-documents-table th,.vehicle-documents-table td{padding:13px 12px;border-bottom:1px solid var(--color-border);text-align:left;vertical-align:middle}.vehicle-documents-table th{color:#3b4658;background:#fff;font-size:11px;text-transform:uppercase;white-space:nowrap}.vehicle-documents-table tbody tr:hover{background:#f5f8ff}.vehicle-documents-table td small{display:block;margin-top:3px;color:var(--color-text-sub)}.vehicle-documents-plate{color:#1d4ed8;font-weight:800;white-space:nowrap}.vehicle-documents-badge{display:inline-flex;min-width:110px;justify-content:center;border:1px solid transparent;border-radius:99px;padding:6px 9px;font-size:11px;font-weight:800;white-space:nowrap}.vehicle-documents-badge.ok{color:#07825a;border-color:#a7f3d0;background:#ecfdf5}.vehicle-documents-badge.warning{color:#b45309;border-color:#fed7aa;background:#fff7e8}.vehicle-documents-badge.expired{color:#b91c1c;border-color:#fecaca;background:#fff1f2}.vehicle-documents-doc-button{min-height:34px;padding:7px 10px;color:#fff;background:#0891b2;white-space:nowrap}
@media (max-width:820px){.vehicle-documents-hero,.vehicle-documents-section-head{align-items:flex-start;flex-direction:column}.vehicle-documents-summary,.vehicle-documents-controls{grid-template-columns:1fr}.vehicle-documents-primary,.vehicle-documents-secondary{width:100%}}
@media print{.sidebar,.top-header,.vehicle-documents-controls,.vehicle-documents-primary,.vehicle-documents-doc-button{display:none!important}.main-wrapper{margin-left:0}.vehicle-documents-hero{color:#111;background:#fff}.vehicle-documents-hero h2,.vehicle-documents-hero p:not(.vehicle-documents-eyebrow){color:#111}}

/* Marka, okunabilir açık tema ve daraltılabilir menü düzenlemeleri */
:root {
  --sidebar-bg: #12324a;
  --sidebar-bg-active: #1b4663;
  --sidebar-text: #c9d9e8;
  --sidebar-text-active: #ffffff;
}

.sidebar {
  background: var(--sidebar-bg) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: width .22s ease;
}

.sidebar-brand {
  min-height: 74px;
  padding: 16px 14px 16px 18px;
  background: #0e2a40;
  justify-content: flex-start;
}

.brand-text { color: #ffffff; line-height: 1.18; text-transform: none; }
.brand-text span { display: block; margin-top: 4px; color: #c8d9e8; font-size: 9px !important; font-weight: 600 !important; letter-spacing: .04em; }
.brand-icon { flex: 0 0 auto; }

.sidebar-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 7px;
  padding: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}
.sidebar-toggle:hover { background: rgba(255,255,255,.12); }

.sidebar-nav .nav-item > a { color: var(--sidebar-text) !important; }
.sidebar-nav .nav-item > a:hover,
.sidebar-nav .nav-item.active > a { background: var(--sidebar-bg-active) !important; color: #ffffff !important; }
.sidebar-nav .nav-item.active a { border-left-color: #3dc7dd !important; }
.sidebar .sidebar-nav .nav-item,
.sidebar .sidebar-nav .nav-item:hover,
.sidebar .sidebar-nav .nav-item.active,
.sidebar .sidebar-nav .nav-item.open {
  background: transparent !important;
  color: var(--sidebar-text) !important;
}
.sidebar .sidebar-nav .nav-item.open > a,
.sidebar .sidebar-nav .nav-item.open > a:hover,
.sidebar .sidebar-nav .nav-item.active.open > a,
.sidebar .sidebar-nav .nav-item.active.open > a:hover {
  background: #1b4663 !important;
  color: #ffffff !important;
  border-left-color: #3dc7dd !important;
  border-radius: 8px 8px 0 0 !important;
}
.sidebar .sidebar-nav .nav-item.open > a .material-icons { color: #ffffff !important; }
.sidebar .sidebar-nav .nav-item.open > .nav-sub {
  display: flex;
  margin: -4px 0 6px !important;
  padding: 7px 8px 8px 18px !important;
  border: 1px solid rgba(110, 231, 245, .16);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #0d2a40 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.sidebar .sidebar-nav .nav-item.open > .nav-sub .nav-subitem > a {
  min-height: 36px;
  padding: 8px 10px !important;
  border-left: 2px solid transparent !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: #c9d9e8 !important;
}
.sidebar .sidebar-nav .nav-item.open > .nav-sub .nav-subitem > a:hover,
.sidebar .sidebar-nav .nav-item.open > .nav-sub .nav-subitem.active > a {
  border-left-color: #3dc7dd !important;
  background: #1b4663 !important;
  color: #ffffff !important;
}
.sidebar-footer { border-top-color: rgba(255,255,255,.12) !important; color: #c9d9e8 !important; }
.sidebar-footer #sidebarCompanyName { color: #6ee7f5 !important; }
.sidebar-footer #sidebarUserEmail { color: #c9d9e8 !important; }
.sidebar-footer #sidebarUserTier { color: #0e2a40 !important; background: #6ee7f5 !important; }

body.sidebar-collapsed { --sidebar-width: 76px; }
body.sidebar-collapsed .sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 7px 8px;
  background: transparent;
  border-bottom: 0;
}
body.sidebar-collapsed .brand-icon { display: none; }
body.sidebar-collapsed .brand-text { display: none; }
body.sidebar-collapsed .sidebar-toggle {
  position: static;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
}
body.sidebar-collapsed .sidebar-toggle:hover,
body.sidebar-collapsed .sidebar-toggle:focus-visible {
  background: rgba(61, 199, 221, .14);
  outline: none;
}
body.sidebar-collapsed .sidebar-toggle .material-icons { font-size: 21px; }
body.sidebar-collapsed .sidebar-nav { padding: 7px 8px 14px; gap: 8px; }
body.sidebar-collapsed .sidebar-nav .nav-item { margin: 0 !important; }
body.sidebar-collapsed .sidebar-nav .nav-item > a { justify-content: center; min-height: 44px; gap: 0 !important; padding: 11px 8px !important; font-size: 0 !important; border-left: 0 !important; border-radius: 7px !important; }
body.sidebar-collapsed .sidebar-nav .nav-item > a .material-icons { font-size: 21px !important; }
body.sidebar-collapsed .sidebar-nav .nav-caret,
body.sidebar-collapsed .sidebar-nav .nav-sub { display: none !important; }
body.sidebar-collapsed .sidebar-nav .nav-item.active a { padding-left: 8px !important; border-left: 0 !important; }
body.sidebar-collapsed .sidebar-footer {
  display: block !important;
  margin-top: auto;
  padding: 10px 8px !important;
  border-top: 0 !important;
}
body.sidebar-collapsed .sidebar-footer > div:not(.sidebar-account-heading) { display: none !important; }
body.sidebar-collapsed .sidebar-account-heading {
  display: flex !important;
  justify-content: center;
}
body.sidebar-collapsed .sidebar-account-heading .sidebar-account-company { display: none !important; }
body.sidebar-collapsed .sidebar-footer > a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 7px;
  color: #fb7185 !important;
  font-size: 0 !important;
}
body.sidebar-collapsed .sidebar-footer > a:hover { background: rgba(251, 113, 133, .12); }
body.sidebar-collapsed .sidebar-footer > a .material-icons { font-size: 19px !important; }
body.sidebar-collapsed .company-desktop-actions {
  grid-template-columns: 42px;
  gap: 6px;
  margin: 0;
  padding: 0;
  border-top: 0;
}
body.sidebar-collapsed .company-desktop-action {
  width: 42px;
  height: 42px;
  min-height: 42px;
  justify-content: center;
  padding: 0;
}
body.sidebar-collapsed .company-desktop-action .material-icons { font-size: 19px; }
body.sidebar-collapsed .company-desktop-actions[hidden] { display: none !important; }

.receipt-plate-column { min-width: 138px; width: 138px; }
#archiveReceiptsTableBody td:nth-child(4) { min-width: 138px; white-space: nowrap; }
#archiveReceiptsTableBody td:nth-child(4) .status-badge { display: inline-flex; min-width: 112px; justify-content: center; white-space: nowrap; }

@media (max-width: 760px) {
  .sidebar-toggle { display: none; }
  body.sidebar-collapsed { --sidebar-width: 240px; }
  body.sidebar-collapsed .brand-text { display: block; }
  body.sidebar-collapsed .sidebar-footer { display: none !important; }
  body.sidebar-collapsed .brand-icon { display: block; }
  body.sidebar-collapsed .sidebar-brand { display: flex; min-height: 74px; padding: 16px 14px 16px 18px; }
  body.sidebar-collapsed .sidebar-nav .nav-item > a { justify-content: flex-start; gap: 12px !important; padding: 12px 16px !important; font-size: 15px !important; }
  body.sidebar-collapsed .sidebar-nav .nav-caret { display: inline-block !important; }
  body.sidebar-collapsed .sidebar-nav .nav-item.open > .nav-sub { display: flex !important; }
}

/* Uygulama genelinde tutarlı buton paleti */
:root {
  --color-primary: #099bb9;
  --color-primary-hover: #07849d;
  --color-primary-glow: rgba(9, 155, 185, .18);
  --color-info: #2f80ed;
}

.btn-audit,
.btn-primary,
.btn-success,
#btnReceiptActions,
.vehicle-documents-primary,
.vehicle-documents-secondary,
.vehicle-documents-doc-button {
  color: #ffffff !important;
  background: var(--color-primary) !important;
}

.btn-audit:hover,
.btn-primary:hover,
.btn-success:hover,
.vehicle-documents-primary:hover,
.vehicle-documents-secondary:hover,
.vehicle-documents-doc-button:hover {
  background: var(--color-primary-hover) !important;
  box-shadow: 0 3px 10px var(--color-primary-glow);
}

/* Dışa aktarma ve ikincil, bilgi odaklı işlemler */
.btn-secondary,
.btn-primary-blue,
#btnExportReceipts {
  color: #ffffff !important;
  background: var(--color-info) !important;
}
.btn-secondary:hover,
.btn-primary-blue:hover,
#btnExportReceipts:hover {
  background: #236dcc !important;
}

/* Düzenleme/inceleme butonları aynı paletin açık yüzeyini kullanır. */
.btn-action-small {
  color: #087f99 !important;
  border-color: #9bdbe8 !important;
  background: #effbfe !important;
}
.btn-action-small:hover {
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
  background: var(--color-primary) !important;
}

/* Yıkıcı işlemler tek istisnadır; kırmızı yalnızca silme/uyarı için korunur. */
.btn-danger,
.btn-danger-small { color: #dc4b5b !important; }
.btn-danger:hover,
.btn-danger-small:hover { color: #ffffff !important; background: #dc4b5b !important; border-color: #dc4b5b !important; }

/* Araç Evrak Merkezi: kodex projesindeki satır içi takip ve periyodik PDF kartları */
.vehicle-documents-controls { grid-template-columns: minmax(210px, 1fr) 200px auto auto auto auto; }
.vehicle-documents-hero,
.vehicle-documents-summary,
.vehicle-documents-alerts { display: none; }
.vehicle-documents-controls { margin-top: 0; }
#panel-company-vehicles .vehicle-documents-hero,
#panel-vehicle-documents .vehicle-documents-hero { display: flex; }
#panel-company-vehicles .vehicle-documents-summary,
#panel-vehicle-documents .vehicle-documents-summary { display: grid; }
#panel-company-vehicles .vehicle-documents-alerts,
#panel-vehicle-documents .vehicle-documents-alerts { display: block; }
#panel-company-vehicles .vehicle-documents-controls,
#panel-vehicle-documents .vehicle-documents-controls {
  grid-template-columns: minmax(210px, 1fr) 200px auto;
  margin-top: 16px;
}
.crane-maintenance-button { display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:6px 10px; border:1px solid #9bdbe8; border-radius:6px; color:#087f99; background:#effbfe; cursor:pointer; font-size:11px; font-weight:750; }
.crane-maintenance-button .material-icons { font-size:16px; }
.crane-maintenance-button.overdue { color:#b91c1c; border-color:#fecaca; background:#fff1f2; }
.crane-readiness-info { display:flex; align-items:flex-start; gap:8px; margin:0 16px 14px; padding:10px 12px; border:1px solid #bae6fd; border-radius:7px; color:#075985; background:#f0f9ff; font-size:11px; line-height:1.45; }
.crane-readiness-info .material-icons { font-size:18px; }
.crane-status-cell { display:flex; align-items:center; gap:6px; }
.crane-status-reason-button { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; padding:0; border:1px solid #fecaca; border-radius:50%; color:#b91c1c; background:#fff1f2; cursor:pointer; }
.crane-status-reason-button:hover { color:#fff; background:#dc2626; }
.crane-status-reason-button .material-icons { font-size:16px; }
.crane-status-reason-box { display:flex; align-items:flex-start; gap:12px; padding:16px; border:1px solid #fecaca; border-radius:8px; color:#991b1b; background:#fff1f2; }
.crane-status-reason-box .material-icons { font-size:24px; }
.crane-status-reason-box p { margin:2px 0 0; white-space:pre-wrap; line-height:1.55; }
.maintenance-info-banner { display:flex; align-items:flex-start; gap:10px; margin-bottom:18px; padding:14px 16px; border:1px solid #fed7aa; border-radius:9px; color:#854d0e; background:#fff7e8; font-size:14px; line-height:1.55; }
.maintenance-info-banner .material-icons { flex:0 0 auto; font-size:21px; }
.maintenance-entry-form { display:grid; grid-template-columns:minmax(210px,1.25fr) 170px 160px 145px auto; gap:12px; align-items:end; margin-bottom:18px; padding:17px; border:1px solid var(--color-border); border-radius:10px; background:var(--color-bg); }
.maintenance-entry-form label { display:grid; gap:7px; color:#334155; font-size:13px; font-weight:750; line-height:1.35; }
.maintenance-entry-form .form-control { min-height:44px; font-size:14px; }
.maintenance-form-actions { display:flex; align-items:center; gap:7px; }
.maintenance-entry-form .btn-audit { min-height:44px; white-space:nowrap; }
.maintenance-deadline-badge { display:inline-flex; min-height:28px; align-items:center; padding:5px 10px; border-radius:999px; font-size:12px; font-weight:800; line-height:1.3; }
.maintenance-deadline-badge.ok { color:#047857; background:#d1fae5; }
.maintenance-deadline-badge.overdue { color:#b91c1c; background:#fee2e2; }
@media (max-width:1100px) {
  .maintenance-entry-form { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .maintenance-form-actions { grid-column:1 / -1; justify-content:flex-end; }
}
@media (max-width:620px) {
  .maintenance-entry-form { grid-template-columns:1fr; }
  .maintenance-form-actions { grid-column:auto; align-items:stretch; flex-direction:column-reverse; }
  .maintenance-form-actions > button { justify-content:center; width:100%; }
}
.vehicle-documents-inline-input {
  width: 100%;
  min-width: 130px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 7px 8px;
  background: transparent;
  color: var(--color-text-main);
  font: inherit;
}
.vehicle-documents-inline-input.plate { min-width: 105px; color: #087f99; font-weight: 800; }
.vehicle-documents-inline-input.date { min-width: 132px; }
.vehicle-documents-inline-input:hover { border-color: #b9e6ef; background: #f5fdff; }
.vehicle-documents-inline-input:focus { border-color: var(--color-primary); outline: none; background: #ffffff; box-shadow: 0 0 0 3px var(--color-primary-glow); }
.vehicle-documents-delete { min-width: 44px; min-height: 34px; padding: 6px 10px !important; }
.periodic-docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.periodic-doc-card { display: flex; flex-direction: column; gap: 10px; padding: 15px; border: 1px solid #b9e6ef; border-radius: 8px; background: #f7fdff; }
.periodic-doc-card h4 { margin: 0; color: #087f99; font-size: 14px; }
.periodic-doc-card p { min-height: 34px; margin: 0; color: var(--color-text-sub); font-size: 12px; overflow-wrap: anywhere; }
.periodic-doc-card label { display: grid; gap: 5px; color: var(--color-text-sub); font-size: 11px; font-weight: 700; }
.periodic-doc-card input { min-height: 38px; border: 1px solid #b9e6ef; border-radius: 6px; padding: 7px; background: #ffffff; color: var(--color-text-main); font: inherit; }
.periodic-doc-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.periodic-doc-actions button { min-height: 36px; padding: 6px 8px; font-size: 11px; }
.periodic-doc-status { padding: 8px; border-radius: 6px; background: #e8f7fb; color: #087f99; font-size: 11px; line-height: 1.35; }
.periodic-doc-status.ok { background: #e7f8f0; color: #07825a; }
@media (max-width: 1020px) { .vehicle-documents-controls { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .vehicle-documents-controls { grid-template-columns: 1fr; } }

/* Vinç iş/fiş geçmişi */
.crane-last-job-button { min-height: 34px; padding: 7px 10px !important; font-size: 11px !important; white-space: nowrap; }
.crane-last-job-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #b9e6ef; border-radius: 7px; background: #f2fcfe; color: #087f99; font-size: 13px; }
.crane-last-job-summary > .material-icons { color: var(--color-primary); }
.crane-last-job-summary small { display: block; margin-top: 3px; color: var(--color-text-sub); font-size: 11px; }

/* Şirket detayı > Vinç Kullanımı > seçilebilir iş/fiş tablosu */
.company-crane-usage-row { cursor: pointer; transition: background-color 0.18s ease, box-shadow 0.18s ease; }
.company-crane-usage-row:hover { background: #f2fcfe; box-shadow: inset 3px 0 0 var(--color-primary); }
.company-crane-usage-row:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; }
.company-crane-open-jobs { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-width: 180px; border: 0; padding: 0; background: transparent; color: var(--color-text-main); font: inherit; text-align: left; cursor: pointer; }
.company-crane-open-jobs > span:first-child { display: grid; gap: 3px; }
.company-crane-open-jobs strong { color: #075985; font-size: 12px; }
.company-crane-open-jobs small { color: var(--color-text-sub); font-size: 10.5px; font-weight: 500; }
.company-crane-open-jobs > .material-icons { color: var(--color-primary); font-size: 20px; transition: transform 0.18s ease; }
.company-crane-usage-row:hover .company-crane-open-jobs > .material-icons { transform: translateX(3px); }
.company-crane-job-count { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 5px 9px; border: 1px solid #bae6fd; border-radius: 999px; background: #f0f9ff; color: #075985; font-size: 11px; font-weight: 750; }

#companyCraneJobsModal { box-sizing: border-box; padding: 12px; }
.company-crane-jobs-modal { display: flex; flex-direction: column; width: min(1180px, 98vw); max-width: 1180px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: hidden; }
.company-crane-jobs-modal > .modal-title-bar { flex: 0 0 auto; }
.company-crane-jobs-body { flex: 1 1 auto; min-height: 0; max-height: none !important; overflow-y: auto; overscroll-behavior: contain; }
.company-crane-jobs-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; align-items: center; gap: 10px; margin-bottom: 12px; }
.company-crane-jobs-search { position: relative; display: block; min-width: 0; }
.company-crane-jobs-search > .material-icons { position: absolute; top: 50%; left: 12px; color: var(--color-text-sub); font-size: 18px; transform: translateY(-50%); pointer-events: none; }
.company-crane-jobs-search input { box-sizing: border-box; width: 100%; min-height: 42px; border: 1px solid #b9e6ef; border-radius: 8px; padding: 9px 12px 9px 39px; background: #ffffff; color: var(--color-text-main); font: inherit; font-size: 12px; outline: none; }
.company-crane-jobs-search input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-glow); }
.company-crane-select-all { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface); color: var(--color-text-main); font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.company-crane-select-all input, .company-crane-check-cell input { width: 16px; height: 16px; accent-color: var(--color-primary); cursor: pointer; }
.company-crane-select-all:has(input:disabled) { cursor: default; opacity: 0.6; }
#companyCraneJobsBuildButton { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; white-space: nowrap; }
#companyCraneJobsBuildButton .material-icons { font-size: 17px; }
.company-crane-source-table { max-height: 390px; overflow: auto; border: 1px solid var(--color-border); border-radius: 8px; }
.company-crane-source-table .custom-table, .company-crane-result-table .custom-table { min-width: 980px; }
.company-crane-source-table thead th { position: sticky; top: 0; z-index: 2; background: var(--color-surface); box-shadow: 0 1px 0 var(--color-border); }
.company-crane-check-cell { width: 52px; text-align: center !important; }
.company-crane-check-cell input:disabled { cursor: not-allowed; opacity: 0.35; }
.company-crane-job-without-receipt { background: #fafafa; color: var(--color-text-sub); }
.company-crane-receipt-no { color: #075985; white-space: nowrap; }
.company-crane-work-cell { display: grid; min-width: 210px; max-width: 360px; gap: 3px; white-space: normal; }
.company-crane-work-cell strong { color: var(--color-text-main); font-size: 11.5px; line-height: 1.35; }
.company-crane-work-cell small, .company-crane-time-range { display: block; color: var(--color-text-sub); font-size: 10px; font-weight: 500; line-height: 1.35; }
.company-crane-time-range { margin-top: 3px; white-space: nowrap; }
.company-crane-receipt-status { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.company-crane-receipt-status.ready { background: #e7f8f0; color: #07825a; }
.company-crane-receipt-status.missing { background: #f3f4f6; color: #6b7280; }
.company-crane-pdf-button { display: inline-flex !important; align-items: center; gap: 4px; white-space: nowrap; }
.company-crane-pdf-button > .material-icons { font-size: 14px; }
.company-crane-muted { color: var(--color-text-sub); font-size: 10.5px; white-space: nowrap; }
.company-crane-empty { padding: 28px !important; color: var(--color-text-sub); text-align: center !important; }
.company-crane-selected-section { margin-top: 18px; padding: 16px; border: 1px solid #9bdbe8; border-radius: 10px; background: #f7fdff; scroll-margin-top: 14px; }
.company-crane-selected-section[hidden] { display: none; }
.company-crane-selected-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.company-crane-selected-heading h4 { margin: 3px 0 0; color: #075985; font-size: 16px; }
.company-crane-selected-kicker { color: #0891b2; font-size: 9px; font-weight: 800; letter-spacing: 0.13em; }
.company-crane-selected-heading label { display: grid; width: min(340px, 100%); gap: 5px; color: var(--color-text-sub); font-size: 10px; font-weight: 700; }
.company-crane-selected-heading .form-control { min-height: 38px; }
.company-crane-selected-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.company-crane-selected-summary > span { padding: 7px 10px; border: 1px solid #bae6fd; border-radius: 7px; background: #ffffff; color: var(--color-text-sub); font-size: 10.5px; }
.company-crane-selected-summary b { color: #075985; }
.company-crane-result-table { max-height: 330px; overflow: auto; border: 1px solid var(--color-border); border-radius: 8px; background: #ffffff; }
.company-crane-result-table thead th { position: sticky; top: 0; z-index: 2; background: var(--color-surface); box-shadow: 0 1px 0 var(--color-border); }

@media (max-width: 900px) {
  .company-crane-jobs-toolbar { grid-template-columns: 1fr 1fr; }
  .company-crane-jobs-search { grid-column: 1 / -1; }
  .company-crane-selected-heading { align-items: stretch; flex-direction: column; }
  .company-crane-selected-heading label { width: 100%; }
}

@media (max-width: 620px) {
  .company-crane-jobs-toolbar { grid-template-columns: 1fr; }
  .company-crane-jobs-search { grid-column: auto; }
  .company-crane-select-all, #companyCraneJobsBuildButton { width: 100%; }
}

/* Manliftlerim + teslim / teslim alma takibi */
.manlift-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.manlift-form-section { padding: 15px; border: 1px solid #b9e6ef; border-radius: 8px; background: #f7fdff; }
.manlift-form-section h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 14px; color: #087f99; font-size: 13px; }
.manlift-form-section h4 .material-icons { font-size: 18px; }
.manlift-photo-preview { display: flex; align-items: center; min-height: 42px; border: 1px dashed #9bdbe8; border-radius: 6px; padding: 8px; color: var(--color-text-sub); font-size: 11px; background: #ffffff; }
.manlifts-table th, .manlifts-table td { white-space: nowrap; }
.manlift-duration { display: inline-flex; border-radius: 99px; padding: 4px 8px; background: #e8f7fb; color: #087f99; font-size: 11px; font-weight: 700; }
.manlift-hours { display: inline-flex; align-items: center; justify-content: center; min-width: 88px; padding: 5px 10px; border: 1px solid #bae6fd; border-radius: 999px; background: #f0f9ff; color: #075985; font-size: 11.5px; font-weight: 750; }
.manlift-notes-cell { min-width: 220px; max-width: 360px; color: var(--color-text-sub); line-height: 1.45; white-space: normal !important; overflow-wrap: anywhere; }
.manlift-row-actions { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.manlift-technical-section { margin-top: 18px; padding: 16px; border: 1px solid #bae6fd; border-radius: 10px; background: #f8fcff; }
.manlift-technical-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #075985; }
.manlift-technical-heading > .material-icons { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #e0f2fe; font-size: 19px; }
.manlift-technical-heading strong, .manlift-technical-heading small { display: block; }
.manlift-technical-heading strong { font-size: 13px; }
.manlift-technical-heading small { margin-top: 3px; color: var(--color-text-sub); font-size: 11px; font-weight: 500; }
.manlift-technical-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.manlift-dimension-field { grid-column: 1 / -1; }
.manlift-dimension-inputs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.manlift-dimension-inputs > b { color: #075985; font-size: 18px; font-weight: 750; text-align: center; }
.manlift-dimension-control { position: relative; min-width: 0; }
.manlift-dimension-control .form-control { width: 100%; padding-right: 34px; }
.manlift-dimension-control > span { position: absolute; top: 50%; right: 12px; color: var(--color-text-sub); font-size: 12px; font-weight: 700; transform: translateY(-50%); pointer-events: none; }
.manlift-technical-empty { grid-column: 1 / -1; margin: 0; padding: 14px; border: 1px dashed #bae6fd; border-radius: 8px; color: var(--color-text-sub); background: #ffffff; font-size: 12px; text-align: center; }
.manlift-type-badge { display: inline-flex; max-width: 230px; padding: 5px 9px; border: 1px solid #c4b5fd; border-radius: 8px; color: #5b21b6; background: #f5f3ff; font-size: 11px; font-weight: 750; line-height: 1.3; white-space: normal; }
.manlift-specs-cell { min-width: 270px; max-width: 360px; white-space: normal !important; }
.manlift-spec-list { display: grid; gap: 4px; color: var(--color-text-sub); font-size: 10.5px; line-height: 1.35; }
.manlift-spec-list span { display: block; }
.manlift-spec-list b { color: var(--color-text-main); font-weight: 700; }
.manlift-technical-missing { color: var(--color-text-sub); font-size: 11px; font-style: italic; }

/* Uzun manlift formları ekran yüksekliğini aşınca yalnız içerik kayar. */
:is(#manliftModal, #manliftTrackingModal) {
  box-sizing: border-box;
  padding: 12px;
}

:is(#manliftModal, #manliftTrackingModal) .modal-content {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}

:is(#manliftModal, #manliftTrackingModal) .modal-title-bar {
  flex: 0 0 auto;
  background: var(--color-surface);
}

:is(#manliftModal, #manliftTrackingModal) form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

:is(#manliftModal, #manliftTrackingModal) .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

:is(#manliftModal, #manliftTrackingModal) .modal-footer {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  background: var(--color-surface);
  box-shadow: 0 -8px 18px rgba(15, 23, 42, .05);
}

@media (max-width: 700px) { .manlift-form-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .manlift-technical-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .manlift-dimension-inputs { grid-template-columns: minmax(0, 1fr); } .manlift-dimension-inputs > b { line-height: 1; } }

/* Araç Evrakları hızlı işlem penceresi */
.vehicle-documents-modal .modal-title-bar { color: #ffffff; border-bottom: 0; background: linear-gradient(120deg, #1678d4, #099bb9); }
.vehicle-documents-modal .modal-title-bar h3 { color: #ffffff; }
.vehicle-documents-modal .modal-close { color: #ffffff; }
.vehicle-documents-modal .modal-body { padding: 18px; }
.vehicle-documents-modal-note { margin: 0 0 14px; color: var(--color-text-sub); font-size: 12px; }
.vehicle-document-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vehicle-document-quick-card { display: flex; flex-direction: column; gap: 12px; min-height: 176px; padding: 16px; border: 1px solid #b9e6ef; border-radius: 8px; background: #f9fdff; }
.vehicle-document-quick-card.full { grid-column: 1 / -1; min-height: 0; border-color: #a5c7f5; background: #f7fbff; }
.vehicle-document-quick-card h4 { margin: 0; color: #1565d8; font-size: 15px; }
.vehicle-document-quick-card p { min-height: 20px; margin: 0; color: var(--color-text-sub); font-size: 12px; overflow-wrap: anywhere; }
.vehicle-document-quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.vehicle-document-quick-actions button { min-height: 38px; padding: 7px 9px; font-size: 11px; white-space: nowrap; }
.vehicle-document-quick-actions button:disabled { cursor: not-allowed; opacity: .45; }
.vehicle-document-quick-actions .btn-danger-small { color: #ffffff !important; border-color: #dc4b5b !important; background: #dc4b5b !important; }
.vehicle-document-quick-actions .btn-danger-small:hover { background: #c53b4b !important; }
@media (max-width: 760px) { .vehicle-document-card-grid { grid-template-columns: 1fr; } .vehicle-document-quick-card.full { grid-column: auto; } .vehicle-document-quick-actions { grid-template-columns: 1fr; } }

/* Operatör hesabı ve şirket içi mesai/konum izleme */
.form-help-text { display: block; margin-top: 6px; color: var(--color-text-sub); font-size: 10.5px; line-height: 1.45; }
.staff-accounts-section { border: 1px solid var(--color-border); border-radius: 12px; padding: 24px; background: var(--color-surface); }
.staff-accounts-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.staff-accounts-header h3 { margin: 0 0 7px; color: var(--color-primary); font-family: var(--font-display); }
.staff-accounts-header p { max-width: 820px; margin: 0; color: var(--color-text-sub); font-size: 12px; line-height: 1.55; }
.staff-accounts-refresh { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; }
.staff-accounts-refresh .material-icons { font-size: 17px; }
.staff-accounts-refresh.is-loading .material-icons { animation: staff-accounts-spin .8s linear infinite; }
@keyframes staff-accounts-spin { to { transform: rotate(360deg); } }
.staff-accounts-summary { min-height: 17px; margin: 0 0 18px; color: var(--color-text-sub); font-size: 10.5px; line-height: 1.45; }
.staff-account-type-guide { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0 0 18px; border: 1px solid #b9d7f7; border-radius: 9px; padding: 12px 13px; color: #214667; background: #f0f7ff; }
.staff-account-type-guide > .material-icons { color: #2e86de; font-size: 22px; }
.staff-account-type-guide strong { display: block; margin-bottom: 3px; color: #123f71; font-size: 11.5px; }
.staff-account-type-guide p { margin: 0; font-size: 10.5px; line-height: 1.45; }
.staff-account-type-guide .btn-action-small { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.staff-account-type-guide .btn-action-small .material-icons { font-size: 15px; }
.staff-accounts-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--color-border); border-radius: 9px; }
.staff-accounts-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.staff-accounts-table th,
.staff-accounts-table td { padding: 11px 12px; vertical-align: middle; text-align: left; }
.staff-accounts-table th { white-space: nowrap; }
.staff-accounts-table td:nth-child(3) { min-width: 200px; }
.staff-accounts-table td:nth-child(4) { min-width: 110px; }
.staff-accounts-table td:nth-child(6) { min-width: 90px; }
.staff-accounts-table .btn-danger-small .material-icons { font-size: 14px; }
.staff-accounts-empty { padding: 25px !important; color: var(--color-text-sub); text-align: center !important; }
.staff-accounts-error { color: var(--color-danger) !important; }
.staff-account-type-badge { display: inline-flex; border: 1px solid transparent; border-radius: 999px; padding: 4px 8px; font-size: 9.5px; font-weight: 800; line-height: 1.25; white-space: nowrap; }
.staff-account-type-badge.staff { border-color: rgba(18, 179, 166, .28); color: #06776e; background: #e7f8f6; }
.staff-account-email { color: var(--color-text-main); font-size: 11.5px; font-weight: 700; overflow-wrap: anywhere; }
.staff-account-muted { color: var(--color-text-sub); font-size: 9.5px; }
.staff-account-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.operator-account-email { display: inline-flex; align-items: center; gap: 5px; color: var(--color-text-main); font-size: 12px; overflow-wrap: anywhere; }
.operator-account-email .material-icons { color: var(--color-primary); font-size: 14px; }
.operator-account-missing { display: inline-flex; border-radius: 999px; padding: 4px 8px; color: var(--color-text-sub); background: var(--color-bg); font-size: 10px; font-weight: 700; }
.operator-activation-badge { display: inline-flex; align-items: center; border: 1px solid transparent; border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.operator-activation-badge.no-account { border-color: var(--color-border); color: var(--color-text-sub); background: var(--color-bg); }
.operator-activation-badge.pending { border-color: rgba(245, 158, 11, .35); color: #9a5b00; background: #fff7df; }
.operator-activation-badge.active { border-color: rgba(16, 185, 129, .32); color: #067451; background: #e8f8f2; }
.operator-activation-badge.expired { border-color: rgba(239, 68, 68, .3); color: #b42331; background: #fff0f1; }
.operator-activation-meta { display: block; margin-top: 5px; color: var(--color-text-sub); font-size: 9.5px; white-space: nowrap; }
.operator-row-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 150px; }
.operator-activation-regenerate { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.operator-activation-regenerate .material-icons { font-size: 13px; }
.operator-activation-regenerate:disabled { cursor: not-allowed; opacity: .48; }

.operator-activation-modal-content { max-width: 610px; }
.operator-activation-modal-body { display: grid; gap: 18px; }
.operator-activation-warning { display: flex; align-items: flex-start; gap: 12px; border: 1px solid rgba(245, 158, 11, .38); border-radius: 9px; padding: 14px; color: #764400; background: #fff8e6; }
.operator-activation-warning > .material-icons { flex: 0 0 auto; color: var(--color-warning); font-size: 24px; }
.operator-activation-warning strong { display: block; margin-bottom: 4px; font-size: 13px; }
.operator-activation-warning p { margin: 0; font-size: 11px; line-height: 1.5; }
.operator-activation-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.operator-activation-details > div { min-width: 0; border: 1px solid var(--color-border); border-radius: 8px; padding: 11px 12px; background: var(--color-bg); }
.operator-activation-details dt { margin-bottom: 5px; color: var(--color-text-sub); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.operator-activation-details dd { margin: 0; color: var(--color-text-main); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.operator-activation-code-group { margin: 0; }
.operator-activation-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: stretch; }
.operator-activation-code-value { min-width: 0; height: 52px; color: var(--color-title); background: var(--color-surface); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(20px, 5vw, 28px); font-weight: 900; letter-spacing: .16em; text-align: center; }
.operator-activation-code-value:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px var(--color-primary-glow); }
.operator-activation-copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 112px; }
.operator-activation-copy-button .material-icons { font-size: 17px; }
.operator-activation-expiry { margin: 8px 0 0; color: var(--color-text-sub); font-size: 10.5px; line-height: 1.4; }
.operator-activation-copy-status { min-height: 16px; margin: 3px 0 0; color: #067451; font-size: 10.5px; font-weight: 700; }
.operator-activation-modal-footer { display: flex; justify-content: flex-end; border-top: 1px solid var(--color-border); padding: 16px 24px; }
.operator-monitoring-panel { margin-top: 22px; }
.operator-monitoring-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.operator-monitoring-description { max-width: 720px; margin: 6px 0 0; color: var(--color-text-sub); font-size: 12px; line-height: 1.5; }
.operator-monitoring-header .btn-audit { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.operator-monitoring-header .btn-audit .material-icons { font-size: 17px; }
.operator-monitoring-header .btn-audit.is-loading .material-icons { animation: operator-monitoring-spin .8s linear infinite; }
@keyframes operator-monitoring-spin { to { transform: rotate(360deg); } }
.operator-monitoring-controls { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(170px, .55fr); gap: 14px; max-width: 620px; margin-bottom: 18px; }
.operator-monitoring-overview { margin-bottom: 18px; border: 1px solid var(--color-border); border-radius: 8px; }
.operator-monitoring-overview .custom-table th,
.operator-monitoring-overview .custom-table td { padding: 10px 12px; }
.operator-monitoring-overview td small { display: block; margin-top: 4px; color: var(--color-text-sub); font-size: 10px; }
.operator-monitoring-row { cursor: default; }
.operator-monitoring-row.selected td { background: var(--color-primary-glow); }
.operator-monitoring-map-link { color: var(--color-primary); font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.operator-monitoring-map-link:hover { text-decoration: underline; }
.operator-monitoring-empty { padding: 24px !important; color: var(--color-text-sub) !important; text-align: center; }
.operator-monitoring-error { color: var(--color-red) !important; }
.operator-monitoring-muted { color: var(--color-text-sub); font-size: 12px; }
.operator-monitoring-detail-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(380px, 1.4fr); gap: 16px; }
.operator-monitoring-detail-card,
.operator-monitoring-history-card { min-width: 0; border: 1px solid var(--color-border); border-radius: 9px; padding: 16px; background: var(--color-bg); }
.operator-monitoring-card-title { display: flex; align-items: center; gap: 7px; margin-bottom: 13px; color: var(--color-title); font-size: 13px; font-weight: 800; }
.operator-monitoring-card-title .material-icons { color: var(--color-primary); font-size: 18px; }
.operator-monitoring-detail-content { min-height: 170px; }
.operator-monitoring-person { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; }
.operator-monitoring-person strong { color: var(--color-title); font-size: 15px; }
.operator-monitoring-person span { color: var(--color-text-sub); font-size: 11px; overflow-wrap: anywhere; }
.operator-monitoring-meta { display: grid; gap: 9px; margin: 0 0 15px; }
.operator-monitoring-meta div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; }
.operator-monitoring-meta dt { color: var(--color-text-sub); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.operator-monitoring-meta dd { margin: 0; color: var(--color-text-main); font-size: 11px; line-height: 1.4; }
.operator-monitoring-open-map { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.operator-monitoring-open-map .material-icons { font-size: 15px; }
.operator-monitoring-route-map { display: flex; min-height: 208px; flex-direction: column; justify-content: center; color: var(--color-text-sub); font-size: 12px; }
.operator-route-svg { display: block; width: 100%; min-height: 175px; border: 1px solid var(--color-border); border-radius: 8px; background-image: linear-gradient(var(--color-border) 1px, transparent 1px), linear-gradient(90deg, var(--color-border) 1px, transparent 1px); background-size: 28px 28px; }
.operator-route-line { fill: none; stroke: var(--color-primary); stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; vector-effect: non-scaling-stroke; }
.operator-route-point { stroke: var(--color-surface); stroke-width: 3; vector-effect: non-scaling-stroke; }
.operator-route-point.start { fill: var(--color-green); }
.operator-route-point.end { fill: var(--color-red); }
.operator-route-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; margin-top: 10px; color: var(--color-text-sub); font-size: 10px; }
.operator-route-legend span { display: inline-flex; align-items: center; gap: 5px; }
.operator-route-legend i { width: 8px; height: 8px; border-radius: 50%; }
.operator-route-legend i.start { background: var(--color-green); }
.operator-route-legend i.end { background: var(--color-red); }
.operator-route-legend a { color: var(--color-primary); font-weight: 700; text-decoration: none; }
.operator-route-legend a:hover { text-decoration: underline; }
.operator-monitoring-history-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(380px, 1.4fr); gap: 16px; margin-top: 16px; }
.operator-monitoring-history-card h3 { margin: 0 0 12px; color: var(--color-title); font-size: 13px; }
.operator-monitoring-list { max-height: 330px; overflow-y: auto; }
.operator-monitoring-record { display: grid; gap: 5px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.operator-monitoring-record:first-child { padding-top: 0; }
.operator-monitoring-record:last-child { border-bottom: 0; }
.operator-monitoring-record > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.operator-monitoring-record strong { color: var(--color-text-main); font-size: 11px; }
.operator-monitoring-record span { color: var(--color-primary); font-size: 11px; font-weight: 800; white-space: nowrap; }
.operator-monitoring-record small { color: var(--color-text-sub); font-size: 10px; }
.operator-monitoring-point { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 4px; border-bottom: 1px solid var(--color-border); color: inherit; text-decoration: none; }
.operator-monitoring-point:hover { background: var(--color-surface-hover); }
.operator-monitoring-point > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.operator-monitoring-point strong { color: var(--color-primary); font-size: 10.5px; }
.operator-monitoring-point small,
.operator-monitoring-point time { color: var(--color-text-sub); font-size: 9.5px; }
.operator-monitoring-point time { flex: 0 0 auto; }
.operator-monitoring-list-note { margin: 10px 0 0; color: var(--color-text-sub); font-size: 10px; }

@media (max-width: 920px) {
  .operator-monitoring-detail-grid,
  .operator-monitoring-history-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .staff-accounts-section { padding: 17px 14px; }
  .staff-accounts-header { align-items: stretch; flex-direction: column; }
  .staff-accounts-refresh { width: 100%; }
  .staff-account-type-guide { grid-template-columns: auto minmax(0, 1fr); align-items: flex-start; }
  .staff-account-type-guide .btn-action-small { grid-column: 1 / -1; width: 100%; }
  .staff-accounts-table { min-width: 680px; }
  .operator-activation-modal-content { width: calc(100% - 24px); }
  .operator-activation-details { grid-template-columns: 1fr; }
  .operator-activation-code-row { grid-template-columns: 1fr; }
  .operator-activation-copy-button { min-height: 42px; }
  .operator-activation-modal-footer .btn-audit { width: 100%; }
  .operator-monitoring-header { align-items: stretch; flex-direction: column; }
  .operator-monitoring-header .btn-audit { justify-content: center; }
  .operator-monitoring-controls { grid-template-columns: 1fr; }
  .operator-monitoring-detail-card,
  .operator-monitoring-history-card { padding: 13px; }
  .operator-monitoring-point { align-items: flex-start; flex-direction: column; gap: 5px; }
}

/* =========================================================================
   KURUMSAL OKUNABİLİRLİK KATMANI
   Tablo, rozet ve satır aksiyonlarını tek bir görsel sistemde birleştirir.
   Bu bölüm yalnızca sunumu değiştirir; mevcut DOM ve olay bağları korunur.
   ========================================================================= */
:root {
  --font-ui: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --table-text: #0f172a;
  --table-text-secondary: #475569;
  --table-text-muted: #64748b;
  --table-header-bg: #f6f8fb;
  --table-row-alt: #fbfdff;
  --table-row-hover: #f0f7ff;
  --table-border: #dce3ec;
  --table-border-strong: #cbd5e1;
  --table-link: #0369a1;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-ui);
}

body {
  color: var(--table-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #082f49;
  background: #bae6fd;
}

.panel-card {
  border-color: var(--table-border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .04);
}

.panel-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom-color: var(--table-border);
}

.panel-title {
  color: var(--table-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.35;
}

.table-container,
.vehicle-documents-table-wrap,
.staff-accounts-table-wrap {
  overflow: auto;
  border: 1px solid var(--table-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  scrollbar-gutter: stable;
  overscroll-behavior-inline: contain;
}

.custom-table,
.data-table,
.vehicle-documents-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--table-text);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

.tab-panel > .panel-card > .table-container > .custom-table {
  min-width: 980px;
}

#panel-dashboard .custom-table { min-width: 1280px; }
#panel-jobs .custom-table,
#panel-jobs-archive .custom-table { min-width: 1240px; }
#panel-cranes .custom-table { min-width: 1100px; }
#panel-manlifts .custom-table { min-width: 1480px; }
#panel-manlift-tracking .custom-table { min-width: 1280px; }
#panel-operators > .panel-card > .table-container > .custom-table { min-width: 1120px; }
#panel-receipts .custom-table {
  min-width: 1000px;
  table-layout: fixed;
}
.vehicle-documents-table { min-width: 1180px; }

.custom-table th,
.data-table th,
.vehicle-documents-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 16px;
  border-bottom: 1px solid var(--table-border-strong);
  color: var(--table-text-secondary) !important;
  background: var(--table-header-bg) !important;
  box-shadow: inset 0 -1px 0 rgba(148, 163, 184, .08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.custom-table td,
.data-table td,
.vehicle-documents-table td {
  height: 60px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--table-border);
  color: var(--table-text);
  background: #ffffff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  vertical-align: middle;
  transition: background-color .15s ease;
}

.custom-table tbody tr:nth-child(even) td,
.data-table tbody tr:nth-child(even) td,
.vehicle-documents-table tbody tr:nth-child(even) td {
  background: var(--table-row-alt);
}

.custom-table tbody tr:hover td,
.custom-table tbody tr:focus-within td,
.data-table tbody tr:hover td,
.data-table tbody tr:focus-within td,
.vehicle-documents-table tbody tr:hover td,
.vehicle-documents-table tbody tr:focus-within td {
  background: var(--table-row-hover);
}

.custom-table tbody tr:last-child td,
.data-table tbody tr:last-child td,
.vehicle-documents-table tbody tr:last-child td {
  border-bottom: 0;
}

.custom-table :is(th, td, input),
.data-table :is(th, td, input),
.vehicle-documents-table :is(th, td, input) {
  -webkit-user-select: text;
  user-select: text;
}

.custom-table :is(button, [role="button"]),
.data-table :is(button, [role="button"]),
.vehicle-documents-table :is(button, [role="button"]) {
  -webkit-user-select: none;
  user-select: none;
}

.custom-table td small,
.data-table td small,
.vehicle-documents-table td small {
  display: block;
  margin-top: 4px;
  color: var(--table-text-secondary);
  font-size: 12.5px;
  line-height: 1.4;
}

.custom-table tbody td > a:not([class*="btn"]),
.data-table tbody td > a:not([class*="btn"]),
.vehicle-documents-table tbody td > a:not([class*="btn"]) {
  color: var(--table-link) !important;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.custom-table tbody td > a:not([class*="btn"]):hover,
.data-table tbody td > a:not([class*="btn"]):hover,
.vehicle-documents-table tbody td > a:not([class*="btn"]):hover {
  color: #075985 !important;
  text-decoration-color: currentColor;
}

.text-bold,
#receiptsTableBody td:nth-child(1),
#receiptsTableBody td:nth-child(2),
#archiveReceiptsTableBody td:nth-child(2),
#archiveReceiptsTableBody td:nth-child(3),
#operatorsTableBody td:nth-child(1),
#cranesTableBody td:nth-child(1),
#cranesTableBody td:nth-child(2) {
  color: var(--table-text) !important;
  font-weight: 650;
}

#receiptsTableBody td:nth-child(6),
#archiveReceiptsTableBody td:nth-child(5) {
  color: #334155 !important;
  font-weight: 600 !important;
  white-space: nowrap;
}

#receiptsTableBody td:nth-child(7),
#archiveReceiptsTableBody td:nth-child(5),
#cranesTableBody td:nth-child(3) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#operatorsTableBody td:nth-child(6) {
  max-width: 280px !important;
  overflow: visible !important;
  color: var(--table-text-secondary) !important;
  font-size: 13.5px !important;
  text-overflow: clip !important;
  white-space: normal;
}

/* Kimlik bilgisi olan plaka, bir durum rozeti gibi yeşil görünmez. */
#receiptsTableBody .status-badge.safe,
#archiveReceiptsTableBody .status-badge.safe {
  color: #1e3a5f !important;
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
}

.status-badge,
.flag-badge,
.operator-activation-badge,
.operator-account-missing,
.vehicle-documents-badge,
.maintenance-deadline-badge,
.manlift-duration {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.25;
  white-space: nowrap;
}

.status-badge.safe {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.status-badge.unsafe,
.status-badge.suspended {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

#operatorsTableBody .status-badge.unsafe {
  color: #92400e;
  border-color: #fde68a;
  background: #fffbeb;
}

.status-badge.maintenance {
  color: #92400e;
  border-color: #fde68a;
  background: #fffbeb;
}

.flag-badge.payment-paid,
.flag-badge.invoice-issued {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.flag-badge.payment-unpaid {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.flag-badge.invoice-pending,
.operator-account-missing,
.operator-activation-badge.no-account {
  color: #475569;
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.operator-activation-badge.pending,
.operator-activation-badge.expired {
  color: #92400e;
  border-color: #fde68a;
  background: #fffbeb;
}

.operator-activation-badge.active,
.vehicle-documents-badge.ok {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.vehicle-documents-badge.warning {
  color: #92400e;
  border-color: #fde68a;
  background: #fffbeb;
}

.vehicle-documents-badge.expired {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.operator-account-email {
  color: var(--table-text);
  font-size: 13.5px;
  font-weight: 500;
}

.operator-activation-meta {
  margin-top: 6px;
  color: var(--table-text-secondary);
  font-size: 12px;
}

.vehicle-documents-inline-input {
  min-height: 40px;
  border: 1px solid #d8e1eb;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--table-text);
  background: #f8fafc;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}

.vehicle-documents-inline-input.plate {
  color: #0c4a6e;
  border-color: #bfdbfe;
  background: #eff6ff;
  font-weight: 750;
}

.vehicle-documents-inline-input.date {
  min-width: 145px;
  font-variant-numeric: tabular-nums;
}

.vehicle-documents-inline-input:hover {
  border-color: #94a3b8;
  background: #ffffff;
}

.vehicle-documents-inline-input:focus {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .16);
}

.custom-table :is(.btn-audit, .btn-action-small, .btn-danger-small, .btn-primary-blue, .crane-maintenance-button, .crane-status-reason-button),
.data-table :is(.btn-audit, .btn-action-small, .btn-danger-small, .btn-primary-blue),
.vehicle-documents-table :is(.vehicle-documents-doc-button, .btn-danger-small) {
  width: auto;
  min-width: 40px;
  height: 38px !important;
  min-height: 38px;
  padding: 0 12px !important;
  border-radius: 8px;
  font-size: 12.5px !important;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.custom-table :is(.btn-action-small, .crane-maintenance-button),
.data-table .btn-action-small {
  color: #075985 !important;
  border-color: #bae6fd !important;
  background: #f0f9ff !important;
}

.custom-table :is(.btn-action-small, .crane-maintenance-button):hover,
.data-table .btn-action-small:hover {
  color: #ffffff !important;
  border-color: #0369a1 !important;
  background: #0369a1 !important;
}

.custom-table .crane-maintenance-button.overdue {
  color: #b91c1c !important;
  border-color: #fecaca !important;
  background: #fef2f2 !important;
}

.custom-table .crane-maintenance-button.overdue:hover {
  color: #ffffff !important;
  border-color: #b91c1c !important;
  background: #b91c1c !important;
}

.custom-table .crane-status-reason-button {
  width: 38px;
  padding: 0 !important;
  color: #b91c1c !important;
  border-color: #fecaca !important;
  background: #fef2f2 !important;
}

.custom-table .crane-status-reason-button:hover {
  color: #ffffff !important;
  border-color: #b91c1c !important;
  background: #b91c1c !important;
}

.custom-table .btn-danger-small,
.data-table .btn-danger-small,
.vehicle-documents-table .btn-danger-small {
  color: #b91c1c !important;
  border-color: #fecaca !important;
  background: #fff7f7 !important;
}

.custom-table .btn-danger-small:hover,
.data-table .btn-danger-small:hover,
.vehicle-documents-table .btn-danger-small:hover {
  color: #ffffff !important;
  border-color: #b91c1c !important;
  background: #b91c1c !important;
}

.custom-table :is(.btn-audit, .btn-primary-blue),
.vehicle-documents-table .vehicle-documents-doc-button {
  color: #ffffff !important;
  border-color: #0369a1 !important;
  background: #0369a1 !important;
  box-shadow: none;
}

.custom-table :is(.btn-audit, .btn-primary-blue):hover,
.vehicle-documents-table .vehicle-documents-doc-button:hover {
  border-color: #075985 !important;
  background: #075985 !important;
  box-shadow: 0 3px 10px rgba(3, 105, 161, .18);
}

.custom-table button .material-icons,
.custom-table a .material-icons,
.data-table button .material-icons,
.vehicle-documents-table button .material-icons {
  font-size: 16px !important;
}

.operator-row-actions,
#cranesTableBody td:last-child > div {
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

.operator-activation-regenerate:disabled {
  color: #64748b !important;
  border-color: #d7dee8 !important;
  background: #f1f5f9 !important;
  opacity: 1;
}

.vehicle-documents-delete {
  min-width: 64px !important;
}

:is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

.search-input,
.form-control,
.form-group input,
.form-group select,
.form-group textarea {
  color: var(--table-text);
  font-size: 14px;
}

.search-input {
  min-height: 42px;
  border-color: var(--table-border-strong);
  background: #ffffff;
}

.search-input::placeholder {
  color: var(--table-text-muted);
  font-size: 13px;
}

.form-group label,
.vehicle-documents-controls label {
  color: #334155;
  font-size: 13px;
  font-weight: 650;
}

.crane-readiness-info,
.maintenance-info-banner,
.operator-monitoring-description,
.staff-accounts-header p {
  font-size: 12.5px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .content-container { padding: 18px 14px; }
  .panel-card { padding: 16px 14px; }
  .panel-title { font-size: 17px; }

  .custom-table th,
  .data-table th,
  .vehicle-documents-table th { padding: 13px 14px; }

  .custom-table td,
  .data-table td,
  .vehicle-documents-table td { padding: 13px 14px; }

  .custom-table :is(.btn-audit, .btn-action-small, .btn-danger-small, .btn-primary-blue, .crane-maintenance-button, .crane-status-reason-button),
  .data-table :is(.btn-audit, .btn-action-small, .btn-danger-small, .btn-primary-blue),
  .vehicle-documents-table :is(.vehicle-documents-doc-button, .btn-danger-small) {
    min-width: 44px;
    height: 44px !important;
    min-height: 44px;
  }
}

/* =========================================================================
   FIS ARSIVI - %100 TARAYICI OLCEGINDE TUM SUTUNLARI PANELDE TUT
   Dar ekranlarda mevcut yatay kaydirma korunur; masaustunde sag taraf kirpilmaz.
   ========================================================================= */
#panel-receipts,
#panel-receipts > .panel-card,
#panel-receipts > .panel-card > .table-container {
  min-width: 0;
  max-width: 100%;
}

#panel-receipts > .panel-card > .table-container {
  width: 100%;
  overflow-x: auto;
}

#panel-receipts .custom-table th,
#panel-receipts .custom-table td {
  min-width: 0 !important;
  padding: 10px 6px !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

#panel-receipts .custom-table th {
  font-size: 10.5px;
  line-height: 1.2;
  white-space: normal;
}

#panel-receipts .custom-table td {
  font-size: 12.5px;
  line-height: 1.35;
}

/* Kolon düzeni (9 kolon): 1 seçim, 2 fiş no, 3 firma, 4 plaka, 5 tarih,
   6 tahsilat, 7 teklif, 8 görüntüle, 9 sil */
#panel-receipts .custom-table :is(th, td):nth-child(1)  { width: 3.5% !important; }
#panel-receipts .custom-table :is(th, td):nth-child(2)  { width: 5.5% !important; }
#panel-receipts .custom-table :is(th, td):nth-child(3)  { width: 17% !important; }
#panel-receipts .custom-table :is(th, td):nth-child(4)  { width: 13% !important; }
#panel-receipts .custom-table :is(th, td):nth-child(5)  { width: 10% !important; }
#panel-receipts .custom-table :is(th, td):nth-child(6)  { width: 16.5% !important; }
#panel-receipts .custom-table :is(th, td):nth-child(7)  { width: 14.5% !important; }
#panel-receipts .custom-table :is(th, td):nth-child(8)  { width: 11.5% !important; }
#panel-receipts .custom-table :is(th, td):nth-child(9)  { width: 8.5% !important; }

/* Başlık ve hücre içerikleri aynı eksende: Firma Adı sola, kalan tüm
   kolonlar ortaya hizalanır — kolonlar arası boşluklar eşit algılanır. */
#panel-receipts .custom-table :is(th, td):not(:nth-child(3)) {
  text-align: center;
}

#panel-receipts .custom-table :is(th, td):nth-child(3) {
  text-align: left;
}

#archiveReceiptsTableBody td:nth-child(4) .status-badge {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding-inline: 4px;
  font-size: 10.5px;
}

#archiveReceiptsTableBody td:nth-child(6) > div {
  width: 100%;
}

#archiveReceiptsTableBody td:nth-child(6) .flag-badge,
#archiveReceiptsTableBody td:nth-child(7) .flag-badge {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  justify-content: center;
  gap: 4px;
  padding: 4px 6px;
  font-size: 10px;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#archiveReceiptsTableBody td:nth-child(6) .flag-badge .material-icons,
#archiveReceiptsTableBody td:nth-child(7) .flag-badge .material-icons {
  font-size: 12px !important;
  flex-shrink: 0;
}

#archiveReceiptsTableBody td:nth-child(n + 8) {
  padding-inline: 3px !important;
  text-align: center;
  white-space: nowrap;
}

#archiveReceiptsTableBody td:nth-child(n + 8) :is(.btn-action-small, .btn-danger-small) {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 34px !important;
  min-height: 34px;
  margin: 0 !important;
  padding: 0 !important;
}

#archiveReceiptsTableBody .receipt-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  vertical-align: middle;
}

#archiveReceiptsTableBody .receipt-action-group .material-icons {
  font-size: 15px;
  line-height: 1;
}

#archiveReceiptsTableBody .receipt-message-button {
  color: #16a34a !important;
  border-color: #86efac !important;
  background: #f0fdf4 !important;
}

#archiveReceiptsTableBody .receipt-message-button svg {
  display: block;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
  fill: currentColor;
}

#archiveReceiptsTableBody .receipt-message-button:hover {
  color: #ffffff !important;
  border-color: #16a34a !important;
  background: #22c55e !important;
}

#archiveReceiptsTableBody .receipt-view-button:focus-visible {
  outline: 0;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, .18);
}

#archiveReceiptsTableBody .receipt-message-button:focus-visible {
  outline: 0;
  border-color: #16a34a !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, .2);
}

/* =========================================================================
   HIZMET TESLIM FISI BUILDER + CANLI A4 ONIZLEME
   Fiziksel belge: 210 x 297 mm / guvenli alan: 189 x 276 mm
   ========================================================================= */

#panel-receipt-add {
  --receipt-navy: #0f2747;
  --receipt-blue: #1d5fa7;
  --receipt-blue-dark: #174b83;
  --receipt-blue-soft: #eaf2fb;
  --receipt-blue-pale: #f5f8fc;
  --receipt-ink: #111827;
  --receipt-muted: #475569;
  --receipt-rule: #94a3b8;
  --receipt-rule-light: #cbd5e1;
  --receipt-danger: #b42318;
}

#panel-receipt-add *,
#panel-receipt-add *::before,
#panel-receipt-add *::after {
  box-sizing: border-box;
}

#manualReceiptForm {
  min-width: 0;
  container: receipt-builder / inline-size;
}

.receipt-builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 54px;
  margin-bottom: 20px;
}

.receipt-builder-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.receipt-builder-heading-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid #b9dff0;
  border-radius: 10px;
  background: #eaf8fc;
  color: #0788a8;
}

.receipt-builder-heading-icon .material-icons {
  font-size: 21px;
}

.receipt-builder-heading .panel-title {
  margin: 0;
  color: var(--receipt-navy);
  font-size: 18px;
  line-height: 1.25;
}

.receipt-builder-heading p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.4;
}

.receipt-builder-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.receipt-builder-actions .btn-action-small,
.receipt-builder-actions .btn-audit {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
}

.receipt-builder-submit {
  box-shadow: 0 8px 18px rgba(0, 139, 169, .18);
}

.receipt-builder-layout {
  display: grid;
  grid-template-columns: minmax(760px, 3fr) minmax(560px, 2fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
}

.receipt-builder-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  grid-template-areas:
    "customer general"
    "signature saved";
  gap: 0;
  min-width: 0;
  border: 1px solid #d5dee9;
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: 0 12px 30px rgba(15, 39, 71, .075);
  isolation: isolate;
}

.receipt-builder-fields > .panel-card {
  min-width: 0;
  margin: 0;
  padding: 22px !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.receipt-form-section-customer {
  grid-area: customer;
  border-right: 1px solid #e0e7ef !important;
  border-bottom: 1px solid #e0e7ef !important;
}

.receipt-form-section-general {
  grid-area: general;
  border-bottom: 1px solid #e0e7ef !important;
}

.receipt-form-section-signature {
  grid-area: signature;
  border-right: 1px solid #e0e7ef !important;
}

.receipt-form-section-saved {
  grid-area: saved;
}

.receipt-fee-panel {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #d7e5ec;
  border-radius: 10px;
  background: #f7fbfc;
}

.receipt-fee-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}

.receipt-fee-toggle input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #0799a6;
}

.receipt-fee-toggle span { display: grid; gap: 4px; }
.receipt-fee-toggle strong { color: var(--receipt-navy); font-size: 13px; }
.receipt-fee-toggle small, .receipt-fee-helper { color: #64748b; font-size: 11px; line-height: 1.5; }
.receipt-fee-helper { margin: 12px 0; }
#mrFeeFields[hidden] { display: none; }
#mrFeeFields .receipt-fee-helper:last-child { margin-bottom: 0; }

.receipt-fee-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #d7e5ec;
}

.receipt-fee-totals dt { color: #64748b; font-size: 10px; }
.receipt-fee-totals dd { margin: 5px 0 0; color: var(--receipt-navy); font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.receipt-fee-totals > div:last-child dd { color: #087d87; }

.receipt-form-section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  margin: 0 0 18px;
  padding: 0 0 13px;
  border-bottom: 1px solid #e6ebf1;
}

.receipt-form-section-heading > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.receipt-form-section-heading > div > span {
  color: #718096;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .085em;
  line-height: 1.2;
}

.receipt-form-section-heading h3 {
  margin: 0;
  color: var(--receipt-navy);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.receipt-form-section-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #edf7fb;
  color: #0788a8;
}

.receipt-form-section-icon .material-icons {
  font-size: 18px;
}

.receipt-form-section-heading-with-action > div {
  flex: 1 1 auto;
}

#panel-receipt-add .receipt-form-section .form-group {
  gap: 7px;
  margin-bottom: 16px;
}

#panel-receipt-add .receipt-form-section .form-group label {
  margin: 0;
  color: #334155;
  font-size: 12.5px;
  font-weight: 680;
  line-height: 1.35;
}

#panel-receipt-add .receipt-form-section :is(input, select, textarea).form-control {
  min-height: 48px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #9eafc3;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  font-size: 13.5px;
  font-weight: 550;
}

#panel-receipt-add .receipt-form-section :is(input, select, textarea).form-control:hover {
  border-color: #71869e;
}

#panel-receipt-add .receipt-form-section :is(input, select, textarea).form-control:focus {
  border-color: #0799bb;
  box-shadow: 0 0 0 3px rgba(7, 153, 187, .13);
}

#panel-receipt-add .receipt-form-section input.form-control[readonly] {
  background: #f4f7fa;
  color: #475569;
}

#panel-receipt-add .receipt-form-section textarea#mrDescription {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  line-height: 1.5;
}

#panel-receipt-add .receipt-form-section .form-row {
  gap: 14px;
  margin-bottom: 16px !important;
}

#panel-receipt-add .receipt-form-section .form-row > .form-group {
  margin-bottom: 0;
}

.receipt-customer-suggestions {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  display: none;
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
}

.receipt-new-contact {
  display: none;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #cfe2eb;
  border-radius: 9px;
  background: #f3f9fb;
}

.receipt-new-contact h4 {
  margin: 0 0 11px;
  color: #087f9b;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.receipt-new-contact .form-row {
  margin-bottom: 0 !important;
}

.receipt-signature-clear {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 10.5px;
}

.receipt-signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.receipt-signature-card {
  min-width: 0;
}

.receipt-signature-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.receipt-signature-card-heading strong {
  color: var(--color-text-main);
  font-size: 11px;
  font-weight: 750;
}

.receipt-signature-shell {
  padding: 5px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .035);
}

#receiptSigCanvas,
#operatorReceiptSigCanvas {
  display: block;
  width: 100%;
  height: 136px !important;
  border-radius: 6px !important;
  background: #ffffff;
  cursor: crosshair;
  touch-action: none;
}

.receipt-signature-helper {
  margin: 9px 0 0;
  color: #718096;
  font-size: 10.5px;
  line-height: 1.4;
}

.receipt-saved-companies-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  max-height: 176px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-color: #a8b6c6 transparent;
}

.receipt-saved-company {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.receipt-saved-company:hover {
  border-color: #72bfd2;
  background: #f6fbfd;
  box-shadow: 0 3px 10px rgba(8, 127, 155, .09);
}

.receipt-saved-company-icon {
  flex: 0 0 auto;
  color: #0788a8;
  font-size: 18px;
}

.receipt-saved-company-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #243146;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-saved-company-delete {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #dc3545;
  cursor: pointer;
}

.receipt-saved-company-delete:hover {
  background: #fff0f1;
}

.receipt-saved-company-delete .material-icons {
  font-size: 17px;
}

.receipt-preview-panel {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  height: clamp(520px, calc(100vh - 178px), 860px);
  max-height: calc(100vh - 100px);
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #edf2f6;
  box-shadow: 0 14px 32px rgba(15, 39, 71, .11);
}

.receipt-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 10px 14px;
  border-bottom: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--receipt-ink);
}

.receipt-preview-toolbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.receipt-preview-toolbar > div > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.receipt-preview-toolbar strong {
  color: var(--receipt-navy);
  font-size: 13.5px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.receipt-preview-toolbar small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.receipt-preview-live-dot {
  position: relative;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .12);
}

.receipt-preview-live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(22, 163, 74, .34);
  border-radius: inherit;
}

.receipt-preview-format {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e4f86;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .045em;
  white-space: nowrap;
}

.receipt-preview-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 0;
  padding: 14px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: #94a3b8 transparent;
  background: #edf2f6;
}

.receipt-preview-stage > [hidden] {
  display: none !important;
}

.receipt-preview-paper {
  flex: 0 0 auto;
  width: 210mm;
  min-width: 210mm;
  max-width: none;
  height: 297mm;
  min-height: 297mm;
  padding: 10.5mm;
  display: grid;
  grid-template-rows: 32mm 22mm 150mm 32mm 17mm 10.5mm;
  row-gap: 2.5mm;
  overflow: hidden;
  border: 0;
  border-radius: 1px;
  outline: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--receipt-ink);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, .08),
    0 18px 48px rgba(15, 23, 42, .18);
  font-family: "DejaVu Sans", Arial, Helvetica, sans-serif;
  font-size: 9pt;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.35;
  text-rendering: geometricPrecision;
  user-select: text;
  -webkit-user-select: text;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  zoom: 1;
}

.receipt-preview-paper :is(header, section, footer, div, h4, p, span, strong, em, i) {
  min-width: 0;
}

.receipt-preview-paper :is(h4, p) {
  margin: 0;
}

/* Ust kimlik ve fis kunye blogu */
.receipt-doc-header {
  display: grid;
  grid-template-columns: 124mm 65mm;
  height: 32mm;
  overflow: hidden;
  border-bottom: .65mm solid var(--receipt-navy);
}

.receipt-doc-brand {
  display: grid;
  grid-template-columns: 19mm minmax(0, 1fr);
  align-items: center;
  gap: 4mm;
  padding: 2.2mm 4mm 2.2mm 1.2mm;
}

.receipt-doc-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 18mm;
  height: 18mm;
  overflow: hidden;
  border: .3mm solid var(--receipt-navy);
  border-radius: 1.4mm;
  background: var(--receipt-navy);
  color: #ffffff;
  box-shadow: inset 0 0 0 .65mm rgba(255, 255, 255, .16);
}

.receipt-doc-logo img {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  padding: 1mm;
  object-fit: contain;
  background: #ffffff;
}

.receipt-doc-logo img[hidden] {
  display: none;
}

.receipt-doc-logo span {
  position: relative;
  z-index: 1;
  font-size: 17pt;
  font-weight: 800;
  line-height: 1;
}

.receipt-doc-company {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .85mm;
  overflow: hidden;
}

.receipt-doc-company strong {
  overflow-wrap: anywhere;
  color: var(--receipt-navy);
  font-size: 14pt;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.receipt-doc-company span {
  overflow-wrap: anywhere;
  color: var(--receipt-muted);
  font-size: 7.2pt;
  line-height: 1.25;
}

.receipt-doc-company span:first-of-type {
  color: var(--receipt-blue-dark);
  font-size: 7.6pt;
  font-weight: 700;
}

.receipt-doc-title-block {
  display: grid;
  grid-template-rows: auto auto 10.5mm;
  align-content: center;
  overflow: hidden;
  border-left: .25mm solid #b6c5d6;
  background: var(--receipt-blue-pale);
  text-align: center;
}

.receipt-doc-title-block > span {
  align-self: end;
  color: var(--receipt-blue-dark);
  font-size: 8pt;
  font-weight: 750;
  letter-spacing: .15em;
  line-height: 1.15;
}

.receipt-doc-title-block > strong {
  align-self: start;
  margin-top: .7mm;
  color: var(--receipt-navy);
  font-size: 14pt;
  font-weight: 850;
  letter-spacing: .035em;
  line-height: 1.05;
}

.receipt-doc-number-row {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 10.5mm;
  border-top: .25mm solid #b6c5d6;
  background: #ffffff;
}

.receipt-doc-number-row span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5mm;
  color: #526278;
  font-size: 6.4pt;
  font-weight: 750;
  letter-spacing: .08em;
}

.receipt-doc-number-row span + span {
  border-left: .2mm solid #c7d2df;
}

.receipt-doc-number-row b {
  overflow-wrap: anywhere;
  color: var(--receipt-navy);
  font-size: 9pt;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.receipt-doc-number-row span:first-child b {
  color: var(--receipt-danger);
  font-size: 11pt;
}

/* Arac ve operator bilgi bandi */
.receipt-doc-equipment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: 22mm;
  overflow: hidden;
  border: .35mm solid var(--receipt-navy);
  background: #ffffff;
}

.receipt-doc-equipment > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .75mm;
  padding: 1.25mm 2.6mm;
  overflow: hidden;
}

.receipt-doc-equipment > div:nth-child(even) {
  border-left: .22mm solid var(--receipt-rule);
}

.receipt-doc-equipment > div:nth-child(n + 3) {
  border-top: .22mm solid var(--receipt-rule);
}

.receipt-doc-equipment span,
.receipt-doc-summary span,
.receipt-doc-approval span {
  color: #536479;
  font-size: 6.3pt;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.05;
}

.receipt-doc-equipment strong {
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--receipt-ink);
  font-size: 8.5pt;
  font-weight: 750;
  line-height: 1.15;
}

.receipt-doc-operator-signature img {
  flex: 1 1 auto;
  width: 100%;
  height: 5.2mm;
  min-height: 0;
  object-fit: contain;
  object-position: left center;
}

.receipt-doc-operator-signature img[hidden] {
  display: none;
}

.receipt-doc-operator-signature i {
  display: block;
  width: 74%;
  margin-top: 1.2mm;
  border-bottom: .2mm dashed var(--receipt-rule);
}

/* Ana matbu govde */
.receipt-doc-main-grid {
  display: grid;
  grid-template-columns: 43mm 94mm minmax(0, 1fr);
  height: 150mm;
  min-height: 0;
  overflow: hidden;
  border: .35mm solid var(--receipt-navy);
  background: #ffffff;
}

.receipt-doc-terms,
.receipt-doc-description {
  display: grid;
  grid-template-rows: 7mm minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border-right: .22mm solid var(--receipt-navy);
}

.receipt-doc-main-grid h4 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7mm;
  padding: 0 2mm;
  border-bottom: .22mm solid var(--receipt-navy);
  color: var(--receipt-navy);
  font-size: 7pt;
  font-weight: 850;
  letter-spacing: .075em;
  line-height: 1.1;
  text-align: center;
}

.receipt-doc-terms h4 {
  background: var(--receipt-blue-soft);
}

.receipt-doc-description h4 {
  border-bottom-color: var(--receipt-blue-dark);
  background: var(--receipt-navy);
  color: #ffffff;
}

.receipt-doc-terms p {
  min-height: 0;
  margin: 0;
  padding: 3mm 2.8mm;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #263548;
  font-size: 7pt;
  line-height: 1.43;
  text-align: left;
  white-space: pre-wrap;
}

.receipt-doc-description-body {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
}

.receipt-doc-description-body::before {
  content: "";
  position: absolute;
  inset: 0 3mm;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(7.5mm - .2mm),
    rgba(148, 163, 184, .68) calc(7.5mm - .2mm),
    rgba(148, 163, 184, .68) 7.5mm
  );
  pointer-events: none;
}

.receipt-doc-description-body p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 1.2mm 3.7mm 0;
  overflow-wrap: anywhere;
  color: #183a62;
  font-size: 9pt;
  font-weight: 550;
  line-height: 7.5mm;
  white-space: pre-wrap;
}

.receipt-doc-customer {
  display: grid;
  grid-template-rows: 31mm 26mm 20mm minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.receipt-doc-customer-box {
  display: grid;
  grid-template-rows: 7mm minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  text-align: center;
}

.receipt-doc-customer-box:not(:last-child) {
  border-bottom: .22mm solid var(--receipt-navy);
}

.receipt-doc-customer-box > span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.8mm;
  border-bottom: .18mm solid #bcc9d8;
  background: var(--receipt-blue-soft);
  color: var(--receipt-navy);
  font-size: 6.6pt;
  font-weight: 850;
  letter-spacing: .055em;
  line-height: 1.05;
}

.receipt-doc-customer-box > strong {
  align-self: center;
  padding: 1.5mm 2.2mm;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--receipt-ink);
  font-size: 8.8pt;
  font-weight: 750;
  line-height: 1.28;
}

.receipt-doc-signature-box {
  position: relative;
}

.receipt-doc-signature-box > :is(img, em) {
  grid-area: 2 / 1;
  align-self: stretch;
  justify-self: stretch;
}

.receipt-doc-signature-box img {
  width: 100%;
  height: 100%;
  padding: 5mm 4mm 7mm;
  object-fit: contain;
  object-position: center;
}

.receipt-doc-signature-box img[hidden] {
  display: none;
}

.receipt-doc-signature-box em {
  display: grid;
  place-items: center;
  padding: 4mm;
  color: #8391a3;
  font-size: 7.2pt;
  font-style: normal;
}

/* Saat, sure ve ucret ozeti */
.receipt-doc-summary {
  display: grid;
  grid-template-columns: 39fr 39fr 39fr 72fr;
  height: 32mm;
  overflow: hidden;
  border: .35mm solid var(--receipt-navy);
  background: #ffffff;
}

.receipt-doc-summary > div {
  display: grid;
  grid-template-rows: 8mm minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  text-align: center;
}

.receipt-doc-summary > div + div {
  border-left: .22mm solid var(--receipt-rule);
}

.receipt-doc-summary span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.6mm;
  border-bottom: .18mm solid #c4cfdb;
  background: #f8fafc;
}

.receipt-doc-summary strong {
  align-self: center;
  padding: 2mm;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--receipt-navy);
  font-size: 13pt;
  font-weight: 800;
  line-height: 1.15;
}

.receipt-doc-duration-box span,
.receipt-doc-fee-box span {
  background: var(--receipt-blue-soft);
  color: var(--receipt-navy);
}

.receipt-doc-duration-box strong {
  color: var(--receipt-blue-dark);
}

.receipt-doc-fee-box strong {
  color: var(--receipt-ink);
  font-size: 9.2pt;
  line-height: 1.3;
}

/* Teslim beyani ve belge altligi */
.receipt-doc-approval {
  display: grid;
  grid-template-columns: 135mm minmax(0, 1fr);
  height: 17mm;
  overflow: hidden;
  border: .35mm solid var(--receipt-navy);
  background: #ffffff;
}

.receipt-doc-approval > div {
  display: grid;
  grid-template-rows: 5.5mm minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.receipt-doc-approval > div + div {
  border-left: .22mm solid var(--receipt-rule);
  text-align: center;
}

.receipt-doc-approval span {
  display: flex;
  align-items: center;
  padding: 0 2.2mm;
  border-bottom: .18mm solid #c4cfdb;
  background: var(--receipt-blue-soft);
  color: var(--receipt-navy);
}

.receipt-doc-approval > div + div span {
  justify-content: center;
}

.receipt-doc-approval p,
.receipt-doc-approval strong {
  align-self: center;
  margin: 0;
  padding: 1.2mm 2.3mm;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #263548;
  font-size: 7pt;
  line-height: 1.25;
}

.receipt-doc-approval strong {
  color: var(--receipt-navy);
  font-size: 8.2pt;
  font-weight: 750;
  text-align: center;
}

.receipt-doc-footer {
  display: grid;
  grid-template-rows: 4.5mm minmax(0, 1fr);
  height: 10.5mm;
  overflow: hidden;
  border-top: .25mm solid var(--receipt-rule);
  color: #64748b;
}

.receipt-doc-footer p {
  align-self: center;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  font-size: 5.8pt;
  line-height: 1;
}

.receipt-doc-footer > div {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 3mm;
  border-top: .15mm solid #d7dee8;
  font-size: 5.8pt;
  line-height: 1;
}

.receipt-doc-footer > div span:last-child {
  text-align: right;
}

.receipt-doc-footer strong {
  color: var(--receipt-blue-dark);
  font-size: 6.2pt;
  font-weight: 800;
  letter-spacing: .035em;
  white-space: nowrap;
}

/* Kullanici tarafindan secilebilen fis yerlesim varyantlari */
.receipt-preview-paper.receipt-logo-right .receipt-doc-brand {
  grid-template-columns: minmax(0, 1fr) 19mm;
}

.receipt-preview-paper.receipt-logo-right .receipt-doc-logo {
  grid-column: 2;
  grid-row: 1;
}

.receipt-preview-paper.receipt-logo-right .receipt-doc-company {
  grid-column: 1;
  grid-row: 1;
  align-items: flex-end;
  text-align: right;
}

.receipt-preview-paper.receipt-logo-hidden .receipt-doc-brand {
  grid-template-columns: minmax(0, 1fr);
}

.receipt-preview-paper.receipt-logo-hidden .receipt-doc-logo {
  display: none;
}

.receipt-preview-paper.receipt-terms-bottom .receipt-doc-main-grid {
  grid-template-columns: 137mm minmax(0, 1fr);
  grid-template-rows: 112mm minmax(0, 1fr);
}

.receipt-preview-paper.receipt-terms-bottom .receipt-doc-description {
  grid-column: 1;
  grid-row: 1;
}

.receipt-preview-paper.receipt-terms-bottom .receipt-doc-terms {
  grid-column: 1;
  grid-row: 2;
  grid-template-rows: 7mm minmax(0, 1fr);
  border-top: .22mm solid var(--receipt-navy);
}

.receipt-preview-paper.receipt-terms-bottom .receipt-doc-terms p {
  padding: 2mm 2.8mm;
  columns: 2;
  column-gap: 5mm;
  column-rule: .15mm solid var(--receipt-rule-light);
  font-size: 6.6pt;
  line-height: 1.32;
}

.receipt-preview-paper.receipt-terms-bottom .receipt-doc-customer {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.receipt-preview-paper.receipt-terms-hidden .receipt-doc-main-grid {
  grid-template-columns: 137mm minmax(0, 1fr);
}

.receipt-preview-paper.receipt-terms-hidden .receipt-doc-terms {
  display: none;
}

.receipt-preview-paper.receipt-terms-hidden .receipt-doc-description {
  grid-column: 1;
}

.receipt-preview-paper.receipt-terms-hidden .receipt-doc-customer {
  grid-column: 2;
}

/* Kullanilabilir form genisligine gore ferah yerlesim veya dikey akis. */
@container receipt-builder (max-width: 1339px) {
  .receipt-builder-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .receipt-preview-panel {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
  }

  .receipt-preview-stage {
    min-height: 0;
    max-height: none;
  }
}

@container receipt-builder (max-width: 899px) {
  .receipt-builder-fields {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "customer"
      "general"
      "signature"
      "saved";
  }

  .receipt-builder-fields > .panel-card {
    border-right: 0 !important;
    border-bottom: 1px solid #e0e7ef !important;
  }

  .receipt-builder-fields > .panel-card:last-child {
    border-bottom: 0 !important;
  }
}

@container receipt-builder (max-width: 620px) {
  .receipt-builder-fields > .panel-card {
    padding: 17px !important;
  }

  #panel-receipt-add .receipt-form-section .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .receipt-builder-actions {
    width: 100%;
  }

  .receipt-builder-actions > button {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Container query destegi olmayan eski tarayicilar icin guvenli geri donus. */
@supports not (container-type: inline-size) {
  @media (max-width: 1640px) {
    .receipt-builder-layout {
      grid-template-columns: minmax(0, 1fr);
    }

    .receipt-preview-panel {
      position: relative;
      top: auto;
      height: auto;
      max-height: none;
    }
  }

  @media (max-width: 1100px) {
    .receipt-builder-fields {
      grid-template-columns: minmax(0, 1fr);
      grid-template-areas: "customer" "general" "signature" "saved";
    }
  }
}

@media (max-width: 720px) {
  .receipt-builder-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .receipt-builder-layout {
    gap: 16px;
  }

  .receipt-preview-panel {
    border-radius: 10px;
  }

  .receipt-preview-toolbar {
    min-height: 54px;
    padding: 9px 11px;
  }

  .receipt-preview-toolbar small {
    display: none;
  }

  .receipt-preview-stage {
    justify-content: center;
    padding: 10px;
  }

  .receipt-signature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 540px) {
  .receipt-builder-heading p {
    font-size: 11.5px;
  }

  .receipt-builder-actions {
    flex-wrap: wrap;
  }

  .receipt-preview-toolbar strong {
    font-size: 12px;
  }

  .receipt-preview-format {
    padding: 4px 7px;
    font-size: 9px;
  }

  .receipt-preview-stage {
    justify-content: flex-start;
    padding: 8px;
  }
}

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  body:has(#panel-receipt-add.active) {
    margin: 0 !important;
    background: #ffffff !important;
  }

  body:has(#panel-receipt-add.active) .sidebar,
  body:has(#panel-receipt-add.active) .top-header,
  body:has(#panel-receipt-add.active) .receipt-builder-header,
  body:has(#panel-receipt-add.active) .receipt-builder-fields {
    display: none !important;
  }

  body:has(#panel-receipt-add.active) .main-wrapper {
    min-height: 0 !important;
    margin: 0 !important;
  }

  body:has(#panel-receipt-add.active) .content-container {
    padding: 0 !important;
  }

  body:has(#panel-receipt-add.active) .tab-panel:not(#panel-receipt-add) {
    display: none !important;
  }

  body:has(#panel-receipt-add.active) #panel-receipt-add,
  body:has(#panel-receipt-add.active) .receipt-builder-layout {
    display: block !important;
  }

  .receipt-preview-toolbar {
    display: none !important;
  }

  .receipt-preview-panel,
  .receipt-preview-stage {
    position: static !important;
    display: block !important;
    width: 210mm !important;
    max-width: 210mm !important;
    height: 297mm !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .receipt-preview-paper {
    width: 210mm !important;
    min-width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    zoom: 1 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    break-after: avoid-page;
    break-inside: avoid;
    page-break-after: avoid;
    page-break-inside: avoid;
    zoom: 1 !important;
  }
}
/* Geçici görevlendirme — İK.FR.26 form oluşturma ve arşiv ekranı */
.temporary-assignment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.temporary-assignment-description {
  margin: 7px 0 0;
  color: var(--color-text-sub);
  font-size: 12px;
  line-height: 1.5;
}

.temporary-assignment-table td {
  vertical-align: middle;
}

.temporary-assignment-task-cell {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.temporary-assignment-modal-content {
  width: min(96%, 1040px);
  max-width: 1040px;
  height: min(94dvh, 900px);
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.temporary-assignment-modal-content > .modal-title-bar {
  flex: 0 0 auto;
}

.temporary-assignment-modal-content .modal-title-bar > div {
  min-width: 0;
}

.temporary-assignment-modal-content .modal-title-bar h3,
.temporary-assignment-modal-content .modal-title-bar p {
  margin: 0;
}

.temporary-assignment-modal-content .modal-title-bar p {
  margin-top: 5px;
  color: var(--color-text-sub);
  font-size: 11px;
}

.temporary-assignment-modal-content form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.temporary-assignment-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  padding: 18px 22px;
}

.temporary-assignment-form-section {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-surface) 94%, var(--color-primary) 6%);
}

.temporary-assignment-form-section h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 12px;
  text-transform: uppercase;
}

.temporary-assignment-form-section h4 .material-icons {
  font-size: 17px;
}

.temporary-assignment-form-section .form-row:last-child,
.temporary-assignment-form-section .form-group:last-child {
  margin-bottom: 0;
}

.temporary-assignment-modal-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

@media (max-width: 720px) {
  .temporary-assignment-modal-content {
    width: calc(100% - 14px);
    height: calc(100dvh - 14px);
    max-height: calc(100dvh - 14px);
  }

  .temporary-assignment-modal-body {
    padding: 12px;
  }

  .temporary-assignment-form-section {
    padding: 12px;
  }

  .temporary-assignment-modal-footer {
    padding: 12px;
  }

  .temporary-assignment-modal-footer > button {
    flex: 1;
  }
}

/* =========================================================================
   PREMIUM CİLA KATMANI
   Mevcut tasarım dilini koruyarak: mikro etkileşimler, erişilebilir odak
   halkaları, kart/buton derinliği ve yumuşak geçişler. Dosyanın sonunda
   olduğu için eşit özgüllükteki eski kuralları ezer; yerleşimi DEĞİŞTİRMEZ.
   ========================================================================= */

/* Klavye erişilebilirliği: tüm etkileşimli öğelerde görünür odak halkası */
:is(button, a, input, select, textarea, [role="button"]):focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Butonlar: yumuşak kalkma + basılma hissi (yalnız transform/gölge — ucuz) */
.btn-audit,
.btn-action-small,
.btn-danger-small {
  transition: background-color .18s ease, color .18s ease, border-color .18s ease,
              box-shadow .18s ease, transform .12s ease, filter .18s ease;
  will-change: transform;
}

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

.btn-audit:active,
.btn-action-small:active,
.btn-danger-small:active {
  transform: translateY(0) scale(.98);
}

.btn-audit:disabled,
.btn-action-small:disabled,
.btn-danger-small:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-action-small:hover,
.btn-danger-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .1);
}

/* KPI ve panel kartları: hover'da hafif derinlik */
.kpi-card,
.panel-card {
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.kpi-card:hover {
  border-color: rgba(18, 179, 166, .45);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}

.panel-card:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, .07);
}

/* Form alanları: hover'da kenarlık belirginleşir, focus mevcut halka korunur */
.form-control:hover:not(:focus),
.search-input:hover:not(:focus) {
  border-color: var(--color-primary);
}

/* Tablo satırları: yumuşak arka plan geçişi */
.custom-table tbody td,
.data-table tbody td,
.vehicle-documents-table tbody td {
  transition: background-color .15s ease;
}

/* Modallar: açılışta hafif büyüme + arkaplan bulanıklığı (destekleyen tarayıcıda) */
.modal-backdrop {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal-content {
  transform: translateY(14px) scale(.985);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}

.modal-backdrop.open .modal-content {
  transform: translateY(0) scale(1);
}

/* Toast: giriş animasyonu mevcut; gölgeyi yumuşat */
.toast {
  box-shadow: 0 8px 24px rgba(15, 23, 42, .16);
}

/* Kenar menü bağlantıları: renk geçişi */
.sidebar-nav .nav-item a,
.sidebar-nav .nav-subitem a {
  transition: background-color .16s ease, color .16s ease;
}

/* Kaydırma çubuğu: bir tık daha kalın ve yuvarlak (kullanılabilirlik) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  border-radius: 6px;
}

/* Sekme panelleri: geçişte yumuşak görünme */
.tab-panel.active {
  animation: panelFadeIn .22s ease;
}

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

/* Rozetler: tutarlı dikey hizalama */
.status-badge,
.flag-badge,
.operator-activation-badge {
  line-height: 1.25;
  vertical-align: middle;
}

/* Hareket azaltma tercihi: tüm animasyon/geçişleri kapat (erişilebilirlik) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================================================
   GÖRÜNÜR YENİLEME KATMANI (v2)
   Belirgin ama güvenli görsel tazeleme: zemin dokusu, kart derinliği,
   gradyan birincil butonlar, KPI vurgu çizgileri, yumuşak köşeler.
   Yerleşim ölçüleri (genişlik/yükseklik/padding) DEĞİŞTİRİLMEZ.
   ========================================================================= */
:root {
  --radius-cards: 14px;
  --table-header-bg: #EFF4F9;
  --table-row-hover: #ECF8F6;
}

/* Zemin: düz gri yerine hafif degrade + köşede çok silik turkuaz ışıma */
body {
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(18, 179, 166, .07), transparent 60%),
    linear-gradient(180deg, #F4F7FB 0%, #EDF1F7 100%);
  background-attachment: fixed;
}

/* Kenar menü: tek renk yerine derin lacivert degrade */
.sidebar {
  background: linear-gradient(180deg, #121B2E 0%, #0B1322 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .05);
}

.sidebar-brand {
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

/* Birincil butonlar: gradyan turkuaz + renkli gölge */
.btn-audit {
  background: linear-gradient(135deg, #17C3B5 0%, #0EA294 100%);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(18, 179, 166, .28);
}

.btn-audit:hover {
  filter: brightness(1.07);
  box-shadow: 0 5px 16px rgba(18, 179, 166, .35);
}

/* İkincil buton ve form alanları: tutarlı 8px köşe */
.btn-action-small,
.btn-danger-small,
.form-control,
.search-input {
  border-radius: 8px;
}

/* Kartlar: daha yumuşak köşe + katmanlı, zarif gölge */
.panel-card {
  border-radius: var(--radius-cards);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -20px rgba(15, 23, 42, .28);
}

/* KPI kartları: üstte renkli vurgu çizgisi */
.kpi-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-cards);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), rgba(18, 179, 166, .2));
}

.kpi-card.warning::before {
  background: linear-gradient(90deg, var(--color-warning), rgba(245, 158, 11, .2));
}

.kpi-card.danger::before {
  background: linear-gradient(90deg, var(--color-danger), rgba(239, 68, 68, .2));
}

/* Panel başlıkları: alt çizgide silik turkuaz vurgu */
.panel-header {
  border-bottom: 2px solid rgba(18, 179, 166, .18);
}

/* Modallar: daha yumuşak köşe ve zengin gölge */
.modal-content {
  border-radius: 16px;
  box-shadow: 0 24px 64px -16px rgba(11, 19, 34, .45);
}

/* Rozetler: tam hap (pill) formu */
.status-badge,
.flag-badge {
  border-radius: 999px;
}

/* Tablo başlıkları: bir tık daha belirgin ayrım */
.custom-table thead th,
.data-table thead th,
.vehicle-documents-table thead th {
  box-shadow: inset 0 -2px 0 rgba(18, 179, 166, .14);
}

/* =========================================================================
   RADİKAL YENİDEN TASARIM — "INDIGO EDITION"
   Marka: turkuaz → indigo-mor gradyan. Tipografi: Plus Jakarta Sans.
   Bu katman dosyanın en sonunda olduğu için önceki tüm görsel kuralları
   ezer; DOM, sınıf adları ve işlevsellik aynen korunur.
   ========================================================================= */
:root {
  --color-primary: #6366F1;
  --color-primary-dark: #4F46E5;
  --color-primary-glow: rgba(99, 102, 241, 0.22);
  --color-primary-soft: rgba(99, 102, 241, 0.07);

  --color-bg: #F5F6FC;
  --color-surface: #FFFFFF;
  --color-surface-hover: #F7F8FE;
  --color-border: #DCE0F0;
  --color-text-main: #12142E;
  --color-text-sub: #4A5072;
  --color-title: #0E1030;

  --sidebar-bg: #0E1030;
  --sidebar-bg-active: #1B1D4D;
  --sidebar-text: #9BA3C9;
  --sidebar-text-active: #FFFFFF;

  --font-display: 'Segoe UI', Arial, sans-serif;
  --font-body: 'Segoe UI', Arial, sans-serif;

  --radius-cards: 18px;

  --table-header-bg: #F1F2FB;
  --table-row-alt: #FBFBFF;
  --table-row-hover: #F0F1FE;
  --table-border: #E3E6F5;
  --table-border-strong: #D3D8ED;
  --table-link: #4F46E5;
}

/* Zemin: indigo-mor ışımalı yumuşak degrade */
body {
  background:
    radial-gradient(1000px 480px at 90% -10%, rgba(99, 102, 241, .09), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(139, 92, 246, .06), transparent 55%),
    linear-gradient(180deg, #F6F7FD 0%, #EFF0F9 100%);
  background-attachment: fixed;
}

/* Kenar menü: gece indigosu degrade */
.sidebar {
  background: linear-gradient(185deg, #12143B 0%, #0B0C26 100%);
  box-shadow: inset -1px 0 0 rgba(139, 92, 246, .12);
}

.sidebar-brand {
  border-bottom: 1px solid rgba(139, 92, 246, .14);
}

/* Aktif menü: sol çizgi yerine dolgulu gradyan hap */
.nav-item.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, .16), rgba(139, 92, 246, .1));
}

.sidebar-nav .nav-item.active a {
  background: linear-gradient(90deg, #6366F1 0%, #7C5CF0 100%) !important;
  color: #FFFFFF !important;
  border-left: none !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(99, 102, 241, .35);
}

.sidebar-nav .nav-item.active a .material-icons {
  color: #FFFFFF !important;
}

/* Birincil butonlar: indigo→mor gradyan, tam hap form */
.btn-audit {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  border-radius: 999px;
  padding-inline: 20px;
  letter-spacing: .5px;
  box-shadow: 0 3px 10px rgba(99, 102, 241, .3);
}

.btn-audit:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(99, 102, 241, .42);
}

/* İkincil butonlar ve form alanları */
.btn-action-small,
.btn-danger-small {
  border-radius: 10px;
}

.form-control,
.search-input {
  border-radius: 10px;
}

.form-control {
  border-width: 1.5px;
  border-color: #C9CFE8;
}

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

/* Kartlar: neredeyse kenarlıksız, havada duran görünüm */
.panel-card {
  border-color: #E7E9F7;
  border-radius: var(--radius-cards);
  box-shadow: 0 1px 2px rgba(18, 20, 46, .04), 0 14px 34px -24px rgba(18, 20, 46, .35);
}

.panel-header {
  border-bottom: 2px solid rgba(99, 102, 241, .16);
}

/* KPI kartları: indigo vurgu şeridi + hover'da mor kenarlık */
.kpi-card {
  border-radius: var(--radius-cards);
}

.kpi-card::before {
  background: linear-gradient(90deg, #6366F1, rgba(139, 92, 246, .25));
}

.kpi-card.warning::before {
  background: linear-gradient(90deg, var(--color-warning), rgba(245, 158, 11, .2));
}

.kpi-card.danger::before {
  background: linear-gradient(90deg, var(--color-danger), rgba(239, 68, 68, .2));
}

.kpi-card:hover {
  border-color: rgba(99, 102, 241, .45);
  box-shadow: 0 8px 22px rgba(99, 102, 241, .12);
}

/* Tablolar: lavanta başlık zemini + indigo ayrım çizgisi */
.custom-table thead th,
.data-table thead th,
.vehicle-documents-table thead th {
  box-shadow: inset 0 -2px 0 rgba(99, 102, 241, .16);
}

/* Modallar */
.modal-content {
  border-radius: 20px;
  box-shadow: 0 28px 72px -18px rgba(14, 16, 48, .5);
}

/* Kaydırma çubuğu */
::-webkit-scrollbar-thumb {
  background: #C8CCE9;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Başlıklar: yeni fontla sıkı ve karakterli */
h1, h2, h3, .panel-title, .kpi-value {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* =========================================================================
   NET VE YÜKSEK KONTRASTLI DÜĞME SİSTEMİ
   Küçük yazılarda GPU katmanı/transform kaynaklı bulanıklığı kaldırır.
   ========================================================================= */
button,
.btn,
.btn-audit,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-outline,
.btn-primary-blue,
.btn-action-small,
.btn-danger-small {
  -webkit-appearance: none;
  appearance: none;
  -webkit-font-smoothing: auto;
  font-family: var(--font-body);
  font-synthesis: none;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-rendering: optimizeLegibility;
  text-shadow: none;
  transform: none !important;
  will-change: auto !important;
}

.btn-audit,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-outline,
.btn-primary-blue,
.btn-action-small,
.btn-danger-small {
  min-height: 42px;
  height: auto;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  text-transform: none;
  white-space: nowrap;
}

.btn-audit,
.btn-primary,
.btn-success {
  color: #ffffff !important;
  background: #4f46e5 !important;
  border-color: #4338ca !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .18);
}

.btn-audit:hover:not(:disabled),
.btn-primary:hover:not(:disabled),
.btn-success:hover:not(:disabled) {
  color: #ffffff !important;
  background: #4338ca !important;
  border-color: #3730a3 !important;
  box-shadow: 0 2px 5px rgba(67, 56, 202, .24);
  filter: none !important;
}

.btn-secondary,
.btn-primary-blue {
  color: #ffffff !important;
  background: #0369a1 !important;
  border-color: #075985 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .16);
}

.btn-secondary:hover:not(:disabled),
.btn-primary-blue:hover:not(:disabled) {
  color: #ffffff !important;
  background: #075985 !important;
  border-color: #0c4a6e !important;
  filter: none !important;
}

.btn-action-small,
.btn-outline {
  color: #0f4c68 !important;
  background: #ffffff !important;
  border-color: #7cbfd2 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

.btn-action-small:hover:not(:disabled),
.btn-outline:hover:not(:disabled) {
  color: #073b55 !important;
  background: #e8f7fb !important;
  border-color: #1687a0 !important;
  box-shadow: 0 2px 4px rgba(15, 23, 42, .12);
  filter: none !important;
}

.btn-danger,
.btn-danger-small {
  color: #a61b29 !important;
  background: #fff7f7 !important;
  border-color: #e59aa2 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .07);
}

.btn-danger:hover:not(:disabled),
.btn-danger-small:hover:not(:disabled) {
  color: #ffffff !important;
  background: #b42332 !important;
  border-color: #951d2a !important;
  box-shadow: 0 2px 4px rgba(149, 29, 42, .2);
  filter: none !important;
}

button .material-icons,
.btn .material-icons,
.btn-audit .material-icons,
.btn-primary .material-icons,
.btn-secondary .material-icons,
.btn-action-small .material-icons,
.btn-danger-small .material-icons {
  flex: 0 0 auto;
  color: currentColor;
  font-size: 18px;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
}

button:focus-visible,
.btn:focus-visible,
.btn-audit:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-action-small:focus-visible,
.btn-danger-small:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .34);
  outline-offset: 2px;
}

button:disabled,
.btn:disabled,
.btn-audit:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-action-small:disabled,
.btn-danger-small:disabled {
  opacity: .58;
  box-shadow: none !important;
  cursor: not-allowed;
  filter: grayscale(.12) !important;
}

.cari-action-button { min-height: 44px; }

/* =========================================================================
   CARI HESAP OKUNABILIRLIK DUZENLEMESI
   Firma hesap gecmisindeki kucuk metinleri ve sikisik satirlari iyilestirir.
   ========================================================================= */
.cari-action-card,
.cari-ledger-shell,
.cari-ledger-shell :is(table, th, td, span, b, small, p, button) {
  -webkit-font-smoothing: auto;
  text-rendering: auto;
}

.cari-eyebrow {
  font-size: 11.5px;
  letter-spacing: .08em;
  line-height: 1.4;
}

.cari-action-card {
  gap: 24px;
  padding: 24px;
}

.cari-action-card h3 {
  margin-top: 5px;
  font-size: 20px;
  line-height: 1.35;
}

.cari-action-card p {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.65;
}
.cari-action-button { font-size: 14px; }

.cari-ledger-heading {
  min-height: 104px;
  padding: 24px;
}

.cari-ledger-title-block { gap: 15px; }
.cari-ledger-title-icon { width: 48px; height: 48px; flex-basis: 48px; font-size: 25px; }
.cari-ledger-heading h3 { margin: 4px 0 4px; font-size: 21px; line-height: 1.3; }
.cari-ledger-heading p { font-size: 14px; line-height: 1.55; }

.cari-statement-summary { gap: 12px; padding: 16px 18px; }
.cari-statement-card { gap: 12px; min-height: 66px; padding: 14px; }
.cari-statement-card-icon { width: 38px; height: 38px; flex-basis: 38px; font-size: 20px; }
.cari-statement-card > div { gap: 4px; }
.cari-statement-card small { overflow: visible; font-size: 11.5px; line-height: 1.35; text-overflow: clip; white-space: normal; }
.cari-statement-card strong { font-size: 16px; line-height: 1.35; }

.cari-ledger-table {
  min-width: 1210px;
  font-size: 14px;
}

.cari-ledger-table :is(th, td):nth-child(1) { width: 140px; }
.cari-ledger-table :is(th, td):nth-child(3) { width: 170px; }
.cari-ledger-table :is(th, td):nth-child(4) { width: 155px; }
.cari-ledger-table :is(th, td):nth-child(5) { width: 185px; }
.cari-ledger-table :is(th, td):nth-child(6) { width: 180px; }

.cari-ledger-table th {
  padding: 14px 16px;
  color: #334155 !important;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.35;
}

.cari-ledger-table td {
  height: 76px;
  padding: 15px 16px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.5;
}

.cari-ledger-date { gap: 5px; }
.cari-ledger-date b { font-size: 14px; line-height: 1.35; }
.cari-ledger-date small { color: #475569; font-size: 12.5px; line-height: 1.35; }

.cari-ledger-description { gap: 12px; }
.cari-ledger-description > div { gap: 6px; }
.cari-ledger-description b {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.cari-ledger-kind-icon { width: 38px; height: 38px; flex-basis: 38px; }
.cari-ledger-kind-icon .material-icons { font-size: 20px; }

.cari-money-chip { gap: 5px; font-size: 13.5px; line-height: 1.4; }
.cari-money-chip .material-icons { font-size: 16px; }
.cari-ledger-muted { font-size: 15px; }

.cari-ledger-balance { gap: 4px; }
.cari-ledger-balance b { font-size: 14px; line-height: 1.35; }
.cari-ledger-balance small { color: #475569; font-size: 11.5px; line-height: 1.35; letter-spacing: .015em; }

.cari-ledger-status-stack { gap: 6px; }
.cari-ledger-status-stack small { color: #475569; font-size: 12px; line-height: 1.4; }
.cari-ledger-status-badge {
  min-height: 27px;
  gap: 4px;
  padding: 5px 9px;
  color: #334155;
  font-size: 11.5px;
  line-height: 1.3;
}
.cari-ledger-status-badge .material-icons { font-size: 14px; }
.cari-ledger-source-button { min-height: 30px; gap: 5px; margin-top: 7px; padding: 5px 8px; font-size: 11.5px; line-height: 1.3; }
.cari-ledger-source-button .material-icons { font-size: 14px; }

.cari-ledger-table .cari-ledger-action-cell { width: 52px; }
.cari-ledger-table .cari-ledger-select-cell { width: 78px; }
.cari-ledger-row-select { width: 34px; height: 34px; }
.cari-ledger-checkbox { width: 20px; height: 20px; }
.cari-ledger-reverse-button { width: 34px; height: 34px; }
.cari-ledger-reverse-button .material-icons { font-size: 18px; }

.cari-pagination-status { font-size: 12px; }
.cari-pagination-status b { font-size: 14px; }
.cari-pagination-status small { font-size: 11.5px; }

@media (max-width: 620px) {
  .cari-action-card { padding: 20px; }
  .cari-ledger-heading { min-height: 0; padding: 20px; }
  .cari-ledger-heading p { font-size: 13px; }
}

/* Özelleştirilebilir şirket fiyat tarifeleri */
.tariff-example-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 20px 14px;
  padding: 13px 15px;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  background: #eef2ff;
  color: #312e81;
}
.tariff-example-strip > .material-icons { color: #4f46e5; font-size: 23px; }
.tariff-example-strip div { display: flex; flex-direction: column; gap: 3px; }
.tariff-example-strip b { font-size: 13px; }
.tariff-example-strip small { color: #475569; font-size: 12px; line-height: 1.45; }
.tariff-catalog-table-wrap { margin: 0 20px 20px; border: 1px solid var(--color-border); border-radius: 12px; }
.tariff-catalog-table th { white-space: nowrap; }
.tariff-catalog-table td { vertical-align: middle; font-size: 13px; }

.receipt-tariff-modal-content { width: min(900px, 96%); max-height: 92vh; overflow: hidden; }
.receipt-tariff-modal-content .modal-body { max-height: calc(92vh - 138px); overflow-y: auto; }
.receipt-tariff-context {
  display: grid;
  grid-template-columns: 120px minmax(220px, 1fr) 150px;
  gap: 10px;
  margin-bottom: 14px;
}
.receipt-tariff-context > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.receipt-tariff-context span { color: #64748b; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.receipt-tariff-context strong { overflow: hidden; color: #0f172a; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.receipt-tariff-help {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 12px;
  line-height: 1.45;
}
.receipt-tariff-help .material-icons { font-size: 18px; }
.receipt-tariff-items { display: flex; flex-direction: column; gap: 9px; }
.receipt-tariff-item {
  display: grid;
  grid-template-columns: 24px minmax(180px, 1fr) 135px 116px 120px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.receipt-tariff-item.selected { border-color: #818cf8; background: #f5f7ff; box-shadow: 0 0 0 2px rgba(99,102,241,.08); }
.receipt-tariff-select-checkbox { width: 19px; height: 19px; margin: 0; accent-color: #4f46e5; cursor: pointer; }
.receipt-tariff-item-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.receipt-tariff-item-copy b { color: #0f172a; font-size: 13.5px; }
.receipt-tariff-item-copy small { overflow: hidden; color: #64748b; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.receipt-tariff-unit-price { display: flex; flex-direction: column; gap: 3px; }
.receipt-tariff-unit-price b { color: #3730a3; font-size: 13px; }
.receipt-tariff-unit-price small { color: #64748b; font-size: 11px; }
.receipt-tariff-quantity { display: flex; flex-direction: column; gap: 4px; }
.receipt-tariff-quantity small { color: #64748b; font-size: 10px; font-weight: 700; }
.receipt-tariff-quantity input { width: 100%; min-height: 35px; padding: 7px 9px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #0f172a; font: inherit; }
.receipt-tariff-quantity input:disabled { background: #f1f5f9; color: #94a3b8; }
.receipt-tariff-line-total { color: #0f172a; font-size: 13px; text-align: right; }
.receipt-tariff-loading, .receipt-tariff-empty { padding: 28px; border: 1px dashed #cbd5e1; border-radius: 12px; color: #64748b; text-align: center; }
.receipt-tariff-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.receipt-tariff-empty > .material-icons { color: #6366f1; font-size: 34px; }
.receipt-tariff-empty b { color: #0f172a; font-size: 14px; }
.receipt-tariff-empty p { max-width: 480px; margin: 0 0 6px; font-size: 12px; line-height: 1.5; }
.receipt-tariff-summary { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #f8fafc; }
.receipt-tariff-summary > div { display: flex; justify-content: space-between; gap: 18px; padding: 5px 0; color: #475569; font-size: 12px; }
.receipt-tariff-summary strong { color: #0f172a; font-size: 13px; }
.receipt-tariff-summary .receipt-tariff-grand-total { margin-top: 7px; padding-top: 12px; border-top: 1px solid #dbe3ef; color: #0f172a; font-size: 14px; font-weight: 700; }
.receipt-tariff-summary .receipt-tariff-grand-total strong { color: #4338ca; font-size: 18px; }
.receipt-tariff-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--color-border); }
.receipt-tariff-footer .btn-audit { display: inline-flex; align-items: center; gap: 7px; }

/* Tahsilat eklerken ödemenin hangi fişlere ait olduğunu aynı adımda seçme */
.company-payment-modal-content { width: min(920px, 96%); max-height: 94vh; overflow: hidden; }
.company-payment-modal-content form { display: flex; flex-direction: column; max-height: calc(94vh - 62px); min-height: 0; }
.company-payment-modal-content .modal-body { overflow-y: auto; }
.company-payment-field-hint { display: block; margin-top: 5px; color: #64748b; font-size: 11px; line-height: 1.35; }
.money-input { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .01em; }
.money-input[readonly] { color: #312e81; border-color: #c7d2fe; background: #f5f7ff; }
.company-payment-receipt-section { margin: 16px 0; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.company-payment-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.company-payment-section-heading h4 { margin: 2px 0 0; color: #0f172a; font-size: 15px; }
.company-payment-eyebrow { color: #4f46e5; font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.company-payment-selection-count { padding: 6px 10px; border: 1px solid #c7d2fe; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: 11px; font-weight: 750; white-space: nowrap; }
.company-payment-help { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 11px; padding: 10px 12px; border-radius: 9px; background: #eff6ff; color: #1e40af; font-size: 12px; line-height: 1.45; }
.company-payment-help .material-icons { flex: 0 0 auto; font-size: 18px; }
.company-payment-receipt-list { display: flex; flex-direction: column; gap: 9px; max-height: 330px; overflow-y: auto; padding: 2px; }
.company-payment-receipt {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 160px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.company-payment-receipt.selected { border-color: #818cf8; background: #f7f7ff; box-shadow: 0 0 0 2px rgba(99,102,241,.08); }
.company-payment-receipt.invalid { border-color: #f87171; background: #fff7f7; }
.company-payment-receipt-check { width: 19px; height: 19px; margin: 0; accent-color: #4f46e5; cursor: pointer; }
.company-payment-receipt-copy { min-width: 0; }
.company-payment-receipt-title { display: flex; align-items: baseline; gap: 9px; }
.company-payment-receipt-title b { color: #0f172a; font-size: 13.5px; }
.company-payment-receipt-title span { color: #64748b; font-size: 11.5px; }
.company-payment-receipt-copy p { overflow: hidden; margin: 4px 0 7px; color: #475569; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.company-payment-receipt-values { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #64748b; font-size: 10.5px; }
.company-payment-receipt-values b { margin-left: 3px; color: #334155; font-size: 11px; }
.company-payment-receipt-values b.paid { color: #047857; }
.company-payment-receipt-values b.remaining { color: #b91c1c; }
.company-payment-allocation-input { display: flex; flex-direction: column; gap: 5px; color: #475569; font-size: 10.5px; font-weight: 700; }
.company-payment-allocation-input > div { display: flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; overflow: hidden; }
.company-payment-allocation-input input { width: 100%; min-width: 0; height: 38px; padding: 7px 9px; border: 0; outline: 0; background: transparent; color: #0f172a; font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 750; text-align: right; }
.company-payment-allocation-input small { padding: 0 9px 0 3px; color: #64748b; font-size: 11px; }
.company-payment-allocation-input input:disabled { color: #94a3b8; background: #f1f5f9; }
.company-payment-allocation-input > div:has(input:disabled) { border-color: #e2e8f0; background: #f1f5f9; }
.company-payment-allocation-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 11px; padding: 12px 14px; border-radius: 10px; background: #f8fafc; color: #475569; font-size: 12px; }
.company-payment-allocation-summary strong { color: #4338ca; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.company-payment-selection-warning { display: none; margin-top: 8px; padding: 9px 11px; border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; color: #b91c1c; font-size: 11.5px; }
.company-payment-loading, .company-payment-empty { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 82px; padding: 18px; border: 1px dashed #cbd5e1; border-radius: 11px; color: #64748b; font-size: 12px; text-align: center; }
.company-payment-empty { flex-direction: column; }
.company-payment-empty .material-icons { color: #4f46e5; font-size: 27px; }
.company-payment-empty b { color: #0f172a; font-size: 13px; }
.company-payment-empty.error .material-icons, .company-payment-empty.error b { color: #b91c1c; }
.company-payment-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--color-border); }
.company-payment-footer .btn-audit:disabled { cursor: not-allowed; opacity: .55; }

@media (max-width: 760px) {
  .tariff-example-strip, .tariff-catalog-table-wrap { margin-right: 14px; margin-left: 14px; }
  .receipt-tariff-context { grid-template-columns: 1fr; }
  .receipt-tariff-item { grid-template-columns: 24px minmax(0, 1fr) 108px; }
  .receipt-tariff-unit-price { grid-column: 2; }
  .receipt-tariff-quantity { grid-column: 3; grid-row: 1 / span 2; }
  .receipt-tariff-line-total { grid-column: 2 / span 2; text-align: left; }
  .receipt-tariff-footer { flex-wrap: wrap; }
  .receipt-tariff-footer .btn-audit { flex: 1 1 100%; justify-content: center; order: -1; }
  .company-payment-receipt { grid-template-columns: 24px minmax(0, 1fr); }
  .company-payment-allocation-input { grid-column: 2; }
  .company-payment-section-heading { align-items: flex-start; }
  .company-payment-allocation-summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  .company-payment-footer { flex-wrap: wrap; }
  .company-payment-footer .btn-audit { flex: 1 1 100%; order: -1; }
}

/* =========================================================================
   FINAL OWNER/STAFF RESPONSIVE — lacivert + turkuaz operasyon arayüzü
   Bu son katman yalnız dashboard-page kabuğunu hedefler. İşlevsel ekranların
   sınıfları korunur; masaüstü düzeni sadeleşir, mobilde menü drawer olur.
   ========================================================================= */
:root {
  --color-primary: #0fa99b;
  --color-primary-dark: #0b7f76;
  --color-primary-glow: rgba(15, 169, 155, .18);
  --color-primary-soft: #e7f8f5;
  --color-bg: #f3f7f8;
  --color-surface: #ffffff;
  --color-surface-hover: #f7fafb;
  --color-border: #dce6e9;
  --color-text-main: #153047;
  --color-text-sub: #667d8d;
  --color-title: #102d43;
  --sidebar-bg: #09283a;
  --sidebar-bg-active: #103f50;
  --sidebar-text: #b8cbd4;
  --sidebar-text-active: #ffffff;
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-cards: 13px;
  --table-header-bg: #f5f8f9;
  --table-row-alt: #fbfcfc;
  --table-row-hover: #eff9f7;
  --table-border: #e2eaed;
  --table-border-strong: #d6e1e5;
  --table-link: #087f76;
}

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

body.dashboard-page {
  min-width: 0;
  max-width: 100%;
  background: #f3f7f8;
  background-attachment: scroll;
  color: var(--color-text-main);
  font-family: var(--font-body);
}

body.dashboard-page .sidebar {
  background: #09283a !important;
  border-right: 1px solid rgba(255, 255, 255, .06) !important;
  box-shadow: none;
}

body.dashboard-page .sidebar-brand {
  min-height: 70px;
  background: #082334;
  border-bottom-color: rgba(255, 255, 255, .08);
}

body.dashboard-page .brand-icon {
  box-shadow: 0 5px 16px rgba(15, 169, 155, .2);
}

body.dashboard-page .brand-text {
  font-size: 13px;
  letter-spacing: .02em;
}

body.dashboard-page .brand-text span {
  color: #93abb7;
  letter-spacing: .05em;
}

body.dashboard-page .sidebar-nav {
  gap: 4px;
  padding: 14px 12px;
}

body.dashboard-page .sidebar-nav .nav-item,
body.dashboard-page .sidebar-nav .nav-item.active {
  background: transparent;
}

body.dashboard-page .sidebar-nav .nav-item > a {
  min-height: 43px;
  padding: 10px 13px !important;
  border-left: 0 !important;
  border-radius: 9px !important;
  color: #b8cbd4 !important;
  font-size: 12.5px;
  font-weight: 540;
  line-height: 1.35;
}

body.dashboard-page .sidebar-nav .nav-item > a:hover,
body.dashboard-page .sidebar-nav .nav-item.open > a,
body.dashboard-page .sidebar-nav .nav-item.active > a {
  background: #103f50 !important;
  color: #ffffff !important;
  box-shadow: inset 3px 0 0 #20c8b6 !important;
}

body.dashboard-page .sidebar-nav .nav-item.open > .nav-sub {
  border-color: rgba(51, 211, 193, .14);
  background: #082f42 !important;
}

body.dashboard-page .sidebar-nav .nav-item.open > .nav-sub .nav-subitem > a:hover,
body.dashboard-page .sidebar-nav .nav-item.open > .nav-sub .nav-subitem.active > a {
  border-left-color: #20c8b6 !important;
  background: #104657 !important;
}

body.dashboard-page .sidebar-footer {
  border-top-color: rgba(255, 255, 255, .09) !important;
  color: #b8cbd4 !important;
}

body.dashboard-page .sidebar-footer #sidebarCompanyName {
  color: #55dfd0 !important;
}

body.dashboard-page .sidebar-footer #sidebarUserEmail {
  color: #9fb4bf !important;
}

body.dashboard-page .sidebar-footer #sidebarUserTier {
  color: #073041 !important;
  background: #55dfd0 !important;
}

.mobile-sidebar-toggle,
.sidebar-scrim {
  display: none;
}

body.dashboard-page .top-header {
  height: 64px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .98);
  border-bottom-color: #dde7ea;
}

body.dashboard-page .main-wrapper,
body.dashboard-page .content-container,
body.dashboard-page .tab-panel,
body.dashboard-page .panel-card {
  min-width: 0;
  max-width: 100%;
}

body.dashboard-page .content-container {
  gap: 22px;
  padding: 26px 28px 72px;
}

.dashboard-intro {
  margin: 0 0 20px;
}

.dashboard-intro p {
  margin: 0 0 5px;
  color: #728896;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dashboard-intro h1 {
  margin: 0;
  color: #102d43;
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.2;
}

body.dashboard-page .kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

body.dashboard-page .kpi-card {
  align-items: flex-start;
  min-height: 128px;
  padding: 21px;
  border-color: #dce6e9;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(16, 45, 67, .045);
  text-align: left;
}

body.dashboard-page .kpi-card::before {
  right: auto;
  bottom: 0;
  width: 4px;
  height: auto;
  background: #0fa99b;
}

body.dashboard-page .kpi-card.warning::before { background: #f0a43a; }
body.dashboard-page .kpi-card.danger::before { background: #df5963; }

body.dashboard-page .kpi-card:hover {
  border-color: #badbd6;
  box-shadow: 0 8px 22px rgba(16, 45, 67, .07);
}

body.dashboard-page .kpi-header {
  color: #728896;
  font-size: 10px;
  letter-spacing: .055em;
}

body.dashboard-page .kpi-value {
  color: #102d43;
  font-size: 28px;
  letter-spacing: -.025em;
}

body.dashboard-page .kpi-subtext {
  color: #8295a1;
  font-size: 11px;
}

body.dashboard-page .panel-card {
  border-color: #dce6e9;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(16, 45, 67, .045);
}

body.dashboard-page .panel-header {
  border-bottom: 1px solid #e1e9ec;
}

body.dashboard-page .panel-title {
  color: #18364c;
  font-size: 15px;
  font-weight: 720;
}

body.dashboard-page .panel-title .material-icons {
  color: #0fa99b !important;
}

body.dashboard-page :is(.btn-audit, .btn-primary, .btn-success) {
  color: #ffffff !important;
  background: #0fa99b !important;
  border-color: #0b8c81 !important;
  box-shadow: 0 2px 5px rgba(15, 169, 155, .2);
}

body.dashboard-page :is(.btn-audit, .btn-primary, .btn-success):hover:not(:disabled) {
  background: #0b8c81 !important;
  border-color: #08746c !important;
  box-shadow: 0 4px 10px rgba(15, 169, 155, .22);
}

body.dashboard-page .form-control:focus,
body.dashboard-page .search-input:focus {
  border-color: #0fa99b;
  box-shadow: 0 0 0 3px rgba(15, 169, 155, .14);
}

body.dashboard-page .custom-table thead th,
body.dashboard-page .data-table thead th,
body.dashboard-page .vehicle-documents-table thead th {
  color: #617988;
  background: #f5f8f9;
  box-shadow: inset 0 -2px 0 rgba(15, 169, 155, .13);
}

body.dashboard-page .custom-table tbody tr:hover td,
body.dashboard-page .data-table tbody tr:hover td {
  background: #eff9f7;
}

body.dashboard-page .table-container,
body.dashboard-page .data-table-container,
body.dashboard-page .vehicle-documents-table-wrap,
body.dashboard-page .cari-ledger-table-wrap,
body.dashboard-page .tariff-catalog-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

body.dashboard-page .modal-content {
  border-radius: 14px;
  box-shadow: 0 22px 56px rgba(9, 40, 58, .2);
}

@media (max-width: 760px) {
  body.dashboard-page,
  body.dashboard-page.sidebar-collapsed {
    --sidebar-width: 0px;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    background: #f3f7f8;
    background-attachment: scroll;
    overflow-x: hidden;
  }

  body.dashboard-page.mobile-sidebar-open {
    overflow: hidden;
  }

  body.dashboard-page .sidebar,
  body.dashboard-page.sidebar-collapsed .sidebar {
    display: flex;
    z-index: 100020;
    width: min(86vw, 300px) !important;
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    transform: translate3d(-100%, 0, 0);
    transition: transform .22s ease;
    will-change: transform;
  }

  body.dashboard-page.mobile-sidebar-open .sidebar {
    transform: translate3d(0, 0, 0);
  }

  body.dashboard-page .sidebar-brand,
  body.dashboard-page.sidebar-collapsed .sidebar-brand {
    display: flex;
    flex: 0 0 auto;
    min-height: 66px;
    padding: 12px 12px 12px 15px;
    background: #082334;
  }

  body.dashboard-page.sidebar-collapsed .brand-icon {
    display: block;
  }

  body.dashboard-page.sidebar-collapsed .brand-text {
    display: block;
  }

  body.dashboard-page .sidebar-toggle,
  body.dashboard-page.sidebar-collapsed .sidebar-toggle {
    display: inline-grid;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
  }

  body.dashboard-page .sidebar-nav,
  body.dashboard-page.sidebar-collapsed .sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.dashboard-page .sidebar-nav .material-icons {
    flex: 0 0 22px;
    width: 22px;
    max-width: 22px;
    overflow: hidden;
  }

  body.dashboard-page.sidebar-collapsed .sidebar-nav .nav-item > a,
  body.dashboard-page .sidebar-nav .nav-item > a {
    justify-content: flex-start;
    min-height: 46px;
    gap: 11px !important;
    padding: 11px 12px !important;
    font-size: 13px !important;
  }

  body.dashboard-page.sidebar-collapsed .sidebar-nav .nav-item > a .material-icons {
    font-size: 20px !important;
  }

  body.dashboard-page.sidebar-collapsed .sidebar-nav .nav-caret {
    display: inline-block !important;
  }

  body.dashboard-page.sidebar-collapsed .sidebar-nav .nav-item.open > .nav-sub {
    display: flex !important;
  }

  body.dashboard-page .sidebar-footer,
  body.dashboard-page.sidebar-collapsed .sidebar-footer {
    display: flex !important;
    flex: 0 0 auto;
    padding: 12px 15px 14px !important;
  }

  body.dashboard-page.sidebar-collapsed .sidebar-footer > div:not(.sidebar-account-heading) {
    display: block !important;
  }

  body.dashboard-page.sidebar-collapsed .sidebar-account-heading {
    justify-content: space-between;
  }

  body.dashboard-page.sidebar-collapsed .sidebar-account-heading .sidebar-account-company {
    display: block !important;
  }

  body.dashboard-page.sidebar-collapsed .sidebar-footer > a {
    justify-content: flex-start;
    min-height: 38px;
    padding: 8px 0 !important;
    font-size: 12px !important;
  }

  body.dashboard-page .company-desktop-actions {
    display: grid !important;
  }

  body.dashboard-page .company-desktop-actions[hidden] {
    display: none !important;
  }

  .sidebar-scrim {
    display: block;
    position: fixed;
    z-index: 100010;
    inset: 0;
    border: 0;
    background: rgba(5, 24, 35, .54);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }

  body.dashboard-page.mobile-sidebar-open .sidebar-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  body.dashboard-page .main-wrapper {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-left: 0 !important;
  }

  body.dashboard-page .top-header {
    height: 58px;
    padding: 0 max(13px, env(safe-area-inset-right)) 0 max(13px, env(safe-area-inset-left));
  }

  .mobile-sidebar-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid #d8e4e7;
    border-radius: 10px;
    background: #ffffff;
    color: #15384d;
    cursor: pointer;
  }

  .mobile-sidebar-toggle .material-icons {
    width: 22px;
    overflow: hidden;
    font-size: 22px;
  }

  body.dashboard-page .header-actions {
    gap: 10px;
  }

  body.dashboard-page .notification-dropdown {
    position: fixed !important;
    top: 66px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none;
  }

  body.dashboard-page .content-container {
    width: 100%;
    min-width: 0;
    gap: 16px;
    padding: 18px 13px calc(88px + env(safe-area-inset-bottom));
  }

  .dashboard-intro {
    margin-bottom: 15px;
  }

  .dashboard-intro h1 {
    font-size: 23px;
  }

  body.dashboard-page .kpi-grid {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-bottom: 4px;
  }

  body.dashboard-page .kpi-card {
    min-height: 108px;
    padding: 17px 18px;
  }

  body.dashboard-page .kpi-value {
    font-size: 25px;
  }

  body.dashboard-page .mid-grid,
  body.dashboard-page .form-row,
  body.dashboard-page .settings-grid,
  body.dashboard-page .vehicle-documents-summary,
  body.dashboard-page .vehicle-documents-controls {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.dashboard-page .panel-card {
    width: 100%;
    min-width: 0;
    padding: 16px 14px;
    border-radius: 12px;
  }

  body.dashboard-page .panel-header,
  body.dashboard-page .filter-bar,
  body.dashboard-page .operator-monitoring-header,
  body.dashboard-page .vehicle-documents-hero,
  body.dashboard-page .vehicle-documents-section-head {
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
  }

  body.dashboard-page .panel-title {
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.4;
  }

  body.dashboard-page :is(.filter-bar, .panel-header) > :is(button, .btn-audit, .btn-primary, .btn-secondary) {
    width: 100%;
    justify-content: center;
  }

  body.dashboard-page .table-container,
  body.dashboard-page .data-table-container,
  body.dashboard-page .vehicle-documents-table-wrap,
  body.dashboard-page .cari-ledger-table-wrap,
  body.dashboard-page .tariff-catalog-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-radius: 9px;
  }

  body.dashboard-page .custom-table,
  body.dashboard-page .data-table {
    width: max-content;
    min-width: 720px;
  }

  body.dashboard-page .modal-backdrop {
    align-items: flex-end;
    padding: 12px;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  body.dashboard-page .modal-content,
  body.dashboard-page .company-payment-modal-content,
  body.dashboard-page .receipt-tariff-modal-content {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 24px);
    margin: 0;
    border-radius: 16px 16px 12px 12px;
  }

  body.dashboard-page .modal-body {
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

}

@media (max-width: 390px) {
  body.dashboard-page .content-container {
    padding-right: 10px;
    padding-left: 10px;
  }

  body.dashboard-page .panel-card {
    padding-right: 12px;
    padding-left: 12px;
  }

  body.dashboard-page .receipt-tariff-item {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  body.dashboard-page .receipt-tariff-quantity,
  body.dashboard-page .receipt-tariff-line-total {
    grid-column: 2;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.dashboard-page .sidebar,
  body.dashboard-page .sidebar-scrim {
    transition: none;
  }
}
