:root {
  --ink: #142135;
  --muted: #66758a;
  --line: #e3e9ef;
  --canvas: #f4f7f9;
  --surface: #fff;
  --nav: #101c2c;
  --nav2: #17263a;
  --brand: #16a394;
  --brand2: #0d7e73;
  --amber: #f3a83b;
  --red: #d9535f;
  --blue: #4d7ee8;
  --shadow: 0 10px 30px rgba(18, 34, 53, 0.08);
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: var(--nav);
  color: #d9e2ed;
  padding: 24px 16px;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #fff;
  font: 800 19px Manrope;
}
.brand strong {
  display: block;
  font: 800 17px Manrope;
  color: #fff;
}
.brand small {
  font-size: 11px;
  color: #8fa0b5;
}
.nav-group {
  margin-top: 20px;
}
.nav-label {
  padding: 0 12px;
  margin: 0 0 8px;
  color: #70849b;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 700;
}
.nav-item {
  border: 0;
  background: transparent;
  color: #aab8c8;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 9px;
  text-align: left;
  font-size: 13px;
}
.nav-item:hover,
.nav-item.active {
  background: rgba(22, 163, 148, 0.14);
  color: #fff;
}
.nav-item.active {
  box-shadow: inset 3px 0 var(--brand);
}
.nav-icon {
  width: 20px;
  text-align: center;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.crumb {
  color: var(--muted);
  font-size: 13px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn,
.menu-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 9px 11px;
}
.menu-btn {
  display: none;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dcece9;
  color: var(--brand2);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.page {
  padding: 28px 30px 60px;
  max-width: 1600px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}
.page-head h1 {
  font: 800 27px Manrope;
  margin: 0 0 5px;
}
.page-head p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
.btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 15px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand2);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(18, 34, 53, 0.025);
}
.stat {
  padding: 20px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e9f7f5;
  color: var(--brand2);
  font-size: 17px;
}
.stat-value {
  font: 800 27px Manrope;
  margin: 12px 0 4px;
}
.trend {
  font-size: 11px;
  color: var(--brand2);
}
.trend.warn {
  color: var(--red);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.panel {
  padding: 20px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.panel-head h2 {
  font: 700 15px Manrope;
  margin: 0;
}
.link-btn {
  border: 0;
  background: none;
  color: var(--brand2);
  font-weight: 700;
  font-size: 12px;
}
.load-row {
  display: grid;
  grid-template-columns: 80px 1.3fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.load-row:first-of-type {
  border-top: 0;
}
.load-id {
  font-weight: 700;
}
.route strong {
  display: block;
}
.route small,
.muted {
  color: var(--muted);
}
.status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  background: #e7f4f1;
  color: #08786e;
}
.status.danger {
  background: #fde8eb;
  color: #b42332;
}
.status.warning {
  background: #fff1d8;
  color: #9a5b00;
}
.status.info {
  background: #e8eefc;
  color: #2457a6;
}
.dispatch-card-shell {
  overflow: hidden;
}
.driver-dispatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  padding: 18px;
}
.driver-dispatch-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(25, 35, 48, 0.05);
}
.driver-dispatch-card.pending {
  border-color: #ef9aa3;
  background: linear-gradient(135deg, #fff1f2 0%, #fffafa 72%);
  box-shadow: 0 7px 20px rgba(190, 39, 54, 0.1);
}
.dispatch-card-head,
.dispatch-card-footer,
.dispatch-equipment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dispatch-customer {
  display: block;
  color: #171c24;
  font: 850 18px Manrope, sans-serif;
}
.dispatch-service {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.dispatch-schedule {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.82);
}
.dispatch-schedule small,
.dispatch-route small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dispatch-schedule strong {
  font-size: 14px;
}
.dispatch-time {
  min-width: 112px;
  padding: 8px 12px;
  border: 1px solid #d31f32;
  border-radius: 9px;
  background: #d31f32;
  color: #fff;
  text-align: center;
}
.dispatch-time small {
  color: rgba(255, 255, 255, 0.8);
}
.dispatch-time strong {
  font-size: 18px;
}
.dispatch-route {
  margin-top: 14px;
}
.dispatch-route strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}
.dispatch-equipment {
  justify-content: flex-start;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.dispatch-equipment strong {
  color: #2b3442;
}
.dispatch-card-footer {
  align-items: flex-end;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(112, 124, 139, 0.18);
}
.job-reference {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  color: #7a8492;
  font: 650 9px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
}
.dispatch-response-actions {
  display: flex;
  gap: 8px;
}
.btn-decline-light {
  border: 1px solid #cbd3dd;
  background: #fff;
  color: #5d6877;
}
.btn-decline-light:hover {
  border-color: #aeb8c5;
  background: #f4f6f8;
  color: #3f4854;
}
.dashboard-dispatch-grid {
  grid-template-columns: 1fr;
  padding: 0;
}
.driver-dispatch-card.compact {
  padding: 15px;
}

/* Customer portal record cards */
.customer-card-shell {
  overflow: hidden;
}
.customer-record-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.customer-record-grid.list-view {
  padding: 18px;
  background: #f7f9fc;
}
.customer-record-card {
  --card-accent: #697586;
  --card-tint: #f5f7f9;
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 20px 22px;
  border: 1px solid #dce3eb;
  border-left: 6px solid var(--card-accent);
  border-radius: 15px;
  background: linear-gradient(110deg, var(--card-tint), #fff 44%);
  box-shadow: 0 5px 18px rgba(20, 34, 54, 0.055);
}
.customer-record-card.tone-red {
  --card-accent: #cf3344;
  --card-tint: #fff0f2;
}
.customer-record-card.tone-amber {
  --card-accent: #d18416;
  --card-tint: #fff7e8;
}
.customer-record-card.tone-blue {
  --card-accent: #316fc3;
  --card-tint: #eef5ff;
}
.customer-record-card.tone-green {
  --card-accent: #138660;
  --card-tint: #edf9f4;
}
.customer-record-head,
.customer-record-footer,
.customer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.customer-record-head h3 {
  margin: 3px 0 0;
  color: #172131;
  font: 800 18px/1.25 Manrope, sans-serif;
}
.customer-card-kicker,
.customer-record-body small,
.customer-card-note small,
.customer-invoice-total small {
  display: block;
  color: #6d7888;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.customer-card-kicker {
  color: var(--card-accent);
}
.customer-record-body {
  display: grid;
  grid-template-columns: 150px 140px minmax(250px, 1.6fr) minmax(145px, 0.8fr) minmax(165px, 1fr) minmax(130px, 0.7fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 17px;
}
.customer-highlight,
.customer-detail,
.customer-route-block,
.customer-invoice-total {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(112, 126, 145, 0.16);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.82);
}
.customer-highlight strong,
.customer-detail strong,
.customer-route-block strong {
  display: block;
  margin-top: 5px;
  color: #222e3f;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.customer-highlight span,
.customer-detail span {
  display: block;
  margin-top: 4px;
  color: #5f6c7c;
  font-size: 12px;
  font-weight: 650;
}
.customer-time {
  border-color: var(--card-accent);
  background: var(--card-accent);
}
.customer-time small,
.customer-time strong {
  color: #fff;
}
.customer-time strong {
  font-size: 18px;
}
.customer-route-block strong {
  font-size: 16px;
}
.customer-route-block strong span {
  padding: 0 4px;
  color: var(--card-accent);
}
.customer-detail.rate strong {
  color: var(--card-accent);
  font-size: 16px;
}
.customer-card-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}
.customer-card-note p {
  margin: 5px 0 0;
  color: #3e4a5a;
  font-size: 13px;
  line-height: 1.5;
}
.customer-record-footer {
  align-items: flex-end;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(104, 119, 138, 0.16);
}
.customer-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}
.customer-record-card.compact {
  padding: 17px 19px;
}
.customer-record-card.compact .customer-record-footer {
  margin-top: 12px;
}
.customer-record-body.document-body {
  grid-template-columns: minmax(140px, 0.7fr) minmax(260px, 1.5fr) minmax(190px, 0.8fr);
}
.customer-record-body.invoice-body {
  grid-template-columns: minmax(210px, 1.2fr) repeat(3, minmax(150px, 0.8fr));
}
.customer-invoice-total {
  border-color: var(--card-accent);
  background: var(--card-accent);
}
.customer-invoice-total small,
.customer-invoice-total strong {
  color: #fff;
}
.customer-invoice-total strong {
  display: block;
  margin-top: 4px;
  font: 850 24px Manrope, sans-serif;
}
.customer-dashboard-stack {
  display: grid;
  gap: 25px;
  margin-top: 22px;
}
.customer-dashboard-stack > section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(25, 35, 48, 0.04);
}
.customer-section-head {
  margin-bottom: 16px;
}
.customer-section-head h2 {
  margin: 0;
  font: 800 18px Manrope, sans-serif;
}
.customer-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.decline-job-summary {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 11px;
  background: #f4f6f8;
}
.decline-job-summary strong {
  font-size: 16px;
}
.decline-job-summary span {
  color: var(--muted);
  font-size: 13px;
}
.decline-modal textarea {
  min-height: 110px;
}
.denial-warning {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 13px 14px;
  border-left: 4px solid #c67a11;
  border-radius: 9px;
  background: #fff5df;
  color: #6e4b13;
}
.denial-warning span {
  font-size: 12px;
  line-height: 1.5;
}
.time-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.time-field legend {
  margin-bottom: 7px;
  color: #435268;
  font-size: 13px;
  font-weight: 700;
}
.time-parts {
  display: grid;
  grid-template-columns: minmax(58px, 0.85fr) 8px minmax(64px, 1fr) minmax(68px, 0.9fr);
  gap: 6px;
  align-items: center;
}
.time-parts > span {
  color: #667386;
  font-weight: 900;
  text-align: center;
}
.time-parts select {
  min-width: 0;
  height: 45px;
  padding-inline: 9px;
  font-weight: 800;
  text-overflow: clip;
}
.time-period.am {
  border-color: #3d76c5 !important;
  background: #f3f7ff !important;
  color: #2457a6 !important;
}
.time-period.pm {
  border-color: #9a633d !important;
  background: #fff7ef !important;
  color: #7a4526 !important;
}
.datetime-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.datetime-field > legend {
  margin-bottom: 8px;
  color: #435268;
  font-size: 13px;
  font-weight: 700;
}
.datetime-field > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(300px, 1.2fr);
  gap: 12px;
}
.conversion-request-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: #f4f6f8;
}
.conversion-request-summary small,
.conversion-request-summary strong {
  display: block;
}
.conversion-request-summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.conversion-request-summary .job-reference {
  grid-column: 1 / -1;
}
.conversion-section {
  margin-top: 14px;
  padding: 19px;
  border: 1px solid #dfe5eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(24, 34, 48, 0.045);
}
.conversion-section:last-of-type {
  border-bottom: 1px solid #dfe5eb;
}
.conversion-modal form {
  background: #f7f9fb;
}
.conversion-modal footer {
  margin-top: 16px;
  background: #fff;
}
.conversion-modal > header {
  gap: 16px;
}
.conversion-modal > header .edit-source-request {
  margin-left: auto;
  margin-right: 8px;
}
.driver-details-card {
  border-color: #cddcef;
  background: #f8fbff;
}
.driver-details-card textarea {
  min-height: 112px;
  resize: vertical;
}
.door-access-display,
.driver-instructions-display {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
}
.door-access-display {
  border: 1px solid #e6c976;
  background: #fff8dc;
}
.door-access-display strong {
  color: #5f4300;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.driver-instructions-display {
  border: 1px solid #dce4ec;
  background: #f6f8fa;
}
.door-access-display small,
.driver-instructions-display small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.conversion-pay-note {
  margin: 18px 0 0;
}
.recommended-packages,
.all-packages {
  margin-top: 14px;
}
.recommended-packages > span,
.all-packages > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.route-package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.route-package-choice {
  position: relative;
  margin: 0 !important;
  cursor: pointer;
}
.route-package-choice > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.route-package-choice > span {
  display: grid;
  gap: 5px;
  min-height: 100%;
  padding: 13px;
  border: 1px solid #cfd7e1;
  border-radius: 11px;
  background: #fff;
  transition: 0.16s ease;
}
.route-package-choice.recommended > span {
  border-color: #72bb9a;
  background: #f1fbf6;
}
.route-package-choice > input:checked + span {
  border-color: #08785b;
  background: #dff5e9;
  box-shadow: 0 0 0 2px rgba(8, 120, 91, 0.15);
}
.package-choice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.package-choice-top > strong {
  color: #174f40;
  font: 850 14px ui-monospace, SFMono-Regular, Consolas, monospace;
}
.package-choice-top b {
  padding: 3px 6px;
  border-radius: 99px;
  background: #168860;
  color: #fff;
  font-size: 8px;
  text-transform: uppercase;
}
.route-package-choice em {
  color: #202832;
  font-style: normal;
  font-weight: 800;
}
.route-package-choice small {
  color: var(--muted);
  line-height: 1.45;
}
.package-money {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.package-money strong {
  color: #27313e;
}
.custom-package-choice {
  display: block;
  margin-top: 12px !important;
}
.custom-package-fields {
  margin-top: 12px;
  padding: 14px;
  border-radius: 11px;
  background: #f8f5fb;
}
.add-dispatch-trailer {
  margin-top: 10px;
}
.package-stops-title {
  margin-top: 16px;
}
.package-stop-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: end;
  margin-top: 8px;
}
.package-stop-row .remove-package-stop {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #fdecee;
  color: #b62f3d;
  cursor: pointer;
}
.driver-compensation {
  margin-top: 9px;
  color: #526174;
  font-size: 11px;
  font-weight: 750;
}
.row-actions .convert-request-button {
  background: #e3f5ec;
  color: #08785b;
  font-weight: 850;
}
.status.transit {
  background: #e8eefc;
  color: #4269be;
}
.status.pickup {
  background: #fff3de;
  color: #a5670c;
}
.alert-item {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.alert-item:first-of-type {
  border-top: 0;
}
.alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  margin-top: 6px;
  flex: none;
}
.alert-item strong {
  display: block;
  font-size: 12px;
}
.alert-item small {
  color: var(--muted);
}
.chart {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-top: 12px;
}
.bar {
  flex: 1;
  background: #d6eeeb;
  border-radius: 5px 5px 2px 2px;
  position: relative;
}
.bar.highlight {
  background: var(--brand);
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  margin-top: 7px;
}
.mobile-overlay {
  display: none;
}
@media (max-width: 1100px) {
  .customer-record-body {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .customer-route-block {
    grid-column: span 2;
  }
  .customer-record-body.document-body,
  .customer-record-body.invoice-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .load-row {
    grid-template-columns: 75px 1fr 1fr auto;
  }
  .load-row .driver {
    display: none;
  }
}
@media (max-width: 760px) {
  html, body, #app { max-width: 100%; overflow-x: hidden; }
  .modal-backdrop { padding: 0; overflow-x: hidden; }
  .modal,
  .timesheet-live-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }
  .modal input,
  .modal select,
  .modal textarea,
  .camera-capture-layer input,
  .camera-capture-layer select,
  .camera-capture-layer textarea {
    min-width: 0;
    max-width: 100%;
    font-size: 16px !important;
  }
  .timesheet-live-modal form,
  .timesheet-stop-main,
  .timesheet-stop-fields,
  .timesheet-event-grid { min-width: 0; max-width: 100%; }
  .route-package-grid,
  .conversion-request-summary,
  .datetime-field > div {
    grid-template-columns: 1fr;
  }
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    z-index: 30;
    transition: 0.2s;
  }
  .sidebar.open {
    transform: none;
  }
  .main {
    width: 100%;
  }
  .menu-btn {
    display: block;
  }
  .topbar {
    padding: 0 16px;
    height: 64px;
  }
  .crumb {
    display: none;
  }
  .page {
    padding: 22px 16px 50px;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 23px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat-value {
    font-size: 22px;
  }
  .load-row {
    grid-template-columns: 65px 1fr auto;
  }
  .load-row .driver,
  .load-row .equipment {
    display: none;
  }
  .mobile-overlay.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(5, 14, 25, 0.55);
    z-index: 20;
  }
}

