@font-face {
  font-family: Inter;
  src: url('/static/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #143731;
  --green: #07554e;
  --muted: #687c76;
  --line: #dce5e1;
  --paper: #fff;
  --soft: #f1f6f3;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}
* {
  box-sizing: border-box;
}
body:has(dialog[open]) {
  overflow: hidden;
}
body {
  margin: 0;
  color: var(--ink);
  background: #f8faf9;
  font:
    14px Inter,
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.45;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #333;
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 1px solid #555;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.eyebrow,
.eyebrow-row,
.sidebar-caption,
.sidebar-footnote,
.page-footer,
.topbar-right {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 400;
}
.sidebar {
  width: 204px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  background: var(--green);
  color: #edf7f3;
  z-index: 20;
  overflow-y: auto;
}
.wordmark {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -2.6px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark span {
  font-size: 32px;
  font-weight: 300;
}
.sidebar-caption {
  color: var(--muted);
  margin: 42px 0 25px;
  font-size: 8px;
}
.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #ffffff17;
  color: inherit;
  padding: 12px 10px;
  background: none;
  text-align: left;
  font-size: 13px;
}
.nav-link > span:last-child {
  font-size: 9px;
  color: #777;
}
.nav-link:hover,
.nav-link.active {
  background: #ffffff16;
}
.nav-link.active {
  box-shadow: inset 3px 0 #bce5ce;
}
.sidebar-story {
  margin-top: 42px;
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.4px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 55px;
}
.connection {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.connection i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #43866a;
}
.connection i.offline {
  background: #b75635;
}
#identity {
  padding: 18px 0 5px;
  border-top: 1px solid var(--line);
}
#identity strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
#identity > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 14px;
}
.sidebar-footnote {
  color: var(--muted);
  margin-top: 30px;
  font-size: 8px;
}
main {
  margin-left: 204px;
}
.topbar {
  height: 68px;
  background: #fff;
  padding: 0 42px;
  display: flex;
  align-items: center;
  gap: 25px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.topbar-right {
  margin-left: auto;
  color: #888;
  font-size: 8px;
}
.content {
  max-width: 1550px;
  margin: auto;
  padding: 26px 42px 0;
}
.eyebrow-row {
  display: flex;
  justify-content: space-between;
  color: #777;
  margin: 0 0 18px;
  font-size: 8px;
}
.hero {
  height: 390px;
  position: relative;
  overflow: hidden;
  background: #c6d3d6;
  border-radius: 12px;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-copy {
  position: absolute;
  top: 36px;
  left: 36px;
  max-width: 65%;
}
.hero-kicker {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: #173832;
}
.hero h1 {
  margin: 20px 0 14px;
  color: #12352f;
  font-size: clamp(38px, 4.3vw, 68px);
  line-height: 1.02;
  font-weight: 550;
  letter-spacing: -2.8px;
}
.hero-copy p {
  font-size: 12px;
  color: #25473e;
}
.hero-aside {
  position: absolute;
  right: 24px;
  bottom: 23px;
  color: #fff;
  font-size: 8px;
  letter-spacing: 1.5px;
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 22px 0 30px;
  border-bottom: 1px solid var(--line);
}
.hero-bottom p {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.6px;
}
.hero-bottom > span {
  font-size: 10px;
  color: #777;
  line-height: 1.7;
}
.section-title {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: 34px 0 20px;
}
.section-title h2 {
  font-size: 24px;
  letter-spacing: -0.8px;
  font-weight: 400;
  margin: 10px 0 0;
}
.section-title h3 {
  font-size: 19px;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.5px;
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.role-choice {
  background: none;
  border: 0;
  text-align: left;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  transition: background 0.3s;
}
.role-choice:last-child {
  border-right: 0;
}
.role-choice:hover,
.role-choice.selected {
  background: var(--soft);
}
.role-choice.selected {
  box-shadow: inset 0 -3px var(--green);
}
.role-choice .eyebrow {
  color: #777;
  font-size: 8px;
}
.role-choice strong {
  display: block;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.9px;
  margin: 23px 0 18px;
  position: relative;
}
.role-choice strong span {
  position: absolute;
  right: 0;
  bottom: 0;
  font-weight: 300;
}
.role-choice small {
  font-size: 10px;
  color: #777;
}
.login-form {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.35fr;
  gap: 18px;
  align-items: end;
  margin-top: 26px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11px;
  color: #555;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  background: #fff;
  color: #111;
  border: 1px solid #d8d8d8;
  border-radius: 7px;
  padding: 13px 14px;
  font-size: 13px;
  min-height: 44px;
}
textarea {
  resize: vertical;
  min-height: 85px;
}
.primary,
.secondary {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 21px;
  min-height: 44px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  transition:
    background 0.25s,
    color 0.25s;
}
.primary:hover {
  background: #086b5f;
}
.primary > span {
  font-size: 18px;
  line-height: 12px;
}
.secondary {
  background: #fff;
  color: #111;
  border-color: #d5d5d5;
}
.secondary:hover {
  background: var(--soft);
  border-color: #333;
}
.text-button {
  border: 0;
  background: none;
  padding: 0;
  font-size: 10px;
  text-align: left;
  color: inherit;
}
.text-button:hover {
  text-decoration: underline;
}
.demo-password {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 10px;
}
.form-error {
  color: #ad3d24;
  font-size: 12px;
  line-height: 1.5;
  grid-column: 1 / -1;
  margin: 0;
}
.form-error:empty {
  display: none;
}
.workspace-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 32px 0 26px;
}
h2 {
  margin: 9px 0 0;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -1.5px;
}
.heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 0 32px;
}
.stat {
  padding: 22px 25px;
  border-right: 1px solid var(--line);
}
.stat:first-child {
  padding-left: 0;
}
.stat:last-child {
  border-right: 0;
}
.stat-label {
  color: #777;
  font-size: 10px;
}
.stat strong {
  display: block;
  margin: 11px 0 5px;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -1.2px;
}
.stat small {
  font-size: 10px;
  color: #888;
}
.filters {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}
.search-label {
  position: relative;
  max-width: 380px;
  width: 100%;
}
.search-label > span {
  position: absolute;
  top: 8px;
  left: 13px;
  font-size: 24px;
}
.search-label input {
  border: 0;
  background: #f7f7f5;
  padding-left: 43px;
}
.filters > select {
  width: 210px;
  border: 0;
  background: #f7f7f5;
}
.table-head,
.order-row {
  display: grid;
  grid-template-columns: 1fr 2.25fr 1.1fr 1.3fr 22px;
  align-items: center;
  gap: 16px;
}
.table-head {
  padding: 15px 0;
  color: #888;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 1px;
}
.order-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
  background: none;
  text-align: left;
}
.order-row:hover {
  background: #fafafa;
}
.order-row strong {
  font-size: 13px;
  font-weight: 500;
}
.order-row small {
  display: block;
  margin-top: 7px;
  color: #888;
  font-size: 10px;
  line-height: 1.5;
}
.order-row .row-title {
  font-size: 12px;
}
.order-row .row-arrow {
  font-size: 24px;
  font-weight: 300;
}
.badge {
  display: inline-block;
  padding: 6px 10px;
  background: #f1f1ee;
  font-size: 9px;
  color: #626259;
  white-space: nowrap;
  border-radius: 30px;
  line-height: 1.3;
}
.badge.CLOSED {
  background: #edf4ef;
  color: #3b6b4a;
}
.badge.CANCELLED {
  background: #f5f0ed;
  color: #8a7264;
}
.badge.SUBMITTED,
.badge.REVIEW_REQUIRED {
  background: #fff3dc;
  color: #99752f;
}
.badge.EN_ROUTE,
.badge.DISPENSING,
.badge.ARRIVED,
.badge.ACCEPTED {
  background: #edf1f4;
  color: #526c80;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.empty > span {
  font-size: 34px;
  font-weight: 250;
}
.empty h3 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 18px 0 9px;
}
.empty p {
  color: #888;
  font-size: 12px;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 320px;
}
.empty .secondary {
  margin-top: 24px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  margin-top: 55px;
  color: #888;
  font-size: 8px;
}
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.vehicle {
  border: 1px solid var(--line);
  padding: 24px;
}
.vehicle h3 {
  font-size: 22px;
  font-weight: 400;
  margin: 20px 0 8px;
  letter-spacing: -0.8px;
}
.vehicle > p {
  font-size: 12px;
  color: #777;
}
.vehicle strong {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 400;
}
.vehicle small {
  font-size: 11px;
  color: #888;
}
.stock-track {
  height: 3px;
  background: #e5e5e5;
  margin-top: 20px;
}
.stock-track meter {
  width: 100%;
  height: 6px;
  display: block;
  accent-color: #555;
}
.ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-row p {
  margin: 0;
  font-size: 12px;
}
.ledger-row small {
  display: block;
  color: #888;
  font-size: 10px;
  margin-top: 8px;
}
.ledger-amount {
  font-size: 17px;
  white-space: nowrap;
}
.ledger-amount.positive {
  color: #46724f;
}
.account-picker {
  max-width: 400px;
  margin: 0 0 25px;
}
.load-more {
  margin-top: 24px;
}
dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: 560px;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 28px 32px;
  overflow-y: auto;
  background: #fff;
  color: #111;
}
dialog::backdrop {
  background: #0005;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.icon-button {
  background: none;
  border: 0;
  font-weight: 300;
  font-size: 30px;
  padding: 0 4px;
  line-height: 1;
}
.dialog-title {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -1.3px;
  margin: 0 0 10px;
}
.dialog-subtitle {
  font-size: 12px;
  color: #777;
  line-height: 1.7;
  margin: 0 0 25px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.form-grid > * {
  min-width: 0;
}
.order-note summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}
.order-note textarea {
  margin-top: 8px;
}
.order-route-status .muted {
  margin-bottom: 4px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
.form-grid fieldset {
  display: contents;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 25px;
  flex-wrap: wrap;
}
.quote-result {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin-top: 25px;
}
.quote-result > strong {
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -1.7px;
  display: block;
  margin: 8px 0;
}
.quote-result p {
  color: #777;
  font-size: 11px;
  line-height: 1.7;
}
.detail-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 28px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.detail-summary dt {
  font-size: 10px;
  color: #888;
  margin: 0 0 8px;
}
.detail-summary dd {
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
}
.detail-summary .full {
  grid-column: 1 / -1;
}
.action-block {
  background: var(--soft);
  padding: 22px;
  margin: 25px 0;
}
.action-block h3 {
  margin: 0 0 17px;
  font-size: 17px;
  font-weight: 400;
}
.action-block .muted {
  font-size: 11px;
}
.action-block form {
  display: grid;
  gap: 15px;
}
.action-block .primary {
  justify-content: center;
}
.timeline {
  margin-top: 30px;
}
.timeline h3 {
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 22px;
}
.timeline-item {
  padding: 0 0 22px 18px;
  border-left: 1px solid var(--line);
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  top: 5px;
  left: -3px;
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #888;
}
.timeline-item p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.timeline-item small {
  display: block;
  font-size: 9px;
  color: #888;
  margin-top: 5px;
}
.danger {
  color: #a3432f;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(90vw, 600px);
  background: #171717;
  color: white;
  padding: 16px 24px;
  z-index: 100;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 5px 30px #0002;
}
.toast.error {
  background: #873820;
}
.review-note {
  border-left: 2px solid #bc944a;
  padding: 12px 16px;
  background: #fff9ed;
  color: #8a6c32;
  font-size: 12px;
  line-height: 1.6;
}
.dialog-loading {
  padding: 60px 0;
  color: #777;
}
.login-form .primary {
  min-height: 44px;
}
.offline-banner {
  color: #a3432f;
}
@media (min-width: 1600px) {
  .hero {
    height: 460px;
  }
  .hero h1 {
    font-size: 74px;
  }
  .content {
    padding-top: 32px;
  }
  .role-choice {
    padding: 30px;
  }
  .role-choice strong {
    font-size: 30px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding: 26px 20px;
  }
  main {
    margin-left: 200px;
  }
  .content {
    padding: 24px 28px 0;
  }
  .topbar {
    padding: 0 28px;
  }
  .hero h1 {
    letter-spacing: -3px;
  }
  .hero {
    height: 330px;
  }
  .hero-aside > span:first-child {
    display: none;
  }
  .role-choice {
    padding: 20px 15px;
  }
  .role-choice strong {
    font-size: 22px;
  }
  .role-choice small {
    font-size: 9px;
  }
  .login-form {
    grid-template-columns: 1fr 1fr;
  }
  .login-form > .primary {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .stat strong {
    font-size: 24px;
  }
  .heading-actions {
    max-width: 240px;
  }
  .heading-actions .secondary {
    padding: 10px 14px;
    font-size: 10px;
  }
  .order-row,
  .table-head {
    grid-template-columns: 0.8fr 1.7fr 1fr 1fr 16px;
    gap: 10px;
  }
  .badge {
    font-size: 8px;
    padding: 6px 8px;
  }
  .topbar-right {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: relative;
    width: 100%;
    padding: 16px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
  }
  .wordmark {
    font-size: 30px;
    width: 85px;
  }
  .wordmark span {
    font-size: 26px;
  }
  .sidebar-caption,
  .sidebar-story,
  .sidebar-footnote,
  .sidebar-bottom .connection {
    display: none;
  }
  .sidebar-bottom {
    padding: 0;
    margin: 0;
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  #identity {
    padding: 0;
    border: 0;
  }
  #identity strong {
    font-size: 10px;
  }
  #identity > span {
    display: none;
  }
  #identity .text-button {
    font-size: 9px;
    margin-top: 7px;
  }
  #navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    gap: 4px;
  }
  .nav-link {
    padding: 12px 10px;
    border: 0;
    font-size: 11px;
    justify-content: center;
  }
  .nav-link > span:last-child {
    display: none;
  }
  .nav-link.active {
    box-shadow: inset 0 -3px var(--green);
  }
  main {
    margin: 0;
  }
  .topbar {
    height: 49px;
    padding: 0 20px;
    font-size: 10px;
  }
  .content {
    padding: 20px 20px 0;
  }
  .hero {
    height: 330px;
  }
  .hero-copy {
    top: 24px;
    left: 22px;
    max-width: 92%;
  }
  .hero h1 {
    font-size: 31px;
    letter-spacing: -1.5px;
  }
  .hero-image {
    object-position: 58% center;
  }
  .hero-copy p {
    max-width: 170px;
    font-size: 10px;
  }
  .hero-aside {
    right: 20px;
    bottom: 20px;
  }
  .hero-arrow {
    font-size: 36px;
  }
  .eyebrow-row {
    font-size: 6px;
    letter-spacing: 1px;
    margin-bottom: 12px;
  }
  .hero-bottom {
    padding: 18px 0 22px;
    display: block;
  }
  .hero-bottom p {
    font-size: 17px;
  }
  .hero-bottom > span {
    display: block;
    margin-top: 10px;
    font-size: 9px;
  }
  .hero-bottom > span br {
    display: none;
  }
  .section-title {
    margin-top: 26px;
    align-items: flex-start;
  }
  .section-title > .muted {
    max-width: 100px;
    text-align: right;
    font-size: 9px;
  }
  .section-title h2 {
    font-size: 21px;
    line-height: 1.3;
  }
  .role-grid {
    grid-template-columns: 1fr;
  }
  .role-choice {
    padding: 17px 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 8px 15px;
  }
  .role-choice:last-child {
    border-bottom: 0;
  }
  .role-choice strong {
    font-size: 18px;
    margin: 0;
    letter-spacing: -0.5px;
  }
  .role-choice strong br {
    display: none;
  }
  .role-choice strong span {
    right: 0;
  }
  .role-choice small {
    grid-column: 2;
  }
  .role-choice.selected {
    box-shadow: inset 3px 0 #bce5ce;
  }
  .role-choice .eyebrow {
    font-size: 7px;
  }
  .login-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .login-form > .primary {
    width: 100%;
    justify-self: auto;
  }
  .demo-password {
    font-size: 9px;
  }
  .workspace-heading {
    margin: 25px 0 22px;
    align-items: flex-start;
  }
  h2 {
    font-size: 29px;
  }
  .heading-actions {
    max-width: 180px;
  }
  .heading-actions > .primary {
    font-size: 10px;
    padding: 13px 15px;
    gap: 12px;
  }
  .heading-actions .secondary {
    font-size: 9px;
  }
  .stats {
    margin-bottom: 25px;
  }
  .stat {
    padding: 18px 12px;
  }
  .stat strong {
    font-size: 20px;
    letter-spacing: -0.8px;
  }
  .stat-label {
    font-size: 9px;
  }
  .stat small {
    font-size: 8px;
  }
  .filters {
    gap: 10px;
  }
  .filters > select {
    width: 140px;
    font-size: 10px;
    padding: 13px 8px;
  }
  .search-label input {
    font-size: 10px;
  }
  .table-head {
    display: none;
  }
  .order-row {
    grid-template-columns: 1fr auto;
    position: relative;
    padding: 20px 28px 20px 0;
    gap: 13px;
  }
  .order-row > div:nth-child(1) {
    grid-column: 1;
  }
  .order-row > div:nth-child(2) {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  .order-row > div:nth-child(3) {
    grid-row: 3;
    grid-column: 1;
  }
  .order-row > div:nth-child(4) {
    grid-row: 1;
    grid-column: 2;
  }
  .order-row > .row-arrow {
    position: absolute;
    right: 0;
    bottom: 22px;
  }
  .order-row small {
    font-size: 10px;
    margin-top: 4px;
  }
  .order-row .row-title {
    font-size: 13px;
  }
  .badge {
    font-size: 9px;
  }
  .fleet-grid {
    grid-template-columns: 1fr;
  }
  .page-footer {
    font-size: 6px;
    letter-spacing: 1px;
    margin-top: 35px;
  }
  dialog {
    padding: 23px 22px;
  }
  .form-grid {
    gap: 17px;
  }
  .dialog-title {
    font-size: 28px;
  }
  .detail-summary {
    gap: 20px;
  }
  .empty {
    padding: 40px 10px;
  }
  .stat strong.money-value {
    font-size: 17px;
  }
  .ledger-row p {
    font-size: 11px;
  }
  .ledger-amount {
    font-size: 14px;
  }
  .hero-aside {
    pointer-events: none;
  }
  .hero h1 {
    z-index: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.driver-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.driver-tools .secondary {
  padding: 12px 16px;
  font-size: 11px;
}
.management-card {
  border: 1px solid var(--line);
  padding: 25px;
  min-width: 0;
}
.management-card h3 {
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.7px;
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.management-card p {
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.management-card .eyebrow {
  font-size: 8px;
  color: var(--muted);
}
.card-price {
  font-size: 35px;
  font-weight: 400;
  letter-spacing: -1px;
}
.card-price small {
  font-size: 12px;
  color: var(--muted);
}
.card-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.card-values span {
  font-size: 10px;
  color: var(--muted);
}
.card-values strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.7px;
  color: var(--ink);
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.card-actions .secondary {
  padding: 12px 16px;
  font-size: 10px;
}
.checkbox-label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.checkbox-label input {
  width: 17px;
  min-height: 17px;
  accent-color: #111;
}
.report-filters {
  display: flex;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
}
.report-filters label {
  min-width: 170px;
}
.download-link {
  text-decoration: none;
}
#custom-login-toggle {
  grid-column: 1 / -1;
  justify-self: start;
}
.sidebar-caption {
  margin-top: 30px;
  margin-bottom: 17px;
}
.sidebar-bottom {
  padding-top: 24px;
}
@media (max-width: 760px) {
  .management-grid {
    grid-template-columns: 1fr;
  }
  #navigation {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .nav-link {
    padding: 11px 6px;
    font-size: 10px;
  }
  .sidebar-bottom {
    padding-top: 0;
  }
  .management-card {
    padding: 22px;
  }
  .report-filters {
    gap: 12px;
  }
  .report-filters label {
    min-width: 0;
    width: calc(50% - 6px);
  }
}

.sidebar .sidebar-caption,
.sidebar .sidebar-footnote,
.sidebar #identity > span,
.sidebar .nav-link > span:last-child {
  color: #a5c8bf;
}
.sidebar .connection,
.sidebar #identity {
  border-color: #ffffff25;
}
.stats {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stat:first-child {
  padding-left: 25px;
}
.management-card,
.vehicle {
  background: #fff;
  border-radius: 10px;
}
.quote-result {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.route-board {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.1fr;
  background: #e7f0e9;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
}
.route-panel {
  background: #fff;
  padding: 25px;
  margin: 12px;
  border-radius: 9px;
}
.route-panel h3 {
  font-size: 20px;
  letter-spacing: -0.7px;
  margin: 14px 0 10px;
  font-weight: 550;
}
.route-panel p {
  line-height: 1.6;
  font-size: 12px;
}
.route-panel .text-button {
  color: var(--green);
  font-size: 12px;
  margin-top: 12px;
}
.route-schematic {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.route-schematic svg {
  width: 100%;
  max-height: 165px;
}
.route-schematic p {
  font-size: 10px;
  color: #4a6e5d;
  line-height: 1.5;
  text-align: center;
}
@media (max-width: 760px) {
  .route-board {
    grid-template-columns: 1fr;
  }
  .route-schematic {
    padding-top: 0;
  }
  .route-schematic svg {
    max-height: 110px;
  }
  .stat:first-child {
    padding-left: 16px;
  }
  .hero-aside {
    font-size: 6px;
  }
}
.history-file-label {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.history-file-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.history-file-label:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.source-hash {
  overflow-wrap: anywhere;
  line-height: 1.7;
  background: var(--soft);
  padding: 12px;
  border-radius: 7px;
}
.import-totals {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
@media (min-width: 761px) and (max-height: 800px) {
  .sidebar-caption {
    margin-top: 18px;
  }
  .sidebar-bottom {
    padding-top: 12px;
  }
  .sidebar-footnote {
    margin-top: 15px;
  }
  .connection {
    padding: 14px 0;
  }
  #identity {
    padding-top: 14px;
  }
  .nav-link {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

body[data-role='client'] .hero {
  height: 280px;
}
body[data-role='client'] .hero h1 {
  font-size: clamp(34px, 3.8vw, 56px);
}
body[data-role='client'] .hero-copy {
  top: 25px;
}
@media (max-width: 760px) {
  body[data-role='client'] .hero h1 {
    font-size: 31px;
  }
  body[data-role='client'] .hero {
    height: 330px;
  }
}
.workbook-source {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 23px;
  background: #fff;
  margin: 25px 0;
}
.workbook-source h3 {
  font-size: 18px;
  margin: 10px 0;
  font-weight: 500;
}
.workbook-source p {
  font-size: 11px;
  line-height: 1.7;
}
.workbook-source .secondary {
  flex-shrink: 0;
}
.workbook-months,
.workbook-issues {
  margin: 25px 0;
}
.workbook-months summary,
.workbook-issues summary {
  cursor: pointer;
  font-weight: 500;
  padding: 12px 0;
}
.workbook-scroll {
  overflow-x: auto;
}
.workbook-month {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 12px;
  width: 100%;
  min-width: 450px;
  padding: 14px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: right;
  background: none;
  font-size: 11px;
}
.workbook-month > span:first-child {
  text-align: left;
}
.workbook-month small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 5px;
}
button.workbook-month:hover {
  background: var(--soft);
}
.workbook-table-head {
  color: var(--muted);
  font-size: 9px;
}
.workbook-search {
  margin-top: 18px;
}
#modal:has(#workbook-source) {
  width: 760px;
}
@media (max-width: 760px) {
  .workbook-source {
    display: block;
  }
  .workbook-source .secondary {
    margin-top: 10px;
  }
}
@media (max-width: 760px) {
  .hero,
  body[data-role='client'] .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    background: #e4ece9;
  }
  .hero-copy,
  body[data-role='client'] .hero-copy {
    position: relative;
    top: auto;
    left: auto;
    order: -1;
    max-width: none;
    padding: 22px;
  }
  .hero h1 {
    margin: 12px 0 0;
  }
  .hero-copy p {
    display: none;
  }
  .hero-image {
    height: 220px;
    object-position: 65% center;
  }
}

.sidebar button:focus-visible,
.sidebar a:focus-visible {
  outline-color: #d2f2df;
}
.icon-button {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
}

.auth-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.registration-form {
  max-width: 860px;
}
.registration-form small {
  color: var(--muted, #5f6e6b);
  font-size: 12px;
  line-height: 1.5;
}
.auth-tabs [aria-pressed='true'] {
  outline: 2px solid #07554e;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  body[data-role] .sidebar {
    padding: 10px 16px;
    gap: 8px;
  }
  body[data-role] .sidebar-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  body[data-role] #identity .text-button {
    margin-top: 3px;
  }
  body[data-role] .sidebar-bottom > a {
    max-width: 90px;
    font-size: 9px;
  }
  body[data-role] #navigation {
    display: flex;
    overflow-x: auto;
    min-width: 0;
    gap: 2px;
  }
  body[data-role] .nav-link {
    width: auto;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 12px;
  }
  body[data-role='client'] .workspace-heading {
    margin-top: 4px;
  }
  body[data-role='client'] .stats {
    grid-template-columns: 1fr;
  }
  body[data-role='client'] .stat,
  body[data-role='client'] .stat:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 5px 10px;
    border-right: 0;
    padding: 12px 16px;
  }
  body[data-role='client'] .stat + .stat {
    border-top: 1px solid var(--line);
  }
  body[data-role='client'] .stat-label {
    font-size: 11px;
  }
  body[data-role='client'] .stat strong {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.5px;
  }
  body[data-role='client'] .stat small {
    grid-column: 1 / -1;
    font-size: 10px;
  }
  dialog {
    inset: 0;
    width: 100%;
    max-width: 100vw;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    border-left: 0;
  }
  dialog:has(#order-form) .dialog-heading {
    margin-bottom: 4px;
  }
  dialog:has(#order-form) .dialog-title {
    font-size: 24px;
    margin-bottom: 6px;
  }
  dialog:has(#order-form) .dialog-subtitle {
    margin-bottom: 12px;
    line-height: 1.4;
  }
  #order-form .form-grid {
    gap: 10px;
  }
  #order-form label {
    gap: 5px;
  }
  #order-form input,
  #order-form select,
  #order-form textarea {
    font-size: 16px;
    padding: 10px;
    max-width: 100%;
  }
  #order-form .form-actions {
    position: sticky;
    bottom: 0;
    margin-top: 10px;
    padding: 8px 0;
    background: #fff;
  }
  #quote-button {
    width: 100%;
    justify-content: center;
  }
}

