:root {
  --bg0: #050505;
  --bg1: #0b0b0d;

  --panel: rgba(12, 12, 14, 0.95);
  --panel-2: rgba(16, 16, 18, 0.98);
  --border: rgba(255, 255, 255, 0.07);

  --primary: #c98a12;
  --primary-2: #e7a61b;
  --primary-soft: rgba(201, 138, 18, 0.18);

  --text: #f2f2f2;
  --muted: #9a9aa3;

  --success: #00a24f;
  --warning: #d89d1a;
  --danger: #a51d1d;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background:
    radial-gradient(700px 420px at 12% 4%, rgba(201, 138, 18, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  overflow-x: hidden;
  scrollbar-color: #111 #050505;
}

body {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

#appShell {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

#mainApp {
  min-height: calc(100vh - 92px);
  width: 100%;
}

.wrap {
  width: 100%;
  max-width: 1500px;
  margin: 10px auto 0;
  padding: 0 10px 18px;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  padding: 8px 10px 8px;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.97), rgba(8, 8, 10, 0.9));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.topbarRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.topActions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brandMark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}

.logoImg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.title .h1 {
  font-size: 22px;
  line-height: 1.05;
  font-weight: 900;
  color: #f5f5f5;
  letter-spacing: -0.03em;
}

.title .h2 {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tab,
.btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition: 0.18s ease;
  font-size: 12px;
}

.tab {
  padding: 7px 14px;
}

.tab:hover,
.btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tab.active,
.btn.active,
.btn.primary {
  background: linear-gradient(180deg, rgba(201, 138, 18, 0.24), rgba(201, 138, 18, 0.12));
  border-color: rgba(201, 138, 18, 0.8);
  color: #fff;
}

.btn {
  padding: 8px 14px;
  width: auto;
  max-width: 100%;
}

.btn.danger {
  background: rgba(120, 20, 20, 0.28);
  border-color: rgba(165, 29, 29, 0.75);
}

.btn.danger:hover {
  background: rgba(145, 25, 25, 0.38);
}

.btn.small {
  padding: 4px 10px;
  font-size: 11px;
}

