:root {
  --bg-top: #030608;
  --bg-mid: #0a171f;
  --bg-bottom: #ede3d2;
  --surface: rgba(7, 16, 22, 0.82);
  --surface-soft: rgba(248, 242, 234, 0.86);
  --surface-strong: rgba(255, 251, 245, 0.97);
  --surface-alt: rgba(15, 30, 38, 0.88);
  --ink: #122127;
  --ink-soft: #5d6a71;
  --ink-on-dark: #f1f3ef;
  --line: rgba(23, 44, 52, 0.15);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #c4a164;
  --accent-deep: #725027;
  --accent-soft: rgba(196, 161, 100, 0.16);
  --ocean: #6e9491;
  --ocean-soft: rgba(110, 148, 145, 0.14);
  --positive: #2b624d;
  --positive-soft: rgba(41, 95, 75, 0.14);
  --warning: #9b6633;
  --warning-soft: rgba(155, 102, 51, 0.14);
  --danger: #7f3e39;
  --shadow-xl: 0 42px 120px rgba(1, 7, 11, 0.4);
  --shadow-lg: 0 26px 68px rgba(2, 10, 16, 0.26);
  --shadow-md: 0 16px 36px rgba(4, 13, 19, 0.16);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --text-body: 13px;
  --text-label: 11px;
  --text-meta: 12px;
  --text-table: 13px;
  --text-button: 13px;
  --line-body: 1.5;
  --font-body: "Segoe UI", "Aptos", "Calibri", "Trebuchet MS", sans-serif;
  --font-heading: "Segoe UI", "Aptos", "Calibri", "Trebuchet MS", sans-serif;
  --font-brand: "Segoe UI", "Aptos", "Calibri", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 18%, rgba(110, 148, 145, 0.16), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(196, 161, 100, 0.18), transparent 18%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 33%, #cfbea7 68%, var(--bg-bottom) 100%);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--line-body);
  letter-spacing: 0.01em;
}

body::selection {
  background: rgba(199, 163, 91, 0.24);
}

a {
  color: inherit;
  text-decoration: none;
}

.scene-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.scene-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.9;
}

.scene-glow-a {
  width: 40vw;
  height: 40vw;
  min-width: 340px;
  min-height: 340px;
  top: -10vw;
  left: -8vw;
  background: radial-gradient(circle, rgba(107, 184, 190, 0.26) 0%, rgba(107, 184, 190, 0.08) 42%, transparent 72%);
}

.scene-glow-b {
  width: 34vw;
  height: 34vw;
  min-width: 320px;
  min-height: 320px;
  right: -6vw;
  top: 16vh;
  background: radial-gradient(circle, rgba(199, 163, 91, 0.22) 0%, rgba(199, 163, 91, 0.05) 48%, transparent 72%);
}

