:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", Aptos, "Segoe UI", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", Aptos, "Segoe UI", Arial, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --ink: #172033;
  --muted: #647083;
  --line: #dbe3ee;
  --canvas: #f3f6fa;
  --surface: #ffffff;
  --nav: #1d2738;
  --nav-2: #2a3548;
  --blue: #2f6fad;
  --teal: #3b5f7d;
  --green: #18864b;
  --amber: #b88736;
  --red: #c24141;
  --soft-blue: #e6f0fb;
  --soft-green: #e8f5ee;
  --soft-red: #fdecec;
  --shadow: 0 12px 34px rgba(31, 42, 60, 0.07);
  --shadow-strong: 0 18px 54px rgba(31, 42, 60, 0.13);
  --radius: 10px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  letter-spacing: 0;
}

.app-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(238, 242, 246, 0.78);
  backdrop-filter: blur(10px);
}

.app-booting .app-loading-screen,
.app-loading .app-loading-screen {
  display: flex;
}

.app-booting .app-loading-screen {
  background: linear-gradient(135deg, #202a3b 0%, #111827 100%);
  animation: bootFallbackHide 0s 5s forwards;
}

@keyframes bootFallbackHide {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.app-loading-card {
  width: min(100%, 420px);
  min-height: 118px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 20px;
  color: #fff;
  background: linear-gradient(145deg, rgba(32, 42, 59, 0.96), rgba(44, 55, 75, 0.94));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.app-loading-card img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--nav);
}

.app-loading-card strong,
.app-loading-card span {
  display: block;
}

.app-loading-card strong {
  font-size: 16px;
  line-height: 1.25;
}

.app-loading-card span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.app-loading-card i {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.26);
  border-top-color: #fff;
  border-radius: 50%;
  animation: blackhill-spin 0.8s linear infinite;
}

@keyframes blackhill-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(95, 128, 190, 0.16), transparent 26%),
    linear-gradient(145deg, #0f1724 0%, #1f2937 48%, #111827 100%);
}

.login-screen::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  pointer-events: none;
}

.login-screen::after {
  content: "";
  position: absolute;
  width: min(56vw, 640px);
  aspect-ratio: 1;
  right: -180px;
  bottom: -260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  filter: blur(1px);
  pointer-events: none;
}

.login-required .login-screen {
  display: flex;
}

.login-required .sidebar,
.login-required .app-shell {
  display: none;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 34px;
  color: #fff;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px) saturate(130%);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-card img {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  object-fit: cover;
  background: rgba(17, 24, 39, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 38px rgba(0, 0, 0, 0.22);
}

.login-card h1 {
  margin-top: 6px;
  color: #fff;
  font-size: 30px;
  letter-spacing: 0;
}

.login-card .eyebrow {
  color: rgba(255, 255, 255, 0.66);
}

.login-copy {
  margin: 2px 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

.login-card label,
.dialog-form label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.login-card label {
  color: rgba(255, 255, 255, 0.82);
}

.login-card input {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 0 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.login-card input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.login-card input:focus {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.09);
}

.login-card small {
  min-height: 18px;
  color: #fecaca;
  font-weight: 800;
}

.login-card .primary-btn {
  height: 50px;
  margin-top: 2px;
  border-radius: 999px;
  color: #111827;
  background: #fff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.login-card .primary-btn:hover:not(:disabled) {
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.login-card p:last-child {
  margin: 2px 0 0;
  font-size: 12px;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
  min-width: 0;
}

button {
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 3px solid rgba(45, 105, 178, 0.22);
  outline-offset: 2px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  padding: 22px 16px;
  color: #f7fbff;
  background: linear-gradient(180deg, #202a3b 0%, #182232 100%);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  background: #202a3b;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.sidebar-panel small,
.panel-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 6px;
}

.sidebar-spacer {
  flex: 1 1 auto;
}

.nav-admin {
  flex: 0 0 auto;
}

.nav-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 3px 0 0 #fff;
}

.logout-nav {
  color: #ffd7d7;
}

.logout-nav:hover {
  color: #fff;
  background: rgba(194, 65, 65, 0.28);
  box-shadow: inset 3px 0 0 #ff7373;
}

.logout-nav .icon {
  color: #fff;
  background: #c24141;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
}

.settings-grid > .wide {
  grid-column: 1 / -1;
}

.session-card,
.user-list {
  display: grid;
  gap: 10px;
}

.settings-session,
.user-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.settings-session span,
.user-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.settings-session strong,
.user-row strong {
  display: block;
  margin: 6px 0 10px;
  font-size: 20px;
}

.settings-actions-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc, #eef5fb);
}

.expense-backup-card {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.expense-backup-card strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.expense-backup-card span,
.expense-backup-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.expense-backup-card .row-actions {
  justify-content: stretch;
}

.expense-backup-card .row-actions button {
  flex: 1 1 160px;
}

.expense-backup-list {
  display: grid;
  gap: 8px;
}

.expense-backup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: rgba(255, 255, 255, .75);
}

.expense-backup-item strong {
  margin: 0 0 3px;
  font-size: 13px;
}

.expense-backup-item span {
  font-size: 11px;
}

.expense-backup-item .row-actions {
  flex: 0 0 auto;
}

.settings-system-list {
  display: grid;
  gap: 8px;
}

.settings-system-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.settings-system-row.is-good {
  background: #eefaf3;
  border-color: #b7e4c6;
}

.settings-system-row.is-alert {
  background: #fff7ed;
  border-color: #fed7aa;
}

.settings-system-row.is-danger {
  background: #fff1f2;
  border-color: #fecdd3;
}

.settings-system-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.settings-system-row strong {
  color: var(--ink);
  font-size: 13px;
  text-align: right;
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.11);
  font-size: 14px;
}

.sidebar-panel {
  margin-top: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.055));
}

.sidebar-panel strong,
.sidebar-panel small,
.panel-label {
  display: block;
}

.sidebar-panel strong {
  margin: 8px 0 10px;
  font-size: 24px;
  line-height: 1.1;
}

.sidebar-mini-kpis {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.sidebar-mini-kpis div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 7px;
}

.sidebar-mini-kpis span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar-mini-kpis strong {
  margin: 0;
  font-size: 13px;
}

.app-shell {
  min-height: 100vh;
  margin-left: 260px;
  padding: 24px;
  min-width: 0;
}

.investor-public-mode .sidebar,
.investor-public-mode .topbar,
.investor-public-mode [data-view-jump] {
  display: none;
}

.investor-public-mode .app-shell {
  margin-left: 0;
  padding: 32px 24px 48px;
  background: linear-gradient(180deg, #202a3b 0, #202a3b 260px, #eef2f6 260px);
}

.investor-public-mode #investorPortal {
  max-width: 1200px;
  margin: 0 auto;
}

.investor-public-mode .investor-portal-head {
  margin-bottom: 0;
}

.investor-public-mode .investor-summary,
.investor-public-mode .investor-grid,
.investor-public-mode .investor-revenue-panel,
.investor-public-mode #investorPortal > .panel {
  position: relative;
  z-index: 1;
}

.investor-public-mode .investor-summary {
  margin-top: -34px;
}

.investor-public-mode .ledger-card,
.investor-public-mode .investor-vehicle-card,
.investor-public-mode .investor-revenue-panel,
.investor-public-mode #investorPortal > .panel {
  border-color: rgba(215, 222, 232, 0.85);
  box-shadow: 0 22px 60px rgba(32, 42, 59, 0.12);
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--nav);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
}

h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

p {
  color: var(--muted);
}

.toolbar,
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search {
  min-width: 310px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
}

.primary-btn,
.ghost-btn {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 13px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.primary-btn {
  color: #fff;
  background: var(--nav);
  border-color: rgba(15, 23, 42, 0.08);
}

.ghost-btn {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.primary-btn:hover:not(:disabled) {
  background: #151f2f;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.ghost-btn:hover:not(:disabled) {
  border-color: #c2ccda;
  background: #f8fafc;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.08);
}

.notification-center {
  position: relative;
  z-index: 85;
  margin-top: -10px;
}

.notification-dock {
  position: relative;
}

.notification-bell {
  position: relative;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
  box-shadow: none;
}

.notification-bell:hover,
.notification-dock.is-open .notification-bell {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.notification-bell-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #d7e8ff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  line-height: 1;
}

.notification-bell em {
  min-width: 0;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-bell strong {
  min-width: 24px;
  height: 22px;
  padding: 0 5px;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #94a3b8;
  font-size: 10px;
  font-weight: 900;
}

.notification-bell-ok strong {
  background: var(--green);
}

.notification-bell-warn strong {
  background: var(--amber);
}

.notification-bell-danger strong {
  background: var(--red);
}

.notification-popover {
  position: absolute;
  top: 0;
  left: calc(100% + 12px);
  width: min(380px, calc(100vw - 36px));
  max-height: min(520px, calc(100vh - 150px));
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(215, 222, 232, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(22px);
}

.notification-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 2px 2px 10px;
  border-bottom: 1px solid var(--line);
}

.notification-title strong,
.notification-title small {
  display: block;
}

.notification-title strong {
  color: var(--ink);
  font-size: 14px;
}

.notification-title small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.notification-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 5px rgba(148, 163, 184, 0.14);
}

.notification-dot.ok {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.12);
}

.notification-dot.warn {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(217, 155, 20, 0.14);
}

.notification-dot.danger {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(196, 61, 61, 0.12);
}

.notification-list {
  display: grid;
  gap: 8px;
  max-height: 410px;
  overflow: auto;
  padding: 10px 2px 0 0;
}

.notification-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.74);
}

.notification-item > div:first-child {
  min-width: 0;
}

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

.notification-item span {
  color: #5d6b7c;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.notification-item strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.notification-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.notification-actions .mini-btn {
  min-height: 24px;
  padding: 0 8px;
  font-size: 10px;
}

.notification-dismiss {
  width: 24px;
  height: 24px;
  border: 1px solid #d8e1eb;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #64748b;
  background: #fff;
  font-size: 15px;
  font-weight: 900;
}

.notification-dismiss:hover {
  color: #9b1c1f;
  border-color: #f1b8b4;
  background: #fff1f0;
}

.notification-empty {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px dashed #cdd6e1;
  border-radius: 10px;
  color: var(--muted);
  background: #f8fafc;
}

.notification-empty strong {
  color: var(--ink);
  font-size: 12px;
}

.notification-empty small {
  font-size: 11px;
}

.notification-danger {
  border-left-color: var(--red);
}

.notification-warn {
  border-left-color: var(--amber);
}

.notification-neutral {
  border-left-color: #94a3b8;
}

.view {
  display: none;
  min-width: 0;
}

.view.active {
  display: block;
}

.hero-grid,
.dashboard-top-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-top-grid {
  grid-template-columns: minmax(0, 1.62fr) minmax(300px, 0.58fr);
  align-items: stretch;
}

.dashboard-chart-panel {
  min-width: 0;
}

.fleet-visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%),
    #202a3b;
  box-shadow: var(--shadow-strong);
}

.fleet-visual::after {
  position: absolute;
  right: 24px;
  top: 28px;
  width: 138px;
  height: 88px;
  clip-path: polygon(0 100%, 44% 0, 66% 58%, 78% 42%, 100% 100%, 69% 72%, 58% 86%, 41% 27%, 16% 100%);
  content: "";
  background: rgba(255, 255, 255, 0.13);
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.16));
}

.visual-copy {
  position: absolute;
  inset: 18px;
  z-index: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.visual-main-box,
.visual-kpis {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
}

.visual-main-box {
  min-height: 178px;
  display: grid;
  align-content: start;
  padding: 16px;
}

.visual-copy span,
.visual-copy small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.visual-copy h2 {
  max-width: 230px;
  margin: 14px 0 0;
  color: #fff;
  font-size: 15px;
}

.visual-copy strong {
  display: block;
  margin: 16px 0 4px;
  max-width: 100%;
  font-size: 44px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.visual-kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: auto;
  padding: 6px 10px;
}

.visual-kpis div {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.visual-kpis div:last-child {
  border-bottom: 0;
}

.visual-kpis span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.visual-kpis strong {
  margin: 0;
  font-size: 18px;
  overflow-wrap: anywhere;
  text-align: right;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  min-width: 0;
}

.dashboard-metrics {
  margin-bottom: 16px;
}

.metric-card,
.panel,
.vehicle-card,
.maint-card,
.mile-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 118px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-color: var(--line);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.metric-card:hover,
.overview-card:hover,
.investor-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
}

.metric-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
}

.metric-card em {
  height: 24px;
  padding: 5px 8px 0;
  border-radius: 999px;
  color: #506176;
  background: #eef3f7;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.metric-card.positive {
  border-color: #b7dfc8;
  background: #ecf8f0;
}

.metric-card.positive em {
  color: #0f5132;
  background: #d8f0e1;
}

.metric-card.info {
  border-color: #b7d2ee;
  background: #eaf3ff;
}

.metric-card.info em {
  color: #1f4e79;
  background: #d8eafd;
}

.metric-card.tolls {
  border-color: #cdbcf7;
  background: #f5f1ff;
}

.metric-card.tolls em {
  color: #5b3aa3;
  background: #e7ddff;
}

.metric-card.negative {
  border-color: #f0bebc;
  background: #fff0ef;
}

.metric-card.negative em {
  color: #842029;
  background: #f9d7d5;
}

.metric-card strong {
  display: block;
  margin: 8px 0;
  max-width: 100%;
  font-size: 26px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.metric-card small {
  color: var(--muted);
  line-height: 1.35;
}

.metric-card:last-child {
  min-height: 118px;
}

.dashboard-overview {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.overview-strip,
.investor-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.overview-card {
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.overview-card span,
.overview-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.overview-card strong {
  display: block;
  margin: 8px 0;
  font-size: 27px;
}

.overview-dark {
  color: #fff;
  background: #202a3b;
  border-color: #202a3b;
}

.overview-dark span,
.overview-dark small {
  color: rgba(255, 255, 255, 0.72);
}

.overview-good {
  border-color: #b7dfc8;
  background: #ecf8f0;
}

.overview-good strong {
  color: var(--green);
}

.overview-warn {
  border-color: #efd49c;
  background: #fff8e8;
}

.overview-warn strong {
  color: var(--amber);
}

.overview-bad {
  border-color: #f0bebc;
  background: #fff0ef;
}

.overview-bad strong {
  color: var(--red);
}

.overview-info {
  border-color: #b7d2ee;
  background: #eaf3ff;
}

.overview-info strong {
  color: var(--blue);
}

.overview-activity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.overview-activity p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 13px;
}

.metric-card.positive strong,
.positive {
  color: var(--green);
}

.metric-card.negative strong,
.negative {
  color: var(--red);
}

.metric-card.info strong {
  color: var(--blue);
}

.metric-card.tolls strong {
  color: #6f4dbf;
}

.metric-card.trip {
  border-color: #c8bdfb;
  background: #f3f0ff;
}

.metric-card.trip em {
  color: #4329c8;
  background: #e2dcff;
}

.metric-card.trip strong {
  color: #5737f5;
}

.metric-card.upcoming {
  border-color: #d3c4f8;
  background: #f6f1ff;
}

.metric-card.upcoming em {
  color: #6b52c7;
  background: #e9ddff;
}

.metric-card.upcoming strong {
  color: #8e73df;
}

.metric-card.reimbursements {
  border-color: #b9e8ca;
  background: #effbf4;
}

.metric-card.reimbursements em {
  color: #137f4a;
  background: #d7f4e2;
}

.metric-card.reimbursements strong {
  color: #15935a;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 18px;
  min-width: 0;
}

.dashboard-dre-grid {
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1.66fr);
  align-items: start;
}

.expense-rank-panel {
  padding: 14px;
}

.panel {
  padding: 18px;
  min-width: 0;
  overflow: hidden;
}

.panel.wide {
  min-width: 0;
}

.panel-head,
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-head {
  align-items: center;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.expense-btn {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 13px;
  color: #fff;
  background: var(--red);
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 1px 2px rgba(132, 32, 41, 0.12);
}

.expense-btn:hover:not(:disabled) {
  background: #b7353a;
  box-shadow: 0 8px 18px rgba(196, 61, 68, 0.18);
}

.tolls-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
}

.tolls-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tolls-steps span {
  border: 1px solid rgba(31, 41, 55, 0.14);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 900;
}

.tolls-hero h2,
.tolls-module-card h2 {
  margin-top: 4px;
}

.tolls-command-center {
  position: relative;
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(125, 146, 170, 0.28);
  border-radius: 24px;
  padding: 18px;
  background:
    radial-gradient(circle at 94% 4%, rgba(245, 211, 111, 0.24), transparent 30%),
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.78)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.08);
}

.tolls-command-center::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, #1f2937, #d9b75a, #12b981);
}

.tolls-command-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(245, 211, 111, 0.16), transparent 30%),
    linear-gradient(135deg, #243044, #141c2b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 30px rgba(15, 23, 42, 0.12);
}

.tolls-command-head .panel-label-dark {
  color: rgba(245, 211, 111, 0.92);
}

