/* Material 3 Expressive Design System for Cam-Tech Field Hub */
:root {
  /* Color Roles - Deep Navy & Electric Sky Industrial Theme */
  --md-sys-color-primary: #0077c8;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #cbe6ff;
  --md-sys-color-on-primary-container: #001e35;

  --md-sys-color-secondary: #0c2540;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #d2e4f7;
  --md-sys-color-on-secondary-container: #001c37;

  --md-sys-color-tertiary: #008ee6;
  --md-sys-color-on-tertiary: #ffffff;
  --md-sys-color-tertiary-container: #cce7ff;
  --md-sys-color-on-tertiary-container: #001d36;

  /* Crisp Light Canvas Surfaces */
  --md-sys-color-surface: #f4f8fb;
  --md-sys-color-on-surface: #0b1926;
  --md-sys-color-surface-variant: #e3edf5;
  --md-sys-color-on-surface-variant: #344555;
  
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #ebf3f9;
  --md-sys-color-surface-container: #e1ebf3;
  --md-sys-color-surface-container-high: #d6e3ec;
  --md-sys-color-surface-container-highest: #ccd9e3;

  --md-sys-color-outline: #62778a;
  --md-sys-color-outline-variant: #c3d4e2;
  
  --md-sys-color-success: #15803d;
  --md-sys-color-success-container: #cbf5d7;
  --md-sys-color-warning: #b45309;
  --md-sys-color-warning-container: #fde89c;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-error-container: #ffd5d0;

  /* Typography - Material 3 Expressive */
  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-brand: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Corner Radius - Material 3 Expressive */
  --shape-xs: 4px;
  --shape-sm: 8px;
  --shape-md: 12px;
  --shape-lg: 16px;
  --shape-xl: 28px;
  --shape-full: 9999px;

  /* Elevation Shadows */
  --elevation-1: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --elevation-2: 0 4px 8px -2px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.06);
  --elevation-3: 0 10px 18px -4px rgba(0,0,0,0.12), 0 4px 8px -4px rgba(0,0,0,0.08);

  /* Mobile Touch Safety Target */
  --touch-target-min: 48px;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-item.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 24;
}

/* Base resets & layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* App Header - Deep Navy Framing */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #081b2e;
  border-bottom: 1px solid #132e4d;
  box-shadow: 0 2px 10px rgba(8, 27, 46, 0.25);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.brand-icon {
  height: 38px;
  width: auto;
  border-radius: var(--shape-sm);
}

.brand-title-group h1 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #ffffff;
  line-height: 1.1;
}

.brand-title-group span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #92b5d4;
  letter-spacing: 0.5px;
}

/* Sync status badge */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--shape-full);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.status-pill.online {
  background-color: var(--md-sys-color-success-container);
  color: var(--md-sys-color-success);
}

.status-pill.offline {
  background-color: var(--md-sys-color-warning-container);
  color: var(--md-sys-color-warning);
}

.status-pill.syncing {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-primary);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Main content wrapper */
.main-container {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 96px; /* space for mobile navigation bar */
}

/* Module Grid Launcher Cards */
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.module-card {
  background-color: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--shape-xl);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--elevation-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
  min-height: 125px;
  cursor: pointer;
}

.module-card:hover, .module-card:active {
  transform: translateY(-2px);
  box-shadow: var(--elevation-2);
}

.module-card.card-filings {
  background-color: #dcedfc;
  border-color: #b0d4f4;
}
.module-card.card-fleet {
  background-color: #ede3f5;
  border-color: #d1bfe4;
}
.module-card.card-time {
  background-color: #ddf2e4;
  border-color: #b1e0c2;
}
.module-card.card-safety {
  background-color: #fee9d7;
  border-color: #fdc39a;
}
.module-card.card-photo {
  background-color: #fcebd8;
  border-color: #f7cea6;
}
.module-card.card-yard {
  background-color: #e0f2fe;
  border-color: #b9e6fe;
}

.module-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--shape-lg);
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}

.module-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
  margin-bottom: 4px;
}

.module-card p {
  font-size: 11.5px;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.3;
}

/* Material 3 Bottom App Navigation Bar - Deep Navy */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background-color: #081b2e;
  border-top: 1px solid #132e4d;
  box-shadow: 0 -3px 14px rgba(8, 27, 46, 0.25);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 99;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #8daac4;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--shape-full);
  transition: all 0.2s ease;
  min-width: 68px;
}