.grid {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.grid.one {
  grid-template-columns: 1fr;
}

.grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.compactGrid {
  align-items: start;
}

.dashboardGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.card {
  width: 100%;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(16, 16, 18, 0.94), rgba(10, 10, 12, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  overflow: hidden;
}

.compactCard {
  min-height: unset !important;
}

.dashboardMainCard,
.dashboardQuickCard {
  min-height: unset;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  width: 100%;
  min-width: 0;
}

.sectionHead {
  margin-bottom: 8px;
}

.card-title {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}

.card-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  margin: 12px 0;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.kpi {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  min-height: 82px;
  padding: 11px;
  min-width: 0;
}

.kpi .k {
  color: #a9a9b0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi .v {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  color: #fff;
  margin-top: 7px;
}

.kpi .s {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.row.two>.field {
  flex: 1 1 calc(50% - 5px);
  min-width: 0;
}

.row.three>.field {
  flex: 1 1 calc(33.333% - 7px);
  min-width: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1 1 0;
}

label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #a8a8b2;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #040404;
  color: var(--text);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12px;
  outline: none;
  transition: 0.18s ease;
}

textarea {
  resize: vertical;
  min-height: 60px;
}

input::placeholder,
textarea::placeholder {
  color: #6d6d75;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(201, 138, 18, 0.78);
  box-shadow: 0 0 0 3px rgba(201, 138, 18, 0.08);
}

.note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.boxedList,
.list,
.empty {
  border-radius: 10px;
}

.boxedList {
  min-height: 82px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.14);
  padding: 12px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.empty {
  color: var(--muted);
  padding: 16px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.14);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge.ok {
  color: #59f091;
  background: rgba(0, 140, 60, 0.16);
  border-color: rgba(0, 162, 79, 0.45);
}

.badge.warn {
  color: #ffc74a;
  background: rgba(201, 138, 18, 0.14);
  border-color: rgba(201, 138, 18, 0.45);
}

.badge.bad {
  color: #ff7777;
  background: rgba(165, 29, 29, 0.16);
  border-color: rgba(165, 29, 29, 0.45);
}

.badge.info {
  color: #d3d3d8;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.table {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(0, 0, 0, 0.16);
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #111 #050505;
}

.trow {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 0;
}

.trow:last-child {
  border-bottom: none;
}

.trow.head {
  background: rgba(255, 255, 255, 0.04);
  color: #a4a4ac;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
}

.trow.clickable:hover {
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

.thumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.truckHero {
  width: 160px;
  max-width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

#truckTitle {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

#truckSub,
#truckCompliance {
  color: var(--muted);
  font-size: 11px;
}

#truckCompliance {
  display: inline-block;
  margin-top: 5px;
}

#odoList,
#damageList,
#maintList,
#revList,
.revenueDetailsList {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
  white-space: pre-wrap;
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.list-row:last-child {
  border-bottom: none;
}

.fleetCard {
  max-width: 100%;
}

.fleetHead {
  align-items: flex-start;
  gap: 12px;
}

.fleetTools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 280px;
  max-width: 100%;
  flex-shrink: 0;
}

.fieldSearch {
  max-width: 280px;
}

.fieldFilter {
  max-width: 140px;
}

.truckLowerGrid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.truckColumn {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.truckTopKpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#view-truck canvas {
  display: block;
  width: 100% !important;
  max-width: 100%;
}

.revenueDetailsWrap {
  margin-top: 12px;
}

.revenueDetailsHeader {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.revenueDetailsTitle {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
}

.revenueDetailsList {
  border: 1px dashed rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.14);
  padding: 14px;
}

#view-truck .btn.primary,
#view-drivers .btn.primary,
#view-trips .btn.primary,
#view-revenue .btn.primary,
#view-settings .btn.primary,
#quickTruckCard .btn.primary {
  width: auto;
  align-self: flex-start;
}

#view-dashboard,
#view-fleet,
#view-drivers,
#view-trips,
#view-revenue,
#view-settings,
#view-truck,
#view-trailers,
#view-support-vehicles,
#view-buses,
#view-breakdowns,
#view-mechanics,
#view-suppliers,
#view-compliance,
#view-toll-fees,
#view-abnormal-loads,
#view-monthly {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

/* New section styles */
#trailersList,
#supportVehiclesList,
#busesList,
#mechanicsList,
#suppliersList,
#breakdownsList,
#abnormalLoadsList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#trailersList .card,
#supportVehiclesList .card,
#busesList .card,
#mechanicsList .card,
#suppliersList .card,
#breakdownsList .card,
#abnormalLoadsList .card {
  cursor: pointer;
  transition: all 0.18s ease;
}

#trailersList .card:hover,
#supportVehiclesList .card:hover,
#busesList .card:hover,
#mechanicsList .card:hover,
#suppliersList .card:hover,
#breakdownsList .card:hover,
#abnormalLoadsList .card:hover {
  background: linear-gradient(180deg, rgba(24, 24, 28, 0.94), rgba(14, 14, 18, 0.9));
  border-color: rgba(201, 138, 18, 0.3);
  transform: translateY(-1px);
}

/* Alert items for compliance */
.alert-item {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  border-left: 3px solid;
}

.alert-item.warning {
  background: rgba(216, 157, 26, 0.12);
  border-left-color: var(--warning);
}

.alert-item.critical {
  background: rgba(165, 29, 29, 0.12);
  border-left-color: var(--danger);
}

/* Clickable cards */
.clickable {
  cursor: pointer;
  transition: all 0.18s ease;
}

.clickable:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 138, 18, 0.4);
}

.toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 999;
  max-width: 320px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
  font-size: 11px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(8px);
}

