.airport-transfers-view {
  display: block;
}

.transfers-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.transfers-heading h2 {
  font-size: 1.35rem;
}

.transfers-subtitle {
  max-width: 720px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.transfers-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.transfers-freshness {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.transfers-freshness.stale {
  color: var(--warn);
}

.transfers-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 0.7fr)) repeat(4, minmax(145px, 0.9fr)) minmax(190px, 1.2fr) auto;
  gap: 9px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.transfers-filters input,
.transfers-filters select,
.transfers-form-grid textarea {
  min-width: 0;
}

.transfers-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.transfers-metrics .metric {
  min-height: 76px;
}

.transfers-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
  gap: 14px;
  align-items: start;
}

.transfers-queue-panel {
  min-width: 0;
}

.transfers-table-wrap {
  max-height: calc(100vh - 330px);
  min-height: 360px;
}

.transfers-table {
  min-width: 1180px;
}

.transfers-table td strong,
.transfers-table td span {
  display: block;
}

.transfers-table td strong + span {
  margin-top: 2px;
}

.transfers-direction {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.transfers-direction.arrival {
  color: color-mix(in srgb, var(--brand-gold) 72%, var(--heading-color));
  background: var(--accent-soft);
}

.transfers-direction.departure {
  color: color-mix(in srgb, var(--brand-gold) 72%, var(--heading-color));
  background: var(--accent-soft);
}

.transfers-direction.inter_hotel {
  color: color-mix(in srgb, var(--brand-gold) 72%, var(--heading-color));
  background: var(--accent-soft);
}

.transfers-warning-text {
  max-width: 180px;
  color: var(--warn) !important;
  white-space: normal;
}

.transfers-detail {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.transfers-detail-empty,
.transfers-detail-loading,
.transfers-detail-error {
  min-height: 240px;
  display: grid;
  align-content: center;
  padding: 24px;
}

.transfers-detail-empty p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.transfers-detail-loading {
  color: var(--muted);
  font-weight: 750;
}

.transfers-detail-error {
  color: var(--error);
  background: var(--error-soft);
}

.transfers-detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.transfers-close {
  min-height: 30px;
}

.transfers-detail-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.transfers-detail-summary > div {
  min-width: 0;
  padding: 10px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.transfers-detail-summary > div:nth-child(2n) {
  border-right: 0;
}

.transfers-detail-summary span,
.transfers-section-heading span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.transfers-detail-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--strong);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.transfers-alert {
  display: grid;
  gap: 3px;
  margin: 12px 14px 0;
  padding: 10px 12px;
  border: 1px solid #efd092;
  border-radius: 7px;
  color: var(--warn);
  background: var(--warn-soft);
  font-size: 0.78rem;
}

.transfers-detail-section,
.transfers-edit-form {
  padding: 14px;
  border-top: 1px solid var(--line);
}

.transfers-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.transfers-section-heading h3 {
  margin: 0;
  color: var(--strong);
  font-size: 0.88rem;
}

.transfers-guest-list,
.transfers-note-list,
.transfers-event-list {
  display: grid;
  gap: 8px;
}

.transfers-guest,
.transfers-note,
.transfers-event-list > div {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.transfers-guest strong,
.transfers-note strong,
.transfers-event-list strong {
  color: var(--strong);
  font-size: 0.8rem;
}

.transfers-guest span,
.transfers-note span,
.transfers-event-list span {
  color: var(--muted);
  font-size: 0.72rem;
}

.transfers-note p {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 0.78rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

.transfers-form-grid .field:last-child {
  grid-column: 1 / -1;
}

.transfers-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.transfers-inline-status,
.transfers-readonly,
.transfers-empty-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.transfers-inline-status.error {
  color: var(--error);
}

.transfers-readonly {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.transfers-dispatch {
  margin-bottom: 14px;
  padding: 0;
}

.transfers-dispatch .panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}

.transfers-dispatch .panel-heading::-webkit-details-marker {
  display: none;
}

.transfers-dispatch[open] .panel-heading {
  border-bottom: 1px solid var(--line);
}

.dispatch-collapsible-content {
  padding: 14px;
}

.transfers-dispatch .panel-heading h2 {
  margin-top: 2px;
  font-size: 1rem;
}

.dispatch-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr)) auto;
  gap: 9px;
  align-items: end;
}

.dispatch-form .field[hidden] {
  display: none;
}

.dispatch-form button {
  white-space: nowrap;
}

.dispatch-trip-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.dispatch-trip-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.dispatch-trip-item strong,
.dispatch-trip-item span {
  display: block;
  overflow-wrap: anywhere;
}

.dispatch-trip-item strong {
  color: var(--strong);
  font-size: 0.8rem;
}

.dispatch-trip-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.transfers-table .select-column {
  width: 56px;
  text-align: center;
}

.transfers-table .select-column input {
  width: 17px;
  height: 17px;
}

.source-change-panel {
  margin-bottom: 14px;
  padding: 14px;
  border-color: #efd092;
  background: var(--warn-soft);
}

.source-change-panel .panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.source-change-panel h2 {
  margin-top: 2px;
  font-size: 1rem;
}

.source-change-list {
  display: grid;
  gap: 8px;
}

.source-change-item {
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) minmax(260px, 1.4fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #efd092;
  border-radius: 7px;
  background: var(--surface);
}

.source-change-item > div:first-child strong,
.source-change-item > div:first-child span {
  display: block;
}

.source-change-item > div:first-child strong {
  color: var(--strong);
  font-size: 0.8rem;
}

.source-change-item > div:first-child span,
.source-change-item li span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.source-change-item ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-change-item li strong,
.source-change-item li span {
  display: block;
}

.source-change-item li select {
  min-width: 150px;
  margin-top: 5px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 0.7rem;
}

.source-change-item li small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.66rem;
}

