/* Driver-only presentation: shared booking controls keep their admin styling. */
.driver-job-card .card-top { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
.driver-job-card .card-top strong { color: #263e6d; font-size: 15px; }
.driver-job-card .route-line { font-size: 16px; font-weight: 650; line-height: 1.4; }
.driver-job-card .car-seat-line, .driver-job-card .vehicle-line { font-weight: 550; }
.driver-booking-fare { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 10px; border-top: 1px solid #e5eaf2; padding-top: 12px; margin-top: 4px; }
.driver-booking-fare > span { font-size: 12px; color: #64738a; }
.driver-booking-fare > strong { font-size: 20px; color: #233d80; font-weight: 650; }
.driver-booking-fare > small { grid-column: 1 / -1; font-size: 11px; line-height: 1.45; color: #6b7890; font-weight: 400; }
.driver-leg-facts .driver-booking-fare { border: 0; padding-top: 0; }
.driver-booking-fare > .driver-fare-payment--paid { color: #23724f; font-weight: 600; }
.driver-payment-panel { grid-column: 1 / -1; }
#booking-dialog .driver-payment-panel > label { display: block; margin: 0 0 8px; font-size: 13px; color: #43536d; }
#booking-dialog .driver-payment-panel .driver-payment-received { display: flex; flex-direction: row; align-items: center; gap: 12px; min-height: 52px; margin: 14px 0 0; padding: 12px; background: #fff; border: 1px solid #dce3ee; border-radius: 10px; cursor: pointer; }
#driver-payment-received { flex: 0 0 22px; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0; accent-color: #233d80; }
.driver-payment-received span { display: flex; flex-wrap: wrap; justify-content: space-between; flex: 1; gap: 4px 12px; font-size: 14px; line-height: 1.45; }
.driver-payment-received strong { color: #233d80; }
.driver-payment-recorded { font-size: 13px; color: #647086; margin: 0 0 16px; }
.driver-payment-recorded--paid { color: #23724f; font-weight: 600; }
.driver-week-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #e0e6f2; background: #f5f7fc; border-radius: 12px; margin-bottom: 12px; }
.driver-week-summary > div { display: grid; gap: 4px; min-width: 0; }
.driver-week-summary strong { color: #233d80; font-size: 14px; font-weight: 650; }
.driver-week-summary span { color: #6b7890; font-size: 11px; line-height: 1.4; }
.driver-week-summary__count { text-align: right; }
.driver-route-parts { display: grid; gap: 8px; margin-bottom: 12px; }
.driver-route-parts > a { display: grid; gap: 5px; padding: 12px; min-height: 44px; color: #29458c; background: #f0f4fd; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; }
.driver-route-parts small { font-size: 11px; line-height: 1.45; font-weight: 400; overflow-wrap: anywhere; }
.driver-card-actions a { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.driver-job-group .empty-state { min-height: 0; padding: 16px; font-size: 13px; }
.driver-job-group .empty-state > i { display: none; }
.driver-job-group .empty-state p { margin: 0; }
.driver-leg-hero .driver-leg-icon { display: grid; place-items: center; color: #fff; font-size: 20px; }
.driver-leg-hero .driver-leg-icon i { color: inherit; }
.driver-leg-details { grid-auto-rows: max-content; align-content: start; }
.driver-leg-details > * { align-self: start; min-width: 0; }
.driver-leg-facts { min-height: min-content; }
.driver-journey-facts { display: grid; gap: 10px; min-width: 0; }
.driver-route-panel { grid-column: 2; grid-row: 1; border: 1px solid #e1e7f0; border-radius: 12px; padding: 14px; min-width: 0; }
.driver-route-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.driver-route-heading h3 { font-size: 14px; color: #263e6d; margin: 0; }
.driver-route-heading a { font-size: 12px; color: #29458c; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.driver-route-help { margin: 0 0 10px; font-size: 12px; line-height: 1.45; color: #687b96; }
.driver-route-panel .driver-route-list { display: block; list-style: none; grid-column: auto; grid-row: auto; padding: 0; margin: 0; border: 0; }
.driver-route-panel .driver-route-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.driver-route-list li > div { min-width: 0; }
.driver-route-list li span { overflow-wrap: anywhere; font-weight: 550; line-height: 1.5; }
.driver-route-list li > a { flex: 0 0 auto; display: flex; align-items: center; min-height: 44px; padding: 8px; color: #29458c; background: #f0f4fd; border-radius: 8px; font-size: 12px; font-weight: 600; text-decoration: none; }
.driver-route-list li > small { font-size: 11px; color: #8a6c30; }
#booking-dialog[data-booking-mode="driver"] #dialog-maps { font-size: 13px; width: 100%; min-width: 0; overflow: visible; }
#booking-dialog[data-booking-mode="driver"] .dialog-actions { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; }
#booking-dialog[data-booking-mode="driver"] #dialog-phone-link { font-size: 0; justify-content: center; }
#booking-dialog[data-booking-mode="driver"] .driver-action { padding: 10px 16px; }

.route-preview-page { margin: 0; background: #f4f6fa; color: #24334c; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.route-preview-page * { box-sizing: border-box; }
.route-preview-page main { max-width: 700px; margin: 0 auto; padding: 22px 18px 40px; }
.route-preview-page header { padding: 4px 0 20px; }
.route-brand { text-decoration: none; font-weight: 800; color: #233e80; }
.route-brand span { color: #e32428; }
.route-preview-page h1 { margin: 0; font-size: 28px; color: #233e80; }
.route-preview-page h2 { font-size: 17px; margin: 24px 0 8px; }
.route-preview-page p { font-size: 14px; line-height: 1.6; }
.route-preview-page #route-description, .route-help { color: #65758d; }
.route-preview-page article { background: white; border: 1px solid #dfe6f0; border-radius: 14px; padding: 16px; margin-top: 14px; }
.route-preview-page article h2 { margin: 0; }
.route-preview-page article p, #route-stops span { overflow-wrap: anywhere; white-space: pre-wrap; }
.route-preview-page article a, #route-stops a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; background: #233e80; color: #fff; border-radius: 9px; text-decoration: none; font-size: 14px; font-weight: 600; }
#route-stops { padding: 0; list-style: none; counter-reset: route-stop; }
#route-stops li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: #fff; border: 1px solid #dfe6f0; border-radius: 12px; padding: 14px; margin-bottom: 10px; counter-increment: route-stop; }
#route-stops li::before { content: counter(route-stop); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #edf2ff; color: #233e80; font-size: 12px; font-weight: 700; }
#route-stops span { flex: 1 1 160px; font-size: 14px; }
#route-stops small, .route-warning, #route-error { color: #8a5d16; }
#route-error { background: #fff4dc; border-radius: 10px; padding: 16px; }

@media (max-width: 760px) {
  .driver-route-panel { grid-column: 1; grid-row: auto; padding: 12px; }
  .driver-route-heading { flex-wrap: wrap; gap: 0 10px; }
  #booking-dialog[data-booking-mode="driver"] .dialog-actions { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 10px 16px; }
  #booking-dialog[data-booking-mode="driver"] #dialog-maps { gap: 6px; font-size: 12px; }
  #booking-dialog[data-booking-mode="driver"] #dialog-maps svg { display: none; }
  #booking-dialog[data-booking-mode="driver"] .driver-action { font-size: 12px; padding-inline: 12px; }
}
