html {
  font-size: 14px;
}

.vm-checklist-group {
  min-height: 14rem;
  padding: .7rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: .85rem;
  background: rgba(15, 23, 42, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.vm-checklist-items {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-height: 12.5rem;
  overflow-y: auto;
  padding-right: .15rem;
}

.vm-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 0;
  padding: .55rem .75rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: .75rem;
  background: rgba(30, 41, 59, 0.42);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.vm-checklist-item:hover {
  border-color: rgba(96, 165, 250, 0.38);
  background: rgba(37, 99, 235, 0.12);
}

.vm-checklist-item .form-check-input {
  flex: 0 0 auto;
  margin: .18rem 0 0;
  background-color: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
}

.vm-checklist-item .form-check-input:checked {
  background-color: #3b82f6;
  border-color: #60a5fa;
}

.vm-checklist-item .form-check-label {
  display: block;
  flex: 1 1 auto;
  margin: 0;
  color: #e2e8f0;
  font-size: .92rem;
  line-height: 1.35;
  cursor: pointer;
  word-break: break-word;
}

.vm-checklist-empty {
  padding: .7rem .75rem;
  border-radius: .75rem;
  color: #94a3b8;
  font-size: .88rem;
  background: rgba(30, 41, 59, 0.28);
}

@media (max-width: 991.98px) {
  .vm-checklist-group {
    min-height: auto;
  }

  .vm-checklist-items {
    max-height: none;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.fc-tracking-multiselect {
  min-height: 11.5rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(148, 163, 184, 0.28);
}

.fc-tracking-multiselect option {
  padding: .45rem .6rem;
}

.fc-tracking-stat-card {
  border-color: rgba(96, 165, 250, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.82));
}

.fc-tracking-map-shell {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.42);
}

.fc-tracking-map {
  width: 100%;
  min-height: 28rem;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.98));
}

.fc-tracking-legend {
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.52);
}

.fc-tracking-legend-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}

.fc-tracking-legend-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.fc-tracking-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding: .8rem .9rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: .9rem;
  background: rgba(30, 41, 59, 0.54);
}

.fc-tracking-legend-item.is-hidden {
  opacity: .68;
}

.fc-tracking-legend-main {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
}

.fc-tracking-legend-swatch {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.fc-tracking-legend-text {
  min-width: 0;
}

.fc-tracking-legend-toggle {
  flex: 0 0 auto;
  min-width: 4.5rem;
}

.fc-trend-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.82));
}

.fc-trend-metric {
  padding: .85rem .9rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: .85rem;
  background: rgba(15, 23, 42, 0.46);
}

.fc-trend-metric-label {
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fc-trend-metric-value {
  margin-top: .35rem;
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 700;
}

.fc-trend-metric-compare {
  color: #cbd5e1;
  font-size: .88rem;
  font-weight: 500;
}

.fc-trend-chart {
  width: 100%;
  min-height: 20rem;
  max-height: 20rem;
}

.fc-mobile-details-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.34);
  overflow: hidden;
}

.fc-mobile-details-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  cursor: pointer;
  list-style: none;
  color: #f8fafc;
  font-weight: 600;
}

.fc-mobile-details-summary::-webkit-details-marker {
  display: none;
}

.fc-mobile-details-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  color: #dbeafe;
  font-size: 1.1rem;
  line-height: 1;
}

.fc-mobile-details-panel[open] .fc-icon-collapsed {
  display: none;
}

.fc-mobile-details-panel:not([open]) .fc-icon-expanded {
  display: none;
}

.fc-tracking-infowindow {
  color: #0f172a;
  min-width: 11rem;
}

@media (max-width: 767.98px) {
  .fc-tracking-map {
    min-height: 20rem;
  }

  .fc-tracking-legend-item {
    flex-direction: column;
    align-items: stretch;
  }

  .fc-tracking-legend-toggle {
    width: 100%;
  }

  .fc-trend-chart {
    min-height: 16rem;
    max-height: 16rem;
  }

  .fc-mobile-details-panel .table-responsive {
    max-height: 24rem;
    overflow: auto;
  }
}

.customer-loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.92);
  z-index: 9999;
}

.customer-loading-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  width: min(90vw, 22rem);
  padding: 1.4rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.34);
  text-align: center;
}

.customer-loading-spinner {
  width: 3rem;
  height: 3rem;
}

.customer-loading-percent {
  color: #f8fafc;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}

.customer-loading-status {
  color: #cbd5e1;
  font-size: .98rem;
  font-weight: 600;
}

.customer-loading-progress-track {
  width: 100%;
  height: .55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.customer-loading-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  transition: width .3s ease;
}

.customer-portal-page {
  color: #e2e8f0;
}

.customer-portal-shell {
  min-height: 60vh;
}

.customer-portal-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88));
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
}

.customer-portal-hero-main {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  width: 100%;
}

.customer-portal-hero-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: 1rem;
  align-items: start;
}

.customer-portal-main-column {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-width: 0;
}

.customer-portal-title-block {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.customer-portal-eyebrow {
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.customer-portal-title {
  color: #f8fafc;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
}

.customer-portal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.customer-portal-meta-pill,
.customer-stage-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #dbeafe;
  font-size: .88rem;
  font-weight: 600;
}

.customer-status-panel {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.customer-status-label {
  display: block;
  margin-bottom: .4rem;
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-status-title {
  color: #f8fafc;
  font-size: 1.5rem;
  font-weight: 700;
}

.customer-status-copy,
.customer-section-subtitle,
.customer-action-copy,
.customer-journey-step-copy {
  color: #cbd5e1;
}

.customer-status-copy {
  margin-bottom: .9rem;
}

.customer-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
}

.customer-primary-action {
  min-width: 11rem;
  font-weight: 700;
}

.customer-secondary-action {
  min-width: 11rem;
  font-weight: 700;
}

.customer-inline-action-form {
  display: inline-flex;
  align-items: center;
}

.customer-progress-card,
.customer-actions-card,
.customer-portal-page .card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.customer-portal-page .card-header {
  border-bottom-color: rgba(148, 163, 184, 0.14);
  background: rgba(30, 41, 59, 0.55);
}

.customer-hero-details {
  display: grid;
  gap: .75rem;
  margin-top: .15rem;
}

.customer-hero-detail-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.48);
  overflow: hidden;
}

.customer-hero-detail-panel[open] {
  background: rgba(15, 23, 42, 0.6);
}

.customer-hero-detail-toggle {
  border-radius: 0;
  background: transparent;
}

.customer-hero-detail-panel summary {
  list-style: none;
  cursor: pointer;
}

.customer-hero-detail-panel summary::-webkit-details-marker {
  display: none;
}

.customer-hero-detail-body {
  padding: .3rem 1.1rem .95rem;
  color: #e2e8f0;
}

.customer-hero-detail-body p:last-child {
  margin-bottom: 0;
}

.customer-journey {
  display: grid;
  gap: 1rem;
}

.customer-journey-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: .95rem;
  background: rgba(30, 41, 59, 0.35);
}

.customer-journey-step.is-current {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(37, 99, 235, 0.14);
}

.customer-journey-step.is-complete {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(34, 197, 94, 0.12);
}

.customer-journey-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 700;
}

.customer-journey-step.is-current .customer-journey-step-icon {
  background: #2563eb;
}

.customer-journey-step.is-complete .customer-journey-step-icon {
  background: #15803d;
}

.customer-journey-step-title {
  color: #f8fafc;
  font-weight: 700;
  margin-bottom: .2rem;
}

.customer-journey-step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.customer-journey-step-main {
  flex: 1 1 auto;
  min-width: 0;
}

.customer-journey-step-action {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
}

.customer-journey-inline-form {
  display: inline-flex;
  align-items: center;
}

.customer-journey-step-muted {
  color: #cbd5e1;
  font-size: .9rem;
  white-space: nowrap;
}

.customer-journey-step.is-upcoming {
  opacity: .82;
}

.customer-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
}

.customer-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  min-height: 100%;
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: .95rem;
  background: rgba(30, 41, 59, 0.38);
}