.transfer-data-badge {
  display: block;
  width: max-content;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
}

.transfer-data-badge.edited {
  color: #5f4a10;
  background: #fff1bd;
}

.transfer-data-badge.pending {
  color: #8b2f20;
  background: #ffe0d9;
}

.transfers-view-switch {
  display: flex;
  gap: 7px;
  margin: 0 0 12px;
  padding: 5px;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.transfers-view-switch button {
  color: var(--muted);
  background: transparent;
  box-shadow: none;
}

.transfers-view-switch button.selected {
  color: #fff;
  background: var(--accent);
}

.transfers-schedule-view,
.transfers-partners-view {
  display: grid;
  gap: 12px;
}

.schedule-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(150px, 0.55fr));
  gap: 10px;
  align-items: end;
  padding: 14px;
}

.schedule-toolbar h2,
.schedule-toolbar p {
  margin: 0;
}

.schedule-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(580px, 1.65fr);
  gap: 12px;
  align-items: start;
}

.schedule-queue-panel,
.schedule-calendar-panel {
  min-width: 0;
  padding: 12px;
}

.schedule-help {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.schedule-queue {
  display: grid;
  gap: 8px;
  max-height: 900px;
  overflow: auto;
}

.schedule-queue-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: grab;
}

.schedule-queue-card:active {
  cursor: grabbing;
}

.schedule-queue-card summary {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 8px;
  padding: 9px;
  list-style: none;
}

.schedule-queue-card summary::-webkit-details-marker {
  display: none;
}

.schedule-queue-card summary span,
.schedule-queue-card summary strong,
.schedule-queue-card summary small,
.schedule-queue-card > div span {
  display: block;
}

.schedule-queue-card summary strong {
  color: var(--strong);
  font-size: 0.76rem;
}

.schedule-queue-card summary small,
.schedule-queue-card > div span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.schedule-queue-card > div {
  display: grid;
  gap: 4px;
  padding: 8px 9px 9px;
  border-top: 1px solid var(--surface-soft);
}

.schedule-queue-card > div button {
  justify-self: start;
  margin-top: 5px;
}

.schedule-calendar-scroll,
.driver-calendar-scroll {
  max-height: 900px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.schedule-timeline {
  position: relative;
  height: 950px;
  margin-left: 54px;
  border-left: 1px solid var(--line);
}

.schedule-hour-line {
  position: absolute;
  right: 0;
  left: 0;
  border-top: 1px solid #e7ecec;
  pointer-events: none;
}

.schedule-hour-line span {
  position: absolute;
  top: -8px;
  left: -48px;
  width: 42px;
  color: var(--muted);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.schedule-trip-block {
  position: absolute;
  right: 12px;
  left: 12px;
  z-index: 2;
  min-height: 34px;
  overflow: hidden;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--brand-gold) 38%, var(--surface));
  border-left: 5px solid var(--accent);
  border-radius: 7px;
  color: color-mix(in srgb, var(--brand-gold) 72%, var(--heading-color));
  background: var(--accent-soft);
  box-shadow: 0 5px 12px rgba(29, 58, 55, 0.09);
}

