/* Phase 22 — driver trip detail. Scoped to the driver portal; no booking-state logic. */
body.ui-driver.driver-page-trip-detail .driver-trip-detail{max-width:1280px;margin:auto;min-width:0}
body.ui-driver.driver-page-trip-detail .driver-trip-breadcrumb{display:flex;align-items:center;gap:12px;margin:3px 0 20px;font-size:13px;color:#668076;font-weight:700}
body.ui-driver.driver-page-trip-detail .driver-trip-breadcrumb a{color:#14654f;text-decoration:none}
body.ui-driver.driver-page-trip-detail .driver-trip-breadcrumb a:hover{text-decoration:underline}
body.ui-driver.driver-page-trip-detail .driver-trip-hero{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:clamp(22px,3vw,38px);margin-bottom:20px;border-radius:23px;background:linear-gradient(115deg,#113f36,#176a54 72%,#36816d);color:#fff;box-shadow:0 12px 29px #17453321}
body.ui-driver.driver-page-trip-detail .driver-trip-hero .driver-kicker{color:#ffbca6;letter-spacing:.13em}
body.ui-driver.driver-page-trip-detail .driver-trip-hero h1{color:#fff;font-size:clamp(27px,3vw,40px);line-height:1.13;letter-spacing:-.045em;margin:9px 0}
body.ui-driver.driver-page-trip-detail .driver-trip-hero p{margin:0;color:#e8f4ed;font-size:14px}
body.ui-driver.driver-page-trip-detail .driver-trip-hero-status{display:grid;gap:6px;flex:0 0 auto;min-width:180px;border:1px solid #ffffff45;border-radius:16px;background:#ffffff14;padding:14px 18px}
body.ui-driver.driver-page-trip-detail .driver-trip-hero-status span{font-size:12px;color:#e0f1e7}
body.ui-driver.driver-page-trip-detail .driver-trip-hero-status strong{font-size:20px;color:white}
body.ui-driver.driver-page-trip-detail .driver-trip-alert{border:1px solid #e9d4b3;background:#fff8eb;color:#765218;padding:16px 19px;margin-bottom:20px;border-radius:13px;font-size:14px;line-height:1.6}
body.ui-driver.driver-page-trip-detail .driver-trip-alert strong{display:block;color:#704b11}
body.ui-driver.driver-page-trip-detail .driver-trip-timeline{background:#fff;border:1px solid #dfeae2;border-radius:19px;padding:20px 23px;margin:0 0 19px;box-shadow:0 9px 26px #163e2d0a}
body.ui-driver.driver-page-trip-detail .driver-trip-section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:14px;margin-bottom:13px;flex-wrap:wrap}
body.ui-driver.driver-page-trip-detail .driver-trip-section-heading h2{font-size:21px;line-height:1.35;letter-spacing:-.035em;color:#1a4b3b;margin:0}
body.ui-driver.driver-page-trip-detail .driver-trip-section-heading>span{color:#758b80;font-size:12px}
body.ui-driver.driver-page-trip-detail .driver-trip-steps{list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:0;padding:8px 0 12px}
body.ui-driver.driver-page-trip-detail .driver-trip-steps li{display:flex;align-items:center;gap:9px;color:#82968b;font-size:12px;min-width:0;position:relative}
body.ui-driver.driver-page-trip-detail .driver-trip-step-number{flex:0 0 32px;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#eef3ee;border:1px solid #dfe8e0;font-weight:800}
body.ui-driver.driver-page-trip-detail .driver-trip-steps li.is-complete{color:#2d7759}
body.ui-driver.driver-page-trip-detail .driver-trip-steps li.is-complete .driver-trip-step-number{background:#e0f1e4;border-color:#b8dec4}
body.ui-driver.driver-page-trip-detail .driver-trip-steps li[aria-current="step"]{color:#174f3d}
body.ui-driver.driver-page-trip-detail .driver-trip-steps li[aria-current="step"] .driver-trip-step-number{background:#146850;color:#fff;border-color:#146850}
body.ui-driver.driver-page-trip-detail .driver-trip-steps strong{overflow-wrap:anywhere}
body.ui-driver.driver-page-trip-detail .driver-trip-timeline .driver-trip-guidance{margin:13px 0 0}
body.ui-driver.driver-page-trip-detail .driver-trip-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);align-items:start;gap:19px}
body.ui-driver.driver-page-trip-detail .driver-trip-primary,body.ui-driver.driver-page-trip-detail .driver-trip-aside{min-width:0;display:grid;gap:19px}
body.ui-driver.driver-page-trip-detail .driver-trip-columns .driver-card{margin:0}
body.ui-driver.driver-page-trip-detail .driver-trip-route .driver-route-stack{margin:15px 0}
body.ui-driver.driver-page-trip-detail .driver-trip-route .driver-route-stop{padding-bottom:21px}
body.ui-driver.driver-page-trip-detail .driver-trip-route .driver-route-stop--destination{padding-bottom:0}
body.ui-driver.driver-page-trip-detail .driver-trip-route .driver-route-stop a{display:block;margin:5px 0 0;color:#126c56;font-size:12px;font-weight:750;text-decoration:none}
body.ui-driver.driver-page-trip-detail .driver-trip-map-button{display:flex;justify-content:center;gap:10px;align-items:center;min-height:46px;background:#e9f5ed;border-radius:11px;border:1px solid #c8e4d2;padding:10px 17px;font-size:13px;color:#155e4c;font-weight:800;text-decoration:none}
body.ui-driver.driver-page-trip-detail .driver-trip-map-button:hover{background:#dcf0e2;color:#124d3c}
body.ui-driver.driver-page-trip-detail .driver-trip-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 18px;margin:13px 0 17px}
body.ui-driver.driver-page-trip-detail .driver-trip-facts div{display:block;border-bottom:1px solid #edf2ee;padding:10px 0}
body.ui-driver.driver-page-trip-detail .driver-trip-facts dt{font-size:11px;color:#748679;margin-bottom:4px}
body.ui-driver.driver-page-trip-detail .driver-trip-facts dd{font-size:13px;color:#274e3d;text-align:left;max-width:100%;margin:0;font-weight:700}
body.ui-driver.driver-page-trip-detail .driver-trip-route h3,body.ui-driver.driver-page-trip-detail .driver-trip-contact h3{font-size:14px;margin:18px 0 7px}
body.ui-driver.driver-page-trip-detail .driver-trip-note{font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px 14px;background:#f7faf7;border:1px solid #e8efe8;border-radius:10px;margin:0}
body.ui-driver.driver-page-trip-detail .driver-trip-action-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
body.ui-driver.driver-page-trip-detail .driver-trip-action-row form{margin:0}
body.ui-driver.driver-page-trip-detail .driver-trip-action-row button{min-height:45px;border-radius:11px}
body.ui-driver.driver-page-trip-detail .driver-trip-no-action{color:#617a6d;background:#f3f7f3;border:1px solid #e5ede6;border-radius:10px;padding:14px 16px;font-size:13px}
body.ui-driver.driver-page-trip-detail .driver-trip-refresh{display:inline-flex;margin-top:15px;font-size:13px;font-weight:800;color:#14674f;text-decoration:none}
body.ui-driver.driver-page-trip-detail .driver-trip-aside .driver-card h2{font-size:20px}
body.ui-driver.driver-page-trip-detail .driver-trip-contact p{font-size:13px;margin:8px 0 10px;overflow-wrap:anywhere}
body.ui-driver.driver-page-trip-detail .driver-trip-contact-link{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:10px 15px;background:#156a54;color:white;border-radius:10px;text-decoration:none;font-size:13px;font-weight:800}
body.ui-driver.driver-page-trip-detail .driver-trip-contact-link:hover{background:#0c5645;color:#fff}
body.ui-driver.driver-page-trip-detail .driver-trip-contact-link--light{background:#eef7f0;color:#115b48;border:1px solid #d4e7d9}
body.ui-driver.driver-page-trip-detail .driver-trip-payment-status{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;border-radius:11px;background:#f5f8f5;margin:13px 0}
body.ui-driver.driver-page-trip-detail .driver-trip-payment-status span{font-size:12px;color:#6f8076;font-weight:700}
body.ui-driver.driver-page-trip-detail .driver-trip-payment-status strong{font-size:13px}
body.ui-driver.driver-page-trip-detail .driver-trip-payment-status .is-paid{color:#14734e}
body.ui-driver.driver-page-trip-detail .driver-trip-payment-status .is-pending{color:#a06e29}
body.ui-driver.driver-page-trip-detail .driver-trip-money{margin:0}
body.ui-driver.driver-page-trip-detail .driver-trip-money div{display:flex;gap:11px;justify-content:space-between;align-items:baseline;padding:12px 0;border-bottom:1px solid #ecf1ec}
body.ui-driver.driver-page-trip-detail .driver-trip-money dt{font-size:12px;flex:1;color:#70877b}
body.ui-driver.driver-page-trip-detail .driver-trip-money dd{font-size:13px;color:#254e3d;font-weight:800;margin:0;text-align:right;max-width:65%;overflow-wrap:anywhere}
body.ui-driver.driver-page-trip-detail .driver-trip-balance-form{margin-top:16px;padding:15px;border:1px solid #e5dbc1;background:#fffbf1;border-radius:12px}
body.ui-driver.driver-page-trip-detail .driver-trip-balance-form .driver-check{font-size:13px;line-height:1.55;margin-bottom:13px}
body.ui-driver.driver-page-trip-detail .driver-trip-balance-form button{min-height:44px}
body.ui-driver.driver-page-trip-detail .driver-trip-help{font-size:12px;line-height:1.65;color:#667e72;padding:0 7px}
body.ui-driver.driver-page-dashboard .driver-trip-view-action{display:grid;gap:7px;margin-top:13px}
body.ui-driver.driver-page-dashboard .driver-trip-view-action .driver-action-link{justify-self:start;min-height:43px}
body.ui-driver.driver-page-dashboard .driver-trip-view-action .driver-muted{font-size:12px;margin:0}
@media(max-width:1020px){body.ui-driver.driver-page-trip-detail .driver-trip-columns{grid-template-columns:minmax(0,1fr)}body.ui-driver.driver-page-trip-detail .driver-trip-aside{grid-template-columns:repeat(2,minmax(0,1fr))}body.ui-driver.driver-page-trip-detail .driver-trip-help{grid-column:1/-1}}
@media(max-width:700px){body.ui-driver.driver-page-trip-detail .driver-trip-hero{padding:22px 18px;align-items:stretch;flex-direction:column;border-radius:18px}body.ui-driver.driver-page-trip-detail .driver-trip-hero-status{width:100%;min-width:0}body.ui-driver.driver-page-trip-detail .driver-trip-timeline{padding:16px 12px}body.ui-driver.driver-page-trip-detail .driver-trip-steps{gap:3px}body.ui-driver.driver-page-trip-detail .driver-trip-steps li{flex-direction:column;text-align:center;font-size:10px;gap:6px}body.ui-driver.driver-page-trip-detail .driver-trip-step-number{width:27px;height:27px;flex:none}body.ui-driver.driver-page-trip-detail .driver-trip-aside{grid-template-columns:1fr}body.ui-driver.driver-page-trip-detail .driver-trip-facts{gap:1px 10px}body.ui-driver.driver-page-trip-detail .driver-trip-section-heading h2{font-size:19px}body.ui-driver.driver-page-trip-detail .driver-trip-action-row{flex-direction:column;align-items:stretch}body.ui-driver.driver-page-trip-detail .driver-trip-action-row form{width:100%}body.ui-driver.driver-page-trip-detail .driver-trip-action-row button{width:100%}body.ui-driver.driver-page-dashboard .driver-trip-view-action .driver-action-link{width:100%;justify-self:stretch}}
@media(max-width:360px){body.ui-driver.driver-page-trip-detail .driver-trip-step-number{width:24px;height:24px}body.ui-driver.driver-page-trip-detail .driver-trip-facts{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){body.ui-driver.driver-page-trip-detail *{scroll-behavior:auto}}