.tolls-command-head h2 {
  margin: 4px 0 2px;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.tolls-command-head p {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 13px;
}

.tolls-command-tabs {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.tolls-workflow-map {
  display: flex;
  gap: 0;
  overflow-x: auto;
  order: 3;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  scrollbar-width: thin;
}

.tolls-workflow-map button {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  flex: 1 0 150px;
  gap: 2px 8px;
  align-items: center;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 8px 9px;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.tolls-workflow-map button:hover {
  border-color: rgba(215, 184, 78, 0.5);
  background: rgba(255, 250, 240, 0.86);
  transform: translateY(-1px);
}

.tolls-workflow-map strong {
  display: inline-grid;
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #5b6472;
  background: #edf2f7;
  font-size: 12px;
  font-weight: 950;
}

.tolls-workflow-map span,
.tolls-workflow-map small {
  display: block;
  min-width: 0;
}

.tolls-workflow-map span {
  color: #263244;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.15;
  white-space: normal;
}

.tolls-workflow-map small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.15;
  white-space: normal;
}

.tolls-command-tabs .ghost-btn,
.tolls-quick-ranges .ghost-btn {
  border-radius: 8px;
  min-height: 30px;
  padding: 0 11px;
  font-size: 11px;
}

.tolls-command-tabs .is-active,
.tolls-quick-ranges .is-active {
  border-color: #d6b650;
  color: #6f5610;
  background: #f8df82;
}

.tolls-command-tabs button:disabled,
.tolls-workflow-map button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.tolls-workflow-map button.is-active {
  border-color: rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 211, 111, 0.16), transparent 44%),
    linear-gradient(135deg, #1e293b, #111827);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.tolls-workflow-map button.is-active strong {
  color: #111827;
  background: #f5d36f;
}

.tolls-workflow-map button.is-active span {
  color: #fff;
}

.tolls-workflow-map button.is-active small {
  color: rgba(255, 255, 255, 0.68);
}

.tolls-workflow-map button.is-locked strong {
  color: #94a3b8;
  background: #e8eef5;
}

.tolls-period-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
  order: 4;
  gap: 10px;
  align-items: end;
  max-width: 620px;
}

.tolls-period-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.tolls-period-tools input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  font-weight: 850;
}

.tolls-quick-ranges {
  display: flex;
  flex-wrap: wrap;
  order: 5;
  gap: 8px;
}

.tolls-period-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  order: 1;
  gap: 10px;
}

.tolls-workflow-map {
  order: 2;
}

.tolls-period-card {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  padding: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 10px 24px rgba(15, 23, 42, 0.04);
}

.tolls-period-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.tolls-period-card strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.tolls-period-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.tolls-period-card.pending,
.tolls-period-card.loss {
  border-color: #efb4b4;
  background: #fff1f1;
}

.tolls-period-card.pending strong,
.tolls-period-card.loss strong {
  color: #c43d44;
}

.tolls-period-card.charged,
.tolls-period-card.gain {
  border-color: #a7dfbf;
  background: #eefbf3;
}

.tolls-period-card.charged strong,
.tolls-period-card.gain strong {
  color: #0f8a4b;
}

.tolls-period-card.matched {
  background: #f7fafc;
}

.tolls-command-grid {
  display: none;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  gap: 10px;
}

.tolls-period-tools,
.tolls-quick-ranges {
  justify-self: start;
}

.tolls-command-grid > article {
  display: grid;
  gap: 10px;
}

.tolls-command-grid h3 {
  margin: 0;
  color: #6f5610;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tolls-pending-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.tolls-pending-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.tolls-pending-row:last-child {
  border-bottom: 0;
}

.tolls-pending-row strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.tolls-pending-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.tolls-pending-row em {
  color: #c43d44;
  font-style: normal;
  font-weight: 950;
}

.tolls-history-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.tolls-history-totals article {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding: 14px 12px;
  text-align: center;
}

.tolls-history-totals article:last-child {
  border-right: 0;
}

.tolls-history-totals span,
.tolls-history-totals small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.tolls-history-totals strong {
  display: block;
  margin: 7px 0 3px;
  color: var(--ink);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.tolls-summary-grid,
.tolls-module-grid {
  display: grid;
  gap: 12px;
}

.tolls-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.tolls-summary-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d8e1eb;
  border-radius: 10px;
  background: #f8fafc;
}

.tolls-summary-grid span,
.tolls-summary-grid small,
.tolls-module-card span {
  display: block;
}

.tolls-summary-grid span {
  color: #5c6878;
  font-size: 11px;
  font-weight: 850;
}

.tolls-summary-grid strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.tolls-summary-grid small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.tolls-module-grid {
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  overflow: visible;
  max-height: none;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 211, 111, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.82)),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.1);
}

#tollsImportArea[hidden],
[data-tolls-panel][hidden],
.tolls-advanced-settings[hidden] {
  display: none !important;
}

.tolls-module-grid.is-loading-step > .tolls-module-card,
.tolls-module-grid.is-loading-step > .tolls-wizard-controls {
  filter: blur(0.8px);
  opacity: 0.58;
  pointer-events: none;
}

.tolls-workflow-loader {
  position: absolute;
  inset: 24px auto auto 50%;
  z-index: 8;
  width: min(calc(100% - 48px), 440px);
  min-height: auto;
  display: block;
  margin: 0;
  transform: translateX(-50%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 211, 111, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.93));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
}

.tolls-workflow-loader[hidden] {
  display: none !important;
}

.tolls-loader-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 5px 12px;
  align-items: center;
  padding: 15px 16px;
  text-align: left;
}

.tolls-loader-spinner {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(30, 41, 59, 0.12);
  border-top-color: #13a463;
  border-radius: 999px;
  animation: tollsSpin 780ms linear infinite;
}

.tolls-loader-card strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.tolls-loader-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

@keyframes tollsSpin {
  to {
    transform: rotate(360deg);
  }
}

.tolls-module-card {
  display: grid;
  align-content: start;
  gap: 11px;
  width: min(100%, 1060px);
  margin-inline: auto;
}

.tolls-module-grid > .panel {
  border-color: rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.workflow-step-card {
  scroll-margin-top: 18px;
}

.workflow-step-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.82));
}

.turo-import-card .workflow-step-heading {
  border-color: rgba(245, 211, 111, 0.25);
  background: rgba(255, 255, 255, 0.045);
}

.workflow-step-heading span {
  grid-row: 1 / 3;
  display: inline-grid;
  min-width: 68px;
  min-height: 36px;
  place-items: center;
  border-radius: 999px;
  background: #fff4c7;
  color: #b9850c;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-step-heading strong {
  min-width: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.2;
}

.turo-import-card .workflow-step-heading strong {
  color: #f8fafc;
}

.workflow-step-heading small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

.turo-import-card .workflow-step-heading small {
  color: rgba(248, 250, 252, 0.5);
}

.tolls-import-panel {
  background: rgba(255, 255, 255, 0.82);
}

.tolls-import-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.tolls-wizard-controls {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(100%, 1060px);
  margin: 4px auto 0;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.tolls-wizard-controls span {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: normal;
}

.tolls-wizard-controls span strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.tolls-wizard-controls span small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
}

.tolls-wizard-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.turo-import-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(145deg, #111827, #0b1119);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.turo-import-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #f5d36f;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.turo-import-eyebrow small {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid rgba(245, 211, 111, 0.45);
  border-radius: 999px;
  color: rgba(245, 211, 111, 0.82);
  font-size: 9px;
  font-weight: 950;
}

.turo-import-shell {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.turo-import-title {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.turo-import-title h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 16px;
  line-height: 1.15;
}

.turo-import-title p {
  margin: 3px 0 0;
  color: rgba(248, 250, 252, 0.45);
  font-size: 12px;
}

.turo-import-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(245, 211, 111, 0.24);
  border-radius: 9px;
  color: #f5d36f;
  background: rgba(245, 211, 111, 0.12);
  font-size: 18px;
}