.schedule-trip-block strong,
.schedule-trip-block span,
.schedule-trip-block small {
  display: block;
}

.schedule-trip-block strong {
  font-size: 0.74rem;
}

.schedule-trip-block span,
.schedule-trip-block small {
  margin-top: 2px;
  font-size: 0.65rem;
}

.schedule-trip-block.pending {
  z-index: 4;
  border-style: dashed;
  border-color: #d09e35;
  color: #654d18;
  background: rgba(255, 239, 188, 0.9);
  pointer-events: none;
}

.schedule-calendar-key {
  color: var(--muted);
  font-size: 0.7rem;
}

.schedule-calendar-key i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-radius: 3px;
  background: var(--accent);
}

.schedule-pending-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px 180px auto auto;
  gap: 9px;
  align-items: end;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #d7b665;
  border-radius: 8px;
  background: #fff8df;
}

.schedule-pending-form > div strong,
.schedule-pending-form > div span {
  display: block;
}

.schedule-pending-form > div span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.partners-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 380px;
  gap: 12px;
  align-items: start;
}

.partners-directory-panel,
.partner-form,
.partner-manifest-panel {
  min-width: 0;
}

.partner-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.partner-list-item {
  display: block;
  padding: 10px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  text-align: left;
}

.partner-list-item strong,
.partner-list-item span,
.partner-list-item small {
  display: block;
}

.partner-list-item span,
.partner-list-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.partner-list-item.inactive {
  opacity: 0.62;
}

.partner-form-fields {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.partner-manifest-panel {
  margin-top: 0;
}

.partner-manifest {
  padding: 14px;
}

.partner-manifest-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.partner-manifest-heading h2,
.partner-manifest-heading p {
  margin: 0;
}

.partner-manifest-heading span,
.partner-manifest-heading strong {
  display: block;
  margin-top: 4px;
}

.driver-calendar-panel {
  margin: 14px 0;
  padding: 0;
}

.driver-calendar-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
}

.driver-calendar-panel summary h2,
.driver-calendar-panel summary p {
  margin: 0;
}

.driver-calendar-scroll {
  margin: 0 12px 12px;
  max-height: 430px;
}

.driver-schedule-timeline {
  height: 800px;
}

@media print {
  body * {
    visibility: hidden !important;
  }

  .partner-manifest-panel,
  .partner-manifest-panel * {
    visibility: visible !important;
  }

  .partner-manifest-panel {
    position: absolute;
    inset: 0;
    box-shadow: none;
  }

  .partner-manifest-panel > .panel-heading {
    display: none;
  }
}

@media (max-width: 1180px) {
  .schedule-toolbar {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .schedule-toolbar > div:first-child {
    grid-column: 1 / -1;
  }

  .schedule-workspace,
  .partners-layout {
    grid-template-columns: 1fr;
  }

  .schedule-pending-form {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .schedule-pending-form > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .transfers-view-switch {
    width: 100%;
    overflow-x: auto;
  }

  .transfers-view-switch button {
    flex: 0 0 auto;
  }

  .schedule-toolbar,
  .schedule-pending-form,
  .partner-list {
    grid-template-columns: 1fr;
  }

  .schedule-calendar-scroll {
    max-height: 700px;
  }
}

.source-change-item li strong {
  font-size: 0.7rem;
}

.source-change-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.live-location-panel {
  margin-bottom: 14px;
  padding: 14px;
}

.live-location-panel .panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.live-location-panel h2 {
  margin-top: 2px;
  font-size: 1rem;
}

.live-location-layout {
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
  gap: 10px;
}

.live-location-list {
  display: grid;
  align-content: start;
  gap: 7px;
}

.live-location-item {
  display: block;
  min-height: 0;
  padding: 10px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface-soft);
  text-align: left;
}

.live-location-item.selected {
  border-color: var(--accent);
  box-shadow: inset 3px 0 var(--accent);
}

.live-location-item strong,
.live-location-item span {
  display: block;
}

.live-location-item strong {
  color: var(--strong);
  font-size: 0.8rem;
}

.live-location-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.live-location-map {
  width: 100%;
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.driver-appbar,
.driver-daybar,
.driver-appbar-status,
.driver-brand,
.driver-trip-code,
.driver-request-heading,
.driver-actions {
  display: flex;
  align-items: center;
}

.driver-appbar {
  justify-content: space-between;
  gap: 18px;
  margin: -2px 0 10px;
  padding: 10px 2px;
}

.driver-brand {
  gap: 11px;
}

.driver-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--accent);
  font-size: 1.25rem;
  font-weight: 900;
}