.customer-action-item.is-current {
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 0 0 .12rem rgba(37, 99, 235, 0.12);
}

.customer-action-item.is-complete {
  border-color: rgba(74, 222, 128, 0.3);
}

.customer-action-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.customer-action-icon-button,
.customer-action-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  text-decoration: none;
}

.customer-action-icon-button:disabled {
  opacity: .65;
}

.customer-action-done {
  color: #86efac;
  font-weight: 700;
}

.customer-pane-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  width: 100%;
  padding: .8rem 1rem;
  color: #f8fafc;
  text-align: left;
  border: 0;
  border-radius: 1rem 1rem 0 0;
}

.customer-pane-toggle:hover,
.customer-pane-toggle:focus {
  color: #f8fafc;
}

.customer-pane-toggle-symbol {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  position: relative;
}

.customer-pane-toggle-symbol::before,
.customer-pane-toggle-symbol::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: .9rem;
  height: 2px;
  background: #f8fafc;
  transform: translate(-50%, -50%);
}

.customer-pane-toggle-symbol::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform .2s ease;
}

.customer-hero-detail-panel[open] .customer-pane-toggle-symbol::after,
.customer-quote-toggle:not(.collapsed) .customer-pane-toggle-symbol::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.customer-quote-card {
  overflow: hidden;
}

.customer-quote-pane-body {
  padding: .75rem;
}

.customer-quote-pane-content {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  color: #0f172a;
  border-radius: .85rem;
}

.customer-quote-pane-content > * {
  min-width: min(100%, 70rem);
}

.customer-finance-progress {
  position: relative;
  height: 1.5rem;
  margin-bottom: 2.6rem;
  border-radius: .45rem;
  background: rgba(148, 163, 184, 0.24);
  overflow: visible;
}

.customer-finance-progress-fill {
  height: 100%;
  border-radius: .45rem 0 0 .45rem;
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.customer-finance-progress-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #0f172a;
  transform: translateX(-1px);
}

.customer-finance-progress-label,
.customer-finance-progress-min,
.customer-finance-progress-max {
  position: absolute;
  top: 100%;
  font-size: .8rem;
  color: #cbd5e1;
}

.customer-finance-progress-label {
  transform: translate(-50%, .3rem);
  white-space: nowrap;
  text-align: center;
}

.customer-finance-progress-min {
  left: 0;
  transform: translateY(.3rem);
}

.customer-finance-progress-max {
  right: 0;
  transform: translateY(.3rem);
  text-align: right;
}

@media (max-width: 767.98px) {
  .customer-portal-hero {
    padding: 1.15rem;
  }

  .customer-portal-hero-header {
    grid-template-columns: 1fr;
    gap: .85rem;
  }

  .customer-portal-main-column {
    gap: .7rem;
  }

  .customer-portal-hero-main {
    gap: .85rem;
  }

  .customer-status-panel {
    width: 100%;
  }

  .customer-status-actions {
    align-items: stretch;
  }

  .customer-primary-action,
  .customer-secondary-action {
    width: 100%;
  }

  .customer-hero-detail-body {
    padding: .25rem 1rem .9rem;
  }

  .customer-journey-step-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .customer-journey-step-action {
    width: 100%;
    justify-content: flex-start;
  }

  .customer-journey-step-muted {
    white-space: normal;
  }

  .customer-finance-progress {
    margin-bottom: 3.2rem;
  }

  .customer-pane-toggle {
    padding: .95rem 1rem;
    align-items: flex-start;
  }

  .customer-pane-toggle-symbol {
    width: 1.85rem;
    height: 1.85rem;
  }

  .customer-quote-pane-body {
    padding: .5rem;
  }
}

@media (min-width: 992px) {
  .customer-status-actions {
    justify-content: flex-start;
  }

  .customer-hero-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .customer-quote-pane-body {
    padding: 1.25rem;
  }

  .customer-quote-pane-content {
    padding: .25rem;
  }
}

.walkaround-create-page {
  max-width: 72rem;
  margin: 0 auto;
}

.walkaround-create-heading h1 {
  font-size: clamp(1.35rem, 5vw, 2rem);
}

.walkaround-create-page .form-control,
.walkaround-create-page .form-select,
.walkaround-create-page .input-group-text {
  min-height: 2.85rem;
}

.walkaround-create-page .form-check {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.walkaround-create-page .form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0;
}

.walkaround-create-page .form-check-label {
  padding: .5rem .35rem;
}

.walkaround-create-page .btn {
  min-height: 2.75rem;
}

.walkaround-create-page .card {
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  border-radius: .9rem;
}

@media (min-width: 992px) {
  .walkaround-create-content > :last-child {
    align-self: start;
    position: sticky;
    top: 1rem;
  }
}

.walkaround-tyre-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 24rem;
  margin: 0 auto;
  padding: .6rem 0;
}

.walkaround-tyre-layout::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 32%;
  width: 36%;
  border: 3px solid #94a3b8;
  border-radius: 42% 42% 12% 12% / 12% 12% 5% 5%;
  background: rgba(148, 163, 184, .12);
  pointer-events: none;
}

.walkaround-tyre-layout::after {
  content: '';
  position: absolute;
  top: 1.4rem;
  left: 35%;
  width: 30%;
  height: 1rem;
  border-top: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  border-radius: 50%;
  pointer-events: none;
}

.walkaround-tyre-direction {
  color: #cbd5e1;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
}

.walkaround-tyre-side-labels {
  display: flex;
  justify-content: space-between;
  max-width: 24rem;
  margin: 0 auto .5rem;
  color: #cbd5e1;
  font-size: .75rem;
}

.walkaround-tyre-axle {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "left right"
    "center center";
  column-gap: 1.25rem;
  row-gap: .55rem;
  align-items: start;
  justify-items: center;
}

.walkaround-tyre-side {
  display: flex;
  gap: .5rem;
  flex-wrap: nowrap;
  justify-content: center;
}

.walkaround-tyre-side-left {
  grid-area: left;
}

.walkaround-tyre-side-right {
  grid-area: right;
  justify-content: center;
}

.walkaround-tyre-axle-center {
  grid-area: center;
  min-width: 8rem;
  text-align: center;
}

.walkaround-tyre-axle-name {
  font-size: .8rem;
  color: var(--bs-light);
  letter-spacing: .03em;
}

.walkaround-tyre-wheel {
  width: 3.25rem;
  min-height: 5.25rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .25rem;
  gap: .3rem;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.walkaround-tyre-wheel-badge {
  font-size: .68rem;
  line-height: 1.1;
  text-align: center;
  color: #fff;
  word-break: break-word;
}

.walkaround-tyre-wheel-reading {
  font-size: .62rem;
  line-height: 1.1;
  text-align: center;
  color: #bfdbfe;
}

.walkaround-tyre-wheel:hover {
  border-color: rgba(96, 165, 250, 0.9);
  background: rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}

.walkaround-tyre-wheel.is-selected {
  border-color: #60a5fa;
  background: rgba(37, 99, 235, 0.28);
  box-shadow: 0 0 0 .15rem rgba(37, 99, 235, 0.18);
}

.walkaround-tyre-wheel.is-complete {
  border-color: #22c55e;
}

@media (max-width: 767.98px) {
  .walkaround-tyre-layout {
    max-width: 100%;
  }

  .walkaround-tyre-axle {
    column-gap: .75rem;
  }

  .walkaround-tyre-side,
  .walkaround-tyre-side-right {
    justify-content: center;
  }
}

.nav-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  margin-left: .5rem;
  padding: 0 .45rem;
  border-radius: 999px;
  background: #fd7e14;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

td.non-live
{
    color: #e57373;
}

.vm-month-grid {
  display: grid;
  gap: 1rem;
}

.vm-month-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.45);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.vm-month-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.35);
}

.vm-month-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e2e8f0;
}

.vm-month-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .85rem;
  color: #94a3b8;
}

.vm-record-list {
  display: flex;
  flex-direction: column;
}

.vm-record-item {
  padding: .7rem .95rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.vm-record-item:first-child {
  border-top: 0;
}

.vm-record-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .55rem 1rem;
  align-items: start;
}