.nav-item .nav-pill {
  width: 54px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--shape-full);
  font-size: 18px;
}

.nav-item.active {
  color: #00a8ff;
  font-weight: 800;
}

.nav-item.active .nav-pill {
  background-color: #0077c8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 119, 200, 0.45);
}

/* Cards & Containers */
.m3-card {
  background-color: var(--md-sys-color-surface-container-lowest);
  border-radius: var(--shape-lg);
  border: 1px solid var(--md-sys-color-outline-variant);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--elevation-1);
}

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

.m3-card-header h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--md-sys-color-primary);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-control {
  width: 100%;
  min-height: var(--touch-target-min);
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--shape-md);
  background-color: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 2px var(--md-sys-color-primary-container);
}

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

/* Material 3 Expressive Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch-target-min);
  padding: 10px 20px;
  border-radius: var(--shape-full);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  box-shadow: var(--elevation-1);
}

.btn-primary:hover {
  background-color: #005080;
}

.btn-secondary {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.btn-tonal {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.btn-outlined {
  background-color: transparent;
  border: 1px solid var(--md-sys-color-outline);
  color: var(--md-sys-color-primary);
}

.btn-block {
  width: 100%;
}

/* One-tap Timestamp Buttons */
.timestamp-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.timestamp-btn {
  background-color: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--shape-md);
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timestamp-btn.filled {
  background-color: var(--md-sys-color-primary-container);
  border-color: var(--md-sys-color-primary);
}

.timestamp-btn .label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 4px;
}

.timestamp-btn .time-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--md-sys-color-primary);
}

/* 4-Hour Minimum Alert Box */
.min-hours-alert {
  background-color: var(--md-sys-color-tertiary-container);
  border: 1px solid var(--md-sys-color-tertiary);
  border-radius: var(--shape-md);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: #004565;
}

/* Dynamic Child Table for Disposals & Services */
.child-table-wrapper {
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--shape-md);
  overflow: hidden;
  margin-bottom: 12px;
}

.child-row {
  display: grid;
  grid-template-columns: 1fr 100px 90px 44px;
  gap: 8px;
  padding: 10px;
  align-items: center;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  background-color: var(--md-sys-color-surface-container-lowest);
}

.child-row:last-child {
  border-bottom: none;
}

.child-row-header {
  background-color: var(--md-sys-color-surface-container);
  font-size: 11px;
  font-weight: 800;
  color: var(--md-sys-color-on-surface-variant);
  text-transform: uppercase;
}

.service-line-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) 78px minmax(110px, 1.2fr) 38px;
  gap: 8px;
  align-items: start;
  padding: 10px 8px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  background-color: var(--md-sys-color-surface-container-lowest);
}

.service-line-row:last-child {
  border-bottom: none;
}

.service-combobox-wrap {
  position: relative;
  min-width: 0;
}

.service-compat-warn {
  font-size: 11px;
  font-weight: 700;
  color: #b3261e;
  background: #f9dedc;
  padding: 3px 8px;
  border-radius: var(--shape-xs);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 560px) {
  .service-line-row {
    grid-template-columns: 1fr 38px;
    gap: 8px;
    padding: 12px 8px;
  }
  .service-line-row .service-combobox-wrap {
    grid-column: 1 / 2;
  }
  .service-line-row .service-del-wrap {
    grid-column: 2 / 3;
    display: flex;
    justify-content: flex-end;
  }
  .service-line-row .service-sub-fields {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 8px;
  }
}

/* Signature Pad Canvas */
.signature-wrapper {
  border: 2px dashed var(--md-sys-color-outline);
  border-radius: var(--shape-lg);
  background-color: #ffffff;
  position: relative;
  touch-action: none;
  overflow: hidden;
}

.signature-canvas {
  width: 100%;
  height: 180px;
  display: block;
}

.sig-tools {
  display: flex;
  justify-content: flex-end;
  padding: 6px 12px;
  background-color: var(--md-sys-color-surface-container);
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

/* Supervisor Review Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-sheet {
  background-color: var(--md-sys-color-surface-container-lowest);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  border-top-left-radius: var(--shape-xl);
  border-top-right-radius: var(--shape-xl);
  padding: 20px;
  overflow-y: auto;
  box-shadow: var(--elevation-3);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
}

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

/* Helper utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }

/* Searchable Combobox Autocomplete */
.combobox-container {
  position: relative;
  width: 100%;
}

.combobox-container.combobox-expanded {
  z-index: 100;
}

.combobox-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-left: 0;
  transition: width 0.25s cubic-bezier(0.2, 0, 0, 1),
              margin-left 0.25s cubic-bezier(0.2, 0, 0, 1),
              box-shadow 0.2s ease;
}

