/* app/globals.css */
:root {
  --font-inter:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --font-cormorant:
    Georgia,
    "Times New Roman",
    serif;
  --navy-950: #041426;
  --navy-900: #061c36;
  --navy-800: #0b2948;
  --navy-700: #143858;
  --gold-600: #b98321;
  --gold-700: #946619;
  --gold-500: #cc9a38;
  --gold-400: #e1ba64;
  --gold-300: #e8cb8a;
  --gold-200: #ecd9aa;
  --gold-100: #f7ecd1;
  --cream-100: #f7f2e8;
  --cream-200: #efe6d6;
  --cream-50: #fcfaf5;
  --white: #ffffff;
  --ink: #0a2039;
  --slate: #657181;
  --slate-600: #657181;
  --slate-500: #7d8793;
  --line: #ded9ce;
  --green: #17713b;
  --red: #b34235;
  --shadow: 0 14px 34px rgba(5, 24, 46, 0.09);
  --small-shadow: 0 5px 16px rgba(5, 24, 46, 0.08);
  --shadow-soft: var(--small-shadow);
}
* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  background: var(--cream-100);
  color: var(--ink);
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(204, 154, 56, 0.12),
      transparent 30rem),
    var(--cream-100);
  color: var(--ink);
  font-family:
    var(--font-inter),
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
.app-shell {
  min-height: 100vh;
}
.desktop-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 274px;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 18px 18px;
  color: white;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(33, 74, 111, 0.75),
      transparent 22rem),
    linear-gradient(
      170deg,
      var(--navy-800),
      var(--navy-950) 74%);
  border-right: 1px solid rgba(225, 186, 100, 0.28);
  box-shadow: 10px 0 28px rgba(4, 20, 38, 0.1);
}
.desktop-sidebar::after {
  position: absolute;
  right: -105px;
  bottom: -100px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(225, 186, 100, 0.09);
  border-radius: 50%;
  content: "H";
  color: rgba(225, 186, 100, 0.05);
  font: 700 9rem/270px var(--font-cormorant), serif;
  text-align: center;
}
.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-crest {
  width: 58px;
  height: 58px;
  flex: none;
  border: 1px solid rgba(225, 186, 100, 0.45);
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
}
.brand-type {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: white;
  line-height: 1;
}
.brand-type > span {
  font-family:
    var(--font-cormorant),
    Georgia,
    serif;
  font-size: 1.53rem;
  font-weight: 600;
  letter-spacing: 0.075em;
}
.brand-type small {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: var(--gold-400);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  white-space: nowrap;
}
.brand-type small::before,
.brand-type small::after {
  width: 14px;
  height: 1px;
  background: var(--gold-500);
  content: "";
}
.brand-compact .brand-crest {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}
.brand-compact .brand-type > span {
  font-size: 1.26rem;
}
.brand-compact .brand-type small {
  margin-top: 5px;
  font-size: 0.56rem;
}
.company-switcher,
.mobile-company {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.company-switcher {
  position: relative;
  z-index: 1;
  margin: 28px 0 18px;
  padding: 11px 12px;
  border: 1px solid rgba(225, 186, 100, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}
.company-switcher .building-icon {
  color: var(--gold-400);
  font-size: 1.35rem;
}
.company-switcher > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}
.company-switcher small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.company-switcher strong {
  overflow: hidden;
  margin-top: 2px;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.company-switcher i {
  color: var(--gold-400);
  font-style: normal;
}
.desktop-sidebar nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.desktop-sidebar nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 0;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  transition: 150ms ease;
}
.desktop-sidebar nav button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}
.desktop-sidebar nav button.active {
  color: var(--navy-950);
  background:
    linear-gradient(
      115deg,
      var(--gold-400),
      var(--gold-500));
  box-shadow: 0 8px 22px rgba(204, 154, 56, 0.24);
}
.desktop-sidebar nav button.active > i {
  position: absolute;
  right: -18px;
  width: 3px;
  height: 28px;
  border-radius: 2px;
  background: var(--gold-400);
}
.app-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: var(--navy-900);
  background: rgba(204, 154, 56, 0.14);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 800;
}
.app-icon-compact {
  width: 26px;
  height: 26px;
  background: transparent;
  color: inherit;
  font-size: 0.84rem;
}
.sidebar-plan {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(225, 186, 100, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}
.sidebar-plan span {
  color: var(--gold-400);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sidebar-plan strong {
  font-size: 0.78rem;
}
.sidebar-plan small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
}
.user-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: 10px;
  padding: 11px 6px 0;
  color: white;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}
