@font-face {
  font-family: Vazirmatn;
  src: url("/assets/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --navy: #142b45;
  --teal: #087f8c;
  --orange: #c45100;
  --background: #f4f7fa;
  --ink: #172f46;
  --muted: #526477;
  --border: #dce4ed;
  --success: #10664f;
  --danger: #a62727;
  --white: #ffffff;
  --font: Vazirmatn, Tahoma, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 14px/1.9 var(--font);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button,
input,
select {
  min-height: 46px;
}
button {
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
  color: var(--ink);
  background: transparent;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
button:active:not(:disabled) {
  transform: scale(0.97);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #58b4bd;
  outline-offset: 3px;
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.65;
}
h2 {
  font-size: 19px;
  font-weight: 750;
}
h3 {
  font-size: 15px;
  font-weight: 700;
}
.icon {
  width: 21px;
  height: 21px;
  flex: none;
}
.primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 5px 13px #c4510018;
}
.primary:hover {
  background: #a94400;
  box-shadow: 0 7px 18px #c451002e;
}
.teal {
  background: var(--teal);
  color: white;
}
.teal:hover {
  background: #086d77;
}
.outline {
  border: 1px solid var(--border);
  background: white;
}
.outline:hover {
  border-color: #9ebdc7;
  background: #f8fcfd;
}
.ghost {
  color: var(--teal);
  padding: 7px 10px;
}
.danger {
  color: var(--danger);
  background: #fff0f0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.tiny {
  font-size: 10px;
}
.mono {
  font-family: var(--font);
  direction: ltr;
  display: inline-block;
}
.nowrap {
  white-space: nowrap;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 16px;
}
.gap-sm {
  gap: 8px;
}
.pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 650;
  background: #edf2f7;
  color: #476177;
  white-space: nowrap;
}
.pill.good {
  background: #e4f4ed;
  color: #176849;
}
.pill.warn {
  background: #fff0de;
  color: #89500b;
}
.pill.bad {
  background: #ffebeb;
  color: #a62727;
}
.pill.blue {
  background: #e8effc;
  color: #3a60a0;
}
.pill.teal {
  background: #e4f3f5;
  color: #066772;
}
.dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.side {
  position: fixed;
  right: 0;
  top: 0;
  width: 232px;
  bottom: 0;
  background: white;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 28px 16px;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
}
.brand-emblem {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: var(--navy);
  border-radius: 13px;
  color: white;
  box-shadow: inset -3px -3px 0 #087f8c;
  font-size: 28px;
  font-weight: 850;
}
.brand-name {
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.6px;
  line-height: 1.5;
}
.brand-sub {
  font-size: 9px;
  color: var(--muted);
}
.side-role {
  margin: 35px 12px 10px;
  color: #7b8b99;
  font-size: 10px;
}
.side-nav {
  display: grid;
  gap: 5px;
}
.side-nav button {
  text-align: right;
  justify-content: flex-start;
  width: 100%;
  font-size: 12px;
  color: #617180;
  padding: 12px 14px;
  min-height: 48px;
  border-radius: 9px;
  font-weight: 500;
}
.side-nav button:hover {
  background: #f3f7fa;
  color: var(--ink);
}
.side-nav button.active {
  background: #e8f4f5;
  color: var(--teal);
  font-weight: 750;
}
.side-nav button.active:after {
  content: "";
  margin-right: auto;
  width: 5px;
  height: 20px;
  background: var(--teal);
  border-radius: 4px;
}
.side-nav .icon {
  width: 19px;
  height: 19px;
}
.side-support {
  margin-top: auto;
  background: #f3f7fa;
  border: 1px solid #e5edf2;
  border-radius: 13px;
  padding: 17px 14px;
}
.side-support .icon {
  color: var(--teal);
  width: 28px;
  height: 28px;
  margin-bottom: 7px;
}
.side-support p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0;
}
.side-support button {
  font-size: 10px;
  min-height: 35px;
  padding: 5px 10px;
  background: white;
  border: 1px solid var(--border);
}
.side-footer {
  font-size: 9px;
  color: #7c8e9e;
  padding: 18px 10px 0;
}
.app-main {
  grid-column: 2;
  min-width: 0;
}
.header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: white;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.breadcrumb {
  font-size: 11px;
  color: #718391;
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 600;
}
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f7fa;
  padding: 6px 13px;
  border-radius: 10px;
  width: 260px;
  color: #8597a5;
}
.header-search input {
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 32px;
  font-size: 11px;
  width: 100%;
  outline: 0;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}