.vm-record-top-compact {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
}

.vm-record-expand {
  align-self: center;
}

.vm-record-summary {
  min-width: 0;
}

.vm-record-date {
  font-weight: 600;
  color: #e2e8f0;
  font-size: .95rem;
  line-height: 1.15;
  white-space: nowrap;
}

.vm-record-description {
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.15;
}

.vm-record-description-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
}

.vm-record-summary-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
  margin-top: .25rem;
}

.vm-record-inline-meta {
  color: #94a3b8;
  font-size: .8rem;
  line-height: 1.2;
}

.vm-record-vehicle {
  color: #cbd5e1;
  line-height: 1.2;
  font-size: .92rem;
}

.vm-record-attachment-icon {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .1rem .4rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #bfdbfe;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}

.vm-record-category-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .14rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(51, 65, 85, 0.35);
  color: #e2e8f0;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.vm-record-category-badge i {
  font-size: .82rem;
}

.vm-category-mot {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

.vm-category-service {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.45);
  color: #bfdbfe;
}

.vm-category-repair {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.vm-category-tyre {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(192, 132, 252, 0.45);
  color: #e9d5ff;
}

.vm-category-check {
  background: rgba(20, 184, 166, 0.16);
  border-color: rgba(45, 212, 191, 0.45);
  color: #99f6e4;
}

.vm-category-electrical {
  background: rgba(234, 179, 8, 0.16);
  border-color: rgba(250, 204, 21, 0.45);
  color: #fef08a;
}

.vm-category-bodywork {
  background: rgba(236, 72, 153, 0.16);
  border-color: rgba(244, 114, 182, 0.45);
  color: #fbcfe8;
}

.vm-category-default {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.38);
  color: #e2e8f0;
}

.vm-record-reg {
  display: inline-block;
  margin-left: .35rem;
  padding: .12rem .4rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #e2e8f0;
  font-size: .74rem;
  letter-spacing: .02em;
}

.vm-record-cost {
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  font-size: .98rem;
  align-self: center;
}

.vm-record-quickactions {
  display: flex;
  justify-content: flex-end;
  align-self: center;
}

.vm-record-collapse {
  margin-top: .55rem;
}

.vm-record-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem .8rem;
  margin-top: .5rem;
  font-size: .82rem;
}

.vm-record-block {
  min-width: 0;
}

.vm-record-block-wide {
  grid-column: span 2;
}

.vm-record-label {
  display: block;
  margin-bottom: .08rem;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #94a3b8;
}

.vm-record-value {
  color: #cbd5e1;
  word-break: break-word;
  line-height: 1.18;
}

.vm-record-actions .btn {
  padding-top: .18rem;
  padding-bottom: .18rem;
}

.vm-empty-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  padding: 2rem 1rem;
  background: rgba(15, 23, 42, 0.35);
}

.ea-outcome-manual-review {
  color: #ffd166;
  font-weight: 500;
}

.ea-expand-button {
  min-width: 2rem;
  padding: .1rem .45rem;
  line-height: 1.2;
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.88);
  border: 1px solid rgba(96, 165, 250, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ea-expand-button::after {
  content: "+";
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.ft-week-day-card {
  padding: 1rem;
  border-radius: .9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.28);
}

.ea-expand-button[aria-expanded="true"]::after {
  content: "−";
}

.ea-expand-button:hover,
.ea-expand-button:focus {
  color: #fff;
  background: rgba(37, 99, 235, 0.95);
  border-color: #93c5fd;
}

.ea-expand-button[aria-expanded="true"] {
  color: #fff;
  background: rgba(37, 99, 235, 0.95);
  border-color: #93c5fd;
}

.ea-child-row > td {
  padding: 0 !important;
  border-top: 0;
}

.ea-child-panel {
  padding: .9rem 1rem;
  background: rgba(17, 24, 39, 0.8);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.vr-expand-cell {
  width: 1%;
  white-space: nowrap;
}

.vr-history-panel {
  background: rgba(11, 15, 28, 0.92);
}

.vr-history-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.vr-history-item {
  display: grid;
  grid-template-columns: 110px 120px minmax(0, 1fr) 120px 95px 130px;
  gap: .75rem;
  align-items: center;
  padding: .7rem .85rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: .85rem;
  background: rgba(15, 23, 42, 0.34);
  color: #e2e8f0;
}

.vr-history-item:hover,
.vr-history-item:focus {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(30, 41, 59, 0.72);
}

.vr-history-date,
.vr-history-category,
.vr-history-meta {
  font-size: .84rem;
  white-space: nowrap;
}

.vr-history-date {
  font-weight: 600;
}

.vr-history-category,
.vr-history-meta {
  color: #cbd5e1;
}

.vr-history-description {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .vm-record-top-compact {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .vm-record-cost {
    grid-column: 2;
    justify-self: start;
  }

  .vm-record-quickactions {
    grid-column: 3;
  }

  .vm-record-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vm-record-block-wide {
    grid-column: span 2;
  }
}

@media (max-width: 575.98px) {
  .vm-month-header,
  .vm-record-item {
    padding: .8rem;
  }

  .vr-history-item {
    grid-template-columns: 1fr;
  }

  .vr-history-description {
    white-space: normal;
  }

  .vm-record-top {
    grid-template-columns: 1fr;
  }

  .vm-record-cost {
    align-self: start;
  }

  .vm-record-meta {
    grid-template-columns: 1fr;
  }

  .vm-record-block-wide {
    grid-column: auto;
  }

  .vm-record-cost,
  .vm-record-actions {
    justify-self: start;
  }

}

@media (max-width: 767.98px) {
  .modal-dialog {
    margin: .5rem;
    max-width: calc(100vw - 1rem);
  }

  .modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 1rem);
  }

  .modal-header,
  .modal-footer {
    flex-shrink: 0;
  }

  .modal-body {
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

  .fc-page-header h1 {
    display: flex;
    align-items: center;
    gap: .25rem;
  }

.fc-local-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.fc-local-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: .45rem .9rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: .7rem;
  background: rgba(15, 23, 42, 0.22);
  color: #cbd5e1;
  text-decoration: none;
}

.fc-local-nav-link:hover,
.fc-local-nav-link:focus {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.65);
  background: rgba(30, 41, 59, 0.72);
}

.fc-local-nav-link.active {
  color: #fff;
  border-color: #60a5fa;
  background: rgba(37, 99, 235, 0.42);
}

.fc-compact-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1rem;
  padding: .75rem;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: .75rem;
  background: #172033;
  color: #f8fafc;
}