.turo-import-drop {
  display: grid;
  min-height: 118px;
  place-items: center;
  gap: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.turo-import-drop:hover,
.turo-import-drop.is-dragging {
  border-color: rgba(245, 211, 111, 0.5);
  background: rgba(245, 211, 111, 0.06);
}

.turo-import-drop.is-dragging {
  transform: translateY(-1px);
}

.turo-import-drop input {
  display: none;
}

.turo-upload-icon {
  color: rgba(248, 250, 252, 0.72);
  font-size: 31px;
  line-height: 1;
}

.turo-import-drop strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.turo-import-drop small,
.turo-import-drop em {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.turo-import-submit {
  width: 100%;
  margin-top: 10px;
}

.turo-import-submit,
.epass-process-btn {
  border-color: rgba(16, 185, 129, 0.28);
  color: #fff;
  background: linear-gradient(135deg, #159455, #0f7a45);
}

.turo-import-submit:hover:not(:disabled),
.epass-process-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #18a862, #11864d);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.22);
}

.turo-import-submit:disabled,
.epass-process-btn:disabled {
  border-color: rgba(148, 163, 184, 0.28);
  color: rgba(255, 255, 255, 0.58);
  background: rgba(148, 163, 184, 0.34);
}

.turo-import-history {
  max-height: 235px;
  overflow: auto;
}

.turo-import-history > span {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 2px 0 8px;
  background: #0b1119;
}

.turo-history-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
}

.turo-history-row strong {
  white-space: normal;
  text-overflow: unset;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.turo-history-row time {
  justify-self: end;
}

.turo-history-row span {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 5px 7px;
  font-size: 10px;
}

.tolls-import-history-panel {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.tolls-import-history-panel > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tolls-import-history-panel #tollsTuroImportHistory {
  display: grid;
  max-height: 160px;
  overflow: auto;
}

.tolls-import-history-panel .turo-history-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  padding: 10px 0;
}

.tolls-import-history-panel .turo-history-row:last-child {
  border-bottom: 0;
}

.tolls-import-history-panel .turo-history-row strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.tolls-import-history-panel .turo-history-row time {
  justify-self: end;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tolls-import-history-panel .turo-history-row span {
  grid-column: 1 / -1;
  justify-self: start;
  color: #0f9f5e;
  background: rgba(16, 185, 129, 0.1);
}

.tolls-import-history-panel .turo-history-empty {
  border-color: rgba(148, 163, 184, 0.32);
  color: #64748b;
}

.epass-import-card {
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.epass-import-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.epass-import-head h2,
.epass-import-head p {
  min-width: 0;
}

.epass-import-head p {
  line-height: 1.35;
}

.epass-type-grid {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

.epass-type-card {
  min-height: 64px;
  padding: 11px;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.045);
}

.epass-type-card strong,
.epass-type-card span {
  overflow-wrap: anywhere;
}

.epass-type-card span {
  color: rgba(248, 250, 252, 0.55);
}

.epass-type-card.is-active {
  border-color: rgba(245, 211, 111, 0.54);
  color: #f5d36f;
  background: rgba(245, 211, 111, 0.12);
}

.epass-dropzone {
  min-height: 136px;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.015);
}

.epass-dropzone strong,
.epass-dropzone small,
.epass-dropzone em {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.epass-upload-icon {
  border-color: rgba(245, 211, 111, 0.34);
  color: #f5d36f;
  background: rgba(245, 211, 111, 0.12);
}

.import-status {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  padding: 9px 11px;
  background: rgba(248, 250, 252, 0.86);
  line-height: 1.35;
}

.tolls-preview-table {
  max-height: 230px;
  overflow: auto;
  border-radius: 12px;
}

.tolls-preview-table table {
  min-width: 760px;
}

.tolls-preview-table td,
.tolls-preview-table th {
  white-space: normal;
}

.tolls-wizard-controls .ghost-btn,
.tolls-wizard-controls .primary-btn {
  min-width: 104px;
}

.turo-import-drop small {
  color: rgba(248, 250, 252, 0.35);
  font-size: 11px;
  font-weight: 750;
}

.turo-import-drop em {
  max-width: 100%;
  overflow: hidden;
  color: rgba(245, 211, 111, 0.86);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.turo-import-submit {
  width: 100%;
  margin-top: 12px;
}

.turo-import-history {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.turo-import-history > span {
  color: rgba(248, 250, 252, 0.36);
  font-size: 11px;
  font-weight: 850;
}

#tollsTuroImportHistory {
  display: grid;
}

.turo-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 10px 0;
}

.turo-history-row strong {
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.turo-history-row time {
  color: rgba(248, 250, 252, 0.32);
  font-size: 11px;
  font-weight: 800;
}

.turo-history-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 178, 125, 0.45);
  border-radius: 6px;
  padding: 6px 8px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.turo-import-drop strong {
  max-width: 100%;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.turo-import-drop small,
.turo-import-drop em {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.turo-import-submit {
  width: 100%;
  margin-top: 10px;
}

.turo-import-history {
  display: grid;
  gap: 9px;
  max-height: 235px;
  overflow: auto;
}

.turo-import-history > span {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 2px 0 8px;
  background: #0b1119;
}

.turo-history-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
}

.turo-history-row strong {
  white-space: normal;
  text-overflow: unset;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.turo-history-row time {
  justify-self: end;
}

.turo-history-row span {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 5px 7px;
  font-size: 10px;
}

.turo-history-empty {
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  padding: 14px;
  color: rgba(248, 250, 252, 0.46);
  font-size: 12px;
  text-align: center;
}

.tolls-secondary-imports,
.epass-import-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid #d8e1eb;
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.epass-import-card {
  align-content: start;
}

.epass-import-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.epass-import-head h2 {
  margin: 4px 0;
  font-size: 23px;
}

.epass-import-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.epass-type-card {
  display: grid;
  gap: 6px;
  min-height: 72px;
  border: 1px solid #d8e1eb;
  border-radius: 10px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
  cursor: pointer;
}

.epass-type-card strong {
  font-size: 13px;
  font-weight: 950;
}

.epass-type-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.epass-type-card.is-active {
  border-color: #d7b84e;
  color: #6f5610;
  background: #fbefbf;
}

.epass-dropzone {
  display: grid;
  min-height: 190px;
  place-items: center;
  gap: 7px;
  border: 1px solid #d8e1eb;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 -42px 0 rgba(15, 23, 42, 0.03);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.epass-dropzone:hover,
.epass-dropzone.is-dragging {
  border-color: #d7b84e;
  background: #fffaf0;
}

.epass-dropzone.is-dragging {
  transform: translateY(-1px);
}

.epass-dropzone input {
  display: none;
}

.epass-upload-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(215, 184, 78, 0.5);
  border-radius: 9px;
  color: #7a5d0b;
  background: #fbefbf;
  font-size: 24px;
  line-height: 1;
}

.epass-dropzone strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.epass-dropzone small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.epass-dropzone em {
  max-width: 100%;
  overflow: hidden;
  color: #7a5d0b;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.epass-process-btn {
  width: 100%;
  min-height: 44px;
}

.tolls-step-confirmation {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(3px);
}

.tolls-step-confirmation[hidden] {
  display: none !important;
}

.tolls-confirmation-dialog {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px 14px;
  align-items: center;
  width: min(100%, 650px);
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 16px;
  padding: 16px;
  background:
    radial-gradient(circle at 8% 0%, rgba(16, 185, 129, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 253, 250, 0.95));
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.22);
}

.tolls-confirmation-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #18a862, #0f7a45);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.22);
  font-size: 17px;
  font-weight: 900;
}

.tolls-confirmation-dialog strong {
  color: #087346;
  font-size: 15px;
  line-height: 1.2;
}

.tolls-confirmation-dialog span:not(.tolls-confirmation-icon) {
  display: block;
  margin-top: 3px;
  color: #476273;
  font-size: 12px;
  line-height: 1.35;
}

.tolls-confirmation-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.tolls-confirmation-actions button {
  min-height: 36px;
  padding-inline: 14px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .tolls-confirmation-dialog {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .tolls-confirmation-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .tolls-confirmation-actions button {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .tolls-inline-reconcile-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tolls-inline-reconcile-form .primary-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .tolls-inline-reconcile-form {
    grid-template-columns: 1fr;
  }
}

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

.tolls-import-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.tolls-import-box {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tolls-import-actions,
.tolls-toolbar {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.tolls-toolbar label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.tolls-toolbar select {
  min-height: 34px;
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.tolls-reconciliation-params {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  padding: 16px;
  background: rgba(248, 250, 252, 0.72);
}

.tolls-reconciliation-params h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.tolls-inline-reconcile-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(135px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.tolls-inline-reconcile-form label {
  display: grid;
  gap: 6px;
  color: #637084;
  font-size: 11px;
  font-weight: 700;
}

.tolls-inline-reconcile-form input {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 750;
}

.tolls-inline-reconcile-form .primary-btn {
  min-height: 42px;
  white-space: nowrap;
}

.tolls-reconcile-hint {
  margin: -2px 0 0;
  color: #5f6f84;
  font-size: 12px;
  line-height: 1.35;
}

.tolls-param-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.tolls-param-summary article {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 13px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.tolls-param-summary span {
  color: var(--muted);
  font-size: 11px;
}

.tolls-param-summary strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 16px;
}

.tolls-reconciliation-params > .ghost-btn {
  justify-self: start;
}

.tolls-param-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.tolls-reconcile-dialog {
  max-width: 560px;
}

.tolls-reconcile-explain {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(245, 211, 111, 0.42);
  border-radius: 13px;
  padding: 12px;
  background: rgba(255, 250, 240, 0.82);
}

.tolls-reconcile-explain strong {
  color: #7a5d0b;
}

.tolls-reconcile-explain span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.tolls-param-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.tolls-param-grid input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  font-weight: 850;
}

.tolls-reconcile-filters {
  justify-content: flex-start;
}

.tolls-analysis-preview {
  display: grid;
  gap: 12px;
}

.tolls-analysis-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.tolls-analysis-kpis article {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.tolls-analysis-kpis span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.tolls-analysis-kpis strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.tolls-analysis-kpis article:nth-child(3) strong {
  color: #0f8a4b;
}

.tolls-analysis-kpis article:nth-child(4) strong {
  color: #b9850c;
}

.tolls-analysis-window {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.tolls-apply-preview-btn {
  width: 100%;
  min-height: 42px;
}

.tolls-preview-review-list {
  display: grid;
  gap: 8px;
}

.tolls-preview-review-list h3 {
  margin: 0;
  color: #6f5610;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tolls-preview-review-list article:not(.empty-state) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
}

.tolls-preview-review-list strong,
.tolls-preview-review-list span,
.tolls-preview-review-list small {
  display: block;
}

.tolls-preview-review-list strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.tolls-preview-review-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.tolls-preview-review-list small {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  border: 1px solid rgba(215, 184, 78, 0.38);
  border-radius: 6px;
  padding: 4px 7px;
  color: #7a5d0b;
  background: #fff4c7;
  font-size: 10px;
  font-weight: 850;
}

.tolls-preview-review-list em {
  color: #c43d44;
  font-style: normal;
  font-weight: 950;
}

.tolls-preview-trip-group {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.tolls-preview-trip-group summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.tolls-preview-trip-group summary::-webkit-details-marker {
  display: none;
}

.tolls-preview-trip-group summary::before {
  content: "+";
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #7a5d0b;
  background: #fff4c7;
  font-weight: 900;
}

.tolls-preview-trip-group[open] summary::before {
  content: "-";
}

.tolls-preview-trip-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.tolls-preview-trip-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tolls-preview-trip-line strong {
  overflow: hidden;
  max-width: 100%;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tolls-preview-trip-line strong a {
  color: inherit;
  text-decoration: none;
}

.tolls-preview-trip-line strong a:hover {
  color: #2a5fa0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tolls-preview-trip-line span {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  border: 1px solid rgba(42, 95, 160, 0.16);
  border-radius: 999px;
  padding: 5px 9px;
  color: #2a5fa0;
  background: #eef6ff;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1;
}

.tolls-preview-trip-line mark {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
}

.tolls-preview-trip-line mark.is-complete {
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: #0f8a4b;
  background: rgba(232, 248, 238, 0.92);
}

.tolls-preview-trip-line mark.is-progress {
  border: 1px solid rgba(215, 184, 78, 0.44);
  color: #7a5d0b;
  background: #fff4c7;
}

.tolls-preview-trip-group-resolved {
  border-color: rgba(16, 185, 129, 0.22);
  background: rgba(248, 250, 252, 0.86);
}

.tolls-preview-trip-period {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}

.tolls-preview-trip-period span {
  margin: 0;
  color: #667085;
  font-size: 11px;
  font-weight: 760;
}

.tolls-preview-trip-period em {
  display: inline-flex;
  border: 1px solid rgba(215, 184, 78, 0.42);
  border-radius: 999px;
  padding: 4px 8px;
  color: #7a5d0b;
  background: #fff4c7;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.tolls-preview-trip-total {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 118px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(232, 248, 238, 0.9);
}

.tolls-preview-trip-total span {
  margin: 0;
  color: #52627a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.tolls-preview-trip-total strong {
  color: #0f8a4b;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

.tolls-preview-trip-total button {
  min-height: 28px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 8px;
  padding: 0 9px;
  color: #0f8a4b;
  background: #fff;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.tolls-preview-trip-total button:hover {
  border-color: rgba(16, 185, 129, 0.48);
  background: rgba(232, 248, 238, 0.9);
}

.tolls-preview-trip-tolls {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.82);
}

.tolls-preview-day {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.tolls-preview-day:last-child {
  border-bottom: 0;
}

.tolls-preview-day > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px 13px 54px;
  cursor: pointer;
  list-style: none;
  background: rgba(255, 255, 255, 0.62);
}

.tolls-preview-day > summary::-webkit-details-marker {
  display: none;
}

.tolls-preview-day > summary::before {
  content: "+";
  display: grid;
  place-items: center;
  position: absolute;
  margin-left: -32px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #8a6b09;
  background: #fff1b8;
  font-weight: 900;
}

.tolls-preview-day[open] > summary::before {
  content: "-";
}

.tolls-preview-day > summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f2937;
  font-weight: 850;
}

.tolls-preview-day > summary small {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.tolls-preview-day > summary strong {
  color: #0f8a4b;
  font-size: 14px;
  font-weight: 900;
}

.tolls-preview-trip-tolls article:not(.empty-state) {
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0;
  padding: 10px 14px 10px 58px;
  background: transparent;
}

.tolls-preview-trip-tolls article.is-review {
  border-left: 3px solid rgba(215, 184, 78, 0.78);
  background: rgba(255, 247, 214, 0.42);
}

.tolls-preview-trip-tolls article.is-review small {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  border: 1px solid rgba(215, 184, 78, 0.42);
  border-radius: 999px;
  padding: 3px 7px;
  color: #7a5d0b;
  background: #fff4c7;
  font-size: 9.5px;
  font-weight: 850;
}

.tolls-preview-trip-tolls article:last-child {
  border-bottom: 0;
}

.tolls-preview-trip-tolls strong {
  font-size: 12px;
}

.tolls-preview-trip-tolls em {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: #0f8a4b;
}

.tolls-preview-trip-tolls article.is-review em {
  color: #a66b00;
}

.tolls-preview-trip-tolls em small {
  margin: 0;
  border: 0;
  padding: 0;
  color: #64748b;
  background: transparent;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
}

.manual-tolls-review {
  display: grid;
  gap: 12px;
}

.manual-review-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.manual-review-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.manual-review-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d8e1eb;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.manual-review-tabs button {
  min-height: 42px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 950;
}

.manual-review-tabs button.is-active {
  color: #6f5610;
  background: #fbefbf;
}

.manual-review-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  padding: 14px;
  background: rgba(248, 250, 252, 0.72);
}

.manual-review-filters label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.manual-review-filters input,
.manual-review-filters select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 850;
}

.manual-review-filters button {
  grid-column: 1 / -1;
}

.manual-review-list {
  display: grid;
  gap: 8px;
}

.manual-review-list h3 {
  margin: 0;
  color: #6f5610;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.manual-review-plate-group {
  overflow: hidden;
  border: 1px solid rgba(117, 142, 171, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 254, 0.92)),
    #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.manual-review-plate-group + .manual-review-plate-group {
  margin-top: 12px;
}

.manual-review-plate-group > summary {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  background:
    radial-gradient(circle at 0 0, rgba(215, 184, 78, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, #ffffff 100%);
}

.manual-review-plate-group > summary::-webkit-details-marker {
  display: none;
}

.manual-review-plate-group > summary span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.manual-review-plate-group > summary span mark {
  display: inline-grid;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d7b84e;
  box-shadow: 0 0 0 5px rgba(215, 184, 78, 0.16);
}

.manual-review-plate-group > summary small {
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 999px;
  padding: 5px 9px;
  color: #52657d;
  background: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 850;
}

.manual-review-plate-group > summary strong {
  color: #0f8a4b;
  font-size: 15px;
  font-weight: 950;
}

.manual-review-date-group {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.manual-review-date-group header {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  background: rgba(245, 248, 252, 0.84);
}

.manual-review-date-group header span {
  color: #6f5610;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.manual-review-date-group header small {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.manual-review-date-group header strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.manual-review-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) auto minmax(280px, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.9);
  transition: background 0.16s ease, border-color 0.16s ease;
}

.manual-review-main {
  min-width: 0;
}

.manual-review-row.is-open {
  border-color: rgba(215, 184, 78, 0.58);
  background: #fffaf0;
}

.manual-review-row strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.manual-review-row strong span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(215, 184, 78, 0.55);
  border-radius: 6px;
  color: #7a5d0b;
  background: #fff4c7;
  font-size: 10px;
}

.manual-review-row strong small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.manual-review-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.manual-review-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.manual-review-reason {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(215, 184, 78, 0.42);
  border-radius: 999px;
  padding: 4px 8px;
  color: #7a5d0b;
  background: #fff4c7;
  font-size: 10px;
  font-weight: 850;
}

.manual-review-reason.is-trip {
  border-color: rgba(31, 94, 157, 0.18);
  color: #1f5e9d;
  background: #edf6ff;
}

.manual-review-row > em {
  color: var(--ink);
  font-style: normal;
  font-weight: 950;
}

.manual-review-assignment {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.manual-review-assignment select {
  min-height: 38px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  font-weight: 850;
}

.manual-review-assignment button {
  min-height: 38px;
  border: 1px solid rgba(24, 139, 78, 0.22);
  border-radius: 10px;
  padding: 0 12px;
  color: #0f7a43;
  background: #e9f9f0;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.manual-review-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.manual-review-actions button {
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.manual-review-actions button:first-child {
  color: #7a5d0b;
}

.manual-review-actions button:last-child {
  color: #c43d44;
}

.manual-resolve-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  margin: 2px -14px -13px;
  border-top: 1px solid rgba(215, 184, 78, 0.3);
  padding: 13px 14px 14px;
  background: #fff4c7;
}

.manual-resolve-panel[hidden] {
  display: none;
}

.manual-resolve-panel > strong {
  color: #6f5610;
  font-size: 12px;
  font-weight: 950;
}

.manual-resolve-panel > span {
  color: #7a5d0b;
  font-size: 11px;
  font-weight: 750;
}

.manual-resolve-panel > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.manual-resolve-panel button {
  min-height: 34px;
  border: 1px solid rgba(122, 93, 11, 0.2);
  border-radius: 8px;
  color: #5f4a0c;
  background: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  font-weight: 850;
}

.manual-tolls-review + .tolls-review-table {
  max-height: 180px;
  opacity: 0.42;
}

.tolls-billing-panel {
  display: grid;
  gap: 13px;
}

.billing-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.billing-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.billing-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  padding: 14px;
  background: rgba(248, 250, 252, 0.72);
}

.billing-filter-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.billing-filter-grid input,
.billing-filter-grid select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 850;
}

.billing-filter-grid .billing-checkbox {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
}

.billing-filter-grid .billing-checkbox input {
  min-height: auto;
}

.billing-filter-grid button {
  grid-column: 1 / -1;
}

.billing-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.billing-kpis article {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.billing-kpis span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.billing-kpis strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.billing-kpis .green strong {
  color: #0f8a4b;
}

.billing-kpis .gold strong {
  color: #b9850c;
}

.billing-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d8e1eb;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.billing-tabs button {
  min-height: 42px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 950;
}

.billing-tabs button.is-active {
  color: #6f5610;
  background: #fbefbf;
}

.billing-trip-list {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.billing-trip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  transition: background 140ms ease;
}

.billing-trip-row:hover {
  background: rgba(248, 250, 252, 0.9);
}

.billing-trip-row:last-child {
  border-bottom: 0;
}

.billing-trip-row > strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.billing-trip-row div > strong {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.billing-trip-row div > strong span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.billing-trip-row div > strong em {
  border: 1px solid rgba(215, 184, 78, 0.55);
  border-radius: 6px;
  padding: 3px 7px;
  color: #7a5d0b;
  background: #fff4c7;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.billing-trip-row div > strong em:where(:not(:empty)) {
  text-transform: none;
}

.billing-trip-row div > strong em.is-billed {
  border-color: rgba(16, 185, 129, 0.34);
  color: #0f8a4b;
  background: #e8f8ee;
}

.billing-trip-row p {
  margin: 7px 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.billing-trip-row div div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.billing-trip-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
  font-weight: 850;
}

.billing-trip-row button:last-child {
  border-color: #d7b84e;
  color: #111827;
  background: #f8df82;
}

.tolls-module-card .empty-state {
  box-shadow: none;
}

.tolls-reconcile-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin: 8px 0 4px;
}

.tolls-reconcile-kpi {
  min-width: 0;
  border: 1px solid #d8e1eb;
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.tolls-reconcile-kpi span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.tolls-reconcile-kpi strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.tolls-reconcile-kpi.good {
  border-color: #a9e1c2;
  background: rgba(234, 250, 241, 0.78);
}

.tolls-reconcile-kpi.warn {
  border-color: #f1d692;
  background: rgba(255, 249, 231, 0.84);
}

.tolls-reconcile-kpi.bad {
  border-color: #f2b4b4;
  background: rgba(255, 241, 241, 0.84);
}

.tolls-reconcile-table,
.tolls-review-table {
  max-height: 520px;
  overflow: auto;
}

.tolls-reconcile-table table,
.tolls-review-table table,
.tolls-rate-table table {
  min-width: 960px;
}

.tolls-reconcile-table td {
  vertical-align: top;
}

.tolls-reconcile-table td strong,
.tolls-review-table td strong {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.tolls-reconcile-table td span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.tolls-reconcile-table td em {
  display: inline-flex;
  margin-top: 7px;
  border-radius: 999px;
  padding: 4px 8px;
  color: #0f8a4b;
  background: #e8f8ee;
  font-style: normal;
  font-weight: 900;
}

.toll-amount-flow {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 6px;
  min-width: 145px;
}

.toll-amount-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 950;
}

.toll-amount-flow .actual {
  color: #667085;
  background: #eef2f6;
}

.toll-amount-flow .charge {
  color: #0f8a4b;
  background: #e8f8ee;
}

.toll-amount-flow i {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.toll-amount-flow small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.tolls-billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tolls-rate-table {
  max-height: 360px;
  overflow: auto;
}

.selection-hint {
  align-self: center;
  border: 1px solid #d8e1eb;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

.trip-billing-list {
  display: grid;
  gap: 12px;
}

.tolls-report-panel {
  background: rgba(255, 255, 255, 0.82);
}

.trip-report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trip-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  padding: 10px;
  background: rgba(248, 250, 252, 0.76);
}

.trip-report-actions .danger-btn {
  background: #fff;
}

.trip-billing-card {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(31, 41, 55, 0.05);
}

.trip-billing-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #edf1f6;
  padding: 14px;
}

.trip-billing-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.trip-billing-header h3 span {
  display: inline-flex;
  margin-left: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  text-transform: none;
}

.trip-billing-header p,
.trip-billing-header small {
  margin: 5px 0 0;
  color: var(--muted);
}

.trip-billing-header > strong {
  color: #0f8a4b;
  font-size: 18px;
  line-height: 1;
}

.trip-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 14px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.trip-billing-day {
  display: grid;
  gap: 0;
  border-top: 1px solid #edf1f6;
}

.trip-billing-day summary,
.trip-billing-day header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0;
  padding: 11px 14px;
  color: var(--ink);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.trip-billing-day summary::-webkit-details-marker {
  display: none;
}

.trip-billing-day summary::before {
  content: "›";
  display: inline-grid;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  transform: rotate(0deg);
  transition: transform 140ms ease;
}

.trip-billing-day[open] summary::before {
  transform: rotate(90deg);
}

.trip-billing-day summary small,
.trip-billing-day header small {
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.trip-billing-day summary strong,
.trip-billing-day header strong {
  color: #0f8a4b;
}

.trip-billing-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 0;
  border-top: 1px solid #edf1f6;
  border-radius: 0;
  padding: 11px 14px;
  background: #fff;
}

.trip-billing-row strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
}

.trip-billing-row strong small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.trip-billing-row strong em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.trip-billing-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.tolls-status-row.needs_review td:first-child,
.tolls-status-row.unmatched td:first-child {
  border-left: 4px solid #efbf4a;
}

.tolls-status-row.auto_matched td:first-child,
.tolls-status-row.confirmed td:first-child,
.tolls-status-row.manually_matched td:first-child {
  border-left: 4px solid #20a464;
}

.tolls-status-row.rejected td:first-child {
  border-left: 4px solid #c43d44;
}

.trip-billing-report-dialog {
  width: min(760px, calc(100vw - 28px));
}

.trip-billing-report-dialog::backdrop {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(8px);
}

.trip-billing-report-card {
  width: 100%;
  max-height: min(82vh, 780px);
  overflow: auto;
  border-radius: 18px;
  padding: 16px;
  background: #101418;
  color: #f8fafc;
}

.trip-billing-report-card .dialog-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.trip-billing-report-card .dialog-head h3,
.trip-billing-report-card .panel-label-dark {
  color: #f8fafc;
}

.trip-billing-report-card .panel-label-dark {
  color: #f5d36f;
}

.trip-billing-report-card .selection-hint,
.trip-billing-report-card .ghost-btn,
.trip-billing-report-card .danger-btn {
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
}

.trip-billing-report-card .trip-billing-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: #171b20;
  box-shadow: none;
}

.trip-billing-report-card .trip-billing-header,
.trip-billing-report-card .trip-billing-day,
.trip-billing-report-card .trip-billing-row {
  border-color: rgba(255, 255, 255, 0.08);
}

.trip-billing-report-card .trip-billing-header h3,
.trip-billing-report-card .trip-billing-header h3 a,
.trip-billing-report-card .trip-billing-row strong {
  color: #f8fafc;
}

.trip-billing-report-card .trip-billing-header p,
.trip-billing-report-card .trip-billing-header small,
.trip-billing-report-card .trip-billing-row span,
.trip-billing-report-card .trip-billing-row small,
.trip-billing-report-card .trip-billing-day summary small {
  color: #98a2b3;
}

.trip-billing-report-card .trip-billing-day summary {
  color: #f8fafc;
  background: #171b20;
}

.trip-billing-report-card .trip-billing-row {
  background: #171b20;
}

.trip-billing-report-card .toll-amount-flow .actual {
  color: #a6adbb;
  background: transparent;
}

.trip-billing-report-card .toll-amount-flow .charge {
  color: #37d99a;
  background: transparent;
}

.trip-billing-report-card .toll-amount-flow small {
  color: #98a2b3;
}

.tolls-review-table td:first-child span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.tolls-review-table select {
  min-width: 240px;
}

.tolls-review-actions {
  flex-wrap: wrap;
  min-width: 320px;
}

.tolls-review-actions .mini-btn {
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
}

.segmented-control {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  background: #fff;
}

.segmented-control button {
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
}

.segmented-control button.active {
  color: #fff;
  background: var(--nav);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
}

.chart-wrap {
  min-height: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding: 2px 0 6px;
  -webkit-overflow-scrolling: touch;
}

.year-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.chart-filter-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.year-filter select {
  height: 38px;
  min-width: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 34px 0 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.legend-revenue {
  background: #5737f5;
}

.legend-future {
  background: #b9a4f2;
}

.legend-reimbursements {
  background: #57d28b;
}

.legend-incentives {
  background: #ffad3b;
}

.legend-missed {
  background: #e34234;
}

.chart {
  display: block;
}

.earnings-chart-card {
  min-width: 760px;
  padding-top: 2px;
}

.earnings-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.earnings-chart-head strong {
  display: block;
  color: #111827;
  font-size: 28px;
  line-height: 1.1;
}

.earnings-chart-head span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.earnings-chart-head small {
  display: block;
  margin-top: 5px;
  color: #6f4dbf;
  font-size: 13px;
  font-weight: 900;
}

.earnings-chart-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: stretch;
}

.earnings-bars {
  min-height: 258px;
  display: grid;
  grid-template-columns: repeat(12, minmax(34px, 1fr));
  align-items: end;
  gap: 18px;
  padding: 54px 0 24px;
  border-bottom: 2px solid #9ca3af;
  background: repeating-linear-gradient(to top, transparent 0, transparent 47px, rgba(215, 222, 232, 0.34) 48px);
}

.earnings-month {
  position: relative;
  min-height: 180px;
  display: grid;
  align-items: end;
  justify-items: center;
  outline: none;
}

.earnings-month > span,
.earnings-scale span {
  color: #4b5563;
  font-size: 12px;
}

.earnings-month > span {
  position: absolute;
  right: 0;
  bottom: -21px;
  left: 0;
  text-align: center;
}

.earnings-bar {
  width: min(38px, 80%);
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.earnings-bar i {
  position: relative;
  display: block;
  width: 100%;
}

.earnings-bar i[style^="height:0"] {
  pointer-events: none;
}

.earnings-bar .revenue {
  background: #5737f5;
}

.earnings-bar .future {
  background: #b9a4f2;
}

.earnings-bar .reimbursements {
  background: #57d28b;
}

.earnings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 28px;
  color: #111827;
  font-size: 15px;
}

.earnings-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.earnings-legend i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex: 0 0 auto;
}

.earnings-legend strong {
  font-weight: 900;
}

.earnings-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 20;
  min-width: 178px;
  transform: translate(-50%, 8px);
  border: 2px solid #1f2937;
  border-radius: 0;
  padding: 14px 18px 16px;
  color: #111827;
  background: #fff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
  text-align: center;
  font-style: normal;
}

.earnings-tooltip strong,
.earnings-tooltip b,
.earnings-tooltip span {
  display: block;
  color: inherit;
  font-size: 12px;
  line-height: 1.45;
}

.earnings-tooltip strong {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 900;
}

.earnings-tooltip b {
  font-size: 24px;
  line-height: 1.1;
}

.earnings-tooltip::after {
  position: absolute;
  bottom: -11px;
  left: 50%;
  width: 18px;
  height: 18px;
  border-right: 2px solid #1f2937;
  border-bottom: 2px solid #1f2937;
  background: #fff;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.earnings-bar i:hover .earnings-tooltip,
.earnings-bar i:focus .earnings-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.earnings-month:first-child .earnings-tooltip {
  left: 0;
  transform: translate(0, 6px);
}

.earnings-month:first-child .earnings-tooltip::after {
  left: 28px;
}

.earnings-month:first-child .earnings-bar i:hover .earnings-tooltip,
.earnings-month:first-child .earnings-bar i:focus .earnings-tooltip {
  transform: translate(0, 0);
}

.earnings-month:last-child .earnings-tooltip {
  right: 0;
  left: auto;
  transform: translate(0, 6px);
}

.earnings-month:last-child .earnings-tooltip::after {
  right: 28px;
  left: auto;
}

.earnings-month:last-child .earnings-bar i:hover .earnings-tooltip,
.earnings-month:last-child .earnings-bar i:focus .earnings-tooltip {
  transform: translate(0, 0);
}

.earnings-scale {
  min-height: 258px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 54px 0 20px;
}

.rank-list,
.maintenance-board,
.timeline {
  display: grid;
  gap: 10px;
}

.expense-rank-panel .panel-head {
  margin-bottom: 10px;
}

.expense-rank-panel .rank-list {
  gap: 8px;
}

.expense-rank-panel .rank-row {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
}

.expense-rank-panel .progress {
  height: 6px;
}

.rank-item {
  display: grid;
  gap: 7px;
}

.rank-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef3;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.table-wrap.tall {
  max-height: 620px;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

#investors table {
  min-width: 1120px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: #435468;
  background: #eef3f7;
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr {
  background: #fff;
}

tbody tr:hover {
  background: #f8fbfd;
}

.dre-car strong,
.dre-car span {
  display: block;
}

.dre-car strong {
  color: var(--ink);
  font-size: 15px;
}

.dre-car span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.dre-money,
.dre-margin {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 900;
}

.dre-real {
  color: #0f5132;
  background: var(--soft-green);
}

.dre-future {
  color: #1f4e79;
  background: var(--soft-blue);
}

.dre-tolls {
  color: #5b3aa3;
  background: #f5f1ff;
}

.dre-expense,
.dre-bad {
  color: #842029;
  background: var(--soft-red);
}

.dre-good {
  color: #0f5132;
  background: var(--soft-green);
}

.dre-warn {
  color: #744210;
  background: #fff4d8;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.pill.good {
  color: #0f5132;
  background: var(--soft-green);
}

.pill.warn {
  color: #744210;
  background: #fff4d8;
}

.pill.bad {
  color: #842029;
  background: var(--soft-red);
}

.pill.info {
  color: #1f4e79;
  background: var(--soft-blue);
}

.fleet-grid,
.mileage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 16px;
}

.fleet-list-view {
  display: block;
}

.fleet-list-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.fleet-list-table tr[data-fleet-vehicle] {
  cursor: pointer;
}

.fleet-list-table .selected-row {
  background: #eef7f5;
}

.vehicle-card,
.mile-card {
  padding: 18px;
}

.vehicle-card {
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.vehicle-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.vehicle-card > p {
  margin: 2px 0 0;
  color: #667386;
  font-size: 14px;
  line-height: 1.35;
}

.vehicle-card:hover,
.vehicle-card:focus-visible,
.vehicle-card.selected {
  border-color: var(--teal);
  box-shadow: 0 18px 50px rgba(15, 118, 110, 0.16);
  outline: 0;
}

.vehicle-card:hover {
  transform: translateY(-1px);
}

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

.vehicle-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.plate {
  display: inline-block;
  margin: 9px 0;
  padding: 7px 12px;
  border: 2px solid #1f2933;
  border-radius: 6px;
  background: #f9fafb;
  font-weight: 900;
  letter-spacing: 1px;
}

.plate.compact {
  margin: 0;
  padding: 5px 9px;
  border-width: 1px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.owner-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 6px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid #bdd7f3;
  color: #245b96;
  background: #edf6ff;
  font-size: 11px;
  font-weight: 800;
}

.vehicle-card-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 2px;
}

.vehicle-color-pin {
  width: max-content;
  max-width: 100%;
  display: inline-grid;
  justify-items: center;
  gap: 4px;
  margin: 8px 0 2px;
  color: #526074;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
}

.vehicle-color-pin i {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(31, 41, 55, 0.18);
  border-radius: 999px;
  background: var(--vehicle-color, #94a3b8);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.55), 0 3px 9px rgba(15, 23, 42, 0.14);
}

.vehicle-color-pin small {
  max-width: 96px;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-color-pin-list {
  margin: 0;
  min-width: 58px;
}

.vehicle-color-pin-list i {
  width: 14px;
  height: 14px;
}

.vehicle-color-pin-list small {
  max-width: 84px;
  font-size: 9px;
}

.tag-expiry-badge {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 2px;
  padding: 7px 10px;
  border: 1px solid #d7e0eb;
  border-radius: 999px;
  color: #526074;
  background: rgba(248, 250, 252, 0.84);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
}

.tag-expiry-badge i {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16);
}

.tag-expiry-badge span {
  display: grid;
  gap: 2px;
}

.tag-expiry-badge strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
}

.tag-expiry-badge small {
  color: inherit;
  font-size: 10px;
  font-weight: 750;
}

.tag-expiry-badge.tag-ok {
  border-color: #b8e4c7;
  color: #0f7f45;
  background: #f1fbf5;
}

.tag-expiry-badge.tag-ok i {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}

.tag-expiry-badge.tag-due {
  border-color: #f4d996;
  color: #8a5a00;
  background: #fff8e8;
}

.tag-expiry-badge.tag-due i {
  background: #d99b14;
  box-shadow: 0 0 0 3px rgba(217, 155, 20, 0.16);
}

.tag-expiry-badge.tag-expired {
  border-color: #f1b8b4;
  color: #a1262c;
  background: #fff1f0;
}

.tag-expiry-badge.tag-expired i {
  background: #c43d3d;
  box-shadow: 0 0 0 3px rgba(196, 61, 61, 0.14);
}

.tag-expiry-badge-list {
  min-height: 28px;
  margin: 0;
  padding: 5px 8px;
  border-radius: 8px;
}

.tag-expiry-badge-list strong {
  font-size: 9px;
}

.tag-expiry-badge-list small {
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}

.insurance-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
  color: #245b96;
  font-size: 12px;
  font-weight: 800;
}

.insurance-summary span {
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid #bdd7f3;
  border-radius: 999px;
  background: #edf6ff;
}

.insurance-summary a,
.insurance-link {
  color: #245b96;
  font-weight: 900;
  text-decoration: none;
}

.insurance-summary a:hover,
.insurance-link:hover {
  text-decoration: underline;
}

.muted-cell {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.vehicle-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.fleet-stat {
  min-height: 58px;
  padding: 9px;
  border-radius: 8px;
  display: grid;
  align-content: start;
  gap: 5px;
  background: #f5f8fb;
}

.vehicle-stats .stat-real {
  border: 1px solid #cfe8d9;
  background: linear-gradient(180deg, #f5fcf7 0%, #eef8f2 100%);
}

.vehicle-stats .stat-real strong {
  color: var(--green);
}

.vehicle-stats .stat-future {
  border: 1px solid #cddff1;
  background: linear-gradient(180deg, #f6fbff 0%, #edf5ff 100%);
}

.vehicle-stats .stat-future strong {
  color: var(--blue);
}

.vehicle-stats .stat-mileage {
  border: 1px solid #d9e0ea;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

.vehicle-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5c6878;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  min-width: 0;
}

.vehicle-stats span em {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-style: normal;
}

.stat-real span em {
  background: var(--green);
}

.stat-future span em {
  background: var(--blue);
}

.stat-mileage span em {
  background: var(--teal);
}

.vehicle-stats strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vehicle-stats .stat-real strong,
.vehicle-stats .stat-future strong {
  margin-top: 10px;
  font-size: 14px;
}

.vehicle-stats .stat-mileage strong {
  margin-top: 2px;
  font-size: 14px;
}

.mileage-edit {
  margin-top: 2px;
  justify-self: start;
  min-height: 21px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 9px;
}

.fleet-card-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 10px;
  align-items: stretch;
  margin-top: 14px;
}

.fleet-card-money {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 9px;
  border: 1px solid #d8e1eb;
  border-radius: 8px;
  background: #f8fafc;
}

.fleet-card-metric {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding-left: 8px;
  border-left: 3px solid #d7dee8;
}

.fleet-card-metric.metric-real {
  border-left-color: var(--green);
}

.fleet-card-metric.metric-future {
  border-left-color: var(--blue);
}

.fleet-card-metric span,
.fleet-mileage-action span {
  color: #667386;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
}

.fleet-card-metric strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fleet-card-metric.metric-real strong {
  color: var(--green);
}

.fleet-card-metric.metric-future strong {
  color: var(--blue);
}

.fleet-mileage-action {
  width: 100%;
  min-width: 0;
  padding: 9px;
  border: 1px solid #d8e1eb;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
}

.fleet-mileage-action strong {
  max-width: 100%;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fleet-mileage-action small {
  min-height: 21px;
  padding: 0 8px;
  border: 1px solid #cdd6e1;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: #f8fafc;
  font-size: 10px;
  font-weight: 900;
}

.mini-btn {
  justify-self: start;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mini-btn:hover:not(:disabled) {
  border-color: #c2ccda;
  background: #f8fafc;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.08);
}

.mini-btn.danger {
  color: #842029;
  border-color: #f0bebc;
  background: #fff0ef;
}

.mini-btn.danger:hover:not(:disabled) {
  border-color: #e79a97;
  background: #ffe8e6;
}

.mini-btn.success {
  color: #0f5132;
  border-color: #addfc0;
  background: #eef9f2;
}

.mini-btn.success:hover:not(:disabled) {
  border-color: #89cda2;
  background: #e3f7ea;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fb;
}

.bulk-toolbar[hidden] {
  display: none;
}

.danger-btn {
  min-height: 36px;
  border: 1px solid #f0bebc;
  border-radius: 8px;
  padding: 0 13px;
  color: #842029;
  background: #fff0ef;
  font-size: 13px;
  font-weight: 850;
}

.danger-btn:hover:not(:disabled) {
  border-color: #e79a97;
  background: #ffe8e6;
  box-shadow: 0 8px 18px rgba(196, 61, 68, 0.12);
}

.dialog-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.dialog-actions .primary-btn {
  flex: 1;
}

.transaction-dialog-actions {
  justify-content: stretch;
}

.transaction-dialog-actions .ghost-btn,
.transaction-dialog-actions .primary-btn {
  flex: 1;
}

.transaction-dialog-actions .ghost-btn[hidden] {
  display: none;
}

.vehicle-delete-btn[hidden] {
  display: none;
}

.dialog-note {
  margin-bottom: 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  background: #f7f9fb;
  font-size: 13px;
}

.check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 9px !important;
  color: var(--ink) !important;
  font-weight: 700;
}

.check-row input {
  width: auto !important;
  min-height: auto !important;
}

.vehicle-detail-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.vehicle-detail-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.detail-card {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f7f9fb;
}

.detail-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-card strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.detail-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.detail-real {
  border-color: #b7dfc8;
  background: #ecf8f0;
}

.detail-real strong {
  color: var(--green);
}

.detail-future {
  border-color: #b7d2ee;
  background: #eaf3ff;
}

.detail-future strong {
  color: var(--blue);
}

.detail-tolls {
  border-color: #d5c7ef;
  background: #f5f1ff;
}

.detail-tolls strong {
  color: #6f4dbf;
}

.detail-reimbursements {
  border-color: #b9e8ca;
  background: #effbf4;
}

.detail-reimbursements strong {
  color: #15935a;
}

.detail-expense {
  border-color: #f0bebc;
  background: #fff0ef;
}

.detail-expense strong {
  color: var(--red);
}

.filter-row {
  margin-bottom: 14px;
}

.ledger-filters {
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fb;
}

.ledger-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ledger-search-filter {
  flex: 1 1 260px;
}

.ledger-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.ledger-summary-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.ledger-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.ledger-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ledger-card-top em {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: currentColor;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.ledger-card span,
.ledger-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.ledger-card strong {
  display: block;
  margin: 6px 0;
  font-size: 22px;
}

.ledger-revenue {
  border-color: #b7dfc8;
  background: #ecf8f0;
}

.ledger-revenue strong {
  color: var(--green);
}

.ledger-future {
  border-color: #b7d2ee;
  background: #eaf3ff;
}

.ledger-future strong {
  color: var(--blue);
}

.ledger-expense {
  border-color: #f0bebc;
  background: #fff0ef;
}

.ledger-expense strong {
  color: var(--red);
}

.ledger-payment {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.ledger-payment strong {
  color: var(--ink);
}

.ledger-tolls {
  border-color: #d5c7ef;
  background: #f5f1ff;
}

.ledger-tolls strong {
  color: #6f4dbf;
}

.ledger-reimbursements {
  border-color: #b7dfc8;
  background: #ecf8f0;
}

.ledger-reimbursements strong {
  color: var(--green);
}

.ledger-payment-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.ledger-payment-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ledger-payment-head span,
.ledger-payment-head small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ledger-payment-head strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 15px;
}

.ledger-payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.ledger-account-card {
  padding: 12px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #fff;
}

.ledger-account-card span,
.ledger-account-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.ledger-account-card strong {
  display: block;
  margin: 5px 0 8px;
  color: var(--ink);
  font-size: 20px;
}

.ledger-account-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ledger-account-card small {
  padding: 4px 7px;
  border-radius: 999px;
  background: #edf2f7;
  font-weight: 800;
}

.transaction-filter-total {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.transaction-filter-total:empty {
  display: none;
}

.transaction-filter-total-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.transaction-filter-total-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.transaction-filter-total-head strong {
  color: var(--ink);
  font-size: 13px;
}

.transaction-filter-total-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
}

.transaction-total-card {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.transaction-total-card span,
.transaction-total-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.transaction-total-card strong {
  display: block;
  margin: 4px 0 3px;
  color: var(--ink);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.transaction-total-card.total-real {
  border-color: #cdebd8;
  background: #f4fbf7;
}

.transaction-total-card.total-real strong {
  color: var(--green);
}

.transaction-total-card.total-future {
  border-color: #cde0f5;
  background: #f4f8ff;
}

.transaction-total-card.total-future strong {
  color: var(--blue);
}

.transaction-total-card.total-reimbursements {
  border-color: #ded3f4;
  background: #faf7ff;
}

.transaction-total-card.total-reimbursements strong {
  color: #6f4dbf;
}

.transaction-total-card.total-expense {
  border-color: #f3d1cf;
  background: #fff8f7;
}

.transaction-total-card.total-expense strong {
  color: var(--red);
}

.type-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.chip-revenue {
  color: #0f5132;
  background: var(--soft-green);
}

.chip-future {
  color: #1f4e79;
  background: var(--soft-blue);
}

.chip-expense {
  color: #842029;
  background: var(--soft-red);
}

.imports-hub {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.imports-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.imports-head h3 {
  margin: 2px 0 0;
  font-size: 18px;
}

.imports-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.import-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fffd;
}

.import-copy h3 {
  margin: 4px 0;
  font-size: 17px;
}

.import-copy p {
  max-width: 560px;
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.45;
}

.panel-label-dark {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.import-actions {
  display: grid;
  align-content: start;
  gap: 8px;
}

.file-drop {
  min-width: 190px;
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 10px;
  border: 1px dashed #8db7b1;
  border-radius: 8px;
  color: var(--teal);
  background: #f8fffd;
  text-align: center;
  cursor: pointer;
}

.file-drop input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop span,
.import-status {
  color: var(--muted);
  font-size: 12px;
}

.import-status,
.import-review {
  grid-column: 1 / -1;
}

.import-status {
  min-height: 18px;
}

.import-review {
  border-top: 1px solid rgba(215, 222, 232, 0.85);
  padding-top: 8px;
}

.import-review summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.import-review summary::marker {
  color: var(--teal);
}

.import-results {
  max-height: 220px;
  margin-top: 8px;
  overflow: auto;
}

.import-history-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 14px;
  margin: -4px 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(215, 222, 232, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.import-history-panel p {
  margin: 4px 0 0;
  font-size: 13px;
}

.import-history-list {
  display: grid;
  gap: 8px;
}

.import-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(215, 222, 232, 0.75);
  padding-bottom: 8px;
}

.import-history-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.import-history-item strong,
.import-history-item span,
.import-history-item small {
  display: block;
}

.import-history-item strong {
  font-size: 13px;
}

.import-history-item span,
.import-history-item small {
  color: var(--muted);
  font-size: 12px;
}

.import-history-item small {
  flex: 0 0 auto;
  text-align: right;
}

.import-map-select {
  min-width: 240px;
  height: 36px;
  padding: 0 9px;
}

.import-map-select.compact-select {
  min-width: 130px;
}

.import-inline-input {
  width: 190px;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bank-import-panel {
  background: #f8fafc;
}

.bank-row-duplicate {
  background: #fff7ed;
}

.bank-row-skipped {
  opacity: .62;
  background: #f8fafc;
}

.bank-row-debit td:first-child {
  box-shadow: inset 3px 0 0 #ef4444;
}

.bank-row-credit td:first-child {
  box-shadow: inset 3px 0 0 #16a34a;
}

.bank-amount-pill {
  display: inline-grid;
  gap: 2px;
  min-width: 104px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.bank-amount-pill span {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.bank-amount-pill strong {
  font-size: 13px;
}

.bank-amount-pill.debit {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.bank-amount-pill.credit {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.bank-reconciliation {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.bank-reconciliation small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.wide-dialog {
  width: min(1320px, calc(100vw - 28px));
}

.bank-reconcile-form {
  max-height: min(88vh, 920px);
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
}

.bank-reconcile-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.bank-reconcile-toolbar .check-row {
  margin-right: auto;
}

.bank-reconcile-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(145px, .7fr));
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.bank-reconcile-filters label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.bank-reconcile-filters input,
.bank-reconcile-filters select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
}

.bank-reconcile-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bank-reconcile-summary span,
.bank-reconcile-summary strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bank-reconcile-list {
  display: grid;
  gap: 6px;
  max-height: 58vh;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.bank-reconcile-card {
  display: grid;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.bank-reconcile-card.is-debit {
  border-left: 5px solid #ef4444;
}

.bank-reconcile-card.is-credit {
  border-left: 5px solid #16a34a;
}

.bank-reconcile-card.is-duplicate {
  border-color: #fed7aa;
  background: #fffaf3;
}

.bank-reconcile-card.is-skipped {
  opacity: .62;
  background: #f8fafc;
}

.bank-reconcile-main {
  display: grid;
  grid-template-columns: 26px minmax(280px, 1.8fr) minmax(112px, .55fr) minmax(180px, .9fr) auto;
  gap: 8px;
  align-items: start;
}

.bank-card-check {
  display: grid;
  place-items: center;
  align-items: center;
  min-height: 34px;
}

.bank-card-info,
.bank-card-amount,
.bank-card-status {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.bank-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.bank-card-meta strong {
  color: var(--ink);
  font-size: 12px;
}

.bank-card-meta span:not(.status-pill) {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.bank-card-amount span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.bank-card-amount strong {
  color: var(--ink);
  font-size: 13px;
}

.bank-card-amount {
  align-self: stretch;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.bank-card-amount.negative {
  border-color: #fecaca;
  background: #fef2f2;
}

.bank-card-amount.positive {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.bank-card-amount.negative span,
.bank-card-amount.negative strong {
  color: #b91c1c;
}

.bank-card-amount.positive span,
.bank-card-amount.positive strong {
  color: #15803d;
}

.bank-card-status small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.bank-card-actions {
  justify-content: flex-end;
}

.bank-reconcile-description {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.bank-reconcile-fields {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(118px, .55fr) minmax(190px, .95fr) minmax(180px, .85fr);
  gap: 8px;
  padding-left: 34px;
}

.bank-reconcile-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.bank-reconcile-fields .import-map-select,
.bank-reconcile-fields .import-inline-input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
}

.bank-reconcile-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding-left: 34px;
}

@media (max-width: 980px) {
  .bank-reconcile-filters,
  .bank-reconcile-main,
  .bank-reconcile-fields {
    grid-template-columns: 1fr 1fr;
  }

  .bank-card-check {
    place-items: start;
  }

  .bank-card-info {
    grid-column: 2 / -1;
  }

  .bank-card-status,
  .bank-card-actions {
    grid-column: 1 / -1;
  }

  .bank-reconcile-fields,
  .bank-reconcile-foot {
    padding-left: 0;
  }

  .bank-card-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .bank-reconcile-filters,
  .bank-reconcile-main,
  .bank-reconcile-fields {
    grid-template-columns: 1fr;
  }

  .bank-card-info {
    grid-column: auto;
  }
}

.bank-import-check {
  width: 16px;
  height: 16px;
}

.primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.filter-row select {
  min-width: 180px;
  height: 42px;
  padding: 0 10px;
}

.filter-row input[type="date"] {
  min-width: 150px;
  height: 42px;
  padding: 0 10px;
}

.maint-card {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  box-shadow: none;
}

.maintenance-alert-grid {
  margin-bottom: 16px;
}

.maintenance-due-panel,
.maintenance-history-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.maintenance-due-list,
.maintenance-history-list {
  display: grid;
  gap: 10px;
}

.maintenance-due-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) minmax(104px, 0.55fr) minmax(104px, 0.55fr) minmax(230px, 0.9fr);
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: #fbfdff;
}

.maintenance-due-row.alert-ok {
  border-left-color: var(--green);
}

.maintenance-due-row.alert-soon {
  border-left-color: var(--amber);
  background: #fffaf0;
}

.maintenance-due-row.alert-late {
  border-left-color: var(--red);
  background: #fff7f7;
}

.maintenance-due-main strong,
.maintenance-due-main span,
.maintenance-mile-box span,
.maintenance-mile-box strong,
.maintenance-due-status small {
  display: block;
}

.maintenance-due-main strong {
  font-size: 14px;
}

.maintenance-due-main span,
.maintenance-mile-box span,
.maintenance-due-status small {
  color: var(--muted);
  font-size: 11px;
}

.maintenance-mile-box strong {
  margin-top: 3px;
  font-size: 14px;
}

.maintenance-due-status {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.maintenance-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.maintenance-row-actions {
  justify-content: end;
  gap: 5px;
}

.maintenance-due-status .maintenance-row-actions {
  justify-content: end;
  flex-wrap: wrap;
}

.maintenance-row-actions .mini-btn {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.maintenance-progress {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef3;
}

.maintenance-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.alert-soon .maintenance-progress span {
  background: var(--amber);
}

.alert-late .maintenance-progress span {
  background: var(--red);
}

.compact-maintenance-history {
  box-shadow: none;
}

.compact-maint-card {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  box-shadow: none;
}

.compact-maint-card p {
  grid-column: auto;
}

.investor-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.investor-portfolio-card {
  min-height: 118px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.investor-portfolio-card span,
.investor-portfolio-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.investor-portfolio-card strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1;
}

.portfolio-dark {
  color: #fff;
  background: linear-gradient(145deg, #202a3b, #2d3748);
  border-color: rgba(255, 255, 255, 0.16);
}

.portfolio-dark span,
.portfolio-dark small,
.portfolio-dark strong {
  color: #fff;
}

.portfolio-green {
  border-color: #b7dfc8;
  background: #ecf8f0;
}

.portfolio-green strong {
  color: var(--green);
}

.portfolio-blue {
  border-color: #b7d2ee;
  background: #eaf3ff;
}

.portfolio-blue strong {
  color: var(--blue);
}

.portfolio-red {
  border-color: #f0bebc;
  background: #fff0ef;
}

.portfolio-red strong {
  color: var(--red);
}

.portfolio-purple {
  border-color: #d5c7ef;
  background: #f5f1ff;
}

.portfolio-purple strong {
  color: #6f4dbf;
}

.investor-registry-panel {
  margin-bottom: 16px;
}

.investor-registry-list {
  display: grid;
  gap: 8px;
}

.investor-registry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.investor-registry-row strong,
.investor-registry-row span {
  display: block;
}

.investor-registry-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.mini-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.investor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.investor-card,
.empty-state {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.investor-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.investor-card-head span,
.investor-card-head small,
.investor-card-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.investor-card-head small {
  margin-top: 4px;
}

.investor-card-head strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.investor-card-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.investor-card-stats div {
  padding: 10px;
  border-radius: 8px;
  background: #f5f8fb;
}

.investor-card-stats strong {
  display: block;
  margin-top: 5px;
}

.investor-share-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.investor-share-box input {
  min-height: 32px;
  padding: 0 9px;
  color: var(--muted);
  background: #f7f9fb;
  font-size: 12px;
}

.investor-portal-head {
  min-height: 188px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 42%),
    #202a3b;
  box-shadow: 0 24px 70px rgba(12, 20, 34, 0.28);
  display: flex;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  position: relative;
}

.investor-portal-head::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -95px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.investor-portal-head img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--nav);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  z-index: 1;
}

.investor-portal-head > div {
  position: relative;
  z-index: 1;
}

.investor-portal-head .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.investor-portal-head h2 {
  color: #fff;
  font-size: 30px;
}

.investor-portal-head p {
  color: rgba(255, 255, 255, 0.78);
}

.investor-vehicle-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--nav);
}

.investor-vehicle-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.investor-vehicle-metrics div {
  min-height: 78px;
  padding: 10px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #f8fafc;
}

.investor-vehicle-metrics span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.investor-vehicle-metrics strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 18px;
}

.investor-revenue-panel {
  margin-bottom: 16px;
}

.investor-revenue-chart {
  display: grid;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.investor-revenue-row {
  display: grid;
  grid-template-columns: 86px minmax(120px, 1fr) minmax(110px, auto);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.investor-revenue-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.investor-revenue-row strong {
  justify-self: end;
  color: var(--green);
}

.investor-public-mode .investor-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 16px;
}

.investor-public-mode .investor-vehicle-card .vehicle-top {
  margin-bottom: 4px;
}

.investor-public-mode .investor-vehicle-card h2 {
  font-size: 20px;
}

.investor-public-mode .investor-vehicle-card > p {
  margin-bottom: 14px;
}

.investor-public-mode .investor-vehicle-card .vehicle-stats {
  gap: 10px;
}

.investor-public-mode .investor-vehicle-card .fleet-stat {
  background: #f8fafc;
}

.investor-public-mode .investor-vehicle-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.investor-public-mode .investor-revenue-chart .empty-state {
  min-height: 74px;
  display: grid;
  align-items: center;
  color: #536178;
  background: #f8fafc;
  border-style: dashed;
  box-shadow: none;
}

.investor-public-mode #investorPortal > .panel {
  margin-top: 16px;
}

.empty-state {
  color: var(--muted);
}

.maint-card.maintenance-ok {
  border-left: 4px solid var(--green);
}

.maint-card.maintenance-soon {
  border-left: 4px solid var(--amber);
}

.maint-card.maintenance-late {
  border-left: 4px solid var(--red);
}

.maint-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.mile-card strong {
  display: block;
  margin: 6px 0;
  font-size: 26px;
}

.mileage-latest-card {
  display: grid;
  gap: 10px;
  min-height: 156px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 253, 0.88)),
    #fff;
}

.mileage-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mileage-latest-card strong {
  margin: 0;
  color: #1f2937;
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1;
}

.mileage-latest-card p {
  margin: 0;
  color: #41516a;
  font-weight: 800;
}

.mileage-latest-card small {
  color: #64748b;
  line-height: 1.35;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #dce6f2;
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.timeline-item strong,
.timeline-item p,
.timeline-item small {
  display: block;
}

.timeline-item p {
  margin: 4px 0 2px;
}

.timeline-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}

dialog {
  width: min(540px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 30px 90px rgba(23, 33, 43, 0.28);
}

dialog::backdrop {
  background: rgba(14, 25, 34, 0.5);
}

.dialog-form {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-head h2 {
  margin: 0;
}

.dialog-head button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #eef3f7;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.dialog-head button:hover:not(:disabled) {
  background: #e2e9f1;
}

.dialog-form label {
  display: grid;
  gap: 6px;
  color: #435468;
  font-size: 13px;
  font-weight: 700;
}

.dialog-form label[hidden] {
  display: none;
}

.dialog-form input,
.dialog-form select,
.dialog-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
}

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

@media (max-width: 1120px) {
  .hero-grid,
  .dashboard-top-grid,
  .content-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .fleet-visual {
    min-height: 230px;
  }

  .tolls-summary-grid,
  .tolls-command-head,
  .tolls-command-grid,
  .tolls-workflow-map {
    grid-template-columns: 1fr;
  }

  .tolls-import-grid,
  .tolls-reconcile-summary,
  .tolls-period-kpis,
  .tolls-param-grid,
  .manual-review-filters,
  .manual-resolve-panel > div,
  .billing-filter-grid,
  .billing-kpis {
    grid-template-columns: 1fr;
  }

  .manual-review-row,
  .billing-trip-row {
    grid-template-columns: 1fr;
  }

  .manual-review-plate-group > summary,
  .manual-review-date-group header {
    grid-template-columns: 1fr;
  }

  .manual-review-actions,
  .billing-trip-row div div {
    justify-content: flex-start;
  }

  .manual-review-assignment {
    grid-template-columns: 1fr;
  }

  .tolls-period-tools {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .tolls-command-tabs {
    justify-content: flex-start;
  }

  .tolls-history-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tolls-history-totals article:nth-child(2) {
    border-right: 0;
  }

  .tolls-history-totals article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .tolls-import-layout {
    grid-template-columns: 1fr;
  }

  .tolls-import-actions,
  .tolls-toolbar {
    justify-content: flex-start;
  }

}

@media (max-width: 960px) {
  .sidebar {
    width: 220px;
    padding: 18px 12px;
  }

  .app-shell {
    margin-left: 220px;
    padding: 18px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .nav-item {
    padding: 10px;
  }
}

@media (max-width: 820px) {
  .sidebar {
    position: static;
    width: auto;
    min-height: auto;
    border-radius: 0;
    gap: 14px;
    padding: 14px;
  }

  .brand {
    padding-bottom: 12px;
  }

  .nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-spacer {
    display: none;
  }

  .nav-admin {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .nav-item {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
    padding: 10px 12px;
  }

  .nav-item.active {
    box-shadow: inset 0 -3px 0 #fff;
  }

  .logout-nav:hover {
    box-shadow: inset 0 -3px 0 #ff7373;
  }

  .sidebar-panel {
    margin-top: 0;
    padding: 12px;
  }

  .app-shell {
    margin-left: 0;
    padding: 16px;
  }

  .notification-center {
    order: 2;
    width: 100%;
    margin-top: 0;
  }

  .notification-bell {
    max-width: 260px;
  }

  .notification-popover {
    top: calc(100% + 8px);
    left: 0;
    width: min(420px, calc(100vw - 28px));
    max-height: min(480px, calc(100vh - 96px));
  }

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

  .notification-actions {
    justify-content: flex-start;
  }

  .topbar,
  .section-head,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar,
  .action-row {
    width: 100%;
  }

  .search {
    min-width: 100%;
  }

  .toolbar .ghost-btn,
  .toolbar .primary-btn,
  .action-row button {
    flex: 1 1 160px;
  }

  .hero-grid,
  .dashboard-top-grid,
  .metric-grid,
  .overview-strip,
  .overview-activity,
  .investor-summary,
  .vehicle-detail-summary,
  .settings-grid,
  .dialog-grid {
    grid-template-columns: 1fr;
  }

  .fleet-visual {
    min-height: 320px;
  }

  .visual-copy {
    inset: 16px;
  }

  .visual-copy strong {
    font-size: 34px;
  }

  .visual-kpis {
    grid-template-columns: 1fr;
  }

  .fleet-visual::after {
    right: 18px;
    top: 24px;
    width: 118px;
    height: 76px;
  }

  .imports-grid,
  .import-panel {
    grid-template-columns: 1fr;
  }

  .imports-head {
    align-items: start;
    flex-direction: column;
  }

  .import-history-panel,
  .import-history-item {
    grid-template-columns: 1fr;
  }

  .import-history-panel,
  .import-history-item {
    display: grid;
  }

  .import-history-item small {
    text-align: left;
  }

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

  .filter-row label,
  .filter-row select,
  .filter-row input[type="date"] {
    width: 100%;
    min-width: 0;
  }

  .maintenance-due-row {
    grid-template-columns: 1fr 1fr;
  }

  .maintenance-due-main,
  .maintenance-due-status,
  .maintenance-progress {
    grid-column: 1 / -1;
  }

  .maintenance-due-status {
    justify-items: start;
    text-align: left;
  }

  .compact-maint-card {
    grid-template-columns: 1fr;
  }

  .maintenance-actions,
  .maintenance-row-actions,
  .maintenance-due-status .maintenance-row-actions {
    justify-items: start;
    justify-content: start;
  }

  h1 {
    font-size: 25px;
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding: 12px;
  }

  .topbar {
    margin-bottom: 14px;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 16px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand span {
    font-size: 11px;
  }

  .login-card {
    padding: 22px;
  }

  .user-row {
    align-items: stretch;
    flex-direction: column;
  }

  .fleet-visual {
    min-height: 330px;
  }

  .visual-copy h2 {
    max-width: 190px;
    font-size: 16px;
  }

  .visual-copy strong {
    font-size: 30px;
  }

  .visual-kpis {
    grid-template-columns: 1fr;
  }

  .visual-kpis div {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .visual-kpis strong {
    margin: 0;
    font-size: 15px;
  }

  .metric-card:last-child {
    grid-column: auto;
  }

  .metric-card strong,
  .overview-card strong,
  .ledger-card strong {
    font-size: 22px;
  }

  .vehicle-stats,
  .investor-card-stats,
  .investor-vehicle-metrics,
  .investor-public-mode .investor-vehicle-metrics {
    grid-template-columns: 1fr;
  }

  .fleet-card-metrics {
    grid-template-columns: 1fr;
  }

  .fleet-mileage-action {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .fleet-mileage-action small {
    grid-row: 1 / 3;
    grid-column: 2;
  }

  .investor-share-box {
    grid-template-columns: 1fr;
  }

  .investor-portal-head {
    align-items: flex-start;
    min-height: auto;
    padding: 20px;
    flex-direction: column;
  }

  .investor-portal-head img {
    width: 64px;
    height: 64px;
  }

  .investor-portal-head h2 {
    font-size: 23px;
  }

  .investor-public-mode .app-shell {
    padding: 16px 12px 32px;
    background: linear-gradient(180deg, #202a3b 0, #202a3b 230px, #eef2f6 230px);
  }

  .investor-public-mode .investor-summary {
    margin-top: -20px;
  }

  .investor-revenue-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .investor-revenue-row strong {
    justify-self: start;
  }

  .investor-registry-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .maintenance-due-panel,
  .maintenance-history-panel {
    padding: 14px;
  }

  .maintenance-due-row {
    grid-template-columns: 1fr;
  }

  .panel,
  .vehicle-card,
  .maint-card,
  .mile-card,
  .ledger-card,
  .overview-card,
  .maintenance-alert,
  .investor-card {
    padding: 14px;
  }

  .earnings-chart-card {
    min-width: 660px;
  }

  .earnings-chart-head strong {
    font-size: 22px;
  }

  .earnings-bars {
    gap: 10px;
  }

  table {
    min-width: 680px;
    font-size: 13px;
  }

  th,
  td {
    padding: 10px 8px;
  }

  dialog {
    width: calc(100vw - 20px);
  }

  .dialog-form {
    padding: 14px;
  }
}

/* Clean UX refresh */
body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(243, 246, 250, 0) 260px),
    var(--canvas);
  color: var(--ink);
}

.sidebar {
  width: 248px;
  padding: 20px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 26%),
    linear-gradient(180deg, #1d2738 0%, #151e2d 100%);
  box-shadow: 10px 0 34px rgba(15, 23, 42, .08);
}

.app-shell {
  margin-left: 248px;
  padding: 22px;
}

.brand {
  padding: 2px 5px 16px;
}

.brand-logo {
  width: 52px;
  height: 52px;
}

.nav {
  gap: 5px;
}

.nav-item {
  min-height: 42px;
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  font-size: 14px;
  font-weight: 760;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, .105);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, .9);
}

.topbar {
  min-height: 64px;
  margin-bottom: 18px;
}

h1 {
  font-size: 28px;
  line-height: 1.12;
}

h2 {
  font-size: 17px;
  line-height: 1.25;
}

p {
  line-height: 1.45;
}

.search,
.filter-row,
.bank-reconcile-toolbar,
.bank-reconcile-filters {
  box-shadow: 0 8px 24px rgba(31, 42, 60, .035);
}

.search,
input,
select,
textarea,
.dialog-form input,
.dialog-form select,
.dialog-form textarea {
  border-color: #d8e1ed;
  border-radius: var(--radius-sm);
}

input:focus,
select:focus,
textarea:focus,
.dialog-form input:focus,
.dialog-form select:focus,
.dialog-form textarea:focus {
  border-color: #8fb4dd;
  outline: 3px solid rgba(47, 111, 173, .14);
}

.primary-btn,
.ghost-btn,
.danger-btn,
.expense-btn,
.mini-btn {
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.primary-btn,
.ghost-btn,
.danger-btn,
.expense-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.mini-btn {
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
}

button:hover:not(:disabled) {
  transform: none;
}

.primary-btn:hover:not(:disabled),
.ghost-btn:hover:not(:disabled),
.danger-btn:hover:not(:disabled),
.mini-btn:hover:not(:disabled) {
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.metric-card,
.panel,
.vehicle-card,
.maint-card,
.mile-card,
.overview-card,
.ledger-card,
.investor-card,
.import-panel,
.import-history-panel,
.maintenance-alert,
.settings-session,
.user-row {
  border-color: #dfe7f1;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(31, 42, 60, .055);
}

.panel,
.import-panel {
  background: rgba(255, 255, 255, .96);
}

.metric-card,
.overview-card,
.ledger-card {
  min-height: 106px;
  padding: 14px;
}

.metric-card strong,
.overview-card strong,
.ledger-card strong {
  letter-spacing: 0;
}

.panel-head,
.section-head {
  gap: 12px;
  margin-bottom: 12px;
}

.panel-head p,
.section-head p {
  margin-bottom: 0;
  font-size: 13px;
}

.table-wrap {
  border-color: #dfe7f1;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(31, 42, 60, .045);
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  color: #42526a;
  background: #f3f7fb;
  font-size: 11px;
  letter-spacing: 0;
}

td,
th {
  border-bottom-color: #e2e9f2;
}

tbody tr:hover {
  background: #f8fbff;
}

.type-chip,
.status-pill,
.metric-card em,
.ledger-card-top em {
  border-radius: 999px;
}

dialog {
  border-radius: 12px;
}

.dialog-form {
  border-radius: 12px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .22);
}

.dialog-head {
  padding-bottom: 4px;
}

.dialog-head button {
  border-radius: var(--radius-sm);
}

.vehicle-card {
  padding: 16px;
}

.fleet-card-metrics {
  gap: 8px;
}

.fleet-card-metric,
.fleet-mileage-action {
  border-radius: var(--radius-sm);
}

.bank-reconcile-toolbar,
.bank-reconcile-filters,
.bank-reconcile-list,
.bank-reconcile-card {
  border-radius: var(--radius);
}

.bank-reconcile-card {
  box-shadow: 0 8px 18px rgba(31, 42, 60, .045);
}

.bank-reconcile-summary span,
.bank-reconcile-summary strong {
  min-height: 28px;
  border-radius: var(--radius-sm);
  font-size: 11px;
}

@media (max-width: 900px) {
  .app-shell {
    margin-left: 0;
    padding: 16px;
  }
}

/* Interior UX refresh */
:root {
  --canvas: #eef3f8;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --line: #d9e2ee;
  --ink: #1f2937;
  --muted: #627086;
  --nav: #172132;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 14px 34px rgba(23, 33, 50, 0.075);
  --shadow-card: 0 10px 26px rgba(23, 33, 50, 0.06);
}

body {
  background:
    radial-gradient(circle at 18% -8%, rgba(47, 111, 173, 0.10), transparent 30%),
    linear-gradient(180deg, #f7fafc 0%, #eef3f8 42%, #e9eff5 100%);
}

.sidebar {
  width: 260px;
  padding: 18px 14px;
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 255, 255, 0.13), transparent 28%),
    linear-gradient(180deg, #202b3c 0%, #151f2e 100%);
  box-shadow: 12px 0 40px rgba(15, 23, 42, 0.10);
}

.app-shell {
  margin-left: 260px;
  padding: 24px;
}

.brand {
  min-height: 74px;
  padding: 8px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.brand strong {
  font-size: 14px;
}

.brand span,
.sidebar-panel small,
.sidebar-panel .panel-label {
  color: rgba(255, 255, 255, 0.62);
}

.nav {
  gap: 6px;
}

.nav-item {
  min-height: 40px;
  border-radius: 12px;
  padding: 9px 11px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  letter-spacing: 0;
}

.nav-item .icon {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.10);
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 3px 0 0 #ffffff, 0 10px 24px rgba(0, 0, 0, 0.10);
}

.logout-nav {
  color: #fecaca;
}

.logout-nav .icon {
  background: rgba(220, 38, 38, 0.22);
}

.sidebar-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 16px 34px rgba(0, 0, 0, 0.12);
}

.sidebar-panel strong {
  margin: 7px 0 12px;
  color: #fff;
  font-size: 22px;
  line-height: 1.08;
}

.sidebar-panel .panel-label {
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
}

.sidebar-mini-kpis {
  gap: 0;
  margin: 4px 0 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.sidebar-mini-kpis div {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  background: transparent;
}

.sidebar-mini-kpis div:first-child {
  border-top: 0;
}

.sidebar-mini-kpis span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.sidebar-mini-kpis strong {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1;
}

.sidebar-panel small {
  padding-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.topbar {
  align-items: flex-start;
  gap: 18px;
  min-height: 56px;
  margin-bottom: 22px;
}

.eyebrow {
  margin-bottom: 6px;
  color: #243449;
  font-size: 11px;
}

h1 {
  color: #1f2937;
  font-size: clamp(27px, 2.5vw, 36px);
  line-height: 1.05;
}

h2 {
  color: #202b3c;
}

.toolbar {
  gap: 10px;
}

.search {
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
}

.search input {
  font-size: 13px;
}

.primary-btn,
.ghost-btn,
.danger-btn,
.expense-btn {
  min-height: 36px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 850;
}

.primary-btn {
  background: #1f2937;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.88);
}

.danger-btn,
.expense-btn {
  background: #c7444a;
}

.mini-btn {
  min-height: 29px;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 11px;
}

.view {
  animation: viewFadeIn 0.22s ease;
}

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

.section-head,
.panel-head {
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.section-head p,
.panel-head p {
  color: var(--muted);
  font-size: 14px;
}

.dashboard-layout,
.dashboard-grid,
.metric-grid,
.dashboard-metrics,
.fleet-grid,
.investor-grid,
.overview-strip {
  gap: 14px;
}

.panel,
.vehicle-card,
.metric-card,
.overview-card,
.ledger-card,
.maint-card,
.mile-card,
.investor-card,
.import-panel,
.import-history-panel,
.settings-session,
.user-row,
.maintenance-alert,
.vehicle-detail-panel {
  border: 1px solid rgba(217, 226, 238, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.panel {
  padding: 18px;
}

.metric-card,
.overview-card,
.ledger-card {
  min-height: 118px;
  padding: 16px;
  overflow: hidden;
  background-clip: padding-box;
  backdrop-filter: blur(16px) saturate(124%);
}

.metric-card::after,
.overview-card::after,
.ledger-card::after {
  content: "";
  position: absolute;
  right: -26px;
  top: -34px;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 46%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.74), transparent 30%);
  pointer-events: none;
}

.metric-card > * {
  position: relative;
  z-index: 1;
}

.metric-card strong,
.overview-card strong,
.ledger-card strong {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
}

.metric-card small,
.overview-card small,
.ledger-card small {
  color: #5d6c82;
  line-height: 1.35;
}

.metric-card em,
.ledger-card-top em {
  height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  font-size: 10px;
}

.metric-card.trip,
.metric-card.positive {
  background:
    linear-gradient(145deg, rgba(108, 73, 255, 0.13), rgba(255, 255, 255, 0.84) 50%, rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.62);
  border-color: rgba(108, 73, 255, 0.32);
}

.metric-card.upcoming,
.metric-card.info {
  background:
    linear-gradient(145deg, rgba(84, 137, 217, 0.13), rgba(255, 255, 255, 0.84) 50%, rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.62);
  border-color: rgba(84, 137, 217, 0.30);
}

.metric-card.reimbursements,
.metric-card.tolls {
  background:
    linear-gradient(145deg, rgba(38, 167, 97, 0.13), rgba(255, 255, 255, 0.84) 50%, rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.62);
  border-color: rgba(38, 167, 97, 0.30);
}

.metric-card.negative {
  background:
    linear-gradient(145deg, rgba(205, 63, 67, 0.13), rgba(255, 255, 255, 0.84) 50%, rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.62);
  border-color: rgba(205, 63, 67, 0.30);
}

.overview-dark {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.14), transparent 32%),
    linear-gradient(145deg, #202b3c 0%, #172132 100%);
}

.earnings-chart-card {
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.table-wrap {
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

table {
  font-size: 13px;
}

thead th {
  height: 42px;
  color: #526176;
  background: #f5f8fb;
  font-size: 10px;
}

td,
th {
  padding: 12px 13px;
}

tbody tr {
  transition: background 0.16s ease;
}

tbody tr:hover {
  background: #f7fbff;
}

.type-chip,
.status-pill {
  min-height: 24px;
  padding: 0 10px;
  font-size: 10px;
}

.filter-row,
.bulk-toolbar,
.bank-reconcile-toolbar,
.bank-reconcile-filters {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
}

input,
select,
textarea,
.dialog-form input,
.dialog-form select,
.dialog-form textarea {
  min-height: 42px;
  border-radius: 12px;
  background: #fff;
}

.vehicle-card {
  padding: 18px;
}

.fleet-card-header {
  gap: 14px;
}

.plate {
  border-radius: 10px;
  background: #f8fafc;
}

.fleet-card-metrics {
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
}

.fleet-card-money {
  min-width: 0;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #f8fafc;
}

.fleet-card-metric,
.fleet-mileage-action {
  min-height: 74px;
  border-radius: 0;
  padding: 12px;
  background: #f8fafc;
}

.fleet-card-metric {
  border-left-width: 3px;
  border-right: 1px solid #e1e8f1;
}

.fleet-card-money .fleet-card-metric:last-child {
  border-right: 0;
}

.fleet-mileage-action {
  border-radius: 14px;
}

.fleet-card-metric strong,
.fleet-mileage-action strong {
  max-width: 100%;
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fleet-card-metric span,
.fleet-mileage-action span {
  font-size: 10px;
  line-height: 1.15;
}

.bank-reconcile-card {
  border-radius: 16px;
}

.bank-reconcile-main {
  gap: 12px;
}

.bank-reconcile-description {
  font-size: 12px;
  line-height: 1.35;
}

dialog {
  border-radius: 18px;
}

.dialog-form {
  border-radius: 18px;
}

@media (max-width: 1100px) {
  .sidebar {
    width: 232px;
  }

  .app-shell {
    margin-left: 232px;
    padding: 18px;
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: 100%;
  }

  .app-shell {
    margin-left: 0;
    padding: 16px;
  }

  .topbar {
    align-items: stretch;
  }

  .toolbar {
    width: 100%;
  }

  .search {
    width: 100%;
  }
}

/* Typography polish: keep headings bold, soften everything else. */
body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

h1,
h2,
h3,
h4,
.section-head h2,
.panel-head h2,
.dialog-head h2,
.sidebar-title strong,
.login-copy h1,
.vehicle-card h3,
.fleet-card-title,
.metric-card strong,
.overview-card strong,
.visual-card strong,
.workflow-step-heading strong,
.trip-billing-header h3,
.billing-head h2,
.manual-review-head h2,
.epass-import-head h2,
.turo-import-title h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
}

p,
small,
td,
th,
label,
.section-head p,
.panel-head p,
.metric-card small,
.overview-card small,
.vehicle-card p,
.fleet-card-subtitle,
.workflow-step-heading small,
.tolls-period-card small,
.tolls-loader-card small,
.import-status,
.manual-review-row p,
.billing-trip-row p,
.trip-billing-row span {
  font-weight: var(--weight-regular);
}

.panel-label-dark,
.eyebrow,
.metric-top span,
.metric-top em,
.pill,
.status-pill,
.tag-pill,
.mini-btn,
.primary-btn,
.ghost-btn,
.danger-btn,
.expense-btn,
.nav-item,
.sidebar-title strong,
.tolls-workflow-map span,
.tolls-workflow-map small,
.tolls-period-card span,
.turo-history-row span,
.tolls-import-history-panel > span,
.table-wrap th,
.billing-kpis span,
.tolls-analysis-kpis span,
.manual-review-list h3,
.tolls-command-grid h3 {
  font-weight: var(--weight-semibold);
}

.primary-btn,
.ghost-btn,
.danger-btn,
.expense-btn {
  font-weight: var(--weight-semibold);
}

.table-wrap td,
.table-wrap select,
.table-wrap input,
.dialog-form input,
.dialog-form select,
.dialog-form textarea {
  font-weight: var(--weight-regular);
}

strong,
b {
  font-weight: var(--weight-semibold);
}

h1 strong,
h2 strong,
h3 strong,
.metric-card strong,
.overview-card strong,
.visual-card strong,
.fleet-card-metric strong,
.tolls-period-card strong,
.billing-kpis strong,
.tolls-analysis-kpis strong,
.tolls-reconcile-kpi strong,
.workflow-step-heading strong,
.trip-billing-header h3,
.billing-head h2,
.manual-review-head h2,
.epass-import-head h2,
.turo-import-title h2 {
  font-weight: var(--weight-bold);
}

.metric-card strong,
.overview-card strong,
.ledger-card strong,
.visual-card strong,
.visual-kpis strong,
.sidebar-mini-kpis strong,
.fleet-card-metric strong,
.fleet-mileage-action strong,
.dre-money,
.transaction-total-card strong,
.transaction-filter-total-head strong,
.tolls-period-card strong,
.tolls-history-totals strong,
.tolls-analysis-kpis strong,
.tolls-reconcile-kpi strong,
.billing-kpis strong,
.bank-reconcile-summary strong,
.bank-amount-pill,
.bank-card-amount,
.investor-revenue-row strong,
.investor-vehicle-metrics strong,
.earnings-chart-head strong,
.toll-amount-flow,
.money,
.amount,
.revenue,
.profit,
.loss {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-weight: var(--weight-bold);
  letter-spacing: 0;
}

.table-wrap td,
.table-wrap th,
.transaction-table td,
.transaction-table th,
.tolls-preview-table td,
.tolls-preview-table th {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.table-wrap td strong,
.table-wrap td b,
.transaction-table td strong,
.transaction-table td b,
.tolls-preview-table td strong,
.tolls-preview-table td b {
  font-weight: var(--weight-bold);
}

/* Keep both Tolls import steps visually aligned. */
#tollsStep2Epass.epass-import-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(145deg, #111827, #0b1119);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

#tollsStep2Epass .workflow-step-heading {
  border-color: rgba(245, 211, 111, 0.25);
  background: rgba(255, 255, 255, 0.045);
}

#tollsStep2Epass .workflow-step-heading strong {
  color: #f8fafc;
}

#tollsStep2Epass .workflow-step-heading small {
  color: rgba(248, 250, 252, 0.5);
}

#tollsStep2Epass .turo-import-shell {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
}

#tollsStep2Epass .epass-import-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

#tollsStep2Epass .epass-import-head h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 16px;
  line-height: 1.15;
}

#tollsStep2Epass .epass-import-head p {
  margin: 3px 0 0;
  color: rgba(248, 250, 252, 0.45);
  font-size: 12px;
}

#tollsStep2Epass .epass-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

#tollsStep2Epass .epass-type-card {
  display: grid;
  gap: 6px;
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
  cursor: pointer;
}

#tollsStep2Epass .epass-type-card span {
  color: rgba(248, 250, 252, 0.55);
}

#tollsStep2Epass .epass-type-card.is-active {
  border-color: rgba(245, 211, 111, 0.54);
  color: #f5d36f;
  background: rgba(245, 211, 111, 0.12);
}

#tollsStep2Epass .epass-dropzone {
  display: grid;
  min-height: 118px;
  place-items: center;
  gap: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 18px 16px;
  color: #f8fafc;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.015);
  box-shadow: none;
}

#tollsStep2Epass .epass-dropzone:hover,
#tollsStep2Epass .epass-dropzone.is-dragging {
  border-color: rgba(245, 211, 111, 0.5);
  background: rgba(245, 211, 111, 0.06);
}

#tollsStep2Epass .epass-upload-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(245, 211, 111, 0.34);
  border-radius: 9px;
  color: #f5d36f;
  background: rgba(245, 211, 111, 0.12);
  font-size: 22px;
  line-height: 1;
}

#tollsStep2Epass .epass-dropzone strong {
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.25;
}

#tollsStep2Epass .epass-dropzone small {
  color: rgba(248, 250, 252, 0.35);
  font-size: 11px;
}

#tollsStep2Epass .epass-dropzone em {
  color: rgba(245, 211, 111, 0.86);
  font-size: 11px;
  font-style: normal;
}

#tollsStep2Epass .epass-process-btn {
  width: 100%;
  margin-top: 10px;
}

#tollsStep1Turo.turo-import-card,
#tollsStep2Epass.epass-import-card {
  border-color: rgba(245, 211, 111, 0.16);
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 86% 0%, rgba(245, 211, 111, 0.11), transparent 30%),
    linear-gradient(145deg, #182232, #0b1119);
}

#tollsStep1Turo .workflow-step-heading,
#tollsStep2Epass .workflow-step-heading {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  border-color: rgba(245, 211, 111, 0.24);
  border-radius: 14px;
  padding: 12px 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
}

#tollsStep1Turo .workflow-step-heading span,
#tollsStep2Epass .workflow-step-heading span {
  min-width: 76px;
  min-height: 34px;
  color: #7a5d0b;
  background: linear-gradient(135deg, #fff3be, #f5d36f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

#tollsStep1Turo .workflow-step-heading strong,
#tollsStep2Epass .workflow-step-heading strong {
  color: #f8fafc;
  font-size: 18px;
  letter-spacing: 0;
}

#tollsStep1Turo .workflow-step-heading small,
#tollsStep2Epass .workflow-step-heading small {
  color: rgba(226, 232, 240, 0.62);
  font-size: 12px;
}

#tollsStep1Turo .turo-import-eyebrow,
#tollsStep2Epass .turo-import-eyebrow {
  margin: 14px 0 10px;
  color: #f5d36f;
  letter-spacing: 0.12em;
}

#tollsStep1Turo .turo-import-shell,
#tollsStep2Epass .turo-import-shell {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

#tollsStep1Turo .turo-import-title,
#tollsStep2Epass .epass-import-head {
  margin-bottom: 14px;
}

#tollsStep1Turo .turo-import-title h2,
#tollsStep2Epass .epass-import-head h2 {
  font-size: 17px;
}

#tollsStep1Turo .turo-import-title p,
#tollsStep2Epass .epass-import-head p {
  max-width: 680px;
  color: rgba(226, 232, 240, 0.62);
  font-size: 12px;
}

#tollsStep1Turo .turo-import-icon,
#tollsStep2Epass .turo-import-icon {
  border-color: rgba(245, 211, 111, 0.32);
  background: rgba(245, 211, 111, 0.13);
  box-shadow: inset 0 1px 0 rgba(245, 211, 111, 0.12);
}

#tollsStep1Turo .turo-import-drop,
#tollsStep2Epass .epass-dropzone {
  min-height: 132px;
  border-color: rgba(226, 232, 240, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 211, 111, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.02);
}

#tollsStep1Turo .turo-import-drop:hover,
#tollsStep1Turo .turo-import-drop.is-dragging,
#tollsStep2Epass .epass-dropzone:hover,
#tollsStep2Epass .epass-dropzone.is-dragging {
  border-color: rgba(16, 185, 129, 0.56);
  background: rgba(16, 185, 129, 0.07);
}