/* Driver mobile workspace */
.driver-bottom-nav {
  display: none;
}
.driver-home-page,
.driver-earnings-page,
.driver-profile-page,
.driver-jobs-page {
  max-width: 1180px;
  margin-inline: auto;
}
.driver-hero {
  position: relative;
  display: flex;
  min-height: 190px;
  overflow: hidden;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid #d8e3f1;
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(244, 249, 255, .98) 0%, rgba(244, 249, 255, .9) 42%, rgba(244, 249, 255, .28) 100%), url('/captain-fleet.jpg') center/cover;
  box-shadow: 0 10px 28px rgba(24, 46, 79, .08);
}
.driver-hero::after {
  position: absolute;
  inset: auto -30px -70px 35%;
  height: 160px;
  border-radius: 50%;
  background: rgba(39, 105, 210, .08);
  content: "";
}
.driver-hero h1 { margin: 4px 0 5px; font-size: clamp(27px, 4vw, 40px); }
.driver-hero p { max-width: 460px; margin: 0; color: #4e5f75; }
.driver-hero img { position: relative; z-index: 1; width: 150px; max-height: 68px; object-fit: contain; }
.driver-featured-dispatch {
  margin-top: -48px;
  margin-inline: 22px;
  padding: 14px;
  border: 1px solid #ffd3d7;
  border-radius: 19px;
  background: rgba(255, 249, 249, .96);
  box-shadow: 0 13px 34px rgba(45, 57, 74, .12);
  position: relative;
  z-index: 2;
}
.driver-featured-label { display: flex; justify-content: space-between; padding: 1px 3px 10px; color: #bd2333; font-weight: 800; }
.driver-featured-label small { color: #64748b; }
.driver-featured-dispatch .driver-dispatch-card { box-shadow: none; }
.driver-featured-dispatch.empty-feature { padding: 24px; text-align: center; }
.driver-featured-dispatch.empty-feature h2 { margin: 0 0 6px; }
.driver-home-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 22px;
}
.driver-action-tile {
  display: flex;
  min-width: 0;
  min-height: 128px;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid;
  border-radius: 17px;
  text-align: left;
  cursor: pointer;
}
.driver-action-tile strong { font-size: 25px; }
.driver-action-tile span { margin-top: 8px; font-weight: 850; }
.driver-action-tile small { margin-top: auto; font-weight: 700; opacity: .78; }
.driver-action-tile.red { color: #bd2333; border-color: #f4cbd0; background: #fff0f2; }
.driver-action-tile.green { color: #087f5b; border-color: #bce7d8; background: #eafaf4; }
.driver-action-tile.purple { color: #6941c6; border-color: #d9cef8; background: #f3efff; }
.driver-action-tile.blue { color: #1759ad; border-color: #c8dcf6; background: #edf5ff; }
.driver-home-list,
.driver-period-card,
.driver-earnings-list,
.profile-info-card,
.driver-profile-head {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid #dce3eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(26, 37, 51, .055);
}
.driver-home-list .panel-head p { margin: 3px 0 0; color: #667085; font-size: 13px; }
.driver-view-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 460px;
  gap: 5px;
  padding: 5px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #eaf0f7;
}
.driver-view-tabs button { padding: 11px; border: 0; border-radius: 10px; background: transparent; color: #506078; font-weight: 800; cursor: pointer; }
.driver-view-tabs button.active { background: #fff; color: #1759ad; box-shadow: 0 3px 9px rgba(29, 53, 87, .1); }
.driver-view-tabs span { display: inline-grid; min-width: 23px; height: 23px; margin-left: 5px; place-items: center; border-radius: 50%; background: #e5ecf7; }
.driver-period-card { background: linear-gradient(135deg, #f6f1ff, #fff); border-color: #ded3fa; }
.driver-period-card.previous { background: linear-gradient(135deg, #eff8ff, #fff); border-color: #cfdef1; }
.period-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.period-heading span { color: #6941c6; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.period-heading h2 { margin: 4px 0 0; }
.period-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.period-stats > div { padding: 15px; border-radius: 13px; background: rgba(255, 255, 255, .86); }
.period-stats small, .profile-detail-grid small { display: block; margin-bottom: 5px; color: #667085; font-weight: 700; }
.period-stats strong { font-size: 18px; }
.driver-earnings-list .panel-head { margin-bottom: 10px; }
.driver-earnings-list > article { display: flex; justify-content: space-between; gap: 15px; padding: 14px 3px; border-top: 1px solid #e6eaf0; }
.driver-earnings-list article div { display: flex; flex-direction: column; gap: 3px; }
.driver-earnings-list article div:last-child { text-align: right; color: #087f5b; }
.driver-profile-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; margin-top: 0; background: linear-gradient(110deg, #f2f7ff, #fff); }
.driver-profile-head h1 { margin: 2px 0; }
.driver-profile-head p { margin: 0; color: #667085; }
.driver-profile-avatar { display: grid; width: 76px; height: 76px; place-items: center; border: 5px solid #fff; border-radius: 50%; background: #17365d; color: #fff; font-size: 23px; font-weight: 850; box-shadow: 0 5px 16px rgba(23, 54, 93, .2); }
.driver-score-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 13px; margin-top: 16px; }
.driver-score-grid article { display: flex; min-height: 130px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid; border-radius: 17px; background: #fff; }
.driver-score-grid article > strong { font-size: 30px; }
.driver-score-grid article > span { margin-top: 8px; font-weight: 750; }
.score-main { color: #087f5b; border-color: #bce7d8 !important; background: #effbf6 !important; }
.score-good { color: #1759ad; border-color: #c8dcf6 !important; background: #f1f7ff !important; }
.score-warning { color: #bd2333; border-color: #f4cbd0 !important; background: #fff1f2 !important; }
.score-ring { display: flex; align-items: baseline; }
.score-ring strong { font-size: 34px; }
.score-ring small { font-weight: 800; }
.profile-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.profile-detail-grid > div { min-width: 0; padding: 13px; border-radius: 12px; background: #f6f8fb; overflow-wrap: anywhere; }
.profile-document-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.profile-document-list button { padding: 9px 13px; border: 1px solid #c8dcf6; border-radius: 99px; background: #fff; color: #1759ad; font-weight: 750; cursor: pointer; }
.profile-feedback-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.profile-feedback-grid .positive { border-color: #bce7d8; background: #f1fbf7; }
.profile-feedback-grid .warning { border-color: #f4d1d5; background: #fff5f6; }
.profile-feedback-grid p { line-height: 1.5; }

@media (max-width: 900px) {
  body.driver-portal .sidebar { display: none; }
  body.driver-portal .main { margin-left: 0; padding-bottom: 94px; }
  body.driver-portal .topbar { padding-inline: 18px; }
  body.driver-portal .menu-btn { display: none; }
  body.driver-portal .crumb { font-size: 12px; }
  .driver-bottom-nav {
    position: fixed;
    z-index: 850;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: grid;
    width: min(620px, calc(100% - 20px));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 7px;
    border: 1px solid rgba(204, 214, 228, .9);
    border-radius: 22px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 38px rgba(19, 36, 60, .2);
    backdrop-filter: blur(14px);
    transform: translateX(-50%);
    transition: transform .28s ease, opacity .2s ease;
  }
  body.driver-portal.driver-modal-open .driver-bottom-nav,
  body.driver-portal:has(#modal-root:not(:empty)) .driver-bottom-nav {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(100% + 34px));
  }
  .driver-bottom-nav button { display: flex; min-width: 0; height: 59px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; border-radius: 16px; background: transparent; color: #5f6f84; cursor: pointer; }
  .driver-bottom-nav button span { font-size: 20px; line-height: 1; font-weight: 850; }
  .driver-bottom-nav button small { font-size: 10px; font-weight: 800; }
  .driver-bottom-nav button.active { background: #eaf2ff; color: #1766d2; }
  .driver-home-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  body.driver-portal #view { overflow-x: hidden; }
  body.driver-portal .page {
    padding: 14px 12px max(126px, calc(112px + env(safe-area-inset-bottom)));
    scroll-padding-bottom: max(126px, calc(112px + env(safe-area-inset-bottom)));
  }
  body.driver-portal .main {
    scroll-padding-bottom: max(126px, calc(112px + env(safe-area-inset-bottom)));
  }
  body.driver-portal.driver-modal-open .modal-backdrop,
  body.driver-portal:has(#modal-root:not(:empty)) .modal-backdrop {
    z-index: 900;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  body.driver-portal .topbar .user-name { display: none; }
  .driver-hero { min-height: 160px; padding: 20px; border-radius: 18px; }
  .driver-hero img { width: 105px; }
  .driver-hero h1 { font-size: 28px; }
  .driver-featured-dispatch { margin: -28px 8px 0; padding: 9px; }
  .driver-featured-label { font-size: 11px; }
  .driver-home-actions { gap: 9px; margin-top: 15px; }
  .driver-action-tile { min-height: 112px; padding: 14px; }
  .driver-action-tile strong { font-size: 21px; }
  .driver-action-tile span { font-size: 13px; }
  .driver-action-tile small { font-size: 10px; }
  .driver-home-list, .driver-period-card, .driver-earnings-list, .profile-info-card, .driver-profile-head { padding: 15px; border-radius: 15px; }
  .driver-home-list .driver-dispatch-grid { padding: 0; }
  .period-heading { align-items: flex-start; flex-direction: column; }
  .period-heading .btn { width: 100%; }
  .period-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .driver-profile-head { grid-template-columns: auto 1fr; }
  .driver-profile-head .btn { grid-column: 1 / -1; width: 100%; }
  .driver-profile-avatar { width: 62px; height: 62px; }
  .driver-score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .driver-score-grid .score-main { grid-column: 1 / -1; }
  .driver-score-grid article { min-height: 105px; }
  .profile-detail-grid, .profile-feedback-grid { grid-template-columns: 1fr; }
  .driver-dispatch-card.compact .dispatch-schedule { grid-template-columns: 1fr auto; }
  .driver-dispatch-card.compact .dispatch-time { width: auto; min-width: 105px; }
  .driver-dispatch-card.compact .dispatch-card-footer { align-items: stretch; }
}
@media (max-width: 440px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .page-head {
    display: block;
  }
  .page-head .btn {
    margin-top: 15px;
  }
  .top-actions .user-name {
    display: none;
  }
}

/* Authentication */
.auth-page {
  background: var(--surface);
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.login-brand {
  background: linear-gradient(150deg, #0e1a29 20%, #153246 100%);
  color: #fff;
  padding: 8vh 9vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-brand:after {
  content: "";
  position: absolute;
  inset: 28px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(24, 20, 22, 0.36),
    rgba(24, 20, 22, 0.13)
  );
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(2px) saturate(0.9);
}
.login-brand > div,
.login-brand > .login-proof {
  position: relative;
  z-index: 1;
}
.login-logo {
  width: 48px;
  height: 48px;
  background: var(--brand);
  border-radius: 13px;
  display: grid;
  place-items: center;
  font: 800 24px Manrope;
  margin-bottom: 70px;
}
.eyebrow {
  color: var(--brand);
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 10px !important;
}
.login-brand h1 {
  font: 800 clamp(36px, 4.4vw, 66px) / 1.08 Manrope;
  margin: 0 0 22px;
  letter-spacing: -0.04em;
  max-width: 720px;
}
.login-brand > div > p:last-child {
  color: #a9b7c7;
  font-size: 16px;
  max-width: 500px;
  line-height: 1.7;
}
.login-proof {
  display: flex;
  gap: 26px;
  color: #a9b7c7;
  font-size: 12px;
  position: relative;
  z-index: 1;
}
.login-proof span::first-letter {
  color: var(--brand);
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-card {
  width: min(440px, 100%);
}
.login-card h2 {
  font: 800 29px Manrope;
  margin: 0 0 8px;
}
.login-card > label,
.login-tab-panel form > label,
.form-grid label,
.stop-row label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #435268;
  margin-top: 20px;
}
.login-card input,
.login-tab-panel input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.stop-row input,
.stop-row select,
.table-tools select {
  width: 100%;
  border: 1px solid #d9e1e8;
  background: #fff;
  border-radius: 9px;
  padding: 11px 12px;
  color: var(--ink);
  outline: 0;
}
.login-card input:focus,
.login-tab-panel input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 163, 148, 0.12);
}
.form-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
}
.login-card .check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 11px;
}
.check input {
  width: auto;
}
.text-btn {
  border: 0;
  background: none;
  color: var(--brand2);
  font-size: 11px;
  font-weight: 700;
}
.btn-wide {
  width: 100%;
  justify-content: center;
  padding: 13px;
}
.demo-note {
  background: #edf7f5;
  color: #52716d;
  padding: 11px;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 16px;
}
.login-error {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.login-error:not(:empty) {
  display: block;
  margin: 12px 0 0;
  padding: 11px 12px;
  border: 1px solid #efb9bd;
  border-radius: 9px;
  background: #fff1f2;
}
.login-feedback {
  display: grid;
  gap: 4px;
  margin: 16px 0;
  padding: 13px 14px;
  border: 1px solid #efb9bd;
  border-left: 4px solid #c81f2a;
  border-radius: 10px;
  background: #fff1f2;
  color: #7d1820;
  line-height: 1.45;
}
.login-feedback strong {
  font-size: 14px;
}
.login-feedback span {
  font-size: 13px;
}
.mobile-logo {
  display: none;
  font: 800 18px Manrope;
  margin-bottom: 55px;
}
.mobile-logo span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--brand);
  color: #fff;
  border-radius: 9px;
  margin-right: 7px;
}
.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 25px 0 20px;
  padding: 5px;
  border-radius: 13px;
  background: #f1eff0;
}
.login-tabs button {
  border: 0;
  border-radius: 9px;
  padding: 11px 12px;
  background: transparent;
  color: #786f73;
  font-size: 12px;
  font-weight: 750;
  transition: 0.18s ease;
}
.login-tabs button.active {
  background: #fff;
  color: var(--brand2);
  box-shadow: 0 3px 12px rgba(35, 28, 31, 0.08);
}
.login-tab-panel {
  display: none;
}
.login-tab-panel.active {
  display: block;
  animation: authTabIn 0.2s ease;
}
@keyframes authTabIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
.phone-field-wrap {
  margin-top: 4px;
}
.input-label {
  display: block;
  margin-bottom: 7px;
  color: #435268;
  font-size: 11px;
  font-weight: 700;
}
.phone-field {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  position: relative;
  border: 1px solid #d9e1e8;
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
  transition: 0.18s ease;
}
.phone-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
}
.phone-field label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 10px 8px;
}
.phone-field label + label {
  border-left: 1px solid #ebe7e8;
}
.phone-field label span {
  color: #9b9296;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.phone-field input {
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  font-size: 15px;
  font-weight: 650;
}
.phone-field input:disabled {
  background: #fff;
  color: #615a5d;
  opacity: 1;
}
.phone-edit {
  align-self: center;
  margin-right: 8px;
  border: 0;
  border-radius: 7px;
  padding: 7px 9px;
  background: #fce8e9;
  color: var(--brand2);
  font-size: 10px;
  font-weight: 800;
}
.captcha-stage {
  min-height: 78px;
  margin: 16px 0 12px;
  padding: 13px;
  border: 1px dashed #d8d2d4;
  border-radius: 11px;
  background: #faf9f9;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.keep-signed-in {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 15px;
  color: #5f575b;
  font-size: 11px;
  font-weight: 650;
}
.keep-signed-in input {
  width: auto;
}
.otp-login-stage {
  margin-top: 16px;
  padding: 17px;
  border: 1px solid #dbece4;
  border-radius: 13px;
  background: #f5fbf8;
}
.otp-sent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.otp-sent > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dff4e9;
  color: #148457;
  font-weight: 900;
}
.otp-sent strong,
.otp-sent small {
  display: block;
}
.otp-sent small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}
.otp-delivery-note {
  margin: -3px 0 14px;
  padding: 10px 12px;
  border-left: 3px solid #2f73bd;
  border-radius: 7px;
  background: #eef6ff;
  color: #41536a;
  font-size: 12px;
  line-height: 1.45;
}
.otp-input-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #435268;
  font-size: 10px;
  font-weight: 700;
}
.otp-input-label input {
  text-align: center;
  font: 800 21px Manrope;
  letter-spacing: 0.32em;
}
.resend-btn {
  display: block;
  width: 100%;
  margin-top: 11px;
  border: 0;
  background: none;
  color: #2f6fc2;
  font-size: 10px;
  font-weight: 800;
}
.resend-btn:disabled {
  color: #9a9497;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 23px 0 8px;
  color: #999195;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e9e5e6;
}
.app-loader {
  min-height: 100vh;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 8px;
  color: var(--muted);
}

/* Shared application surfaces */
.sidebar-foot {
  margin: 24px 12px 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 10px;
  color: #7f92a8;
}
.connection {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #56c6a8;
  margin-right: 7px;
}
.avatar {
  border: 0;
  cursor: pointer;
}
.icon-btn {
  position: relative;
}
.notify-dot {
  position: absolute;
  right: 7px;
  top: 6px;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  border: 1px solid white;
}
.clickable {
  cursor: pointer;
}
.clickable:hover {
  background: #f8fbfb;
  margin-inline: -8px;
  padding-inline: 8px;
  border-radius: 8px;
}
.metric-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric-line strong {
  font: 800 23px Manrope;
}
.metric-line span {
  color: var(--brand2);
  font-size: 11px;
  font-weight: 700;
}
.bar span {
  display: none;
}
.btn-outline {
  background: #fff;
  border: 1px solid var(--line);
  color: #405066;
}
.btn-danger {
  background: var(--red);
  color: #fff;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.narrow {
  max-width: 1050px;
}
.subtabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 22px;
  margin: -6px 0 18px;
}
.subtabs button {
  border: 0;
  background: none;
  padding: 10px 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.subtabs button.active {
  color: var(--brand2);
  border-bottom: 2px solid var(--brand);
}

/* Tables */
.table-card {
  overflow: hidden;
}
.table-tools {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
}
.search-box {
  height: 38px;
  flex: 1;
  max-width: 400px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  color: var(--muted);
  background: #fff;
}
.search-box input {
  border: 0;
  outline: 0;
  width: 100%;
  padding: 8px;
  background: transparent;
  font-size: 12px;
}
.table-tools select {
  width: auto;
  min-width: 140px;
  padding: 9px 30px 9px 10px;
  font-size: 11px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  background: #f8fafb;
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 11px 16px;
}
th button {
  border: 0;
  background: none;
  color: #6d7a8b;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0;
}
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: #455468;
}
tbody tr:hover {
  background: #fbfdfd;
}
td:first-child {
  font-weight: 700;
  color: var(--ink);
}
.actions-col {
  text-align: right;
}
.row-actions {
  text-align: right;
}
.row-actions button {
  border: 0;
  background: none;
  color: var(--brand2);
  font-size: 10px;
  font-weight: 700;
  padding: 5px;
}
.row-actions button:last-child {
  color: var(--red);
}
.mono {
  font:
    10px ui-monospace,
    monospace;
  color: #5d6b7c;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  color: var(--muted);
  font-size: 10px;
}
.pagination div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pagination button {
  width: 30px;
  height: 28px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
}
.empty {
  text-align: center;
  padding: 30px;
  color: var(--muted);
}
.empty span {
  display: block;
  font-size: 24px;
}
.empty p {
  font-size: 11px;
}

/* Forms, dialogs and messaging */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 19, 32, 0.58);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 100;
  backdrop-filter: blur(2px);
}
.modal {
  background: #fff;
  border-radius: 16px;
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}
.modal > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.modal h2 {
  font: 800 20px Manrope;
  margin: 0;
}
.modal-close {
  border: 0;
  background: #f1f4f6;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  color: #526174;
  font-size: 20px;
}
.modal form {
  padding: 0 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-grid > .wide {
  grid-column: 1/-1;
}
.form-grid textarea {
  min-height: 80px;
  resize: vertical;
}
.modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 0 24px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.stops-section {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-title h3 {
  font: 700 14px Manrope;
  margin: 0;
}
.section-title p,
.settings-card .panel-head p {
  font-size: 10px;
  color: var(--muted);
  margin: 4px 0;
}
.stop-row {
  display: grid;
  grid-template-columns: 18px 100px minmax(150px, 1fr) 125px 210px 25px;
  gap: 8px;
  align-items: end;
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
}
.stop-row.chronology-warning {
  border-color: #d52c38;
  background: #fff0f1;
  box-shadow: 0 0 0 2px rgba(213, 44, 56, 0.1);
}
.stop-row.chronology-warning::after {
  content: "Date or time is earlier than the previous stop";
  grid-column: 2 / -1;
  color: #b11927;
  font-size: 11px;
  font-weight: 800;
}
.stop-row.dragging {
  opacity: 0.5;
  border-style: dashed;
}
.drag {
  cursor: grab;
  user-select: none;
}
.drag:active {
  cursor: grabbing;
}
.calendar-date-control {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 45px;
  overflow: hidden;
  border: 1px solid #d5dee8;
  border-radius: 9px;
  background: #fff;
  color: #8a95a4;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.calendar-date-control:focus-within {
  border-color: #3478c8;
  box-shadow: 0 0 0 3px rgba(52, 120, 200, 0.12);
}
.calendar-date-control.has-value {
  color: #172235;
}
.calendar-date-display {
  min-width: 0;
  flex: 1;
  padding: 0 42px 0 13px;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.025em;
}
.calendar-date-icon {
  position: absolute;
  right: 12px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: #edf4fc;
  color: #2f6fb8;
  font-size: 13px;
  pointer-events: none;
}
.calendar-date-native {
  position: absolute !important;
  inset: 0;
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  cursor: pointer;
}
.date-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}
.date-quick-button {
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid #3273bd;
  border-radius: 999px;
  background: #fff;
  color: #2766ae;
  font-size: 11px;
  font-weight: 800;
}
.date-quick-button:hover {
  background: #edf5ff;
}
.date-quick-button.selected {
  border-color: #174d88;
  background: #3273bd;
  color: #fff;
  box-shadow: 0 3px 9px rgba(50, 115, 189, 0.2);
}
.stop-row label {
  margin: 0;
}
.drag {
  align-self: center;
  color: #9aa7b5;
}
.remove-stop {
  border: 0;
  background: none;
  color: var(--red);
  font-size: 18px;
  padding-bottom: 8px;
}
.confirm-modal {
  width: min(420px, 100%);
  text-align: center;
  padding: 28px;
}
.confirm-modal h2 {
  margin-top: 12px;
}
.confirm-modal p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.confirm-modal > div:last-child {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
.confirm-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff0f1;
  color: var(--red);
  display: grid;
  place-items: center;
  margin: auto;
  font-weight: 800;
}
.toasts {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}
.toast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: min(420px, calc(100vw - 32px));
  background: #123c38;
  color: #fff;
  padding: 15px 16px;
  border-radius: 11px;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  animation: toastIn 0.2s;
}
.toast-close {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  margin: -4px -5px -4px 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.toast-close:hover,
.toast-close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: 2px solid rgba(255, 255, 255, 0.7);
}
.toast.error {
  background: #8d3139;
}
.toast.info {
  background: #294979;
}
@keyframes toastIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}

/* Reports and settings */
.report-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.report-stat {
  padding: 20px;
}
.report-stat span,
.report-stat small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.report-stat strong {
  display: block;
  font: 800 28px Manrope;
  margin: 10px 0 4px;
}
.report-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 18px;
  margin-top: 18px;
}
.progress-row {
  margin: 16px 0;
}
.progress-row > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 7px;
}
.progress {
  height: 7px;
  background: #edf1f3;
  border-radius: 10px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 10px;
}
.donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 18px auto;
  background: conic-gradient(var(--brand) calc(var(--value) * 1%), #edf1f3 0);
  display: grid;
  place-items: center;
}
.donut > div {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: white;
  display: grid;
  place-content: center;
  text-align: center;
}
.donut strong {
  font: 800 26px Manrope;
}
.donut span {
  font-size: 10px;
  color: var(--muted);
}
.legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 9px;
  color: var(--muted);
}
.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #edf1f3;
  border-radius: 50%;
  margin-right: 5px;
}
.legend i.green {
  background: var(--brand);
}
.cost-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cost-grid div {
  padding: 14px;
  background: #f7f9fa;
  border-radius: 9px;
}
.cost-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.cost-grid strong {
  display: block;
  margin-top: 6px;
  font: 700 16px Manrope;
}
.settings-grid {
  display: grid;
  gap: 16px;
}

.settings-grid-followup {
  margin-top: 18px;
}

.settings-inline-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
.settings-card {
  padding: 22px;
}
.settings-card .panel-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.toggle-row:first-of-type {
  border-top: 0;
}
.toggle-row strong,
.toggle-row small {
  display: block;
  font-size: 11px;
}
.toggle-row small {
  color: var(--muted);
  margin-top: 3px;
}
.toggle-row input {
  accent-color: var(--brand);
  width: 35px;
  height: 18px;
}
.settings-actions {
  text-align: right;
}

/* Fast, color-coded form choices and stepped workflows */
.btn-success {
  background: #11885f;
  color: #fff;
}
.btn-secondary {
  background: #eaf1ff;
  color: #2457a6;
}
.modal-large {
  width: min(940px, 100%);
}
.record-form-card {
  margin-top: 18px;
  padding: 18px 20px 20px;
  border: 1px solid #dbe4ec;
  border-radius: 14px;
  background: #f8fafc;
}
.record-form-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(93, 111, 132, 0.14);
}
.record-form-card-head > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #e8edf2;
  color: #394a5d;
  font-weight: 900;
}
.record-form-card-head h3 {
  margin: 0;
  font: 800 15px Manrope;
}
.record-form-card-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.record-form-card.tint-blue {
  border-color: #cddff6;
  background: #f5f9ff;
}
.record-form-card.tint-blue .record-form-card-head > span {
  background: #dceaff;
  color: #2457a6;
}
.record-form-card.tint-red {
  border-color: #f2d2d5;
  background: #fff7f7;
}
.record-form-card.tint-red .record-form-card-head > span {
  background: #fce1e3;
  color: #b11927;
}
.record-form-card.tint-green {
  border-color: #cce7dc;
  background: #f4fbf8;
}
.record-form-card.tint-green .record-form-card-head > span {
  background: #dcefe8;
  color: #087252;
}
.record-form-card.tint-amber {
  border-color: #efdfbd;
  background: #fffaf1;
}
.record-form-card.tint-amber .record-form-card-head > span {
  background: #f8e9c9;
  color: #87580a;
}
.record-form-card.tint-purple {
  border-color: #ded5f5;
  background: #faf8ff;
}
.record-form-card.tint-purple .record-form-card-head > span {
  background: #ebe5fb;
  color: #6242a5;
}
.structured-record-form .stops-section {
  margin-top: 18px;
  padding: 18px 20px 20px;
  border: 1px solid #ded5f5;
  border-radius: 14px;
  background: #faf8ff;
}
.structured-record-form .stops-section .section-title {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(98, 66, 165, 0.14);
}
.structured-record-form .record-form-card .form-grid > label {
  margin-top: 14px;
}
.form-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.form-section:last-of-type {
  border-bottom: 0;
}
.form-section-head,
.step-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.form-section-head > span,
.step-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #fcebec;
  color: var(--brand2);
  font-weight: 800;
}
.form-section-head h3,
.step-heading h3 {
  margin: 0;
  font: 800 15px Manrope;
}
.form-section-head p,
.step-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.choice-field {
  border: 0;
  padding: 0;
  margin: 20px 0 0;
  min-width: 0;
}
.choice-field legend {
  margin-bottom: 8px;
  color: #435268;
  font-size: 11px;
  font-weight: 700;
}
.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.choice-badge {
  margin: 0 !important;
  cursor: pointer;
}
.choice-badge input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice-badge span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 15px;
  border: 1px solid var(--badge-color, #526174);
  border-radius: 11px;
  background: #fff;
  color: var(--badge-color, #526174);
  font-size: 11px;
  font-weight: 750;
  transition: 0.16s ease;
}
.choice-badge input:focus-visible + span {
  outline: 3px solid rgba(36, 87, 166, 0.2);
}
.choice-badge input:checked + span {
  color: #fff;
  border-color: var(--badge-dark, #303c49);
  background: var(--badge-color, #526174);
  font-weight: 850;
  box-shadow: 0 5px 14px rgba(28, 35, 46, 0.16);
  transform: translateY(-1px);
}
.choice-badge.green {
  --badge-color: #11885f;
  --badge-dark: #08633f;
}

.lookup-field {
  align-self: start;
}
.quick-choice-label {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.quick-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.quick-choice {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #2457a6;
  border-radius: 999px;
  background: #fff;
  color: #2457a6;
  font: 800 10px Manrope, sans-serif;
  cursor: pointer;
  transition: 0.16s ease;
}
.quick-choice:hover {
  border-color: #153c78;
  background: #2457a6;
  color: #fff;
  box-shadow: 0 4px 11px rgba(36, 87, 166, 0.2);
}
.quick-choice.active {
  border-color: #08633f;
  background: #11885f;
  color: #fff;
  box-shadow: 0 4px 11px rgba(17, 136, 95, 0.25);
}
.choice-badge.red {
  --badge-color: #c83d4a;
  --badge-dark: #96242f;
}
.choice-badge.blue {
  --badge-color: #2f6fc2;
  --badge-dark: #1d4e91;
}
.choice-badge.purple {
  --badge-color: #7552b7;
  --badge-dark: #51368c;
}
.choice-badge.amber {
  --badge-color: #c67a11;
  --badge-dark: #925504;
}
.choice-badge.amber input:checked + span {
  color: #211e20;
}
.choice-badge.slate {
  --badge-color: #526174;
  --badge-dark: #303c49;
}
.choice-badge input:disabled + span {
  cursor: not-allowed;
  opacity: 0.65;
}
.rate-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rate-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcfd;
}
.rate-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rate-card-title strong,
.rate-card-title small {
  display: block;
}
.rate-card-title small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 10px;
}
.rate-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}
.rate-icon.blue,
.step-icon.blue {
  background: #2f6fc2;
  color: #fff;
}
.rate-icon.purple,
.step-icon.purple {
  background: #7552b7;
  color: #fff;
}
.step-icon.amber {
  background: #c67a11;
  color: #fff;
}
.step-icon.green {
  background: #11885f;
  color: #fff;
}
.rate-card > label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
  color: #435268;
  font-size: 11px;
  font-weight: 700;
}
.rate-card > label input {
  border: 1px solid #d9e1e8;
  border-radius: 9px;
  padding: 11px 12px;
}
.rate-card > label small {
  color: var(--muted);
  font-weight: 500;
}
.rate-preview {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 11px;
  background: #edf8f3;
  color: #166347;
}
.rate-preview span {
  margin-right: auto;
  font-size: 10px;
  font-weight: 700;
}
.rate-preview strong {
  font-size: 12px;
}
.settings-callout,
.info-callout {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 10px;
  background: #eef4ff;
  color: #315888;
  font-size: 11px;
  line-height: 1.55;
}
.mini-badge,
.pay-rate {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 7px;
  background: #eee9fa;
  color: #65459e;
  font-size: 9px;
  font-weight: 750;
}
.pay-rate {
  background: #e8f6f0;
  color: #14704f;
  margin-right: 5px;
}
.pay-rate.mile {
  background: #edf2fd;
  color: #315e9a;
}
.driver-access {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: #fff;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}
.driver-access.assigned {
  color: #08785b;
}
.driver-access.unassigned {
  color: #b42332;
  background: #fff8f8;
}
.driver-access.roster {
  color: #9a5b00;
  background: #fffaf0;
}
.is-hidden {
  display: none !important;
}
.locked-answer {
  margin-top: 20px;
  padding: 13px 15px;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  background: #f6f9fc;
}
.locked-answer span,
.locked-answer strong {
  display: block;
}
.locked-answer span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}
.locked-answer strong {
  margin-top: 5px;
  font-size: 12px;
}
.wizard-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 20px 24px 0;
  padding: 6px;
  border-radius: 12px;
  background: #f2f4f6;
}
.wizard-tabs button {
  border: 0;
  border-radius: 9px;
  padding: 10px 8px;
  background: transparent;
  color: #6d7784;
  font-size: 10px;
  font-weight: 750;
}
.wizard-tabs button span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  border-radius: 50%;
  background: #fff;
}
.wizard-tabs button.active {
  background: #fff;
  color: var(--brand2);
  box-shadow: 0 2px 10px rgba(31, 35, 40, 0.08);
}
.wizard-tabs button.complete {
  color: #11885f;
}
.wizard-panel {
  display: none;
  min-height: 330px;
  padding: 28px 24px 12px;
}
.wizard-panel.active {
  display: block;
  animation: wizardIn 0.18s ease;
}
@keyframes wizardIn {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
}
.wizard-footer {
  justify-content: space-between !important;
}
.wizard-footer > div {
  display: flex;
  gap: 9px;
}
.request-summary {
  display: flex;
  gap: 8px;
  flex-direction: column;
  margin-top: 24px;
  padding: 16px;
  border-left: 4px solid #11885f;
  background: #f0f8f5;
  color: #245b48;
}
.request-summary span {
  font-size: 10px;
}
.row-actions button {
  margin-left: 3px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #eef3fb;
  color: #315e9a;
}
.row-actions button[data-view-file],
.row-actions button[data-status="Accepted"] {
  background: #e7f6ef;
  color: #14704f;
}
.row-actions button[data-print] {
  background: #eee9fa;
  color: #65459e;
}
.row-actions button[data-delete],
.row-actions button[data-status="Declined"] {
  background: #fdecee;
  color: #b62f3d;
}
.btn-phone {
  background: #2f6fc2;
  color: #fff;
  margin-top: 9px;
}
.btn-register {
  background: #eee9fa;
  color: #65459e;
  margin-top: 9px;
}
.registration-closed {
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  line-height: 1.5;
}
.auth-modal {
  width: min(620px, 100%);
}
.registration-modal {
  width: min(780px, 100%);
}
.registration-modal > header p:not(.eyebrow) {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.registration-modal form {
  padding-top: 4px;
}
.registration-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.registration-card.identity-card {
  border-color: #e5dcf6;
  background: #faf8fe;
}
.registration-card.access-card {
  border-color: #d8e5f6;
  background: #f7faff;
}
.registration-card.mobile-card {
  border-color: #d7eadf;
  background: #f7fcf9;
}
.registration-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.registration-card-head > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  background: #fff;
  color: var(--brand2);
  font-weight: 850;
  box-shadow: 0 2px 9px rgba(35, 28, 31, 0.08);
}
.registration-card-head h3,
.registration-card-head p {
  margin: 0;
}
.registration-card-head h3 {
  font: 750 14px Manrope;
}
.registration-card-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.registration-role-field {
  margin: 17px 0 0;
  padding: 0;
  border: 0;
}
.registration-role-field legend {
  margin-bottom: 8px;
  color: #435268;
  font-size: 10px;
  font-weight: 750;
}
.registration-role-field small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 8px;
}
.registration-role-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.registration-role-options input,
.role-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.registration-role-options label {
  margin: 0;
  cursor: pointer;
}
.registration-role-options span {
  display: block;
  padding: 10px;
  border: 1px solid var(--role-color);
  border-radius: 9px;
  background: #fff;
  color: var(--role-color);
  text-align: center;
  font-size: 10px;
  font-weight: 800;
}
.registration-role-options .role-customer {
  --role-color: #247180;
  --role-dark: #15535f;
}
.registration-role-options .role-driver {
  --role-color: #c67a11;
  --role-dark: #925504;
}
.registration-role-options .role-office {
  --role-color: #7552b7;
  --role-dark: #51368c;
}
.registration-role-options input:checked + span {
  border-color: var(--role-dark);
  background: var(--role-color);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(31, 25, 28, 0.16);
}
.registration-role-options .role-driver input:checked + span {
  color: #211e20;
}
.registration-phone-field {
  display: grid;
  grid-template-columns: 105px 1fr;
  margin-top: 17px;
  border: 1px solid #d9e1e8;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.registration-phone-field label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 11px;
}
.registration-phone-field label + label {
  border-left: 1px solid #e7e3e4;
}
.registration-phone-field span {
  color: #8c8588;
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}
.registration-phone-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.registration-phone-field input:disabled {
  opacity: 1;
}
.registration-otp-stage {
  margin-top: 16px;
  padding: 15px;
  border-radius: 11px;
  background: #fff;
}
.registration-otp-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
}
.registration-otp-actions .resend-btn {
  margin: 0;
}
.verification-sent .identity-card,
.verification-sent .access-card {
  display: none;
}
.auth-disclosure {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #fff6e8;
  color: #75521d;
  font-size: 10px;
  line-height: 1.55;
}
.otp-panel {
  padding: 30px 24px;
  text-align: center;
}
.otp-panel h3 {
  margin: 12px 0 5px;
}
.otp-panel p {
  color: var(--muted);
  font-size: 11px;
}
.otp-panel input {
  display: block;
  width: min(260px, 100%);
  margin: 18px auto 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  font: 800 22px Manrope;
  letter-spacing: 0.25em;
}
.pending-page {
  width: min(560px, calc(100% - 32px));
  margin: 8vh auto;
  padding: 38px;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.pending-page > img {
  width: 240px;
  height: 100px;
  object-fit: contain;
}
.pending-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 20px auto;
  border-radius: 50%;
  background: #fff1d8;
  color: #b86c00;
  font-size: 24px;
}
.pending-page h1 {
  margin: 4px 0 10px;
  font: 800 28px Manrope;
}
.pending-page > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}
.pending-page > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 24px 0;
  padding: 16px;
  border-radius: 10px;
  background: #f5f7f9;
}
.pending-page > div span {
  color: var(--muted);
  font-size: 11px;
}
.registration-switch {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.registration-switch strong,
.registration-switch small {
  display: block;
}
.registration-switch small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.switch input {
  position: absolute;
  opacity: 0;
}
.switch span {
  display: block;
  width: 44px;
  height: 24px;
  padding: 3px;
  border-radius: 30px;
  background: #cbd2d9;
  cursor: pointer;
  transition: 0.18s;
}
.switch span::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: 0.18s;
}
.switch input:checked + span {
  background: #11885f;
}
.switch input:checked + span::after {
  transform: translateX(20px);
}
.user-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.user-tabs button {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 13px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}
.user-tabs button.active {
  border-color: #7552b7;
  background: #eee9fa;
  color: #65459e;
}
.user-tabs button span {
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
}
.user-directory {
  overflow: hidden;
}
.bulk-user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.intent-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: -2px 0 12px;
}
.intent-filters > span {
  margin-right: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}
.intent-filters button {
  border: 1px solid #8b8186;
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
  color: #5d5559;
  font-size: 9px;
  font-weight: 800;
}
.intent-filters button.active {
  border-color: #211e20;
  background: #211e20;
  color: #fff;
}
.intent-filters b {
  margin-left: 3px;
}
.bulk-user-bar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bulk-user-bar #selected-user-count {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.user-row {
  display: grid;
  grid-template-columns: 24px 42px minmax(170px, 1.3fr) minmax(
      180px,
      1.2fr
    ) 100px 85px auto;
  gap: 13px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.user-select input {
  position: absolute;
  opacity: 0;
}
.user-select span {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid #cbc4c7;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}
.user-select input:checked + span {
  border-color: var(--brand);
  background: var(--brand);
}
.user-select input:checked + span::after {
  content: "✓";
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.user-select input:disabled + span {
  cursor: not-allowed;
  opacity: 0.35;
}
.user-row:last-child {
  border-bottom: 0;
}
.user-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #fbe5e6;
  color: var(--brand2);
  font-weight: 800;
}
.user-identity strong,
.user-identity span,
.last-login span,
.last-login strong {
  display: block;
}
.user-identity span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}
.user-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.role-badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid var(--role-dark, #303c49);
  background: var(--role-color, #526174);
  color: var(--role-text, #fff);
}
.role-super_admin {
  --role-color: #c83d4a;
  --role-dark: #96242f;
}
.role-admin {
  --role-color: #7552b7;
  --role-dark: #51368c;
}
.role-dispatcher {
  --role-color: #2f6fc2;
  --role-dark: #1d4e91;
}
.role-accountant {
  --role-color: #11885f;
  --role-dark: #08633f;
}
.role-driver {
  --role-color: #e5a12c;
  --role-dark: #a86808;
  --role-text: #211e20;
}
.role-customer {
  --role-color: #2d8e9e;
  --role-dark: #17616e;
}
.role-mechanic {
  --role-color: #62717d;
  --role-dark: #3f4c56;
}
.role-pending {
  --role-color: #211e20;
  --role-dark: #080708;
  --role-text: #fff;
}
.intent-badge {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 6px !important;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 7px !important;
  font-weight: 800;
  text-transform: uppercase;
}
.intent-customer {
  background: #e7f5f7;
  color: #247180 !important;
}
.intent-driver {
  background: #fff1d8;
  color: #9c610b !important;
}
.intent-office {
  background: #eee9fa;
  color: #65459e !important;
}
.intent-unspecified {
  background: #edf0f2;
  color: #46545f !important;
}
.last-login span {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}
.last-login strong {
  margin-top: 3px;
  font-size: 10px;
}
.user-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.user-actions .btn {
  padding: 7px 9px;
  font-size: 9px;
}
.approval-person {
  margin-top: 20px;
  padding: 14px;
  border-radius: 10px;
  background: #f5f7f9;
}
.approval-person strong,
.approval-person span {
  display: block;
}
.approval-person small {
  display: inline-block;
  margin-top: 7px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #fff1d8;
  color: #8c580d;
  font-size: 8px;
  font-weight: 750;
}
.user-approval-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0 0;
}
.user-approval-details > div {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf9f9;
}
.user-approval-details dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.user-approval-details dd {
  margin: 5px 0 0;
  font-size: 11px;
  font-weight: 750;
}
.user-approval-details .intent-badge {
  margin-top: 0 !important;
}
.incomplete-profile-note {
  margin: 11px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #c67a11;
  border-radius: 7px;
  background: #fff6e8;
  color: #75521d;
  font-size: 9px;
  line-height: 1.5;
}
.role-choice-field {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}
.role-choice-field legend {
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 800;
}
.role-choice-field > small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 8px;
}
.role-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.role-choice {
  position: relative;
  border: 1px solid var(--role-color, #526174);
  border-radius: 9px;
  padding: 0;
  overflow: hidden;
  background: #fff !important;
  color: var(--role-color, #526174) !important;
  cursor: pointer;
}
.role-choice span,
.role-choice.role-unassigned {
  display: block;
  padding: 9px 12px;
  background: #fff;
  color: inherit;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}
.role-choice input:checked + span,
.role-choice.role-unassigned.active {
  border-color: var(--role-dark, #303c49);
  background: var(--role-color, #526174);
  color: var(--role-text, #fff);
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(31, 25, 28, 0.16);
}
.role-choice.role-unassigned {
  --role-color: #211e20;
  --role-dark: #080708;
  --role-text: #fff;
  border: 1px solid #211e20;
  background: #fff !important;
  color: #211e20 !important;
}
.role-choice.role-unassigned.active {
  background: #211e20 !important;
  color: #fff !important;
}
.bulk-selection-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.bulk-driver-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 12px;
}
.bulk-driver-list span {
  padding: 7px 10px;
  border: 1px solid #2457a6;
  border-radius: 999px;
  background: #fff;
  color: #2457a6;
  font-size: 11px;
  font-weight: 800;
}
.bulk-selection-summary span {
  padding: 5px 8px;
  border-radius: 7px;
  background: #f2f0f1;
  font-size: 8px;
  font-weight: 700;
}
.bulk-role-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff6e8;
  color: #75521d;
  font-size: 9px;
  line-height: 1.5;
}
.approval-person span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.confirm-code {
  display: inline-block;
  margin-left: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #221e20;
  color: #fff;
  letter-spacing: 0.12em;
}
#confirmation-code {
  width: 150px;
  margin: 8px auto 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  text-align: center;
  font-size: 18px;
}

@media (max-width: 900px) {
  .login-wrap {
    grid-template-columns: 1fr;
  }
  .login-brand {
    display: none;
  }
  .login-panel {
    min-height: 100vh;
  }
  .mobile-logo {
    display: block;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .cost-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stop-row {
    grid-template-columns: 18px 1fr 1fr;
  }
  .stop-location {
    grid-column: 2/-1;
  }
  .stop-row .time-field {
    grid-column: 2 / -1;
  }
  .rate-columns {
    grid-template-columns: 1fr;
  }
  .user-row {
    grid-template-columns: 24px 42px 1fr auto;
  }
  .user-role-list,
  .last-login,
  .user-actions {
    grid-column: 3/-1;
  }
  .user-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 760px) {
  .table-tools {
    flex-wrap: wrap;
  }
  .search-box {
    max-width: none;
    flex-basis: 100%;
  }
  .table-tools select {
    flex: 1;
  }
  .table-wrap {
    overflow: visible;
  }
  table,
  tbody {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    display: block;
    border-bottom: 8px solid var(--canvas);
    padding: 10px 14px;
  }
  td {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 0;
    border: 0;
    white-space: normal;
    text-align: right;
  }
  td:before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 700;
    text-align: left;
  }
  .row-actions {
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    margin-top: 5px;
    padding-top: 8px;
  }
  .row-actions:before {
    display: none;
  }
  .report-kpis {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid > .wide {
    grid-column: auto;
  }
  .modal {
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
  }
  .modal-backdrop {
    padding: 0;
  }
  .stop-row {
    grid-template-columns: 18px 1fr;
  }
  .stop-location {
    grid-column: 2;
  }
  .stop-row label {
    grid-column: 2;
  }
  .remove-stop {
    grid-column: 2;
  }
  .pagination > span {
    display: none;
  }
  .cost-grid {
    grid-template-columns: 1fr 1fr;
  }
  .wizard-tabs {
    grid-template-columns: 1fr 1fr;
  }
  .wizard-panel {
    min-height: auto;
  }
  .rate-preview {
    align-items: flex-start;
    flex-direction: column;
  }
  .rate-preview span {
    margin-right: 0;
  }
}
@media (max-width: 480px) {
  .login-panel {
    padding: 25px;
  }
  .login-card h2 {
    font-size: 24px;
  }
  .phone-field {
    grid-template-columns: 70px minmax(0, 1fr) auto;
  }
  .captcha-stage > div {
    width: 304px;
    transform: scale(0.86);
    transform-origin: center;
  }
  .table-tools .btn {
    width: 100%;
    justify-content: center;
  }
  .cost-grid {
    grid-template-columns: 1fr;
  }
  .toasts {
    left: 14px;
    right: 14px;
  }
  .toast {
    text-align: center;
  }
  .wizard-tabs {
    margin-inline: 14px;
  }
  .wizard-tabs button {
    text-align: left;
  }
  .wizard-panel {
    padding-inline: 18px;
  }
  .wizard-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .wizard-footer > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .wizard-footer .btn {
    justify-content: center;
  }
  .registration-switch {
    width: 100%;
    justify-content: space-between;
  }
  .user-row {
    grid-template-columns: 24px 38px 1fr;
  }
  .user-role-list,
  .last-login,
  .user-actions {
    grid-column: 1/-1;
  }
  .user-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .bulk-user-bar,
  .bulk-user-bar > div {
    align-items: stretch;
    flex-direction: column;
  }
  .bulk-user-bar .btn {
    justify-content: center;
  }
  .registration-role-options,
  .registration-otp-actions,
  .user-approval-details {
    grid-template-columns: 1fr;
  }
}
@media print {
  .sidebar,
  .topbar,
  .page-head .btn,
  .link-btn {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .main {
    display: block;
  }
  .page {
    padding: 0;
  }
  .card {
    box-shadow: none;
  }
}

/* Captain Transport brand */
:root {
  --ink: #201d1f;
  --muted: #706a6d;
  --line: #e7e3e4;
  --canvas: #f6f5f5;
  --nav: #211e20;
  --nav2: #2e292c;
  --brand: #ed1c24;
  --brand2: #c61119;
  --shadow: 0 10px 30px rgba(35, 28, 31, 0.09);
}
.nav-item:hover,
.nav-item.active {
  background: rgba(237, 28, 36, 0.14);
}
.nav-label {
  color: #95898e;
}
.avatar {
  background: #fbe5e6;
  color: var(--brand2);
}
.stat-icon {
  background: #fcebec;
  color: var(--brand2);
}
.login-brand {
  background:
    linear-gradient(135deg, rgba(17, 14, 16, 0.88), rgba(35, 26, 30, 0.64)),
    url("/captain-fleet.jpg") center / cover no-repeat;
}
.login-card input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
}
.captain-brand {
  padding-inline: 4px;
}
.captain-brand img {
  width: 94px;
  height: 46px;
  object-fit: contain;
  background: #fff;
  border-radius: 5px;
  padding: 3px;
}
.captain-brand strong {
  font-size: 15px;
}
.captain-brand small {
  font-size: 10px;
}
.login-company-logo {
  width: min(390px, 80%);
  height: 150px;
  object-fit: contain;
  object-position: left center;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 64px;
}
.mobile-logo img {
  width: 200px;
  height: 90px;
  object-fit: contain;
}
.secure-note {
  background: #f8f5f6;
  color: #706a6d;
  padding: 11px;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 16px;
}
.app-loader img {
  width: 260px;
  height: 120px;
  object-fit: contain;
}
.settings-logo-row {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 4px;
}
.settings-logo-row img {
  width: 190px;
  height: 80px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}
.settings-logo-row strong,
.settings-logo-row small {
  display: block;
}
.settings-logo-row small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.settings-card textarea[name="address"] {
  min-height: 74px;
}

/* Driver timesheets */
.driver-timesheet-page {
  max-width: 1320px;
}
.office-timesheets-page { max-width: 1480px; }
.timesheet-group-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.timesheet-group-controls > span {
  margin-right: 3px;
  color: #687284;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.timesheet-group-controls button {
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid #2874c9;
  border-radius: 999px;
  background: #fff;
  color: #2367b2;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.timesheet-group-controls button.selected {
  border-color: #164d87;
  background: #2874c9;
  color: #fff;
  box-shadow: 0 5px 12px rgba(40, 116, 201, .18);
}
.timesheet-group-controls .finalised-only-toggle {
  margin-left: auto;
  border-color: #14855f;
  color: #0d7653;
}
.timesheet-group-controls .finalised-only-toggle.selected {
  border-color: #086344;
  background: #119267;
  color: #fff;
  box-shadow: 0 5px 12px rgba(17, 146, 103, .2);
}
.page-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.recycle-bin-modal {
  width: min(980px, calc(100vw - 28px));
  max-height: min(820px, calc(100dvh - 28px));
  overflow: auto;
}
.recycle-bin-modal .modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: -28px -28px 18px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid #e3e7ec;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
}
.recycle-bin-modal .modal-head h2,
.recycle-bin-modal .modal-head p { margin: 0; }
.recycle-bin-modal .modal-head h2 { margin: 4px 0 5px; }
.recycle-bin-list { display: grid; gap: 12px; }
.recycle-loading { padding: 36px; text-align: center; color: #657184; font-weight: 750; }
.recycle-timesheet-card {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) minmax(360px, 1.6fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #dfe4ea;
  border-left: 5px solid #738092;
  border-radius: 14px;
  background: #fafbfc;
}
.recycle-timesheet-main h3 { margin: 7px 0 2px; font-size: 17px; }
.recycle-timesheet-main p { margin: 0; color: #687486; font-size: 13px; }
.recycle-timesheet-meta {
  display: grid;
  grid-template-columns: .8fr 1.2fr 1.3fr;
  gap: 12px;
}
.recycle-timesheet-meta small,
.recycle-timesheet-meta strong { display: block; }
.recycle-timesheet-meta small {
  color: #748092;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.recycle-timesheet-meta strong { margin-top: 3px; font-size: 13px; }
.recycle-timesheet-actions { display: grid; gap: 7px; justify-items: stretch; }
.retention-lock { max-width: 170px; color: #6f7886; font-size: 11px; text-align: center; }
.load-older-wrap {
  display: flex;
  justify-content: center;
  padding: 18px;
  border-top: 1px solid #e7eaee;
}
.office-timesheet-shell { padding-bottom: 0; overflow: hidden; }
.office-timesheet-group { padding: 0 16px 18px; }
.office-timesheet-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 8px 2px;
  border-bottom: 1px solid #e0e5eb;
}
.office-timesheet-group > header span {
  color: #6b7585;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.office-timesheet-group > header h2 { margin: 1px 0 0; font-size: 17px; }
.office-timesheet-group > header b {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e9edf2;
  color: #4f5b6d;
  font-size: 11px;
}
.office-timesheet-list { display: grid; gap: 9px; }
.office-timesheet-row {
  display: grid;
  grid-template-columns: minmax(420px, 2.2fr) minmax(230px, 1fr) minmax(180px, .9fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #dde2e8;
  border-left: 5px solid #99a5b3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 11px rgba(27, 36, 48, .04);
}
.office-timesheet-row.needs-attention {
  border-color: #efc4c7;
  border-left-color: #d8202b;
  background: #fff4f4;
}
.office-timesheet-row.approved {
  border-left-color: #119267;
  background: #f5fcf9;
}
.office-timesheet-primary,
.office-timesheet-time {
  display: grid;
  gap: 8px;
}
.office-timesheet-primary { grid-template-columns: .8fr 1.15fr 1.3fr .65fr; }
.office-timesheet-time { grid-template-columns: repeat(3, 1fr); }
.office-timesheet-primary > div,
.office-timesheet-time > div { min-width: 0; }
.office-timesheet-row small,
.office-timesheet-row strong { display: block; }
.office-timesheet-row small {
  color: #6c7788;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.office-timesheet-row strong {
  overflow: hidden;
  margin-top: 2px;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.office-timesheet-status,
.office-timesheet-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.office-timesheet-actions { justify-content: flex-end; }
.office-timesheet-actions .btn { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.timesheet-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px;
  gap: 12px;
  margin-bottom: 22px;
}
.timesheet-tools .search-box,
.timesheet-tools select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 46px;
}
.timesheet-tools select {
  padding: 0 12px;
}
.timesheet-section {
  margin-bottom: 28px;
}
.timesheet-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 12px;
}
.timesheet-section-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.timesheet-section-head h2 {
  margin: 0;
  font-size: 18px;
}
.timesheet-section-head > span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eceff3;
  color: #4b5563;
  font-weight: 800;
  font-size: 12px;
}
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ed1c24;
  box-shadow: 0 0 0 5px rgba(237, 28, 36, 0.12);
}
.driver-timesheet-grid {
  display: grid;
  gap: 14px;
}
.driver-timesheet-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid #758195;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 5px 16px rgba(35, 28, 31, 0.05);
}
.driver-timesheet-card.is-active {
  border-left-color: #ed1c24;
  background: linear-gradient(105deg, #fff4f4 0, #fff 34%);
}
.driver-timesheet-card.is-final {
  border-left-color: #119267;
}
.driver-timesheet-card > header,
.driver-timesheet-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.driver-timesheet-card h3,
.driver-timesheet-card p {
  margin: 0;
}
.driver-timesheet-card h3 {
  margin: 3px 0 2px;
  font-size: 19px;
}
.driver-timesheet-card p span {
  color: #ed1c24;
  font-weight: 900;
}
.timesheet-kicker {
  color: #b71118;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
}
.timesheet-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.timesheet-card-grid > div {
  background: #f6f7f9;
  border-radius: 9px;
  padding: 10px 12px;
}
.timesheet-card-grid small,
.timesheet-card-grid strong {
  display: block;
}
.timesheet-card-grid small,
.timesheet-shift-card small,
.timesheet-event small,
.timesheet-stop-readonly small {
  color: #687284;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.driver-timesheet-card > footer {
  border-top: 1px solid #ece8e9;
  padding-top: 13px;
}
.driver-timesheet-card > footer > div {
  display: flex;
  gap: 8px;
}
.timesheet-live-modal {
  width: min(980px, calc(100vw - 28px));
  overflow-x: hidden;
  scroll-behavior: smooth;
}
.timesheet-live-modal > .timesheet-compact-header {
  align-items: center;
  min-height: 68px;
  padding: 10px 16px;
  border-bottom: 1px solid #dce3ec;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  transition: transform .24s ease, box-shadow .24s ease;
  will-change: transform;
}
.timesheet-live-modal > .timesheet-compact-header.scroll-hidden {
  transform: translateY(calc(-100% - 2px));
  box-shadow: none;
}
.timesheet-compact-header .eyebrow {
  display: inline-flex;
  margin: 0 0 3px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eaf8f3;
  color: #087b56;
  font-size: 9px;
  line-height: 1;
}
.timesheet-compact-header h2 { font-size: 17px; line-height: 1.15; }
.timesheet-compact-header > div:first-child > p:last-child {
  display: inline-flex;
  margin: 4px 0 0 !important;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #225b9c !important;
  font-size: 11px !important;
  font-weight: 750;
}
.timesheet-compact-header .timesheet-sequence {
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid #d8c8f1;
  border-radius: 999px;
  background: #f6f0ff;
  color: #6945a5;
  font-size: 11px;
  font-weight: 850;
}
.timesheet-live-modal > header p:not(.eyebrow),
.timesheet-start-modal > header p:not(.eyebrow) {
  margin: 5px 0 0;
  color: var(--muted);
}
.timesheet-form-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 18px;
  padding: 5px;
  border: 1px solid #dce2ea;
  border-radius: 13px;
  background: #f1f3f6;
}
.timesheet-form-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #667184;
  font: inherit;
  cursor: pointer;
}
.timesheet-form-tabs button > span {
  display: grid;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #c6ced9;
  border-radius: 50%;
  background: #fff;
  font-size: 11px;
  font-weight: 850;
}
.timesheet-form-tabs button strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timesheet-form-tabs button small {
  min-width: 21px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e4e8ee;
  font-size: 10px;
  font-weight: 850;
}
.timesheet-form-tabs button.selected {
  border-color: #b8d9cb;
  background: #fff;
  color: #087b56;
  box-shadow: 0 3px 10px rgba(24, 45, 37, .08);
}
.timesheet-form-tabs button.selected > span {
  border-color: #087b56;
  background: #119267;
  color: #fff;
}
.timesheet-form-tabs button.selected small {
  background: #dff5ec;
  color: #087b56;
}
.timesheet-tab-panel { min-width: 0; animation: timesheet-tab-in .2s ease; }
@keyframes timesheet-tab-in {
  from { opacity: .35; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.timesheet-all-flow .timesheet-tab-panel {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #dfe4ea;
}
.timesheet-all-flow [data-timesheet-panel="setup"] {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.timesheet-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 12px;
}
.timesheet-panel-heading .eyebrow,
.timesheet-panel-heading h3 { margin: 0; }
.timesheet-panel-heading h3 { margin-top: 2px; font-size: 18px; }
.timesheet-panel-heading > span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef3f9;
  color: #546276;
  font-size: 11px;
  font-weight: 800;
}
.timesheet-shift-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: linear-gradient(120deg, #eef5ff, #f8fbff);
  border: 1px solid #cadcf4;
  border-radius: 13px;
  padding: 15px;
  margin-bottom: 20px;
}
.timesheet-setup-card .odometer-reading { grid-column: span 1; }
.timesheet-setup-card .fuel-start-display { grid-column: span 3; }
.timesheet-end-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 18px;
  padding: 15px;
  border: 1px solid #bfe2d5;
  border-radius: 13px;
  background: linear-gradient(120deg, #effbf6, #fbfffd);
}
.timesheet-end-summary > div,
.timesheet-end-summary > label {
  min-width: 0;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .86);
}
.timesheet-end-summary small,
.timesheet-end-summary label {
  color: #5b687a;
  font-size: 11px;
  font-weight: 750;
}
.timesheet-end-summary strong { display: block; margin-top: 4px; font-size: 18px; }
.timesheet-end-summary input[type="number"] {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #bdcbd8;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  font: inherit;
  font-weight: 750;
}
.timesheet-shift-card > div,
.timesheet-shift-card > label {
  min-width: 0;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 9px;
  padding: 10px;
}
.timesheet-shift-card strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.timesheet-shift-card label {
  font-size: 11px;
  font-weight: 750;
  color: #566175;
}
.timesheet-shift-card input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #aebed2;
  background: transparent;
  padding: 6px 0 2px;
  font: inherit;
  font-weight: 750;
}
.timesheet-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.timesheet-timeline-head h3,
.timesheet-timeline-head p {
  margin: 0;
}
.timesheet-timeline-head p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.timesheet-timeline {
  display: grid;
  gap: 13px;
}
.timesheet-stop-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  border: 1px solid #efd2d4;
  border-radius: 13px;
  padding: 15px;
  background: #fff8f8;
}
.timesheet-stop-card.has-arrival {
  border-color: #bed9f4;
  background: #f7fbff;
}
.timesheet-stop-card.is-complete {
  border-color: #bfe2d5;
  background: #f5fcf9;
}
.timesheet-stop-number {
  display: grid;
  place-items: center;
  align-self: start;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #ed1c24;
  font-weight: 850;
}
.has-arrival .timesheet-stop-number { background: #367bc7; }
.is-complete .timesheet-stop-number { background: #119267; }
.timesheet-stop-heading,
.timesheet-event-grid,
.timesheet-stop-fields,
.timesheet-stop-readonly {
  display: grid;
  gap: 10px;
}
.timesheet-stop-heading {
  grid-template-columns: 1fr auto;
  align-items: start;
}
.timesheet-stop-heading span {
  color: #687284;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.timesheet-stop-heading h3 {
  margin: 2px 0 0;
  font-size: 18px;
}
.timesheet-stop-heading > strong {
  text-align: right;
  color: #8b5b08;
}
.timesheet-stop-heading strong small {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
}
.timesheet-event-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}
.timesheet-event {
  border-radius: 9px;
  padding: 11px;
  background: #fff;
  border: 1px solid #e4e8ed;
}
.timesheet-event strong {
  display: block;
  margin: 3px 0 9px;
  font-size: 14px;
}
.timesheet-event .btn {
  width: 100%;
}
.timesheet-stop-fields {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px dashed #ccd4dd;
}
.timesheet-stop-fields label {
  min-width: 0;
  color: #4b5668;
  font-size: 11px;
  font-weight: 750;
}
.pod-quick-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: start;
  min-width: 0;
  min-height: 40px;
  margin-top: 18px;
  padding: 4px 5px 4px 10px;
  border: 1px solid #cfd7e2;
  border-radius: 9px;
  background: #fff;
}
.pod-quick-field > span {
  color: #4b5668;
  font-size: 11px;
  font-weight: 800;
}
.pod-quick-field > div { display: flex; gap: 9px; }
.pod-choice {
  min-width: 60px;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.trailer-quick-choices {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  min-width: 0;
}
.trailer-quick-choices > small {
  flex: 0 0 auto;
  color: #6a7587;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.trailer-quick-choices > div {
  display: flex;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
  padding: 1px 2px 3px;
  scrollbar-width: thin;
}
.trailer-quick-choice {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #2874c9;
  border-radius: 999px;
  background: #fff;
  color: #2367b2;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.trailer-quick-choice.selected {
  border-color: #075d40;
  background: #119267;
  color: #fff;
}
.trailer-quick-choice.bobtail {
  border-color: #7657bc;
  color: #6542aa;
}
.trailer-quick-choice.bobtail.selected {
  border-color: #402577;
  background: #7657bc;
  color: #fff;
}
.pod-choice.yes { border-color: #119267; color: #087b56; }
.pod-choice.no { border-color: #c94b52; color: #b11821; }
.pod-choice.yes.selected {
  border-color: #056342;
  background: #119267;
  color: #fff;
}
.pod-choice.no.selected {
  border-color: #8f0e16;
  background: #d53039;
  color: #fff;
}
.timesheet-stop-fields label.wide {
  grid-column: 1 / -1;
}
.timesheet-stop-fields input,
.timesheet-stop-fields select,
.timesheet-general-notes textarea {
  width: 100%;
  margin-top: 5px;
  border: 1px solid #cfd7e2;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  font: inherit;
}
.timesheet-stop-readonly {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
}
.timesheet-stop-readonly small { display: block; }
.timesheet-stop-readonly p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
}
.timesheet-general-notes {
  margin-top: 18px;
}
.timesheet-general-notes textarea {
  min-height: 78px;
  resize: vertical;
}
.timesheet-dispatch-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.timesheet-dispatch-option {
  display: grid;
  gap: 4px;
  position: relative;
  text-align: left;
  border: 2px solid #cfd7e2;
  border-radius: 12px;
  background: #fff;
  color: #293445;
  padding: 15px;
  cursor: pointer;
  font: inherit;
  transition: 0.18s ease;
}
.timesheet-dispatch-option.new-timesheet {
  border-color: #9dd6c0;
  background: #f3fcf8;
}
.timesheet-dispatch-option.has-timesheet {
  border-color: #e4d6ba;
  background: #fffaf0;
}
.timesheet-dispatch-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(31, 41, 55, 0.09);
}
.timesheet-dispatch-option.selected {
  border-color: #087b56;
  background: #0b9368;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(11, 147, 104, 0.15);
}
.timesheet-dispatch-option strong {
  font-size: 16px;
}
.timesheet-dispatch-option small {
  opacity: 0.82;
}
.dispatch-option-status {
  justify-self: start;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 7px;
  color: #0a7654;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.has-timesheet .dispatch-option-status { color: #956616; }
.selected .dispatch-option-status { color: #fff; }
.vehicle-reading-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.vehicle-reading-grid > label {
  font-size: 12px;
  font-weight: 750;
  color: #4e596c;
}
.vehicle-reading-grid > label input {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #cbd6e5;
  border-radius: 9px;
  background: #fff;
  font: inherit;
}
.vehicle-reading-grid .wide { grid-column: 1 / -1; }
.fuel-level-control {
  padding: 13px 15px 10px;
  border: 1px solid #d4dfec;
  border-radius: 11px;
  background: #fff;
}
.fuel-level-control > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fuel-level-control label {
  font-size: 12px;
  font-weight: 800;
}
.fuel-level-control output {
  color: #087b56;
  font-size: 20px;
  font-weight: 900;
}
.fuel-level-control input[type="range"] {
  width: 100%;
  height: 9px;
  margin: 12px 0 5px;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: linear-gradient(90deg, #e33b40 0, #e4a930 36%, #16a270 var(--fuel), #e1e6ec var(--fuel));
  cursor: grab;
}
.fuel-level-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 25px;
  height: 25px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #087b56;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.fuel-level-control input[type="range"]:disabled {
  cursor: default;
  opacity: .72;
}
.fuel-table-value {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 28px;
  overflow: hidden;
  border: 1px solid #b9d7cc;
  border-radius: 999px;
  background: #edf2f0;
  color: #174d3d;
}
.fuel-table-value i {
  position: absolute;
  inset: 0 auto 0 0;
  background: #a8e1ce;
}
.fuel-table-value b {
  position: relative;
  z-index: 1;
  font-size: 11px;
}
.fuel-scale {
  display: flex;
  justify-content: space-between;
  color: #778194;
  font-size: 9px;
  font-weight: 700;
}
.camera-proof {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 14px;
}
.camera-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 115px;
  overflow: hidden;
  border: 1px dashed #d3b36e;
  border-radius: 11px;
  background: rgba(255, 255, 255, .72);
  color: #80621e;
  text-align: center;
}
.camera-preview > span:first-child { font-size: 27px; }
.camera-preview p { margin: 3px 0; }
.camera-preview img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.camera-captured-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #087b56;
  color: #fff;
  font-size: 10px !important;
  font-weight: 850;
}
.camera-capture-layer,
.repeat-timesheet-layer {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(17, 24, 39, .82);
  backdrop-filter: blur(7px);
}
.camera-capture-card,
.repeat-timesheet-card {
  width: min(680px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .35);
  padding: 20px;
}
.camera-capture-card > header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}
.camera-capture-card h2,
.camera-capture-card p { margin: 0; }
.camera-capture-card header p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 4px;
}
.camera-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  background: #111;
  aspect-ratio: 4 / 3;
}
.camera-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-guide {
  position: absolute;
  inset: 11%;
  display: grid;
  place-items: end center;
  border: 2px dashed rgba(255, 255, 255, .8);
  border-radius: 12px;
  pointer-events: none;
}
.camera-guide span {
  transform: translateY(-8px);
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .68);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.camera-error {
  min-height: 20px;
  margin: 8px 0;
  color: #bd1720;
  font-weight: 700;
}
.camera-capture-card footer,
.repeat-timesheet-card footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
}
.repeat-timesheet-card {
  width: min(560px, 100%);
  text-align: center;
}
.repeat-timesheet-card h2 { margin: 10px 0 6px; }
.repeat-timesheet-card > p { color: var(--muted); }
.repeat-sheet-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
  text-align: left;
}
.repeat-sheet-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}
.repeat-sheet-list strong,
.repeat-sheet-list small { display: block; }
.repeat-sheet-list small { color: var(--muted); }
.timesheet-sequence {
  align-self: center;
  margin-left: auto;
  color: #6b7280;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.timesheet-photo-strip { margin-bottom: 20px; }
.timesheet-photo-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.dashboard-photo-link {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 9px;
  text-align: left;
  border: 1px solid #cfd8e4;
  border-radius: 10px;
  background: #fff;
  padding: 11px;
  color: #263245;
  cursor: pointer;
}
.dashboard-photo-link > span {
  grid-row: span 2;
  align-self: center;
  color: #2f6ebc;
  font-size: 21px;
}
.dashboard-photo-link strong,
.dashboard-photo-link small { display: block; }
.dashboard-photo-link small { color: var(--muted); }
.dashboard-photo-link.capture {
  border-style: dashed;
  background: #f7fbff;
}
.timesheet-photo-actions .camera-preview {
  grid-column: 1 / -1;
}
.timesheet-stop-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.timesheet-drag-handle {
  width: 28px;
  min-height: 31px;
  border: 1px solid #cbd4df;
  border-radius: 8px;
  background: #fff;
  color: #69778a;
  cursor: grab;
  font-weight: 900;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.timesheet-stop-card.dragging {
  opacity: .62;
  transform: scale(.99);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .15);
}
.timesheet-drag-handle.holding {
  border-color: #119267;
  color: #087b56;
  box-shadow: 0 0 0 4px rgba(17, 146, 103, .12);
  animation: timesheet-hold-ready 2s linear forwards;
}
@keyframes timesheet-hold-ready {
  0% { background: #fff; }
  100% { background: #dff5ec; }
}
.timesheet-timeline.compact-reorder-mode {
  gap: 6px;
  padding: 8px;
  border: 1px solid #b8d9cb;
  border-radius: 13px;
  background: #eef9f4;
}
.timesheet-timeline.compact-reorder-mode .timesheet-stop-card {
  grid-template-columns: 68px minmax(0, 1fr);
  min-height: 48px;
  gap: 8px;
  padding: 6px 9px;
  border-color: #b9c9d6;
  border-radius: 9px;
  background: #fff;
}
.timesheet-timeline.compact-reorder-mode .timesheet-stop-rail {
  flex-direction: row;
  gap: 5px;
}
.timesheet-timeline.compact-reorder-mode .timesheet-drag-handle {
  width: 30px;
  min-height: 34px;
}
.timesheet-timeline.compact-reorder-mode .timesheet-stop-number {
  width: 28px;
  height: 28px;
}
.timesheet-timeline.compact-reorder-mode .timesheet-stop-heading {
  display: block;
  padding: 7px 0;
}
.timesheet-timeline.compact-reorder-mode .timesheet-stop-heading span,
.timesheet-timeline.compact-reorder-mode .timesheet-stop-heading > strong,
.timesheet-timeline.compact-reorder-mode .timesheet-stop-main > :not(.timesheet-stop-heading) {
  display: none;
}
.timesheet-timeline.compact-reorder-mode .timesheet-stop-heading h3 {
  overflow: hidden;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timesheet-timeline.compact-reorder-mode .timesheet-stop-card.dragging {
  opacity: 1;
  border: 2px solid #119267;
  background: #e8f8f1;
  box-shadow: 0 8px 20px rgba(17, 146, 103, .2);
}
.timesheet-stop-card.chronology-warning {
  border: 2px solid #d91c27;
  background: #fff0f1;
}
.timesheet-stop-card.chronology-warning::after {
  content: "Time is earlier than the previous location";
  position: absolute;
  right: 12px;
  top: 10px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #c9141d;
  color: #fff;
  font-size: 9px;
  font-weight: 850;
}
.timesheet-stop-card.action-focus {
  animation: timesheet-focus-pulse .82s ease-in-out 3;
}
@keyframes timesheet-focus-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(17, 146, 103, 0); }
  45% {
    border-color: #119267;
    background: #edfbf5;
    box-shadow: 0 0 0 6px rgba(17, 146, 103, .2), 0 14px 30px rgba(17, 146, 103, .15);
  }
}

.driver-timesheet-card.is-active {
  border-color: #76c7a9;
  background: linear-gradient(135deg, #f1fff9 0%, #fff 62%);
}
.resume-timesheet-button {
  box-shadow: 0 8px 18px rgba(17, 146, 103, .2);
}
.active-timesheet-choice { width: min(720px, calc(100% - 24px)); }
.active-timesheet-choice .repeat-sheet-list { max-height: 330px; overflow: auto; }
.active-sheet-choice-row > span { min-width: 0; }
.active-sheet-choice-row strong,
.active-sheet-choice-row small { display: block; }
.active-sheet-choice-row strong { overflow-wrap: anywhere; }
.active-sheet-choice-row small { margin-top: 5px; color: var(--muted); }
.active-timesheet-note {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e9c97f;
  border-radius: 11px;
  background: #fff8e8;
  color: #6c4b08;
}
.active-timesheet-note span { font-size: 13px; }
.timesheet-overlap-row,
.timesheet-overlap-row:hover { background: inherit; }
.timesheet-overlap-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 7px 9px;
  border: 1px solid #d8202b;
  border-radius: 999px;
  background: #fff;
  color: #b4131d;
  font-size: 12px;
  font-weight: 850;
}
.timesheet-overlap-warning {
  display: flex;
  gap: 12px;
  margin: 16px 20px 0;
  padding: 14px;
  border: 1px solid #d8202b;
  border-left-width: 5px;
  border-radius: 12px;
  background: #fff0f1;
  color: #761016;
}
.timesheet-overlap-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #c9141d;
  color: #fff;
  font-weight: 900;
}
.timesheet-overlap-warning strong { font-size: 15px; }
.timesheet-overlap-warning p { margin: 4px 0 8px; }
.timesheet-overlap-warning div:last-child div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.timesheet-overlap-warning span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}
.timesheet-overlap-warning div:last-child > div > button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px;
  border: 1px solid #d8202b;
  border-radius: 999px;
  background: #fff;
  color: #9f1019;
  cursor: pointer;
}
.timesheet-overlap-warning div:last-child > div > button:hover {
  background: #ffe2e4;
}
.timesheet-overlap-warning div:last-child > div > button b {
  padding-right: 8px;
  font-size: 11px;
  white-space: nowrap;
}
.comparison-backdrop { padding: 10px; }
.timesheet-comparison-modal {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: min(1500px, 100%);
  height: min(94vh, 980px);
  overflow: hidden;
  border-radius: 16px;
  background: #f5f7fa;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}
.timesheet-comparison-modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid #dce2ea;
  background: #fff;
}
.timesheet-comparison-modal > header h1,
.timesheet-comparison-modal > header p { margin: 0; }
.timesheet-comparison-modal > header h1 { font: 800 20px Manrope, sans-serif; }
.timesheet-comparison-modal > header p:last-child { margin-top: 3px; color: var(--muted); }
.comparison-help,
.comparison-clear-banner {
  margin: 10px 14px 0;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
}
.comparison-help {
  border: 1px solid #cbd8e7;
  background: #edf4fc;
  color: #315b88;
}
.comparison-clear-banner {
  border: 1px solid #9dd5c0;
  background: #e9f9f2;
  color: #087b56;
}
.timesheet-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 0;
  gap: 12px;
  padding: 12px 14px 14px;
}
.timesheet-comparison-pane {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #d8dee7;
  border-radius: 13px;
  background: #fff;
}
.timesheet-comparison-pane > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e6ec;
}
.timesheet-comparison-pane > header h2,
.timesheet-comparison-pane > header p { margin: 0; }
.timesheet-comparison-pane > header h2 { font-size: 17px; }
.timesheet-comparison-pane > header p:last-child {
  margin-top: 3px;
  color: #526174;
  font-size: 12px;
}
.comparison-close-sheet {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid #d6dde6;
  border-radius: 8px;
  background: #f4f6f8;
  color: #576477;
  font-size: 18px;
  cursor: pointer;
}
.comparison-sheet-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px 12px;
  background: #f8fafc;
}
.comparison-sheet-facts span { min-width: 0; }
.comparison-sheet-facts small,
.comparison-sheet-facts strong { display: block; }
.comparison-sheet-facts small {
  color: #6a7587;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.comparison-sheet-facts strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comparison-route-scroll {
  min-height: 0;
  overflow: auto;
  scroll-behavior: smooth;
  padding: 10px;
}
.comparison-stop-card {
  margin-bottom: 9px;
  padding: 11px;
  border: 1px solid #dce2e9;
  border-left: 5px solid #aeb8c5;
  border-radius: 10px;
  background: #fff;
}
.comparison-stop-card.has-conflict {
  border-color: var(--compare-accent);
  border-left-width: 6px;
  background: var(--compare-tint);
}
.comparison-stop-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.comparison-stop-card > header span {
  color: #687284;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.comparison-stop-card h3 { margin: 2px 0 0; font-size: 15px; }
.comparison-conflict-markers { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.comparison-conflict-markers b {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--marker);
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
}
.comparison-time-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}
.comparison-time-fields label {
  color: #596578;
  font-size: 10px;
  font-weight: 800;
}
.comparison-time-fields input {
  width: 100%;
  min-width: 0;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid #bfc9d5;
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-size: 12px;
}
.comparison-stop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  color: #657184;
  font-size: 10px;
}
.timesheet-comparison-pane > footer {
  display: flex;
  justify-content: flex-end;
  padding: 9px 12px;
  border-top: 1px solid #e0e5eb;
  background: #fff;
}
.comparison-readonly { color: var(--muted); font-size: 12px; font-weight: 750; }
.comparison-mobile-tabs { display: none; }
.comparison-stop-card.conflict-resolved {
  border-color: #119267;
  background: #e7f9f1;
  animation: comparison-resolved-blink .7s ease-in-out 2;
}
@keyframes comparison-resolved-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(17, 146, 103, 0); }
  50% { box-shadow: 0 0 0 6px rgba(17, 146, 103, .22); background: #c8f2df; }
}
@media (max-width: 900px) {
  .comparison-backdrop { padding: 0; }
  .timesheet-comparison-modal { width: 100%; height: 100%; border-radius: 0; }
  .timesheet-comparison-modal > header { padding: 10px 12px; }
  .timesheet-comparison-modal > header h1 { font-size: 16px; }
  .comparison-mobile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 7px 10px;
    background: #eef1f5;
  }
  .comparison-mobile-tabs button {
    overflow: hidden;
    padding: 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #596578;
    font: inherit;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .comparison-mobile-tabs button.selected {
    border-color: #9fcab8;
    background: #fff;
    color: #087b56;
  }
  .timesheet-comparison-grid { grid-template-columns: 1fr; padding: 9px; }
  .timesheet-comparison-pane.mobile-hidden { display: none; }
  .comparison-time-fields input { font-size: 16px; }
}
.stop-paperwork {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding: 12px;
  border: 1px solid #d8d2eb;
  border-radius: 11px;
  background: #faf8ff;
}
.stop-paperwork > div:first-child { display: grid; gap: 2px; }
.stop-paperwork small { color: var(--muted); }
.stop-paperwork-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}
.paperwork-page-chip {
  border: 1px solid #7657bc;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: #6542aa;
  font-weight: 800;
  cursor: pointer;
}
.scan-paperwork-button { color: #6542aa; border-color: #7657bc; }
.paperwork-scanner-card { width: min(820px, 100%); }
.paperwork-camera-stage { display: grid; gap: 10px; }
.document-viewport { background: #131313; aspect-ratio: 3 / 4; }
.document-viewport video { object-fit: contain; }
.document-corner-guide {
  position: absolute;
  inset: 5.5%;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.35);
}
.document-corner-guide i {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: #35dc9c;
  border-style: solid;
}
.document-corner-guide i:nth-child(1) { left: 0; top: 0; border-width: 3px 0 0 3px; }
.document-corner-guide i:nth-child(2) { right: 0; top: 0; border-width: 3px 3px 0 0; }
.document-corner-guide i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 3px 3px; }
.document-corner-guide i:nth-child(4) { right: 0; bottom: 0; border-width: 0 3px 3px 0; }
.document-corner-guide span {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-weight: 800;
}
.paperwork-pages { margin-top: 14px; }
.paperwork-pages-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.paperwork-pages-head span { color: var(--muted); }
.paperwork-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.paperwork-page-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid #d8dee7;
  border-radius: 10px;
  background: #f6f8fb;
}
.paperwork-page-grid img { width: 100%; height: 118px; object-fit: cover; display: block; }
.paperwork-page-grid strong { display: block; padding: 7px 9px; }
.paperwork-page-grid button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(178, 23, 32, .92);
  color: #fff;
  font-size: 18px;
}
.paperwork-classification {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #cddaf0;
  border-radius: 12px;
  background: #f6f9ff;
}
.paperwork-classification h3 { margin: 0 0 10px; }
.paperwork-upload-progress {
  display: grid;
  gap: 7px;
  margin-top: 15px;
  padding: 12px;
  border: 1px solid #bcd8f6;
  border-radius: 11px;
  background: #fff;
}
.paperwork-upload-progress > div { display: flex; justify-content: space-between; gap: 10px; }
.paperwork-upload-progress output { color: #1769aa; font-weight: 900; }
.paperwork-upload-progress progress {
  width: 100%;
  height: 14px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  accent-color: #119267;
}
.paperwork-upload-progress small { color: var(--muted); }
.paperwork-type-badges { display: flex; gap: 8px; margin-bottom: 12px; }
.paperwork-type-badges button {
  min-width: 78px;
  padding: 9px 14px;
  border: 2px solid #2874c9;
  border-radius: 999px;
  background: #fff;
  color: #2367b2;
  font-weight: 850;
}
.paperwork-type-badges button.selected {
  border-color: #144a85;
  background: #2874c9;
  color: #fff;
}
.print-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 16px; }
.print-choice {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 2px solid #cdd8e7;
  border-radius: 13px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.print-choice:hover:not(:disabled) { border-color: #ed1c24; background: #fff7f7; }
.print-choice strong { font-size: 16px; }
.print-choice small { color: var(--muted); }
.print-choice:disabled { opacity: .55; cursor: not-allowed; }
.event-time-editor {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #d7dde5;
  color: #687284;
  font-size: 10px;
  font-weight: 750;
}
.event-time-editor input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid #ccd6e2;
  border-radius: 7px;
  background: #fff;
  font: inherit;
  color: #253044;
}
.original-time {
  display: block;
  margin-top: 6px;
  color: #9a5d08;
  font-size: 9px;
  font-weight: 750;
}

@media (max-width: 1220px) {
  .office-timesheet-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .office-timesheet-primary { grid-column: 1 / -1; }
  .office-timesheet-actions { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .timesheet-dispatch-picker,
  .vehicle-reading-grid,
  .timesheet-photo-actions,
  .camera-proof {
    grid-template-columns: 1fr;
  }
  .office-timesheet-group { padding: 0 10px 14px; }
  .office-timesheet-row { grid-template-columns: 1fr; padding: 12px; }
  .office-timesheet-primary {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .office-timesheet-time { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .office-timesheet-status,
  .office-timesheet-actions {
    grid-column: auto;
    justify-content: flex-start;
  }
  .office-timesheet-actions .btn { flex: 1 1 auto; }
  .timesheet-group-controls > span { width: 100%; }
  .timesheet-group-controls button { flex: 1 1 calc(50% - 8px); }
  .vehicle-reading-grid .wide { grid-column: auto; }
  .timesheet-sequence {
    order: 3;
    width: 100%;
    margin: 0;
  }
  .timesheet-compact-header .timesheet-sequence {
    order: 0;
    width: auto;
    margin-left: auto;
    white-space: nowrap;
  }
  .timesheet-live-modal > .timesheet-compact-header { min-height: 62px; padding: 8px 10px; }
  .timesheet-compact-header h2 { font-size: 15px; }
  .timesheet-compact-header > div:first-child > p:last-child {
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .camera-capture-card,
  .repeat-timesheet-card { padding: 15px; }
  .camera-capture-card footer,
  .repeat-timesheet-card footer {
    display: grid;
    grid-template-columns: 1fr;
  }
  .timesheet-tools,
  .timesheet-card-grid,
  .timesheet-shift-card,
  .timesheet-end-summary,
  .timesheet-event-grid,
  .timesheet-stop-fields,
  .timesheet-stop-readonly {
    grid-template-columns: 1fr;
  }
  .timesheet-setup-card .odometer-reading,
  .timesheet-setup-card .fuel-start-display { grid-column: auto; }
  .timesheet-form-tabs {
    gap: 3px;
    margin: 8px 0 14px;
    padding: 4px;
  }
  .timesheet-form-tabs button {
    min-height: 47px;
    gap: 4px;
    padding: 6px 4px;
  }
  .timesheet-form-tabs button > span {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
  .timesheet-form-tabs button strong { font-size: 11px; }
  .timesheet-form-tabs button small { display: none; }
  .driver-timesheet-card > header,
  .driver-timesheet-card > footer,
  .timesheet-timeline-head {
    align-items: stretch;
    flex-direction: column;
  }
  .driver-timesheet-card > footer > div,
  .driver-timesheet-card > footer .btn,
  .timesheet-timeline-head .btn {
    width: 100%;
  }
  .driver-timesheet-card > footer > div {
    display: grid;
  }
  .timesheet-stop-card {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 12px 10px;
  }
  .stop-paperwork { align-items: stretch; flex-direction: column; }
  .stop-paperwork-actions { justify-content: flex-start; }
  .scan-paperwork-button { width: 100%; }
  .paperwork-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .print-choice-grid { grid-template-columns: 1fr; }
  .timesheet-stop-number {
    width: 28px;
    height: 28px;
  }
  .timesheet-stop-heading {
    grid-template-columns: 1fr;
  }
  .timesheet-stop-heading > strong {
    text-align: left;
  }
  .timesheet-live-modal footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Readability scale */
body {
  font-size: 15px;
  line-height: 1.45;
}
.brand small,
.captain-brand small,
.sidebar-foot {
  font-size: 12px;
}
.nav-label {
  font-size: 12px;
}
.nav-item {
  padding-block: 11px;
  font-size: 14px;
}
.crumb,
.page-head p {
  font-size: 14px;
}
.user-name small {
  font-size: 12px;
}
.btn {
  font-size: 14px;
}
.page-head h1 {
  font-size: 29px;
}
.stat-top,
.load-row,
.alert-item strong {
  font-size: 14px;
}
.trend,
.alert-item small,
.route small {
  font-size: 12px;
}
.panel-head h2 {
  font-size: 17px;
}
.link-btn {
  font-size: 13px;
}
.status {
  padding: 6px 10px;
  font-size: 11px;
}
.load-row {
  grid-template-columns: minmax(180px, 1.6fr) minmax(100px, 0.75fr) minmax(
      90px,
      0.65fr
    ) auto;
  grid-template-areas:
    "route driver equipment status"
    "reference reference reference reference";
}
.load-row .route {
  grid-area: route;
  min-width: 0;
}
.load-row .driver {
  grid-area: driver;
}
.load-row .equipment {
  grid-area: equipment;
}
.load-row > .status {
  grid-area: status;
  justify-self: end;
}
.load-row .load-id {
  grid-area: reference;
  min-width: 0;
  color: #8a93a0;
  font: 650 9px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}
.table-tools,
.table-tools input,
.table-tools select,
.pagination,
td {
  font-size: 14px;
}
th,
th button {
  font-size: 12px;
}
@media (max-width: 760px) {
  .customer-record-grid.list-view {
    padding: 12px;
  }
  .customer-record-card,
  .customer-record-card.compact {
    padding: 16px;
    border-left-width: 5px;
  }
  .customer-record-head,
  .customer-record-footer,
  .customer-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .customer-record-head .status {
    align-self: flex-start;
  }
  .customer-record-body,
  .customer-record-body.document-body,
  .customer-record-body.invoice-body {
    grid-template-columns: 1fr;
  }
  .customer-card-actions,
  .customer-card-actions .btn {
    width: 100%;
  }
  .customer-dashboard-stack > section {
    padding: 14px;
  }
  .driver-dispatch-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .driver-dispatch-card {
    padding: 15px;
  }
  .dispatch-card-head,
  .dispatch-card-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .dispatch-card-head .status {
    align-self: flex-start;
  }
  .dispatch-schedule {
    grid-template-columns: 1fr;
  }
  .dispatch-time {
    width: 100%;
  }
  .dispatch-response-actions {
    width: 100%;
  }
  .dispatch-response-actions .btn {
    flex: 1;
  }
  .job-reference {
    max-width: 100%;
  }
  .load-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "route status"
      "reference reference";
  }
  .load-row .driver,
  .load-row .equipment {
    display: none;
  }
}
td {
  padding-block: 15px;
}
.modal h2 {
  font-size: 22px;
}
.modal > header p:not(.eyebrow),
.registration-modal > header p:not(.eyebrow) {
  font-size: 12px;
}
.login-card > label,
.login-tab-panel form > label,
.form-grid label,
.stop-row label,
.choice-field legend,
.role-choice-field legend,
.registration-role-field legend,
.input-label,
.otp-input-label {
  font-size: 13px;
}
.login-card input,
.login-tab-panel input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.stop-row input,
.stop-row select,
.table-tools select {
  font-size: 14px;
}
.form-grid label small,
.registration-role-field small,
.role-choice-field > small,
.auth-disclosure,
.registration-closed,
.settings-card .panel-head p,
.section-title p,
.info-callout,
.settings-callout {
  font-size: 11px;
}
.eyebrow {
  font-size: 12px !important;
}
.login-card > .muted,
.login-brand > div > p:last-child {
  font-size: 15px;
}
.login-tabs button,
.keep-signed-in,
.text-btn {
  font-size: 13px;
}
.phone-field label span,
.registration-phone-field span {
  font-size: 10px;
}
.phone-field input,
.registration-phone-field input {
  font-size: 15px;
}
.registration-card-head h3 {
  font-size: 16px;
}
.registration-card-head p,
.otp-sent small,
.incomplete-profile-note,
.bulk-role-note {
  font-size: 11px;
}
.registration-role-options span,
.choice-badge span {
  font-size: 12px;
}
.wizard-tabs button,
.wizard-panel p,
.request-summary span {
  font-size: 12px;
}
.wizard-panel h3,
.form-section-head h3 {
  font-size: 16px;
}
.form-section-head p,
.rate-card-title small,
.rate-adjustment small,
.rate-specific small {
  font-size: 11px;
}
.mini-badge,
.pay-rate,
.role-badge,
.intent-badge,
.role-choice span,
.role-choice.role-unassigned,
.bulk-selection-summary span {
  font-size: 11px !important;
}
.user-tabs button,
.intent-filters button,
.intent-filters > span,
.bulk-user-bar #selected-user-count,
.user-actions .btn {
  font-size: 12px;
}
.user-identity strong {
  font-size: 14px;
}
.user-identity span,
.last-login strong,
.approval-person span,
.approval-person small {
  font-size: 12px;
}
.last-login span,
.user-approval-details dt {
  font-size: 10px;
}
.user-approval-details dd {
  font-size: 13px;
}
.report-stat span,
.report-stat small,
.progress-row,
.legend,
.cost-item span {
  font-size: 12px;
}

@media (max-width: 760px) {
  .page-head-actions { width: 100%; justify-content: stretch; }
  .page-head-actions .btn { flex: 1 1 auto; }
  .timesheet-group-controls .finalised-only-toggle { margin-left: 0; }
  .recycle-bin-modal { padding: 20px 14px; }
  .recycle-bin-modal .modal-head {
    margin: -20px -14px 14px;
    padding: 18px 14px 14px;
  }
  .recycle-timesheet-card { grid-template-columns: 1fr; gap: 13px; }
  .recycle-timesheet-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recycle-timesheet-meta > div:last-child { grid-column: 1 / -1; }
  .recycle-timesheet-actions { grid-template-columns: 1fr; }
  .retention-lock { max-width: none; }
}