.driver-brand h2 {
  margin-top: 1px;
  font-size: 1.15rem;
}

.driver-appbar-status {
  justify-content: flex-end;
  gap: 8px;
}

.driver-status-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.72rem;
  font-weight: 800;
}

.driver-status-pill.online::before,
.driver-status-pill.offline::before {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--ok);
  content: "";
}

.driver-status-pill.offline {
  color: var(--error);
}

.driver-status-pill.offline::before {
  background: var(--error);
}

.driver-clock {
  min-width: 54px;
  color: var(--strong);
  font-size: 1.05rem;
  font-weight: 850;
  text-align: center;
}

.driver-icon-button,
.driver-day-arrow,
.driver-dialog-close {
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--strong);
  background: var(--surface);
  font-size: 1.45rem;
}

.driver-daybar {
  gap: 8px;
  margin-bottom: 12px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.driver-date-field {
  position: relative;
  min-width: 164px;
}

.driver-date-field span {
  position: absolute;
  top: 5px;
  left: 12px;
  z-index: 1;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.driver-date-field input {
  min-height: 50px;
  padding: 17px 10px 3px;
  font-size: 0.82rem;
  font-weight: 800;
}

.driver-daybar .secondary-button,
.driver-gps-button {
  min-height: 50px;
}

.driver-gps-button {
  margin-left: auto;
}

.driver-gps-button span,
.driver-location-card > span:first-child {
  margin-right: 7px;
  color: #8a98a8;
}

.driver-trips {
  display: grid;
  gap: 12px;
}

.driver-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 0.8fr)) minmax(230px, 1.4fr);
  gap: 9px;
}

.driver-overview-card {
  min-height: 84px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.driver-overview-card > span,
.driver-overview-card > strong,
.driver-overview-card > small {
  display: block;
}

.driver-overview-card > span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.driver-overview-card > strong {
  margin-top: 3px;
  color: var(--strong);
  font-size: 1.35rem;
  line-height: 1.1;
}

.driver-overview-card > small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}

.driver-overview-next {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.driver-overview-next > strong {
  font-size: 1rem;
}

.driver-workspace {
  display: grid;
  grid-template-columns: minmax(270px, 31%) minmax(0, 1fr);
  gap: 12px;
  min-height: calc(100vh - 285px);
  align-items: stretch;
}

.driver-trip-sidebar,
.driver-trip-detail {
  min-width: 0;
  overflow: hidden;
}

.driver-trip-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 7px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.driver-trip-tabs button {
  min-width: 0;
  min-height: 46px;
  padding: 6px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 0.72rem;
}

.driver-trip-tabs button span {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  margin-left: 4px;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.63rem;
}

.driver-trip-tabs button.selected {
  border-color: var(--line);
  color: var(--strong);
  background: var(--surface);
  box-shadow: 0 1px 4px rgb(22 36 52 / 8%);
}

.driver-trip-list {
  display: grid;
  max-height: calc(100vh - 350px);
  overflow: auto;
  align-content: start;
}

.driver-trip-list-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 9px;
  gap: 10px;
  min-height: 88px;
  padding: 13px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  background: var(--surface);
  text-align: left;
}

.driver-trip-list-item:hover,
.driver-trip-list-item.selected {
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.driver-trip-list-item.selected {
  box-shadow: inset 4px 0 var(--accent);
}

.driver-trip-list-time {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 900;
}

.driver-trip-list-copy,
.driver-trip-list-copy strong,
.driver-trip-list-copy small,
.driver-trip-list-copy em {
  display: block;
  min-width: 0;
}

.driver-trip-list-copy strong {
  color: var(--strong);
  font-size: 0.83rem;
}

.driver-trip-list-copy small,
.driver-trip-list-copy em {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.69rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--muted);
}