.user-card > span:first-child {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--gold-500);
  border-radius: 50%;
  color: var(--gold-400);
  background: var(--navy-950);
  font-family: var(--font-cormorant), serif;
  font-weight: 700;
}
.user-card > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.user-card strong {
  font-size: 0.75rem;
}
.user-card small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.62rem;
}
.user-card i {
  color: var(--gold-400);
  font-size: 0.7rem;
  font-style: normal;
}
.app-stage {
  min-height: 100vh;
  margin-left: 274px;
}
.mobile-header,
.mobile-company,
.mobile-nav {
  display: none;
}
main {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 42px 42px 70px;
}
.view-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: enter-view 260ms ease both;
}
@keyframes enter-view {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.welcome-row,
.heading-with-action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.welcome-row h1,
.page-heading h1,
.trip-hero h1 {
  margin: 2px 0 4px;
  color: var(--navy-900);
  font-family:
    var(--font-cormorant),
    Georgia,
    serif;
  font-size: clamp(2.15rem, 4vw, 3.15rem);
  font-weight: 700;
  line-height: 1;
}
.welcome-row p,
.page-heading p {
  margin: 0;
  color: var(--slate);
  font-size: 0.93rem;
}
.eyebrow {
  color: var(--gold-600) !important;
  font-size: 0.72rem !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.primary-button,
.gold-button,
.outline-button,
.text-button {
  min-height: 48px;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.025em;
}
.primary-button,
.gold-button {
  color: #07192e;
  background:
    linear-gradient(
      120deg,
      #e0b85f,
      #c18b29);
  border: 1px solid #b67c18;
  box-shadow: 0 8px 20px rgba(185, 131, 33, 0.18);
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  text-transform: uppercase;
}
.primary-button:hover,
.gold-button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}
.outline-button {
  padding: 0 20px;
  color: var(--gold-600);
  background: transparent;
  border: 1px solid var(--gold-500);
}
.text-button {
  color: var(--slate);
  background: transparent;
  border: 0;
}
.mobile-new-trip {
  display: none;
}
.dashboard-metrics,
.report-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.metric-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 104px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(10, 32, 57, 0.11);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--small-shadow);
}
.metric-card .app-icon {
  width: 46px;
  height: 46px;
  color: var(--navy-900);
  background: rgba(9, 40, 71, 0.08);
}
.metric-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.metric-card span {
  color: var(--slate);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.metric-card strong {
  overflow: hidden;
  margin-top: 2px;
  color: var(--navy-900);
  font-family:
    var(--font-cormorant),
    Georgia,
    serif;
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  line-height: 1;
  text-overflow: ellipsis;
}
.metric-card small {
  margin-top: 6px;
  color: var(--slate);
  font-size: 0.67rem;
}
.metric-gold {
  border-color: rgba(204, 154, 56, 0.42);
  background:
    linear-gradient(
      135deg,
      rgba(255, 252, 245, 0.98),
      rgba(248, 237, 209, 0.88));
}
.metric-gold .app-icon {
  color: #75500c;
  background: rgba(204, 154, 56, 0.18);
}
.metric-green .app-icon {
  color: var(--green);
  background: rgba(23, 113, 59, 0.1);
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.quick-actions button {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  color: var(--navy-900);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(10, 32, 57, 0.1);
  border-radius: 13px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: 150ms ease;
}
.quick-actions button:hover {
  border-color: var(--gold-500);
  background: white;
  transform: translateY(-2px);
  box-shadow: var(--small-shadow);
}
.quick-actions .app-icon {
  color: var(--gold-600);
  background: rgba(204, 154, 56, 0.12);
}
.dashboard-columns,
.detail-grid,
.reports-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.9fr);
  gap: 16px;
  align-items: start;
}
.panel {
  border: 1px solid rgba(10, 32, 57, 0.11);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--small-shadow);
}
.upcoming-panel,
.attention-panel,
.detail-panel,
.expense-list-panel,
.income-chart,
.printable-reports,
.settings-section,
.plan-card {
  padding: 20px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.section-title h2 {
  margin: 0;
  color: var(--navy-900);
  font-family:
    var(--font-cormorant),
    Georgia,
    serif;
  font-size: 1.45rem;
  font-weight: 700;
}
.section-title button {
  color: var(--gold-600);
  background: transparent;
  border: 0;
  font-size: 0.75rem;
  font-weight: 800;
}
.section-title button span {
  font-size: 1.1rem;
}
.trip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trip-row {
  display: grid;
  grid-template-columns: 64px 14px minmax(0, 1fr) auto 10px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 80px;
  padding: 11px 13px;
  color: var(--ink);
  background: rgba(252, 250, 245, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  transition: 140ms ease;
}
.trip-row:hover {
  border-color: rgba(204, 154, 56, 0.68);
  background: white;
  box-shadow: 0 5px 14px rgba(5, 24, 46, 0.06);
}
.trip-row time {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.trip-row time strong {
  font-family:
    var(--font-cormorant),
    Georgia,
    serif;
  font-size: 1.42rem;
  line-height: 1;
}
.trip-row time span {
  margin-top: 3px;
  color: var(--slate);
  font-size: 0.58rem;
  font-weight: 800;
}
.timeline-pin {
  position: relative;
  display: block;
  width: 2px;
  height: 54px;
  background: var(--gold-500);
}
.timeline-pin::before {
  position: absolute;
  top: 4px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-500);
  content: "";
}
.trip-row-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.trip-row-main strong {
  font-size: 0.88rem;
}
.trip-row-main > span {
  overflow: hidden;
  margin-top: 3px;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trip-row-main small {
  margin-top: 4px;
  color: var(--slate);
  font-size: 0.66rem;
}
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 23px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #24436a;
  background: #e6edf6;
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-confirmed,
.status-completed,
.status-active {
  color: #245c35;
  background: #e1efe0;
}
.status-in-progress {
  color: #6e4b08;
  background: #f3e4bd;
}
.status-reserve,
.status-needs-follow-up {
  color: #795409;
  background: #f0dfb0;
}
.status-cancelled,
.status-maintenance,
.status-inactive {
  color: #8b342b;
  background: #f5dfdc;
}
.chevron {
  color: var(--navy-900);
  font-size: 1.35rem;
}
.side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.alert-row {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 12px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  text-align: left;
}
.alert-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--red);
  font-weight: 800;
}
.alert-icon.alert-gold {
  background: var(--gold-500);
}
.alert-row > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}
.alert-row strong {
  font-size: 0.76rem;
}
.alert-row small {
  margin-top: 3px;
  color: var(--slate);
  font-size: 0.64rem;
}
.daily-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  color: white;
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      var(--navy-800),
      var(--navy-950));
  box-shadow: var(--shadow);
}
.daily-totals > div {
  display: flex;
  min-width: 0;
  min-height: 98px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 12px 8px;
  text-align: center;
}
.daily-totals > div + div {
  border-left: 1px solid rgba(225, 186, 100, 0.35);
}
.daily-totals span {
  color: var(--gold-400);
  font-size: 0.54rem;
  font-weight: 800;
  text-transform: uppercase;
}
.daily-totals strong {
  margin-top: 7px;
  font-family:
    var(--font-cormorant),
    Georgia,
    serif;
  font-size: 1.25rem;
}
.daily-totals small {
  font: 600 0.58rem var(--font-inter), sans-serif;
}
.empty-state {
  display: flex;
  min-height: 170px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px;
  color: var(--slate);
  text-align: center;
}
.empty-state > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-600);
  background: rgba(204, 154, 56, 0.12);
  font-size: 1.3rem;
}
.empty-state h3 {
  margin: 12px 0 4px;
  color: var(--navy-900);
  font-family: var(--font-cormorant), serif;
  font-size: 1.3rem;
}
.empty-state p {
  max-width: 320px;
  margin: 0;
  font-size: 0.78rem;
}
.trips-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.75fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: start;
}
.calendar-panel,
.schedule-panel {
  padding: 20px;
}
.calendar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calendar-title h2,
.schedule-head h2 {
  margin: 0;
  color: var(--navy-900);
  font-family: var(--font-cormorant), serif;
  font-size: 1.5rem;
}
.calendar-title button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--navy-900);
  background: transparent;
  font-size: 1.7rem;
}
.calendar-title button:hover {
  background: var(--cream-100);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.calendar-weekdays {
  margin: 18px 0 6px;
}
.calendar-weekdays span {
  color: var(--slate);
  font-size: 0.61rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}
.calendar-days button,
.calendar-days > span {
  position: relative;
  display: grid;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 0.77rem;
}
.calendar-days button:hover {
  background: var(--cream-100);
}
.calendar-days button i {
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-500);
}
.calendar-days .selected-day {
  color: white;
  background: var(--gold-500);
}
.calendar-days .selected-day i {
  background: white;
}
.calendar-days .today-day {
  color: white;
  background: var(--navy-900);
}
.calendar-days .muted-day {
  color: #bcbcbc;
}
.calendar-legend {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--slate);
  font-size: 0.64rem;
}
.calendar-legend i,
.chart-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.legend-gold {
  background: var(--gold-500);
}
.legend-navy {
  background: var(--navy-900);
}
.schedule-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.schedule-head select,
.toolbar select,
.date-range select {
  min-height: 42px;
  padding: 0 32px 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.75rem;
}
.back-link {
  width: fit-content;
  padding: 0;
  color: var(--gold-600);
  background: transparent;
  border: 0;
  font-size: 0.8rem;
  font-weight: 800;
}
.trip-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}
.form-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-section,
.expense-form {
  padding: 22px;
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.form-section-title > span {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: var(--navy-950);
  background:
    linear-gradient(
      135deg,
      var(--gold-400),
      var(--gold-500));
  font-family: var(--font-cormorant), serif;
  font-size: 1.1rem;
  font-weight: 800;
}
.form-section-title h2 {
  margin: 0;
  font-family: var(--font-cormorant), serif;
  font-size: 1.35rem;
}
.form-section-title p {
  margin: 2px 0 0;
  color: var(--slate);
  font-size: 0.67rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}
.field > span,
.profile-fields label > span {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
}
.field > span small {
  color: var(--slate);
  font-weight: 500;
}
.field input,
.field select,
.field textarea,
.profile-fields input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  outline: none;
  color: var(--ink);
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.79rem;
  transition: 140ms ease;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.profile-fields input:focus,
.search-field input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(204, 154, 56, 0.12);
}
.span-2 {
  grid-column: 1 / -1;
}
.route-button {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.route-button small {
  margin-left: auto;
  color: var(--slate);
  font-size: 0.63rem;
  font-weight: 600;
}
.stepper {
  display: grid;
  min-height: 46px;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--cream-50);
}
.stepper button {
  align-self: stretch;
  border: 0;
  background: white;
  font-size: 1.2rem;
}
.stepper strong {
  text-align: center;
}
.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.segmented-control button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--cream-50);
  font-size: 0.76rem;
  font-weight: 800;
}
.segmented-control button.active {
  color: white;
  background: var(--navy-900);
  border-color: var(--navy-900);
}
.input-prefix {
  display: flex;
  min-height: 46px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--cream-50);
}
.input-prefix:focus-within {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(204, 154, 56, 0.12);
}
.input-prefix i {
  display: grid;
  min-width: 42px;
  align-self: stretch;
  place-items: center;
  color: var(--navy-900);
  background: rgba(204, 154, 56, 0.12);
  border-right: 1px solid var(--line);
  font-size: 0.61rem;
  font-style: normal;
  font-weight: 800;
}
.input-prefix input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
}
.toggle-row {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream-50);
  cursor: pointer;
}
.toggle-row > span {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}
.toggle-row strong {
  font-size: 0.74rem;
}
.toggle-row small {
  margin-top: 3px;
  color: var(--slate);
  font-size: 0.61rem;
}
.toggle-row input {
  position: absolute;
  opacity: 0;
}
.toggle-row > i {
  position: relative;
  width: 44px;
  height: 25px;
  flex: none;
  border-radius: 999px;
  background: #cfd2d2;
  transition: 150ms ease;
}
.toggle-row > i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  content: "";
  transition: 150ms ease;
}
.toggle-row input:checked + i {
  background: var(--gold-500);
}
.toggle-row input:checked + i::after {
  transform: translateX(19px);
}
.estimate-card {
  position: sticky;
  top: 24px;
  overflow: hidden;
  padding: 24px;
  color: white;
  border: 1px solid rgba(225, 186, 100, 0.44);
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(204, 154, 56, 0.23),
      transparent 18rem),
    linear-gradient(
      150deg,
      var(--navy-800),
      var(--navy-950));
  box-shadow: var(--shadow);
}
.estimate-card::after {
  position: absolute;
  right: -70px;
  top: -65px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(225, 186, 100, 0.16);
  border-radius: 50%;
  content: "";
}
.estimate-kicker {
  position: relative;
  z-index: 1;
  color: var(--gold-400);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.estimate-card > h2 {
  position: relative;
  z-index: 1;
  margin: 6px 0 2px;
  color: var(--gold-400);
  font-family: var(--font-cormorant), serif;
  font-size: 2.9rem;
  line-height: 1;
}
.estimate-card > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.7rem;
}
.estimate-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.estimate-breakdown > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 41px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
}
.estimate-breakdown > div span {
  color: rgba(255, 255, 255, 0.68);
}
.estimate-breakdown .estimate-total {
  min-height: 55px;
  color: var(--gold-400);
  border-bottom-color: rgba(225, 186, 100, 0.32);
}
.estimate-breakdown .estimate-total span {
  color: white;
  font-weight: 800;
}
.estimate-breakdown .estimate-total strong {
  color: var(--gold-400);
  font-family: var(--font-cormorant), serif;
  font-size: 1.35rem;
}
.estimate-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.estimate-meta span {
  display: flex;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}