.fc-compact-header h1 {
  flex: 0 0 auto;
  gap: .4rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

.fc-compact-header .fc-local-nav {
  gap: .4rem;
}

.fc-compact-header .fc-local-nav-link {
  min-height: 2.75rem;
  padding: .4rem .65rem;
  border-radius: .45rem;
  background: #334155;
  color: #fff;
  font-size: .85rem;
}

.fc-compact-header .fc-local-nav-link:hover,
.fc-compact-header .fc-local-nav-link:focus-visible,
.fc-compact-header .fc-local-nav-link.active {
  background: #1d4ed8;
  border-color: #93c5fd;
}

.fc-compact-header .dropdown-menu {
  padding: .35rem;
  background: #172033;
  border-color: #64748b;
}

.fc-compact-header .dropdown-item {
  display: flex;
  justify-content: flex-start;
  margin-block: .15rem;
  white-space: normal;
}

.fc-compact-header .fc-local-nav-link:focus-visible,
.fc-sections-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.fc-inline-stats {
  display: flex;
  flex: 1 1 24rem;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .75rem;
  margin: 0;
  min-width: 0;
}

.fc-inline-stats > div {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  font-size: .78rem;
}

.fc-inline-stats dt {
  color: #cbd5e1;
  font-weight: 400;
}

.fc-inline-stats dd {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fc-sections-toggle {
  display: none;
}

@media (min-width: 768px) {
  .fc-compact-header .fc-local-nav {
    display: flex !important;
  }
}

@media (max-width: 767.98px) {
  .fc-sections-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.75rem;
    margin-left: auto;
  }

  .fc-sections-symbol::after {
    content: "+";
  }

  .fc-sections-toggle[aria-expanded="true"] .fc-sections-symbol::after {
    content: "-";
  }

  .fc-compact-header .fc-local-nav {
    order: 2;
    flex-basis: 100%;
  }

  .fc-compact-header .fc-local-nav:not(.show):not(.collapsing) {
    display: none;
  }

  .fc-inline-stats {
    flex-basis: 100%;
  }
}

  .fc-stat-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  .fc-stat-card-button {
    padding: 0;
    color: inherit;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
  }

  .fc-stat-card-button:hover,
  .fc-stat-card-button:focus-visible {
    border-color: #60a5fa;
    background: rgba(30, 41, 59, 0.78);
    transform: translateY(-2px);
  }

  .fc-stat-card-button:focus-visible {
    outline: 3px solid rgba(147, 197, 253, 0.65);
    outline-offset: 2px;
  }

  .fc-stat-card-button[aria-expanded="true"] {
    border-color: #93c5fd;
    background: rgba(37, 99, 235, 0.3);
  }

  .fc-stat-card-button::after {
    content: "+ View summary";
    display: block;
    padding: 0 1rem 1rem;
    color: #93c5fd;
    font-size: .78rem;
    font-weight: 700;
  }

  .fc-stat-card-button[aria-expanded="true"]::after {
    content: "− Hide summary";
  }

  .fc-stat-summaries .collapse.show,
  .fc-stat-summaries .collapsing {
    margin-bottom: 1rem;
  }

  .fc-stat-card-ok {
    border-color: rgba(16, 185, 129, 0.75);
  }

  .fc-stat-card-warning {
    border-color: rgba(245, 158, 11, 0.75);
  }

  .fc-stat-card-failed {
    border-color: rgba(239, 68, 68, 0.75);
  }

  .fc-stat-label {
    color: #cbd5e1;
    font-size: .82rem;
    line-height: 1.15;
  }

  .fc-stat-value {
    margin-top: .45rem;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    color: #f8fafc;
  }

@media (max-width: 767.98px) {
  .fc-page {
    display: flex;
    flex-direction: column;
  }

  .fc-page > .fc-stats-row {
    order: 99;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
    margin-right: 0;
    margin-bottom: 0 !important;
    margin-left: 0;
  }

  .fc-page > .fc-stat-summaries {
    order: 99;
    margin-top: .75rem;
  }

  .fc-page > .fc-stats-row > [class*="col-"] {
    width: auto;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }

  .fc-page > .fc-stats-row .fc-stat-card {
    min-height: 100%;
  }

  .fc-page > .fc-stats-row .fc-stat-value {
    font-size: 1.55rem;
  }
}

  .fc-toolbar-card,
  .fc-table-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.34);
  }

  .fc-toolbar-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .9fr);
    gap: 1.25rem;
    align-items: stretch;
  }

  .fc-search-panel,
  .fc-action-panel {
    min-width: 0;
  }

  .fc-search-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .fc-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
  }

  .fc-search-actions,
  .fc-action-buttons,
  .fc-filter-list,
  .fc-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
  }

  .fc-row-actions {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

.fc-forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.fc-forecast-card {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.55);
  padding: 1rem;
  display: grid;
  gap: .9rem;
}

.fc-forecast-good {
  border-color: rgba(16, 185, 129, 0.55);
}

.fc-forecast-warning {
  border-color: rgba(245, 158, 11, 0.7);
}

.fc-forecast-danger {
  border-color: rgba(239, 68, 68, 0.72);
}

.fc-forecast-muted {
  border-color: rgba(148, 163, 184, 0.24);
}

.fc-forecast-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .75rem;
}

.fc-forecast-title {
  font-weight: 700;
  color: #f8fafc;
}

.fc-forecast-subtitle,
.fc-forecast-detail,
.fc-forecast-metric-label,
.fc-forecast-axis,
.fc-forecast-threshold-label,
.fc-forecast-x-axis-label,
.fc-forecast-y-axis-label,
.fc-forecast-series-subtitle,
.fc-forecast-point-detail-title,
.fc-forecast-point-detail dt {
  color: #94a3b8;
}

.fc-forecast-summary {
  color: #f8fafc;
  font-weight: 600;
  margin-bottom: .35rem;
}

.fc-forecast-detail {
  font-size: .9rem;
  margin-bottom: .85rem;
}

.fc-forecast-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.fc-forecast-metric {
  border-radius: .8rem;
  background: rgba(30, 41, 59, 0.72);
  padding: .7rem .8rem;
}

.fc-forecast-metric-label {
  display: block;
  font-size: .78rem;
  margin-bottom: .18rem;
}

.fc-forecast-metric-value {
  color: #f8fafc;
  font-weight: 700;
}

.fc-forecast-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin: 0;
  padding: .75rem .9rem;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: .8rem;
  background: rgba(15, 23, 42, .42);
}

.fc-forecast-filters legend {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #f8fafc;
  font-size: .9rem;
  font-weight: 700;
}

.fc-forecast-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .7rem;
}

.fc-forecast-filter-label {
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 700;
}

.fc-forecast-filter-option {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #e2e8f0;
  font-size: .82rem;
  cursor: pointer;
}

.fc-forecast-filter-option input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #38bdf8;
}

.fc-forecast-chart-wrap {
  position: relative;
  border-radius: .9rem;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: .5rem;
  min-height: 250px;
}

.fc-forecast-chart {
  width: 100%;
  height: 240px;
  overflow: visible;
}

.fc-forecast-chart-shell {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: .6rem;
  align-items: stretch;
}

.fc-forecast-chart-shell:has(.fc-forecast-y-axis-label-secondary) {
  grid-template-columns: 4.5rem minmax(0, 1fr) 4.5rem;
}

.fc-forecast-chart-main {
  min-width: 0;
}

.fc-forecast-y-axis-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  font-size: .76rem;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-forecast-y-axis {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: stretch;
}

.fc-forecast-axis-ticks {
  position: relative;
  flex: 1 1 auto;
  font-size: .72rem;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}

.fc-forecast-axis-ticks span {
  position: absolute;
  width: 100%;
  transform: translateY(-50%);
  white-space: nowrap;
}

.fc-forecast-y-axis:not(.fc-forecast-y-axis-secondary) .fc-forecast-axis-ticks span {
  text-align: right;
  padding-right: .25rem;
}

.fc-forecast-y-axis-secondary .fc-forecast-axis-ticks span {
  padding-left: .25rem;
}

.fc-forecast-y-axis-label-secondary {
  transform: none;
}

.fc-forecast-x-axis-label {
  margin-top: .35rem;
  text-align: center;
  font-size: .76rem;
}

.fc-forecast-threshold {
  stroke-width: .7;
  stroke-dasharray: 3 2;
  opacity: .9;
}

.fc-forecast-threshold-secondary {
  stroke-dasharray: 2 2;
  opacity: .7;
}

.fc-forecast-grid-line {
  stroke: rgba(148, 163, 184, .2);
  stroke-width: .35;
  vector-effect: non-scaling-stroke;
}

.fc-forecast-history-line {
  stroke-width: .7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.fc-forecast-history-line-secondary {
  stroke-dasharray: 3 2;
  opacity: .78;
}

.fc-forecast-history-point {
  fill: var(--fc-forecast-series-colour, #f8fafc);
  stroke: #f8fafc;
  stroke-width: .55;
  shape-rendering: geometricPrecision;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
  vector-effect: non-scaling-stroke;
}

.fc-forecast-history-point:hover,
.fc-forecast-history-point:focus-visible,
.fc-forecast-history-point.fc-forecast-history-point-active,
.fc-forecast-projection-point:hover,
.fc-forecast-projection-point:focus-visible,
.fc-forecast-projection-point.fc-forecast-history-point-active {
  outline: none;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.35));
}

.fc-forecast-history-point-secondary {
  opacity: .9;
}

.fc-forecast-projection-line {
  stroke-width: 1.2;
  stroke-dasharray: 3 2;
}

.fc-forecast-projection-line-secondary {
  stroke-dasharray: 2 2;
}