#tollsStep1Turo .turo-upload-icon,
#tollsStep2Epass .epass-upload-icon {
  color: rgba(226, 232, 240, 0.76);
}

#tollsStep1Turo .turo-import-drop strong,
#tollsStep2Epass .epass-dropzone strong {
  color: #f8fafc;
  font-size: 14px;
}

#tollsStep1Turo .turo-import-drop small,
#tollsStep2Epass .epass-dropzone small {
  color: rgba(226, 232, 240, 0.55);
}

#tollsStep1Turo .turo-import-submit,
#tollsStep2Epass .epass-process-btn {
  min-height: 42px;
  border: 1px solid rgba(16, 185, 129, 0.38);
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #16a05d, #0f7a45);
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.18);
}

#tollsStep1Turo .turo-import-submit:disabled,
#tollsStep2Epass .epass-process-btn:disabled {
  border-color: rgba(16, 185, 129, 0.22);
  color: rgba(255, 255, 255, 0.48);
  background: linear-gradient(135deg, rgba(22, 160, 93, 0.52), rgba(15, 122, 69, 0.42));
  box-shadow: none;
}

/* Tolls command center readability pass. */
#tolls .tolls-command-center {
  gap: 14px;
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.86)),
    rgba(255, 255, 255, 0.9);
}