.estimate-meta strong {
  margin-top: 4px;
  color: white;
  font-size: 0.74rem;
  text-transform: none;
}
.estimate-card .estimate-disclaimer {
  margin-top: 18px;
  padding: 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.61rem;
  line-height: 1.5;
}
.full-button {
  width: 100%;
}
.estimate-card .primary-button {
  margin-top: 18px;
}
.estimate-card .text-button {
  width: 100%;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.56);
}
.trip-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  color: white;
  border: 1px solid rgba(225, 186, 100, 0.35);
  border-radius: 18px;
  background:
    linear-gradient(
      150deg,
      var(--navy-800),
      var(--navy-950));
  box-shadow: var(--shadow);
}
.trip-hero > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}
.trip-hero h1 {
  margin: 8px 0 3px;
  color: white;
  font-size: 2.4rem;
}
.trip-hero p {
  margin: 0;
  font-size: 0.86rem;
}
.trip-hero small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}
.avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: none;
  color: var(--gold-400);
  background: var(--navy-900);
  border: 1px solid var(--gold-500);
  border-radius: 50%;
  font-family: var(--font-cormorant), serif;
  font-size: 1rem;
  font-weight: 800;
}
.large-avatar {
  width: 64px;
  height: 64px;
  font-size: 1.35rem;
}
.call-button {
  min-height: 44px;
  padding: 12px 18px;
  color: var(--navy-950);
  background: var(--gold-400);
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}
.detail-list {
  border-top: 1px solid var(--line);
}
.detail-list > div,
.detail-list > label {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 3px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}
.detail-list input {
  width: 150px;
  min-height: 37px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--cream-50);
  text-align: right;
}
.detail-list .gold-detail {
  color: var(--gold-600);
  font-size: 0.86rem;
}
.detail-list .green-detail {
  color: var(--green);
}
.summary-list {
  border-top: 1px solid var(--line);
}
.summary-list > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.summary-list span {
  color: var(--slate);
  font-size: 0.61rem;
  font-weight: 800;
  text-transform: uppercase;
}
.summary-list strong,
.summary-list p {
  margin: 0;
  font-size: 0.75rem;
}
.trip-actions {
  display: grid;
  gap: 8px;
}
.complete-banner,
.saved-banner,
.ready-export {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: #edf7ef;
  border: 1px solid #a7cbae;
  border-radius: 9px;
  font-size: 0.75rem;
  font-weight: 800;
}
.customer-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
  align-items: start;
}
.customer-list-panel,
.vehicle-manager {
  padding: 14px;
}
.search-field {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--navy-900);
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.search-field input {
  width: 100%;
  min-width: 0;
  height: 42px;
  outline: 0;
  background: transparent;
  border: 0;
  font-size: 0.77rem;
}
.customer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.customer-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 75px;
  padding: 9px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  text-align: left;
}
.customer-row:hover,
.customer-row.selected {
  background: var(--cream-50);
  border-color: rgba(204, 154, 56, 0.5);
}
.customer-row > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.customer-row strong {
  font-family: var(--font-cormorant), serif;
  font-size: 1.12rem;
}
.customer-row small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--slate);
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.customer-row i,
.tag-row span {
  width: fit-content;
  margin-top: 5px;
  padding: 3px 7px;
  color: white;
  background: var(--navy-900);
  border-radius: 999px;
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}
.customer-profile {
  overflow: hidden;
  border: 1px solid rgba(225, 186, 100, 0.5);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}
.customer-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  color: white;
  background:
    linear-gradient(
      140deg,
      var(--navy-800),
      var(--navy-950));
}
.customer-profile-head > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tag-row span {
  margin-top: 0;
  color: var(--navy-950);
  background: var(--gold-400);
}
.customer-profile-head h2 {
  margin: 7px 0 2px;
  font-family: var(--font-cormorant), serif;
  font-size: 1.8rem;
  line-height: 1;
}
.customer-profile-head a,
.customer-profile-head p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  text-decoration: none;
}
.gold-button {
  padding: 0 16px;
}
.customer-info-grid,
.vehicle-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0 20px;
}
.customer-info-grid > div,
.vehicle-detail-grid > div {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
}
.customer-info-grid > div:nth-child(odd),
.vehicle-detail-grid > div:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.customer-info-grid span,
.vehicle-detail-grid span {
  color: var(--gold-600);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}
.customer-info-grid strong,
.vehicle-detail-grid strong {
  font-size: 0.7rem;
  line-height: 1.45;
}
.profile-history {
  padding: 20px;
}
.history-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.history-row time {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.history-row time strong {
  font-family: var(--font-cormorant), serif;
  font-size: 1.3rem;
  line-height: 1;
}
.history-row time span {
  color: var(--slate);
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
}
.history-row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.history-row > div strong {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-row > div span {
  margin-top: 4px;
  color: var(--slate);
  font-size: 0.62rem;
}
.toolbar {
  display: flex;
  gap: 10px;
}
.toolbar .search-field {
  flex: 1;
}
.vehicle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.vehicle-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  padding: 0;
  color: var(--ink);
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: 13px;
  text-align: left;
}
.vehicle-card.selected {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 2px rgba(204, 154, 56, 0.12);
}
.vehicle-visual {
  display: grid;
  min-height: 90px;
  place-items: center;
  color: var(--gold-400);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, .05),
      transparent),
    var(--navy-900);
}
.vehicle-visual > span {
  font-size: 2.2rem;
}
.vehicle-visual small {
  margin-top: -25px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.6rem;
  text-transform: uppercase;
}
.vehicle-card-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 13px;
}
.vehicle-card-main > strong {
  margin-top: 9px;
  font-family: var(--font-cormorant), serif;
  font-size: 1.12rem;
}
.vehicle-card-main > small {
  margin-top: 2px;
  color: var(--slate);
  font-size: 0.62rem;
}
.vehicle-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.vehicle-stats i {
  color: var(--slate);
  font-size: 0.56rem;
  font-style: normal;
}
.vehicle-card > .chevron {
  position: absolute;
  right: 12px;
  bottom: 10px;
}
.vehicle-featured {
  position: relative;
  overflow: hidden;
  padding: 26px;
  color: white;
  border: 1px solid rgba(225, 186, 100, 0.52);
  border-radius: 17px;
  background:
    linear-gradient(
      140deg,
      var(--navy-800),
      var(--navy-950));
  box-shadow: var(--shadow);
}
.featured-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  padding: 7px 12px;
  color: var(--navy-950);
  background: var(--gold-400);
  border-radius: 0 0 9px 0;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}