.combobox-input-wrap .form-control {
  padding-right: 36px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Floating overlay expansion for side-by-side comboboxes */
.combobox-container.expand-left.combobox-expanded .combobox-input-wrap {
  width: calc(200% + 12px);
  z-index: 101;
  box-shadow: 0 6px 20px rgba(0, 50, 100, 0.18);
  border-radius: var(--shape-md);
}

.combobox-container.expand-left.combobox-expanded .combobox-input-wrap .form-control {
  background-color: #ffffff;
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 2px var(--md-sys-color-primary-container);
}

.combobox-container.expand-left.combobox-expanded .combobox-menu {
  width: calc(200% + 12px);
  left: 0;
  right: auto;
  z-index: 1050;
}

.combobox-container.expand-right.combobox-expanded .combobox-input-wrap {
  width: calc(200% + 12px);
  margin-left: calc(-100% - 12px);
  z-index: 101;
  box-shadow: 0 6px 20px rgba(0, 50, 100, 0.18);
  border-radius: var(--shape-md);
}

.combobox-container.expand-right.combobox-expanded .combobox-input-wrap .form-control {
  background-color: #ffffff;
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 2px var(--md-sys-color-primary-container);
}

.combobox-container.expand-right.combobox-expanded .combobox-menu {
  width: calc(200% + 12px);
  left: calc(-100% - 12px);
  right: auto;
  z-index: 1050;
}

.combobox-icon {
  position: absolute;
  right: 4px;
  top: 0;
  bottom: 0;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  color: var(--md-sys-color-outline);
  font-size: 24px;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), color 0.15s ease;
  user-select: none;
  z-index: 5;
}

.combobox-icon:hover {
  color: var(--md-sys-color-primary);
}

.combobox-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--shape-md);
  box-shadow: var(--elevation-3);
  z-index: 1050;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 0;
  animation: comboboxFadeIn 0.2s cubic-bezier(0.2, 0, 0, 1);
}

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

.combobox-header {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--md-sys-color-outline);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px 6px 12px;
  background: var(--md-sys-color-surface-container-low);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.combobox-item {
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.12s ease;
  line-height: 1.25;
}