#tolls .tolls-command-head {
  min-height: 104px;
  align-items: center;
  border-color: rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 20px;
  background:
    radial-gradient(circle at 92% 18%, rgba(245, 211, 111, 0.18), transparent 30%),
    linear-gradient(135deg, #243044 0%, #1b2433 54%, #151c28 100%);
}

#tolls .tolls-command-head .panel-label-dark {
  color: #f5d36f;
  font-size: 11px;
  letter-spacing: 0.08em;
}

#tolls .tolls-command-head h2 {
  margin: 6px 0 4px;
  color: #f8fafc;
  font-size: clamp(25px, 2vw, 32px);
  line-height: 1.05;
}

#tolls .tolls-command-head p {
  color: rgba(226, 232, 240, 0.78);
  font-size: 13px;
}

#tolls .tolls-period-kpis {
  gap: 12px;
}

#tolls .tolls-period-card {
  min-height: 104px;
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
}

#tolls .tolls-period-card span {
  color: #657287;
  font-size: 11px;
  letter-spacing: 0.01em;
}

#tolls .tolls-period-card strong {
  margin-top: 8px;
  color: #172033;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1;
}

#tolls .tolls-period-card small {
  margin-top: 8px;
  color: #6b778a;
  font-size: 11px;
}

#tolls .tolls-workflow-map {
  gap: 8px;
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.82);
}