.featured-vehicle-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.vehicle-hero-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  flex: none;
  color: var(--gold-400);
  border: 1px solid var(--gold-500);
  border-radius: 14px;
  font-size: 2rem;
}
.featured-vehicle-title h2 {
  margin: 7px 0 2px;
  font-family: var(--font-cormorant), serif;
  font-size: 1.8rem;
}
.featured-vehicle-title p {
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: .72rem;
}
.vehicle-detail-grid {
  margin: 22px 0;
}
.vehicle-detail-grid > div {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.vehicle-detail-grid > div:nth-child(odd) {
  border-right-color: rgba(255, 255, 255, 0.12);
}
.vehicle-detail-grid span {
  color: var(--gold-400);
}
.expense-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.expense-summary > div {
  display: flex;
  min-height: 96px;
  justify-content: center;
  flex-direction: column;
  padding: 18px;
}
.expense-summary > div + div {
  border-left: 1px solid var(--line);
}
.expense-summary span {
  color: var(--slate);
  font-size: 0.61rem;
  font-weight: 800;
  text-transform: uppercase;
}
.expense-summary strong {
  margin-top: 6px;
  font-family: var(--font-cormorant), serif;
  font-size: 1.6rem;
}
.category-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.category-picker button {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--ink);
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.64rem;
  font-weight: 700;
}
.category-picker button.active {
  color: white;
  background: var(--navy-900);
  border-color: var(--gold-500);
}
.category-picker button.active .app-icon {
  color: var(--gold-400);
  background: rgba(204, 154, 56, 0.14);
}
.upload-receipt {
  display: grid;
  min-height: 75px;
  grid-template-columns: 36px auto;
  align-content: center;
  justify-content: center;
  column-gap: 10px;
  border: 1px dashed var(--gold-500);
  border-radius: 10px;
  background: rgba(204, 154, 56, 0.04);
}
.upload-receipt > span {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 1.5rem;
}
.upload-receipt strong {
  font-size: 0.75rem;
  text-align: left;
}
.upload-receipt small {
  color: var(--slate);
  font-size: 0.58rem;
  text-align: left;
}
.expense-form > .primary-button {
  margin-top: 16px;
}
.expense-list {
  border-top: 1px solid var(--line);
}
.expense-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto 10px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
}
.expense-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--gold-600);
  border-radius: 9px;
  background: rgba(204, 154, 56, 0.11);
}
.expense-row > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.expense-row > span:nth-child(2) strong {
  font-size: 0.73rem;
}
.expense-row > span:nth-child(2) small {
  margin-top: 2px;
  color: var(--slate);
  font-size: 0.61rem;
}
.expense-flags {
  display: flex;
  gap: 4px;
}
.expense-flags i {
  padding: 3px 6px;
  color: var(--green);
  border-radius: 999px;
  background: #e4f1e6;
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 800;
}
.expense-row > strong {
  font-size: 0.78rem;
}
.expense-row > button {
  background: transparent;
  border: 0;
  font-size: 1.2rem;
}
.date-range {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 10px;
  color: var(--gold-600);
  border: 1px solid var(--gold-500);
  border-radius: 10px;
  background: white;
}
.date-range select {
  border: 0;
}
.report-metrics {
  grid-template-columns: repeat(3, 1fr);
}
.net-profit {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 18px 22px;
  border: 1px solid var(--gold-500);
  border-radius: 15px;
  background:
    linear-gradient(
      110deg,
      white,
      #fcf4df);
  box-shadow: var(--small-shadow);
}
.profit-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  flex: none;
  color: var(--gold-600);
  border: 1px solid var(--gold-500);
  border-radius: 50%;
  font-size: 1.4rem;
}
.net-profit > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.net-profit small {
  color: var(--navy-900);
  font-family: var(--font-cormorant), serif;
  font-size: 1.25rem;
}
.net-profit strong {
  color: var(--green);
  font-family: var(--font-cormorant), serif;
  font-size: 2.25rem;
}
.net-profit > i {
  padding: 5px 9px;
  color: var(--green);
  border-radius: 999px;
  background: #e1efe0;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}
.chart-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  gap: 25px;
  min-height: 250px;
  align-items: center;
  padding-top: 8px;
}
.chart-bars {
  display: flex;
  height: 205px;
  align-items: flex-end;
  justify-content: center;
  gap: 42px;
  padding: 18px 15px 0;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      to top,
      transparent 0,
      transparent 49px,
      var(--line) 50px);
}
.chart-bars > div {
  display: flex;
  width: 78px;
  height: 100%;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
}
.chart-bars > div > span {
  position: relative;
  width: 56px;
  min-height: 8%;
  border-radius: 6px 6px 0 0;
}
.bar-income {
  background: linear-gradient(#2a8c4e, #176c37);
}
.bar-expense {
  background: linear-gradient(#e05043, #b52f26);
}
.chart-bars i {
  position: absolute;
  top: -22px;
  left: 50%;
  color: var(--ink);
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
  transform: translateX(-50%);
}
.chart-bars small {
  position: absolute;
  margin-bottom: -20px;
  font-size: 0.64rem;
}
.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.chart-legend span {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 2px 6px;
  color: var(--slate);
  font-size: 0.65rem;
}
.chart-legend strong {
  grid-column: 2;
  color: var(--ink);
  font-size: 0.72rem;
}
.legend-income {
  background: var(--green);
}
.legend-expense {
  background: #dc3f35;
}
.printable-reports {
  display: flex;
  flex-direction: column;
}
.printable-reports > button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  text-align: left;
}
.printable-reports > button > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}
.printable-reports > button strong {
  font-family: var(--font-cormorant), serif;
  font-size: 1rem;
}
.printable-reports > button small {
  margin-top: 3px;
  color: var(--slate);
  font-size: 0.58rem;
}
.printable-reports > button > i {
  font-size: 1.2rem;
  font-style: normal;
}
.file-icon {
  display: grid;
  width: 38px;
  height: 42px;
  place-items: center;
  color: white;
  background: var(--red);
  border-radius: 5px;
  font-size: 0.56rem;
  font-weight: 800;
}
.gold-file {
  background: var(--gold-600);
}
.navy-file {
  background: var(--navy-900);
}
.ready-export {
  margin-top: 10px;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.75fr);
  gap: 16px;
  align-items: start;
}
.settings-main,
.settings-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.business-profile {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 18px;
  padding-top: 4px;
}
.logo-uploader {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.logo-uploader img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--gold-500);
  border-radius: 14px;
  object-fit: cover;
}
.logo-uploader button {
  min-height: 39px;
  color: var(--navy-900);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}
.logo-uploader small {
  color: var(--slate);
  font-size: 0.58rem;
  text-align: center;
}
.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.profile-fields label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.profile-fields label:nth-child(5) {
  grid-column: 1 / -1;
}
.payment-connect {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.paypal-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #0b57a3;
  background: #e5f2ff;
  border-radius: 10px;
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
}
.payment-connect > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}
.payment-connect strong {
  font-size: 0.72rem;
}
.payment-connect small {
  margin-top: 3px;
  color: var(--green);
  font-size: 0.58rem;
}
.payment-connect button {
  min-height: 38px;
  padding: 0 10px;
  color: var(--gold-600);
  background: white;
  border: 1px solid var(--gold-500);
  border-radius: 7px;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}