.order-photos {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.order-photos img,
.photo-preview {
  width: 180px;
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
}
.photo-preview {
  margin: 12px 0;
}
.delivery-map {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: #dce9e3;
  border-radius: 12px;
  isolation: isolate;
  touch-action: none;
}
.map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 36px;
  height: 36px;
  border: 3px solid white;
  border-radius: 50%;
  background: #07554e;
  color: white;
  cursor: pointer;
  z-index: 1;
  box-shadow: 0 2px 5px #0005;
}
.map-pin:focus,
.map-pin:hover {
  z-index: 2;
  background: #173c32;
}
.map-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.map-attribution {
  margin: 4px 0 16px;
  font-size: 12px;
}
.map-order-list {
  display: grid;
  gap: 8px;
}
.map-order-list button {
  text-align: left;
  white-space: normal;
}
#driver-dates input {
  min-width: 0;
}
@media (max-width: 600px) {
  #driver-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .delivery-map {
    height: 300px;
  }
}

#driver-dates label {
  width: 100%;
  min-width: 0;
}
#driver-dates {
  margin-bottom: 18px;
}
@media (min-width: 601px) {
  #driver-dates label {
    width: 170px;
  }
}

.filter-tools { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.filter-tools label { flex: 1 1 180px; min-width: 0; }
.navigation-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0; overflow-wrap: anywhere; }
.pending-notice { display: block; width: 100%; text-align: left; margin: 0 0 20px; cursor: pointer; }
.point-preview { position: relative; overflow: hidden; height: 200px; background: #e7efe9; border-radius: 12px; }
#customers-list .management-card { padding: 20px; }
#customers-list .management-card h3 { margin: 8px 0 12px; font-size: 20px; }
#customers-list .card-values { margin: 12px 0; }
.route-schematic .navigation-links { position: relative; z-index: 1; }
.form-grid .fuel-lines {
  display: block;
  border: 1px solid var(--line, #d9e1df);
  border-radius: 12px;
  padding: 16px;
  margin: 0;
  min-width: 0;
}

.fuel-lines legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.fuel-lines > .form-grid + .form-grid {
  margin-top: 14px;
}

.fuel-positions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fuel-positions button {
  white-space: normal;
  text-align: left;
}

.fuel-sections {
  padding: 8px 0;
}

.fuel-sections strong {
  font-size: 14px;
  letter-spacing: normal;
}

.fuel-sections p {
  margin: 8px 0;
  line-height: 1.5;
}