#tolls .tolls-workflow-map button {
  flex-basis: 180px;
  min-height: 60px;
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.74);
}

#tolls .tolls-workflow-map button.is-active {
  background:
    radial-gradient(circle at 96% 0%, rgba(245, 211, 111, 0.18), transparent 42%),
    linear-gradient(135deg, #1f2937, #121a27);
}

#tolls .tolls-workflow-map span {
  font-size: 12px;
}

#tolls .tolls-workflow-map small {
  font-size: 10px;
}

#tolls .tolls-period-tools {
  max-width: 660px;
}

/* Final report modal override: keep Trip report readable and light. */
body .trip-billing-report-dialog {
  width: min(1080px, calc(100vw - 28px));
}

body .trip-billing-report-card {
  display: grid;
  gap: 14px;
  max-height: min(86vh, 820px);
  overflow: hidden;
  border: 1px solid rgba(117, 142, 171, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(245, 211, 111, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff, #f7fafc);
  color: #172033;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.28);
}

body .trip-billing-report-card .dialog-head h3 {
  color: #172033;
}

body .trip-billing-report-card .panel-label-dark {
  color: #7a5d0b;
}

body .trip-billing-report-card .trip-billing-list {
  min-height: 0;
  overflow: auto;
}

body .trip-billing-report-card .trip-billing-card,
body .trip-billing-report-card .trip-billing-row {
  background: #fff;
}

body .trip-billing-report-card .trip-billing-header,
body .trip-billing-report-card .trip-billing-day,
body .trip-billing-report-card .trip-billing-row {
  border-color: rgba(117, 142, 171, 0.18);
}

body .trip-billing-report-card .trip-billing-header h3,
body .trip-billing-report-card .trip-billing-header h3 a,
body .trip-billing-report-card .trip-billing-row strong {
  color: #172033;
}

body .trip-billing-report-card .trip-billing-header p,
body .trip-billing-report-card .trip-billing-header small,
body .trip-billing-report-card .trip-billing-row span,
body .trip-billing-report-card .trip-billing-row small,
body .trip-billing-report-card .trip-billing-day summary small {
  color: #5e6d83;
}

body .trip-billing-report-card .trip-billing-day summary {
  color: #172033;
  background:
    linear-gradient(90deg, rgba(245, 211, 111, 0.1), rgba(248, 250, 252, 0.85));
}

body .trip-billing-report-card .trip-billing-day summary strong,
body .trip-billing-report-card .toll-amount-flow .charge {
  color: #0f8a4b;
}

body .trip-billing-report-card .toll-amount-flow .actual {
  color: #667085;
  background: #eef2f6;
}

body .trip-billing-report-card .toll-amount-flow .charge {
  background: #e8f8ee;
}

body .trip-billing-report-card .toll-amount-flow small {
  color: #667085;
}

/* Tolls manual review: grouped, readable workspace. */
#tollsStep4Review .manual-tolls-review {
  gap: 14px;
  border: 1px solid rgba(117, 142, 171, 0.26);
  border-radius: 20px;
  padding: 16px;
  background:
    radial-gradient(circle at 0 0, rgba(245, 211, 111, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 253, 0.88));
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.07);
}