.modalCard {
  width: min(620px, 100%);
  background:
    radial-gradient(700px 300px at 0% 0%, rgba(201, 138, 18, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(20, 20, 22, 0.96), rgba(12, 12, 14, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.authCard {
  max-width: 680px;
}

.authBrand {
  align-items: center;
}

.authTitle {
  font-size: 20px;
  line-height: 1.1;
}

.authSub {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
}

.authTabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.authActionRow {
  justify-content: flex-end;
}

.authFooterDivider {
  margin-top: 14px;
}

.view {
  display: none;
  width: 100%;
  min-width: 0;
}

.view.active {
  display: block;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  background: #111111;
  border-radius: 999px;
  border: 2px solid #050505;
}

::-webkit-scrollbar-thumb:hover {
  background: #1b1b1b;
}

::-webkit-scrollbar-corner {
  background: #050505;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text);
  transition: background-color 9999s ease-out;
  box-shadow: inset 0 0 0 1000px #040404;
}

/* Responsive */
@media (max-width: 1280px) {
  .wrap {
    max-width: 100%;
    padding: 0 8px 16px;
  }

  .dashboardGrid,
  .grid.two,
  .compactGrid,
  .truckLowerGrid {
    grid-template-columns: 1fr;
  }

  .kpi-grid,
  .truckTopKpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fleetHead {
    flex-direction: column;
    align-items: stretch;
  }

  .fleetTools,
  .fieldSearch,
  .fieldFilter {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 980px) {
  .topbarRow {
    flex-direction: column;
    align-items: flex-start;
  }

  .title .h1 {
    font-size: 20px;
  }

  .row.two>.field,
  .row.three>.field {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .kpi-grid,
  .truckTopKpis {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .wrap {
    padding: 0 8px 14px;
  }

  .topbar {
    padding: 8px;
  }

  .tabs {
    gap: 6px;
  }

  .tab {
    padding: 6px 12px;
    font-size: 11px;
  }

  .btn {
    padding: 7px 12px;
    font-size: 11px;
  }

  .card {
    padding: 10px 11px;
  }

  .modalCard {
    padding: 16px;
  }

  .authActionRow {
    justify-content: stretch;
  }

  .authActionRow .btn {
    flex: 1;
  }
}

#fleetTable .trow.clickable {
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

#fleetTable .trow.clickable:hover {
  background: rgba(255, 255, 255, 0.03);
}

#fleetTable .trow.clickable:active {
  transform: scale(0.998);
}

#fleetTable .trow.clickable strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Company Users Table specific */
#companyUsersTable .trow {
  grid-template-columns: 1.2fr 1fr 140px 280px;
}

@media (max-width: 980px) {
  #companyUsersTable .trow {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #companyUsersTable .trow.head {
    display: none;
  }
}

.breakdownDetailCard {
  width: min(900px, 100%);
  max-height: 90vh;
  overflow-y: auto;
}

#breakdownDetailBody {
  display: grid;
  gap: 10px;
}

.breakdownInfoGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.breakdownInfoBox {
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

@media (max-width: 700px) {
  .breakdownInfoGrid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   TRIP ROUTE BUILDER / MULTI-STOP DEMO FLOW
===================================================== */

.tripCreateCard .form {
  gap: 10px;
}

.tripRouteBuilder {
  margin: 4px 0 2px;
  padding: 12px;
  border-radius: 14px;
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(201, 138, 18, 0.10), transparent 60%),
    rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.tripRouteTitle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.tripStep {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.tripStep.last {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.tripStepNo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(201, 138, 18, 0.35), rgba(201, 138, 18, 0.12));
  border: 1px solid rgba(201, 138, 18, 0.65);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.tripStepBody {
  min-width: 0;
}

.tripDemoNote {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(201, 138, 18, 0.08);
  border: 1px solid rgba(201, 138, 18, 0.18);
  font-size: 11px;
  line-height: 1.45;
}

.tripDemoNote strong {
  color: #fff;
}

.tripRouteMini {
  display: grid;
  gap: 4px;
  margin-top: 5px;
}

.tripRouteMini .note {
  line-height: 1.35;
}

.tripStatusLine {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .tripStep {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
  }

  .tripStepNo {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
}

.tripTableRow {
  grid-template-columns: 210px 1.1fr 1.8fr 170px 150px;
}

@media (max-width: 980px) {
  .tripTableRow {
    grid-template-columns: 1fr;
  }

  .tripTableRow.head {
    display: none;
  }
}

/* =====================================================
   TRIP ROUTE BUILDER / MULTI-STOP DEMO FLOW
===================================================== */

.tripCreateCard .form {
  gap: 10px;
}

.tripRouteBuilder {
  margin: 4px 0 2px;
  padding: 12px;
  border-radius: 14px;
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(201, 138, 18, 0.10), transparent 60%),
    rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.tripRouteTitle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.tripStep {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.tripStep.last {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.tripStepNo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(201, 138, 18, 0.35), rgba(201, 138, 18, 0.12));
  border: 1px solid rgba(201, 138, 18, 0.65);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.tripStepBody {
  min-width: 0;
}

.tripDemoNote {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(201, 138, 18, 0.08);
  border: 1px solid rgba(201, 138, 18, 0.18);
  font-size: 11px;
  line-height: 1.45;
}

.tripDemoNote strong {
  color: #fff;
}

.tripRouteMini {
  display: grid;
  gap: 4px;
  margin-top: 5px;
}

.tripRouteMini .note {
  line-height: 1.35;
}

.tripTableRow {
  grid-template-columns: 210px 1.1fr 1.8fr 170px 150px;
}

.tripStatusLine {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .tripTableRow {
    grid-template-columns: 1fr;
  }

  .tripTableRow.head {
    display: none;
  }
}

@media (max-width: 700px) {
  .tripStep {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
  }

  .tripStepNo {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
}

.revenueSummaryV2 {
  display: block;
  max-height: none !important;
  overflow: visible !important;
}

.revenueTruckMiniCard {
  color: inherit;
  font: inherit;
  width: 100%;
}

.revenueTruckMiniCard:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 166, 35, 0.7) !important;
}

.revenueTruckMiniCard.active {
  box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.25), 0 12px 30px rgba(0, 0, 0, 0.25);
}

.revenueDetailsWrap,
.revenueDetailsList,
#revenueDetailsPanel {
  max-height: none !important;
  overflow: visible !important;
}

.supplierLocationResults.hidden {
  display: none;
}

.supplierPlaceResult:hover {
  border-color: rgba(245, 166, 35, 0.65) !important;
  background: rgba(245, 166, 35, 0.08) !important;
}

.fleetSectionHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.fleetSectionTitle {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.fleetSectionSub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.fleetSectionStats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fleetAssetsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fleetAssetCard {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 14px;
  background:
    radial-gradient(circle at top left, rgba(245, 166, 35, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.fleetAssetTop {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fleetAssetIcon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(245, 166, 35, 0.11);
  border: 1px solid rgba(245, 166, 35, 0.28);
  color: #fff;
  font-size: 20px;
  flex: 0 0 auto;
}

.fleetAssetMain {
  min-width: 0;
  flex: 1;
}

.fleetAssetType {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.fleetAssetFleetNo {
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.15;
  margin-top: 4px;
}

.fleetAssetPlate {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.fleetAssetStatus {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
}

.fleetAssetDivider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 12px 0;
}

.fleetAssetInfoGrid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.7fr;
  gap: 12px;
  align-items: start;
}

.fleetAssetInfoGrid strong {
  display: block;
  color: #fff;
  margin-top: 3px;
}

.fleetAssetActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

@media (max-width: 980px) {
  .fleetAssetsGrid {
    grid-template-columns: 1fr;
  }

  .fleetAssetInfoGrid {
    grid-template-columns: 1fr;
  }

  .fleetSectionHeader {
    flex-direction: column;
  }

  .fleetSectionStats {
    justify-content: flex-start;
  }
}

.fleetNumberTabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 16px;
}

.fleetNumberTab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  min-width: 120px;
  text-align: left;
  transition: 0.18s ease;
}

.fleetNumberTab:hover {
  border-color: rgba(245, 166, 35, 0.45);
  background: rgba(245, 166, 35, 0.08);
}

.fleetNumberTab.active {
  border-color: rgba(245, 166, 35, 0.85);
  background:
    radial-gradient(circle at top left, rgba(245, 166, 35, 0.22), transparent 42%),
    rgba(245, 166, 35, 0.08);
  box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.15);
}

.fleetNumberTabMain {
  display: block;
  color: #fff;
  font-weight: 950;
  font-size: 15px;
  line-height: 1.1;
}

.fleetNumberTabSub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.fleetSelectedPanel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 16px;
  background:
    radial-gradient(circle at top left, rgba(245, 166, 35, 0.10), transparent 42%),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.26);
}

.fleetSelectedPhoto {
  width: 100%;
  height: 170px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.28);
}

.fleetSelectedPhoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fleetSelectedPhotoFallback {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(245, 166, 35, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.035);
}

.fleetSelectedIcon {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: rgba(245, 166, 35, 0.14);
  border: 1px solid rgba(245, 166, 35, 0.35);
}

.fleetSelectedTop {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.fleetSelectedType {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.fleetSelectedTitle {
  color: #fff;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.05;
  margin-top: 4px;
}

.fleetSelectedSub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.fleetSelectedBadges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fleetSelectedMetaGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.fleetSelectedMetaGrid>div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.fleetSelectedMetaGrid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
}

.fleetSelectedMetaGrid strong {
  display: block;
  color: #fff;
  margin-top: 5px;
  font-size: 14px;
}

.fleetSelectedActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .fleetSelectedPanel {
    grid-template-columns: 1fr;
  }

  .fleetSelectedPhoto {
    height: 210px;
  }

  .fleetSelectedMetaGrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .fleetNumberTab {
    width: 100%;
  }

  .fleetSelectedTop {
    flex-direction: column;
  }

  .fleetSelectedBadges {
    justify-content: flex-start;
  }

  .fleetSelectedMetaGrid {
    grid-template-columns: 1fr;
  }
}

.fleetNumberGroupTabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 18px;
}

.fleetNumberOnlyBtn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 950;
  min-width: 140px;
  transition: 0.18s ease;
}

