/* Transport presentation, using the same frame and controls as Hub Cloud. */
:root {
  --brand: #f4b500;
  --brand-dark: #765800;
  --ink: #171717;
  --muted: #686862;
  --paper: #fff;
  --workspace: #ecece8;
  --surface-soft: #f5f5f3;
  --line: #deded9;
  --shadow: 0 16px 36px #0003;
}
html, body { background: #242424; }
body { padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); font: 14px/1.45 Arial, Helvetica, sans-serif; }
h1, h2, h3 { font-family: inherit; letter-spacing: 0; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
label { min-width: 0; gap: 5px; }
label > span { color: #343431; font-size: 12px; font-weight: 700; }
input, select, textarea { min-width: 0; min-height: 40px; padding: 9px 10px; border-color: #d1d1ca; border-radius: 5px; font-size: 14px; }
input:focus, select:focus, textarea:focus { border-color: #b58400; box-shadow: 0 0 0 3px #f4b50030; }
.primary-button { min-height: 40px; padding: 9px 12px; border-color: #d49d00 !important; border-radius: 5px; font-size: 12px; font-weight: 700 !important; }
.primary-button:hover:not(:disabled) { background: #ffc61a !important; transform: none; }
.eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }

/* Shared brand bar and page width. */
.driver-header { max-width: 1568px; min-height: 74px; margin: 0 auto 14px; padding: 15px 18px; border: 1px solid var(--brand); border-radius: 10px; background: var(--brand); color: #000; box-shadow: var(--shadow); }
.driver-brand { min-width: 0; color: #000; gap: 0; }
.driver-user-actions { min-width: 0; color: #27220d; }
.driver-user-actions > span { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.driver-user-actions button { flex: none; min-height: 34px; padding: 7px 13px; border: 1px solid #b58400; border-radius: 20px; background: #171717; color: #fff; font-size: 12px; }
main { width: 100%; max-width: 1568px; }
.site-footer { width: 100%; max-width: 1568px; min-height: 60px; color: #aaa9a3; font-size: 11px; }

/* Sign-in panel. */
.login-view { min-height: calc(100dvh - 180px); padding: 22px 0; gap: 16px; }
.login-card { width: min(500px, 100%); padding: 0; border: 1px solid #bd951f; border-radius: 10px; overflow: hidden; }
.login-card-heading { padding: 18px 20px; background: #30302e; color: #fff; }
.login-card-heading .eyebrow { color: var(--brand); }
.login-card h1 { margin: 5px 0 6px; font-size: 25px; line-height: 1.2; }
.login-card-heading p { margin: 0; color: #c4c4be; font-size: 13px; }
.form-stack { margin: 0; padding: 20px; gap: 16px; }
.login-instructions { margin: 0; color: var(--muted); font-size: 13px; }
.login-card > .service-unavailable { margin: 16px 20px 0; }
.login-note { font-size: 12px; }
.form-error:empty { display: none; }

/* One workspace: dark section heading above pale filters and white job cards. */
.dashboard-view { padding: 0; margin-bottom: 24px; min-width: 0; border: 1px solid #bd951f; border-radius: 10px; overflow: hidden; background: var(--workspace); box-shadow: var(--shadow); }
.dashboard-heading { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; justify-content: stretch; gap: 0; margin: 0; padding: 0; border-radius: 0; background: transparent; }
.dashboard-heading > div:first-child { padding: 16px 18px; background: #30302e; color: #fff; }
.dashboard-heading .eyebrow { color: var(--brand); }
.dashboard-heading h1 { margin: 5px 0 6px; font-size: 23px; font-weight: 800; line-height: 1.2; }
.dashboard-heading p { color: #c4c4be; font-size: 12px; font-weight: 400; }
.dashboard-controls { width: 100%; padding: 14px 14px 0; grid-template-columns: minmax(0, 1fr) 120px auto; gap: 10px; }
.dashboard-controls:has(#supplierHistoryField:not([hidden])) { grid-template-columns: minmax(0, 1fr) 120px 140px auto; }
.dashboard-controls label:first-child { grid-column: auto; }
.dashboard-controls input, .dashboard-controls select { min-height: 40px; }
.dashboard-controls button { min-height: 40px; padding: 9px 14px; border-color: #d49d00; border-radius: 5px; background: var(--brand); color: var(--ink); font-size: 12px; }
.dashboard-controls button:hover { background: #ffc61a; }
.driver-jobs { min-width: 0; padding: 14px; gap: 10px; }
.empty, .loading { padding: 32px 18px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); font-size: 13px; }
.job-card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 2px 4px #00000005; }
.job-card > summary { padding: 15px; gap: 14px; }
.job-card > summary:hover { background: #fffdf5; }
.job-card[open] > summary { background: #fff8df; }
.job-title > strong { font-size: 11px; }
.job-title > span { font-size: 16px; font-weight: 700; line-height: 1.4; }
.job-title > small { font-size: 12px; }
.job-weight { padding: 10px 12px; border-radius: 6px; background: #fff7dc; }
.job-body { min-width: 0; padding: 14px; background: var(--surface-soft); }
.job-meta span, .chips span { border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 11px; }
.schedule { min-width: 0; border-radius: 7px; }
.schedule > summary { padding: 13px 14px; }
.schedule[open] > summary { margin-bottom: 14px; border-bottom: 1px solid var(--line); background: #fafaf7; }
.schedule-body { padding: 0 14px 14px; }
.schedule-title { font-weight: 700; }
.driver-list { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.driver { min-width: 0; padding: 12px; border-radius: 6px; background: var(--surface-soft); font-size: 12px; overflow-wrap: anywhere; }
.stop { min-width: 0; padding: 14px; border-radius: 7px; background: #fff; }
.stop h4 { font-size: 16px; }
.stop address, .stop p, .contact { font-size: 13px; }
.stop-head { font-size: 11px; }
.stop-datetime { border-radius: 5px; font-size: 13px; }
.stop-time { font-size: 17px; }
.point-status { border-radius: 6px; }
.point-status-head button { min-height: 38px; padding: 9px 12px; border-color: #d49d00; border-radius: 5px; font-size: 12px; font-weight: 700; }
.point-status-head span, .driver-point { font-size: 11px; }
.purchase-orders { border-radius: 6px; }
.purchase-order { min-width: 0; }
.purchase-order-link { min-width: 0; font-size: 12px; overflow-wrap: anywhere; }
.job-route-link { border-color: #d49d00; border-radius: 5px; }

/* Update dialog follows the same section header and form treatment. */
.point-modal { border: 1px solid #bd951f; border-radius: 10px; }
.point-modal > header { background: #30302e; color: #fff; border-bottom-color: #454541; }
.point-modal > header > div { min-width: 0; overflow-wrap: anywhere; }
.point-modal > header strong { font-size: 17px; }
.point-modal > header span { color: #c4c4be; font-size: 12px; }
.point-modal button { min-height: 38px; padding: 9px 12px; border-color: #d1d1ca; border-radius: 5px; background: var(--surface-soft); font-size: 12px; font-weight: 700; }
.point-modal > header button { flex: none; border-color: #66665e; background: #454541; color: #fff; }
.modal-body { padding: 18px; gap: 16px; }
.modal-body small, .muted { font-size: 12px; }
.delivery-note-panel { border-color: #e4bd52; border-radius: 6px; }
.point-modal footer { background: var(--surface-soft); }

@media (max-width: 700px) {
  body { padding: max(12px, env(safe-area-inset-top)) 10px max(16px, env(safe-area-inset-bottom)); }
  .driver-header { min-height: 64px; padding: 15px 13px; gap: 12px; }
  .driver-user-actions > span { display: none; }
  .driver-user-actions button { min-height: 40px; }
  input, select, textarea { min-height: 44px; font-size: 16px; }
  .primary-button, .point-modal button, .point-status-head button { min-height: 44px; }
  .dashboard-heading > div:first-child { padding: 16px 14px; }
  .dashboard-heading h1 { font-size: 21px; }
  .dashboard-controls, .dashboard-controls:has(#supplierHistoryField:not([hidden])) { padding: 12px 12px 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dashboard-controls label:first-child { grid-column: 1 / -1; }
  .dashboard-controls input, .dashboard-controls select, .dashboard-controls button { min-height: 44px; }
  .dashboard-controls:has(#supplierHistoryField:not([hidden])) button { grid-column: 1 / -1; }
  .driver-jobs { padding: 12px; }
  .job-card > summary { padding: 13px; gap: 8px; }
  .summary-content { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .job-weight { max-width: none; grid-template-columns: 1fr auto; align-items: center; gap: 3px 10px; }
  .job-weight > small { grid-column: 1 / -1; }
  .job-body, .stop { padding: 12px; }
  .schedule > summary { padding: 12px; gap: 8px; }
  .schedule-body { padding: 0 10px 10px; }
  .schedule-date { white-space: normal; }
  .point-status-head { align-items: stretch; flex-direction: column; }
  .point-status-head button { width: 100%; }
  .signature-panel > div { flex-wrap: wrap; }
  .site-footer { flex-wrap: wrap; gap: 6px; padding: 14px 0; }
}
@media (max-width: 560px) {
  .point-modal { border: 0; border-radius: 0; }
  .modal-body { padding: 16px; }
}