#tollsStep4Review .manual-review-head {
  align-items: center;
  border-bottom: 1px solid rgba(117, 142, 171, 0.16);
  padding-bottom: 10px;
}

#tollsStep4Review .manual-review-head h2 {
  margin-top: 3px;
  font-size: 24px;
  line-height: 1.08;
}

#tollsStep4Review .manual-review-tabs {
  gap: 8px;
  overflow: visible;
  border: 1px solid rgba(117, 142, 171, 0.22);
  border-radius: 14px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.86);
}

#tollsStep4Review .manual-review-tabs button {
  min-height: 38px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
}

#tollsStep4Review .manual-review-tabs button.is-active {
  color: #172033;
  background: linear-gradient(135deg, #fff3be, #f5d36f);
  box-shadow: 0 8px 18px rgba(215, 184, 78, 0.15);
}

#tollsStep4Review .manual-review-filters {
  grid-template-columns: minmax(220px, 1.25fr) minmax(150px, 0.85fr) minmax(170px, 0.95fr) repeat(2, minmax(130px, 0.72fr)) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(117, 142, 171, 0.22);
  border-radius: 16px;
  padding: 12px;
  background: rgba(248, 250, 252, 0.82);
}

#tollsStep4Review .manual-review-filters input,
#tollsStep4Review .manual-review-filters select {
  min-height: 40px;
}

#tollsStep4Review .manual-review-filters input[type="search"] {
  padding-left: 13px;
}

#tollsStep4Review .manual-review-filters button {
  grid-column: auto;
  min-width: 132px;
  min-height: 40px;
}

#tollsStep4Review .manual-review-list {
  gap: 12px;
}

#tollsStep4Review .manual-review-list h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7a5d0b;
}

#tollsStep4Review .manual-review-list h3::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(215, 184, 78, 0.42), transparent);
}

#tollsStep4Review .manual-review-plate-group {
  border-color: rgba(117, 142, 171, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.94)),
    #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

#tollsStep4Review .manual-review-plate-group + .manual-review-plate-group {
  margin-top: 12px;
}

#tollsStep4Review .manual-review-plate-group > summary {
  min-height: 66px;
  padding: 14px 18px;
  background:
    radial-gradient(circle at 0 0, rgba(215, 184, 78, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, #ffffff 100%);
}

#tollsStep4Review .manual-review-plate-group > summary span {
  font-size: 17px;
}

#tollsStep4Review .manual-review-plate-group > summary small {
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 999px;
  padding: 5px 9px;
  color: #52657d;
  background: rgba(255, 255, 255, 0.78);
}

#tollsStep4Review .manual-review-plate-group > summary strong {
  font-size: 18px;
}

#tollsStep4Review .manual-review-date-group > summary,
#tollsStep4Review .manual-review-date-group header {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 11px 18px;
  background:
    linear-gradient(90deg, rgba(245, 211, 111, 0.12), rgba(248, 250, 252, 0.78));
}

#tollsStep4Review .manual-review-date-group > summary::-webkit-details-marker {
  display: none;
}

#tollsStep4Review .manual-review-date-group > summary::before,
#tollsStep4Review .manual-review-plate-group > summary::before {
  content: "›";
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: #7a5d0b;
  background: rgba(245, 211, 111, 0.22);
  font-size: 15px;
  font-weight: 950;
  transform: rotate(0deg);
  transition: transform 0.16s ease;
}

#tollsStep4Review .manual-review-plate-group[open] > summary::before,
#tollsStep4Review .manual-review-date-group[open] > summary::before {
  transform: rotate(90deg);
}

#tollsStep4Review .manual-review-plate-group > summary {
  grid-template-columns: auto minmax(120px, 1fr) auto auto;
}

#tollsStep4Review .manual-review-date-group > summary {
  grid-template-columns: auto minmax(160px, 1fr) auto auto;
}

#tollsStep4Review .manual-review-row {
  grid-template-columns: minmax(280px, 1.2fr) minmax(90px, auto) minmax(320px, 1.1fr) auto;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.9);
}

#tollsStep4Review .manual-review-row:hover {
  background: rgba(248, 250, 252, 0.96);
}

#tollsStep4Review .manual-review-row > em {
  justify-self: end;
  font-size: 16px;
}

#tollsStep4Review .manual-review-actions {
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

#tollsStep4Review .manual-review-actions button {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.6);
}

#tollsStep4Review .manual-review-actions button:first-child {
  border-color: rgba(215, 184, 78, 0.24);
  background: #fff8dd;
}

#tollsStep4Review .manual-review-actions button:last-child {
  border-color: rgba(196, 61, 68, 0.14);
  background: #fff5f5;
}

#tollsStep4Review .manual-resolve-panel {
  margin: 2px -18px -14px;
  padding: 14px 18px 16px;
  background:
    radial-gradient(circle at 0 0, rgba(215, 184, 78, 0.18), transparent 36%),
    #fff8d8;
}

#tollsStep4Review .tolls-review-table {
  display: none;
}

#tollsStep5Billing .tolls-billing-panel {
  gap: 14px;
  border: 1px solid rgba(117, 142, 171, 0.26);
  border-radius: 20px;
  padding: 16px;
  background:
    radial-gradient(circle at 0 0, rgba(16, 185, 129, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 253, 0.9));
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.07);
}

#tollsStep5Billing .billing-head {
  align-items: center;
  border-bottom: 1px solid rgba(117, 142, 171, 0.16);
  padding-bottom: 10px;
}

#tollsStep5Billing .billing-head h2 {
  margin-top: 3px;
  font-size: 24px;
  line-height: 1.08;
}

#tollsStep5Billing .billing-filter-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.85fr) minmax(180px, 1fr) repeat(2, minmax(140px, 0.75fr)) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(117, 142, 171, 0.22);
  border-radius: 16px;
  padding: 12px;
  background: rgba(248, 250, 252, 0.82);
}

#tollsStep5Billing .billing-filter-grid label {
  display: grid;
  gap: 7px;
  color: #5c6c82;
  font-size: 12px;
  font-weight: 850;
}

#tollsStep5Billing .billing-filter-grid input,
#tollsStep5Billing .billing-filter-grid select {
  min-height: 40px;
  border-radius: 12px;
}