.fc-forecast-projection-point {
  fill: var(--fc-forecast-series-colour, #f59e0b);
  stroke: #fff7ed;
  stroke-width: .8;
  cursor: pointer;
}

.fc-forecast-axis {
  position: relative;
  height: 1.25rem;
  font-size: .78rem;
  margin-top: .45rem;
}

.fc-forecast-axis span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.fc-forecast-threshold-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.fc-forecast-threshold-pill,
.fc-forecast-series-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.38);
}

.fc-forecast-threshold-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: 999px;
  padding: .35rem .7rem;
  font-size: .76rem;
  color: #e2e8f0;
}

.fc-forecast-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .7rem;
}

.fc-forecast-series-card {
  border-radius: .9rem;
  padding: .75rem .85rem;
}

.fc-forecast-series-top {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .5rem;
}

.fc-forecast-series-swatch {
  width: .8rem;
  height: .8rem;
  border-radius: 999px;
  background: var(--fc-forecast-series-colour, #38bdf8);
  box-shadow: 0 0 0 2px rgba(255,255,255,.08);
  flex: 0 0 auto;
  margin-top: .18rem;
}

.fc-forecast-series-title {
  color: #f8fafc;
  font-weight: 700;
}

.fc-forecast-series-subtitle {
  font-size: .78rem;
}

.fc-forecast-series-values {
  display: grid;
  gap: .2rem;
  color: #e2e8f0;
  font-size: .82rem;
}

.fc-forecast-series-detail {
  margin-top: .45rem;
  color: #cbd5e1;
  font-size: .8rem;
}

.fc-forecast-point-detail {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: .9rem;
  background: rgba(15, 23, 42, 0.38);
  padding: .8rem .9rem;
}

.fc-forecast-point-detail-title {
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.fc-forecast-point-detail-empty,
.fc-forecast-point-detail dd {
  color: #f8fafc;
}

.fc-forecast-point-detail-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .2rem .75rem;
  margin: 0;
}

.fc-forecast-point-detail dt,
.fc-forecast-point-detail dd {
  margin: 0;
  font-size: .85rem;
}

@media (max-width: 767.98px) {
  .fc-forecast-metrics,
  .fc-forecast-series-grid {
    grid-template-columns: 1fr;
  }

  .fc-forecast-chart-shell,
  .fc-forecast-chart-shell:has(.fc-forecast-y-axis-label-secondary) {
    grid-template-columns: 1rem minmax(0, 1fr) 1rem;
  }

  .fc-forecast-chart {
    height: 180px;
  }

  .fc-forecast-chart-wrap {
    min-height: 190px;
  }
}

.fc-mileage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.fc-mileage-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.55);
  padding: 1rem;
}

.fc-mileage-card-trend {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.95));
}

.fc-mileage-label,
.fc-mileage-subtext {
  color: #94a3b8;
}

.fc-mileage-label {
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .45rem;
}

.fc-mileage-value {
  color: #f8fafc;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
}

.fc-mileage-subtext {
  margin-top: .45rem;
  font-size: .82rem;
}

.fc-mileage-trend-row {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.fc-mileage-trend-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  font-size: 1rem;
}

.fc-mileage-trend-up {
  border-color: rgba(239, 68, 68, 0.72);
}

.fc-mileage-trend-up .fc-mileage-trend-icon {
  color: #fca5a5;
}

.fc-mileage-trend-down {
  border-color: rgba(16, 185, 129, 0.72);
}

.fc-mileage-trend-down .fc-mileage-trend-icon {
  color: #86efac;
}

.fc-mileage-trend-neutral {
  border-color: rgba(148, 163, 184, 0.3);
}

.fc-mileage-trend-neutral .fc-mileage-trend-icon {
  color: #cbd5e1;
}

@media (max-width: 575.98px) {
  .fc-mileage-grid {
    grid-template-columns: 1fr;
  }

  .fc-mileage-value {
    font-size: 1.3rem;
  }
}

  .fc-search-actions {
    justify-content: flex-end;
  }

  .fc-field {
    min-width: 0;
  }

  .fc-filter-list {
    align-items: center;
  }

  .fc-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: .45rem .9rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: .65rem;
    background: rgba(15, 23, 42, 0.22);
    color: #cbd5e1;
    text-decoration: none;
    font-size: .9rem;
    transition: .15s ease-in-out;
  }

  .fc-filter-pill:hover {
    color: #fff;
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(30, 41, 59, 0.65);
  }

  .fc-filter-pill.active {
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .fc-filter-pill-all.active {
    background: #8b5cf6;
    border-color: #a78bfa;
  }

  .fc-filter-pill-ok.active {
    background: #059669;
    border-color: #10b981;
  }

.ft-value-text {
  margin-top: .45rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #f8fafc;
}

.ft-meta-list dt {
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: .55rem;
}

.ft-meta-list dd {
  color: #f8fafc;
  margin-bottom: .55rem;
}

.ft-timeline {
  display: flex;
  min-height: 2.75rem;
  border-radius: .85rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.ft-timeline-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: .45rem;
  color: #94a3b8;
  font-size: .75rem;
}

.ft-timeline-scale span {
  position: relative;
}

.ft-timeline-scale span:nth-child(2),
.ft-timeline-scale span:nth-child(3),
.ft-timeline-scale span:nth-child(4) {
  text-align: center;
}

.ft-timeline-scale span:last-child {
  text-align: right;
}

.ft-timeline-segment {
  min-width: .2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ft-timeline-segment:last-child {
  border-right: 0;
}

.ft-timeline-driving {
  background: linear-gradient(90deg, #dc2626, #ef4444);
}

.ft-timeline-work {
  background: linear-gradient(90deg, #1d4ed8, #3b82f6);
}

.ft-timeline-rest {
  background: linear-gradient(90deg, #059669, #10b981);
}

.ft-timeline-availability {
  background: linear-gradient(90deg, #b45309, #f59e0b);
  color: #111827;
}

.ft-timeline-other {
  background: linear-gradient(90deg, #475569, #64748b);
}

.ft-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.15rem;
}

.ft-legend-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #e2e8f0;
  font-size: .82rem;
}

.ft-legend-swatch {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: .3rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ft-hit-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 .45rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(96, 165, 250, 0.65);
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.ft-rule-link {
  color: #93c5fd;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.ft-rule-link:hover,
.ft-rule-link:focus {
  color: #dbeafe;
  border-bottom-color: rgba(147, 197, 253, 0.8);
}

.ft-rule-link-active {
  color: #fff;
  border-bottom-color: rgba(96, 165, 250, 0.95);
}

.ft-infringement-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.ft-infringement-item {
  padding: .8rem .9rem;
  border-radius: .85rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.45);
}

.ft-infringement-danger {
  border-color: rgba(239, 68, 68, 0.7);
  background: rgba(127, 29, 29, 0.38);
}

.ft-infringement-warning {
  border-color: rgba(245, 158, 11, 0.7);
  background: rgba(120, 53, 15, 0.35);
}

.ft-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .75rem;
}

.ft-week-strip-day {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: .35rem;
  border-radius: .75rem;
  border: 1px solid transparent;
}

.ft-week-strip-day-alert {
  background: rgba(127, 29, 29, 0.28);
  border-color: rgba(239, 68, 68, 0.72);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.18);
}

.ft-week-strip-day-corrected {
  background-color: rgba(6, 95, 70, 0.24);
  background-image: repeating-linear-gradient(135deg, rgba(16, 185, 129, 0.32) 0, rgba(16, 185, 129, 0.32) 6px, rgba(5, 150, 105, 0.08) 6px, rgba(5, 150, 105, 0.08) 12px);
  border-color: rgba(16, 185, 129, 0.78);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.2);
}

.ft-week-strip-day-muted {
  opacity: 0.45;
}

.ft-week-strip-label,
.ft-week-strip-date {
  font-size: .75rem;
  color: #cbd5e1;
  text-align: center;
}

.ft-week-strip-timeline {
  min-height: 1.1rem;
  border-radius: .55rem;
}

@media (max-width: 991.98px) {
  .ft-week-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fc-inline-stack {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.fc-note-input {
  min-width: 14rem;
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.3);
  color: #f8fafc;
}

.fc-note-input::placeholder {
  color: #94a3b8;
}

.fc-note-input:focus {
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  border-color: rgba(96, 165, 250, 0.85);
  box-shadow: 0 0 0 .18rem rgba(59, 130, 246, 0.2);
}

  .fc-filter-pill-warning.active {
    background: #b45309;
    border-color: #f59e0b;
  }

  .fc-filter-pill-failed.active {
    background: #b91c1c;
    border-color: #ef4444;
  }

  .fc-filter-pill-neutral.active {
    background: #475569;
    border-color: #94a3b8;
  }

  .fc-action-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .85rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(148, 163, 184, 0.15);
  }

  .fc-action-label {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #94a3b8;
  }

  .fc-action-buttons {
    justify-content: flex-start;
  }

  .fc-table thead th {
    white-space: nowrap;
    font-weight: 600;
  }

  .fc-registration {
    font-weight: 700;
    letter-spacing: .02em;
    color: #f8fafc;
  }

  .fc-row-tag {
    display: inline-block;
    margin-top: .35rem;
    padding: .18rem .5rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
    font-size: .72rem;
  }

.fc-row-tag-danger {
  background: rgba(185, 28, 28, 0.32);
  color: #fecaca;
}

.fc-row-tag-warning {
  background: rgba(180, 83, 9, 0.32);
  color: #fde68a;
}

  .fc-vehicle-name {
    font-weight: 600;
    color: #f8fafc;
  }

  .fc-subtext {
    margin-top: .15rem;
    font-size: .82rem;
    color: #94a3b8;
    line-height: 1.25;
  }

  .fc-date-cell {
    white-space: nowrap;
  }

  .fc-date-main {
    color: #f8fafc;
    line-height: 1.2;
  }

  .fc-date-subtext {
    margin-top: .15rem;
    font-size: .78rem;
    color: #94a3b8;
    line-height: 1.2;
  }

  .fc-status-pill {
    min-width: 78px;
    padding: .4rem .6rem;
    font-size: .76rem;
  }

  .fc-row-actions .btn {
    min-width: 0;
    flex: 0 0 auto;
  }

  .fc-row-actions .btn-outline-primary {
    color: #dbeafe;
    border-color: #60a5fa;
    background: rgba(37, 99, 235, 0.22);
  }

  .fc-row-actions .btn-outline-primary:hover,
  .fc-row-actions .btn-outline-primary:focus {
    color: #ffffff;
    border-color: #93c5fd;
    background: rgba(37, 99, 235, 0.4);
  }

  .fc-row-actions .btn-outline-secondary {
    color: #f8fafc;
    border-color: #94a3b8;
    background: rgba(71, 85, 105, 0.34);
  }

  .fc-row-actions .btn-outline-secondary:hover,
  .fc-row-actions .btn-outline-secondary:focus {
    color: #ffffff;
    border-color: #cbd5e1;
    background: rgba(100, 116, 139, 0.48);
  }

.fc-expand-cell {
  width: 1%;
  white-space: nowrap;
}

.fc-expand-button {
  min-width: 2rem;
}

.fc-detail-panel {
  padding: 1rem;
  background: rgba(2, 6, 23, 0.7);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.fc-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 1rem;
}

.fc-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fc-detail-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.34);
  padding: 1rem;
}

.fc-detail-card-wide {
  grid-column: 1 / -1;
}

.fc-detail-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: .9rem;
}