.scene-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08) 42%, transparent 100%);
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  padding: 28px 22px;
  background:
    linear-gradient(180deg, rgba(5, 16, 22, 0.96), rgba(12, 26, 33, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  overflow-y: auto;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.brand {
  position: relative;
  padding: 22px 22px 20px;
  border-radius: var(--radius-xl);
  color: var(--ink-on-dark);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(196, 161, 100, 0.14), rgba(110, 148, 145, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 44%);
  pointer-events: none;
}

.brand-mark {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.3), transparent 38%),
    linear-gradient(145deg, rgba(130, 10, 18, 0.96), rgba(200, 24, 34, 0.92) 54%, rgba(115, 8, 16, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff8f8;
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 14px rgba(255, 255, 255, 0.22),
    0 10px 18px rgba(63, 0, 0, 0.34);
  overflow: hidden;
}

.brand-logo-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 14px;
}

.brand-logo-image-hero {
  border-radius: 18px;
}

.brand h1,
.hero h2,
.panel h2,
.empty-state h3 {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.brand h1 {
  font-size: 30px;
  line-height: 1.1;
}

.brand-copy {
  margin: 14px 0 0;
  max-width: 24ch;
  color: rgba(238, 244, 242, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand .eyebrow {
  color: #e7cc95;
}

.nav {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.nav-section {
  display: grid;
  gap: 8px;
}

.nav-section + .nav-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px solid rgba(232, 207, 154, 0.62);
  box-shadow: 0 -1px 0 rgba(112, 86, 46, 0.26);
}

.nav-accordion {
  gap: 0;
}

.nav-section-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.92);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 207, 154, 0.12);
}

.nav-section-summary::-webkit-details-marker {
  display: none;
}

.nav-accordion[open] .nav-section-summary {
  background: rgba(232, 207, 154, 0.12);
  border-color: rgba(232, 207, 154, 0.24);
}

.nav-accordion .nav-section-links {
  display: none;
  padding-top: 10px;
}

.nav-accordion[open] .nav-section-links {
  display: grid;
}

.nav-section-title {
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: rgba(232, 207, 154, 0.78);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  color: rgba(232, 207, 154, 0.92);
}

.nav-section-links {
  display: grid;
  gap: 8px;
}

.nav-subsection {
  display: grid;
  gap: 6px;
  padding: 5px 0 2px;
}

.nav-subsection + .nav-subsection {
  margin-top: 3px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-subsection-title {
  padding: 0 12px;
  color: rgba(232, 207, 154, 0.86);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  text-decoration: none;
}

.nav-subsection-links {
  display: grid;
  gap: 6px;
}

.nav-subsection .nav-link {
  padding: 11px 14px;
  border-radius: 14px;
}

.nav-subsection .nav-link-label {
  font-size: 13px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  color: rgba(238, 244, 242, 0.76);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.nav-link-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.03);
}

.nav-link:hover,
.nav-link.active {
  color: #fff9f0;
  transform: translateX(5px);
  background: linear-gradient(135deg, rgba(199, 163, 91, 0.16), rgba(255, 255, 255, 0.06));
  border-color: rgba(199, 163, 91, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.nav-link.active .nav-link-dot,
.nav-link:hover .nav-link-dot {
  background: linear-gradient(180deg, #e8cf9a, #b38a46);
}

.sidebar-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.sidebar-stack .panel {
  color: var(--ink-on-dark);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(16, 36, 44, 0.9), rgba(11, 26, 32, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 34px rgba(2, 10, 16, 0.2);
}

.sidebar-stack .panel h2 {
  font-size: 20px;
  color: #fff9ef;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.system-health-critical-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 15px 18px;
  border: 1px solid #dc2626;
  border-radius: 16px;
  background: linear-gradient(135deg, #7f1d1d, #b91c1c);
  color: #fff;
  box-shadow: 0 12px 30px rgba(185, 28, 28, 0.22);
}

.system-health-critical-banner div {
  display: grid;
  gap: 3px;
}

.system-health-critical-banner strong {
  font-size: 15px;
}

.system-health-critical-banner span:not(.system-health-critical-icon) {
  color: #fee2e2;
  font-size: 12px;
}

.system-health-critical-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #fff;
  color: #b91c1c;
  font-size: 22px;
  font-weight: 900;
}

.system-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.system-health-card {
  min-height: 155px;
  padding: 15px;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 14px;
  background: #fff;
  display: grid;
  align-content: start;
  gap: 9px;
}

.system-health-card.is-ok { border-left-color: #15803d; background: #f0fdf4; }
.system-health-card.is-warning { border-left-color: #d97706; background: #fffbeb; }
.system-health-card.is-error { border-left-color: #dc2626; background: #fef2f2; }

.system-health-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.system-health-card-head .badge { margin-left: auto; }

.system-health-symbol {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.is-ok .system-health-symbol { background: #15803d; }
.is-warning .system-health-symbol { background: #d97706; }
.is-error .system-health-symbol { background: #dc2626; }

.system-health-summary { font-weight: 800; color: #17212b; }
.system-health-detail { color: #475569; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.system-health-card small { color: #64748b; margin-top: auto; }

.system-health-diagnostics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.system-health-diagnostics h3 { margin: 0 0 8px; }

@media (max-width: 1180px) {
  .system-health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-health-diagnostics { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .system-health-grid { grid-template-columns: 1fr; }
}

.sidebar-primary {
  display: grid;
  gap: 22px;
}

.sidebar-stack .eyebrow {
  color: #ddc188;
}

.sidebar-stack .panel,
.sidebar-stack .panel .panel-actions,
.sidebar-stack .panel .compact-meta,
.sidebar-stack .panel .field-help,
.sidebar-stack .panel .muted,
.sidebar-stack .panel .text-link,
.sidebar-stack .panel label {
  color: rgba(244, 248, 246, 0.84);
}

.main-panel {
  min-width: 0;
  padding: 24px 24px 32px;
}

.main-panel-inner {
  width: min(100%, 1540px);
  max-width: 1540px;
  margin: 0 auto;
  animation: page-rise 0.45s ease;
}

.global-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  gap: 24px;
  align-items: end;
  margin: 0 0 24px;
  padding: 20px 24px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(90deg, rgba(6, 17, 23, 0.6), rgba(196, 161, 100, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(2, 10, 16, 0.18);
}

.global-hero .eyebrow {
  color: #e2c88f;
}

.global-hero-lockup {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  justify-self: start;
}

.flash {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  color: #fffefc;
  background:
    linear-gradient(135deg, rgba(17, 40, 49, 0.92), rgba(30, 63, 69, 0.8)),
    linear-gradient(135deg, rgba(196, 161, 100, 0.18), transparent);
  border: 1px solid rgba(196, 161, 100, 0.28);
  box-shadow: var(--shadow-md);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero > div:first-child,
.panel-head > div:first-child {
  min-width: 0;
}

.hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.hero.compact {
  align-items: center;
}

.hero h2 {
  max-width: 760px;
  color: #fff9ef;
  font-size: 36px;
  line-height: 1.08;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero-family-title {
  justify-self: end;
  margin: 0;
  color: #f2d08a;
  font-size: clamp(20px, 2.2vw, 36px);
  line-height: 0.95;
  text-align: right;
  text-shadow:
    0 3px 0 rgba(106, 72, 22, 0.55),
    0 14px 34px rgba(0, 0, 0, 0.34),
    0 0 18px rgba(199, 163, 91, 0.24);
}

.hero .eyebrow {
  color: #e2c88f;
}

.hero p,
.hero .muted,
.hero .field-help,
.global-hero p,
.global-hero .muted {
  color: rgba(255, 249, 239, 0.9);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 20px;
}

.content-main,
.content-side,
.dashboard-main {
  display: grid;
  gap: 20px;
}

.dashboard-tracking-grid .dashboard-side {
  align-self: start;
}

.dashboard-alert-panel {
  position: sticky;
  top: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 14px;
}

.dashboard-summary-grid {
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  align-items: stretch;
}

.fuel-consumption-stats-grid {
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  align-items: stretch;
}

@media (max-width: 1480px) {
  .fuel-consumption-stats-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }
}

@media (max-width: 1180px) {
  .fuel-consumption-stats-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 820px) {
  .fuel-consumption-stats-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 560px) {
  .fuel-consumption-stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.stat-card,
.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(18px);
}

.stat-card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%);
  pointer-events: none;
}

.stat-card {
  padding: 18px;
  color: #fff8ee;
  background:
    linear-gradient(180deg, rgba(12, 31, 38, 0.9), rgba(18, 46, 55, 0.8)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card.default {
  background:
    linear-gradient(180deg, rgba(16, 36, 44, 0.9), rgba(17, 43, 52, 0.82)),
    linear-gradient(135deg, rgba(107, 184, 190, 0.08), transparent 52%);
}

.stat-card.positive {
  background:
    linear-gradient(180deg, rgba(18, 63, 49, 0.92), rgba(17, 49, 41, 0.84)),
    linear-gradient(135deg, rgba(199, 163, 91, 0.08), transparent 52%);
}

.stat-card.warning {
  background:
    linear-gradient(180deg, rgba(90, 48, 22, 0.94), rgba(70, 40, 18, 0.86)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 48%);
}

.stat-label {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-value-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.stat-value {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.stat-chip {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.34), transparent 46%),
    linear-gradient(135deg, rgba(199, 163, 91, 0.4), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.panel {
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.95), rgba(245, 235, 220, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), transparent);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  flex-wrap: wrap;
  padding: 22px 22px 16px;
  border-bottom: 1px solid rgba(18, 49, 56, 0.08);
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.panel h2 {
  font-size: 28px;
  color: var(--ink);
}

.panel-body {
  padding: 20px 22px 22px;
}

.compact-stat-panel .panel-head,
.compact-control-panel .panel-head {
  padding: 16px 18px 12px;
}

.compact-stat-panel .panel-body,
.compact-control-panel .panel-body {
  padding: 12px 18px 16px;
}

.sidebar-stack .compact-stat-panel .panel-head,
.sidebar-stack .compact-control-panel .panel-head {
  padding: 14px 14px 10px;
}

.sidebar-stack .compact-stat-panel .panel-body,
.sidebar-stack .compact-control-panel .panel-body {
  padding: 10px 14px 14px;
}

.sidebar-stack .sidebar-insight-panel .panel-head {
  padding: 12px 13px 8px;
}

.sidebar-stack .sidebar-insight-panel .panel-body {
  padding: 8px 13px 12px;
}

.sidebar-stack .sidebar-insight-panel h2 {
  font-size: 17px;
}

.sidebar-stack .sidebar-insight-panel .eyebrow {
  margin-bottom: 5px;
  font-size: 9px;
}

.form-stack,
.card-form {
  display: grid;
  gap: 12px;
}

.card-form.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.job-detail-edit-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.job-detail-split-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.job-detail-edit-form .form-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.job-detail-split-form .form-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.job-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.job-detail-actions .field-help {
  flex: 1 1 100%;
  text-align: right;
  margin: 0;
}

.form-span-2 {
  grid-column: 1 / -1;
}

.region-checkbox-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.region-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(18, 49, 56, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.region-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

.region-checkbox span {
  color: var(--ink);
}

.card-form label,
.compact-filter label,
.inline-form label {
  font-size: var(--text-label);
  color: var(--ink-soft);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select,
button {
  font: inherit;
  font-size: var(--text-body);
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 15px;
  border: 1px solid rgba(18, 49, 56, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

input::placeholder {
  color: #8b9598;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(141, 103, 50, 0.4);
  box-shadow:
    0 0 0 4px rgba(199, 163, 91, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.readonly-field {
  width: 100%;
  padding: 12px 14px;
  border-radius: 15px;
  border: 1px solid rgba(18, 49, 56, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(246, 239, 228, 0.9));
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  min-height: 44px;
  max-width: 100%;
  cursor: pointer;
  font-size: var(--text-button);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease,
    filter 0.18s ease;
}

.monospace-area {
  width: 100%;
  min-height: 240px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(8, 15, 30, 0.72);
  color: #f8fafc;
  font: 500 0.82rem/1.45 "Consolas", "Courier New", monospace;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-size: 0.88rem;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.compact-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #dbeafe;
  font-size: 0.82rem;
  line-height: 1.45;
}

.fleet-upload-card .compact-list,
.fleet-upload-card .compact-list li {
  color: var(--ink);
}

.two-col-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  .two-col-info {
    grid-template-columns: 1fr;
  }
}

.button:hover {
  transform: translateY(-1px);
  filter: saturate(1.04);
}

.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.file-button {
  width: 100%;
}

.button.primary {
  color: #fff9ef;
  background: linear-gradient(135deg, #c4a05e, #855d29);
  box-shadow: 0 18px 32px rgba(108, 73, 25, 0.28);
}

.button:not(.primary):not(.secondary):not(.ghost) {
  color: #fff9ef;
  background: linear-gradient(135deg, #b45a42, #7f2f24);
  box-shadow: 0 16px 28px rgba(108, 40, 31, 0.22);
 }

.button.secondary {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 233, 216, 0.97));
  border: 1px solid rgba(18, 49, 56, 0.1);
  box-shadow: 0 14px 24px rgba(18, 49, 56, 0.09);
}

.button.danger {
  color: #fff4f1;
  background: linear-gradient(135deg, #b24f47, #7f3e39);
  box-shadow: 0 16px 28px rgba(127, 62, 57, 0.24);
}

.button.ghost {
  color: var(--danger);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(143, 75, 66, 0.16);
}

.compact-filter {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero .compact-filter label {
  color: rgba(255, 249, 239, 0.78);
}

.hero .compact-filter input,
.hero .compact-filter select {
  background: rgba(255, 251, 246, 0.96);
  min-width: 150px;
}

.jobs-filter {
  justify-content: flex-end;
}

.field-help,
.muted,
.text-link {
  color: var(--ink-soft);
}

.compact-help {
  margin: 6px 0 0;
  font-size: 12px;
}

.compact-panel {
  padding: 16px 18px;
}

.compact-panel h2 {
  font-size: 24px;
}

.compact-upload-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  align-items: center;
}

.compact-upload-copy .eyebrow {
  margin-bottom: 6px;
}

.compact-meta {
  margin: 8px 0 0;
  font-size: var(--text-meta);
  line-height: 1.45;
}

.source-truth-panel .panel-body {
  display: grid;
  gap: 14px;
}

.source-truth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.source-truth-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.source-truth-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 49, 56, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.source-truth-item .label {
  display: block;
  margin-bottom: 6px;
  color: rgba(26, 53, 61, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-truth-item strong {
  display: block;
  color: #10242c;
  font-size: 15px;
  line-height: 1.35;
  word-break: break-word;
}

.source-truth-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: rgba(20, 45, 52, 0.82);
  font-size: 12px;
}

.source-truth-panel.positive {
  border-color: rgba(53, 138, 101, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(238, 247, 241, 0.94)),
    linear-gradient(180deg, rgba(42, 108, 77, 0.08), rgba(255, 255, 255, 0.2));
}

.source-truth-panel.warning {
  border-color: rgba(169, 118, 39, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(251, 244, 229, 0.94)),
    linear-gradient(180deg, rgba(169, 118, 39, 0.09), rgba(255, 255, 255, 0.2));
}

.sidebar-stack .source-truth-panel .panel-body {
  gap: 10px;
}

.sidebar-stack .source-truth-panel .source-truth-item {
  background: rgba(255, 255, 255, 0.9);
}

.sidebar-stack .source-truth-meta {
  display: none;
}

.sidebar-stack .source-truth-item .label {
  color: rgba(34, 60, 68, 0.66);
}

.sidebar-stack .source-truth-item strong {
  font-size: 13px;
}

.compact-upload-actions,
.compact-upload-copy {
  min-width: 0;
}

.compact-form-stack {
  display: grid;
  gap: 10px;
}

.compact-form-stack .compact-card-form {
  grid-template-columns: 1fr;
}

.compact-inline-form {
  justify-content: flex-start;
}

.compact-card-form {
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 49, 56, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(246, 239, 228, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.compact-card-form input,
.compact-card-form select,
.compact-card-form textarea {
  padding: 10px 12px;
  border-radius: 12px;
}

.compact-card-form textarea {
  min-height: 148px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.compact-card-form .field-help {
  margin: 0;
  line-height: 1.35;
}

.mapping-mode-card {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(126, 92, 49, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(245, 238, 228, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.mapping-mode-card-auto {
  border-color: rgba(53, 94, 78, 0.2);
  background: linear-gradient(180deg, rgba(246, 255, 250, 0.98), rgba(235, 246, 239, 0.92));
}

.mapping-mode-card-manual {
  padding: 0;
  overflow: hidden;
}

.mapping-mode-card-manual summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--ink);
}

.mapping-mode-card-manual summary::-webkit-details-marker {
  display: none;
}

.mapping-mode-card-manual summary small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.mapping-mode-card-manual[open] summary {
  border-bottom: 1px solid rgba(126, 92, 49, 0.14);
  background: rgba(255, 255, 255, 0.42);
}

.mapping-mode-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mapping-mode-head h3 {
  margin: 0;
  font-size: 1rem;
}

.mapping-mode-head p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.mapping-mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(53, 94, 78, 0.12);
  color: #355e4e;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mapping-auto-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mapping-auto-meta > div,
.mapping-auto-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mapping-auto-meta span,
.mapping-auto-item span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a6840;
}

.mapping-auto-meta strong,
.mapping-auto-item strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.mapping-auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px 14px;
  margin-top: 14px;
}

.mapping-mode-body {
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
}

.mapping-manual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 14px;
}

.mapping-manual-grid label {
  display: grid;
  gap: 6px;
}

.import-preview-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.import-preview-header strong {
  font-size: 0.78rem;
  line-height: 1.2;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.import-preview-header-note {
  font-size: 0.68rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a6840;
  overflow-wrap: anywhere;
}

.import-preview-raw-table .table td,
.import-preview-raw-table .table th {
  vertical-align: top;
}

.import-preview-header-select {
  width: 100%;
  min-width: 140px;
  margin-top: 6px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(126, 92, 49, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 0.78rem;
}

.import-preview-header-select.mapping-select-conflict {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px rgba(127, 62, 57, 0.12);
}

.mapping-inline-warning {
  color: var(--danger);
  font-weight: 700;
}

.form-divider {
  width: 100%;
  height: 0;
  margin: 2px 0;
  border-top: 1px solid rgba(116, 82, 41, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.form-divider-strong {
  margin: 8px 0 6px;
  border-top-width: 3px;
  border-top-color: rgba(187, 143, 78, 0.54);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78), 0 2px 0 rgba(96, 66, 28, 0.12);
}

.compact-card-form .button {
  padding: 10px 14px;
}

.sidebar-stack .compact-card-form {
  color: var(--ink-on-dark);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-stack .compact-card-form label,
.sidebar-stack .field-help,
.sidebar-stack .compact-meta,
.sidebar-stack .muted,
.sidebar-stack .text-link {
  color: rgba(244, 248, 246, 0.84);
}

.sidebar-stack .compact-card-form input,
.sidebar-stack .compact-card-form select,
.sidebar-stack .readonly-field {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.sidebar-stack .compact-card-form .button,
.sidebar-stack .compact-inline-form .button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.sidebar-stack .compact-inline-form {
  display: block;
}

.text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toolbar,
.form-row,
.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: 100%;
}

.button-row .button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.compact-button-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
}

.compact-button-row .button,
.compact-button-row .inline-delete-form,
.compact-button-row .inline-delete-form .button {
  width: auto;
  max-width: none;
}

.compact-button-row .button {
  min-width: 72px;
}

.compact-card-form .button-row .button {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
  text-align: center;
}

.compact-card-form .button-row .whatsapp-action-button {
  width: 56px;
  max-width: 56px;
  min-width: 56px;
  min-height: 56px;
  height: 56px;
  padding: 0;
  white-space: nowrap;
  border-radius: 20px;
}

.rental-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  gap: 12px 14px;
  align-items: end;
}

.rental-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.rental-filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rental-filter-field-plate {
  grid-column: span 1;
}

.rental-filter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.rental-filter-actions .button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.toolbar .button,
.inline-form .button,
.panel-actions .button,
.hero-actions .button {
  flex: 0 0 auto;
}

.vehicle-bulk-form {
  display: grid;
  gap: 12px;
}

.vehicle-bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.vehicle-bulk-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.vehicle-bulk-check input[type="checkbox"],
.vehicle-bulk-master {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.expense-check-form {
  display: flex;
  justify-content: flex-start;
  min-width: 100%;
}

.expense-check-toggle {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: normal;
  line-height: 1.35;
  min-width: 0;
}

.expense-check-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.expense-check-toggle span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(18, 49, 56, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(247, 241, 232, 0.82));
}

.tall-scroll {
  max-height: 68vh;
}

.timeline-scroll {
  height: 118vh;
  max-height: 118vh;
}

.table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  background: transparent;
  font-variant-numeric: tabular-nums;
}

.table.dense {
  min-width: 100%;
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(18, 49, 56, 0.08);
  vertical-align: top;
  text-align: left;
  min-width: 0;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #111111;
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(252, 246, 238, 0.98), rgba(244, 235, 221, 0.98));
  box-shadow: inset 0 -1px 0 rgba(18, 49, 56, 0.08);
}

.table td {
  font-size: var(--text-table);
  line-height: 1.5;
  color: #111111;
  text-wrap: pretty;
  white-space: normal;
}

.table td a:not(.button),
.table td .row-detail-link,
.table th .table-sort-button,
.table th .table-sort-label {
  color: #111111 !important;
}

.table-inline-select-form {
  margin: 0;
}

.table-inline-select {
  min-width: 104px;
  padding: 8px 28px 8px 10px;
  border: 1px solid rgba(18, 49, 56, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
}

.table-inline-select:focus {
  outline: none;
  border-color: rgba(18, 49, 56, 0.26);
}

.mobile-fuel-shell {
  display: grid;
  gap: 18px;
}

.driver-form-only-page-shell {
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.driver-form-only-sidebar {
  display: none;
}

.driver-form-only-layout .global-hero {
  display: none;
}

.driver-form-only-main-panel {
  padding: 18px 14px 24px;
}

.driver-form-only-main-panel .main-panel-inner {
  width: min(100%, 680px);
  margin: 0 auto;
}

.mobile-driver-form-only-shell {
  gap: 14px;
}

.mobile-history-list {
  display: grid;
  gap: 12px;
}

.mobile-history-card {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 239, 228, 0.95));
  border: 1px solid rgba(18, 49, 56, 0.1);
  box-shadow: 0 12px 28px rgba(12, 29, 35, 0.08);
}

.mobile-history-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-history-card-head strong {
  color: #173038;
  font-size: 15px;
}

.mobile-history-card-head span {
  color: #6b7a80;
  font-size: 12px;
}

.mobile-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-history-grid div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(18, 49, 56, 0.04);
}

.mobile-history-grid span {
  color: #7a6761;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-history-grid strong {
  color: #13262f;
  font-size: 14px;
  line-height: 1.35;
}

.mobile-history-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(18, 49, 56, 0.08);
}

.mobile-history-meta {
  color: #7a6761;
  font-size: 12px;
}

.mobile-history-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-delete-form {
  margin: 0;
}

.inline-delete-form .button {
  min-height: 34px;
  padding: 8px 14px;
}

.mobile-jump-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.mobile-jump-row .button {
  width: 100%;
  min-height: 42px;
}

.mobile-fuel-panel .panel-body {
  padding-top: 8px;
}

.mobile-fuel-form {
  gap: 14px;
}

.mobile-fuel-form input,
.mobile-fuel-form select {
  min-height: 52px;
  font-size: 1rem;
}

.mobile-fuel-submit .button {
  width: 100%;
  min-height: 50px;
}

.table tbody tr {
  transition: background 0.18s ease;
}

.table tbody tr:hover {
  background: rgba(199, 163, 91, 0.08);
}

.row-detail-link {
  display: block;
  margin: -12px -14px;
  padding: 12px 14px;
  color: inherit;
}

.row-detail-link:hover {
  color: var(--accent-deep);
}

.table tr:last-child td {
  border-bottom: 0;
}

.table-form {
  display: grid;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.table-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.table-action-link {
  width: 100%;
  justify-content: center;
}

.telegram-form {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  gap: 0;
}

.telegram-mini-button {
  min-height: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  min-width: 34px;
  font-size: 0;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  box-shadow: 0 4px 8px rgba(18, 49, 56, 0.05);
  overflow: hidden;
  flex: 0 0 34px;
}

.telegram-mini-button svg {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 16px;
}

.jobs-grid-table th:last-child,
.jobs-grid-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.jobs-grid-table td:last-child .telegram-form .button {
  width: auto;
  max-width: fit-content;
}

.nowrap-cell {
  display: inline-block;
  white-space: nowrap;
}

.jobs-grid-table .table {
  width: 100%;
  min-width: 1180px;
  table-layout: fixed;
}

.expense-payables-grid-table .table {
  width: 100%;
  min-width: 1780px;
  table-layout: fixed;
}

.expense-payables-grid-table td,
.expense-payables-grid-table th {
  font-size: 12px;
  padding: 10px 8px;
  line-height: 1.35;
}

.expense-payables-grid-table th:nth-child(1),
.expense-payables-grid-table td:nth-child(1) {
  width: 90px;
  min-width: 90px;
}

.expense-payables-grid-table th:nth-child(2),
.expense-payables-grid-table td:nth-child(2) {
  width: 90px;
  min-width: 90px;
}

.expense-payables-grid-table th:nth-child(3),
.expense-payables-grid-table td:nth-child(3) {
  width: 110px;
  min-width: 110px;
}

.expense-payables-grid-table th:nth-child(4),
.expense-payables-grid-table td:nth-child(4) {
  width: 210px;
  min-width: 210px;
}

.expense-payables-grid-table th:nth-child(5),
.expense-payables-grid-table td:nth-child(5) {
  width: 760px;
  min-width: 760px;
}

.expense-payables-grid-table th:nth-child(6),
.expense-payables-grid-table td:nth-child(6) {
  width: 110px;
  min-width: 110px;
}

.expense-payables-grid-table th:nth-child(7),
.expense-payables-grid-table td:nth-child(7),
.expense-payables-grid-table th:nth-child(9),
.expense-payables-grid-table td:nth-child(9),
.expense-payables-grid-table th:nth-child(10),
.expense-payables-grid-table td:nth-child(10) {
  width: 110px;
  min-width: 110px;
}

.expense-payables-grid-table th:nth-child(8),
.expense-payables-grid-table td:nth-child(8) {
  width: 120px;
  min-width: 120px;
}

.expense-payables-grid-table th:nth-child(11),
.expense-payables-grid-table td:nth-child(11) {
  width: 92px;
  min-width: 92px;
  white-space: nowrap;
}

.expense-payables-grid-table td:nth-child(4) .row-detail-link,
.expense-payables-grid-table td:nth-child(5) .row-detail-link {
  white-space: normal;
  word-break: break-word;
}

.sort-link {
  display: inline-block;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}

.sort-link:hover,
.sort-link.active {
  color: var(--accent-deep);
}

.jobs-grid-table td {
  font-size: 11px;
  padding: 8px 5px;
  line-height: 1.4;
}

.jobs-grid-table th {
  padding: 8px 5px;
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  word-break: keep-all;
}

.jobs-grid-table th:nth-child(1),
.jobs-grid-table td:nth-child(1) {
  min-width: 54px;
}

.jobs-grid-table th:nth-child(3),
.jobs-grid-table td:nth-child(3) {
  min-width: 46px;
}

.jobs-grid-table th:nth-child(4),
.jobs-grid-table td:nth-child(4) {
  min-width: 72px;
  max-width: 76px;
}

.jobs-grid-table th:nth-child(5),
.jobs-grid-table td:nth-child(5) {
  width: 88px;
  min-width: 88px;
  max-width: 88px;
}

.jobs-grid-table th:nth-child(6),
.jobs-grid-table td:nth-child(6) {
  min-width: 38px;
}

.jobs-grid-table th:nth-child(7),
.jobs-grid-table td:nth-child(7) {
  min-width: 56px;
}

.jobs-grid-table th:nth-child(8),
.jobs-grid-table td:nth-child(8) {
  min-width: 72px;
}

.jobs-grid-table th:nth-child(9),
.jobs-grid-table td:nth-child(9) {
  min-width: 52px;
}

.jobs-grid-table th:nth-child(10),
.jobs-grid-table td:nth-child(10) {
  min-width: 38px;
}

.jobs-grid-table th:nth-child(11),
.jobs-grid-table td:nth-child(11) {
  min-width: 74px;
  max-width: 78px;
}

.jobs-grid-table th:nth-child(12),
.jobs-grid-table td:nth-child(12) {
  min-width: 52px;
  text-align: center;
}

.jobs-grid-table th:nth-child(13),
.jobs-grid-table td:nth-child(13) {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  text-align: center;
  white-space: nowrap;
}

.jobs-grid-table th:nth-child(14),
.jobs-grid-table td:nth-child(14) {
  min-width: 54px;
  max-width: 56px;
}

.jobs-grid-table th:nth-child(15),
.jobs-grid-table td:nth-child(15) {
  width: 1%;
  min-width: 0;
  max-width: none;
  text-align: center;
}

.jobs-grid-table td:nth-child(3),
.jobs-grid-table td:nth-child(4),
.jobs-grid-table td:nth-child(5),
.jobs-grid-table td:nth-child(11),
.jobs-grid-table td:nth-child(14) {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.jobs-grid-table td:nth-child(5) {
  hyphens: auto;
}

.jobs-grid-table th:nth-child(1),
.jobs-grid-table td:nth-child(1),
.jobs-grid-table th:nth-child(2),
.jobs-grid-table td:nth-child(2),
.jobs-grid-table th:nth-child(8),
.jobs-grid-table td:nth-child(8),
.jobs-grid-table th:nth-child(9),
.jobs-grid-table td:nth-child(9),
.jobs-grid-table th:nth-child(10),
.jobs-grid-table td:nth-child(10),
.jobs-grid-table th:nth-child(13),
.jobs-grid-table td:nth-child(13),
.jobs-grid-table th:nth-child(12),
.jobs-grid-table td:nth-child(12) {
  white-space: nowrap;
}

.jobs-warning-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid rgba(166, 103, 20, 0.22);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.jobs-warning-indicator:hover {
  background: rgba(247, 181, 55, 0.24);
  border-color: rgba(166, 103, 20, 0.34);
}

.jobs-warning-indicator-button {
  font: inherit;
  cursor: pointer;
}

.jobs-note-popup {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(480px, calc(100vw - 32px));
}

.jobs-note-popup::backdrop {
  background: rgba(16, 28, 39, 0.42);
  backdrop-filter: blur(2px);
}

.jobs-note-popup-card {
  min-width: min(440px, calc(100vw - 32px));
  max-width: min(480px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(18, 49, 56, 0.12);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(248, 242, 231, 0.96));
  box-shadow: 0 28px 60px rgba(18, 49, 56, 0.2);
}

.jobs-note-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.jobs-note-popup-head strong {
  color: var(--accent-deep);
  font-size: 15px;
}

.jobs-note-popup-close {
  padding: 7px 11px;
}

.jobs-note-popup-row + .jobs-note-popup-row {
  margin-top: 12px;
}

.jobs-note-popup-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jobs-note-popup-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.reservation-detail-popup {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1120px, calc(100vw - 20px));
}

.reservation-detail-popup-card {
  min-width: min(1020px, calc(100vw - 20px));
  max-width: min(1120px, calc(100vw - 20px));
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(18, 49, 56, 0.12);
  background:
    radial-gradient(circle at top right, rgba(191, 153, 94, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.985), rgba(247, 241, 230, 0.97));
  box-shadow: 0 34px 80px rgba(18, 49, 56, 0.24);
}

.reservation-detail-popup-head {
  margin: 0;
  padding: 24px 26px 18px;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(250, 243, 231, 0.95), rgba(250, 243, 231, 0.64));
  border-bottom: 1px solid rgba(18, 49, 56, 0.08);
}

.reservation-detail-popup-title {
  display: grid;
  gap: 4px;
}

.reservation-detail-kicker {
  color: #b6812e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.reservation-detail-popup-title strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1.04;
}

.reservation-detail-popup-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reservation-detail-popup-subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.reservation-detail-hero {
  padding: 18px 26px 8px;
}

.reservation-detail-hero-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.reservation-detail-hero-route {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
}

.reservation-detail-hero-price {
  display: grid;
  justify-items: end;
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.reservation-detail-hero-price small {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.reservation-detail-hero-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.reservation-hero-badge {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(18, 49, 56, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.reservation-hero-badge span {
  display: block;
  margin-bottom: 6px;
  color: #8a6a39;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reservation-hero-badge strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.reservation-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px 26px 26px;
}

.reservation-detail-section {
  padding: 16px 16px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(18, 49, 56, 0.08);
  box-shadow: 0 10px 24px rgba(18, 49, 56, 0.05);
}

.reservation-detail-section--full {
  grid-column: 1 / -1;
}

.reservation-detail-section h4 {
  margin: 0 0 12px;
  color: #8b5d18;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reservation-detail-row + .reservation-detail-row {
  margin-top: 12px;
}

.reservation-detail-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reservation-detail-row p {
  margin: 0;
  color: #2a4248;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.reservation-participant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.reservation-participant-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248, 242, 231, 0.92), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(18, 49, 56, 0.08);
  color: #4e666d;
  font-size: 13px;
}

.reservation-participant-card strong {
  color: var(--ink);
  font-size: 15px;
}

.reservation-participant-empty {
  color: var(--ink-soft);
  font-size: 14px;
  padding: 8px 0;
}

.reservation-inline-actions {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .reservation-detail-popup-card {
    min-width: min(100vw - 16px, 100%);
  }

  .reservation-detail-popup-head,
  .reservation-detail-hero,
  .reservation-detail-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .reservation-detail-popup-head {
    padding-top: 18px;
  }

  .reservation-detail-popup-title strong {
    font-size: 24px;
  }

  .reservation-detail-hero-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .reservation-detail-hero-price {
    justify-items: start;
  }

  .reservation-detail-hero-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reservation-detail-grid {
    grid-template-columns: 1fr;
  }
}

.jobs-driver-cell {
  display: block;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.jobs-assignment-badge {
  justify-content: center;
  min-width: 46px;
  padding: 4px 7px;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.jobs-grid-table .table-action-link,
.jobs-grid-table .table-form .button {
  min-width: 0;
  padding: 9px 12px;
  font-size: 12px;
  border-radius: 13px;
  line-height: 1.1;
  font-weight: 700;
}

.jobs-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.jobs-row-actions .table-form {
  margin: 0;
}

.jobs-inline-assign-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}

.jobs-inline-assign-form select {
  min-width: 180px;
  max-width: 220px;
}

.jobs-inline-assign-form .table-form-actions {
  margin: 0;
}

.jobs-inline-assign-form .compact-help {
  display: none;
}

.jobs-row-actions .table-action-link,
.jobs-row-actions .table-form .button,
.jobs-row-actions .whatsapp-action-button {
  min-width: 0;
  min-height: 56px;
  height: 56px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1;
}

.jobs-row-actions .whatsapp-action-button {
  flex: 0 0 56px;
  min-height: 56px;
  height: 56px;
  min-width: 56px;
  width: 56px;
  max-width: 56px;
  padding: 0;
  border-radius: 18px;
  align-self: center;
}

.jobs-row-actions .whatsapp-button-icon {
  width: 22px;
  height: 22px;
}

.jobs-row-actions .whatsapp-action-button::before,
.jobs-row-actions .whatsapp-button-inner::before {
  display: none;
}

.jobs-row-actions .whatsapp-action-button,
.jobs-row-actions .whatsapp-action-button:hover,
.jobs-row-actions .whatsapp-action-button:focus-visible {
  color: #ffffff !important;
  background: linear-gradient(180deg, #27c46b 0%, #179a4f 100%) !important;
  border: 1px solid rgba(20, 104, 56, 0.28) !important;
  box-shadow:
    0 12px 24px rgba(23, 154, 79, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.jobs-row-actions .whatsapp-button-icon {
  color: #ffffff;
  filter: none;
}

.jobs-row-actions .jobs-mini-action {
  min-width: 78px;
  justify-content: center;
}

.jobs-row-actions .jobs-mini-action-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.jobs-row-actions .jobs-mini-action-whatsapp .whatsapp-button-inner {
  width: auto;
  height: auto;
}

.jobs-row-actions .jobs-mini-action-whatsapp .whatsapp-button-icon {
  width: 18px;
  height: 18px;
}

.jobs-row-actions .jobs-mini-action-whatsapp .jobs-mini-action-text {
  line-height: 1;
  white-space: nowrap;
}

.jobs-row-actions .jobs-delete-action {
  min-width: 64px;
}

@media (max-width: 900px) {
  .jobs-row-actions {
    gap: 10px;
  }

  .jobs-row-actions .table-action-link,
  .jobs-row-actions .table-form .button,
  .jobs-row-actions .whatsapp-action-button {
    min-height: 58px;
    height: 58px;
    padding: 12px 18px;
    font-size: 16px;
  }

  .jobs-row-actions .whatsapp-action-button {
    flex-basis: 58px;
    min-height: 58px;
    height: 58px;
    min-width: 58px;
    width: 58px;
    max-width: 58px;
    padding: 0;
  }

  .jobs-row-actions .whatsapp-button-icon {
    width: 23px;
    height: 23px;
  }

  .jobs-row-actions .jobs-mini-action {
    min-width: 84px;
  }

  .jobs-row-actions .jobs-delete-action {
    min-width: 68px;
  }
}

.reconciliation-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.reconciliation-inline-form {
  display: inline-flex;
  margin: 0;
}

.compact-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.vehicle-action-panel {
  margin-bottom: 16px;
}

.vehicle-action-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(360px, 1.05fr);
  gap: 14px;
  align-items: start;
}

.vehicle-action-copy h2 {
  margin: 0;
  font-size: 1.28rem;
}

.vehicle-action-copy .compact-meta {
  margin-top: 6px;
}

.vehicle-action-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.vehicle-action-controls {
  display: grid;
  gap: 10px;
}

.vehicle-inline-form {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(18, 49, 56, 0.08);
}

.vehicle-inline-form label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(19, 41, 48, 0.76);
}

.vehicle-inline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.vehicle-export-box .readonly-field {
  min-height: 44px;
  display: flex;
  align-items: center;
}

@media (max-width: 900px) {
  .vehicle-action-shell,
  .vehicle-inline-row {
    grid-template-columns: 1fr;
  }
}

.login-panel {
  max-width: 560px;
  margin: 56px auto;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(249, 241, 228, 0.94)),
    linear-gradient(135deg, rgba(199, 163, 91, 0.08), transparent 54%);
}

.login-form {
  display: grid;
  gap: 12px;
}

.public-access-links {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.public-access-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(196, 161, 100, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 238, 225, 0.94)),
    linear-gradient(180deg, rgba(196, 161, 100, 0.07), transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 14px 28px rgba(10, 20, 25, 0.08);
}

.public-access-card strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 15px;
}

.portal-selector-grid {
  align-items: stretch;
}

.portal-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.portal-card {
  height: 100%;
  min-height: 228px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(141, 103, 50, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 235, 222, 0.95)),
    radial-gradient(circle at top right, rgba(199, 163, 91, 0.12), transparent 44%);
  box-shadow:
    0 20px 46px rgba(12, 29, 35, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.portal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 137, 62, 0.28);
  box-shadow:
    0 28px 60px rgba(12, 29, 35, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.portal-card h3 {
  margin: 6px 0 10px;
  font-size: clamp(1.7rem, 2vw, 2.2rem);
}

.portal-card p:last-of-type {
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.portal-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff9ef;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #be9752, #8f6731);
  box-shadow: 0 12px 24px rgba(141, 103, 50, 0.18);
}

.public-access-url {
  display: inline-block;
  margin-top: 8px;
  color: #6f4d24;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  word-break: break-all;
}

.public-access-url:hover {
  color: #4f3514;
  text-decoration: underline;
}

.login-panel .panel-head h2 {
  color: #173039;
}

.login-panel .field-help {
  color: rgba(31, 48, 55, 0.76);
}

.user-panel .compact-meta {
  margin: 0 0 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.detail-item {
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(18, 49, 56, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(246, 239, 228, 0.82));
}

.detail-item span {
  display: block;
  color: var(--ink-soft);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-item strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.ops-alert-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

#ops-alert-toggle[data-active="1"] {
  background: linear-gradient(180deg, rgba(31, 122, 91, 0.92), rgba(25, 92, 70, 0.96));
  color: #f4fbf8;
  border-color: rgba(31, 122, 91, 0.36);
}

.ops-alert-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid rgba(18, 49, 56, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 239, 228, 0.78));
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.ops-alert-status[data-tone="positive"] {
  color: var(--positive);
  border-color: rgba(31, 122, 91, 0.22);
  background: linear-gradient(180deg, rgba(31, 122, 91, 0.08), rgba(255, 255, 255, 0.92));
}

.ops-alert-status[data-tone="warning"] {
  color: var(--warning);
  border-color: rgba(180, 108, 47, 0.24);
  background: linear-gradient(180deg, rgba(180, 108, 47, 0.08), rgba(255, 255, 255, 0.92));
}

.dispatch-live-card {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(199, 163, 91, 0.2);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(246, 239, 228, 0.92));
  box-shadow: var(--shadow-sm);
}

.dispatch-live-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.dispatch-live-head h3 {
  margin: 4px 0 0;
  font-size: 20px;
  color: var(--ink);
}

.dispatch-live-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dispatch-live-body {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.dispatch-live-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.dispatch-live-note {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.ops-alert-stack {
  position: fixed;
  top: 26px;
  right: 28px;
  z-index: 50;
  display: grid;
  gap: 12px;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100vh - 52px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 4px 18px 2px;
}

.ops-alert-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(199, 163, 91, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(248, 238, 222, 0.96)),
    linear-gradient(135deg, rgba(199, 163, 91, 0.16), transparent 58%);
  box-shadow: 0 22px 44px rgba(5, 17, 24, 0.2);
}

.ops-alert-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ops-alert-card strong {
  color: var(--accent-deep);
  font-size: 14px;
}

.ops-alert-card p {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.ops-alert-card-note {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(180, 108, 47, 0.18);
  background: rgba(180, 108, 47, 0.08);
  color: var(--warning);
  font-size: 12px;
  font-weight: 700;
}

.ops-alert-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.ops-alert-card-started {
  border-color: rgba(62, 124, 200, 0.35);
  background:
    linear-gradient(180deg, rgba(245, 250, 255, 0.98), rgba(229, 239, 252, 0.96)),
    linear-gradient(135deg, rgba(62, 124, 200, 0.15), transparent 58%);
}

.ops-alert-card-started strong {
  color: #123f6c;
}

.ops-alert-group summary {
  cursor: pointer;
  font-weight: 800;
  margin: 0.35rem 0;
}

.ops-alert-group-row {
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  padding: 0.55rem 0;
}

.ops-alert-group-row:last-child {
  padding-bottom: 0;
}

.ops-dispatch-issue-card {
  border-width: 2px;
  border-color: rgba(208, 139, 34, 0.52);
  background:
    linear-gradient(180deg, rgba(255, 253, 245, 0.99), rgba(255, 245, 214, 0.97)),
    linear-gradient(135deg, rgba(237, 174, 54, 0.2), transparent 58%);
}

.ops-dispatch-issue-card.is-critical {
  border-color: rgba(190, 42, 42, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 250, 250, 0.99), rgba(255, 226, 226, 0.98)),
    linear-gradient(135deg, rgba(196, 48, 48, 0.18), transparent 58%);
  box-shadow: 0 22px 48px rgba(139, 28, 28, 0.28);
}

.ops-alert-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ops-alert-symbol {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3b52f;
  color: #261900;
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 0 0 4px rgba(243, 181, 47, 0.18);
}

.ops-dispatch-issue-card.is-critical .ops-alert-symbol {
  background: #c82d2d;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(200, 45, 45, 0.16);
}

.ops-issue-stack {
  position: fixed;
  top: 26px;
  right: 28px;
  z-index: 49;
  width: min(360px, calc(100vw - 24px));
  display: grid;
  gap: 12px;
  pointer-events: none;
}

.ops-issue-stack .ops-alert-card {
  border-color: rgba(181, 66, 66, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 252, 250, 0.97), rgba(255, 244, 244, 0.95));
  box-shadow: 0 18px 40px rgba(124, 39, 39, 0.18);
}

.ops-issue-stack .ops-alert-card strong {
  color: #7a1f1f;
}

.ops-alert-stack + .ops-issue-stack,
.ops-issue-stack + .ops-alert-stack {
  margin-top: 0;
}

@media (min-width: 768px) {
  .ops-alert-stack + .ops-issue-stack,
  .ops-issue-stack {
    top: 138px;
  }
}

.ops-alert-dismiss {
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 49, 56, 0.08);
  color: var(--ink-soft);
  font: inherit;
  cursor: pointer;
}

.ops-alert-dismiss:hover {
  background: rgba(18, 49, 56, 0.14);
  color: var(--ink);
}

.mini-breakdown {
  display: grid;
  gap: 8px;
}

.mini-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid rgba(18, 49, 56, 0.08);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 239, 228, 0.78));
}

.mini-breakdown-label,
.mini-breakdown-text {
  min-width: 0;
}

.mini-breakdown-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-table);
}

.mini-count {
  font-size: 16px;
  line-height: 1;
  color: var(--accent-deep);
}

.sidebar-stack .mini-breakdown-row {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 8px;
  border-radius: 11px;
}

.sidebar-stack .mini-breakdown-text,
.sidebar-stack .mini-count {
  color: var(--ink-on-dark);
}

.sidebar-stack .mini-breakdown {
  gap: 6px;
}

.sidebar-stack .mini-count {
  font-size: 13px;
}

.sidebar-stack .badge {
  color: #fff8e8;
  background: rgba(199, 163, 91, 0.24);
  border: 1px solid rgba(242, 208, 138, 0.24);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.26);
}

.sidebar-stack .badge.info,
.sidebar-stack .badge.neutral,
.sidebar-stack .badge.positive,
.sidebar-stack .badge.warning {
  color: #fff8e8;
}

.sidebar .button.ghost {
  color: #ffd7cc;
  border-color: rgba(255, 215, 204, 0.18);
}

.dashboard-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge.neutral,
.badge.info {
  background: var(--ocean-soft);
  color: #175d66;
}

.badge.positive {
  background: var(--positive-soft);
  color: var(--positive);
}

.badge.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge.danger {
  background: rgba(143, 75, 66, 0.14);
  color: var(--danger);
}

.empty-state {
  padding: 44px 24px;
  text-align: center;
  color: var(--ink-soft);
}

@keyframes page-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1440px) {
  .page-shell {
    grid-template-columns: 276px minmax(0, 1fr);
  }

  .global-hero {
    grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.1fr);
  }
}

@media (min-width: 1600px) {
  .page-shell {
    grid-template-columns: 288px minmax(0, 1fr);
  }

  .main-panel-inner {
    width: min(100%, 1720px);
    max-width: 1720px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1320px) {
  .fleet-side-layout {
    grid-template-columns: 1fr;
  }

  .fleet-side-rail {
    position: static;
  }
}

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: 268px minmax(0, 1fr);
  }
}

@media (max-width: 1080px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .content-grid,
  .dashboard-strip {
    grid-template-columns: 1fr;
  }

  .button-row {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .page-login .page-shell {
    grid-template-columns: 1fr;
  }

  .page-login .sidebar {
    display: none;
  }

  .page-login .main-panel {
    padding-top: 20px;
  }

  .page-login .source-truth-panel {
    margin-bottom: 18px;
  }

  .source-truth-grid,
  .source-truth-grid.compact {
    grid-template-columns: 1fr;
  }

  .source-truth-meta {
    flex-direction: column;
    gap: 8px;
  }

  .mobile-app-layout .global-hero {
    display: none;
  }

  .driver-form-only-layout .global-hero {
    display: none;
  }

  .mobile-app-page-shell {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }

  .driver-form-only-page-shell {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }

  .mobile-app-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  }

  .driver-form-only-sidebar {
    display: none;
  }

  .mobile-app-sidebar .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 20px;
  }

  .mobile-app-sidebar .brand-mark {
    width: 36px;
    height: 36px;
    margin: 0;
    font-size: 12px;
  }

  .mobile-app-sidebar .brand .eyebrow {
    display: none;
  }

  .mobile-app-sidebar .brand h1 {
    font-size: 18px;
  }

  .mobile-app-sidebar .nav {
    margin-top: 10px;
  }

  .mobile-app-sidebar .nav-link {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .mobile-app-sidebar .sidebar-stack {
    margin-top: 10px;
    gap: 10px;
  }

  .mobile-app-sidebar .sidebar-stack .panel {
    border-radius: 16px;
  }

  .mobile-app-main-panel {
    padding: 12px 12px 24px;
  }

  .driver-form-only-main-panel {
    padding: 12px 12px 24px;
  }

  .mobile-app-main-panel .main-panel-inner {
    width: 100%;
  }

  .driver-form-only-main-panel .main-panel-inner {
    width: 100%;
    max-width: 640px;
  }

  .mobile-fuel-hero {
    margin-bottom: 14px;
    padding: 4px 2px 0;
  }

  .mobile-fuel-hero h2 {
    font-size: 24px;
    line-height: 1.08;
  }

  .mobile-fuel-hero p {
    font-size: 13px;
  }

  .mobile-jump-row {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: 0 0 12px;
    padding: 8px 0 10px;
    background: linear-gradient(180deg, rgba(7, 19, 26, 0.94), rgba(7, 19, 26, 0.68), transparent);
  }

  .mobile-jump-row .button {
    min-height: 44px;
    font-size: 12px;
  }

  .mobile-stack-form {
    grid-template-columns: 1fr;
  }

  .mobile-stack-form .form-span-2 {
    grid-column: auto;
  }

  .mobile-fuel-panel,
  .mobile-app-layout .panel {
    border-radius: 20px;
  }

  .mobile-fuel-panel .panel-head,
  .mobile-app-layout .panel-head {
    gap: 10px;
  }

  .mobile-fuel-panel .panel-head h2,
  .mobile-app-layout .panel-head h2 {
    font-size: 22px;
  }

  .mobile-fuel-form {
    gap: 12px;
  }

  .mobile-fuel-form input,
  .mobile-fuel-form select,
  .mobile-fuel-form .readonly-field {
    min-height: 54px;
    font-size: 16px;
    border-radius: 14px;
  }

  .mobile-fuel-submit .button {
    min-height: 54px;
    font-size: 14px;
  }

  .mobile-history-grid {
    grid-template-columns: 1fr;
  }

  .main-panel,
  .sidebar {
    padding: 18px;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .global-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .global-hero-app,
  .hero-family-title {
    justify-self: start;
    text-align: left;
  }

  .hero h2 {
    font-size: 30px;
  }

  .card-form.two-col {
    grid-template-columns: 1fr;
  }

  .form-span-2 {
    grid-column: auto;
  }

  .region-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .compact-upload-shell,
  .compact-upload-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline-scroll {
    height: 62vh;
    max-height: 62vh;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Ultra premium polish layer */
body {
  background:
    radial-gradient(circle at 9% 8%, rgba(223, 192, 132, 0.14), transparent 18%),
    radial-gradient(circle at 80% 0%, rgba(91, 143, 149, 0.14), transparent 24%),
    radial-gradient(circle at 58% 54%, rgba(255, 255, 255, 0.05), transparent 18%),
    linear-gradient(145deg, #03080c 0%, #07141c 28%, #12252d 54%, #d8cab6 100%);
}

.scene-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.07) 45%, transparent 58%),
    radial-gradient(circle at 50% 100%, rgba(199, 163, 91, 0.12), transparent 34%);
  opacity: 0.85;
  animation: luxury-sweep 9s ease-in-out infinite alternate;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(3, 11, 16, 0.97), rgba(8, 22, 29, 0.93)),
    radial-gradient(circle at top, rgba(185, 150, 88, 0.12), transparent 32%);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.06),
    24px 0 76px rgba(0, 0, 0, 0.24);
}

.brand {
  border-color: rgba(224, 193, 134, 0.16);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.brand-mark {
  box-shadow:
    0 18px 34px rgba(82, 6, 12, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -8px 16px rgba(72, 0, 6, 0.22);
}

.global-hero {
  position: relative;
  overflow: hidden;
  border-color: rgba(224, 193, 134, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018)),
    radial-gradient(circle at 8% 0%, rgba(224, 193, 134, 0.15), transparent 30%),
    linear-gradient(90deg, rgba(5, 15, 21, 0.78), rgba(11, 31, 39, 0.56));
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.global-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -44% auto;
  width: 420px;
  height: 180px;
  transform: rotate(-12deg);
  background: radial-gradient(circle, rgba(242, 208, 138, 0.2), transparent 68%);
  pointer-events: none;
}

.global-hero-brand-mark {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  margin: 0;
  border-radius: 20px;
  font-size: 22px;
  letter-spacing: 0.18em;
}

.global-hero-app-rest {
  margin: 0;
  color: #fbf4ea;
  font-family: var(--font-heading);
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 0 rgba(92, 13, 20, 0.44),
    0 10px 24px rgba(0, 0, 0, 0.32);
}

.hero-family-title {
  color: #e8c98c;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.34));
  text-shadow:
    0 2px 0 rgba(83, 56, 18, 0.62),
    0 0 16px rgba(224, 193, 134, 0.2);
}

.stat-card,
.panel {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 34px 84px rgba(2, 10, 16, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.panel {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(243, 234, 220, 0.92)),
    radial-gradient(circle at top left, rgba(185, 150, 88, 0.08), transparent 28%);
}

.panel-head {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(199, 163, 91, 0.07), transparent);
}

.stat-card {
  transform: translateZ(0);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.stat-card:hover,
.panel:hover {
  border-color: rgba(242, 208, 138, 0.28);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 38px 90px rgba(2, 10, 16, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.nav-link {
  border-color: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.nav-link.active {
  background:
    linear-gradient(135deg, rgba(242, 208, 138, 0.2), rgba(255, 255, 255, 0.07)),
    radial-gradient(circle at left, rgba(107, 184, 190, 0.12), transparent 58%);
}

.button.primary {
  background:
    linear-gradient(135deg, #e8cd98 0%, #b88a47 42%, #6b4a26 100%);
  box-shadow:
    0 18px 34px rgba(107, 74, 38, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.button.secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 232, 218, 0.96));
}

.table-wrap {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 18px 44px rgba(18, 49, 56, 0.08);
}

.table th {
  color: #314951;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(233, 220, 199, 0.98));
}

.table tbody tr:hover {
  background: linear-gradient(90deg, rgba(199, 163, 91, 0.13), rgba(107, 184, 190, 0.07));
}

.sidebar-stack .panel {
  border-color: rgba(242, 208, 138, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at top left, rgba(199, 163, 91, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(12, 35, 43, 0.94), rgba(7, 20, 27, 0.9));
}

.sidebar-stack .mini-breakdown-row {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.12);
}

.detail-item {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.scene-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 62% 72%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px);
  background-size: 180px 180px, 220px 220px, 240px 240px;
  opacity: 0.28;
  mix-blend-mode: screen;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(242, 208, 138, 0.05), rgba(242, 208, 138, 0.3), rgba(255, 255, 255, 0.05));
  pointer-events: none;
}

.brand,
.global-hero,
.panel,
.stat-card,
.table-wrap,
.detail-item,
.compact-card-form,
.flash {
  position: relative;
}

.brand::before,
.panel::after,
.stat-card::after,
.detail-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.14) 28%, transparent 44%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.brand:hover::before,
.panel:hover::after,
.stat-card:hover::after,
.detail-item:hover::after {
  opacity: 1;
}

.brand {
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand-mark {
  box-shadow:
    0 16px 28px rgba(41, 4, 8, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -8px 16px rgba(72, 0, 6, 0.2);
}

.nav-link {
  backdrop-filter: blur(10px);
}

.nav-link-label {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.brand h1,
.brand .eyebrow {
  color: #ffffff;
}

.main-panel-inner {
  display: grid;
  gap: 22px;
}

.calendar-main {
  display: grid;
  gap: 20px;
}

.calendar-grid-wrap {
  display: grid;
  gap: 10px;
  overflow: auto;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  min-width: 840px;
}

.calendar-grid-header {
  gap: 8px;
}

.calendar-weekday {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(18, 49, 56, 0.08);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 130px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(18, 49, 56, 0.1);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(244, 236, 223, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.calendar-day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.calendar-day.is-active {
  color: inherit;
  text-decoration: none;
  border-color: rgba(199, 163, 91, 0.32);
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.99), rgba(246, 235, 215, 0.94));
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.calendar-day.is-active:hover {
  transform: translateY(-2px);
  border-color: rgba(199, 163, 91, 0.48);
  box-shadow:
    0 20px 38px rgba(18, 49, 56, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.calendar-day.vehicle-doc-day {
  border-color: rgba(37, 112, 85, 0.2);
  background: linear-gradient(180deg, rgba(248, 253, 251, 0.98), rgba(233, 244, 238, 0.94));
}

.calendar-day.is-empty {
  min-height: 130px;
  border-style: dashed;
  border-color: rgba(18, 49, 56, 0.08);
  background: rgba(255, 255, 255, 0.18);
}

.calendar-day-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.calendar-day-total {
  font-size: 18px;
  color: var(--ink);
}

.audit-values summary {
  cursor: pointer;
  color: var(--accent-deep);
  font-weight: 700;
}

.audit-values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 10px;
  width: min(760px, 72vw);
  margin-top: 10px;
}

.audit-values-grid > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.audit-values-grid pre {
  max-height: 260px;
  overflow: auto;
  margin: 6px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  font: 12px/1.45 Consolas, monospace;
}

@media (max-width: 760px) {
  .audit-values-grid {
    grid-template-columns: 1fr;
    width: min(520px, 76vw);
  }
}

.calendar-day-meta-list {
  display: flex;
  align-items: center;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.calendar-day-meta-list .calendar-day-meta {
  padding: 3px 5px;
  font-size: 11px;
}

.calendar-day-parking-compact {
  max-width: 100%;
  line-height: 1.35;
  white-space: normal;
}

.calendar-day-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(28, 126, 214, 0.1);
  color: #255c93;
  font-size: 12px;
  font-weight: 700;
}

.calendar-day-meta.warning {
  background: rgba(198, 132, 28, 0.14);
  color: #8b5f13;
}

.calendar-day-meta.note {
  background: rgba(18, 49, 56, 0.08);
  color: #23414a;
}

.calendar-day-muted {
  color: var(--muted);
  font-size: 13px;
}

.calendar-day-note {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: help;
}

.calendar-day-note-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(199, 163, 91, 0.18);
  border: 1px solid rgba(199, 163, 91, 0.36);
  color: #8b5f13;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.calendar-day-note-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: min(228px, calc(100vw - 48px));
  max-height: min(220px, calc(100vh - 180px));
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(18, 49, 56, 0.97);
  color: #f5efe3;
  box-shadow: 0 18px 34px rgba(7, 23, 28, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.calendar-day-note:hover .calendar-day-note-tooltip,
.calendar-day-note:focus-within .calendar-day-note-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.calendar-day-note-tooltip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e7c989;
}

.calendar-day-note-tooltip ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.calendar-day-note-tooltip li {
  position: relative;
  padding-left: 12px;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
}

.calendar-day-note-tooltip li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(231, 201, 137, 0.9);
}

.calendar-day-note-more {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(245, 239, 227, 0.72);
}

.global-hero {
  min-height: 164px;
  align-items: center;
}

.global-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at 78% 26%, rgba(107, 184, 190, 0.14), transparent 22%);
  pointer-events: none;
}

.global-hero-app {
  letter-spacing: 0.01em;
}

.hero h2,
.panel h2 {
  text-wrap: balance;
}

.stat-card {
  min-height: 122px;
}

.stat-value {
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accounting-stack-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.top-gap {
  margin-top: 18px;
}

.insight-card,
.table-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(249, 241, 230, 0.82)),
    linear-gradient(135deg, rgba(199, 163, 91, 0.08), transparent 56%);
  box-shadow:
    0 28px 68px rgba(6, 17, 24, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.66);
  padding: 18px;
}

.insight-card::before,
.table-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(13, 92, 99, 0.28), rgba(199, 163, 91, 0.92));
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.card-head h4 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: #132930;
}

.list-stack {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

.list-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(18, 49, 56, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(245, 238, 228, 0.86));
}

.fuel-consumption-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(12, 31, 38, 0.92), rgba(18, 46, 55, 0.86)),
    linear-gradient(135deg, rgba(199, 163, 91, 0.14), transparent 56%);
  color: rgba(255, 249, 239, 0.92);
}

.fuel-consumption-note strong {
  color: #f4d79b;
}

.fuel-consumption-watch strong {
  color: #7b4518;
}

.fuel-consumption-high td {
  background: rgba(180, 108, 47, 0.08);
}

.fuel-km-difference-bad td {
  background: rgba(143, 75, 66, 0.18) !important;
  color: #5f1717;
  font-weight: 700;
}

.fuel-km-difference-bad .badge.danger {
  background: rgba(143, 75, 66, 0.18);
  color: #7c241e;
}

.fuel-consumption-fit {
  overflow-x: hidden;
}

.fuel-consumption-fit .table,
.fuel-consumption-fit .table.dense {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.fuel-consumption-fit th,
.fuel-consumption-fit td {
  padding: 10px 8px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.fuel-consumption-fit .table-sort-button {
  white-space: normal;
  line-height: 1.15;
}

.list-item strong {
  color: #132930;
}

.list-item span,
.list-item small {
  color: #4a5f67;
  font-weight: 600;
}

.tour-reservation-dashboard {
  gap: 20px;
}

.tour-reservation-overview {
  display: grid;
  gap: 18px;
}

.tour-filter-form {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(18, 49, 56, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(245, 238, 228, 0.9));
}

.tour-filter-grid {
  align-items: end;
}

.tour-filter-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.reservation-detail-sections {
  display: grid;
  gap: 16px;
}

.reservation-section-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(18, 49, 56, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 238, 228, 0.94)),
    linear-gradient(135deg, rgba(196, 161, 100, 0.08), transparent 64%);
  box-shadow: 0 10px 24px rgba(8, 28, 36, 0.06);
}

.reservation-section-head {
  display: grid;
  gap: 4px;
}

.reservation-section-head h3 {
  margin: 0;
  color: #132930;
  font-size: 1rem;
}

.reservation-section-head p {
  margin: 0;
  color: #647880;
  font-size: 0.84rem;
  line-height: 1.45;
}

.tour-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.tour-summary-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(18, 49, 56, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 238, 228, 0.96)),
    linear-gradient(135deg, rgba(196, 161, 100, 0.08), transparent 60%);
  box-shadow: 0 14px 30px rgba(6, 20, 28, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}

.tour-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(6, 20, 28, 0.12);
  border-color: rgba(196, 161, 100, 0.35);
}

.tour-summary-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(180deg, #6d8490, #415861);
}

.tour-summary-card--warning .tour-summary-accent {
  background: linear-gradient(180deg, #d49442, #a8692f);
}

.tour-summary-card--success .tour-summary-accent {
  background: linear-gradient(180deg, #4f9271, #2e6b53);
}

.tour-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.tour-summary-title {
  display: block;
  font-size: 1rem;
  color: #132930;
}

.tour-summary-slug {
  margin-top: 4px;
  color: #6d7c83;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tour-summary-revenue {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(17, 38, 46, 0.06);
}

.tour-summary-revenue-label,
.tour-summary-preview-label {
  color: #74858b;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tour-summary-revenue strong {
  color: #132930;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.tour-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tour-summary-stats span,
.tour-summary-meta span {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(17, 38, 46, 0.05);
  color: #40555d;
  font-size: 0.84rem;
}

.tour-summary-stats strong,
.tour-summary-meta strong {
  color: #132930;
  font-size: 0.95rem;
}

.tour-summary-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tour-summary-preview {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(17, 38, 46, 0.92), rgba(28, 56, 67, 0.9)),
    linear-gradient(135deg, rgba(196, 161, 100, 0.16), transparent 58%);
  color: rgba(242, 246, 245, 0.92);
}

.tour-summary-preview strong {
  color: #ffffff;
  font-size: 0.96rem;
}

.tour-summary-preview small {
  color: rgba(225, 234, 232, 0.76);
  font-weight: 500;
}

.tour-seat-plan-page {
  max-width: 1920px;
}

.reservation-page-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(18, 49, 56, 0.1);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(14, 39, 48, 0.05);
}

.reservation-page-switcher p {
  margin: 0 0 3px;
}

.reservation-page-switcher strong {
  color: #173740;
}

.tour-seat-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(18, 49, 56, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.tour-seat-search label {
  display: grid;
  gap: 6px;
  color: #334a53;
  font-weight: 700;
}

.tour-seat-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.tour-departure-list {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 9px;
  max-height: calc(100vh - 130px);
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(18, 49, 56, 0.1);
  border-radius: 20px;
  background: #f4f7f8;
}

.tour-departure-list-head,
.tour-seat-plan-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tour-departure-list-head {
  align-items: center;
  padding: 4px 4px 8px;
  color: #122d36;
}

.tour-departure-list-head span {
  color: #6b7e86;
  font-size: 0.82rem;
}

.tour-departure-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(18, 49, 56, 0.1);
  border-radius: 15px;
  background: #ffffff;
  color: #18343d;
  box-shadow: 0 7px 18px rgba(14, 39, 48, 0.05);
}

.tour-departure-card:hover,
.tour-departure-card.is-selected {
  border-color: rgba(196, 36, 46, 0.5);
  box-shadow: 0 10px 22px rgba(14, 39, 48, 0.1);
}

.tour-departure-card.is-selected {
  background: linear-gradient(135deg, #fff7f2, #ffffff);
  box-shadow: inset 4px 0 0 #c4242e, 0 10px 22px rgba(14, 39, 48, 0.1);
}

.tour-departure-date {
  color: #a6212a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tour-departure-card strong {
  font-size: 0.96rem;
  line-height: 1.3;
}

.tour-departure-card span:not(.tour-departure-date),
.tour-departure-card small {
  color: #61767e;
  font-size: 0.82rem;
}

.tour-seat-detail {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(18, 49, 56, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
}

.tour-seat-plan-header h2,
.tour-seat-plan-header p {
  margin: 0;
}

.tour-seat-plan-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tour-seat-plan-stats > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 49, 56, 0.08);
  border-radius: 14px;
  background: #f5f8f8;
}

.tour-seat-plan-stats span {
  color: #657980;
  font-size: 0.78rem;
  font-weight: 700;
}

.tour-seat-plan-stats strong {
  color: #102d36;
  font-size: 1.25rem;
}

.tour-seat-plan-layout {
  display: grid;
  grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.tour-seat-map-panel,
.tour-passenger-panel {
  min-width: 0;
  border: 1px solid rgba(18, 49, 56, 0.1);
  border-radius: 18px;
  background: #f8faf9;
  overflow: hidden;
}

.tour-seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(18, 49, 56, 0.08);
  background: #ffffff;
}

.tour-seat-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #526870;
  font-size: 0.8rem;
  font-weight: 700;
}

.tour-seat-dot {
  width: 11px;
  height: 11px;
  border-radius: 4px;
}

.tour-seat-dot--available {
  border: 1px solid #a7b8bc;
  background: #ffffff;
}

.tour-seat-dot--occupied {
  background: #176f5b;
}

.tour-seat-dot--collision {
  background: #c4242e;
}

.tour-bus-map {
  display: grid;
  gap: 4px;
  max-width: 370px;
  margin: 14px auto;
  padding: 14px;
  border: 1px solid #d4e1de;
  border-radius: 22px;
  background: #e8f1ef;
}

.tour-bus-front {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 54px;
  padding: 0 2px 8px;
  color: #ffffff;
}

.tour-bus-front strong {
  min-width: 104px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #176f5b;
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.tour-seat-rows {
  display: grid;
  gap: 7px;
  padding: 11px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.tour-seat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 24px minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
}

.tour-seat {
  min-width: 0;
  min-height: 48px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 5px 3px;
  border: 1px solid #b6c3c7;
  border-radius: 9px 9px 6px 6px;
  background: #ffffff;
  color: #28464f;
  text-align: center;
}

.tour-seat strong {
  font-size: 0.82rem;
}

.tour-seat span {
  width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 0.66rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tour-seat--occupied {
  border-color: #176f5b;
  background: #176f5b;
  color: #ffffff;
}

.tour-seat--occupied.tour-seat--kadin {
  border-color: #a44b73;
  background: #a44b73;
}

.tour-seat--occupied.tour-seat--erkek {
  border-color: #27658b;
  background: #27658b;
}

.tour-seat--collision {
  border-color: #a31721;
  background: #c4242e;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(196, 36, 46, 0.16);
}

.tour-seat-door {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px dashed #b8cbc6;
  border-radius: 12px;
  background: #e8f1ef;
  color: #286153;
}

.tour-seat-door strong {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.tour-seat--empty-placeholder {
  visibility: hidden;
}

.tour-special-seats {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-top: 1px dashed #a9b8bc;
  color: #35515a;
  font-size: 0.78rem;
}

.tour-special-seat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.tour-passenger-panel .panel-body {
  overflow-x: auto;
}

@media (max-width: 1180px) {
  .tour-seat-plan-layout {
    grid-template-columns: 1fr;
  }

  .tour-bus-map {
    max-width: 440px;
  }
}

@media (max-width: 850px) {
  .reservation-page-switcher {
    display: grid;
  }

  .tour-seat-search,
  .tour-seat-workspace {
    grid-template-columns: 1fr;
  }

  .tour-departure-list {
    position: static;
    max-height: 420px;
  }

  .tour-seat-plan-header {
    display: grid;
  }

  .tour-seat-plan-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  .tour-seat-search,
  .tour-departure-list,
  .driver-app-toolbar,
  .driver-app-bottom-actions,
  .app-sidebar,
  .mobile-nav-toggle {
    display: none !important;
  }

  .tour-seat-workspace,
  .tour-seat-plan-layout {
    display: block;
  }

  .tour-seat-detail,
  .tour-seat-map-panel,
  .tour-passenger-panel {
    border: 0;
    box-shadow: none;
  }
}

.tour-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
}

.tour-detail-hero-copy {
  display: grid;
  gap: 14px;
}

.tour-detail-hero-copy h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #132930;
  letter-spacing: -0.03em;
}

.tour-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.tour-detail-meta span {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(17, 38, 46, 0.05);
  color: #4b6067;
  font-size: 0.84rem;
}

.tour-detail-meta strong {
  color: #132930;
  font-size: 0.95rem;
}

.tour-detail-back-row {
  max-width: 220px;
}

.tour-detail-hero-stats .stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tour-update-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  width: auto;
  min-width: 0;
  max-width: none;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
}

.tour-reservation-data-row > td {
  padding-bottom: 10px !important;
  border-bottom: 0;
}

.tour-reservation-action-row > td {
  padding: 6px 10px 10px !important;
  border-top: 0;
  background: rgba(238, 245, 247, 0.72);
}

.tour-reservation-action-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.tour-reservation-action-toolbar > form {
  display: inline-flex;
  width: auto;
  margin: 0;
}

.tour-reservation-action-toolbar > .reservation-inline-actions {
  display: contents;
}

.tour-reservation-action-toolbar .button {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  min-height: 30px;
  padding: 6px 9px;
  font-size: 11px;
}

.tour-reservation-action-toolbar > .badge,
.tour-reservation-action-toolbar > .field-help {
  flex: 0 0 auto;
}

.reservation-operation-link {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.reservation-operation-link .badge,
.reservation-operation-link .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.reservation-operation-link .field-help {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tour-reservation-status-form {
  display: grid;
  grid-template-columns: 98px minmax(132px, 1fr) 126px;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.tour-reservation-status-form > * {
  min-width: 0;
  margin: 0;
}

.tour-reservation-status-form .button {
  width: auto;
  white-space: nowrap;
  padding-inline: 8px;
  font-size: 11px;
}

.tour-table-panel .panel-body {
  display: grid;
  gap: 14px;
}

.quadriga-reservations-table .table-col--islem {
  width: 300px;
  min-width: 300px;
}

.quadriga-reservations-table .jobs-row-actions {
  display: flex;
  width: max-content;
  min-width: 268px;
  justify-content: flex-start;
  gap: 6px;
}

.quadriga-reservations-table .jobs-row-actions > form,
.quadriga-reservations-table .jobs-row-actions > a,
.quadriga-reservations-table .jobs-row-actions > .button {
  flex: 0 0 auto;
  margin: 0;
}

.quadriga-reservations-table .jobs-row-actions .compact-action-button {
  min-height: 34px;
  height: 34px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
}

.quadriga-reservations-table .table-wrap,
.quadriga-reservations-table.table-wrap {
  padding-right: 6px;
  scrollbar-gutter: stable;
}

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

  .tour-detail-hero-stats .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .tour-filter-actions {
    grid-template-columns: 1fr;
  }

  .tour-summary-stats,
  .tour-summary-meta,
  .tour-detail-meta,
  .tour-detail-hero-stats .stats-grid {
    grid-template-columns: 1fr;
  }

  .tour-detail-back-row {
    max-width: none;
  }
}

.fleet-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.fleet-filter-grid label {
  display: grid;
  gap: 6px;
  color: #132930;
  font-size: 0.88rem;
  font-weight: 700;
}

.fleet-filter-actions {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.fleet-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.accounting-expense-shell .panel-body {
  padding-top: 14px;
}

.accounting-expense-entry-form {
  display: grid;
}

.accounting-expense-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.accounting-expense-block,
.accounting-expense-detail-card {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(18, 49, 56, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(246, 239, 228, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.accounting-expense-block-head {
  display: grid;
  gap: 4px;
}

.accounting-expense-block-head h3,
.accounting-expense-detail-card h4 {
  margin: 0;
  color: #132930;
  letter-spacing: -0.02em;
}

.accounting-expense-detail-card h4 {
  font-size: 1rem;
}

.accounting-expense-detail-card .inline-form-grid {
  gap: 12px;
}

.accounting-expense-guide-list {
  max-height: none;
}

.accounting-expense-sidebar {
  display: grid;
  gap: 18px;
}

.fleet-sidebar-upload-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
  min-width: 0;
}

.fleet-management-stack {
  display: grid;
  gap: 14px;
  max-width: 1180px;
}

.fleet-upload-card .button-row {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.fleet-upload-card .button-row .button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 8px 10px;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
  text-align: center;
}

.fleet-side-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.fleet-side-rail {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.fleet-main-stack {
  min-width: 0;
}

.fleet-side-card {
  padding: 14px;
  min-width: 0;
  overflow: hidden;
}

.fleet-side-card .dashboard-mini-table td:last-child,
.fleet-side-card .dashboard-mini-table th:last-child {
  text-align: right;
}

.fleet-settings-form {
  gap: 10px;
}

.fleet-setting-group {
  display: grid;
  gap: 8px;
}

.fleet-setting-group h5 {
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
}

.fleet-setting-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.fleet-setting-grid label {
  display: grid;
  gap: 4px;
}

.fleet-setting-grid span {
  color: #49616a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fleet-adjustment-form {
  gap: 10px;
  margin-bottom: 14px;
}

.fleet-adjustment-form .button {
  justify-self: start;
}

.fleet-management-stack .card-head {
  padding-bottom: 8px;
}

.fleet-management-stack .card-head h4 {
  margin: 0;
  font-size: 0.95rem;
}

.fleet-management-stack .compact-card-form {
  gap: 7px;
  padding: 10px 12px;
}

.fleet-management-stack .compact-card-form input,
.fleet-management-stack .compact-card-form select {
  padding: 8px 10px;
  min-height: 38px;
}

.fleet-management-stack .readonly-field {
  padding: 9px 11px;
  min-height: 0;
  font-size: 0.8rem;
}

.uetds-status-card {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.uetds-status-card.is-success {
  border-color: rgba(72, 143, 87, 0.28);
  background: rgba(72, 143, 87, 0.08);
}

.uetds-status-card.is-preview {
  border-color: rgba(23, 93, 102, 0.24);
  background: rgba(23, 93, 102, 0.08);
}

.uetds-status-card.is-error {
  border-color: rgba(143, 75, 66, 0.28);
  background: rgba(143, 75, 66, 0.08);
}

.uetds-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.uetds-status-head strong {
  font-size: 0.9rem;
}

.uetds-status-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink);
}

.fleet-management-stack .field-help {
  font-size: 0.74rem;
}

.fleet-management-stack .button-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.fleet-management-stack .button-row .button {
  min-height: 34px;
}

.fleet-rental-income-card {
  display: grid;
  gap: 10px;
}

.fleet-rental-picker-form,
.fleet-rental-income-form {
  gap: 10px;
}

.fleet-rental-income-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.fleet-rental-income-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fleet-rental-income-grid label {
  display: grid;
  gap: 4px;
}

.fleet-rental-income-grid span {
  color: #49616a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fleet-rental-income-form .button {
  justify-self: start;
}

.daily-command-grid {
  display: grid;
  gap: 12px;
}

.daily-command-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fleet-command-card .compact-upload-copy h2 {
  margin-bottom: 6px;
}

.fleet-command-card .readonly-field {
  margin-top: 6px;
}

.daily-command-upload-form {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.daily-command-upload-form .button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fleet-command-mini-card {
  align-content: start;
  min-height: 100%;
}

.fleet-command-mini-card .button {
  width: 100%;
}

.fleet-kpi-card {
  min-height: 128px;
}

.fleet-kpi-card span {
  display: block;
  color: rgba(255, 246, 230, 0.95);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

.fleet-kpi-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: #fffdfa;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22);
}

.fleet-kpi-card small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 246, 233, 0.88);
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}

.fleet-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.fleet-kpi-grid .fleet-kpi-card {
  min-width: 0;
}

.fleet-kpi-grid .fleet-kpi-card:last-child {
  grid-column: span 2;
}

.fleet-secondary-kpis {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.fleet-kpi-card-compact {
  flex: 0 1 320px;
  min-height: 112px;
}

.fleet-kpi-card-compact strong {
  font-size: 1.55rem;
}

.fleet-kpi-card-compact small {
  max-width: 280px;
}

.fleet-premium-chart-card {
  margin-top: 18px;
}

.ceo-mix-chart {
  display: grid;
  gap: 14px;
  padding: 8px 4px 2px;
}

.ceo-mix-row {
  display: grid;
  gap: 8px;
}

.ceo-mix-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: #17303a;
}

.ceo-mix-copy span {
  font-size: 0.95rem;
  font-weight: 700;
}

.ceo-mix-copy strong {
  font-size: 0.98rem;
  color: #0f2730;
}

.ceo-mix-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(18, 39, 49, 0.08);
  box-shadow: inset 0 1px 2px rgba(7, 18, 25, 0.08);
}

.ceo-mix-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.ceo-mix-track.revenue span {
  background: linear-gradient(90deg, #0f4d57, #2c8a77);
}

.ceo-mix-track.fuel span {
  background: linear-gradient(90deg, #9e4f24, #d18a41);
}

.ceo-mix-track.maintenance span {
  background: linear-gradient(90deg, #8d3f38, #c06a51);
}

.ceo-mix-track.rental span {
  background: linear-gradient(90deg, #835223, #bc8b48);
}

.ceo-mix-track.personnel span {
  background: linear-gradient(90deg, #305f7b, #5392a8);
}

.ceo-mix-track.office span {
  background: linear-gradient(90deg, #53612e, #7e9a4b);
}

.ceo-mix-track.net span {
  background: linear-gradient(90deg, #43505b, #8aa0b0);
}

.ceo-top-grid {
  align-items: stretch;
}

.ceo-top-grid-notes {
  grid-row: span 2;
}

.ceo-top-grid-notes .table-card,
.ceo-top-grid-notes .raw-panel {
  height: 100%;
}

.ceo-top-grid-notes .list-stack {
  max-height: none;
  height: calc(100% - 12px);
}

.fleet-premium-chart {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(340px, 1.12fr);
  gap: 22px;
  align-items: stretch;
  padding: 6px 2px 2px;
}

.fleet-chart-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(199, 163, 91, 0.28), transparent 42%),
    linear-gradient(160deg, rgba(8, 23, 33, 0.96), rgba(21, 49, 56, 0.92));
  color: #fff8ec;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fleet-chart-copy h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fffdf7;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24);
}

.fleet-chart-copy .muted {
  color: rgba(255, 247, 235, 0.9);
  font-weight: 500;
}

.fleet-chart-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fleet-chart-copy .badge {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.fleet-chart-copy .badge.info,
.fleet-chart-copy .badge.neutral,
.fleet-chart-copy .badge.positive,
.fleet-chart-copy .badge.warning {
  color: #ffffff;
}

.fleet-chart-bars {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(247, 239, 227, 0.94)),
    linear-gradient(140deg, rgba(255, 255, 255, 0.32), rgba(199, 163, 91, 0.08));
  border: 1px solid rgba(178, 146, 88, 0.18);
}

.fleet-bar-row {
  display: grid;
  gap: 8px;
}

.fleet-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  color: var(--ink);
}

.fleet-bar-meta span {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.fleet-bar-meta strong {
  font-size: 1rem;
  color: var(--ink);
}

.fleet-bar-track {
  position: relative;
  overflow: hidden;
  height: 16px;
  border-radius: 999px;
  background: rgba(20, 42, 49, 0.08);
  box-shadow: inset 0 1px 2px rgba(20, 42, 49, 0.08);
}

.fleet-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 10px 24px rgba(19, 44, 53, 0.18);
}

.fleet-bar-track.revenue span {
  background: linear-gradient(90deg, #2f935f, #9ed17d);
}

.fleet-bar-track.fuel span {
  background: linear-gradient(90deg, #d79024, #efca68);
}

.fleet-bar-track.maintenance span {
  background: linear-gradient(90deg, #b25b38, #e59b6f);
}

.fleet-bar-track.info span {
  background: linear-gradient(90deg, #1f6f82, #6fc6d9);
}

.fleet-bar-track.positive span {
  background: linear-gradient(90deg, #0f7c6b, #4dc7a6);
}

.fleet-bar-track.warning span {
  background: linear-gradient(90deg, #9d3349, #de7d88);
}

.compact-wrap {
  max-height: 360px;
}

.shared-files-table-wrap,
.shared-files-fleet-table {
  max-height: 420px;
}

.shared-files-fleet-table .table {
  min-width: 760px;
}

.shared-files-fleet-table .table th,
.shared-files-fleet-table .table td {
  padding: 9px 10px;
  font-size: 12px;
  vertical-align: middle;
}

.shared-files-fleet-table .table th:last-child,
.shared-files-fleet-table .table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.vehicle-doc-download-fit {
  overflow-x: hidden;
}

.vehicle-doc-download-fit .table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.vehicle-doc-download-fit .table th,
.vehicle-doc-download-fit .table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}

.vehicle-doc-download-fit .table th:nth-child(1),
.vehicle-doc-download-fit .table td:nth-child(1) {
  width: 12%;
}

.vehicle-doc-download-fit .table th:nth-child(2),
.vehicle-doc-download-fit .table td:nth-child(2) {
  width: 14%;
}

.vehicle-doc-download-fit .table th:nth-child(3),
.vehicle-doc-download-fit .table td:nth-child(3) {
  width: 28%;
}

.vehicle-doc-download-fit .table th:nth-child(4),
.vehicle-doc-download-fit .table td:nth-child(4) {
  width: 12%;
}

.vehicle-doc-download-fit .table th:nth-child(5),
.vehicle-doc-download-fit .table td:nth-child(5) {
  width: 24%;
}

.vehicle-doc-download-fit .table th:nth-child(6),
.vehicle-doc-download-fit .table td:nth-child(6) {
  width: 10%;
  min-width: 96px;
  white-space: nowrap;
}

.shared-files-primary-cell {
  min-width: 260px;
}

.shared-files-primary-cell strong {
  display: block;
  color: #132930;
  line-height: 1.3;
}

.shared-files-subline {
  display: block;
  margin-top: 3px;
  color: #6f7f86;
  font-size: 11px;
  line-height: 1.25;
  word-break: break-word;
}

.shared-files-actions-cell {
  min-width: 220px;
}

.shared-files-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.compact-action-button {
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.1;
}

.shared-files-inline-form {
  display: inline-flex;
  width: auto;
}

.shared-files-inline-form .compact-action-button {
  width: auto;
}

.shared-files-rename-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin-top: 7px;
}

.shared-files-rename-form input {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.shared-files-fleet-table .table tbody tr:nth-child(even) {
  background: rgba(13, 92, 99, 0.028);
}

.dashboard-mini-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
}

.dashboard-mini-table th,
.dashboard-mini-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(18, 49, 56, 0.08);
  text-align: left;
}

.dashboard-mini-table th {
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(252, 246, 238, 0.96), rgba(244, 235, 221, 0.96));
  position: sticky;
  top: 0;
}

.dashboard-mini-table tbody tr:nth-child(2n) {
  background: rgba(13, 92, 99, 0.028);
}

.fleet-main-table .table {
  min-width: 1280px;
}

.fleet-data-table .table {
  min-width: 980px;
}

.raw-table-card .table-wrap {
  margin-top: 10px;
}

.table-wrap.decision-reports-table {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

.decision-reports-table .table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.decision-reports-table .table th,
.decision-reports-table .table td {
  padding: 8px 8px !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  hyphens: auto;
  vertical-align: top;
}

.decision-reports-table .table th {
  font-size: 10px !important;
  line-height: 1.25 !important;
}

.decision-reports-table .table .table-sort-button {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 8px;
}

.decision-reports-table .table .table-sort-label {
  white-space: normal;
}

.decision-reports-table .table th[data-col-key="hat"],
.decision-reports-table .table td[data-col-key="hat"],
.decision-reports-table .table th[data-col-key="bolge"],
.decision-reports-table .table td[data-col-key="bolge"],
.decision-reports-table .table th[data-col-key="arac-tipi"],
.decision-reports-table .table td[data-col-key="arac-tipi"],
.decision-reports-table .table th[data-col-key="musteri"],
.decision-reports-table .table td[data-col-key="musteri"] {
  width: 26%;
}

.decision-reports-table .table th[data-col-key="saat"],
.decision-reports-table .table td[data-col-key="saat"],
.decision-reports-table .table th[data-col-key="is"],
.decision-reports-table .table td[data-col-key="is"],
.decision-reports-table .table th[data-col-key="risk"],
.decision-reports-table .table td[data-col-key="risk"],
.decision-reports-table .table th[data-col-key="iptal"],
.decision-reports-table .table td[data-col-key="iptal"] {
  width: 12%;
}

.decision-dashboard-grid-top,
.decision-dashboard-grid-bottom {
  grid-template-columns: 1fr;
}

.table-wrap.vehicle-pool-fit {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

.vehicle-pool-fit .table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.vehicle-pool-fit .table th,
.vehicle-pool-fit .table td {
  padding: 8px 6px !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  hyphens: auto;
  vertical-align: top;
}

.vehicle-pool-fit .table th {
  font-size: 9.5px !important;
  line-height: 1.2 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: manual !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

.vehicle-pool-fit .table .table-sort-button,
.vehicle-pool-fit .table .table-header-tools {
  gap: 4px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.vehicle-pool-fit .table .table-sort-button {
  align-items: center;
  padding: 8px 6px;
  gap: 6px;
  justify-content: center;
  text-align: center;
}

.vehicle-pool-fit .table .table-sort-label,
.vehicle-pool-fit .table .table-header-label {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: manual !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

.vehicle-pool-fit .table th.table-col--secim .table-header-tools,
.vehicle-pool-fit .table th.table-col--sil .table-header-tools,
.vehicle-pool-fit .table th.table-col--vip .table-header-tools,
.vehicle-pool-fit .table th.table-col--elit-vip .table-header-tools {
  justify-content: center !important;
}

.vehicle-pool-fit .table th.table-col--secim .table-filter-button,
.vehicle-pool-fit .table th.table-col--sil .table-filter-button,
.vehicle-pool-fit .table th.table-col--vip .table-filter-button,
.vehicle-pool-fit .table th.table-col--elit-vip .table-filter-button {
  display: none !important;
}

.vehicle-pool-fit .nowrap-cell {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  text-overflow: ellipsis;
  overflow: hidden;
}

.vehicle-pool-fit .compact-action-button {
  width: 100%;
  min-height: 28px;
  padding: 5px 6px;
  border-radius: 10px;
  font-size: 10.5px;
}

.vehicle-pool-fit .table-inline-select {
  width: 100%;
  min-width: 0;
  padding: 5px 8px;
  font-size: 10.5px;
}

.vehicle-pool-fit .table-col--secim,
.vehicle-pool-fit .table-col--koltuk,
.vehicle-pool-fit .table-col--vip,
.vehicle-pool-fit .table-col--elit-vip {
  width: 3%;
}

.vehicle-pool-fit .table th.table-col--secim,
.vehicle-pool-fit .table td.table-col--secim {
  min-width: 38px;
  max-width: 38px;
  padding-left: 4px !important;
  padding-right: 4px !important;
  text-align: center;
}

.vehicle-pool-fit .table-col--plaka,
.vehicle-pool-fit .table-col--tip,
.vehicle-pool-fit .table-col--bolge,
.vehicle-pool-fit .table-col--bakim,
.vehicle-pool-fit .table-col--durum {
  width: 6.5%;
}

.vehicle-pool-fit .table th.table-col--plaka,
.vehicle-pool-fit .table td.table-col--plaka {
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.vehicle-pool-fit .table-col--aylik-arac-tipi,
.vehicle-pool-fit .table-col--operasyon,
.vehicle-pool-fit .table-col--sofor,
.vehicle-pool-fit .table-col--sil {
  width: 8%;
}

.vehicle-pool-fit .table-col--aylik-kira,
.vehicle-pool-fit .table-col--acenta-kira-geliri {
  width: 7.5%;
}

.vehicle-pool-fit .table-col--acenta-bagli-musteri {
  width: 13%;
}

@media (max-width: 960px) {
  .decision-reports-table .table th,
  .decision-reports-table .table td {
    padding: 7px 6px !important;
    font-size: 10px !important;
  }

  .decision-reports-table .table th {
    font-size: 9px !important;
  }
}

.timesheet-bubble {
  position: relative;
  display: inline-block;
}

.timesheet-bubble summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(107, 184, 190, 0.16);
  border: 1px solid rgba(107, 184, 190, 0.34);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
}

.timesheet-bubble summary::-webkit-details-marker {
  display: none;
}

.timesheet-bubble[open] summary {
  background: rgba(199, 163, 91, 0.22);
  border-color: rgba(199, 163, 91, 0.4);
}

.timesheet-bubble.unassigned summary {
  background: rgba(77, 156, 226, 0.18);
  border-color: rgba(77, 156, 226, 0.42);
  color: #18415f;
}

.timesheet-bubble.unassigned[open] summary {
  background: rgba(77, 156, 226, 0.26);
  border-color: rgba(77, 156, 226, 0.52);
}

.timesheet-bubble-card {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 15;
  width: min(360px, 46vw);
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(10, 28, 35, 0.97), rgba(17, 43, 52, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  color: #f4f7f6;
}

.timesheet-bubble-card strong {
  display: block;
  margin-bottom: 8px;
  color: #f9e8c3;
  font-size: 0.82rem;
}

.timesheet-bubble-status {
  margin: 0 0 8px;
  color: rgba(244, 247, 246, 0.74);
  font-size: 0.76rem;
  font-weight: 700;
}

.timesheet-bubble-card ul {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}

.timesheet-bubble-card li {
  font-size: 0.78rem;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .dashboard-grid,
  .dashboard-grid-3,
  .fleet-upload-grid,
  .fleet-side-layout {
    grid-template-columns: 1fr;
  }

  .fleet-premium-chart {
    grid-template-columns: 1fr;
  }

  .fleet-side-rail {
    position: static;
  }

  .fleet-setting-grid {
    grid-template-columns: 1fr;
  }

  .fleet-secondary-kpis {
    flex-direction: column;
  }

  .fleet-kpi-card-compact {
    flex-basis: auto;
  }
}

.panel {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.panel:hover {
  transform: translateY(-3px);
  box-shadow:
    0 40px 92px rgba(2, 10, 16, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.panel-head {
  backdrop-filter: blur(10px);
}

.card-form.two-col,
.compact-upload-shell {
  align-items: start;
}

input,
select,
.readonly-field {
  backdrop-filter: blur(8px);
}

input:hover,
select:hover {
  border-color: rgba(141, 103, 50, 0.24);
}

.button {
  position: relative;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 36%);
  pointer-events: none;
}

.button.primary:hover,
.button.secondary:hover,
.button.ghost:hover {
  box-shadow:
    0 20px 36px rgba(12, 29, 35, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.compact-filter,
.compact-card-form,
.compact-panel,
.login-panel {
  box-shadow:
    0 20px 50px rgba(12, 29, 35, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.table-wrap {
  border-radius: 24px;
}

.table {
  font-variant-numeric: tabular-nums;
}

.table th.is-sorted {
  background: linear-gradient(180deg, rgba(227, 213, 183, 0.92), rgba(243, 233, 217, 0.92));
}

.sortable-column {
  padding: 0;
}

.table-header-tools {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.table-sort-button {
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: inherit;
  cursor: pointer;
  text-align: left;
}

.table-header-label {
  display: block;
  min-width: 0;
  padding: 12px 14px;
  font-weight: 700;
  line-height: 1.35;
}

.table-sort-label {
  min-width: 0;
  text-align: left;
  line-height: 1.35;
}

.table-sort-icon {
  flex: 0 0 auto;
  width: 12px;
  color: rgba(23, 48, 56, 0.52);
  font-size: 11px;
  line-height: 1;
}

.table-sort-icon::before {
  content: "↕";
}

.table-sort-button[data-direction="asc"] .table-sort-icon::before {
  content: "▲";
  color: #8f6731;
}

.table-sort-button[data-direction="desc"] .table-sort-icon::before {
  content: "▼";
  color: #8f6731;
}

.table-sort-button:focus-visible {
  outline: 2px solid rgba(143, 103, 49, 0.34);
  outline-offset: -2px;
  border-radius: 12px;
}

.table-filter-button {
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  border: 0;
  border-left: 1px solid rgba(18, 49, 56, 0.08);
  background: transparent;
  color: rgba(23, 48, 56, 0.64);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.table-filter-button:hover,
.table-filter-button[data-open="1"],
.table-filter-button[data-active="1"] {
  background: rgba(199, 163, 91, 0.14);
  color: #8f6731;
}

.table-filter-button:focus-visible {
  outline: 2px solid rgba(143, 103, 49, 0.34);
  outline-offset: -2px;
}

.table-filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 12px;
  line-height: 1;
}

.table-filter-icon::before {
  content: "▼";
}

.table-filter-menu {
  position: absolute;
  z-index: 1200;
  width: min(280px, calc(100vw - 24px));
  max-height: min(420px, 70vh);
  padding: 12px;
  border: 1px solid rgba(18, 49, 56, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(247, 239, 228, 0.98));
  box-shadow: 0 20px 40px rgba(4, 18, 24, 0.18);
}

.table-filter-head,
.table-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.table-filter-head {
  margin-bottom: 10px;
}

.table-filter-search {
  width: 100%;
  min-height: 38px;
  margin-bottom: 10px;
}

.table-filter-actions {
  margin-bottom: 10px;
}

.table-filter-action,
.table-filter-reset {
  border: 0;
  background: transparent;
  color: #8f6731;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.table-filter-options {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.table-filter-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 0.85rem;
  line-height: 1.35;
}

.table-filter-option input {
  margin-top: 2px;
}

.table-filter-option span,
.table-filter-empty {
  overflow-wrap: anywhere;
}

.table-filter-empty {
  color: rgba(23, 48, 56, 0.62);
  font-size: 0.82rem;
  padding: 6px 0;
}

.table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.16);
}

.table tbody tr:hover {
  box-shadow: inset 4px 0 0 rgba(199, 163, 91, 0.4);
}

.table tbody tr.telegram-sent-row,
.table tbody tr.telegram-sent-row:nth-child(even) {
  background: linear-gradient(90deg, rgba(31, 122, 91, 0.14), rgba(31, 122, 91, 0.06));
}

.table tbody tr.telegram-sent-row:hover {
  background: linear-gradient(90deg, rgba(31, 122, 91, 0.18), rgba(31, 122, 91, 0.08));
  box-shadow: inset 4px 0 0 rgba(31, 122, 91, 0.5);
}

.table tbody tr.whatsapp-sent-row,
.table tbody tr.whatsapp-sent-row:nth-child(even) {
  background: linear-gradient(90deg, rgba(37, 211, 102, 0.18), rgba(37, 211, 102, 0.07));
}

.table tbody tr.whatsapp-sent-row:hover {
  background: linear-gradient(90deg, rgba(37, 211, 102, 0.24), rgba(37, 211, 102, 0.1));
  box-shadow: inset 4px 0 0 rgba(20, 138, 67, 0.48);
}

.table tbody tr.vehicle-rented-row,
.table tbody tr.vehicle-rented-row:nth-child(even) {
  background: linear-gradient(90deg, rgba(210, 160, 72, 0.22), rgba(210, 160, 72, 0.08));
}

.table tbody tr.vehicle-rented-row:hover {
  background: linear-gradient(90deg, rgba(210, 160, 72, 0.28), rgba(210, 160, 72, 0.12));
  box-shadow: inset 4px 0 0 rgba(167, 116, 18, 0.56);
}

.whatsapp-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  height: 56px;
  width: 56px;
  padding: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #ffffff !important;
  background: linear-gradient(180deg, #27c46b 0%, #16994e 100%) !important;
  border: 1px solid rgba(20, 104, 56, 0.24) !important;
  box-shadow:
    0 14px 28px rgba(23, 154, 79, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.whatsapp-action-button::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 50%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 0;
}

.whatsapp-action-button:hover,
.whatsapp-action-button:focus-visible {
  background: linear-gradient(180deg, #2bcf71 0%, #16924b 100%) !important;
  border-color: rgba(20, 104, 56, 0.36) !important;
  box-shadow:
    0 16px 30px rgba(23, 154, 79, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

.whatsapp-button-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.whatsapp-button-inner::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 0;
}

.whatsapp-button-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
  color: #ffffff;
  filter: none;
}

.whatsapp-button-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.table td {
  color: #173038;
}

.row-detail-link {
  transition: background 0.18s ease, color 0.18s ease;
}

.row-detail-link:hover {
  background: linear-gradient(90deg, rgba(199, 163, 91, 0.08), transparent 72%);
}

.detail-item {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.detail-item:hover {
  transform: translateY(-2px);
  border-color: rgba(199, 163, 91, 0.24);
  box-shadow:
    0 24px 46px rgba(12, 29, 35, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.flash {
  backdrop-filter: blur(14px);
}

.sidebar-stack .panel {
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-stack .panel:hover {
  transform: none;
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sidebar-stack .readonly-field,
.sidebar-stack .compact-card-form input,
.sidebar-stack .compact-card-form select {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .daily-command-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rental-filter-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .rental-filter-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .daily-command-actions,
  .daily-command-upload-form .button-row {
    grid-template-columns: 1fr;
  }

  .rental-filter-grid {
    grid-template-columns: 1fr;
  }

  .rental-filter-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rental-filter-actions .button {
    width: 100%;
    white-space: normal;
  }
}

@keyframes luxury-sweep {
  from {
    transform: translateX(-4%) translateY(-2%);
    opacity: 0.5;
  }

  to {
    transform: translateX(4%) translateY(2%);
    opacity: 0.95;
  }
}

.folder-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.folder-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(145, 36, 36, 0.92), rgba(108, 21, 21, 0.94));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(95, 16, 16, 0.22);
}

.folder-chip:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(95, 16, 16, 0.28);
}

.daily-uetds-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  margin: 0 0 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(145, 36, 36, 0.95), rgba(108, 21, 21, 0.98));
  color: #fff;
  box-shadow: 0 22px 40px rgba(95, 16, 16, 0.22);
}

.daily-uetds-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.daily-uetds-copy strong {
  color: #fff;
  font-size: 1rem;
}

.daily-uetds-copy span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

.daily-uetds-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.daily-uetds-file {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.daily-uetds-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.daily-uetds-actions form {
  margin: 0;
}

.daily-uetds-actions .button {
  min-width: 140px;
}

@media (max-width: 720px) {
  .daily-uetds-card {
    grid-template-columns: 1fr;
  }

  .daily-uetds-form {
    grid-template-columns: 1fr;
  }

  .daily-uetds-actions {
    width: 100%;
  }

  .daily-uetds-actions form,
  .daily-uetds-actions .button {
    width: 100%;
  }
}

/* Layout cleanup: normalize crowded filters, table overflow, and panel rhythm across screens. */
.page-shell {
  grid-template-columns: 292px minmax(0, 1fr);
}

.sidebar {
  padding: 24px 18px 28px;
}

.main-panel {
  padding: 22px 22px 30px;
}

.main-panel-inner {
  width: min(100%, 1480px);
  max-width: 1480px;
  gap: 18px;
}

.global-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 20px;
  align-items: center;
  min-height: auto;
  padding: 18px 20px;
}

.content-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.82fr);
  align-items: start;
}

.content-main,
.content-side,
.dashboard-main,
.sidebar-stack {
  gap: 18px;
}

.content-grid > .content-main,
.content-grid > .content-side,
.content-main > .panel,
.content-side > .panel,
.content-main > .table-card,
.content-side > .table-card {
  min-width: 0;
  max-width: 100%;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dashboard-summary-grid {
  grid-template-columns: repeat(6, minmax(160px, 1fr));
}

.unassigned-analysis-panel .dashboard-summary-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  margin-bottom: 16px;
}

.job-analysis-card {
  border: 1px solid rgba(176, 148, 96, 0.18);
  border-radius: 20px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(248, 243, 233, 0.92));
  margin-bottom: 14px;
}

.job-analysis-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.job-analysis-headline {
  margin: 0 0 12px;
  color: #5f5648;
  font-weight: 600;
}

.job-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.job-analysis-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #3f3a31;
}

.job-analysis-list li + li {
  margin-top: 8px;
}

.panel {
  overflow: hidden;
  border-radius: 22px;
}

.panel::before,
.panel::after,
.panel-head,
.panel-body {
  position: relative;
  z-index: 1;
}

.panel-head {
  padding: 18px 20px 14px;
}

.panel-body {
  padding: 18px 20px 20px;
}

.panel-body,
.card-form,
.table-wrap,
.button-row,
.list-stack,
.list-item,
.region-checkbox-grid,
.readonly-field {
  min-width: 0;
}

.compact-panel,
.login-panel,
.compact-filter,
.compact-card-form {
  border-radius: 20px;
}

.card-form.two-col {
  grid-template-columns: minmax(148px, 190px) minmax(0, 1fr);
}

.card-form.two-col > input,
.card-form.two-col > select,
.card-form.two-col > textarea,
.card-form.two-col > .readonly-field,
.card-form.two-col > .checkbox-row {
  width: 100%;
}

.content-side .list-stack {
  max-height: none;
  overflow: visible;
}

.hero {
  align-items: start;
}

.hero-actions {
  justify-content: flex-start;
}

.compact-filter {
  gap: 12px 14px;
  align-items: end;
  padding: 16px 18px;
}

.compact-filter > div {
  display: grid;
  gap: 6px;
  min-width: min(220px, 100%);
  flex: 1 1 190px;
}

.compact-filter > input,
.compact-filter > select {
  flex: 1 1 168px;
  min-width: 168px;
}

.compact-filter .inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.compact-filter .button,
.compact-filter button,
.compact-filter input[type="submit"] {
  min-height: 44px;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-width: 100%;
  border-radius: 20px;
}

.compact-wrap {
  max-height: 420px;
}

.tall-scroll {
  max-height: min(72vh, 920px);
}

.timeline-scroll {
  height: auto;
  max-height: min(80vh, 960px);
}

.table {
  width: max(100%, 860px);
  min-width: 100%;
}

.table.dense {
  width: max(100%, 1080px);
}

.fuel-consumption-fit {
  overflow-x: hidden;
}

.fuel-consumption-fit .table,
.fuel-consumption-fit .table.dense {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.fleet-main-table .table {
  width: max(100%, 1120px);
}

.fleet-data-table .table {
  width: max(100%, 900px);
}

.table th,
.table td {
  padding: 11px 13px;
}

.table td {
  word-break: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 1320px) {
  .global-hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .global-hero-app,
  .hero-family-title {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 1200px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 900px) {
  .main-panel,
  .sidebar {
    padding: 18px 16px 24px;
  }

  .global-hero {
    padding: 16px 16px 18px;
  }

  .panel-head {
    padding: 16px 16px 12px;
  }

  .panel-body {
    padding: 16px;
  }

  .compact-filter {
    padding: 14px;
  }

  .compact-filter > div,
  .compact-filter > input,
  .compact-filter > select,
  .compact-filter > .button,
  .compact-filter > button,
  .compact-filter > input[type="submit"],
  .compact-filter > a.button {
    width: 100%;
    min-width: 0;
    flex-basis: 100%;
  }

  .compact-filter .inline-form {
    width: 100%;
  }

  .compact-filter .inline-form .button,
  .compact-filter .inline-form button,
  .compact-filter .inline-form input[type="submit"] {
    width: 100%;
  }

  .table {
    width: max(100%, 720px);
  }

  .table.dense {
    width: max(100%, 860px);
  }

  .fleet-main-table .table {
    width: max(100%, 980px);
  }

  .fleet-rental-income-overview,
  .fleet-rental-income-grid {
    grid-template-columns: 1fr;
  }
}

.main-panel-inner {
  width: min(100%, 1780px);
  max-width: 1780px;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: auto;
}

.table,
.table.dense,
.jobs-grid-table .table,
.fleet-main-table .table,
.fleet-data-table .table,
.shared-files-fleet-table .table {
  width: max-content !important;
  min-width: max(100%, 1200px) !important;
  table-layout: auto !important;
}

.table th,
.table td {
  padding: 13px 14px;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.fuel-consumption-fit {
  overflow-x: hidden !important;
}

.fuel-consumption-fit .table,
.fuel-consumption-fit .table.dense {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.fuel-consumption-fit .table th,
.fuel-consumption-fit .table td {
  padding: 9px 7px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

.fuel-consumption-fit .table th,
.fuel-consumption-fit .table th .table-sort-button,
.fuel-consumption-fit .table th .table-sort-label {
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

.office-personnel-fit {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

.office-personnel-fit .table,
.office-personnel-fit .table.dense {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.office-personnel-fit .table th,
.office-personnel-fit .table td {
  padding: 9px 7px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: auto;
  vertical-align: top;
}

.office-personnel-fit .table th,
.office-personnel-fit .table th .table-sort-button,
.office-personnel-fit .table th .table-sort-label {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.office-personnel-fit .table .table-sort-button {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  padding: 6px 4px;
}

.office-personnel-fit .table .table-col--tarih,
.office-personnel-fit .table .table-col--bolge,
.office-personnel-fit .table .table-col--grup,
.office-personnel-fit .table .table-col--tutar,
.office-personnel-fit .table .table-col--onay,
.office-personnel-fit .table .table-col--ekleyen,
.office-personnel-fit .table .table-col--olusturma,
.office-personnel-fit .table .table-col--islem {
  font-size: 11px !important;
}

.office-personnel-fit .compact-button-row {
  align-items: stretch;
  flex-direction: column;
  gap: 6px;
}

.office-personnel-fit .compact-button-row .button {
  width: 100%;
  min-width: 0;
  padding: 8px 9px;
  font-size: 11px;
}

.fleet-raw-detail-stack {
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100%;
  max-width: 100%;
}

.fleet-raw-detail-stack > .raw-table-card {
  width: 100%;
  min-width: 0;
}

.fleet-raw-fit-table {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

.fleet-raw-fit-table .table,
.fleet-raw-fit-table .table.dense {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.fleet-raw-fit-table .table th,
.fleet-raw-fit-table .table td {
  min-width: 0 !important;
  max-width: none !important;
  padding: 9px 8px !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  hyphens: auto;
  vertical-align: top;
}

.fleet-raw-fit-table .table th,
.fleet-raw-fit-table .table th .table-sort-button,
.fleet-raw-fit-table .table th .table-sort-label {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.fleet-raw-fit-table .table th {
  font-size: 10px !important;
  line-height: 1.25 !important;
}

.fleet-raw-fit-table .table td {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.fleet-raw-fit-table .table .table-sort-button {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  padding: 6px 4px;
}

.fleet-raw-fuel-table .table-col--tarih,
.fleet-raw-maintenance-table .table-col--tarih,
.fleet-raw-arvento-distance-table .table-col--tarih {
  width: 10%;
}

.fleet-raw-fuel-table .table-col--plaka,
.fleet-raw-maintenance-table .table-col--plaka,
.fleet-raw-arvento-distance-table .table-col--plaka {
  width: 11%;
}

.fleet-raw-fuel-table .table-col--sahiplik,
.fleet-raw-maintenance-table .table-col--sahiplik,
.fleet-raw-arvento-distance-table .table-col--sahiplik {
  width: 10%;
}

.fleet-raw-fuel-table .table-col--bolge,
.fleet-raw-maintenance-table .table-col--bolge,
.fleet-raw-arvento-distance-table .table-col--bolge {
  width: 12%;
}

.fleet-raw-fuel-table .table-col--litre,
.fleet-raw-fuel-table .table-col--tutar,
.fleet-raw-fuel-table .table-col--km,
.fleet-raw-maintenance-table .table-col--tutar,
.fleet-raw-arvento-distance-table .table-col--mesafe-km {
  width: 10%;
}

.fleet-raw-fuel-table .table-col--firma,
.fleet-raw-maintenance-table .table-col--firma {
  width: 17%;
}

.fleet-raw-maintenance-table .table-col--aciklama {
  width: 30%;
}

.table th {
  line-height: 1.35;
}

.table td {
  font-size: 14px;
  line-height: 1.55;
}

.table th[data-col-kind="compact"],
.table td[data-col-kind="compact"],
.table th[data-col-kind="plate"],
.table td[data-col-kind="plate"],
.table th[data-col-kind="date"],
.table td[data-col-kind="date"],
.table th[data-col-kind="numeric"],
.table td[data-col-kind="numeric"],
.table th[data-col-kind="action"],
.table td[data-col-kind="action"] {
  width: auto;
  min-width: max-content;
}

.table th[data-col-kind="text"],
.table td[data-col-kind="text"] {
  min-width: max-content;
}

.table td[data-col-kind="text"] {
  max-width: none;
  overflow-wrap: normal;
}

.jobs-grid-table .table {
  width: 100% !important;
  min-width: 1480px !important;
  table-layout: auto !important;
}

.operations-page-shell {
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
}

.operations-sidebar {
  display: none;
}

.operations-main-panel {
  padding: 10px 12px 18px;
}

.operations-main-panel .main-panel-inner {
  width: min(100%, calc(100vw - 24px));
  max-width: none;
  gap: 14px;
}

.operations-hero {
  padding: 14px 18px;
}

.operations-filter {
  width: 100%;
  align-items: end;
}

.operations-quick-filter {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(280px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  flex: 1 1 660px;
  min-width: min(660px, 100%);
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  margin: 0;
}

.operations-quick-filter label {
  display: grid;
  gap: 4px;
  margin: 0;
}

.operations-quick-filter label > span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #637780;
}

.operations-quick-filter input,
.operations-quick-filter select,
.operations-quick-filter .button {
  min-height: 40px;
}

.operations-advanced-filter,
.operations-tools-menu,
.jobs-more-actions {
  position: relative;
}

.operations-advanced-filter > summary,
.operations-tools-menu > summary,
.jobs-more-actions > summary {
  list-style: none;
  cursor: pointer;
}

.operations-advanced-filter > summary::-webkit-details-marker,
.operations-tools-menu > summary::-webkit-details-marker,
.jobs-more-actions > summary::-webkit-details-marker {
  display: none;
}

.operations-advanced-filter-grid,
.operations-tools-menu-panel,
.jobs-more-actions-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(24, 50, 62, 0.16);
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: 0 18px 42px rgba(10, 30, 38, 0.18);
}

.operations-advanced-filter-grid {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  min-width: min(620px, calc(100vw - 32px));
}

.operations-tools-menu-panel {
  min-width: 210px;
}

.operations-tools-menu-panel .button,
.operations-tools-menu-panel form,
.operations-tools-menu-panel form .button {
  width: 100%;
  margin: 0;
}

.support-pool-option-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 8px;
  width: 100%;
}

.support-pool-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(24, 50, 62, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.support-pool-option:has(input:checked) {
  border-color: rgba(26, 112, 92, 0.48);
  background: rgba(224, 244, 237, 0.82);
}

.support-pool-option input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
}

.support-pool-option-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.support-pool-option-copy strong {
  font-size: 0.86rem;
  letter-spacing: 0.035em;
  color: #17353d;
  white-space: nowrap;
}

.support-pool-option-copy small {
  color: #667981;
  font-size: 0.73rem;
  line-height: 1.35;
  white-space: normal;
}

.vehicle-pool-filter-bar {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(24, 50, 62, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(18, 49, 56, 0.06);
}

.vehicle-pool-filter-bar .compact-filter {
  margin: 0;
}

.global-hero-menu {
  position: relative;
  z-index: 4;
  justify-self: end;
}

.global-hero:has(.global-hero-menu) {
  overflow: visible;
}

.global-hero-menu > summary {
  min-width: 92px;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  list-style: none;
}

.global-hero-menu > summary::-webkit-details-marker {
  display: none;
}

.global-hero-menu > summary::after {
  content: " ▾";
}

.global-hero-menu[open] > summary::after {
  content: " ▴";
}

.global-hero-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(70vh, 620px);
  padding: 14px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #0b2029;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

.global-hero-menu-panel .nav-section,
.global-hero-menu-panel .nav-subsection {
  margin: 0;
}

.global-hero-menu-panel .nav-link {
  color: #fff;
}

@media (max-width: 520px) {
  .support-pool-option-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-pool-option {
    padding: 8px;
  }

  .global-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .global-hero-lockup {
    min-width: 0;
    gap: 10px;
  }

  .global-hero-brand-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 12px;
    font-size: 14px;
  }

  .global-hero-app-rest {
    overflow: hidden;
    font-size: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .global-hero-menu > summary {
    min-width: 76px;
    padding: 9px 12px;
  }
}

.jobs-more-actions-toggle {
  min-width: 28px !important;
  padding-inline: 6px !important;
  font-weight: 900;
  letter-spacing: 1px;
}

.jobs-more-actions-menu {
  min-width: 80px;
  padding: 7px;
}

.jobs-grid-table tr:has(.jobs-more-actions[open]) {
  position: relative;
  z-index: 220;
}

.jobs-grid-table td:has(.jobs-more-actions[open]),
.jobs-more-actions[open] {
  position: relative;
  z-index: 221;
  overflow: visible;
}

.jobs-grid-table tbody tr:last-child .jobs-more-actions-menu {
  top: auto;
  bottom: calc(100% + 6px);
}

.jobs-more-actions-menu form,
.jobs-more-actions-menu .button {
  width: 100%;
  margin: 0;
}

.operations-sheet-panel .panel-head {
  padding-bottom: 10px;
}

.operations-sheet-panel .panel-body {
  padding-top: 8px;
}

.operations-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(24, 50, 62, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.operations-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.operations-toolbar-group form {
  margin: 0;
}

@media (max-width: 760px) {
  .operations-quick-filter {
    grid-template-columns: 1fr auto;
    flex-basis: 100%;
    min-width: 0;
    width: 100%;
  }

  .operations-quick-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .operations-advanced-filter-grid {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 1fr;
    min-width: 0;
    max-height: 75vh;
    overflow-y: auto;
  }
}

.operations-toolbar-region-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(173, 122, 66, 0.24);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.92);
}

.operations-toolbar-region-form label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c6239;
}

.operations-toolbar-region-form select {
  min-width: 132px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 18px 0 0;
  font-weight: 700;
  color: var(--ink);
}

.operations-toolbar-region-form select:focus {
  outline: none;
}

.operations-columns-panel {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 52, 65, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(246, 240, 228, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.operations-columns-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.operations-column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px 12px;
}

.operations-column-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink);
}

.operations-sheet {
  position: relative;
}

.operations-run-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(190, 170, 135, 0.45);
  box-shadow: 0 12px 24px rgba(83, 63, 33, 0.08);
}

.operations-run-banner-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex: 0 0 auto;
}

.operations-run-banner-body {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.operations-run-banner-body strong {
  color: #14373b;
}

.operations-run-banner-body span {
  color: #5f5649;
  font-size: 0.9rem;
}

.operations-run-banner.is-success {
  background: linear-gradient(180deg, rgba(240, 252, 243, 0.98), rgba(230, 248, 236, 0.98));
  border-color: rgba(83, 158, 102, 0.35);
}

.operations-run-banner.is-success .operations-run-banner-icon {
  background: #1b8f47;
  color: #fff;
}

.operations-run-banner.is-running {
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(236, 243, 255, 0.98));
  border-color: rgba(91, 131, 196, 0.35);
}

.operations-run-banner.is-running .operations-run-banner-icon {
  background: #3f6fbf;
  color: #fff;
}

.operations-run-banner.is-failed {
  background: linear-gradient(180deg, rgba(255, 247, 243, 0.98), rgba(255, 237, 232, 0.98));
  border-color: rgba(194, 104, 77, 0.32);
}

.operations-run-banner.is-failed .operations-run-banner-icon {
  background: #c25b3c;
  color: #fff;
}

.operations-grid-table {
  border: 1px solid rgba(25, 51, 63, 0.18);
  border-radius: 18px;
  background: #fffdfa;
  overflow-x: hidden !important;
}

.operations-grid-table .table {
  width: 100% !important;
  min-width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  background: #fffdfa;
  table-layout: fixed;
}

.operations-grid-table .table th {
  padding: 5px 4px;
  font-size: 8px;
  line-height: 1.05;
}

.operations-grid-table .table td {
  padding: 3px 4px;
  font-size: 9.5px;
  line-height: 1.08;
  vertical-align: middle !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.operations-grid-table .table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #f7edd8, #efe1c3);
  border-bottom: 1px solid rgba(24, 50, 62, 0.18);
}

.operations-grid-table .table th,
.operations-grid-table .table td {
  border-right: 1px solid rgba(31, 58, 70, 0.12);
  border-bottom: 1px solid rgba(31, 58, 70, 0.12);
}

.operations-grid-table .table th:last-child,
.operations-grid-table .table td:last-child {
  border-right: 0;
}

.operations-grid-table .table tbody tr:nth-child(even) td {
  background: rgba(249, 246, 239, 0.72);
}

.operations-grid-table .table tbody tr:hover td {
  background: rgba(240, 231, 210, 0.72);
}

.operations-grid-table .jobs-row-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  justify-content: center;
  white-space: nowrap;
}

.operations-grid-table .jobs-inline-assign-form {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  width: 100%;
}

.operations-grid-table .jobs-plate-cell-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 100%;
  width: 100%;
}

.operations-grid-table .jobs-plate-direct-picker {
  position: relative;
  width: 100%;
  min-height: 24px;
  justify-content: center;
}

.operations-grid-table .jobs-picker-shell {
  position: relative;
  width: 100%;
  min-height: 24px;
  z-index: 8;
}

.operations-grid-table .jobs-plate-direct-picker .jobs-plate-picker-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  cursor: pointer;
}

.operations-grid-table .jobs-plate-direct-picker .jobs-plate-assign-form {
  position: absolute;
  inset: 0;
  margin: 0;
  min-width: 0;
  z-index: 9;
}

.operations-grid-table .jobs-plate-direct-picker .jobs-plate-assign-form select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: none;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.operations-grid-table .jobs-inline-assign-form select {
  min-width: 0;
  max-width: none;
  min-height: 28px;
  font-size: 13px;
}

.operations-grid-table .jobs-inline-assign-form select option,
.operations-grid-table .jobs-inline-assign-form select optgroup {
  font-size: 13px;
}

.operations-grid-table .jobs-inline-assign-form .field-help {
  display: none;
}

.operations-grid-table .jobs-driver-direct-picker {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.operations-grid-table .jobs-driver-direct-picker .jobs-driver-assign-form {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 9;
}

.operations-grid-table .jobs-driver-direct-picker .jobs-driver-assign-form select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: none;
  min-height: 24px;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.operations-grid-table .operations-pickup-form {
  display: flex;
  justify-content: center;
  margin: 0;
}

.operations-grid-table .operations-pickup-toggle {
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  white-space: nowrap;
}

.operations-grid-table .operations-pickup-toggle input[type="checkbox"] {
  width: 12px;
  height: 12px;
}

.operations-grid-table .operations-pickup-toggle.is-confirmed {
  opacity: 0.9;
}

.operations-grid-table .table-form .button,
.operations-grid-table .jobs-row-actions .button,
.operations-grid-table .jobs-row-actions .table-action-link {
  padding: 4px 6px;
  min-height: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1;
  min-width: 0;
}

.operations-grid-table .jobs-row-actions .whatsapp-action-button {
  flex: 0 0 24px;
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  padding: 0;
}

.operations-grid-table .jobs-row-actions .whatsapp-button-icon {
  width: 12px;
  height: 12px;
}

.operations-grid-table .jobs-row-actions .jobs-delete-action {
  min-width: 24px;
  width: auto;
  max-width: 32px;
  min-height: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 1;
  white-space: nowrap;
}

.operations-grid-table .jobs-row-actions .jobs-delete-action::before {
  content: "×";
  font-size: 12px;
  line-height: 1;
}

.operations-grid-table .jobs-row-actions .jobs-delete-action::before {
  content: "";
  font-size: 0;
}

.operations-grid-table .jobs-assignment-badge,
.operations-grid-table .badge {
  padding: 3px 6px;
  font-size: 0.62rem;
}

.operations-grid-table [data-col-key="islem"] {
  position: sticky;
  right: 0;
  z-index: 1;
  background: inherit;
  width: 88px;
  min-width: 88px;
  max-width: 88px;
}

.operations-grid-table thead [data-col-key="islem"] {
  z-index: 3;
  width: 88px;
  min-width: 88px;
  max-width: 88px;
}

.operations-grid-table .table .table-col--islem,
.operations-grid-table .table th[data-col-key="islem"],
.operations-grid-table .table td[data-col-key="islem"] {
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  white-space: nowrap !important;
}

.operations-grid-table .table .button,
.operations-grid-table .table .table-action-link,
.operations-grid-table .table .whatsapp-action-button,
.operations-grid-table .table .table-form .button {
  max-width: 88px;
}

.operations-grid-table .table .table-col--saat,
.operations-grid-table .table th[data-col-key="saat"],
.operations-grid-table .table td[data-col-key="saat"] {
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
}

.operations-grid-table .table .table-col--tip,
.operations-grid-table .table th[data-col-key="tip"],
.operations-grid-table .table td[data-col-key="tip"] {
  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
}

.operations-grid-table .table .table-col--is-kodu,
.operations-grid-table .table th[data-col-key="is-kodu"],
.operations-grid-table .table td[data-col-key="is-kodu"] {
  width: 94px !important;
  min-width: 94px !important;
  max-width: 94px !important;
}

.operations-grid-table .table .table-col--mstr,
.operations-grid-table .table th[data-col-key="mstr"],
.operations-grid-table .table td[data-col-key="mstr"] {
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
}

.operations-grid-table .table .table-col--nereden,
.operations-grid-table .table th[data-col-key="nereden"],
.operations-grid-table .table td[data-col-key="nereden"] {
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
}

.operations-grid-table .table .table-col--yon,
.operations-grid-table .table th[data-col-key="yon"],
.operations-grid-table .table td[data-col-key="yon"] {
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
}

.operations-grid-table .table .table-col--plaka,
.operations-grid-table .table th[data-col-key="plaka"],
.operations-grid-table .table td[data-col-key="plaka"] {
  width: 98px !important;
  min-width: 98px !important;
  max-width: 98px !important;
}

.operations-grid-table .table .table-col--ist-arac,
.operations-grid-table .table th[data-col-key="ist-arac"],
.operations-grid-table .table td[data-col-key="ist-arac"] {
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
}

.operations-grid-table .table .table-col--arac,
.operations-grid-table .table th[data-col-key="arac"],
.operations-grid-table .table td[data-col-key="arac"] {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
}

.operations-grid-table .table .table-col--sofor,
.operations-grid-table .table th[data-col-key="sofor"],
.operations-grid-table .table td[data-col-key="sofor"] {
  width: 84px !important;
  min-width: 84px !important;
  max-width: 84px !important;
}

.operations-grid-table .table .table-col--alindi,
.operations-grid-table .table th[data-col-key="alindi"],
.operations-grid-table .table td[data-col-key="alindi"] {
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
}

.operations-grid-table .is-hidden-column {
  display: none !important;
}

.operations-grid-table .row-detail-link,
.operations-grid-table .jobs-driver-cell,
.operations-grid-table .jobs-plate-picker-label,
.operations-grid-table .nowrap-cell {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fleet-main-table .table,
.fleet-data-table .table,
.shared-files-fleet-table .table {
  min-width: 1320px !important;
}

.pdf-lists-fit-table {
  overflow-x: hidden !important;
}

.pdf-lists-fit-table .table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.pdf-lists-fit-table .table th,
.pdf-lists-fit-table .table td {
  padding: 8px 7px !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  vertical-align: top !important;
}

.pdf-lists-fit-table .table th:nth-child(1),
.pdf-lists-fit-table .table td:nth-child(1) {
  width: 12% !important;
}

.pdf-lists-fit-table .table th:nth-child(2),
.pdf-lists-fit-table .table td:nth-child(2) {
  width: 11% !important;
}

.pdf-lists-fit-table .table th:nth-child(3),
.pdf-lists-fit-table .table td:nth-child(3) {
  width: 14% !important;
}

.pdf-lists-fit-table .table th:nth-child(4),
.pdf-lists-fit-table .table td:nth-child(4) {
  width: 11% !important;
}

.pdf-lists-fit-table .table th:nth-child(5),
.pdf-lists-fit-table .table td:nth-child(5) {
  width: 10% !important;
}

.pdf-lists-fit-table .table th:nth-child(6),
.pdf-lists-fit-table .table td:nth-child(6) {
  width: 28% !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.pdf-lists-fit-table .table th:nth-child(7),
.pdf-lists-fit-table .table td:nth-child(7) {
  width: 14% !important;
  white-space: nowrap !important;
}

.pdf-lists-passenger-fit-table .table th:nth-child(1),
.pdf-lists-passenger-fit-table .table td:nth-child(1) {
  width: 12% !important;
}

.pdf-lists-passenger-fit-table .table th:nth-child(2),
.pdf-lists-passenger-fit-table .table td:nth-child(2) {
  width: 11% !important;
}

.pdf-lists-passenger-fit-table .table th:nth-child(3),
.pdf-lists-passenger-fit-table .table td:nth-child(3) {
  width: 24% !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.pdf-lists-passenger-fit-table .table th:nth-child(4),
.pdf-lists-passenger-fit-table .table td:nth-child(4) {
  width: 8% !important;
}

.pdf-lists-passenger-fit-table .table th:nth-child(5),
.pdf-lists-passenger-fit-table .table td:nth-child(5) {
  width: 17% !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.pdf-lists-passenger-fit-table .table th:nth-child(6),
.pdf-lists-passenger-fit-table .table td:nth-child(6) {
  width: 28% !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.table th[data-col-key="kontrol"],
.table td[data-col-key="kontrol"] {
  min-width: 18ch;
  max-width: 22ch;
  white-space: normal;
  line-height: 1.4;
}

.table th[data-col-key="atn"],
.table td[data-col-key="atn"] {
  width: 1%;
  min-width: 0;
  white-space: nowrap;
}

.table th[data-col-key="islem"],
.table td[data-col-key="islem"] {
  width: auto;
  min-width: max-content;
  white-space: nowrap;
}

.table th[data-col-kind="action"],
.table td[data-col-kind="action"] {
  text-align: center;
}

.table td[data-col-key="mesaj"],
.table td[data-col-key="detay"],
.table td[data-col-key="adres"] {
  max-width: 36ch;
}

.whatsapp-logs-table .table {
  width: 100% !important;
  min-width: 1180px !important;
  table-layout: auto !important;
}

.whatsapp-logs-table .table th[data-col-key="mesaj-id"],
.whatsapp-logs-table .table td[data-col-key="mesaj-id"] {
  min-width: 18ch;
  max-width: 22ch;
  white-space: normal;
}

.whatsapp-logs-table .table th[data-col-key="mesaj"],
.whatsapp-logs-table .table td[data-col-key="mesaj"],
.whatsapp-logs-table .table th[data-col-key="detay"],
.whatsapp-logs-table .table td[data-col-key="detay"] {
  min-width: 28ch;
  max-width: 40ch;
  white-space: normal;
}

.whatsapp-logs-table .table td[data-col-kind="text"] {
  min-width: 0;
}

.whatsapp-log-id,
.whatsapp-log-preview,
.whatsapp-log-detail {
  display: block;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.whatsapp-log-id {
  font: 600 0.82rem/1.4 "Consolas", "Courier New", monospace;
}

.fleet-profit-table .table th {
  padding: 0;
}

.fleet-profit-table .table {
  min-width: 1560px !important;
}

.fleet-profit-table .table-sort-button {
  gap: 8px;
  padding: 12px 12px;
  align-items: center;
}

.fleet-profit-table .table-sort-label {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.fleet-profit-table .table td {
  padding: 13px 12px;
  font-size: 14px;
  line-height: 1.5;
}

.fleet-profit-table .table th[data-col-kind="numeric"],
.fleet-profit-table .table td[data-col-kind="numeric"] {
  min-width: 12ch;
}

.table td form,
.table td .button,
.table td select,
.table td input,
.table td .readonly-field {
  min-width: 0;
  max-width: 100%;
}

.jobs-grid-table th:last-child,
.jobs-grid-table td:last-child,
.shared-files-fleet-table .table th:last-child,
.shared-files-fleet-table .table td:last-child {
  white-space: normal;
}

.drivers-grid-table {
  overflow-x: auto;
  overflow-y: visible;
}

.drivers-grid-table .table {
  width: 100% !important;
  min-width: 1500px !important;
  table-layout: auto !important;
}

.drivers-grid-table .table th,
.drivers-grid-table .table td {
  padding: 9px 8px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
  vertical-align: top;
}

.drivers-grid-table .table th {
  font-size: 11px;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  vertical-align: middle;
}

.drivers-grid-table .table td {
  font-size: 12px;
}

.expense-payables-grid-table .table {
  width: 100% !important;
  min-width: 100% !important;
  table-layout: fixed !important;
}

.expense-payables-grid-table .table th,
.expense-payables-grid-table .table td {
  padding: 11px 10px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  vertical-align: top;
}

.expense-payables-grid-table .table th:nth-child(1),
.expense-payables-grid-table .table td:nth-child(1) {
  width: 7% !important;
  min-width: 82px !important;
}

.expense-payables-grid-table .table th:nth-child(2),
.expense-payables-grid-table .table td:nth-child(2) {
  width: 7% !important;
  min-width: 82px !important;
}

.expense-payables-grid-table .table th:nth-child(3),
.expense-payables-grid-table .table td:nth-child(3) {
  width: 8% !important;
  min-width: 88px !important;
}

.expense-payables-grid-table .table th:nth-child(4),
.expense-payables-grid-table .table td:nth-child(4) {
  width: 14% !important;
  min-width: 150px !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.expense-payables-grid-table .table th:nth-child(5),
.expense-payables-grid-table .table td:nth-child(5) {
  width: 32% !important;
  min-width: 360px !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.expense-payables-grid-table .table th:nth-child(6),
.expense-payables-grid-table .table td:nth-child(6) {
  width: 7% !important;
  min-width: 86px !important;
}

.expense-payables-grid-table .table th:nth-child(7),
.expense-payables-grid-table .table td:nth-child(7),
.expense-payables-grid-table .table th:nth-child(8),
.expense-payables-grid-table .table td:nth-child(8),
.expense-payables-grid-table .table th:nth-child(9),
.expense-payables-grid-table .table td:nth-child(9),
.expense-payables-grid-table .table th:nth-child(10),
.expense-payables-grid-table .table td:nth-child(10) {
  width: 7% !important;
  min-width: 82px !important;
}

.expense-payables-grid-table .table th:nth-child(11),
.expense-payables-grid-table .table td:nth-child(11) {
  width: 5% !important;
  min-width: 72px !important;
  white-space: nowrap !important;
}

.expense-payables-payee-table .table {
  width: 100% !important;
  min-width: 980px !important;
  table-layout: fixed !important;
}

.expense-payables-payee-table .table th,
.expense-payables-payee-table .table td {
  padding: 12px 10px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  vertical-align: middle;
}

.expense-payables-payee-table .table th:nth-child(1),
.expense-payables-payee-table .table td:nth-child(1) {
  width: 23% !important;
  min-width: 180px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.expense-payables-payee-table .table th:nth-child(2),
.expense-payables-payee-table .table td:nth-child(2),
.expense-payables-payee-table .table th:nth-child(4),
.expense-payables-payee-table .table td:nth-child(4),
.expense-payables-payee-table .table th:nth-child(8),
.expense-payables-payee-table .table td:nth-child(8) {
  width: 9% !important;
  min-width: 74px !important;
  white-space: nowrap !important;
}

.expense-payables-payee-table .table th:nth-child(8),
.expense-payables-payee-table .table td:nth-child(8) {
  width: 18% !important;
  min-width: 190px !important;
}

.inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.inline-actions .button.small {
  padding-inline: 10px;
}

.expense-payables-payee-table .table th:nth-child(3),
.expense-payables-payee-table .table td:nth-child(3) {
  width: 12% !important;
  min-width: 96px !important;
}

.expense-payables-payee-table .table th:nth-child(5),
.expense-payables-payee-table .table td:nth-child(5),
.expense-payables-payee-table .table th:nth-child(6),
.expense-payables-payee-table .table td:nth-child(6),
.expense-payables-payee-table .table th:nth-child(7),
.expense-payables-payee-table .table td:nth-child(7) {
  width: 9% !important;
  min-width: 82px !important;
}

.drivers-grid-table .nowrap-cell {
  white-space: normal;
}

.drivers-grid-table .table th:nth-child(1),
.drivers-grid-table .table td:nth-child(1) {
  min-width: 180px;
}

.drivers-grid-table .table th:nth-child(2),
.drivers-grid-table .table td:nth-child(2) {
  min-width: 140px;
}

.drivers-grid-table .table th:nth-child(3),
.drivers-grid-table .table td:nth-child(3) {
  min-width: 130px;
}

.drivers-grid-table .table th:nth-child(4),
.drivers-grid-table .table td:nth-child(4),
.drivers-grid-table .table th:nth-child(5),
.drivers-grid-table .table td:nth-child(5),
.drivers-grid-table .table th:nth-child(6),
.drivers-grid-table .table td:nth-child(6),
.drivers-grid-table .table th:nth-child(7),
.drivers-grid-table .table td:nth-child(7) {
  min-width: 110px;
}

.drivers-grid-table .table th:nth-child(8),
.drivers-grid-table .table td:nth-child(8) {
  min-width: 120px;
}

.drivers-grid-table .table th:nth-child(9),
.drivers-grid-table .table td:nth-child(9),
.drivers-grid-table .table th:nth-child(10),
.drivers-grid-table .table td:nth-child(10),
.drivers-grid-table .table th:nth-child(11),
.drivers-grid-table .table td:nth-child(11),
.drivers-grid-table .table th:nth-child(12),
.drivers-grid-table .table td:nth-child(12) {
  min-width: 110px;
}

.drivers-grid-table .table th:nth-child(13),
.drivers-grid-table .table td:nth-child(13),
.drivers-grid-table .table th:nth-child(14),
.drivers-grid-table .table td:nth-child(14) {
  min-width: 90px;
  text-align: center;
}

.drivers-grid-table .table td .button,
.drivers-grid-table .table td .table-action-link {
  padding-inline: 8px;
  min-height: 34px;
}

.driver-expenses-grid-table {
  overflow-x: visible;
}

.driver-expenses-grid-table .table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.driver-expenses-grid-table .table th,
.driver-expenses-grid-table .table td {
  padding: 8px 7px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.3;
  vertical-align: top;
}

.driver-expenses-grid-table .table th {
  font-size: 11px;
}

.driver-expenses-grid-table .table td {
  font-size: 12px;
}

.driver-expenses-grid-table .nowrap-cell {
  white-space: normal;
}

.driver-expenses-grid-table .table th:nth-child(1),
.driver-expenses-grid-table .table td:nth-child(1),
.driver-expenses-grid-table .table th:nth-child(2),
.driver-expenses-grid-table .table td:nth-child(2),
.driver-expenses-grid-table .table th:nth-child(4),
.driver-expenses-grid-table .table td:nth-child(4),
.driver-expenses-grid-table .table th:nth-child(5),
.driver-expenses-grid-table .table td:nth-child(5),
.driver-expenses-grid-table .table th:nth-child(7),
.driver-expenses-grid-table .table td:nth-child(7) {
  width: 7%;
}

.driver-expenses-grid-table .table th:nth-child(3),
.driver-expenses-grid-table .table td:nth-child(3),
.driver-expenses-grid-table .table th:nth-child(6),
.driver-expenses-grid-table .table td:nth-child(6) {
  width: 10%;
}

.driver-expenses-grid-table .table th:nth-child(8),
.driver-expenses-grid-table .table td:nth-child(8) {
  width: 13%;
}

.driver-expenses-grid-table .table th:nth-child(9),
.driver-expenses-grid-table .table td:nth-child(9) {
  width: 12%;
}

.driver-expenses-grid-table .table th:nth-child(10),
.driver-expenses-grid-table .table td:nth-child(10),
.driver-expenses-grid-table .table th:nth-child(11),
.driver-expenses-grid-table .table td:nth-child(11) {
  width: 9%;
}

.driver-expenses-grid-table .table th:nth-child(12),
.driver-expenses-grid-table .table td:nth-child(12) {
  width: 12%;
  text-align: center;
}

.driver-expenses-grid-table .button-row {
  justify-content: center;
  gap: 6px;
}

.driver-expenses-grid-table .table td .button,
.driver-expenses-grid-table .table td .table-action-link {
  padding-inline: 8px;
  min-height: 32px;
}

.vehicle-rental-cell {
  display: grid;
  gap: 4px;
}

.vehicle-rental-cell strong {
  color: #173038;
  font-size: 13px;
  line-height: 1.35;
}

.vehicle-rental-cell .muted {
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 1360px) {
  .fleet-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fleet-kpi-grid .fleet-kpi-card:last-child {
    grid-column: span 1;
  }
}

@media (max-width: 1080px) {
  .fleet-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .fleet-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .fleet-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Performance mode: disable animations and expensive blur effects on slower PCs. */
*,
*::before,
*::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

body,
.page-shell,
.panel,
.panel-head,
.compact-panel,
.compact-card-form,
.login-panel,
.flash,
input,
select,
.readonly-field,
.daily-uetds-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.panel:hover,
.detail-item:hover,
.folder-chip:hover,
.button:hover,
.row-detail-link:hover {
  transform: none !important;
}

.current-accounts-page .panel,
.current-accounts-page .table-card {
  border-color: rgba(18, 49, 56, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 239, 228, 0.95));
  box-shadow: 0 12px 28px rgba(12, 29, 35, 0.08);
}

.current-accounts-page .list-item,
.current-accounts-page .detail-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 239, 228, 0.95));
  border-color: rgba(18, 49, 56, 0.1);
}

.current-accounts-page .row-detail-link {
  color: var(--accent-deep);
  font-weight: 700;
}

.current-accounts-page .row-detail-link:hover {
  color: var(--ink);
  text-decoration: underline;
}
.job-tracking-pickup-table .table th:nth-child(9),
.job-tracking-pickup-table .table td:nth-child(9) {
  min-width: 150px;
}

.job-tracking-pickup-table .table th:nth-child(10),
.job-tracking-pickup-table .table td:nth-child(10) {
  min-width: 210px;
}

.job-tracking-pickup-table .table th:nth-child(11),
.job-tracking-pickup-table .table td:nth-child(11) {
  min-width: 110px;
}

.pickup-phone-cell,
.pickup-state-stack {
  display: grid;
  gap: 6px;
}

.pickup-phone-cell span,
.pickup-state-stack .pickup-meta {
  font-size: 12px;
  color: var(--ink-soft);
}

.pickup-confirm-form {
  margin: 0;
}

.pickup-confirm-form .checkbox-row {
  justify-content: flex-start;
  white-space: nowrap;
}

.pickup-alarm-row td {
  background: rgba(182, 73, 73, 0.08);
}

.pickup-confirmed-row td {
  background: rgba(31, 122, 91, 0.08);
}

.table tbody tr.jobs-cancelled-row,
.table tbody tr.jobs-cancelled-row:nth-child(even) {
  background: linear-gradient(90deg, rgba(178, 79, 71, 0.14), rgba(178, 79, 71, 0.05));
}

.table tbody tr.jobs-cancelled-row:hover {
  background: linear-gradient(90deg, rgba(178, 79, 71, 0.18), rgba(178, 79, 71, 0.08));
  box-shadow: inset 4px 0 0 rgba(178, 79, 71, 0.55);
}

.table tbody tr.jobs-split-row,
.table tbody tr.jobs-split-row:nth-child(even) {
  background-image: linear-gradient(90deg, rgba(50, 91, 141, 0.1), rgba(50, 91, 141, 0.03));
}

.pickup-contact-card {
  gap: 4px;
  margin-bottom: 6px;
  padding: 8px 10px;
  border-radius: 10px;
}

.pickup-contact-list {
  gap: 6px;
}

.pickup-contact-card .vehicle-inline-row {
  grid-template-columns: minmax(0, 1fr) minmax(132px, 150px);
  gap: 8px;
}

.pickup-contact-card label {
  font-size: 0.78rem;
}

.pickup-contact-card .compact-meta {
  margin-top: 4px;
  font-size: 0.72rem;
}

.pickup-contact-card input[type="text"] {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 11px;
  font-size: 0.84rem;
}

@media (max-width: 700px) {
  .pickup-contact-card .vehicle-inline-row {
    grid-template-columns: 1fr;
  }
}

.fleet-raw-fit-table.table-wrap {
  overflow-x: hidden !important;
}

.fleet-raw-fit-table.table-wrap .table,
.fleet-raw-fit-table.table-wrap .table.dense {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.fleet-raw-fit-table.table-wrap .table th,
.fleet-raw-fit-table.table-wrap .table td,
.fleet-raw-fit-table.table-wrap .table th[data-col-kind],
.fleet-raw-fit-table.table-wrap .table td[data-col-kind],
.fleet-raw-fit-table.table-wrap .table th[data-col-key],
.fleet-raw-fit-table.table-wrap .table td[data-col-key] {
  min-width: 0 !important;
  max-width: none !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

.page-fleet {
  overflow-x: hidden;
}

.page-fleet .main-panel,
.page-fleet .main-panel-inner,
.fleet-raw-detail-stack,
.fleet-raw-detail-stack .raw-table-card {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.fleet-raw-fit-table.table-wrap .table th,
.fleet-raw-fit-table.table-wrap .table td {
  padding: 8px 5px !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
}

.fleet-raw-fuel-table.table-wrap .table th:nth-child(1),
.fleet-raw-fuel-table.table-wrap .table td:nth-child(1) { width: 9% !important; }
.fleet-raw-fuel-table.table-wrap .table th:nth-child(2),
.fleet-raw-fuel-table.table-wrap .table td:nth-child(2) { width: 10% !important; }
.fleet-raw-fuel-table.table-wrap .table th:nth-child(3),
.fleet-raw-fuel-table.table-wrap .table td:nth-child(3) { width: 9% !important; }
.fleet-raw-fuel-table.table-wrap .table th:nth-child(4),
.fleet-raw-fuel-table.table-wrap .table td:nth-child(4) { width: 9% !important; }
.fleet-raw-fuel-table.table-wrap .table th:nth-child(5),
.fleet-raw-fuel-table.table-wrap .table td:nth-child(5) { width: 8% !important; }
.fleet-raw-fuel-table.table-wrap .table th:nth-child(6),
.fleet-raw-fuel-table.table-wrap .table td:nth-child(6) { width: 10% !important; }
.fleet-raw-fuel-table.table-wrap .table th:nth-child(7),
.fleet-raw-fuel-table.table-wrap .table td:nth-child(7) { width: 25% !important; }
.fleet-raw-fuel-table.table-wrap .table th:nth-child(8),
.fleet-raw-fuel-table.table-wrap .table td:nth-child(8) { width: 12% !important; }

.fleet-raw-maintenance-table.table-wrap .table th:nth-child(1),
.fleet-raw-maintenance-table.table-wrap .table td:nth-child(1) { width: 9% !important; }
.fleet-raw-maintenance-table.table-wrap .table th:nth-child(2),
.fleet-raw-maintenance-table.table-wrap .table td:nth-child(2) { width: 10% !important; }
.fleet-raw-maintenance-table.table-wrap .table th:nth-child(3),
.fleet-raw-maintenance-table.table-wrap .table td:nth-child(3) { width: 9% !important; }
.fleet-raw-maintenance-table.table-wrap .table th:nth-child(4),
.fleet-raw-maintenance-table.table-wrap .table td:nth-child(4) { width: 8% !important; }
.fleet-raw-maintenance-table.table-wrap .table th:nth-child(5),
.fleet-raw-maintenance-table.table-wrap .table td:nth-child(5) { width: 16% !important; }
.fleet-raw-maintenance-table.table-wrap .table th:nth-child(6),
.fleet-raw-maintenance-table.table-wrap .table td:nth-child(6) { width: 35% !important; }
.fleet-raw-maintenance-table.table-wrap .table th:nth-child(7),
.fleet-raw-maintenance-table.table-wrap .table td:nth-child(7) { width: 13% !important; }

/* Gunluk is listesi tabloyu yatay scroll olmadan ekrana sigdirsin. */
.jobs-grid-table {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

.jobs-grid-table .table,
.jobs-grid-table .table.dense {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.jobs-grid-table .table th,
.jobs-grid-table .table td {
  min-width: 0 !important;
  max-width: none !important;
  padding: 8px 6px !important;
  vertical-align: top;
}

.jobs-grid-table .table th {
  font-size: 9px !important;
  line-height: 1.15 !important;
  letter-spacing: 0.03em;
  white-space: nowrap !important;
}

.jobs-grid-table .table td {
  font-size: 12px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  hyphens: auto;
}

.jobs-grid-table .table .table-header-tools {
  gap: 4px;
}

.jobs-grid-table .table .table-sort-button {
  gap: 4px;
  padding: 5px 2px;
}

.jobs-grid-table .table .table-sort-label {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

.jobs-grid-table .table .row-detail-link,
.jobs-grid-table .table .jobs-driver-cell,
.jobs-grid-table .table .nowrap-cell {
  display: block;
  width: 100%;
}

.jobs-grid-table .table .nowrap-cell {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jobs-grid-table .table .table-col--plaka,
.jobs-grid-table .table .table-col--plaka .nowrap-cell,
.table th[data-col-kind="plate"],
.table td[data-col-kind="plate"] {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.jobs-grid-table .table .table-col--saat,
.jobs-grid-table .table .table-col--durum,
.jobs-grid-table .table .table-col--tip,
.jobs-grid-table .table .table-col--pax,
.jobs-grid-table .table .table-col--arac,
.jobs-grid-table .table .table-col--plk-is,
.jobs-grid-table .table .table-col--atama,
.jobs-grid-table .table .table-col--uyari {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
}

.jobs-grid-table .table .table-col--mstr,
.jobs-grid-table .table .table-col--yon,
.jobs-grid-table .table .table-col--sofor,
.jobs-grid-table .table .table-col--atn,
.jobs-grid-table .table .table-col--islem {
  white-space: normal !important;
}

.jobs-grid-table .table .table-col--saat { width: 6% !important; }
.jobs-grid-table .table .table-col--durum { width: 7% !important; }
.jobs-grid-table .table .table-col--tip { width: 6% !important; }
.jobs-grid-table .table .table-col--mstr { width: 8% !important; }
.jobs-grid-table .table .table-col--yon { width: 8% !important; }
.jobs-grid-table .table .table-col--pax { width: 4% !important; }
.jobs-grid-table .table .table-col--ist-arac { width: 6.5% !important; }
.jobs-grid-table .table .table-col--plaka { width: 9% !important; }
.jobs-grid-table .table .table-col--arac { width: 3.5% !important; }
.jobs-grid-table .table .table-col--plk-is { width: 4% !important; }
.jobs-grid-table .table .table-col--sofor { width: 8% !important; }
.jobs-grid-table .table .table-col--atama { width: 4.5% !important; text-align: center; }
.jobs-grid-table .table .table-col--uyari { width: 3.5% !important; text-align: center; }
.jobs-grid-table .table .table-col--atn { width: 8% !important; }
.jobs-grid-table .table .table-col--islem { width: 11.5% !important; }

.jobs-grid-table .jobs-assignment-badge {
  min-width: 0;
  padding: 3px 6px;
  font-size: 9px;
}

.jobs-grid-table .jobs-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
  width: 100%;
}

.jobs-grid-table .jobs-inline-assign-form {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.jobs-grid-table .jobs-inline-assign-form select {
  min-width: 42px;
  width: 42px;
  max-width: 42px;
  padding: 8px 22px 8px 8px;
}

.jobs-grid-table .jobs-row-actions .table-action-link,
.jobs-grid-table .jobs-row-actions .table-form .button,
.jobs-grid-table .jobs-row-actions .whatsapp-action-button {
  min-width: 0;
  min-height: 42px;
  height: 42px;
  padding: 8px 9px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1;
}

.jobs-grid-table .jobs-row-actions .whatsapp-action-button {
  flex: 0 0 42px;
  min-width: 42px;
  width: 42px;
  max-width: 42px;
  padding: 0;
}

.jobs-grid-table .jobs-row-actions .whatsapp-button-icon {
  width: 18px;
  height: 18px;
}

.jobs-grid-table .jobs-row-actions .jobs-mini-action {
  min-width: 44px;
}

.jobs-grid-table .jobs-row-actions .jobs-delete-action {
  min-width: 38px;
}

/* Tum tablo iceriklerini kart icine sigdir ve basliklari ortala. */
.table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.table,
.table.dense,
.table-wrap .table,
.table-wrap .table.dense,
.jobs-grid-table .table,
.jobs-grid-table .table.dense,
.fleet-main-table .table,
.fleet-data-table .table,
.shared-files-fleet-table .table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.table th,
.table td,
.table th[data-col-kind],
.table td[data-col-kind],
.table th[data-col-key],
.table td[data-col-key] {
  min-width: 0 !important;
  max-width: none !important;
  vertical-align: top;
}

.table th {
  padding: 10px 8px !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  text-align: center !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
}

.table td {
  padding: 11px 8px !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  hyphens: auto;
}

.table-header-tools {
  width: 100%;
  justify-content: center !important;
  align-items: center !important;
}

.table-sort-button,
.table-header-label,
.table-sort-label {
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

.table-sort-button {
  gap: 8px !important;
  padding: 10px 8px !important;
}

.table-sort-label,
.table-header-label {
  width: 100%;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  line-height: 1.25 !important;
}

.jobs-grid-table .table .table-col--arac,
.jobs-grid-table .table .table-col--uyari {
  width: 5% !important;
}

.jobs-grid-table .table .table-col--plk-is,
.jobs-grid-table .table .table-col--atama {
  width: 4.5% !important;
}

.jobs-grid-table .table .table-col--islem {
  width: 15% !important;
}

.table .button,
.table .table-action-link,
.table .whatsapp-action-button,
.table .table-form .button {
  max-width: 100%;
}

/* Arac havuzunda secim kutusu dar olsun, plaka sabit gorunsun. */
.vehicle-pool-fit .table th.table-col--secim,
.vehicle-pool-fit .table td.table-col--secim {
  min-width: 26px !important;
  width: 26px !important;
  max-width: 26px !important;
  padding-left: 3px !important;
  padding-right: 3px !important;
}

.vehicle-pool-fit .vehicle-bulk-check input[type="checkbox"],
.vehicle-pool-fit .vehicle-bulk-master {
  width: 14px !important;
  height: 14px !important;
}

.vehicle-pool-fit .table th.table-col--plaka,
.vehicle-pool-fit .table td.table-col--plaka {
  min-width: 104px !important;
  width: 104px !important;
  max-width: 104px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.vehicle-pool-fit .table th.table-col--koltuk,
.vehicle-pool-fit .table td.table-col--koltuk,
.vehicle-pool-fit .table th.table-col--vip,
.vehicle-pool-fit .table td.table-col--vip,
.vehicle-pool-fit .table th.table-col--elit-vip,
.vehicle-pool-fit .table td.table-col--elit-vip {
  min-width: 30px !important;
  width: 30px !important;
  max-width: 30px !important;
}

.vehicle-pool-fit .table th.table-col--sil,
.vehicle-pool-fit .table td.table-col--sil {
  min-width: 42px !important;
  width: 42px !important;
  max-width: 42px !important;
}

/* Vehicle pool after removing ruhsat/evrak action column: redistribute width, keep no horizontal scroll. */
.vehicle-pool-fit .table-col--plaka {
  width: 10% !important;
}

.vehicle-pool-fit .table-col--tip,
.vehicle-pool-fit .table-col--bolge,
.vehicle-pool-fit .table-col--ana-bolge,
.vehicle-pool-fit .table-col--bakim,
.vehicle-pool-fit .table-col--durum {
  width: 6% !important;
}

.vehicle-pool-fit .table-col--aylik-arac-tipi,
.vehicle-pool-fit .table-col--operasyon,
.vehicle-pool-fit .table-col--sofor {
  width: 7% !important;
}

.vehicle-pool-fit .table-col--acenta-bagli-musteri {
  width: 12.5% !important;
}

.vehicle-pool-fit .table-col--aylik-kira,
.vehicle-pool-fit .table-col--acenta-kira-geliri {
  width: 6.5% !important;
}

.vehicle-pool-fit .table-col--sil {
  width: 4.5% !important;
}

/* Final table-fit pass: keep every app table inside its card and center headers. */
.table-wrap,
.compact-scroll,
.tall-scroll,
.raw-table-card .table-wrap,
.job-tracking-pickup-table,
.drivers-grid-table,
.fleet-raw-fit-table.table-wrap,
.fleet-raw-fuel-table.table-wrap,
.fleet-raw-maintenance-table.table-wrap,
.decision-reports-table,
.vehicle-pool-fit,
.jobs-grid-table {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.table-wrap .table,
.table-wrap .table.dense,
.compact-scroll .table,
.compact-scroll .table.dense,
.tall-scroll .table,
.tall-scroll .table.dense,
.raw-table-card .table-wrap .table,
.raw-table-card .table-wrap .table.dense,
.job-tracking-pickup-table .table,
.job-tracking-pickup-table .table.dense,
.drivers-grid-table .table,
.drivers-grid-table .table.dense,
.fleet-raw-fit-table.table-wrap .table,
.fleet-raw-fit-table.table-wrap .table.dense,
.fleet-raw-fuel-table.table-wrap .table,
.fleet-raw-fuel-table.table-wrap .table.dense,
.fleet-raw-maintenance-table.table-wrap .table,
.fleet-raw-maintenance-table.table-wrap .table.dense,
.decision-reports-table .table,
.decision-reports-table .table.dense,
.vehicle-pool-fit .table,
.vehicle-pool-fit .table.dense,
.jobs-grid-table .table,
.jobs-grid-table .table.dense {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.table-wrap .table th,
.table-wrap .table td,
.compact-scroll .table th,
.compact-scroll .table td,
.tall-scroll .table th,
.tall-scroll .table td,
.raw-table-card .table-wrap .table th,
.raw-table-card .table-wrap .table td,
.job-tracking-pickup-table .table th,
.job-tracking-pickup-table .table td,
.drivers-grid-table .table th,
.drivers-grid-table .table td,
.fleet-raw-fit-table.table-wrap .table th,
.fleet-raw-fit-table.table-wrap .table td,
.fleet-raw-fuel-table.table-wrap .table th,
.fleet-raw-fuel-table.table-wrap .table td,
.fleet-raw-maintenance-table.table-wrap .table th,
.fleet-raw-maintenance-table.table-wrap .table td,
.decision-reports-table .table th,
.decision-reports-table .table td,
.vehicle-pool-fit .table th,
.vehicle-pool-fit .table td,
.jobs-grid-table .table th,
.jobs-grid-table .table td {
  min-width: 0 !important;
  max-width: none !important;
}

.table-wrap .table th,
.compact-scroll .table th,
.tall-scroll .table th,
.raw-table-card .table-wrap .table th,
.job-tracking-pickup-table .table th,
.drivers-grid-table .table th,
.fleet-raw-fit-table.table-wrap .table th,
.fleet-raw-fuel-table.table-wrap .table th,
.fleet-raw-maintenance-table.table-wrap .table th,
.decision-reports-table .table th,
.vehicle-pool-fit .table th,
.jobs-grid-table .table th {
  text-align: center !important;
  vertical-align: middle !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.table-wrap .table td,
.compact-scroll .table td,
.tall-scroll .table td,
.raw-table-card .table-wrap .table td,
.job-tracking-pickup-table .table td,
.drivers-grid-table .table td,
.fleet-raw-fit-table.table-wrap .table td,
.fleet-raw-fuel-table.table-wrap .table td,
.fleet-raw-maintenance-table.table-wrap .table td,
.decision-reports-table .table td,
.vehicle-pool-fit .table td,
.jobs-grid-table .table td {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
  vertical-align: top !important;
}

.table-wrap .table .table-header-tools,
.compact-scroll .table .table-header-tools,
.tall-scroll .table .table-header-tools,
.raw-table-card .table-wrap .table .table-header-tools,
.job-tracking-pickup-table .table .table-header-tools,
.drivers-grid-table .table .table-header-tools,
.fleet-raw-fit-table.table-wrap .table .table-header-tools,
.fleet-raw-fuel-table.table-wrap .table .table-header-tools,
.fleet-raw-maintenance-table.table-wrap .table .table-header-tools,
.decision-reports-table .table .table-header-tools,
.vehicle-pool-fit .table .table-header-tools,
.jobs-grid-table .table .table-header-tools,
.table-wrap .table .table-sort-button,
.compact-scroll .table .table-sort-button,
.tall-scroll .table .table-sort-button,
.raw-table-card .table-wrap .table .table-sort-button,
.job-tracking-pickup-table .table .table-sort-button,
.drivers-grid-table .table .table-sort-button,
.fleet-raw-fit-table.table-wrap .table .table-sort-button,
.fleet-raw-fuel-table.table-wrap .table .table-sort-button,
.fleet-raw-maintenance-table.table-wrap .table .table-sort-button,
.decision-reports-table .table .table-sort-button,
.vehicle-pool-fit .table .table-sort-button,
.jobs-grid-table .table .table-sort-button,
.table-wrap .table .table-sort-label,
.compact-scroll .table .table-sort-label,
.tall-scroll .table .table-sort-label,
.raw-table-card .table-wrap .table .table-sort-label,
.job-tracking-pickup-table .table .table-sort-label,
.drivers-grid-table .table .table-sort-label,
.fleet-raw-fit-table.table-wrap .table .table-sort-label,
.fleet-raw-fuel-table.table-wrap .table .table-sort-label,
.fleet-raw-maintenance-table.table-wrap .table .table-sort-label,
.decision-reports-table .table .table-sort-label,
.vehicle-pool-fit .table .table-sort-label,
.jobs-grid-table .table .table-sort-label,
.table-wrap .table .table-header-label,
.compact-scroll .table .table-header-label,
.tall-scroll .table .table-header-label,
.raw-table-card .table-wrap .table .table-header-label,
.job-tracking-pickup-table .table .table-header-label,
.drivers-grid-table .table .table-header-label,
.fleet-raw-fit-table.table-wrap .table .table-header-label,
.fleet-raw-fuel-table.table-wrap .table .table-header-label,
.fleet-raw-maintenance-table.table-wrap .table .table-header-label,
.decision-reports-table .table .table-header-label,
.vehicle-pool-fit .table .table-header-label,
.jobs-grid-table .table .table-header-label {
  justify-content: center !important;
  text-align: center !important;
}

.driver-app-shell {
  display: grid;
  gap: 18px;
}

.driver-app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.driver-app-header h2,
.driver-app-header .muted,
.driver-app-header .eyebrow {
  color: #f7fbfd;
}

.driver-app-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.driver-app-banner {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 204, 90, 0.35);
  background: linear-gradient(135deg, rgba(255, 208, 92, 0.18), rgba(255, 145, 77, 0.18));
  color: #fff5d9;
  box-shadow: 0 18px 36px rgba(255, 162, 0, 0.12);
}

.driver-app-status-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.driver-app-status-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(8, 26, 31, 0.55);
  border: 1px solid rgba(116, 170, 176, 0.2);
  color: #f7fbfd;
}

.driver-app-jobs-panel {
  padding: 22px;
}

.driver-app-jobs-grid {
  display: grid;
  gap: 18px;
}

.driver-app-job-list {
  display: grid;
  gap: 14px;
}

.driver-app-job-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(246, 239, 226, 0.96));
  color: #18313a;
  border: 1px solid rgba(185, 165, 132, 0.22);
  box-shadow: 0 16px 40px rgba(10, 22, 26, 0.08);
}

.driver-app-job-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.driver-app-job-top h3 {
  margin: 4px 0 0;
  font-size: 1.2rem;
}

.driver-app-job-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.driver-app-job-grid div {
  display: grid;
  gap: 4px;
}

.driver-app-job-grid strong,
.driver-app-status-card strong {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #677983;
}

.driver-app-status-card strong {
  color: #cfe5eb;
}

.driver-app-status-card span {
  color: #f7fbfd;
}

.driver-app-span-2 {
  grid-column: 1 / -1;
}

.driver-app-job-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 45, 52, 0.06);
  color: #40555e;
}

.driver-app-job-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.driver-app-job-downloads {
  display: grid;
  gap: 8px;
  flex: 1 1 100%;
  width: 100%;
  padding: 10px;
  border-radius: 14px;
  background: rgba(15, 45, 52, 0.06);
}

.driver-app-download-title {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #526871;
}

.driver-app-job-downloads .button {
  justify-content: space-between;
  width: 100%;
  max-width: none;
  min-height: 40px;
  text-align: left;
}

.driver-app-job-downloads .button small {
  overflow: hidden;
  max-width: 62%;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  opacity: 0.78;
}

.driver-app-job-actions .compact-action-button--small,
.driver-app-secondary-actions .compact-action-button--small {
  flex: 0 0 auto;
  min-width: 0;
  width: auto;
  max-width: max-content;
  min-height: 30px;
  padding: 5px 9px;
  font-size: 10px;
  line-height: 1.1;
  border-radius: 10px;
}

.driver-app-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.driver-app-secondary-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.driver-app-bottom-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
  padding-bottom: 8px;
}

.driver-app-bottom-actions .button {
  min-width: 180px;
}

@media (max-width: 720px) {
  .driver-app-job-grid {
    grid-template-columns: 1fr;
  }

  .driver-app-job-top {
    flex-direction: column;
  }

  .driver-app-jobs-panel {
    padding: 16px;
  }

  .driver-app-detail-grid {
    grid-template-columns: 1fr;
  }

  .driver-app-bottom-actions {
    justify-content: stretch;
  }

  .driver-app-bottom-actions .table-form,
  .driver-app-bottom-actions .button {
    width: 100%;
  }
}

.preplanning-upload-form {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.preplanning-upload-form label {
  margin: 0;
}

.preplanning-upload-form input[type="file"] {
  min-width: 0;
}

.preplanning-grid-table {
  width: 100%;
  overflow: hidden;
}

.preplanning-grid-table .table,
.preplanning-grid-table .table.dense {
  width: 100%;
  table-layout: fixed;
}

.preplanning-grid-table .table th,
.preplanning-grid-table .table td {
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.preplanning-grid-table .table th {
  text-align: center;
}

.preplanning-grid-table .table th:nth-child(1),
.preplanning-grid-table .table td:nth-child(1) {
  width: 7%;
}

.preplanning-grid-table .table th:nth-child(2),
.preplanning-grid-table .table td:nth-child(2) {
  width: 8%;
}

.preplanning-grid-table .table th:nth-child(3),
.preplanning-grid-table .table td:nth-child(3) {
  width: 10%;
}

.preplanning-grid-table .table th:nth-child(4),
.preplanning-grid-table .table td:nth-child(4) {
  width: 9%;
}

.preplanning-grid-table .table th:nth-child(5),
.preplanning-grid-table .table td:nth-child(5) {
  width: 6%;
}

.preplanning-grid-table .table th:nth-child(6),
.preplanning-grid-table .table td:nth-child(6) {
  width: 10%;
}

.preplanning-grid-table .table th:nth-child(7),
.preplanning-grid-table .table td:nth-child(7) {
  width: 10%;
}

.preplanning-grid-table .table th:nth-child(8),
.preplanning-grid-table .table td:nth-child(8) {
  width: 10%;
}

.preplanning-grid-table .table th:nth-child(9),
.preplanning-grid-table .table td:nth-child(9) {
  width: 12%;
}

.preplanning-grid-table .table th:nth-child(10),
.preplanning-grid-table .table td:nth-child(10) {
  width: 5%;
  text-align: center;
}

.preplanning-grid-table .table th:nth-child(11),
.preplanning-grid-table .table td:nth-child(11) {
  width: 5%;
  text-align: center;
}

.preplanning-grid-table .table th:nth-child(12),
.preplanning-grid-table .table td:nth-child(12) {
  width: 8%;
}

@media (max-width: 920px) {
  .preplanning-upload-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .hero,
  .hero.compact,
  .global-hero,
  .panel-head,
  .driver-app-header {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .hero-actions,
  .driver-app-toolbar {
    width: 100%;
    justify-content: stretch;
  }

  .hero-actions .button,
  .driver-app-toolbar .button {
    width: 100%;
  }

  .stats-grid,
  .driver-app-status-row,
  .daily-command-grid,
  .daily-command-actions,
  .detail-grid,
  .driver-app-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .card-form.two-col,
  .compact-filter,
  .preplanning-upload-form {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .card-form.two-col > input,
  .card-form.two-col > select,
  .card-form.two-col > textarea,
  .card-form.two-col > .readonly-field,
  .card-form.two-col > .checkbox-row,
  .card-form.two-col > .field-help,
  .card-form.two-col > .button-row,
  .card-form.two-col > .form-span-2 {
    grid-column: span 2;
  }

  .button-row,
  .compact-button-row,
  .daily-command-upload-form .button-row,
  .driver-app-job-actions,
  .driver-app-secondary-actions {
    flex-wrap: wrap;
  }

  .button-row .button,
  .compact-button-row .button,
  .daily-command-upload-form .button-row .button,
  .driver-app-job-actions .button,
  .driver-app-secondary-actions .button {
    flex: 1 1 220px;
  }

  .driver-app-job-actions .compact-action-button--small,
  .driver-app-secondary-actions .compact-action-button--small {
    flex: 0 0 auto;
    width: auto;
    max-width: max-content;
  }

  .table-wrap,
  .compact-scroll,
  .tall-scroll,
  .shared-files-fleet-table,
  .vehicle-doc-download-fit,
  .preplanning-grid-table {
    width: 100%;
    overflow-x: hidden;
  }

  .table-wrap .table,
  .table-wrap .table.dense,
  .compact-scroll .table,
  .compact-scroll .table.dense,
  .tall-scroll .table,
  .tall-scroll .table.dense,
  .shared-files-fleet-table .table,
  .shared-files-fleet-table .table.dense,
  .vehicle-doc-download-fit .table,
  .vehicle-doc-download-fit .table.dense,
  .preplanning-grid-table .table,
  .preplanning-grid-table .table.dense {
    width: 100%;
    table-layout: fixed;
  }

  .table-wrap .table th,
  .table-wrap .table td,
  .compact-scroll .table th,
  .compact-scroll .table td,
  .tall-scroll .table th,
  .tall-scroll .table td,
  .shared-files-fleet-table .table th,
  .shared-files-fleet-table .table td,
  .vehicle-doc-download-fit .table th,
  .vehicle-doc-download-fit .table td,
  .preplanning-grid-table .table th,
  .preplanning-grid-table .table td {
    padding: 10px 8px;
    font-size: 0.9rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .content-shell,
  .dashboard-main,
  .content-main,
  .calendar-main {
    padding-left: 12px;
    padding-right: 12px;
    gap: 12px;
  }

  .hero,
  .hero.compact,
  .global-hero,
  .panel,
  .panel-head,
  .panel-body,
  .driver-app-shell,
  .driver-app-jobs-panel,
  .driver-app-job-card {
    padding-left: 14px;
    padding-right: 14px;
  }

  .stats-grid,
  .driver-app-status-row,
  .daily-command-grid,
  .daily-command-actions,
  .detail-grid,
  .driver-app-detail-grid,
  .card-form.two-col,
  .compact-filter,
  .preplanning-upload-form {
    grid-template-columns: 1fr;
  }

  .card-form.two-col > input,
  .card-form.two-col > select,
  .card-form.two-col > textarea,
  .card-form.two-col > .readonly-field,
  .card-form.two-col > .checkbox-row,
  .card-form.two-col > .field-help,
  .card-form.two-col > .button-row,
  .card-form.two-col > .form-span-2 {
    grid-column: auto;
  }

  .compact-filter > div,
  .compact-filter > input,
  .compact-filter > select,
  .compact-filter > button,
  .compact-filter > .button,
  .compact-filter > a.button {
    width: 100%;
  }

  .compact-filter .inline-form,
  .button-row,
  .compact-button-row,
  .daily-command-upload-form .button-row,
  .driver-app-job-actions,
  .driver-app-secondary-actions,
  .driver-app-bottom-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row .button,
  .compact-button-row .button,
  .daily-command-upload-form .button-row .button,
  .driver-app-job-actions .button,
  .driver-app-secondary-actions .button,
  .driver-app-bottom-actions .button,
  .driver-app-bottom-actions .table-form {
    width: 100%;
    min-width: 0;
  }

  .driver-app-job-actions .compact-action-button--small,
  .driver-app-secondary-actions .compact-action-button--small {
    width: auto;
    max-width: max-content;
    align-self: flex-start;
  }

  .table-wrap .table th,
  .table-wrap .table td,
  .compact-scroll .table th,
  .compact-scroll .table td,
  .tall-scroll .table th,
  .tall-scroll .table td,
  .shared-files-fleet-table .table th,
  .shared-files-fleet-table .table td,
  .vehicle-doc-download-fit .table th,
  .vehicle-doc-download-fit .table td,
  .preplanning-grid-table .table th,
  .preplanning-grid-table .table td {
    padding: 9px 6px;
    font-size: 0.82rem;
  }

  .table-wrap .table .table-header-tools,
  .compact-scroll .table .table-header-tools {
    gap: 4px;
  }

  .hero h1,
  .hero h2,
  .global-hero-app,
  .hero-family-title,
  .driver-app-header h2 {
    font-size: 1.7rem;
    line-height: 1.15;
  }
}

@media (max-width: 480px) {
  .page-shell,
  .content-shell,
  .dashboard-main,
  .content-main,
  .calendar-main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero,
  .hero.compact,
  .global-hero,
  .panel,
  .panel-head,
  .panel-body,
  .driver-app-shell,
  .driver-app-jobs-panel,
  .driver-app-job-card {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero h1,
  .hero h2,
  .global-hero-app,
  .hero-family-title,
  .driver-app-header h2 {
    font-size: 1.45rem;
  }

  .table-wrap .table th,
  .table-wrap .table td,
  .compact-scroll .table th,
  .compact-scroll .table td,
  .tall-scroll .table th,
  .tall-scroll .table td,
  .shared-files-fleet-table .table th,
  .shared-files-fleet-table .table td,
  .vehicle-doc-download-fit .table th,
  .vehicle-doc-download-fit .table td,
  .preplanning-grid-table .table th,
  .preplanning-grid-table .table td {
    font-size: 0.78rem;
    padding: 8px 5px;
  }
}

/* Exclusive refinement: deepen the obsidian background, enrich bronze accents,
   and clean up bright surfaces without changing the existing layout model. */
:root {
  --bg-top: #020406;
  --bg-mid: #071019;
  --bg-bottom: #e8dccb;
  --surface: rgba(6, 13, 19, 0.9);
  --surface-soft: rgba(244, 238, 230, 0.92);
  --surface-strong: rgba(255, 250, 243, 0.985);
  --surface-alt: rgba(11, 22, 30, 0.94);
  --ink: #132026;
  --ink-soft: #5e696e;
  --ink-on-dark: #f7f2e9;
  --line: rgba(34, 46, 52, 0.14);
  --line-strong: rgba(255, 255, 255, 0.11);
  --accent: #b99454;
  --accent-deep: #6b4a22;
  --accent-soft: rgba(185, 148, 84, 0.16);
  --ocean: #698d94;
  --ocean-soft: rgba(105, 141, 148, 0.14);
  --positive: #315b4e;
  --positive-soft: rgba(49, 91, 78, 0.14);
  --warning: #936237;
  --warning-soft: rgba(147, 98, 55, 0.14);
  --danger: #7d403b;
  --shadow-xl: 0 44px 130px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 28px 76px rgba(1, 7, 12, 0.34);
  --shadow-md: 0 18px 42px rgba(2, 10, 16, 0.22);
}

body {
  background:
    radial-gradient(circle at 16% 14%, rgba(84, 129, 137, 0.15), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(185, 148, 84, 0.16), transparent 18%),
    linear-gradient(180deg, #020406 0%, #08131d 28%, #12212b 49%, #d4c2ad 76%, #e8dccb 100%);
}

.scene-glow-a {
  background: radial-gradient(circle, rgba(80, 128, 137, 0.22) 0%, rgba(80, 128, 137, 0.07) 42%, transparent 72%);
}

.scene-glow-b {
  background: radial-gradient(circle, rgba(185, 148, 84, 0.2) 0%, rgba(185, 148, 84, 0.05) 48%, transparent 72%);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(4, 11, 16, 0.985), rgba(10, 20, 28, 0.95)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.025),
    22px 0 44px rgba(0, 0, 0, 0.18);
}

.brand {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(185, 148, 84, 0.2), rgba(58, 90, 96, 0.08) 58%, rgba(8, 16, 22, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 68px rgba(0, 0, 0, 0.28);
}

.brand-mark {
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(145deg, rgba(118, 8, 18, 0.98), rgba(185, 21, 31, 0.94) 54%, rgba(88, 6, 12, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 16px 30px rgba(54, 0, 5, 0.34);
}

.nav-link {
  background: rgba(255, 255, 255, 0.018);
  color: rgba(247, 242, 233, 0.74);
}

.nav-link:hover,
.nav-link.active {
  color: #fff9f0;
  background: linear-gradient(135deg, rgba(185, 148, 84, 0.18), rgba(255, 255, 255, 0.055));
  border-color: rgba(185, 148, 84, 0.26);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.sidebar-stack .panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    linear-gradient(180deg, rgba(12, 24, 31, 0.95), rgba(8, 17, 23, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.global-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(90deg, rgba(5, 14, 19, 0.76), rgba(185, 148, 84, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.2);
}

.panel,
.compact-panel,
.login-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.58)),
    linear-gradient(180deg, rgba(251, 246, 239, 0.95), rgba(244, 236, 226, 0.95));
  border: 1px solid rgba(95, 73, 36, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 22px 54px rgba(31, 23, 14, 0.12);
}

.panel::before,
.panel::after {
  opacity: 0.72;
}

.panel:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 26px 62px rgba(28, 20, 10, 0.16);
}

.flash {
  background:
    linear-gradient(135deg, rgba(12, 28, 36, 0.94), rgba(24, 48, 56, 0.84)),
    linear-gradient(135deg, rgba(185, 148, 84, 0.16), transparent);
  border: 1px solid rgba(185, 148, 84, 0.24);
}

.button.primary {
  background: linear-gradient(135deg, #caab71, #a57836 58%, #7a551f);
  color: #fffaf4;
  border-color: rgba(94, 62, 20, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 16px 28px rgba(96, 67, 24, 0.24);
}

.button.primary:hover {
  background: linear-gradient(135deg, #d6b77d, #af8340 58%, #825a22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 18px 30px rgba(90, 61, 18, 0.28);
}

.button.secondary {
  background: rgba(255, 250, 244, 0.82);
  border-color: rgba(101, 79, 38, 0.15);
  color: #473117;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 24px rgba(28, 19, 9, 0.08);
}

.button.secondary:hover {
  background: rgba(255, 249, 239, 0.96);
  border-color: rgba(122, 90, 39, 0.22);
}

.public-access-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 252, 246, 0.72)),
    linear-gradient(180deg, rgba(244, 235, 220, 0.88), rgba(237, 225, 207, 0.88));
  border: 1px solid rgba(95, 71, 34, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 18px 38px rgba(39, 28, 13, 0.1);
}

.table-sort-button,
.table-filter-button,
th {
  color: #43311b;
}

.tag,
.chip,
.badge {
  box-shadow: 0 8px 18px rgba(29, 20, 9, 0.08);
}
.inline-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.inline-choice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line, rgba(133, 95, 52, 0.18));
  border-radius: 14px;
  background: rgba(255, 251, 245, 0.84);
}

.inline-choice input {
  margin: 0 0 2px 0;
}

.inline-choice span {
  font-weight: 700;
  color: var(--text-strong, #2f261a);
}

.inline-choice small {
  color: var(--text-muted, #6e6150);
  line-height: 1.35;
}

body.top-nav-shell.standard-layout.page-app .page-shell.top-nav-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
}

body.top-nav-shell.standard-layout.page-app .sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 22px 44px rgba(2, 10, 16, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  overflow: visible;
}

body.top-nav-shell.standard-layout.page-app .sidebar-primary {
  display: contents;
}

body.top-nav-shell.standard-layout.page-app .brand {
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
}

body.top-nav-shell.standard-layout.page-app .brand-mark {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  border-radius: 12px;
  font-size: 12px;
  flex: 0 0 40px;
}

body.top-nav-shell.standard-layout.page-app .brand h1 {
  font-size: 16px;
  line-height: 1.1;
}

body.top-nav-shell.standard-layout.page-app .brand .eyebrow {
  margin: 0 0 2px;
  font-size: 9px;
  letter-spacing: 0.16em;
}

body.top-nav-shell.standard-layout.page-app .nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
  align-content: center;
  align-items: center;
  overflow: visible;
  padding-bottom: 0;
}

body.top-nav-shell.standard-layout.page-app .nav-section {
  min-width: auto;
}

body.top-nav-shell.standard-layout.page-app .nav-section + .nav-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  box-shadow: none;
}

body.top-nav-shell.standard-layout.page-app .nav-accordion {
  position: relative;
  width: auto;
}

body.top-nav-shell.standard-layout.page-app .nav-section-summary {
  min-width: 118px;
  padding: 9px 14px;
  text-align: center;
  font-size: 12px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

body.top-nav-shell.standard-layout.page-app .nav-accordion .nav-section-links {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  min-width: 360px;
  max-width: min(72vw, 620px);
  padding: 14px;
  margin-top: 0;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(8, 19, 26, 0.96), rgba(12, 26, 33, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  border: 1px solid rgba(232, 207, 154, 0.16);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

body.top-nav-shell.standard-layout.page-app .nav-accordion[open] .nav-section-links {
  display: grid;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.top-nav-shell.standard-layout.page-app .nav-subsection + .nav-subsection {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 207, 154, 0.12);
}

body.top-nav-shell.standard-layout.page-app .nav-subsection-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px;
}

body.top-nav-shell.standard-layout.page-app .nav-link:hover,
body.top-nav-shell.standard-layout.page-app .nav-link.active {
  transform: translateY(-2px);
}

body.top-nav-shell.standard-layout.page-app .sidebar-stack {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;
  align-content: center;
}

body.top-nav-shell.standard-layout.page-app .sidebar-stack .panel {
  min-width: 0;
  margin: 0;
  padding: 6px 8px;
  border-radius: 12px;
  box-shadow: none;
}

body.top-nav-shell.standard-layout.page-app .sidebar-stack .panel h2 {
  font-size: 13px;
  line-height: 1.1;
}

body.top-nav-shell.standard-layout.page-app .sidebar-stack .panel .eyebrow {
  font-size: 7px;
  margin-bottom: 2px;
}

body.top-nav-shell.standard-layout.page-app .sidebar-stack .button {
  min-height: 32px;
  padding: 7px 12px;
  font-size: 12px;
}

body.top-nav-shell.standard-layout.page-app .sidebar-stack .user-panel .panel-head,
body.top-nav-shell.standard-layout.page-app .sidebar-stack .user-panel .panel-body {
  padding: 0;
}

body.top-nav-shell.standard-layout.page-app .sidebar-stack .user-panel .panel-body {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.top-nav-shell.standard-layout.page-app .sidebar-stack .user-panel .compact-meta {
  margin: 0;
  font-size: 11px;
  white-space: nowrap;
}

body.top-nav-shell.standard-layout.page-app .sidebar-stack .user-panel form {
  margin: 0;
}

body.top-nav-shell.standard-layout.page-app .main-panel {
  padding: 18px 24px 28px;
}

body.top-nav-shell.standard-layout.page-app .main-panel-inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.top-nav-shell.standard-layout.page-app .global-hero {
  margin-bottom: 18px;
}

@media (max-width: 1240px) {
  body.top-nav-shell.standard-layout.page-app .sidebar {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  body.top-nav-shell.standard-layout.page-app .sidebar-stack {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

}

@media (max-width: 820px) {
  body.top-nav-shell.standard-layout.page-app .sidebar {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  body.top-nav-shell.standard-layout.page-app .nav {
    display: grid;
    overflow: visible;
    justify-content: stretch;
  }

  body.top-nav-shell.standard-layout.page-app .nav-section,
  body.top-nav-shell.standard-layout.page-app .nav-section-summary {
    min-width: 100%;
  }

  body.top-nav-shell.standard-layout.page-app .brand {
    display: grid;
    justify-content: start;
  }

  body.top-nav-shell.standard-layout.page-app .sidebar-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body.top-nav-shell.standard-layout.page-app .nav-accordion .nav-section-links {
    position: static;
    min-width: 100%;
    max-width: none;
    margin-top: 10px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  body.top-nav-shell.standard-layout.page-app .nav-subsection-links {
    grid-template-columns: minmax(0, 1fr);
  }

  body.top-nav-shell.standard-layout.page-app .main-panel {
    padding: 14px 16px 24px;
  }
}

body.top-nav-shell.standard-layout.page-app .sidebar {
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 12px 18px;
}

body.top-nav-shell.standard-layout.page-app .top-header-brand .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  min-height: 64px;
}

body.top-nav-shell.standard-layout.page-app .top-header-brand .brand-mark {
  width: 40px;
  height: 40px;
  margin: 0;
  flex: 0 0 40px;
  font-size: 12px;
}

body.top-nav-shell.standard-layout.page-app .top-header-brand-copy .eyebrow {
  margin: 0 0 2px;
  font-size: 9px;
  letter-spacing: 0.16em;
}

body.top-nav-shell.standard-layout.page-app .top-header-brand-copy h1 {
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
}

body.top-nav-shell.standard-layout.page-app .top-header-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  position: relative;
}

body.top-nav-shell.standard-layout.page-app .top-nav-main-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

body.top-nav-shell.standard-layout.page-app .top-nav-cluster {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.top-nav-shell.standard-layout.page-app .top-nav-cluster-title,
body.top-nav-shell.standard-layout.page-app .top-nav-panel-title {
  color: #e2c88f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.top-nav-shell.standard-layout.page-app .top-nav-cluster-links,
body.top-nav-shell.standard-layout.page-app .top-nav-panel-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.top-nav-shell.standard-layout.page-app .top-nav-chip,
body.top-nav-shell.standard-layout.page-app .top-nav-module-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(232, 207, 154, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #f4efe5;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

body.top-nav-shell.standard-layout.page-app .top-nav-chip:hover,
body.top-nav-shell.standard-layout.page-app .top-nav-chip.active {
  background: linear-gradient(135deg, rgba(199, 163, 91, 0.16), rgba(255, 255, 255, 0.06));
  border-color: rgba(199, 163, 91, 0.3);
  transform: translateY(-1px);
}

body.top-nav-shell.standard-layout.page-app .top-nav-module-pill {
  min-width: 116px;
  background: rgba(232, 207, 154, 0.08);
  text-transform: uppercase;
}

body.top-nav-shell.standard-layout.page-app .top-nav-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px;
}

body.top-nav-shell.standard-layout.page-app .top-nav-panel-group {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(8, 19, 26, 0.9), rgba(12, 26, 33, 0.86)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  border: 1px solid rgba(232, 207, 154, 0.12);
}

body.top-nav-shell.standard-layout.page-app .top-nav-hidden-menu {
  position: relative;
  justify-self: start;
}

body.top-nav-shell.standard-layout.page-app .top-nav-hidden-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(232, 207, 154, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #f4efe5;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

body.top-nav-shell.standard-layout.page-app .top-nav-hidden-trigger::-webkit-details-marker {
  display: none;
}

body.top-nav-shell.standard-layout.page-app .top-nav-hidden-surface {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(1080px, calc(100vw - 320px));
  padding: 12px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(8, 19, 26, 0.98), rgba(12, 26, 33, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  border: 1px solid rgba(232, 207, 154, 0.14);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.28);
  z-index: 40;
}

body.top-nav-shell.standard-layout.page-app .top-nav-hidden-menu:not([open]) .top-nav-hidden-surface {
  display: none;
}

body.top-nav-shell.standard-layout.page-app .top-header-user {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

body.top-nav-shell.standard-layout.page-app .top-header-user .user-panel {
  margin: 0;
  padding: 8px 10px;
  border-radius: 14px;
  min-width: 0;
}

body.top-nav-shell.standard-layout.page-app .top-header-user .user-panel .panel-head,
body.top-nav-shell.standard-layout.page-app .top-header-user .user-panel .panel-body {
  padding: 0;
}

body.top-nav-shell.standard-layout.page-app .top-header-user .user-panel .panel-body {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.top-nav-shell.standard-layout.page-app .top-header-user .user-panel h2 {
  font-size: 13px;
}

body.top-nav-shell.standard-layout.page-app .top-header-user .user-panel .eyebrow {
  margin-bottom: 2px;
  font-size: 7px;
}

body.top-nav-shell.standard-layout.page-app .top-header-user .user-panel .compact-meta {
  margin: 0;
  font-size: 11px;
  white-space: nowrap;
}

body.top-nav-shell.standard-layout.page-app .top-header-user .user-panel .button {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 11px;
}

.calendar-toolbar-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
}

.calendar-toolbar-panel .panel-head {
  flex: 0 0 auto;
  min-width: 150px;
  padding: 0 6px;
  border-bottom: 0;
}

.calendar-toolbar-panel .panel-head .eyebrow {
  margin-bottom: 2px;
  font-size: 8px;
}

.calendar-toolbar-panel .panel-head h2 {
  font-size: 15px;
  line-height: 1.1;
}

.calendar-toolbar-panel .panel-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}

.calendar-toolbar-panel .compact-filter {
  width: 100%;
  gap: 6px 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  flex-wrap: nowrap;
  align-items: center;
}

.calendar-toolbar-panel .compact-filter > label {
  flex: 0 0 auto;
  margin: 0;
}

.calendar-toolbar-panel .compact-filter > div,
.calendar-toolbar-panel .compact-filter > input,
.calendar-toolbar-panel .compact-filter > select {
  min-width: 0;
}

.calendar-toolbar-panel .compact-filter > select {
  flex: 1 1 auto;
  width: auto;
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.calendar-toolbar-panel .compact-filter .button,
.calendar-toolbar-panel .compact-filter button,
.calendar-toolbar-panel .compact-filter input[type="submit"] {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
}

@media (max-width: 1240px) {
  body.top-nav-shell.standard-layout.page-app .sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  body.top-nav-shell.standard-layout.page-app .top-nav-panel {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  body.top-nav-shell.standard-layout.page-app .top-header-user {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .calendar-toolbar-panel {
    display: block;
    padding: 8px 10px;
  }

  .calendar-toolbar-panel .panel-head {
    min-width: 0;
    padding: 0 2px 7px;
  }

  .calendar-toolbar-panel .compact-filter {
    flex-wrap: wrap;
  }

  body.top-nav-shell.standard-layout.page-app .top-nav-main-row,
  body.top-nav-shell.standard-layout.page-app .top-nav-cluster,
  body.top-nav-shell.standard-layout.page-app .top-nav-cluster-links,
  body.top-nav-shell.standard-layout.page-app .top-nav-panel-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body.top-nav-shell.standard-layout.page-app .top-nav-chip,
  body.top-nav-shell.standard-layout.page-app .top-nav-module-pill {
    width: 100%;
    justify-content: flex-start;
  }

  body.top-nav-shell.standard-layout.page-app .top-nav-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  body.top-nav-shell.standard-layout.page-app .top-nav-hidden-surface {
    position: static;
    width: 100%;
    margin-top: 10px;
  }
}

body.top-nav-shell.standard-layout.page-app .sidebar {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 84px;
  padding: 10px 18px;
  background:
    linear-gradient(180deg, rgba(5, 16, 22, 0.96), rgba(12, 26, 33, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(2, 10, 16, 0.18);
  position: sticky;
  top: 0;
  z-index: 80;
}

body.top-nav-shell.standard-layout.page-app .site-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

body.top-nav-shell.standard-layout.page-app .site-header-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.3), transparent 38%),
    linear-gradient(145deg, rgba(130, 10, 18, 0.96), rgba(200, 24, 34, 0.92) 54%, rgba(115, 8, 16, 0.96));
  color: #fff8f8;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  flex: 0 0 52px;
}

body.top-nav-shell.standard-layout.page-app .site-header-copy {
  min-width: 0;
}

body.top-nav-shell.standard-layout.page-app .site-header-copy .eyebrow {
  margin: 0 0 3px;
  font-size: 9px;
  letter-spacing: 0.16em;
}

body.top-nav-shell.standard-layout.page-app .site-header-copy h1 {
  margin: 0;
  color: #fff9ef;
  font-size: 18px;
  line-height: 1.1;
  font-family: var(--font-heading);
}

body.top-nav-shell.standard-layout.page-app .site-header-nav {
  min-width: 0;
  position: relative;
  overflow: visible;
  z-index: 6;
}

body.top-nav-shell.standard-layout.page-app .site-nav-desktop {
  display: block;
}

body.top-nav-shell.standard-layout.page-app .site-nav-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  position: relative;
  z-index: 8;
}

body.top-nav-shell.standard-layout.page-app .site-nav-tabs::-webkit-scrollbar {
  display: none;
}

body.top-nav-shell.standard-layout.page-app .site-nav-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(244, 239, 229, 0.86);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 0 12px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

body.top-nav-shell.standard-layout.page-app .site-nav-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transform: scaleX(0.4);
  transition: transform 0.18s ease, background 0.18s ease;
}

body.top-nav-shell.standard-layout.page-app .site-nav-trigger:hover,
body.top-nav-shell.standard-layout.page-app .site-nav-trigger.active,
body.top-nav-shell.standard-layout.page-app .site-nav-trigger.is-open {
  color: #fff9ef;
}

body.top-nav-shell.standard-layout.page-app .site-nav-trigger:hover::after,
body.top-nav-shell.standard-layout.page-app .site-nav-trigger.active::after,
body.top-nav-shell.standard-layout.page-app .site-nav-trigger.is-open::after {
  background: #e2c88f;
  transform: scaleX(1);
}

body.top-nav-shell.standard-layout.page-app .site-menu-search-label {
  display: flex;
  align-items: center;
  margin-left: 4px;
}

body.top-nav-shell.standard-layout.page-app .site-menu-search-input {
  width: 142px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(232, 207, 154, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff9ef;
  font-size: 12px;
}

body.top-nav-shell.standard-layout.page-app .site-menu-search-input::placeholder {
  color: rgba(244, 239, 229, 0.68);
}

body.top-nav-shell.standard-layout.page-app .site-menu-search-input:focus {
  outline: 2px solid rgba(226, 200, 143, 0.36);
  outline-offset: 1px;
}

body.top-nav-shell.standard-layout.page-app .site-mega-shell {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 48px));
  z-index: 5;
  pointer-events: none;
}

body.top-nav-shell.standard-layout.page-app .site-mega-shell.is-open {
  pointer-events: auto;
}

body.top-nav-shell.standard-layout.page-app .site-mega-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(8, 19, 26, 0.98), rgba(12, 26, 33, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  border: 1px solid rgba(232, 207, 154, 0.14);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  max-height: min(70vh, 760px);
  overflow: auto;
  min-height: 150px;
}

body.top-nav-shell.standard-layout.page-app .site-mega-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}

body.top-nav-shell.standard-layout.page-app .site-mega-group {
  display: grid;
  gap: 10px;
  align-content: start;
}

body.top-nav-shell.standard-layout.page-app .site-mega-title {
  color: #e2c88f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.top-nav-shell.standard-layout.page-app .site-mega-links {
  display: grid;
  gap: 4px;
}

body.top-nav-shell.standard-layout.page-app .site-nav-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(244, 239, 229, 0.9);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

body.top-nav-shell.standard-layout.page-app .site-nav-link:hover,
body.top-nav-shell.standard-layout.page-app .site-nav-link.active {
  background: rgba(226, 200, 143, 0.1);
  color: #fff9ef;
  transform: translateX(2px);
}

body.top-nav-shell.standard-layout.page-app .site-nav-mobile {
  display: none;
}

body.top-nav-shell.standard-layout.page-app .site-mobile-search-label {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  color: #e2c88f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.top-nav-shell.standard-layout.page-app .site-mobile-search-label input {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(232, 207, 154, 0.2);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff9ef;
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
}

body.top-nav-shell.standard-layout.page-app .site-header-user {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: max-content;
}

body.top-nav-shell.standard-layout.page-app .site-header-user .user-panel {
  margin: 0;
  padding: 4px 6px;
  border-radius: 10px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(232, 207, 154, 0.1);
  max-width: 190px;
}

body.top-nav-shell.standard-layout.page-app .site-header-user .user-panel .panel-head,
body.top-nav-shell.standard-layout.page-app .site-header-user .user-panel .panel-body {
  padding: 0;
}

body.top-nav-shell.standard-layout.page-app .site-header-user .user-panel .panel-body {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.top-nav-shell.standard-layout.page-app .site-header-user .user-panel h2 {
  font-size: 12px;
  line-height: 1.1;
}

body.top-nav-shell.standard-layout.page-app .site-header-user .user-panel .eyebrow {
  margin-bottom: 2px;
  font-size: 7px;
}

body.top-nav-shell.standard-layout.page-app .site-header-user .user-panel .compact-meta {
  margin: 0;
  font-size: 11px;
  white-space: nowrap;
  color: #fff9ef;
}

body.top-nav-shell.standard-layout.page-app .site-header-user .user-panel .button {
  min-height: 32px;
  padding: 6px 11px;
  font-size: 11px;
}

body.top-nav-shell.standard-layout.page-app .site-header-user .user-panel .panel-head {
  display: none;
}

body.top-nav-shell.standard-layout.page-app .site-header-user .user-panel .panel-body > div:first-child {
  min-width: 0;
}

@media (max-width: 991px) {
  body.top-nav-shell.standard-layout.page-app .sidebar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  body.top-nav-shell.standard-layout.page-app .site-header-nav {
    order: 3;
    grid-column: 1 / -1;
  }

  body.top-nav-shell.standard-layout.page-app .site-nav-desktop {
    display: none;
  }

  body.top-nav-shell.standard-layout.page-app .site-nav-mobile {
    display: block;
  }

  body.top-nav-shell.standard-layout.page-app .site-mobile-toggle {
    appearance: none;
    border: 1px solid rgba(232, 207, 154, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #fff9ef;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }

  body.top-nav-shell.standard-layout.page-app .site-mobile-menu {
    margin-top: 10px;
    padding: 12px;
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(8, 19, 26, 0.98), rgba(12, 26, 33, 0.96)),
      linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
    border: 1px solid rgba(232, 207, 154, 0.14);
  }

  body.top-nav-shell.standard-layout.page-app .site-mobile-accordion + .site-mobile-accordion {
    margin-top: 8px;
  }

  body.top-nav-shell.standard-layout.page-app .site-mobile-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 12px;
    color: #fff9ef;
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
    font-weight: 700;
  }

  body.top-nav-shell.standard-layout.page-app .site-mobile-accordion summary::-webkit-details-marker {
    display: none;
  }

  body.top-nav-shell.standard-layout.page-app .site-mobile-group {
    margin-top: 10px;
    display: grid;
    gap: 8px;
  }

  body.top-nav-shell.standard-layout.page-app .site-mobile-group-title {
    color: #e2c88f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  body.top-nav-shell.standard-layout.page-app .site-mobile-links {
    display: grid;
    gap: 4px;
  }

  body.top-nav-shell.standard-layout.page-app .site-header-user {
    justify-content: flex-end;
  }
}
.smart-assignment-candidate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border, #d7e0e5);
}

.smart-assignment-candidate-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.smart-assignment-candidate-main small {
  color: var(--muted, #52616b);
  line-height: 1.35;
}

.smart-assignment-form {
  flex: 0 0 auto;
}

.operations-live-map-panel .panel-body {
  padding: 12px;
}

.operations-live-map {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(420px, 58vh, 680px);
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  border: 1px solid #cbd8df;
  border-radius: 14px;
  background: #d9e7ed;
  user-select: none;
}

.operations-live-map.is-dragging {
  cursor: grabbing;
}

.operations-map-tiles,
.operations-map-markers {
  position: absolute;
  inset: 0;
}

.operations-map-tiles img {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  pointer-events: none;
}

.operations-map-vehicle {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translate(-13px, -13px);
  padding: 4px 8px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #102a33;
  box-shadow: 0 3px 12px rgba(15, 42, 51, 0.3);
  cursor: pointer;
  white-space: nowrap;
}

.operations-map-vehicle-dot {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1f6f8b;
  box-shadow: 0 0 0 2px #1f6f8b;
}

.operations-map-vehicle.is-moving .operations-map-vehicle-dot { background: #138a62; box-shadow: 0 0 0 2px #138a62; }
.operations-map-vehicle.is-risk .operations-map-vehicle-dot { background: #d02032; box-shadow: 0 0 0 2px #d02032; }

.operations-map-vehicle-plate {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
}

.operations-map-popup {
  position: absolute;
  z-index: 10;
  left: 12px;
  bottom: 36px;
  width: min(310px, calc(100vw - 54px));
  padding: 13px;
  border: 1px solid #c7d5dc;
  border-radius: 12px;
  background: #fff;
  color: #102a33;
  box-shadow: 0 12px 32px rgba(8, 29, 38, .28);
  text-align: left;
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
}

.operations-map-popup-title {
  margin-bottom: 7px;
  color: #b41424;
  font-size: 16px;
  font-weight: 900;
}

.operations-map-popup-link {
  display: inline-block;
  margin-top: 9px;
  color: #0c6280;
  font-weight: 800;
}

.operations-map-controls {
  position: absolute;
  z-index: 8;
  top: 14px;
  left: 14px;
  display: grid;
  overflow: hidden;
  border: 1px solid #c6d3d9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 42, 51, .2);
}

.operations-map-controls button {
  width: 40px;
  height: 38px;
  border: 0;
  border-bottom: 1px solid #d7e0e5;
  background: #fff;
  color: #102a33;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.operations-map-controls button:last-child { border-bottom: 0; }
.operations-map-controls button:hover { background: #edf4f6; }

.operations-map-refresh,
.operations-map-attribution {
  position: absolute;
  z-index: 7;
  bottom: 7px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .9);
  color: #344e59;
  font-size: 11px;
}

.operations-map-refresh { left: 7px; }
.operations-map-refresh.is-error { color: #b41424; font-weight: 800; }
.operations-map-attribution { right: 7px; }
.operations-map-attribution a { color: #345d70; }

.operations-live-map.has-no-positions::after {
  content: "Arvento koordinatı bulunan atanmış araç yok";
  position: absolute;
  z-index: 3;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,.92);
  color: #52616b;
  font-weight: 800;
}

@media (max-width: 720px) {
  .smart-assignment-candidate {
    align-items: stretch;
    flex-direction: column;
  }

  .smart-assignment-form .button {
    width: 100%;
  }

  .operations-live-map {
    height: 440px;
  }
}

/* Reservation lists: keep dense data readable on desktop and tablet screens. */
body.page-app .tour-table-panel .table td,
body.page-app .quadriga-reservations-table .table td {
  font-size: 16px;
  line-height: 1.62;
}

body.page-app .tour-table-panel .table td small,
body.page-app .quadriga-reservations-table .table td small {
  font-size: 14px;
  line-height: 1.55;
  color: #455b65;
}

body.page-app .tour-table-panel .table td strong,
body.page-app .quadriga-reservations-table .table td strong {
  font-size: 16px;
  line-height: 1.45;
}

.tour-table-panel .table th,
.quadriga-reservations-table .table th {
  font-size: 13px;
}

.tour-table-panel .tour-update-form .button,
.tour-table-panel .tour-update-form input,
.tour-table-panel .tour-update-form select,
.quadriga-reservations-table .button,
.quadriga-reservations-table input,
.quadriga-reservations-table select {
  font-size: 14px;
}

.tour-table-panel .badge,
.quadriga-reservations-table .badge {
  font-size: 12px;
}

@media (max-width: 900px) {
  .tour-update-form {
    grid-template-columns: minmax(0, 1fr) 380px;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .tour-reservation-action-toolbar {
    display: flex;
  }

  .tour-reservation-action-toolbar > form,
  .tour-reservation-action-toolbar .button {
    flex: 0 0 auto;
    width: auto;
  }

  .tour-reservation-action-toolbar > .reservation-inline-actions {
    display: contents;
  }

  .reservation-operation-link {
    flex-wrap: wrap;
  }

  .tour-reservation-status-form {
    grid-template-columns: 98px minmax(132px, 1fr) 126px;
  }

  .tour-reservation-status-form .button {
    width: auto;
  }
}
.reservation-automation-center{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr);gap:18px}.reservation-automation-column{display:grid;align-content:start;gap:12px;min-width:0}.reservation-automation-column>h3{margin:0}.reservation-notification-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px;border:1px solid rgba(31,91,78,.16);border-radius:16px;background:rgba(255,255,255,.72)}.reservation-notification-item>div:first-child{display:grid;gap:6px;min-width:0}.reservation-notification-item p,.reservation-notification-item small{margin:0;overflow-wrap:anywhere}.reservation-notification-item .button-row{justify-content:flex-end}.reservation-notification-item form{margin:0}@media(max-width:900px){.reservation-automation-center{grid-template-columns:1fr}.reservation-notification-item{grid-template-columns:1fr}.reservation-notification-item .button-row{justify-content:flex-start}}