#tollsStep5Billing .billing-filter-grid .billing-checkbox {
  grid-column: auto;
  align-self: center;
  min-height: 40px;
  border: 1px solid rgba(117, 142, 171, 0.2);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

#tollsStep5Billing .billing-filter-grid button {
  grid-column: auto;
  min-width: 116px;
  min-height: 40px;
}

#tollsStep5Billing .billing-kpis {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

#tollsStep5Billing .billing-kpis article {
  min-height: 104px;
  border-color: rgba(117, 142, 171, 0.22);
  border-radius: 16px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9));
  text-align: left;
}

#tollsStep5Billing .billing-kpis span {
  color: #657287;
  font-size: 11px;
}

#tollsStep5Billing .billing-kpis strong {
  margin-top: 9px;
  font-size: 27px;
}

#tollsStep5Billing .billing-kpis small {
  display: block;
  margin-top: 8px;
  color: #6b778a;
  font-size: 11px;
}

#tollsStep5Billing .billing-kpis .green {
  border-color: rgba(16, 185, 129, 0.28);
  background: linear-gradient(145deg, #f0fff6, #ffffff);
}

#tollsStep5Billing .billing-kpis .gold {
  border-color: rgba(215, 184, 78, 0.34);
  background: linear-gradient(145deg, #fff9df, #ffffff);
}

#tollsStep5Billing .billing-tabs {
  gap: 8px;
  overflow: visible;
  border: 1px solid rgba(117, 142, 171, 0.22);
  border-radius: 14px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.86);
}

#tollsStep5Billing .billing-tabs button {
  min-height: 38px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
}

#tollsStep5Billing .billing-tabs button.is-active {
  color: #172033;
  background: linear-gradient(135deg, #fff3be, #f5d36f);
  box-shadow: 0 8px 18px rgba(215, 184, 78, 0.15);
}

#tollsStep5Billing .billing-trip-list {
  display: grid;
  gap: 12px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#tollsStep5Billing .billing-trip-row {
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  align-items: stretch;
  border: 1px solid rgba(117, 142, 171, 0.24);
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.94));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

#tollsStep5Billing .billing-trip-row:hover {
  border-color: rgba(16, 185, 129, 0.28);
  background: #fff;
}

#tollsStep5Billing .billing-trip-title {
  gap: 8px;
}

#tollsStep5Billing .billing-trip-title a {
  color: #1f4f93;
  font-size: 15px;
  text-decoration: none;
}

#tollsStep5Billing .billing-trip-title span {
  border: 1px solid rgba(31, 94, 157, 0.16);
  border-radius: 999px;
  padding: 4px 8px;
  color: #1f5e9d;
  background: #edf6ff;
  font-size: 11px;
}

#tollsStep5Billing .billing-trip-title .manual-billing-title {
  border-color: rgba(16, 185, 129, 0.22);
  color: #0f8a4b;
  background: #ecfdf3;
  font-size: 13px;
}

#tollsStep5Billing .billing-trip-row p {
  margin: 8px 0 12px;
  color: #5e6d83;
  font-size: 12px;
}

#tollsStep5Billing .billing-trip-actions {
  gap: 8px;
}

#tollsStep5Billing .billing-trip-actions button {
  min-height: 34px;
  border-radius: 10px;
  color: #516176;
}

#tollsStep5Billing .billing-trip-actions button[data-billing-action="charge"] {
  border-color: rgba(31, 94, 157, 0.2);
  color: #1f5e9d;
  background: #eef6ff;
}

#tollsStep5Billing .billing-trip-actions button[data-billing-action="mark-billed"] {
  border-color: #d7b84e;
  color: #172033;
  background: linear-gradient(135deg, #f8df82, #f5d36f);
}

#tollsStep5Billing .billing-trip-money {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 190px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 12px;
  background: #effcf5;
  text-align: right;
}

#tollsStep5Billing .billing-trip-money span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #657287;
  font-size: 11px;
  font-weight: 850;
}

#tollsStep5Billing .billing-trip-money span strong {
  color: #172033;
  font-size: 13px;
}

#tollsStep5Billing .billing-trip-money span:nth-child(2) strong {
  color: #0f8a4b;
  font-size: 18px;
}

#tollsStep5Billing .billing-trip-money small {
  color: #0f8a4b;
  font-size: 11px;
  font-weight: 850;
}

.trip-billing-report-dialog {
  width: min(1080px, calc(100vw - 28px));
}

.trip-billing-report-dialog::backdrop {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(7px);
}

.trip-billing-report-card {
  display: grid;
  gap: 14px;
  width: 100%;
  max-height: min(86vh, 820px);
  overflow: hidden;
  border: 1px solid rgba(117, 142, 171, 0.28);
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(245, 211, 111, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff, #f7fafc);
  color: #172033;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.28);
}

.trip-billing-report-card .dialog-head {
  border-bottom: 1px solid rgba(117, 142, 171, 0.18);
  padding-bottom: 12px;
}

.trip-billing-report-card .dialog-head h3 {
  margin: 3px 0 0;
  color: #172033;
  font-size: 24px;
  line-height: 1.08;
}

.trip-billing-report-card .panel-label-dark {
  color: #7a5d0b;
}

.trip-billing-report-card .icon-btn {
  color: #172033;
  background: #edf2f7;
}

.trip-billing-report-card .trip-report-toolbar {
  border: 1px solid rgba(117, 142, 171, 0.2);
  border-radius: 14px;
  padding: 10px;
  background: rgba(248, 250, 252, 0.82);
}

.trip-billing-report-card .selection-hint {
  color: #5b6c83;
  background: #fff;
}

.trip-billing-report-card .trip-billing-list {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.trip-billing-report-card .trip-billing-card {
  border-color: rgba(117, 142, 171, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.94));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.trip-billing-report-card .trip-billing-header {
  align-items: center;
  border-bottom-color: rgba(117, 142, 171, 0.18);
  padding: 16px;
}

.trip-billing-report-card .trip-billing-header h3,
.trip-billing-report-card .trip-billing-header h3 a {
  color: #172033;
}

.trip-billing-report-card .trip-billing-header h3 span {
  border: 1px solid rgba(31, 94, 157, 0.16);
  border-radius: 999px;
  padding: 4px 8px;
  color: #1f5e9d;
  background: #edf6ff;
}

.trip-billing-report-card .trip-billing-header p,
.trip-billing-report-card .trip-billing-header small {
  color: #5e6d83;
}

.trip-billing-summary {
  display: grid;
  gap: 8px;
  min-width: 210px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 12px;
  background: #effcf5;
  text-align: right;
}

.trip-billing-summary span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #657287;
  font-size: 11px;
  font-weight: 850;
}

.trip-billing-summary span strong {
  color: #172033;
  font-size: 13px;
}

.trip-billing-summary span:nth-child(2) strong {
  color: #0f8a4b;
  font-size: 20px;
}

.trip-billing-summary small {
  color: #0f8a4b;
  font-size: 11px;
  font-weight: 850;
}

.trip-billing-report-card .trip-select-all {
  margin: 12px 16px;
  border: 1px solid rgba(117, 142, 171, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(248, 250, 252, 0.82);
}

.trip-billing-report-card .trip-billing-day {
  border-top-color: rgba(117, 142, 171, 0.18);
}

.trip-billing-report-card .trip-billing-day summary {
  color: #172033;
  background:
    linear-gradient(90deg, rgba(245, 211, 111, 0.1), rgba(248, 250, 252, 0.85));
}

.trip-billing-report-card .trip-billing-day summary span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trip-billing-report-card .trip-billing-day summary strong {
  color: #0f8a4b;
}

.trip-billing-report-card .trip-billing-row {
  border-top-color: rgba(117, 142, 171, 0.16);
  background: #fff;
}

.trip-billing-report-card .trip-billing-row strong {
  color: #172033;
}

.trip-billing-report-card .trip-billing-row span,
.trip-billing-report-card .trip-billing-row small {
  color: #5e6d83;
}

.trip-billing-report-card .toll-amount-flow .actual {
  color: #667085;
  background: #eef2f6;
}

.trip-billing-report-card .toll-amount-flow .charge {
  color: #0f8a4b;
  background: #e8f8ee;
}

.trip-billing-report-card .trip-report-actions {
  border-color: rgba(117, 142, 171, 0.22);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.88);
}

.trip-billing-report-card .trip-report-actions .primary-btn,
.trip-billing-report-card .trip-report-actions .ghost-btn,
.trip-billing-report-card .trip-report-actions .danger-btn {
  min-height: 36px;
  border-radius: 10px;
}

@media (max-width: 1180px) {
  #tollsStep4Review .manual-review-filters,
  #tollsStep4Review .manual-review-row {
    grid-template-columns: 1fr;
  }

  #tollsStep4Review .manual-review-filters button,
  #tollsStep4Review .manual-review-row > em {
    width: 100%;
    justify-self: stretch;
  }

  #tollsStep4Review .manual-review-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  #tollsStep5Billing .billing-filter-grid,
  #tollsStep5Billing .billing-trip-row {
    grid-template-columns: 1fr;
  }

  #tollsStep5Billing .billing-filter-grid .billing-checkbox,
  #tollsStep5Billing .billing-filter-grid button,
  #tollsStep5Billing .billing-trip-money {
    width: 100%;
  }

  #tollsStep5Billing .billing-trip-money {
    text-align: left;
  }

  .trip-billing-report-card .trip-billing-header,
  .trip-billing-summary {
    display: grid;
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* Billing report layout refinement. */
body .trip-billing-report-card {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  height: min(86vh, 820px);
  max-height: min(86vh, 820px);
  padding: 16px;
  background:
    radial-gradient(circle at 0 0, rgba(245, 211, 111, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff, #f8fafc);
}

body .trip-billing-report-card .dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 12px;
}

body .trip-billing-report-card .dialog-head h3 {
  font-size: 24px;
  letter-spacing: 0;
}

body .trip-billing-report-card .icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #172033;
  background: #eef3f7;
}

body .trip-billing-report-card .trip-report-toolbar {
  min-height: 46px;
  border-color: rgba(117, 142, 171, 0.18);
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(248, 250, 252, 0.74);
}

body .trip-billing-report-card .selection-hint {
  border: 0;
  padding: 0 10px;
  color: #607187;
  background: transparent;
}

body .trip-billing-report-card #modalSelectTripTollsBtn {
  min-height: 32px;
  border-color: rgba(117, 142, 171, 0.24);
  border-radius: 10px;
  color: #172033;
  background: #fff;
}

body .trip-billing-report-card .trip-billing-card {
  border-radius: 18px;
  overflow: visible;
}

body .trip-billing-report-card .trip-billing-list {
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 8px;
}

body .trip-billing-report-card .trip-billing-list::-webkit-scrollbar {
  width: 10px;
}

body .trip-billing-report-card .trip-billing-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.72);
}

body .trip-billing-report-card .trip-billing-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(226, 232, 240, 0.72);
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.48);
}

body .trip-billing-report-card .trip-billing-list::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 0.62);
}

body .trip-billing-report-card .trip-billing-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 230px);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

body .trip-billing-report-card .trip-billing-header h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 20px;
}

body .trip-billing-report-card .trip-billing-header h3 a {
  text-underline-offset: 3px;
}

body .trip-billing-report-card .trip-billing-header p {
  margin: 8px 0 4px;
  font-size: 14px;
  line-height: 1.4;
}

body .trip-billing-report-card .trip-billing-summary {
  min-width: 0;
  border-color: rgba(16, 185, 129, 0.22);
  border-radius: 18px;
  padding: 14px;
}

body .trip-billing-report-card .trip-billing-summary span:nth-child(2) strong {
  font-size: 24px;
}

body .trip-billing-report-card .trip-select-all {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  margin: 12px 18px;
  border-radius: 12px;
  padding: 8px 12px;
  color: #172033;
  background: #f8fafc;
}

body .trip-billing-report-card .trip-billing-day summary {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  justify-content: initial;
  gap: 10px;
  min-height: 42px;
  padding: 10px 18px;
}

body .trip-billing-report-card .trip-billing-day summary::before {
  margin: 0;
}

body .trip-billing-report-card .trip-billing-day summary span {
  justify-content: flex-start;
  min-width: 0;
  font-size: 13px;
}

body .trip-billing-report-card .trip-billing-day summary span small {
  border: 1px solid rgba(117, 142, 171, 0.16);
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff;
}

body .trip-billing-report-card .trip-billing-day summary strong {
  justify-self: end;
  font-size: 13px;
}

body .trip-billing-report-card .trip-billing-row {
  grid-template-columns: auto minmax(0, 1fr) minmax(170px, auto);
  gap: 12px;
  padding: 12px 18px;
}

body .trip-billing-report-card .trip-billing-row > div {
  min-width: 0;
}

body .trip-billing-report-card .trip-billing-row strong {
  gap: 8px;
  font-size: 13px;
}

body .trip-billing-report-card .trip-billing-row strong small,
body .trip-billing-report-card .trip-billing-row strong em {
  font-size: 11px;
}

body .trip-billing-report-card .trip-billing-row > span,
body .trip-billing-report-card .trip-billing-row div > span {
  margin-top: 4px;
}

body .trip-billing-report-card .toll-amount-flow {
  justify-self: end;
  min-width: 154px;
}

body .trip-billing-report-card .toll-amount-flow span {
  padding: 5px 9px;
}

body .trip-billing-report-card .trip-report-actions {
  position: sticky;
  bottom: 0;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06);
}

body .trip-billing-report-card .trip-report-actions .danger-btn {
  color: #b4232b;
  background: #fff5f5;
}

@media (max-width: 760px) {
  body .trip-billing-report-card .trip-billing-header,
  body .trip-billing-report-card .trip-billing-row,
  body .trip-billing-report-card .trip-billing-day summary {
    grid-template-columns: 1fr;
  }

  body .trip-billing-report-card .toll-amount-flow {
    justify-self: stretch;
  }

  body .trip-billing-report-card .trip-report-actions {
    justify-content: stretch;
  }

body .trip-billing-report-card .trip-report-actions button {
    flex: 1 1 140px;
  }
}

#tollsStep6Png > .trip-report-toolbar,
#tollsStep6Png > .trip-report-actions {
  display: none;
}

.billed-history-list {
  display: grid;
  gap: 12px;
}

.billed-history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, auto);
  gap: 16px;
  align-items: stretch;
  border: 1px solid rgba(117, 142, 171, 0.24);
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 254, 0.94));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.billed-history-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  background: #fff;
}

.billed-history-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.billed-history-main > strong {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #172033;
  font-size: 16px;
}

.billed-history-main > strong a {
  color: #1f4f93;
  text-decoration: none;
}

.billed-history-main > strong span {
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 999px;
  padding: 4px 9px;
  color: #0f8a4b;
  background: #e8f8ee;
  font-size: 11px;
}

.billed-history-main p,
.billed-history-main small {
  margin: 0;
  color: #5e6d83;
  line-height: 1.4;
}

.billed-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.billed-history-actions button {
  min-height: 34px;
  border: 1px solid rgba(117, 142, 171, 0.24);
  border-radius: 10px;
  padding: 0 12px;
  color: #516176;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.billed-history-actions button[data-billed-history-action="report"],
.billed-history-actions button[data-billed-history-action="png"] {
  border-color: rgba(31, 94, 157, 0.18);
  color: #1f5e9d;
  background: #eef6ff;
}

.billed-history-actions button[data-billed-history-action="unbill"] {
  border-color: rgba(196, 61, 68, 0.14);
  color: #b4232b;
  background: #fff5f5;
}

.billed-history-money {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 210px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 12px;
  background: #effcf5;
  text-align: right;
}

.billed-history-money span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #657287;
  font-size: 11px;
  font-weight: 800;
}

.billed-history-money span strong {
  color: #172033;
  font-size: 13px;
}

.billed-history-money span:nth-child(2) strong {
  color: #0f8a4b;
  font-size: 20px;
}

.billed-history-money small {
  color: #0f8a4b;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .billed-history-card {
    grid-template-columns: 1fr;
  }

  .billed-history-money {
    text-align: left;
  }
}

/* Global emphasis: headings and numeric information stay bold across the app. */
h1,
h2,
h3,
h4,
h5,
h6,
.section-head h2,
.panel-head h2,
.dialog-head h2,
.dialog-head h3,
.workflow-step-heading strong,
.brand strong,
.sidebar-title strong,
.vehicle-card h3,
.fleet-card-title,
.billing-head h2,
.manual-review-head h2,
.turo-import-title h2,
.epass-import-head h2,
.investor-card-head strong,
.trip-billing-header h3,
.trip-billing-report-card .dialog-head h3 {
  font-weight: 800;
}

.metric-card strong,
.overview-card strong,
.visual-card strong,
.ledger-card strong,
.sidebar-mini-kpis strong,
.fleet-card-metric strong,
.fleet-mileage-action strong,
.dre-money,
.transaction-total-card strong,
.transaction-filter-total-head strong,
.tolls-period-card strong,
.tolls-history-totals strong,
.tolls-analysis-kpis strong,
.tolls-reconcile-kpi strong,
.billing-kpis strong,
.billing-trip-money strong,
.trip-billing-summary strong,
.bank-reconcile-summary strong,
.bank-amount-pill,
.bank-card-amount,
.investor-revenue-row strong,
.investor-vehicle-metrics strong,
.earnings-chart-head strong,
.toll-amount-flow,
.money,
.amount,
.revenue,
.profit,
.loss,
td:has(.currency),
td strong,
th,
.table-wrap td strong,
.manual-review-row > em,
.manual-review-plate-group > summary strong,
.manual-review-date-group summary strong,
.trip-billing-day summary strong,
.trip-billing-row strong,
.billing-trip-row strong,
.billing-trip-title a,
.pill strong,
.status-pill strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

input[type="number"],
.chart-tooltip strong,
.chart-tooltip b,
[data-number],
[data-amount] {
  font-weight: 800;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