.fc-empty-state {
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: .8rem;
  padding: .9rem 1rem;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.22);
}

.fc-report-toolbar {
  position: sticky;
  top: 1rem;
  z-index: 10;
}

.fc-report-section {
  break-inside: avoid;
}

.fc-report-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  min-width: min(100%, 28rem);
}

.fc-report-summary-item {
  padding: .85rem 1rem;
  border-radius: .85rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.28);
}

.fc-report-day-card {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.28);
  break-inside: avoid;
}

.fc-report-day-card-corrected {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(6, 95, 70, 0.16);
}

.fc-powertrain-panel,
.fc-report-method,
.fc-trend-panel {
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: .9rem;
  background: rgba(15, 23, 42, .32);
  padding: 1rem;
}

.fc-report-filter {
  position: relative;
}

.fc-report-vehicle-select {
  min-height: 9.5rem;
}

.fc-report-mode-options {
  display: grid;
  gap: .6rem;
}

.fc-report-mode-option {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 3.25rem;
  padding: .65rem .8rem;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: .75rem;
  background: rgba(15, 23, 42, .34);
  cursor: pointer;
}

.fc-report-mode-option:has(input:checked) {
  border-color: #3b82f6;
  background: rgba(37, 99, 235, .18);
}

.fc-report-mode-option span,
.fc-report-mode-option small {
  display: block;
}

.fc-report-mode-option small {
  color: #94a3b8;
}

.fc-report-mode-single {
  opacity: .55;
}

.fc-cost-report-section {
  break-inside: avoid;
  border-color: rgba(148, 163, 184, .2);
}

.fc-cost-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}

.fc-cost-kpi {
  display: grid;
  gap: .3rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: .9rem;
  background: rgba(15, 23, 42, .34);
}

.fc-cost-kpi span,
.fc-cost-kpi small {
  color: #94a3b8;
}

.fc-cost-kpi strong {
  color: #f8fafc;
  font-size: 1.35rem;
}

.fc-cost-kpi-primary {
  border-color: rgba(59, 130, 246, .65);
}

.fc-cost-kpi-total {
  border-color: rgba(34, 197, 94, .65);
  background: rgba(22, 101, 52, .18);
}

.fc-chart-panel {
  position: relative;
  min-height: 22rem;
  padding: .8rem;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: .9rem;
  background: rgba(2, 6, 23, .28);
}

.fc-chart-panel-tall {
  min-height: 28rem;
}

.fc-trend-panel {
  min-height: 8rem;
}

@media (max-width: 991.98px) {
  .fc-cost-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .fc-cost-kpi-grid {
    grid-template-columns: 1fr;
  }

  .fc-chart-panel,
  .fc-chart-panel-tall {
    min-height: 20rem;
    overflow-x: auto;
  }
}

@media print {
  .no-print,
  header,
  footer,
  .fc-toolbar-card,
  .fc-page > .alert {
    display: none !important;
  }

  body,
  .container,
  .container-fluid,
  main,
  .fc-page {
    background: #ffffff !important;
    color: #111827 !important;
  }

  .card,
  .fc-report-day-card,
  .fc-report-summary-item,
  .ft-infringement-item,
  .fc-empty-state {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
  }

  .text-light,
  .text-muted,
  .small,
  .fc-stat-label,
  .ft-value-text,
  .ft-infringement-item .small {
    color: #111827 !important;
  }

  .badge {
    border: 1px solid #94a3b8 !important;
    color: #111827 !important;
    background: #f8fafc !important;
  }

  .fc-table,
  .fc-table th,
  .fc-table td {
    color: #111827 !important;
    border-color: #cbd5e1 !important;
  }
}

.fc-reminder-list,
.fc-maintenance-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.fc-reminder-item,
.fc-maintenance-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .9rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: .85rem;
  background: rgba(15, 23, 42, 0.28);
}

.fc-reminder-state-overdue {
  border-color: rgba(239, 68, 68, 0.55);
}

.fc-reminder-state-due-soon {
  border-color: rgba(245, 158, 11, 0.55);
}

.fc-reminder-state-booked {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(30, 41, 59, 0.36);
}

.fc-reminder-state-booked-missed {
  border-color: rgba(249, 115, 22, 0.75);
  background: rgba(124, 45, 18, 0.28);
}

.fc-reminder-state-open {
  border-color: rgba(96, 165, 250, 0.3);
}

.fc-reminder-main,
.fc-maintenance-main {
  min-width: 0;
  flex: 1 1 320px;
}

.fc-reminder-actions,
.fc-maintenance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: flex-start;
}

.fc-reminder-title-row,
.fc-maintenance-top {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
}