.status-dot.ok { background: var(--ok); }
.status-dot.warn { background: var(--warn); }
.status-dot.error { background: var(--error); }

.driver-list-empty,
.driver-detail-empty {
  display: grid;
  min-height: 190px;
  place-content: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.driver-list-empty span {
  margin-top: 4px;
  font-size: 0.72rem;
}

.driver-trip-detail {
  padding: 16px;
}

.driver-trip-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.driver-trip-code {
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.driver-trip-hero h1 {
  margin-top: 5px;
  color: var(--strong);
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
  line-height: 1.15;
}

.driver-trip-hero p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.driver-trip-vehicle {
  min-width: 185px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.driver-trip-vehicle span,
.driver-trip-vehicle strong,
.driver-trip-vehicle small {
  display: block;
}

.driver-trip-vehicle span,
.driver-trip-vehicle small {
  color: var(--muted);
  font-size: 0.65rem;
}

.driver-trip-vehicle strong {
  margin: 2px 0;
  color: var(--strong);
  font-size: 0.82rem;
}

.driver-trip-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.driver-maps-button,
.driver-location-card {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  text-align: left;
}

.driver-maps-button > span:first-child,
.driver-location-card > span:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  margin: 0;
  place-items: center;
  border-radius: 9px;
  background: rgb(255 255 255 / 18%);
  font-size: 1rem;
}

.driver-maps-button strong,
.driver-maps-button small,
.driver-location-card strong,
.driver-location-card small {
  display: block;
}

.driver-maps-button small,
.driver-location-card small {
  margin-top: 2px;
  opacity: 0.82;
  font-size: 0.68rem;
  font-weight: 650;
}

.driver-location-card {
  border: 1px solid var(--line);
  color: var(--strong);
  background: var(--surface-soft);
}

.driver-location-card.active {
  border-color: color-mix(in srgb, var(--ok) 55%, var(--line));
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 8%, var(--surface));
}

.driver-party-layout {
  display: grid;
  grid-template-columns: minmax(190px, 28%) minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.driver-section-label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.driver-party-button {
  display: grid;
  width: 100%;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  min-height: 58px;
  align-items: center;
  margin-bottom: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  text-align: left;
}

.driver-party-button > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.7rem;
}

.driver-party-button strong,
.driver-party-button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-party-button strong {
  color: var(--strong);
  font-size: 0.75rem;
}

.driver-party-button small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.64rem;
}

.driver-party-button.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  box-shadow: inset 3px 0 var(--accent);
}

.driver-request-card {
  min-width: 0;
}

.driver-request-heading {
  justify-content: space-between;
  gap: 10px;
}

.driver-request-heading span:first-child {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.driver-request-heading h2 {
  margin-top: 2px;
  color: var(--strong);
  font-size: 1.05rem;
}

.driver-progress {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.driver-progress li {
  position: relative;
  color: var(--muted);
  text-align: center;
}

.driver-progress li::before {
  position: absolute;
  top: 6px;
  right: 50%;
  left: -50%;
  height: 2px;
  background: var(--line);
  content: "";
}

.driver-progress li:first-child::before {
  display: none;
}

.driver-progress li > span {
  position: relative;
  z-index: 1;
  display: block;
  width: 13px;
  height: 13px;
  margin: 0 auto 4px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.driver-progress li small {
  font-size: 0.56rem;
  font-weight: 700;
}

.driver-progress li.done::before,
.driver-progress li.current::before,
.driver-progress li.done > span {
  border-color: var(--ok);
  background: var(--ok);
}

.driver-progress li.current > span {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.driver-progress-exception {
  display: block;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--error) 30%, var(--line));
  border-radius: 7px;
  color: var(--error);
  background: color-mix(in srgb, var(--error) 6%, var(--surface));
}

.driver-progress-exception strong,
.driver-progress-exception span {
  display: block;
}

.driver-progress-exception span {
  margin-top: 2px;
  font-size: 0.68rem;
}

.driver-request-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0 0;
}

.driver-request-grid div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.driver-request-grid dt {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.driver-request-grid dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--strong);
  font-size: 0.75rem;
  font-weight: 750;
}