.combobox-item:hover, .combobox-item.active {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.combobox-item strong {
  color: var(--md-sys-color-primary);
  font-weight: 800;
}

.combobox-item-sub {
  font-size: 11px;
  color: var(--md-sys-color-on-surface-variant);
  margin-top: 2px;
}

.combobox-item:hover .combobox-item-sub, .combobox-item.active .combobox-item-sub {
  color: var(--md-sys-color-on-primary-container);
}

.combobox-hint {
  font-size: 11px;
  color: var(--md-sys-color-outline);
  padding: 8px 12px;
  text-align: center;
  background: var(--md-sys-color-surface-container-lowest);
  border-top: 1px dashed var(--md-sys-color-outline-variant);
  font-style: italic;
}

.combobox-add-new {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--md-sys-color-primary);
  background: var(--md-sys-color-surface-container-low);
  border-top: 1px solid var(--md-sys-color-outline-variant);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.combobox-add-new:hover {
  background: var(--md-sys-color-primary-container);
}

/* Netflix Thumbs Segmented Control for Client Satisfaction */
.satisfaction-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

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

.netflix-satisfaction-toggle {
  position: relative;
  display: flex;
  background: var(--md-sys-color-surface-container-low, #f0f4f9);
  border: 1.5px solid var(--md-sys-color-outline-variant, #cbd5e1);
  border-radius: var(--shape-full, 9999px);
  padding: 3px;
  gap: 0;
  min-height: 46px;
  box-sizing: border-box;
  align-items: stretch;
  user-select: none;
  --seg-index: 2;
}

/* Gliding Pill Slider */
.netflix-satisfaction-toggle .seg-slider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  border-radius: var(--shape-full, 9999px);
  z-index: 1;
  pointer-events: none;
  transform: translateX(calc(100% * var(--seg-index, 2)));
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1), 
              background-color 0.25s ease, 
              border-color 0.25s ease, 
              box-shadow 0.25s ease;
  background: #dcfce7;
  border: 1px solid #86efac;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.22);
}

/* Slider Color States */
.netflix-satisfaction-toggle[data-state="issues"] .seg-slider {
  background: #fee2e2;
  border-color: #fca5a5;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.22);
}

.netflix-satisfaction-toggle[data-state="acceptable"] .seg-slider {
  background: #e0f2fe;
  border-color: #7dd3fc;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.22);
}

.netflix-satisfaction-toggle[data-state="satisfied"] .seg-slider {
  background: #dcfce7;
  border-color: #86efac;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.22);
}

/* Dark Mode Slider States */
[data-theme="dark"] .netflix-satisfaction-toggle {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .netflix-satisfaction-toggle[data-state="issues"] .seg-slider {
  background: #450a0a;
  border-color: #991b1b;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}
[data-theme="dark"] .netflix-satisfaction-toggle[data-state="acceptable"] .seg-slider {
  background: #082f49;
  border-color: #0369a1;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
}
[data-theme="dark"] .netflix-satisfaction-toggle[data-state="satisfied"] .seg-slider {
  background: #052e16;
  border-color: #15803d;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
}

/* Button Layer */
.netflix-satisfaction-toggle .seg-btn {
  position: relative;
  z-index: 2;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--shape-full, 9999px);
  border: none;
  background: transparent !important;
  color: var(--md-sys-color-on-surface-variant, #475569);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.1px;
  cursor: pointer;
  user-select: none;
  transition: color 0.25s ease, transform 0.15s ease, opacity 0.25s ease;
  white-space: nowrap;
  opacity: 0.72;
}

.netflix-satisfaction-toggle .seg-btn:hover {
  opacity: 0.9;
}

.netflix-satisfaction-toggle .seg-btn:active {
  transform: scale(0.94);
}

.netflix-satisfaction-toggle .seg-btn .seg-icon {
  font-size: 15px;
  line-height: 1;
  letter-spacing: -1px;
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.34, 1.5, 0.64, 1);
}

/* Active Button Text & Icon Styling */
.netflix-satisfaction-toggle .seg-btn.active {
  opacity: 1;
  font-weight: 600;
}

.netflix-satisfaction-toggle .seg-btn.active .seg-icon {
  transform: scale(1.15);
}

.netflix-satisfaction-toggle .seg-btn.seg-issues.active {
  color: #b91c1c;
}

.netflix-satisfaction-toggle .seg-btn.seg-acceptable.active {
  color: #0369a1;
}

.netflix-satisfaction-toggle .seg-btn.seg-satisfied.active {
  color: #15803d;
}

[data-theme="dark"] .netflix-satisfaction-toggle .seg-btn {
  color: #94a3b8;
}
[data-theme="dark"] .netflix-satisfaction-toggle .seg-btn.seg-issues.active {
  color: #fca5a5;
}
[data-theme="dark"] .netflix-satisfaction-toggle .seg-btn.seg-acceptable.active {
  color: #7dd3fc;
}
[data-theme="dark"] .netflix-satisfaction-toggle .seg-btn.seg-satisfied.active {
  color: #86efac;
}

/* Fleet Manager Hub Grid & Tabs */
.fleet-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.fleet-tab-bar {
  display: flex;
  background: var(--md-sys-color-surface-container-low, #f0f4f9);
  border: 1px solid var(--md-sys-color-outline-variant, #cbd5e1);
  border-radius: var(--shape-full, 9999px);
  padding: 3px;
  gap: 3px;
  margin-bottom: 16px;
}

.fleet-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: var(--shape-full, 9999px);
  border: none;
  background: transparent;
  color: var(--md-sys-color-on-surface-variant, #475569);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  white-space: nowrap;
}

.fleet-tab-btn.active {
  background: #ffffff;
  color: var(--md-sys-color-primary, #005691);
  box-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .fleet-tab-btn.active {
  background: #1e293b;
  color: #7dd3fc;
}

.fleet-status-card {
  padding: 14px;
  border-radius: var(--shape-lg, 16px);
  border: 1.5px solid var(--md-sys-color-outline-variant, #e2e8f0);
  background: var(--md-sys-color-surface-container-low, #f8fafc);
  margin-bottom: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fleet-status-card.status-good {
  border-left: 5px solid #16a34a;
}

.fleet-status-card.status-due-soon {
  border-left: 5px solid #d97706;
  background: #fffbeb;
}

.fleet-status-card.status-overdue {
  border-left: 5px solid #dc2626;
  background: #fef2f2;
}

.m3-alert-banner {
  border-radius: var(--shape-md, 12px);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}