.fc-reminder-title,
.fc-maintenance-description {
  font-weight: 600;
  color: #f8fafc;
}

.fc-reminder-badge,
.fc-maintenance-category,
.fc-maintenance-linked {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
}

.fc-reminder-badge {
  background: rgba(37, 99, 235, 0.3);
  color: #dbeafe;
}

.fc-tyre-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.fc-tyre-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}

.fc-tyre-status-card {
  min-width: 14rem;
  padding: .75rem .9rem;
  border-radius: .85rem;
  color: #fff;
}

.fc-tyre-status-card.bg-warning {
  color: #111827;
}

.fc-reminder-state-overdue .fc-reminder-badge {
  background: rgba(185, 28, 28, 0.34);
  color: #fecaca;
}

.fc-reminder-state-due-soon .fc-reminder-badge {
  background: rgba(180, 83, 9, 0.34);
  color: #fde68a;
}

.fc-reminder-meta,
.fc-maintenance-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  margin-top: .35rem;
  color: #cbd5e1;
  font-size: .84rem;
}

.fc-maintenance-date,
.fc-maintenance-category,
.fc-maintenance-linked {
  color: #e2e8f0;
}

.fc-maintenance-category {
  background: rgba(71, 85, 105, 0.55);
}

.fc-maintenance-linked {
  background: rgba(14, 165, 233, 0.28);
  color: #bae6fd;
}

.fc-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.fc-snapshot-item {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: .8rem .9rem;
  border-radius: .85rem;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.fc-snapshot-item-wide {
  grid-column: span 2;
}

.fc-snapshot-label {
  font-size: .78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
}

@media (max-width: 1199.98px) {
  .fc-toolbar-grid {
    grid-template-columns: 1fr;
  }

  .fc-action-panel {
    padding-left: 0;
    padding-top: 1rem;
    border-left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
  }
}

@media (max-width: 767.98px) {
  .fc-search-row {
    grid-template-columns: 1fr;
  }

  .fc-search-actions {
    justify-content: flex-start;
  }

  .fc-action-buttons .btn,
  .fc-search-actions .btn {
    flex: 1 1 160px;
  }

  .fc-detail-grid,
  .fc-snapshot-grid {
    grid-template-columns: 1fr;
  }

  .fc-snapshot-item-wide {
    grid-column: auto;
  }
}

.ea-card,
.ea-stat-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ea-stat-card-success {
  border-color: rgba(16, 185, 129, 0.55);
}

.ea-stat-card-warning {
  border-color: rgba(245, 158, 11, 0.55);
}

.ea-stat-card-info {
  border-color: rgba(59, 130, 246, 0.55);
}

.ea-stat-label {
  color: #cbd5e1;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ea-stat-value {
  margin-top: .5rem;
  color: #f8fafc;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.ea-stat-value-sm {
  font-size: 1.15rem;
  line-height: 1.2;
}

.ea-table {
  width: 100%;
  table-layout: fixed;
}

.ea-file-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ea-status-stack {
  min-width: 0;
}

.ea-table th,
.ea-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}

.ea-table-ai th:nth-child(1),
.ea-table-ai td:nth-child(1) {
  width: 14%;
}

.ea-table-ai th:nth-child(2),
.ea-table-ai td:nth-child(2) {
  width: 16%;
}

.ea-table-ai th:nth-child(3),
.ea-table-ai td:nth-child(3) {
  width: 24%;
}

.ea-table-ai th:nth-child(4),
.ea-table-ai td:nth-child(4) {
  width: 16%;
}

.ea-table-ai th:nth-child(5),
.ea-table-ai td:nth-child(5) {
  width: 18%;
}

.ea-table-ai th:nth-child(6),
.ea-table-ai td:nth-child(6) {
  width: 12%;
}

.ea-table-compact th:nth-child(1),
.ea-table-compact td:nth-child(1) {
  width: 18%;
}

.ea-table-compact th:nth-child(2),
.ea-table-compact td:nth-child(2) {
  width: 28%;
}

.ea-table-compact th:nth-child(3),
.ea-table-compact td:nth-child(3) {
  width: 18%;
}

.ea-table-compact th:nth-child(4),
.ea-table-compact td:nth-child(4) {
  width: 24%;
}

.ea-table-compact th:nth-child(5),
.ea-table-compact td:nth-child(5) {
  width: 12%;
}

.ea-table-compact th:nth-child(6),
.ea-table-compact td:nth-child(6) {
  width: 16%;
}

.ea-table .btn {
  white-space: normal;
  text-align: left;
}

.ea-source-card {
  height: 100%;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: .9rem;
  background: rgba(15, 23, 42, 0.24);
}

.ea-source-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.ea-source-pill {
  display: inline-flex;
  align-items: center;
  padding: .28rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}

.ea-source-pill-success {
  background: rgba(22, 163, 74, 0.18);
  color: #86efac;
}

.ea-source-pill-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

.ea-source-pill-info {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.ea-source-pill-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.ea-source-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.ea-source-meta dt {
  margin: 0 0 .2rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #94a3b8;
}

.ea-source-meta dd {
  margin: 0;
  color: #e2e8f0;
}

.ea-scan-list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.ea-scan-item {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: .9rem;
  background: rgba(15, 23, 42, 0.24);
  padding: 1rem;
}

.ea-scan-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}

.ea-scan-summary::-webkit-details-marker {
  display: none;
}

.ea-scan-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
}

.ea-scan-metric {
  display: inline-flex;
  align-items: center;
  padding: .28rem .6rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #e2e8f0;
  font-size: .78rem;
  white-space: nowrap;
}

.ea-log-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.ea-log-item {
  border-left: 3px solid rgba(148, 163, 184, 0.22);
  padding: .15rem 0 .15rem .85rem;
}

@media (max-width: 767.98px) {
  .ea-scan-summary {
    flex-direction: column;
  }

  .ea-scan-metrics {
    justify-content: flex-start;
  }

  .ea-source-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .fc-stat-value {
    font-size: 1.85rem;
  }

  .fc-filter-pill,
  .fc-row-actions .btn,
  .fc-action-buttons .btn,
  .fc-search-actions .btn {
    width: 100%;
  }
}

.fc-driver-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fc-driver-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.65);
  overflow: hidden;
}

.fc-driver-summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  cursor: pointer;
}

.fc-driver-summary::-webkit-details-marker {
  display: none;
}

.fc-driver-summary-toggle {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.24);
  color: #e2e8f0;
  font-weight: 700;
  flex-shrink: 0;
}

.fc-driver-summary-toggle::before {
  content: '+';
}

.details-open > .fc-driver-summary .fc-driver-summary-toggle::before,
.fc-driver-card[open] > .fc-driver-summary .fc-driver-summary-toggle::before {
  content: '-';
}

.fc-driver-summary-main {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.fc-driver-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}

.fc-driver-subline {
  font-size: .85rem;
  color: #94a3b8;
}

.fc-driver-summary-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .4rem;
}

.fc-driver-body {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 1rem 1.15rem 1.15rem;
}

.fc-driver-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.fc-driver-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fc-driver-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: .85rem;
  background: rgba(15, 23, 42, 0.45);
  padding: 1rem;
}

.fc-driver-panel-wide {
  grid-column: 1 / -1;
}

.fc-driver-panel h3 {
  margin: 0 0 .85rem;
  font-size: 1rem;
  color: #f8fafc;
}

.fc-driver-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1rem;
  margin: 0;
}

.fc-driver-kv div {
  min-width: 0;
}

.fc-driver-kv dt {
  margin: 0 0 .2rem;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #94a3b8;
}

.fc-driver-kv dd {
  margin: 0;
  color: #e2e8f0;
  word-break: break-word;
}

.fc-driver-note {
  color: #e2e8f0;
  margin-bottom: .75rem;
}

.fc-driver-subsection-title {
  font-size: .88rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: .5rem;
}

.fc-driver-penalty-current > * {
  background-color: rgba(22, 163, 74, .12) !important;
}

.fc-driver-penalty-expired > * {
  background-color: rgba(220, 38, 38, .14) !important;
}