.fleetNumberOnlyBtn:hover {
  border-color: rgba(245, 166, 35, 0.55);
  background: rgba(245, 166, 35, 0.10);
  transform: translateY(-1px);
}

.fleetNumberOnlyBtn.active {
  border-color: rgba(245, 166, 35, 0.95);
  background:
    radial-gradient(circle at top left, rgba(245, 166, 35, 0.22), transparent 45%),
    rgba(245, 166, 35, 0.10);
  box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.18);
}

.fleetPlatePanel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(245, 166, 35, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.26);
}

.fleetPlatePanelHead {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.fleetPlatePanelTitle {
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
}

.fleetPlatePanelSub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.fleetPlateGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.fleetPlateCard {
  text-align: left;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 20px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  cursor: pointer;
  transition: 0.18s ease;
}

.fleetPlateCard:hover {
  border-color: rgba(245, 166, 35, 0.45);
  background:
    radial-gradient(circle at top left, rgba(245, 166, 35, 0.10), transparent 40%),
    rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.fleetPlateTop {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.fleetPlateType {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fleetPlateMain {
  font-size: 22px;
  font-weight: 950;
  margin-top: 12px;
  color: #fff;
}

.fleetPlateSub {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

@media (max-width: 1000px) {
  .fleetPlateGrid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 650px) {
  .fleetNumberOnlyBtn {
    width: 100%;
  }

  .fleetPlateGrid {
    grid-template-columns: 1fr;
  }

  .fleetPlatePanelHead {
    flex-direction: column;
  }
}

.fleetPlateMain {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 950;
  margin-top: 12px;
  color: #fff;
}

.fleetPlateIcon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(245, 166, 35, 0.14);
  border: 1px solid rgba(245, 166, 35, 0.34);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  font-size: 20px;
}

.fleetPlateCard:hover .fleetPlateIcon {
  background: rgba(245, 166, 35, 0.22);
  border-color: rgba(245, 166, 35, 0.55);
}

.checkLine {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  font-size: 12px;
  font-weight: 700;
}

.checkLine input {
  width: auto;
  min-width: auto;
}

.supplierCard .breakdownInfoBox strong {
  word-break: break-word;
}