.payment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.payment-options > div {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  text-align: center;
}
.payment-options > div + div {
  border-left: 1px solid var(--line);
}
.payment-options span {
  font-size: 0.58rem;
  font-weight: 700;
}
.plan-card {
  color: white;
  background:
    linear-gradient(
      145deg,
      var(--navy-800),
      var(--navy-950));
  border-color: rgba(225, 186, 100, 0.36);
}
.plan-label {
  color: var(--gold-400);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.plan-card h2 {
  margin: 7px 0 5px;
  font-family: var(--font-cormorant), serif;
  font-size: 1.8rem;
}
.plan-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.65rem;
  line-height: 1.5;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}
.feature-list span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.64rem;
}
.reset-demo {
  color: var(--red);
  background: transparent;
  border: 0;
  font-size: 0.65rem;
  font-weight: 700;
}
.onboarding-screen {
  min-height: 100vh;
  background:
    linear-gradient(
      180deg,
      #061b34 0 330px,
      #f7f2e8 330px);
  padding: clamp(18px, 4vw, 52px);
  color: #0a2039;
}
.onboarding-brand {
  max-width: 980px;
  margin: 0 auto 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
}
.onboarding-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.onboarding-brand span {
  display: grid;
  line-height: 1;
}
.onboarding-brand strong {
  font: 700 28px Georgia, serif;
  letter-spacing: .13em;
}
.onboarding-brand small {
  margin-top: 7px;
  color: #e3b85e;
  letter-spacing: .24em;
}
.onboarding-brand i {
  margin-left: auto;
  padding: 8px 13px;
  border: 1px solid #d5a840;
  border-radius: 99px;
  color: #f6d98c;
  font-style: normal;
  font-size: 12px;
}
.onboarding-intro {
  max-width: 980px;
  margin: 0 auto 30px;
  color: white;
}
.onboarding-intro p {
  margin: 0;
  color: #e1b95f;
  font-weight: 800;
  letter-spacing: .22em;
}
.onboarding-intro h1 {
  margin: 8px 0;
  font: 700 clamp(34px, 6vw, 58px) Georgia, serif;
}
.onboarding-intro span {
  display: block;
  max-width: 680px;
  color: #dce5ef;
  line-height: 1.6;
}
.onboarding-form {
  max-width: 980px;
  margin: auto;
  display: grid;
  gap: 18px;
}
.onboarding-section {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px 18px;
  padding: 24px;
}
.onboarding-section h2 {
  margin: 0 0 5px;
  font-family: Georgia, serif;
}
.onboarding-section p {
  margin: 0;
  color: #627083;
}
.onboarding-step {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #c9952c;
  color: white;
  font-weight: 800;
  font-size: 20px;
}
.onboarding-section .span-full {
  grid-column: 1/-1;
  margin-top: 12px;
}
.onboarding-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: #061b34;
  border-radius: 14px;
  color: #d9e3ee;
}
.onboarding-submit button {
  min-width: 220px;
}
.onboarding-submit span {
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .onboarding-screen {
    padding: 18px 14px 32px;
    background:
      linear-gradient(
        180deg,
        #061b34 0 390px,
        #f7f2e8 390px);
  }
  .onboarding-brand {
    margin-bottom: 42px;
  }
  .onboarding-brand strong {
    font-size: 21px;
  }
  .onboarding-brand i {
    display: none;
  }
  .onboarding-intro h1 {
    font-size: 38px;
  }
  .onboarding-section {
    grid-template-columns: 42px 1fr;
    padding: 18px 14px;
  }
  .onboarding-section .form-grid {
    grid-template-columns: 1fr;
  }
  .onboarding-section .span-2 {
    grid-column: auto;
  }
  .onboarding-submit {
    align-items: stretch;
    flex-direction: column;
  }
  .onboarding-submit button {
    width: 100%;
    min-width: 0;
  }
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 10px 17px;
  color: white;
  border: 1px solid rgba(225, 186, 100, 0.55);
  border-radius: 12px;
  background: var(--navy-900);
  box-shadow: 0 15px 40px rgba(4, 20, 38, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
  animation: toast-in 220ms ease both;
}
.toast span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--navy-950);
  border-radius: 50%;
  background: var(--gold-400);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.menu-overlay {
  display: none;
}
@media (max-width: 1060px) {
  .desktop-sidebar {
    width: 228px;
  }
  .app-stage {
    margin-left: 228px;
  }
  main {
    padding: 34px 25px 60px;
  }
  .desktop-sidebar .brand-type > span {
    font-size: 1.2rem;
  }
  .desktop-sidebar .brand-crest {
    width: 48px;
    height: 48px;
  }
  .vehicle-list {
    grid-template-columns: 1fr;
  }
  .vehicle-card {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
  }
  .vehicle-visual {
    min-height: 100%;
  }
  .vehicle-visual small {
    margin-top: -16px;
  }
  .dashboard-columns,
  .reports-grid {
    grid-template-columns: 1fr;
  }
  .quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }
  .trip-form {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .customer-layout {
    grid-template-columns: 290px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  html {
    background: var(--navy-950);
  }
  body {
    padding-top: env(safe-area-inset-top);
    background: var(--navy-950);
  }
  .desktop-sidebar {
    display: none;
  }
  .app-stage {
    min-height: 100svh;
    margin-left: 0;
    background: var(--cream-100);
  }
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    min-height: 82px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 7px;
    padding: 12px 14px 10px;
    color: white;
    background:
      radial-gradient(
        circle at 50% 0%,
        rgba(33, 74, 111, 0.7),
        transparent 18rem),
      var(--navy-900);
    border-bottom: 1px solid rgba(225, 186, 100, 0.2);
  }
  .mobile-header .brand {
    justify-content: center;
  }
  .mobile-header .brand-crest {
    width: 39px;
    height: 39px;
  }
  .mobile-header .brand-type > span {
    font-size: 1.1rem;
  }
  .mobile-header .brand-type small {
    font-size: 0.5rem;
    letter-spacing: .21em;
  }
  .menu-button,
  .notification-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: white;
    background: transparent;
    border: 0;
    border-radius: 50%;
    font-size: 1.35rem;
  }
  .notification-button {
    position: relative;
    color: var(--gold-400);
  }
  .notification-button i {
    position: absolute;
    top: 8px;
    right: 7px;
    width: 6px;
    height: 6px;
    border: 1px solid var(--navy-900);
    border-radius: 50%;
    background: #e45742;
  }
  .mobile-company {
    display: flex;
    min-height: 42px;
    justify-content: center;
    padding: 8px 14px;
    overflow: hidden;
    color: rgba(255, 255, 255, .76);
    background: var(--navy-900);
    border-bottom: 1px solid rgba(225, 186, 100, 0.18);
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-company > span {
    color: var(--gold-400);
  }
  .mobile-company i {
    color: var(--gold-400);
    font-style: normal;
  }
  main {
    width: 100%;
    padding: 18px 13px calc(100px + env(safe-area-inset-bottom));
  }
  .view-stack {
    gap: 13px;
  }
  .welcome-row h1,
  .page-heading h1 {
    font-size: 2rem;
  }
  .welcome-row {
    align-items: center;
  }
  .desktop-new-trip {
    display: none;
  }
  .mobile-new-trip {
    display: flex;
    width: 100%;
    min-height: 55px;
  }
  .dashboard-metrics,
  .report-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .metric-card {
    min-height: 110px;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    padding: 11px 6px;
    text-align: center;
  }
  .metric-card .app-icon {
    width: 36px;
    height: 36px;
  }
  .metric-card strong {
    font-size: 1.35rem;
  }
  .metric-card span {
    font-size: .52rem;
  }
  .metric-card small {
    overflow: hidden;
    width: 100%;
    font-size: .51rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .quick-actions {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .quick-actions button {
    min-height: 86px;
    font-size: .57rem;
  }
  .dashboard-columns,
  .detail-grid,
  .reports-grid,
  .trips-layout,
  .customer-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .upcoming-panel,
  .attention-panel,
  .detail-panel,
  .expense-list-panel,
  .income-chart,
  .printable-reports,
  .settings-section,
  .plan-card,
  .calendar-panel,
  .schedule-panel,
  .form-section,
  .expense-form {
    padding: 15px;
  }
  .section-title h2 {
    font-size: 1.25rem;
  }
  .trip-row {
    grid-template-columns: 54px 11px minmax(0, 1fr) 8px;
    min-height: 78px;
    padding: 9px 8px;
  }
  .trip-row > .status {
    display: none;
  }
  .trip-row time strong {
    font-size: 1.25rem;
  }
  .trip-row-main > span {
    font-size: .68rem;
  }
  .trip-row-main strong {
    font-size: .79rem;
  }
  .daily-totals {
    position: relative;
  }
  .trips-layout .calendar-panel {
    order: 0;
  }
  .schedule-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .schedule-head select {
    width: 100%;
  }
  .heading-with-action {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .heading-with-action .primary-button {
    width: 100%;
  }
  .trip-form {
    display: flex;
    flex-direction: column;
  }
  .form-main,
  .estimate-card {
    width: 100%;
  }
  .estimate-card {
    position: relative;
    top: auto;
  }
  .form-grid {
    gap: 11px 8px;
  }
  .route-button {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 13px;
  }
  .route-button small {
    margin-left: 0;
  }
  .trip-hero {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 18px;
  }
  .trip-hero .large-avatar {
    width: 52px;
    height: 52px;
  }
  .trip-hero h1 {
    font-size: 1.8rem;
  }
  .trip-hero .call-button {
    width: 100%;
    text-align: center;
  }
  .customer-list-panel {
    max-height: 345px;
    overflow: auto;
  }
  .customer-profile-head {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 17px;
  }
  .customer-profile-head .gold-button {
    width: 100%;
  }
  .customer-info-grid,
  .vehicle-detail-grid {
    margin: 0 12px;
  }
  .customer-info-grid > div,
  .vehicle-detail-grid > div {
    min-height: 80px;
    padding: 13px 10px;
  }
  .vehicle-manager .toolbar {
    flex-direction: column;
  }
  .vehicle-list {
    grid-template-columns: 1fr;
  }
  .vehicle-card {
    display: grid;
    grid-template-columns: 95px minmax(0, 1fr);
  }
  .vehicle-featured {
    padding: 21px 16px;
  }
  .featured-vehicle-title h2 {
    font-size: 1.45rem;
  }
  .vehicle-hero-icon {
    width: 55px;
    height: 55px;
  }
  .expense-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .expense-summary > div {
    min-height: 82px;
    padding: 13px;
  }
  .expense-summary > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .expense-summary > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .expense-summary strong {
    font-size: 1.4rem;
  }
  .category-picker {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .category-picker button {
    min-height: 74px;
  }
  .expense-row {
    grid-template-columns: 36px minmax(0, 1fr) auto 8px;
  }
  .expense-row .expense-flags {
    display: none;
  }
  .date-range {
    width: 100%;
  }
  .date-range select {
    flex: 1;
  }
  .report-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .report-metrics .metric-card {
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
  .net-profit {
    padding: 15px;
  }
  .net-profit > span:nth-child(2) {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .net-profit strong {
    font-size: 1.75rem;
  }
  .net-profit > i {
    display: none;
  }
  .chart-area {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .chart-legend {
    flex-direction: row;
    justify-content: center;
  }
  .business-profile {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 12px;
  }
  .profile-fields {
    grid-template-columns: 1fr;
  }
  .profile-fields label:nth-child(5) {
    grid-column: auto;
  }
  .payment-connect {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .payment-connect button {
    grid-column: 1 / -1;
  }
  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    min-height: calc(70px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 5px env(safe-area-inset-bottom);
    color: rgba(255, 255, 255, 0.74);
    background: var(--navy-900);
    border-top: 1px solid rgba(225, 186, 100, 0.3);
    box-shadow: 0 -8px 26px rgba(4, 20, 38, 0.18);
  }
  .mobile-nav button {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 3px;
    color: inherit;
    background: transparent;
    border: 0;
    font-size: 0.53rem;
  }
  .mobile-nav button.active {
    color: var(--gold-400);
  }
  .mobile-nav button.active::after {
    position: absolute;
    right: 25%;
    bottom: 0;
    left: 25%;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-400);
    content: "";
  }
  .mobile-nav .app-icon {
    width: 31px;
    height: 31px;
    font-size: .78rem;
  }
  .menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    justify-content: flex-start;
    background: rgba(2, 12, 23, 0.56);
    backdrop-filter: blur(3px);
    animation: fade-in 160ms ease both;
  }
  @keyframes fade-in {
    from {
      opacity: 0;
    }
  }
  .mobile-menu {
    display: flex;
    width: min(86vw, 335px);
    flex-direction: column;
    padding: calc(17px + env(safe-area-inset-top)) 14px 18px;
    color: white;
    background:
      linear-gradient(
        160deg,
        var(--navy-800),
        var(--navy-950));
    box-shadow: 15px 0 35px rgba(0, 0, 0, .25);
    animation: menu-in 200ms ease both;
  }
  @keyframes menu-in {
    from {
      transform: translateX(-100%);
    }
  }
  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
  }
  .mobile-menu-head > button {
    width: 42px;
    height: 42px;
    color: white;
    background: rgba(255, 255, 255, .06);
    border: 0;
    border-radius: 50%;
    font-size: 1.5rem;
  }
  .mobile-menu > p {
    margin: 0 12px 8px;
    color: rgba(255, 255, 255, .42);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .12em;
  }
  .mobile-menu > button {
    display: grid;
    min-height: 50px;
    grid-template-columns: 31px minmax(0, 1fr) 10px;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: rgba(255, 255, 255, .75);
    background: transparent;
    border: 0;
    border-radius: 10px;
    text-align: left;
  }
  .mobile-menu > button.active {
    color: var(--navy-950);
    background: var(--gold-400);
  }
  .mobile-menu > button i {
    font-style: normal;
    font-size: 1.2rem;
  }
  .mobile-menu-plan {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: auto;
    padding: 14px;
    border: 1px solid rgba(225, 186, 100, .28);
    border-radius: 11px;
    background: rgba(255, 255, 255, .05);
  }
  .mobile-menu-plan span {
    color: var(--gold-400);
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
  }
  .mobile-menu-plan strong {
    font-size: .72rem;
  }
  .toast {
    right: 13px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    left: 13px;
    justify-content: center;
  }
}
@media (max-width: 390px) {
  .mobile-header .brand-crest {
    display: none;
  }
  .dashboard-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-metrics .metric-card:last-child {
    grid-column: 1 / -1;
  }
  .metric-card {
    min-height: 96px;
  }
  .calendar-days button,
  .calendar-days > span {
    height: 37px;
  }
  .business-profile {
    grid-template-columns: 1fr;
  }
  .logo-uploader {
    width: 120px;
    margin: 0 auto;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .span-2 {
    grid-column: auto;
  }
  .segmented-control {
    grid-template-columns: 1fr 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
button:disabled {
  cursor: wait;
  opacity: .68;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(380px, .92fr);
  color: var(--navy-900);
  background: var(--cream-100);
}
.login-brand-panel {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 54px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(
      circle at 50% 37%,
      rgba(218, 165, 55, .18),
      transparent 29%),
    linear-gradient(
      145deg,
      var(--navy-700),
      var(--navy-950));
}
.login-brand-panel img {
  width: 178px;
  height: 178px;
  border-radius: 39px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .28);
}
.login-brand-panel > p {
  margin: 25px 0 0;
  font: 3.2rem/1 Georgia, serif;
  letter-spacing: .12em;
}
.login-brand-panel > span {
  margin-top: 9px;
  color: var(--gold-400);
  font-weight: 800;
  letter-spacing: .33em;
}
.login-brand-panel h1 {
  max-width: 650px;
  margin: 47px 0 12px;
  font: 2.25rem/1.16 Georgia, serif;
}
.login-brand-panel .login-copy {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font: 1rem/1.7 Arial, sans-serif;
  letter-spacing: 0;
}
.login-card {
  align-self: center;
  width: min(480px, calc(100% - 50px));
  margin: 40px auto;
  padding: 42px;
  border: 1px solid rgba(175, 127, 31, .28);
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 28px 75px rgba(9, 30, 54, .14);
}
.login-eyebrow {
  color: var(--gold-700);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .18em;
}
.login-card h2 {
  margin: 10px 0 5px;
  font: 2.4rem Georgia, serif;
}
.login-card > p {
  margin: 0 0 28px;
  color: var(--slate-600);
}
.login-card label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  font-size: .75rem;
  font-weight: 800;
}
.login-card input {
  height: 49px;
  padding: 0 14px;
  color: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font: inherit;
}
.login-card .primary-button {
  margin-top: 22px;
}
.auth-error {
  margin-top: 15px;
  padding: 11px 13px;
  color: #862c27;
  border: 1px solid #ddb8b4;
  border-radius: 9px;
  background: #fff1f0;
  font-size: .78rem;
}
.demo-credentials {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  padding: 13px;
  border-radius: 10px;
  background: var(--cream-200);
  font-size: .74rem;
}
.demo-credentials strong {
  color: var(--gold-700);
}
.security-note {
  display: block;
  margin-top: 17px;
  color: var(--slate-500);
  line-height: 1.55;
  text-align: center;
}
.loading-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  color: var(--navy-900);
  background: var(--cream-100);
  text-align: center;
}
.loading-screen img {
  width: 98px;
  height: 98px;
  border-radius: 25px;
}
.loading-screen h1 {
  margin: 6px 0 0;
  font: 2rem Georgia, serif;
}
.loading-screen p {
  max-width: 460px;
  margin: 0;
  color: var(--slate-600);
}
.loading-ring {
  width: 32px;
  height: 32px;
  border: 3px solid var(--gold-200);
  border-top-color: var(--gold-700);
  border-radius: 50%;
  animation: loading-spin .8s linear infinite;
}
@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}
.dispatch-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dispatch-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.dispatch-stats span {
  color: var(--slate-600);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}
.dispatch-stats strong {
  color: var(--gold-700);
  font: 2rem Georgia, serif;
}
.dispatch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .7fr);
  gap: 17px;
}
.dispatch-trips,
.driver-roster {
  padding: 20px;
}
.dispatch-trips h2,
.driver-roster h2 {
  margin: 0 0 16px;
  font: 1.45rem Georgia, serif;
}
.dispatch-card {
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.dispatch-trip-main {
  display: grid;
  width: 100%;
  grid-template-columns: 105px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  color: var(--navy-900);
  border: 0;
  background: transparent;
  text-align: left;
}
.dispatch-trip-main:hover {
  background: var(--cream-100);
}
.dispatch-trip-main time {
  display: flex;
  flex-direction: column;
  padding-right: 13px;
  color: var(--slate-600);
  border-right: 2px solid var(--gold-400);
  font-size: .68rem;
}
.dispatch-trip-main time strong {
  color: var(--navy-900);
  font-size: 1rem;
}
.dispatch-trip-main > span {
  display: grid;
  gap: 3px;
}
.dispatch-trip-main small,
.dispatch-trip-main i {
  color: var(--slate-600);
  font-size: .72rem;
  font-style: normal;
}
.dispatch-selects {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--cream-100);
}
.dispatch-selects label {
  display: grid;
  gap: 5px;
  color: var(--slate-600);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
}
.dispatch-selects select,
.driver-roster select {
  height: 39px;
  padding: 0 9px;
  color: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.dispatch-selects .outline-button {
  height: 39px;
  white-space: nowrap;
}
.driver-roster article {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.driver-roster article > span:nth-child(2) {
  display: grid;
  gap: 2px;
}
.driver-roster article small {
  color: var(--slate-600);
  font-size: .68rem;
}
.driver-roster article select {
  grid-column: 2;
}
.driver-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8a9198;
}
.driver-available {
  background: #2c9452;
  box-shadow: 0 0 0 4px #e2f4e7;
}
.driver-driving {
  background: var(--gold-500);
  box-shadow: 0 0 0 4px #f7ebcf;
}
.assistant-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 35px;
  text-align: center;
}
.assistant-mark {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  margin: 0 auto 13px;
  color: var(--gold-400);
  border: 2px solid var(--gold-400);
  border-radius: 50%;
  background: var(--navy-900);
  font: 2.4rem Georgia, serif;
  box-shadow: 0 10px 25px rgba(7, 31, 55, .18);
}
.assistant-panel h2 {
  margin: 0 0 18px;
  font: 1.8rem Georgia, serif;
}
.assistant-prompts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}
.assistant-prompts button {
  padding: 8px 11px;
  color: var(--navy-700);
  border: 1px solid var(--gold-200);
  border-radius: 999px;
  background: var(--cream-100);
  font-size: .7rem;
}
.assistant-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin-top: 22px;
}
.assistant-panel form input {
  min-height: 51px;
  padding: 0 16px;
  color: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.assistant-answer,
.assistant-privacy {
  margin-top: 22px;
  padding: 22px;
  border-radius: 13px;
  background: var(--cream-100);
  text-align: left;
}
.assistant-answer {
  border-left: 4px solid var(--gold-500);
}
.assistant-answer > span {
  color: var(--gold-700);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .13em;
}
.assistant-answer p {
  color: var(--navy-900);
  font-size: 1rem;
  line-height: 1.7;
}
.assistant-answer small,
.assistant-privacy {
  color: var(--slate-600);
  font-size: .72rem;
  line-height: 1.6;
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 12, 23, .52);
  backdrop-filter: blur(2px);
}
.overlay-dismiss {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
.menu-overlay .mobile-menu,
.notification-drawer {
  position: relative;
  z-index: 1;
}
.notification-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  min-height: 100%;
  padding: 23px;
  color: var(--navy-900);
  background: var(--cream-100);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .22);
  animation: drawer-in .18s ease both;
}
@keyframes drawer-in {
  from {
    transform: translateX(100%);
  }
}
.notification-drawer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 2px 20px;
  border-bottom: 1px solid var(--line);
}
.notification-drawer header span {
  color: var(--gold-700);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .13em;
}
.notification-drawer h2 {
  margin: 3px 0 0;
  font: 1.9rem Georgia, serif;
}
.notification-drawer header button,
.account-close {
  width: 40px;
  height: 40px;
  color: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 1.3rem;
}
.notification-list {
  display: grid;
  gap: 9px;
  padding-top: 15px;
}
.notification-list > button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 8px;
  gap: 10px;
  align-items: start;
  padding: 14px;
  color: var(--navy-900);
  border: 1px solid var(--gold-200);
  border-radius: 11px;
  background: #fff;
  text-align: left;
}
.notification-list > button.read {
  opacity: .62;
  border-color: var(--line);
}
.notification-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--gold-700);
  border-radius: 50%;
  background: var(--gold-100);
  font-weight: 900;
}
.notification-list button > span:nth-child(2) {
  display: grid;
  gap: 4px;
}
.notification-list small {
  color: var(--slate-600);
  line-height: 1.4;
}
.notification-list time {
  color: var(--gold-700);
  font-size: .62rem;
}
.notification-list button > i {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--gold-500);
}
.notification-empty {
  padding: 35px 0;
  color: var(--slate-600);
  text-align: center;
}
.notification-button i {
  display: grid !important;
  width: 17px !important;
  height: 17px !important;
  place-items: center;
  color: var(--navy-950);
  font-size: .54rem;
  font-style: normal;
}
.account-popover {
  position: absolute;
  z-index: 75;
  bottom: 85px;
  left: 19px;
  display: flex;
  width: 250px;
  align-items: center;
  flex-direction: column;
  padding: 22px;
  color: var(--navy-900);
  border: 1px solid var(--gold-300);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
}
.account-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
}
.account-popover > strong {
  margin-top: 10px;
}
.account-popover > small {
  margin-top: 3px;
  color: var(--slate-600);
}
.account-popover > i {
  margin: 8px 0 14px;
  color: var(--gold-700);
  font-size: .66rem;
  font-style: normal;
  text-transform: capitalize;
}
.account-popover .outline-button {
  width: 100%;
}
.payment-link-result {
  display: grid;
  gap: 3px;
  padding: 11px;
  border: 1px solid #a8d3b5;
  border-radius: 9px;
  background: #edf8f0;
  font-size: .68rem;
}
.payment-link-result a {
  overflow: hidden;
  color: #166a34;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.backup-button {
  display: flex;
  text-decoration: none;
}
.upload-receipt {
  cursor: pointer;
}
.printable-reports > a {
  display: grid;
  min-height: 70px;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  color: var(--navy-900);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.printable-reports > a > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.printable-reports > a strong {
  font-size: .78rem;
}
.printable-reports > a small {
  color: var(--slate-600);
  font-size: .65rem;
}
.printable-reports > a > i {
  font-style: normal;
}
@media (max-width: 900px) {
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-brand-panel {
    min-height: 38vh;
    padding: 35px 20px;
  }
  .login-brand-panel img {
    width: 100px;
    height: 100px;
    border-radius: 25px;
  }
  .login-brand-panel > p {
    margin-top: 14px;
    font-size: 2rem;
  }
  .login-brand-panel h1,
  .login-brand-panel .login-copy {
    display: none;
  }
  .login-card {
    width: min(520px, calc(100% - 28px));
    margin: -18px auto 25px;
    padding: 27px 22px;
    border-radius: 20px;
  }
  .dispatch-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .dispatch-stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }
  .dispatch-stats div {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }
  .dispatch-stats span {
    font-size: .55rem;
  }
  .dispatch-stats strong {
    font-size: 1.45rem;
  }
  .dispatch-trips,
  .driver-roster {
    padding: 13px;
  }
  .dispatch-trip-main {
    grid-template-columns: 82px 1fr;
    padding: 11px;
  }
  .dispatch-selects {
    grid-template-columns: 1fr;
  }
  .assistant-panel {
    padding: 21px 14px;
  }
  .assistant-panel form {
    grid-template-columns: 1fr;
  }
  .assistant-panel form .primary-button {
    width: 100%;
  }
  .notification-drawer {
    padding: calc(14px + env(safe-area-inset-top)) 14px 20px;
  }
}
.heading-actions,
.profile-actions,
.vehicle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}
.complete-form {
  padding: 22px;
}
.complete-form > h2,
.data-table-panel > h2,
.outstanding-panel > h2,
.platform-admin > h2 {
  margin: 0 0 17px;
  font: 1.45rem var(--font-cormorant);
}
.form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.form-head h2 {
  margin: 0;
  font: 1.45rem var(--font-cormorant);
}
.form-head button {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}
.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  font-weight: 750;
}
.profile-actions {
  margin-left: auto;
  justify-content: flex-end;
}
.vehicle-actions {
  margin-top: 18px;
}
.upload-photo {
  cursor: pointer;
}
.expense-row-wrap {
  border-bottom: 1px solid var(--line);
}
.expense-row-wrap .expense-row {
  border-bottom: 0;
}
.expense-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  padding: 0 14px 14px 55px;
  color: var(--slate-600);
  font-size: .72rem;
}
.expense-detail p {
  grid-column: 1 / -1;
  margin: 3px 0 0;
}
.waiting-controls {
  display: grid;
  gap: 9px;
  padding: 15px;
  border: 1px solid var(--gold-200);
  border-radius: 11px;
  background: var(--cream-50);
}
.waiting-controls > span,
.waiting-controls label {
  color: var(--slate-600);
  font-size: .72rem;
}
.waiting-controls > div {
  display: flex;
  gap: 7px;
}
.report-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  padding: 15px;
}
.report-filters label,
.add-driver label {
  display: grid;
  gap: 5px;
  color: var(--slate-600);
  font-size: .64rem;
  font-weight: 850;
  text-transform: uppercase;
}
.report-filters input,
.report-filters select,
.add-driver input,
.add-driver select,
.add-driver textarea {
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.data-table-panel {
  padding: 20px;
}
.responsive-table {
  width: 100%;
  overflow-x: auto;
}
.responsive-table table {
  width: 100%;
  border-collapse: collapse;
}
.responsive-table th,
.responsive-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: .75rem;
  white-space: nowrap;
}
.responsive-table th {
  color: var(--slate-600);
  background: var(--cream-100);
  font-size: .63rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.responsive-table td small {
  display: block;
  margin-top: 3px;
  color: var(--slate-600);
}
.table-empty {
  padding: 25px;
  color: var(--slate-600);
  text-align: center;
}
.payment-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 17px;
}
.payment-workspace .complete-form {
  display: grid;
  align-content: start;
  gap: 10px;
}
.outstanding-panel {
  padding: 20px;
}
.outstanding-panel > button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 5px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
.outstanding-panel > button span {
  display: grid;
  gap: 3px;
}
.outstanding-panel > button small {
  color: var(--slate-600);
}
.lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.lead-card {
  display: grid;
  gap: 9px;
  padding: 20px;
}
.lead-card header,
.lead-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
}
.lead-card header time,
.lead-card > a,
.lead-card p {
  color: var(--slate-600);
  font-size: .72rem;
}
.lead-card h2,
.lead-card p,
.lead-card blockquote {
  margin: 0;
}
.lead-card h2 {
  font: 1.35rem var(--font-cormorant);
}
.lead-card blockquote {
  padding: 11px;
  border-left: 3px solid var(--gold-400);
  background: var(--cream-100);
  font-size: .75rem;
  line-height: 1.5;
}
.lead-card select {
  min-height: 38px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.admin-columns {
  display: grid;
  grid-template-columns: minmax(300px, .65fr) minmax(0, 1.35fr);
  gap: 17px;
}
.admin-user {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.admin-user > span:nth-child(2) {
  display: grid;
  gap: 2px;
}
.admin-user small {
  color: var(--slate-600);
}
.admin-user i {
  color: var(--gold-700);
  font-size: .68rem;
  font-style: normal;
  text-transform: capitalize;
}
.complete-form > form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.platform-admin {
  padding: 22px;
}
.platform-admin > article {
  overflow: hidden;
  margin-top: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.platform-admin article header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  background: var(--cream-100);
}
.platform-admin article header div {
  display: grid;
  gap: 3px;
}
.platform-admin article header small {
  color: var(--slate-600);
}
.feature-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.feature-checks label {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 10px;
  background: #fff;
  font-size: .7rem;
  text-transform: capitalize;
}
.provider-info {
  margin: 9px 0 0;
  padding: 10px;
  color: var(--slate-600);
  border-radius: 8px;
  background: var(--cream-100);
  font-size: .69rem;
  line-height: 1.5;
}
.privacy-toggles {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}
.privacy-toggles label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.privacy-toggles label span {
  display: grid;
  gap: 3px;
}
.privacy-toggles small {
  color: var(--slate-600);
  font-size: .65rem;
}
.support-form {
  display: grid;
  gap: 8px;
}
.support-form input,
.support-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.add-driver {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.add-driver summary {
  color: var(--gold-700);
  font-weight: 850;
  cursor: pointer;
}
.add-driver form {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
@media (max-width: 1050px) {
  .report-filters {
    grid-template-columns: repeat(3, 1fr);
  }
  .admin-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .heading-actions,
  .profile-actions,
  .vehicle-actions {
    width: 100%;
  }
  .heading-actions > *,
  .profile-actions > *,
  .vehicle-actions > * {
    flex: 1 1 145px;
  }
  .customer-profile-head .profile-actions {
    margin-left: 0;
  }
  .report-filters,
  .payment-workspace,
  .lead-grid {
    grid-template-columns: 1fr;
  }
  .feature-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .expense-detail {
    grid-template-columns: 1fr;
    padding-left: 14px;
  }
  .expense-detail p {
    grid-column: auto;
  }
  .responsive-table {
    margin: 0 -6px;
    width: calc(100% + 12px);
  }
}
/*# sourceMappingURL=app.css.map */