.fc-driver-penalty-status {
  display: inline-block;
  border-radius: 999px;
  padding: .2rem .5rem;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
}

.fc-driver-penalty-status-current {
  background-color: #166534;
  color: #f0fdf4;
}

.fc-driver-penalty-status-expired {
  background-color: #b91c1c;
  color: #fef2f2;
}

.fc-entitlement-group {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 1rem;
}

.fc-entitlement-group:last-child {
  margin-bottom: 0;
}

.fc-entitlement-group-title {
  font-size: .95rem;
  font-weight: 700;
  color: #f8fafc;
}

.fc-entitlement-group-summary {
  font-size: .84rem;
  color: #94a3b8;
}

.fc-entitlement-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: .8rem;
  background: rgba(30, 41, 59, 0.62);
  padding: .85rem .9rem;
}

.fc-entitlement-card-title {
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: .3rem;
}

.fc-entitlement-card-meta {
  font-size: .82rem;
  color: #cbd5e1;
  margin-bottom: .45rem;
}

.fc-entitlement-list {
  margin: 0;
  padding-left: 1rem;
  color: #e2e8f0;
}

.people-admin-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.people-admin-sidebar,
.people-admin-editor {
  min-width: 0;
}

.people-admin-sidebar-card,
.people-admin-editor-card,
.people-admin-detail-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.people-admin-sidebar-card {
  position: sticky;
  top: 1rem;
}

.people-admin-sidebar-top,
.people-admin-editor-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.people-admin-sidebar-title,
.people-admin-editor-eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .74rem;
  color: #93c5fd;
}

.people-admin-sidebar-meta {
  font-size: .84rem;
  color: #cbd5e1;
}

.people-admin-search-wrap {
  position: relative;
  margin-top: 1rem;
}

.people-admin-search-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.people-admin-search {
  padding-left: 2.5rem;
}

.people-admin-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1rem;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: .15rem;
}

.people-admin-empty,
.people-admin-person,
.people-admin-section,
.people-admin-info-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: .9rem;
  background: rgba(15, 23, 42, 0.5);
}

.people-admin-empty {
  padding: 1rem;
  color: #94a3b8;
}

.people-admin-person {
  padding: .85rem;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.people-admin-person:hover {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(30, 41, 59, 0.75);
}

.people-admin-person.is-selected {
  border-color: rgba(59, 130, 246, 0.8);
  background: rgba(30, 64, 175, 0.24);
  box-shadow: 0 0 0 .12rem rgba(59, 130, 246, 0.16);
}

.people-admin-person-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.people-admin-person-main > :first-child {
  flex: 1 1 12rem;
  min-width: 0;
}

.people-admin-person-name {
  font-weight: 700;
  color: #f8fafc;
  overflow-wrap: anywhere;
}

.people-admin-person-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .4rem;
}

.people-admin-person-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
  flex: 0 0 auto;
}

.people-admin-person-meta {
  overflow-wrap: anywhere;
}

.people-admin-editor-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.people-admin-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.people-admin-section {
  padding: 1rem;
}

.people-admin-section-header {
  margin-bottom: 1rem;
}

.people-admin-section-header h3 {
  margin: 0 0 .25rem;
  font-size: 1.05rem;
  color: #f8fafc;
}

.people-admin-section-header p {
  margin: 0;
  color: #94a3b8;
  font-size: .9rem;
}

.people-admin-check {
  padding: .85rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: .85rem;
  background: rgba(30, 41, 59, 0.55);
}

.people-admin-profile-preview {
  display: inline-flex;
  padding: .4rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.5);
}

.people-admin-info-card {
  padding: .85rem .95rem;
  height: 100%;
}

.people-admin-info-card-title {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #93c5fd;
  margin-bottom: .3rem;
}

.people-admin-expandable {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: .9rem;
  background: rgba(15, 23, 42, 0.5);
  overflow: hidden;
}

.people-admin-expandable-summary {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1rem;
  cursor: pointer;
  list-style: none;
  color: #e2e8f0;
}

.people-admin-expandable-summary::-webkit-details-marker {
  display: none;
}

.people-admin-expandable-icon {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.5);
  background: rgba(37, 99, 235, 0.16);
}

.people-admin-expandable-icon::before,
.people-admin-expandable-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #f8fafc;
  transform: translate(-50%, -50%);
}

.people-admin-expandable-icon::before {
  width: .75rem;
  height: 2px;
}

.people-admin-expandable-icon::after {
  width: 2px;
  height: .75rem;
}

.people-admin-expandable[open] .people-admin-expandable-icon::after {
  display: none;
}

.people-admin-expandable-text {
  flex: 1 1 auto;
  line-height: 1.45;
  word-break: break-word;
}

.people-admin-expandable-body {
  padding: 0 1rem 1rem 3.25rem;
  white-space: pre-wrap;
  color: #cbd5e1;
  font-size: .88rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.people-admin-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.people-admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 991.98px) {
  .people-admin-layout,
  .people-admin-detail-grid {
    grid-template-columns: 1fr;
  }

  .people-admin-sidebar-card {
    position: static;
  }

  .people-admin-list {
    max-height: none;
  }

  .people-admin-header-actions,
  .fc-driver-summary {
    grid-template-columns: auto 1fr;
  }

  .fc-driver-summary-badges {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .fc-driver-grid,
  .fc-driver-kv {
    grid-template-columns: 1fr;
  }
}

.vehicles-admin-table {
  min-width: 660px;
  margin-bottom: 0;
}

.vehicles-admin-table > :not(caption) > * > * {
  padding: .7rem .8rem;
}

.vehicles-admin-expand-column {
  width: 3rem;
  text-align: center;
}

.vehicles-admin-expand-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #60a5fa;
  border-radius: .5rem;
  background: #1d4ed8;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.vehicles-admin-expand-button:hover,
.vehicles-admin-expand-button:focus-visible,
.vehicles-admin-expand-button[aria-expanded="true"] {
  border-color: #bfdbfe;
  background: #2563eb;
  color: #fff;
}

.vehicles-admin-class {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #dbeafe;
}

.vehicles-admin-class .bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: .55rem;
  background: rgba(37, 99, 235, .22);
  color: #93c5fd;
  font-size: 1.1rem;
}

.vehicles-admin-name {
  color: #f8fafc;
  font-weight: 650;
}

.vehicles-admin-registration {
  display: inline-block;
  padding: .2rem .5rem;
  border: 1px solid rgba(251, 191, 36, .55);
  border-radius: .35rem;
  background: rgba(251, 191, 36, .12);
  color: #fde68a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  letter-spacing: .04em;
}

.vehicles-admin-summary-row:hover > td {
  background: rgba(30, 64, 175, .15);
}

.vehicles-admin-inactive {
  opacity: .62;
}

.vehicles-admin-details-row > td {
  padding: 0 !important;
  border-top: 0;
}

.vehicles-admin-details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  padding: 1rem 1rem 1.15rem 4rem;
  border-top: 1px solid rgba(96, 165, 250, .2);
  background: rgba(15, 23, 42, .75);
}

.vehicles-admin-details-grid > div {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
  padding: .6rem .7rem;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: .55rem;
  background: rgba(30, 41, 59, .45);
}

.vehicles-admin-details-grid span {
  color: #94a3b8;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.vehicles-admin-details-grid strong {
  overflow-wrap: anywhere;
  color: #e2e8f0;
  font-size: .88rem;
}

.vehicles-admin-detail-wide {
  grid-column: span 2;
}

@media (max-width: 991.98px) {
  .vehicles-admin-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .vehicles-admin-table-wrap {
    margin-right: -.75rem;
    margin-left: -.75rem;
  }

  .vehicles-admin-table {
    min-width: 590px;
  }

  .vehicles-admin-details-grid {
    grid-template-columns: 1fr;
    padding-left: 1rem;
  }

  .vehicles-admin-detail-wide {
    grid-column: auto;
  }
}

.audit-log-table {
  white-space: nowrap;
  font-size: .875rem;
}

.audit-log-table td > div {
  display: inline;
}

.audit-log-table td > div + div::before {
  content: " · ";
  color: var(--bs-secondary-color);
}