.driver-request-grid dd span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 650;
}

.driver-notes {
  max-height: 132px;
  margin-top: 9px;
  padding: 9px 11px;
  overflow: auto;
  border-left: 3px solid var(--accent);
  border-radius: 0 7px 7px 0;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface-soft));
}

.driver-notes strong {
  font-size: 0.7rem;
}

.driver-notes p {
  margin: 4px 0 0;
  font-size: 0.7rem;
  white-space: pre-wrap;
}

.driver-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.driver-journey-button {
  min-height: 54px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  color: var(--strong);
  background: var(--surface);
  font-size: 0.78rem;
}

.driver-journey-button.primary {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.driver-journey-button.danger {
  border-color: color-mix(in srgb, var(--error) 40%, var(--line));
  color: var(--error);
  background: color-mix(in srgb, var(--error) 5%, var(--surface));
}

.driver-journey-finished {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 750;
}

.driver-action-dialog {
  width: min(540px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 24px 70px rgb(20 33 48 / 28%);
}

.driver-action-dialog::backdrop {
  background: rgb(15 26 39 / 55%);
  backdrop-filter: blur(2px);
}

.driver-action-dialog form {
  padding: 20px;
}

.driver-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.driver-dialog-close {
  min-width: 44px;
  min-height: 44px;
}

.driver-dialog-description {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

.driver-action-dialog textarea {
  min-height: 120px;
  font-size: 1rem;
}

.driver-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 15px;
}

.driver-dialog-actions button {
  min-height: 50px;
}

.driver-empty {
  min-height: 300px;
  padding: 36px;
  text-align: center;
}

.driver-empty-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, var(--surface));
  font-size: 1.4rem;
}

.driver-empty p:last-child,
.driver-empty-note {
  color: var(--muted);
}

@media (max-width: 1280px) {
  .transfers-filters {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }

  .transfers-search {
    grid-column: span 2;
  }

  .transfers-metrics {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .transfers-workspace {
    grid-template-columns: 1fr;
  }

  .dispatch-form {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }

  .dispatch-trip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-change-item {
    grid-template-columns: 1fr;
  }

  .source-change-actions {
    justify-content: flex-start;
  }

  .live-location-layout {
    grid-template-columns: 1fr;
  }

  .transfers-detail {
    position: static;
    max-height: none;
  }

  .driver-trip-detail {
    padding: 13px;
  }
}

@media (max-width: 1100px) {
  .driver-party-layout {
    grid-template-columns: 1fr;
  }

  .driver-party-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .driver-party-list .driver-section-label {
    grid-column: 1 / -1;
  }

  .driver-party-button {
    margin: 0;
  }
}

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

  .transfers-heading-actions {
    justify-content: space-between;
  }

  .transfers-filters,
  .transfers-metrics,
  .transfers-form-grid {
    grid-template-columns: 1fr;
  }

  .transfers-search,
  .transfers-form-grid .field:last-child {
    grid-column: auto;
  }

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

  .transfers-detail-summary > div {
    border-right: 0;
  }

  .driver-appbar,
  .driver-appbar-status,
  .driver-daybar,
  .driver-trip-hero,
  .driver-request-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .driver-appbar-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 48px;
  }

  .driver-clock,
  .driver-status-pill {
    justify-content: center;
  }

  .driver-daybar {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .driver-daybar .secondary-button {
    display: none;
  }

  .driver-gps-button {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .driver-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .driver-overview-next {
    grid-column: span 2;
  }

  .driver-workspace,
  .driver-party-layout {
    grid-template-columns: 1fr;
  }

  .driver-trip-list {
    max-height: 270px;
  }

  .driver-trip-vehicle {
    min-width: 0;
  }

  .driver-trip-quick-actions {
    grid-template-columns: 1fr;
  }

  .driver-party-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .driver-party-list .driver-section-label {
    grid-column: 1 / -1;
  }

  .driver-party-button {
    margin: 0;
  }

  .transfers-dispatch .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .source-change-panel .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .live-location-panel .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .dispatch-form,
  .dispatch-trip-list {
    grid-template-columns: 1fr;
  }

  .driver-request-grid {
    grid-template-columns: 1fr;
  }

  .driver-progress li small {
    display: none;
  }

  .driver-journey-button {
    width: 100%;
  }
}