.notification-button {
  position: relative;
  padding: 10px;
  border: 1px solid var(--border);
  width: 43px;
  min-height: 43px;
}
.notification-button .dot {
  position: absolute;
  top: 8px;
  left: 10px;
  background: var(--orange);
}
.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 0;
  border-right: 1px solid var(--border);
}
.account-avatar {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: #edf3f6;
  display: grid;
  place-items: center;
  color: var(--teal);
  font-size: 16px;
  font-weight: 800;
}
.account-chip strong {
  font-size: 11px;
}
.account-chip small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.content {
  max-width: 1580px;
  margin: auto;
  padding: 28px 34px 45px;
}
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #536d7b;
  padding: 8px 34px;
  background: #edf5f7;
  border-bottom: 1px solid #dcecef;
}
.demo-bar button {
  font-size: 10px;
  padding: 0 6px;
  min-height: 22px;
  color: var(--teal);
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
}
.page-title p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.hero {
  position: relative;
  min-height: 292px;
  background: var(--navy);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  color: white;
  margin-bottom: 24px;
}
.hero-copy {
  padding: 36px 34px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero-copy h1 {
  font-size: 34px;
  line-height: 1.7;
  font-weight: 850;
  letter-spacing: -1.1px;
  margin: 7px 0 10px;
}
.hero-copy p {
  font-size: 12px;
  color: #c6d9e5;
  max-width: 370px;
  line-height: 2.2;
  margin-bottom: 20px;
}
.hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #add4df;
  font-size: 10px;
}
.hero-label:before {
  content: "";
  width: 22px;
  height: 1px;
  background: #69b8c2;
}
.hero-visual {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #2b627533, transparent 70%);
}
.truck-scene {
  width: 112%;
  max-width: 660px;
  filter: drop-shadow(0 14px 15px #051c3122);
  margin-right: -25px;
}
.hero-route {
  position: absolute;
  top: 26px;
  left: 27px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 7px 12px;
  background: #254459c9;
  backdrop-filter: blur(8px);
  border: 1px solid #42677b;
  border-radius: 8px;
  font-size: 10px;
  color: #d6e6eb;
}
.hero-route .dot {
  color: #7ad2c6;
  box-shadow: 0 0 0 4px #66d9c51c;
}
.hero-bottom {
  position: absolute;
  bottom: 21px;
  left: 25px;
  color: #a9bfcd;
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-copy .primary {
  background: #d86418;
  padding: 12px 20px;
}
.road-dashes {
  animation: road 3s linear infinite;
}
.truck-body {
  animation: truck-suspension 3s ease-in-out infinite;
}
.floating-pin {
  animation: pin-float 4s ease-in-out infinite;
  transform-origin: 593px 100px;
}
.floating-package {
  animation: package-float 5s ease-in-out infinite;
}
.radar-ring {
  animation: radar 20s linear infinite;
  transform-origin: 510px 95px;
}
@keyframes road {
  to {
    stroke-dashoffset: -72;
  }
}
@keyframes truck-suspension {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
@keyframes pin-float {
  50% {
    transform: translateY(-10px);
  }
}
@keyframes package-float {
  50% {
    transform: translate(3px, -7px);
  }
}
@keyframes radar {
  to {
    transform: rotate(360deg);
  }
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 26px;
}
.metric {
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.metric-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 9px;
}
.metric-value {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.metric-value small {
  font-size: 10px;
  font-weight: 500;
  margin-right: 5px;
  letter-spacing: 0;
  color: var(--muted);
}
.metric-note {
  font-size: 9px;
  color: #718493;
  margin-top: 8px;
}
.metric-icon {
  padding: 10px;
  border-radius: 10px;
  background: #eaf5f6;
  color: var(--teal);
  margin-top: 2px;
}
.metric:nth-child(2) .metric-icon {
  background: #fff0e3;
  color: #bb6223;
}
.metric:nth-child(3) .metric-icon {
  background: #eaf0fc;
  color: #5076b5;
}
.metric:nth-child(4) .metric-icon {
  background: #ecf5ed;
  color: #4f8b5b;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr);
  gap: 22px;
  align-items: start;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  gap: 15px;
}
.section-heading h2 {
  font-size: 17px;
}
.section-heading button {
  font-size: 10px;
  padding: 5px 8px;
  min-height: 30px;
}
.surface {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.surface-head {
  padding: 20px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8edf2;
  gap: 14px;
}
.surface-body {
  padding: 22px;
}
.load-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 19px 21px;
  transition:
    transform 0.22s,
    border-color 0.22s,
    box-shadow 0.22s;
  position: relative;
  overflow: hidden;
}
.load-card:hover {
  transform: translateY(-3px);
  border-color: #9ac3cc;
  box-shadow: 0 8px 22px #142b4508;
}
.load-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  color: #7b8e9c;
  margin-bottom: 17px;
}
.load-route {
  display: grid;
  grid-template-columns: 1fr 88px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}
.route-city {
  font-size: 20px;
  font-weight: 750;
}
.route-city small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: #83929c;
  margin-top: 1px;
}
.route-city:last-child {
  text-align: left;
}
.route-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}
.route-line:before {
  content: "";
  position: absolute;
  width: 100%;
  border-top: 1.5px dashed #bdd4dc;
  top: 50%;
}
.route-line .icon {
  position: relative;
  background: white;
  padding: 3px;
  width: 28px;
  height: 28px;
  transform: scaleX(-1);
}
.load-meta {
  display: flex;
  gap: 15px;
  padding: 11px 0;
  border-top: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
  color: #5f7485;
  font-size: 10px;
  flex-wrap: wrap;
}
.load-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.load-meta .icon {
  width: 14px;
  height: 14px;
  color: #8ba0ad;
}
.load-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.load-price {
  font-size: 15px;
  font-weight: 750;
}
.load-price small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
}
.load-card-bottom button {
  font-size: 10px;
  min-height: 36px;
  padding: 7px 12px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.dashboard-grid .cards-grid {
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.dashboard-grid .load-card {
  padding: 16px;
}
.map-panel {
  height: 313px;
  background: #e8eef1;
  position: relative;
  z-index: 1;
}
.map-panel.large {
  height: 380px;
}
.map-bottom {
  padding: 14px 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: white;
  font: 700 13px var(--font);
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid white;
  box-shadow: 0 3px 8px #142b4544;
}
.map-pin.delivery {
  background: var(--orange);
}
.osm-marker {
  background: none;
  border: none;
}
.leaflet-container {
  font-family: var(--font) !important;
}
.leaflet-control-attribution {
  direction: ltr;
  font-size: 9px !important;
}
.leaflet-tooltip {
  font-family: var(--font) !important;
}
.map-error {
  position: absolute;
  bottom: 35px;
  right: 10px;
  left: 10px;
  z-index: 700;
  background: #fff3e5;
  color: #8a410b;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 10px;
}
.map-key {
  display: flex;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
}
.map-key span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-key .dot {
  background: var(--teal);
}
.map-key span:last-child .dot {
  background: var(--orange);
}
.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #edf1f5;
}
.activity-item:last-child {
  border: 0;
}
.activity-icon {
  padding: 8px;
  border-radius: 9px;
  background: #edf6f6;
  color: var(--teal);
}
.activity-icon .icon {
  width: 17px;
  height: 17px;
}
.activity-item strong {
  font-size: 11px;
}
.activity-item p {
  font-size: 10px;
  color: var(--muted);
}
.activity-item small {
  font-size: 9px;
  color: #91a0aa;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 23px;
  flex-wrap: wrap;
}
.filters input {
  min-width: 150px;
  flex: 1;
}
.filters select {
  width: 170px;
}
.filters .icon {
  color: var(--teal);
  margin: 0 3px;
}
.tabs {
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  overflow: auto;
}
.tabs button {
  font-size: 11px;
  white-space: nowrap;
  border-radius: 0;
  min-height: 47px;
  padding: 8px 18px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
}
.tabs button.active {
  border-color: var(--teal);
  color: var(--teal);
  font-weight: 750;
}
.tabs button span {
  display: inline-block;
  background: #e8eef3;
  border-radius: 5px;
  font-size: 9px;
  padding: 0 6px;
  margin-right: 7px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: right;
}
th {
  font-size: 10px;
  font-weight: 500;
  color: #718492;
  background: #f8fafc;
}
th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid #e9eff4;
  white-space: nowrap;
}
td .ghost {
  font-size: 10px;
  min-height: 32px;
  padding: 4px 7px;
}
tr:last-child td {
  border: 0;
}
.empty {
  text-align: center;
  padding: 55px 25px;
}
.empty > .icon {
  height: 45px;
  width: 45px;
  color: #91b6c2;
  margin-bottom: 16px;
}
.empty h3 {
  font-size: 16px;
}
.empty p {
  max-width: 430px;
  margin: 10px auto 22px;
  color: var(--muted);
  font-size: 11px;
}
.empty button {
  font-size: 11px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
}
.field small {
  font-weight: 400;
  font-size: 9px;
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid #cbd7e0;
  background: white;
  color: var(--ink);
  border-radius: 9px;
  padding: 10px 12px;
  width: 100%;
  font-size: 12px;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #8a9ca9;
  font-size: 11px;
}
textarea {
  min-height: 85px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 19px;
}
.full {
  grid-column: 1/-1;
}
.field-title {
  margin: 7px 0 16px;
  font-size: 15px;
}
.form-separator {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.notice {
  padding: 13px 16px;
  background: #edf6f7;
  border: 1px solid #cee6e9;
  border-radius: 10px;
  color: #246573;
  font-size: 10px;
  line-height: 2;
}
.notice.warning {
  background: #fff5e9;
  border-color: #f1dfc7;
  color: #855014;
}
.notice.error {
  background: #fff1f1;
  border-color: #efcaca;
  color: #a22c2c;
}
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: #0c213a80;
  backdrop-filter: blur(5px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  animation: backdrop-in 0.18s ease-out;
}
.dialog {
  width: 740px;
  max-width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 19px;
  box-shadow: 0 30px 100px #0c213a33;
  animation: dialog-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dialog.wide {
  width: 1020px;
}
.dialog-head {
  padding: 23px 27px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.dialog-head h2 {
  font-size: 18px;
}
.dialog-head .close {
  padding: 6px;
  min-height: 34px;
  min-width: 34px;
}
.dialog-body {
  padding: 25px 27px;
  overflow: auto;
}
.dialog-foot {
  padding: 18px 27px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.dialog-error {
  margin-bottom: 18px;
}
.steps {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 27px;
  background: #f7fafc;
  border-bottom: 1px solid var(--border);
}
.step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #92a2af;
  font-size: 10px;
}
.step > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #d2dee6;
  border-radius: 50%;
  font-size: 10px;
  background: white;
}
.step.active {
  color: var(--teal);
  font-weight: 700;
}
.step.active > span {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.step.done > span {
  background: #deefed;
  color: var(--teal);
  border-color: #b8dcd8;
}
.step .icon {
  width: 15px;
  height: 15px;
}
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.choice {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: right;
  justify-content: flex-start;
  align-items: flex-start;
}
.choice.active {
  border: 2px solid var(--teal);
  background: #f1f9f9;
  padding: 17px;
}
.choice .icon {
  color: var(--teal);
  margin-top: 4px;
}
.choice strong {
  display: block;
  font-size: 12px;
}
.choice small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
}
.price-summary {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-size: 11px;
  border-bottom: 1px solid #edf1f5;
}
.price-row:last-child {
  border: 0;
}
.price-row.total {
  background: #eaf6f4;
  color: var(--teal);
  font-size: 15px;
  font-weight: 750;
  padding: 17px 18px;
}
.timeline {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 25px 12px 28px;
  position: relative;
}
.timeline:before {
  content: "";
  position: absolute;
  right: 45px;
  left: 45px;
  height: 2px;
  background: #d9e5ec;
  top: 41px;
}
.timeline-step {
  position: relative;
  text-align: center;
  font-size: 9px;
  color: #8193a2;
  flex: 1;
  max-width: 100px;
}
.timeline-step b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #edf2f6;
  border: 3px solid white;
  position: relative;
  margin: 0 auto 8px;
}
.timeline-step.done {
  color: var(--teal);
}
.timeline-step.done b {
  background: var(--teal);
  color: white;
}
.timeline-step.current b {
  box-shadow: 0 0 0 4px #087f8c1c;
  animation: status-pulse 2s infinite;
}
.timeline-step .icon {
  width: 15px;
  height: 15px;
}
.file-upload {
  padding: 20px;
  border: 1px dashed #a1bcc9;
  border-radius: 12px;
  text-align: center;
  background: #fafcfd;
  position: relative;
}
.file-upload .icon {
  width: 30px;
  height: 30px;
  color: var(--teal);
  margin: 0 auto 8px;
}
.file-upload input {
  padding: 8px;
  background: white;
  font-size: 10px;
  margin-top: 12px;
}
.file-upload p {
  font-size: 10px;
  color: var(--muted);
}
.document-preview {
  height: 140px;
  width: 100%;
  object-fit: contain;
  background: #f0f5f8;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.record-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}
.record-card h3 {
  margin-bottom: 10px;
}
.record-card + .record-card {
  margin-top: 14px;
}
.record-card .form-grid {
  margin-top: 15px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  gap: 15px;
  align-items: start;
  overflow: auto;
}
.kanban-column {
  background: #eaf0f5;
  border-radius: 13px;
  padding: 13px;
  min-width: 230px;
  min-height: 250px;
}
.kanban-title {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 4px 15px;
}
.kanban-title span {
  font-size: 10px;
  background: white;
  padding: 1px 8px;
  border-radius: 5px;
}
.kanban .load-card {
  padding: 13px;
  margin-bottom: 13px;
}
.kanban .route-city {
  font-size: 16px;
}
.kanban .load-route {
  grid-template-columns: 1fr 45px 1fr;
  gap: 5px;
}
.kanban .load-meta {
  font-size: 9px;
  gap: 7px;
}
.kanban .load-card-top {
  font-size: 9px;
}
.kanban .load-card-bottom {
  flex-wrap: wrap;
}
.footer-note {
  padding: 30px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #8a9aa7;
}
.toast {
  position: fixed;
  bottom: 27px;
  left: 27px;
  padding: 15px 22px;
  border: 1px solid #33526c;
  background: var(--navy);
  color: white;
  border-radius: 12px;
  font-size: 12px;
  box-shadow: 0 12px 35px #142b4522;
  z-index: 150;
  animation: toast-in 0.3s ease-out;
  max-width: 450px;
}
.busy-indicator {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--teal);
  transform-origin: right;
  animation: busy 1s ease-in-out infinite;
  z-index: 200;
}
.offline-bar {
  padding: 11px;
  background: #9f2929;
  color: white;
  text-align: center;
  font-size: 11px;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: white;
}
.login-art {
  background: var(--navy);
  padding: 42px 55px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.login-art .brand-name {
  color: white;
}
.login-art .brand-sub {
  color: #aac4d1;
}
.login-art .brand-emblem {
  background: #087f8c;
  box-shadow: none;
}
.login-art h1 {
  font-size: 43px;
  letter-spacing: -1.5px;
  line-height: 1.8;
  max-width: 450px;
  margin: 35px 0 12px;
}
.login-art p {
  color: #b8cfdd;
  font-size: 12px;
  max-width: 380px;
  line-height: 2.3;
}
.login-art .truck-scene {
  align-self: center;
  margin: -20px -80px 0 0;
  width: 115%;
}
.login-art-footer {
  display: flex;
  gap: 20px;
  font-size: 10px;
  color: #aac6d4;
  z-index: 2;
}
.login-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-box {
  max-width: 420px;
  width: 100%;
}
.login-box h2 {
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.7px;
}
.login-box > p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 28px;
}
.persona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-bottom: 22px;
}
.persona {
  border: 1px solid var(--border);
  background: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  padding: 18px;
  gap: 7px;
  position: relative;
}
.persona.active {
  border: 2px solid var(--teal);
  background: #f0f9f9;
  padding: 17px;
}
.persona .icon {
  width: 25px;
  height: 25px;
  color: var(--teal);
  margin-bottom: 3px;
}
.persona strong {
  font-size: 12px;
}
.persona small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.persona.active:after {
  content: "✓";
  position: absolute;
  top: 10px;
  left: 13px;
  color: var(--teal);
}
.login-form .field {
  margin-bottom: 16px;
}
.login-form > .primary {
  width: 100%;
  margin-top: 8px;
  min-height: 49px;
}
.login-foot {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 10px;
  color: #8396a4;
}
.otp-display {
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  letter-spacing: 7px;
  color: var(--teal);
  font-weight: 800;
  direction: ltr;
  text-align: center;
  padding: 10px;
}
.inbox-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.inbox-item.unread {
  background: #f1f9f9;
}
.inbox-item p {
  font-size: 11px;
}
.inbox-item small {
  font-size: 9px;
  color: var(--muted);
}
.popover {
  position: absolute;
  top: 70px;
  left: 30px;
  width: 345px;
  max-height: 460px;
  overflow: auto;
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 15px 45px #142b4522;
  border-radius: 14px;
  z-index: 60;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
}
.detail-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1f5;
  font-size: 11px;
}
.detail-line span {
  color: var(--muted);
}
.detail-line strong {
  font-weight: 600;
  text-align: left;
}
.article-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 2.2;
  margin-top: 15px;
}
.mini-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 100px;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-top: 15px;
}
.mini-bar {
  width: 24px;
  background: var(--teal);
  border-radius: 4px 4px 0 0;
  min-height: 3px;
  position: relative;
  transition: height 0.6s;
}
.mini-bar small {
  position: absolute;
  bottom: 100%;
  font-size: 9px;
  width: 100%;
  text-align: center;
}
.animate-page {
  animation: page-in 0.35s ease-out;
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes toast-in {
  from {
    transform: translateX(-25px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes busy {
  0% {
    transform: scaleX(0.05);
  }
  70% {
    transform: scaleX(0.8);
  }
  100% {
    transform: scaleX(1);
    opacity: 0.2;
  }
}
@keyframes status-pulse {
  50% {
    box-shadow: 0 0 0 7px #087f8c0d;
  }
}
@media (min-width: 1750px) {
  .content {
    padding-top: 35px;
  }
  .hero {
    min-height: 330px;
  }
  .hero-copy h1 {
    font-size: 38px;
  }
  .hero-copy {
    padding-right: 42px;
  }
  .dashboard-grid {
    grid-template-columns: 1.8fr 1fr;
  }
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 208px minmax(0, 1fr);
  }
  .side {
    width: 208px;
    padding: 25px 12px;
  }
  .brand-name {
    font-size: 16px;
  }
  .content {
    padding: 25px;
  }
  .header {
    padding: 0 25px;
  }
  .hero-copy h1 {
    font-size: 28px;
  }
  .hero-copy {
    padding: 27px;
  }
  .hero {
    min-height: 265px;
  }
  .hero-visual .truck-scene {
    width: 135%;
    margin-right: -80px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-search {
    width: 190px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 24px;
  }
  .account-chip .account-info {
    display: none;
  }
  .kanban {
    grid-template-columns: repeat(4, minmax(230px, 1fr));
  }
}
@media (max-width: 850px) {
  .app-shell {
    display: block;
  }
  .side {
    position: static;
    width: 100%;
    padding: 15px 20px;
    bottom: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }
  .side-nav {
    display: flex;
    overflow: auto;
    gap: 2px;
  }
  .side-nav button {
    font-size: 0;
    width: 43px;
    padding: 10px;
    min-height: 43px;
  }
  .side-nav button .icon {
    width: 21px;
    height: 21px;
  }
  .side-nav button.active:after,
  .side-role,
  .side-support,
  .side-footer {
    display: none;
  }
  .side .brand {
    padding: 0;
  }
  .header {
    height: 65px;
    padding: 0 20px;
  }
  .header-search {
    width: 100%;
    max-width: 220px;
  }
  .breadcrumb {
    display: none;
  }
  .account-chip {
    padding: 0;
    border: 0;
  }
  .header-tools {
    gap: 8px;
  }
  .demo-bar {
    padding: 7px 20px;
  }
  .content {
    padding: 22px 20px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 14px;
  }
  .metric-icon {
    padding: 6px;
  }
  .metric-icon .icon {
    width: 17px;
    height: 17px;
  }
  .metric-label {
    font-size: 9px;
  }
  .metric-note {
    display: none;
  }
  .metric-value {
    font-size: 23px;
  }
  .login-screen {
    grid-template-columns: 1fr 1fr;
  }
  .login-art {
    padding: 30px;
  }
  .login-art h1 {
    font-size: 31px;
  }
  .login-art .truck-scene {
    margin: 0 -70px 0 0;
    width: 155%;
  }
  .login-area {
    padding: 30px;
  }
  .persona {
    padding: 13px;
  }
  .persona.active {
    padding: 12px;
  }
  .dialog-backdrop {
    padding: 15px;
  }
  .hero-copy p {
    font-size: 11px;
  }
  .hero {
    grid-template-columns: 1fr 0.9fr;
  }
  .hero-copy {
    padding: 25px;
  }
  .hero-copy h1 {
    font-size: 27px;
  }
  .hero-route {
    top: 18px;
    left: 18px;
    font-size: 9px;
  }
  .hero-bottom {
    font-size: 8px;
    bottom: 12px;
  }
  .detail-grid {
    gap: 18px;
  }
}
@media (max-width: 600px) {
  .side {
    padding: 13px 15px;
  }
  .brand-name {
    font-size: 15px;
  }
  .brand-sub {
    font-size: 8px;
  }
  .brand-emblem {
    width: 37px;
    height: 37px;
    font-size: 23px;
    border-radius: 10px;
  }
  .side-nav {
    max-width: 49%;
  }
  .side-nav button {
    width: 36px;
    padding: 8px;
    min-height: 36px;
  }
  .side-nav button .icon {
    width: 19px;
    height: 19px;
  }
  .header {
    padding: 0 16px;
    height: 61px;
  }
  .header-search {
    max-width: 205px;
  }
  .header-search input {
    font-size: 10px;
  }
  .header-tools > .ghost {
    padding: 5px;
    min-height: 35px;
  }
  .account-avatar {
    width: 34px;
    height: 34px;
  }
  .notification-button {
    width: 36px;
    min-height: 36px;
    padding: 8px;
  }
  .demo-bar {
    font-size: 9px;
    padding: 7px 16px;
  }
  .demo-bar .secondary-note {
    display: none;
  }
  .content {
    padding: 20px 15px 35px;
  }
  .page-title {
    margin-bottom: 18px;
  }
  .page-title h1 {
    font-size: 23px;
  }
  .page-title p {
    font-size: 10px;
  }
  .page-title button {
    padding: 9px 12px;
    font-size: 11px;
  }
  .hero {
    display: block;
    min-height: 405px;
    border-radius: 15px;
  }
  .hero-copy {
    padding: 25px;
    align-items: flex-start;
  }
  .hero-copy h1 {
    font-size: 29px;
    margin: 5px 0 7px;
  }
  .hero-copy p {
    max-width: 220px;
    font-size: 11px;
    margin-bottom: 15px;
  }
  .hero-copy .primary {
    padding: 10px 17px;
    font-size: 11px;
    z-index: 3;
  }
  .hero-visual {
    position: absolute;
    bottom: -8px;
    left: -30px;
    width: 350px;
    height: 230px;
    justify-content: flex-end;
    pointer-events: none;
  }
  .hero-visual .truck-scene {
    width: 370px;
    margin: 0;
  }
  .hero-route {
    top: auto;
    bottom: 192px;
    left: 28px;
    font-size: 8px;
    padding: 5px 8px;
  }
  .hero-bottom {
    bottom: 10px;
    left: 30px;
  }
  .hero-label {
    font-size: 9px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 23px;
  }
  .metric {
    padding: 15px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-value {
    font-size: 25px;
  }
  .metric-note {
    display: block;
    font-size: 8px;
  }
  .metric-icon {
    padding: 8px;
  }
  .cards-grid,
  .dashboard-grid .cards-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid > aside {
    display: block;
  }
  .dashboard-grid > aside > .surface {
    margin-bottom: 18px;
  }
  .dashboard-grid {
    gap: 20px;
  }
  .surface-head {
    padding: 17px;
  }
  .surface-body {
    padding: 17px;
  }
  .load-card {
    padding: 18px;
  }
  .load-route {
    margin-bottom: 14px;
  }
  .route-city {
    font-size: 21px;
  }
  .filters {
    gap: 8px;
    padding: 12px;
  }
  .filters select {
    width: calc(50% - 5px);
    font-size: 11px;
  }
  .filters input {
    min-width: 100%;
    font-size: 11px;
  }
  .filters > .icon {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .dialog-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .dialog,
  .dialog.wide {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
  }
  .dialog-head {
    padding: 19px;
  }
  .dialog-head h2 {
    font-size: 17px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-foot {
    padding: 15px 19px;
  }
  .dialog-foot button {
    font-size: 11px;
    padding: 10px 13px;
  }
  .steps {
    padding: 14px 17px;
    gap: 3px;
  }
  .step {
    flex-direction: column;
    font-size: 9px;
    gap: 6px;
  }
  .step > span {
    width: 25px;
    height: 25px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .map-panel {
    height: 290px;
  }
  .map-panel.large {
    height: 300px;
  }
  .choice-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .choice {
    padding: 14px;
  }
  .choice.active {
    padding: 13px;
  }
  .choice .icon {
    width: 19px;
    height: 19px;
  }
  .choice strong {
    font-size: 11px;
  }
  .choice small {
    font-size: 9px;
  }
  .footer-note {
    font-size: 8px;
    gap: 12px;
  }
  .footer-note span:last-child {
    display: none;
  }
  .login-screen {
    display: block;
  }
  .login-art {
    padding: 23px 26px;
    min-height: 260px;
    display: block;
  }
  .login-art .brand {
    padding: 0;
  }
  .login-art h1 {
    font-size: 25px;
    max-width: 220px;
    margin: 26px 0 6px;
  }
  .login-art p {
    font-size: 10px;
    max-width: 180px;
  }
  .login-art .truck-scene {
    position: absolute;
    left: -40px;
    bottom: -15px;
    width: 290px;
    margin: 0;
    opacity: 0.9;
  }
  .login-art-footer {
    display: none;
  }
  .login-area {
    padding: 30px 25px;
  }
  .login-box h2 {
    font-size: 24px;
  }
  .login-box > p {
    font-size: 11px;
    margin-bottom: 20px;
  }
  .persona {
    padding: 16px;
  }
  .persona.active {
    padding: 15px;
  }
  .login-foot {
    margin-top: 22px;
  }
  .timeline {
    overflow: auto;
    justify-content: flex-start;
    gap: 7px;
  }
  .timeline-step {
    min-width: 70px;
  }
  .timeline:before {
    left: 20px;
  }
  .table-wrap th,
  .table-wrap td {
    padding: 12px 14px;
  }
  .popover {
    position: fixed;
    top: 133px;
    left: 15px;
    right: 15px;
    width: auto;
  }
  .inbox-item {
    padding: 14px;
  }
  .toast {
    left: 15px;
    right: 15px;
    bottom: 20px;
    font-size: 11px;
  }
  .map-key {
    font-size: 9px;
  }
  .map-bottom {
    font-size: 9px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .kanban {
    gap: 10px;
  }
  .hero-copy .primary .icon {
    width: 17px;
    height: 17px;
  }
}
.wizard-stage{animation:wizard-stage-enter .24s ease-out}
.field [aria-invalid="true"]{border-color:var(--danger);box-shadow:0 0 0 3px #a6272710}
@keyframes wizard-stage-enter{from{opacity:.5;transform:translateX(-8px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.wizard-stage{animation:none}}
.offer-comparison{border-top:1px solid var(--border);margin-top:28px;padding-top:24px}.offer-comparison .section-heading{margin-bottom:16px}.offer-comparison-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.offer-comparison-card{border:1px solid var(--border);border-radius:15px;overflow:hidden;background:white;display:flex;flex-direction:column}.offer-person{padding:18px;display:flex;align-items:center;gap:10px}.offer-person h4{margin:0;font-size:14px}.offer-person p{margin:3px 0 0;font-size:11px;color:var(--muted)}.offer-avatar{display:grid;place-items:center;width:38px;height:38px;flex:none;background:#e8f3f4;color:var(--teal);border-radius:50%}.offer-amount{display:flex;flex-direction:column;gap:4px;padding:0 18px 18px}.offer-amount small,.offer-amount span{font-size:11px;color:var(--muted)}.offer-amount strong{font-size:23px;color:var(--navy);font-weight:800}.offer-actions{border-top:1px solid var(--border);padding:12px;display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;background:#f8fafc}.offer-actions button{font-size:12px;flex:1;white-space:nowrap}.offer-waiting{display:flex;align-items:center;gap:14px;padding:24px;background:#f4f8fa;border-radius:14px;color:var(--muted);font-size:13px}.offer-history{margin-block:20px}.offer-history>summary{cursor:pointer;min-height:46px;font-size:13px;color:var(--muted)}.offer-history .offer-person{flex-wrap:wrap}.offer-history .offer-amount strong{font-size:18px}.offer-comparison>.small{margin-top:18px;line-height:2}
@media(max-width:650px){.offer-comparison-grid{grid-template-columns:1fr}.offer-person{padding:16px}.offer-amount strong{font-size:22px}.offer-actions{padding:10px}.offer-waiting{align-items:flex-start;padding:18px}}
.preparation-checklist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-block:18px}.preparation-checklist>div{border:1px solid var(--border);background:#f7f9fb;display:flex;gap:10px;align-items:center;padding:16px;border-radius:12px;color:var(--muted);font-size:12px}.preparation-checklist>div.complete{background:#eaf5f0;border-color:#b9d9cb;color:var(--success)}
@media(max-width:650px){.preparation-checklist{grid-template-columns:1fr;gap:8px}.preparation-checklist>div{padding:12px}}
.wallet-overview{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-block:24px}.wallet-overview>div{padding:26px;border-radius:18px;display:flex;align-items:flex-start;flex-direction:column;gap:12px;border:1px solid var(--border)}.wallet-balance{background:var(--navy);color:white}.wallet-balance>span{color:#d1e7ed}.wallet-overview strong{font-size:32px;line-height:1.7;font-weight:800}.wallet-overview p{font-size:12px;line-height:2;margin:0;max-width:48ch}.wallet-balance p{color:#d1e7ed}.wallet-available{background:white}.wallet-available>span{color:var(--teal)}.wallet-overview button{margin-top:auto}.wallet-balance.in-debt{border-inline-start:5px solid #f4aa91}.wallet-explanation p{margin-top:6px;line-height:2}.wallet-ledger-empty{text-align:center;padding:30px!important;color:var(--muted);font-size:13px}
@media(max-width:650px){.wallet-overview{grid-template-columns:1fr;gap:12px;margin-block:18px}.wallet-overview>div{padding:22px}.wallet-overview strong{font-size:28px}}
button.inbox-item{width:100%;text-align:start;justify-content:flex-start;border-radius:0;white-space:normal;line-height:1.9;align-items:flex-start;font-weight:400}.notification-next{display:block;color:var(--teal);font-size:11px;margin-top:5px}button.inbox-item:focus-visible{outline-offset:-4px}
.body-picker{border:0;padding:0;margin:0 0 24px;min-width:0}.body-picker legend{font-size:13px;font-weight:700;margin-bottom:12px}.body-picker-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.body-option{position:relative;cursor:pointer;min-width:0}.body-option input{position:absolute;inset-inline-end:12px;top:12px;z-index:1;width:17px;height:17px;min-height:0;margin:0;accent-color:var(--teal);cursor:pointer}.body-vehicle-card{display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid var(--border);border-radius:14px;background:#f8fafc;padding:25px 16px 14px;transition:border-color .2s,background .2s,box-shadow .2s}.body-vehicle-card svg{width:100%;max-width:150px;transition:transform .25s}.body-vehicle-card strong{font-size:14px;font-weight:650}.body-option input:checked+.body-vehicle-card{background:#edf7f7;border-color:var(--teal);box-shadow:0 0 0 1px var(--teal)}.body-option input:checked+.body-vehicle-card svg{transform:translateX(-3px)}.body-option input:focus-visible+.body-vehicle-card{outline:3px solid #58b4bd;outline-offset:3px}
@media(max-width:650px){.body-picker-options{grid-template-columns:1fr 1fr;gap:10px}.body-vehicle-card{padding:24px 14px 12px}}
@media(prefers-reduced-motion:reduce){.body-vehicle-card,.body-vehicle-card svg{transition:none}.body-option input:checked+.body-vehicle-card svg{transform:none}}
.body-option input{padding:0;border:0;box-shadow:none;background:none}
.route-filter-panel{background:white;border:1px solid var(--border);border-radius:14px;margin-block:0 20px;overflow:hidden}.route-filter-panel>summary{display:flex;gap:10px;align-items:center;cursor:pointer;padding:15px 18px;font-size:13px;font-weight:650;min-height:48px}.route-filter-panel>summary:focus-visible{outline:3px solid var(--teal);outline-offset:-4px}.route-filter-panel>form{padding:4px 18px 18px;margin:0}.route-filter-panel>form>.row{align-self:end;min-height:48px}
.review-document-title{display:block;padding:8px 12px;text-align:center;font-size:12px;color:var(--ink);background:#f4f7fa;border-radius:0 0 10px 10px}

.cargo-photos{margin-block:1.5rem;padding:1rem;border:1px solid var(--line,#dbe4eb);border-radius:18px}.cargo-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.cargo-photo-grid figure{margin:0;padding:8px;background:#f4f7fa;border-radius:12px}.cargo-photo-grid img{width:100%;height:180px;object-fit:contain;border-radius:8px}.cargo-photos input{max-width:100%}

.rating-stars,.driver-rating{color:#a75c00}.rating-summary{padding:24px;margin-block:18px;background:linear-gradient(120deg,#fff8e6,#fff)}.rating-summary>span{font-size:42px;color:#c45100;display:inline-block;margin-inline-end:15px}.rating-picker{display:flex;gap:8px;flex-wrap:wrap;border:0;padding:12px 0}.rating-picker label{position:relative;cursor:pointer}.rating-picker input{position:absolute;opacity:0}.rating-picker span{display:block;border:1px solid #dbe4eb;border-radius:12px;padding:12px 16px;transition:transform .18s ease,background .18s ease}.rating-picker input:checked+span{background:#142b45;color:white;transform:translateY(-3px)}.rating-picker input:focus-visible+span{outline:3px solid #087f8c;outline-offset:3px}.rating-picker legend{font-weight:700;margin-block-end:8px}@media(prefers-reduced-motion:reduce){.rating-picker span{transition:none}}
/* The route is the organizing element of the load dossier. */
.journey-banner{display:flex;align-items:center;gap:22px;padding:28px;background:var(--navy);color:white;border-radius:20px 20px 0 0}.journey-banner h2{margin:0 0 8px;font-size:clamp(20px,2vw,28px)}.journey-banner p{margin:0;max-width:70ch;color:#d6e8ef;line-height:1.9}.journey-symbol{display:grid;place-items:center;width:76px;height:76px;flex-shrink:0;border:1px solid #608395;border-radius:50%}.journey-symbol svg{width:40px;height:40px}.journey-banner .journey-alert{color:#ffd4a5;margin-top:8px}.journey-track{display:flex;list-style:none;margin:0;padding:24px 12px;background:white;overflow-x:auto;border-bottom:1px solid var(--border)}.journey-track li{position:relative;flex:1;min-width:110px;display:grid;justify-items:center;gap:9px;text-align:center;color:var(--muted);font-size:12px}.journey-track li:before{content:'';position:absolute;top:17px;inset-inline:0;height:2px;background:var(--border)}.journey-track li:first-child:before{inset-inline-start:50%}.journey-track li:last-child:before{inset-inline-end:50%}.journey-track li>span{z-index:1;display:grid;place-items:center;width:36px;height:36px;background:#f4f7fa;border:2px solid var(--border);border-radius:50%}.journey-track li.done>span{background:var(--teal);border-color:var(--teal);color:white}.journey-track li.current>span{background:var(--navy);border-color:var(--orange);color:white;box-shadow:0 0 0 5px #c4510015}.journey-track li.current{color:var(--navy)}.journey-track svg{width:18px;height:18px}.journey-nav{display:flex;gap:0;overflow-x:auto;background:white;border-radius:0 0 16px 16px;border-bottom:2px solid var(--teal)}.journey-nav a{flex:1;white-space:nowrap;text-align:center;padding:16px;color:var(--navy);text-decoration:none;font-weight:700}.journey-nav a:hover,.journey-nav a:focus-visible{background:#e8f4f5;color:var(--teal)}.journey-actions{display:flex;flex-wrap:wrap;gap:10px;padding-block:20px}.journey-section{scroll-margin-top:20px;background:white;padding:24px;margin-bottom:24px;border:1px solid var(--border);border-radius:16px;animation:dossier-reveal .3s ease-out both}.journey-section>h2{margin:0 0 22px;padding-bottom:12px;border-bottom:1px solid var(--border);font-size:20px}.journey-events{list-style:none;padding:0;margin:24px 0}.journey-events li{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:14px 0;border-bottom:1px solid var(--border)}.journey-events time{color:var(--muted);font-size:12px}.journey-money{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-block:20px}.journey-money>div{border-inline-start:3px solid var(--teal);padding-inline-start:14px}.journey-money span{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.journey-money strong{font-size:20px;color:var(--navy)}@keyframes dossier-reveal{from{opacity:.6}to{opacity:1}}@media(max-width:700px){.journey-banner{padding:20px;gap:14px}.journey-symbol{width:50px;height:50px}.journey-symbol svg{width:28px;height:28px}.journey-section{padding:16px}.journey-money{grid-template-columns:1fr}.journey-nav a{font-size:12px;padding:14px}.journey-actions>button{flex:1 1 180px}}@media(prefers-reduced-motion:reduce){.journey-section{animation:none}}
.draft-save-state{padding:10px 14px;margin-bottom:18px;border-inline-start:3px solid var(--teal);background:#edf7f7;color:var(--navy);font-size:12px;line-height:1.8}.next-work{margin-bottom:28px}.next-work article{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 0;border-bottom:1px solid var(--border)}.next-work article h3{margin:0 0 10px;font-size:20px}.next-work article strong{color:var(--teal);font-size:13px}.next-work article p{margin:6px 0;color:var(--muted);font-size:13px;max-width:70ch}@media(max-width:650px){.next-work article{align-items:stretch;flex-direction:column;gap:12px}.next-work article button{align-self:flex-start}}
/* Keep scrolling inside navigation/tables; do not hide page overflow to disguise layout errors. */
.app-main,.content,.surface,.surface-body,.detail-grid>*,.dashboard-grid>*,.form-grid>*,.cards-grid>*{min-width:0}
img,video,canvas{max-width:100%}
/* Leaflet panes have no intrinsic width; a percentage max-width collapses their Canvas paths. */
.leaflet-container .leaflet-pane > canvas{max-width:none!important;max-height:none!important}.record-card,.detail-line strong,.page-title h1,.journey-banner h2{overflow-wrap:anywhere}
.header-tools [data-action="logout"]{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;min-height:44px}
.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:850px){
 .side{display:block;position:static;max-width:100%;padding:12px 16px}
 .side .brand{margin-bottom:12px}.side-nav{width:100%;max-width:none;gap:6px;overflow-x:auto;padding-bottom:6px}
 .side-nav button{flex:0 0 auto;width:auto;min-width:70px;min-height:52px;display:flex;flex-direction:column;justify-content:center;gap:5px;padding:8px 12px;font-size:11px;white-space:nowrap}
 .header{height:auto;min-height:68px;flex-wrap:wrap;gap:10px;padding:12px 16px}
 .header-tools{flex:1 1 100%;max-width:100%;flex-wrap:wrap;gap:8px;justify-content:space-between}
 .header-tools #workspace-context{max-width:100%;min-width:0;flex:1 1 150px}
 .header-search{order:2;flex:1 1 100%;width:100%;max-width:none}.header-search input{font-size:14px}
 .account-chip{min-width:0;max-width:60%}.account-info{min-width:0}.account-info strong,.account-info small{overflow-wrap:anywhere}
 .content{padding:20px 14px}.page-title{align-items:flex-start;flex-wrap:wrap;gap:14px}.page-title>.row{flex-wrap:wrap;width:100%}
 .kanban{grid-template-columns:repeat(5,minmax(250px,80vw));max-width:100%;overflow-x:auto}
 .filters{flex-wrap:wrap}.filters>input,.filters>.field{min-width:0;flex:1 1 180px;max-width:100%}
}
@media(max-width:600px){
 .header-tools>.ghost{min-height:44px;min-width:44px}.header-tools [data-action="logout"]{padding:8px 12px;font-size:13px}
 .content input,.dialog input,.content select,.dialog select,.content textarea,.dialog textarea{font-size:16px}.form-grid{grid-template-columns:minmax(0,1fr)}
 .dialog-backdrop{padding:0;align-items:flex-end}.dialog,.dialog.wide{width:100%;max-width:100%;max-height:96dvh;max-height:96svh;border-radius:18px 18px 0 0}
 .dialog-head{padding:14px 16px;gap:10px}.dialog-head h2{font-size:17px;overflow-wrap:anywhere}.dialog-body{padding:16px;min-height:0;overscroll-behavior:contain}
 .dialog-foot{flex-wrap:wrap;align-items:stretch;padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
 .dialog-foot>div{display:flex;flex-wrap:wrap;gap:8px;flex:1 1 100%}.dialog-foot button{min-height:44px;flex:1 1 135px}
 .steps{padding:12px;overflow-x:auto;justify-content:flex-start}.step{flex:1 0 72px;font-size:11px}
 .detail-line{align-items:flex-start;gap:12px;flex-wrap:wrap}.detail-line>strong{max-width:100%}
 .journey-section{padding:16px 12px}.journey-actions>button{min-height:44px}.journey-nav a{min-height:44px}
 .next-work article button{width:100%;align-self:stretch}.wallet-overview strong,.wallet-balance strong{font-size:28px}
 .footer-note{flex-wrap:wrap;gap:8px}.map-panel,.map-panel.large{width:100%;min-width:0}
}
