/* Shared presentation for the three transport workspaces. Business logic remains in the page modules. */
body:is([data-workspace-page=quote],[data-workspace-page=schedule],.shipments-view){--transport-line:#dfe6ef;--transport-ink:#203957;--transport-muted:#62758c;--transport-blue:#004aad;background:#f5f7fb}
body:is([data-workspace-page=quote],[data-workspace-page=schedule]).schedule-compact>.shell main,
body[data-workspace-page=quote]>.shell main,
body.shipments-view>.shell #dashboard{max-width:1640px;margin-inline:auto;padding-inline:32px}
body:is([data-workspace-page=quote],[data-workspace-page=schedule])>.shell main :is(.heading,.page-heading),
body.shipments-view #dashboard .intro{gap:20px;align-items:center;margin-bottom:24px}
body:is([data-workspace-page=quote],[data-workspace-page=schedule])>.shell main h1,
body.shipments-view #dashboard h1{font-size:32px;line-height:1.25;letter-spacing:-1.1px}
body:is([data-workspace-page=quote],[data-workspace-page=schedule])>.shell main :is(.heading,.page-heading)>div>p{font-size:14px;line-height:1.65;color:var(--transport-muted)}

/* One rhythm for expandable sections and their controls. */
body:is([data-workspace-page=quote],[data-workspace-page=schedule]).schedule-compact>.shell main #schedule-form,
body[data-workspace-page=quote] #new-quote-view .form-stack,
body[data-workspace-page=quote] #new-quote-view .quote-side{gap:20px;min-width:0}
body:is([data-workspace-page=quote],[data-workspace-page=schedule])>.shell main .guided-progress{margin:0;padding:18px 22px;border:1px solid var(--transport-line);border-radius:14px;box-shadow:0 2px 5px #21395103}
body:is([data-workspace-page=quote],[data-workspace-page=schedule]).schedule-compact>.shell main .guided-progress>div:first-child,
body[data-workspace-page=quote] .guided-progress>div:first-child{font-size:13px;line-height:1.5}
body:is([data-workspace-page=quote],[data-workspace-page=schedule]).schedule-compact>.shell main .guided-progress span,
body[data-workspace-page=quote] .guided-progress span{font-size:12px;color:var(--transport-muted)}
body:is([data-workspace-page=quote],[data-workspace-page=schedule])>.shell main .guided-step.panel{border:1px solid var(--transport-line);border-radius:16px;box-shadow:0 3px 12px #19395704}
body:is([data-workspace-page=quote],[data-workspace-page=schedule]).schedule-compact>.shell main .guided-step-header,
body[data-workspace-page=quote]>.shell main .guided-step-header{padding:22px 24px;gap:12px;align-items:center}
body:is([data-workspace-page=quote],[data-workspace-page=schedule]).schedule-compact>.shell main .guided-step-header strong,
body[data-workspace-page=quote]>.shell main .guided-step-header strong{font-size:17px;line-height:1.45;color:var(--transport-ink)}
body:is([data-workspace-page=quote],[data-workspace-page=schedule]).schedule-compact>.shell main .guided-step-header small,
body[data-workspace-page=quote]>.shell main .guided-step-header small{font-size:13px;line-height:1.55;color:var(--transport-muted)}
body:is([data-workspace-page=quote],[data-workspace-page=schedule]).schedule-compact>.shell main .guided-step-body,
body[data-workspace-page=quote]>.shell main .guided-step-body{padding:0 24px 24px;container-type:inline-size;container-name:transport-section}
body:is([data-workspace-page=quote],[data-workspace-page=schedule]).schedule-compact>.shell main .field,
body[data-workspace-page=quote]>.shell main .field{font-size:13px;font-weight:550;line-height:1.5;min-width:0;gap:7px}
body:is([data-workspace-page=quote],[data-workspace-page=schedule]).schedule-compact>.shell main :is(.field input:not([type=checkbox]):not([type=radio]),.field select,.contact-select),
body[data-workspace-page=quote]>.shell main .field :is(input:not([type=checkbox]):not([type=radio]),select){box-sizing:border-box;width:100%;height:46px;min-height:46px;padding:11px 12px;border-radius:9px;border-color:#ccd8e6;font-size:14px;line-height:22px}
body:is([data-workspace-page=quote],[data-workspace-page=schedule])>.shell main .field input[readonly]{background:#f4f7fb;color:#66798e;box-shadow:none}
body:is([data-workspace-page=quote],[data-workspace-page=schedule])>.shell main .guided-choice-buttons{display:flex;gap:10px;align-items:stretch}
body:is([data-workspace-page=quote],[data-workspace-page=schedule]).schedule-compact>.shell main .guided-choice button,
body[data-workspace-page=quote]>.shell main .guided-choice button{min-height:44px;font-size:14px;border-radius:9px;padding:10px 16px}
body:is([data-workspace-page=quote],[data-workspace-page=schedule]).schedule-compact>.shell main .guided-choice legend,
body[data-workspace-page=quote]>.shell main .guided-choice legend{font-size:14px;line-height:1.5;font-weight:600;color:#355271}
body:is([data-workspace-page=quote],[data-workspace-page=schedule])>.shell main .guided-locked .guided-step-header{background:#fafbfd}
body:is([data-workspace-page=quote],[data-workspace-page=schedule])>.shell main .guided-step.panel:has(.ls-results:not([hidden])){overflow:visible;position:relative;z-index:10}

/* Quote route cards share edges and field baselines; the price stays below weather. */
body[data-workspace-page=quote] #new-quote-view{gap:24px;align-items:start}
body[data-workspace-page=quote] #new-quote-view .panel{margin:0}
body[data-workspace-page=quote] .route-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
body[data-workspace-page=quote] .route-arrow{display:none}
body[data-workspace-page=quote] .route-box{padding:18px;border:1px solid #d7e3f1;border-top:3px solid var(--transport-blue);border-radius:12px;background:#f8faff;min-width:0}
body[data-workspace-page=quote] .route-box h3{margin:0 0 16px;font-size:16px;color:#224c7b;line-height:1.4}
body[data-workspace-page=quote] .route-box .fields{grid-template-columns:minmax(90px,.75fr) minmax(0,1.25fr);gap:16px 12px;align-items:start}
body[data-workspace-page=quote] .route-box .lookup-status{margin:0;min-height:36px;font-size:12px;line-height:1.5}
body[data-workspace-page=quote] .choice-grid{align-items:stretch;gap:12px}
body[data-workspace-page=quote] .choice-inner{height:100%;min-height:88px;box-sizing:border-box;padding:15px 16px;border-radius:10px}
body[data-workspace-page=quote] .choice-inner strong{font-size:14px;line-height:1.5}
body[data-workspace-page=quote] .choice-inner small{font-size:13px;line-height:1.5;margin-top:4px}
body[data-workspace-page=quote] .quote-side :is(.page-route-map,.weather-panel,#estimate-panel){border-radius:16px;border-color:var(--transport-line);box-shadow:0 3px 12px #19395704}
body[data-workspace-page=quote] .quote-side .page-route-map header{padding:20px}
body[data-workspace-page=quote] .quote-side .page-route-map header h2{font-size:16px}
body[data-workspace-page=quote] .quote-side .page-route-map .map-container{height:220px;min-height:220px}
body[data-workspace-page=quote] .guided-quote-actions{padding:0;gap:10px}
body[data-workspace-page=quote] #estimate-panel .guided-step-header{display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px 12px;padding:20px}
body[data-workspace-page=quote] #estimate-panel .guided-step-state{grid-column:2;margin:0;justify-self:start}
body[data-workspace-page=quote] #estimate-panel .guided-step-body{padding:0 20px 20px}

/* Schedule pairs use shared grid rows, including the contact and handoff blocks. */
body[data-workspace-page=schedule].schedule-compact>.shell main .transport-grid{align-items:end;gap:16px}
body[data-workspace-page=schedule].schedule-compact>.shell main .transport-grid legend{font-size:13px}
body[data-workspace-page=schedule].schedule-compact>.shell main .segmented{height:46px;box-sizing:border-box}
body[data-workspace-page=schedule].schedule-compact>.shell main .segmented span{height:38px;min-height:38px;font-size:13px}
body[data-workspace-page=schedule].schedule-compact>.shell main .flow-location-pair{border-top:3px solid var(--transport-blue);padding:18px;gap:16px;background:#fbfcff}
body[data-workspace-page=schedule].schedule-compact>.shell main .flow-stop-label{font-size:16px}
body[data-workspace-page=schedule].schedule-compact>.shell main .flow-location-pair .contact-heading{font-size:14px;margin-top:8px}
body[data-workspace-page=schedule].schedule-compact>.shell main .flow-location-pair .location-fields{gap:16px 12px}
body[data-workspace-page=schedule].schedule-compact>.shell main .flow-location-pair :is(.lookup-status,.contact-location-hint){font-size:12px;line-height:1.5;min-height:36px}
body[data-workspace-page=schedule].schedule-compact>.shell main .flow-location-pair .hours-info{font-size:12px;min-height:58px}
body[data-workspace-page=schedule].schedule-compact>.shell main .flow-save-location{font-size:13px;min-height:44px}
body[data-workspace-page=schedule].schedule-compact>.shell main .flow-dates{gap:16px;align-items:start}
body[data-workspace-page=schedule].schedule-compact>.shell main .flow-dates .field-label{min-height:20px;line-height:20px}
body[data-workspace-page=schedule].schedule-compact>.shell main :is(.flow-time-details,.flow-weather,.flow-notes)>summary{font-size:13px;min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:12px}
body[data-workspace-page=schedule].schedule-compact>.shell main #vehicles-body .vehicle-columns.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
body[data-workspace-page=schedule].schedule-compact>.shell main .vehicle-columns.two .vehicle-leg{padding:18px 16px}
body[data-workspace-page=schedule].schedule-compact>.shell main .vehicle-columns.two .flow-leg-topline{flex-wrap:wrap;gap:8px}
body[data-workspace-page=schedule].schedule-compact>.shell main .vehicle-columns.two .flow-leg-topline h3{font-size:15px;flex-basis:calc(100% - 44px)}
body[data-workspace-page=schedule].schedule-compact>.shell main .vehicle-columns.two .flow-leg-count{margin-left:42px}
body[data-workspace-page=schedule].schedule-compact>.shell main .vehicle-columns.two .flow-vehicle-tools{grid-template-columns:1fr;gap:8px}
body[data-workspace-page=schedule].schedule-compact>.shell main .vehicle-columns.two .flow-vehicle-tools>[data-manual-vehicle]{grid-column:1;grid-row:4;justify-self:start;white-space:normal;text-align:left;min-height:36px}
body[data-workspace-page=schedule].schedule-compact>.shell main .vehicle-columns.two .flow-feedback{grid-column:1;grid-row:3}
body[data-workspace-page=schedule].schedule-compact>.shell main .vehicle-columns.two .flow-vehicle-summary{display:block}
body[data-workspace-page=schedule].schedule-compact>.shell main .vehicle-columns.two .flow-vehicle-summary>.text-button{position:static;display:inline-flex;margin-top:6px;min-height:36px}
body[data-workspace-page=schedule].schedule-compact>.shell main .vehicle-columns.two .guided-vehicle-answers{grid-template-columns:1fr;padding:14px 0;gap:16px}
body[data-workspace-page=schedule].schedule-compact>.shell main .summary-card{border-radius:16px}
body[data-workspace-page=schedule].schedule-compact>.shell main .summary-facts>div{font-size:13px;gap:16px}
body[data-workspace-page=schedule].schedule-compact>.shell main .summary-facts b{text-align:right}
body[data-workspace-page=schedule].schedule-compact>.shell main .pricing>div{font-size:14px}
body[data-workspace-page=schedule].schedule-compact>.shell main #guided-review .review-button{margin:0;width:100%;min-height:48px;font-size:14px}

@supports(grid-template-rows:subgrid){
 @container transport-section (min-width:681px){
  body[data-workspace-page=schedule].schedule-compact>.shell main .location-grid{grid-template-rows:repeat(10,auto);gap:0 20px}
  body[data-workspace-page=schedule].schedule-compact>.shell main .flow-location-pair{display:grid;grid-template-rows:subgrid;grid-row:span 10;row-gap:0}
  body[data-workspace-page=schedule].schedule-compact>.shell main .flow-location-source{margin:16px 0}
  body[data-workspace-page=schedule].schedule-compact>.shell main .flow-location-pair .flow-location-editor{display:grid;grid-template-rows:subgrid;grid-row:span 8;row-gap:0}
 }
}

/* History filters, table columns and expanded cards sit on one aligned surface. */
body.shipments-view #shipment-list{border-radius:16px;border:1px solid var(--transport-line);background:#fff;overflow:visible;box-shadow:0 3px 16px #19395705}
body.shipments-view .shipment-toolbar{margin:0;border:0;box-shadow:none;border-radius:16px 16px 0 0}
body.shipments-view .history-controls{padding:20px 22px}
body.shipments-view .history-date-grid{gap:16px;align-items:start}
body.shipments-view .history-context{margin-top:14px;align-items:center}
body.shipments-view .shipment-search-controls{padding-inline:22px;grid-template-columns:minmax(0,1fr) auto;gap:16px}
body.shipments-view .shipment-section-caption{padding-inline:22px}
body.shipments-view #history-load-table{border-top:1px solid var(--transport-line)}
body.shipments-view #history-load-table th{padding:16px;background:#f6f8fc;line-height:1.4}
body.shipments-view #history-load-table th:nth-child(1){width:18%}
body.shipments-view #history-load-table th:nth-child(3){width:18%}
body.shipments-view #history-load-table th:nth-child(5){width:20%}
body.shipments-view #history-load-table .ht-load-row>td{padding:18px 16px;vertical-align:top}
body.shipments-view #history-load-table .ht-load-row>td>strong{font-size:14px;line-height:1.5}
body.shipments-view #history-load-table .ht-load-row .ht-row-toggle{padding:0;min-height:28px}
body.shipments-view #history-load-table .ht-cost-badge{min-height:68px;width:112px;margin-top:0}
body.shipments-view #history-load-table .ht-summary{padding:16px;background:#f3f7fc;border-left:3px solid var(--transport-blue)}
body.shipments-view #history-load-table .ht-summary-heading{margin-bottom:14px;align-items:center;flex-wrap:wrap}
body.shipments-view #history-load-table .ht-summary-actions{max-width:none;align-items:center;gap:8px}
body.shipments-view #history-load-table .ht-summary-actions :is(a,button){display:inline-flex;align-items:center;justify-content:center;min-height:40px;box-sizing:border-box;border-radius:8px;padding:9px 12px}
body.shipments-view #history-load-table .ht-summary-grid{gap:12px;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
body.shipments-view #history-load-table .ht-section{padding:16px;border-radius:12px;border-color:#dce6f2;box-shadow:0 1px 3px #24436403}
body.shipments-view #history-load-table .ht-section>h3,
body.shipments-view #history-load-table .ht-section-heading{padding-bottom:10px;margin-bottom:12px;border-bottom:1px solid #edf1f6}
body.shipments-view #history-load-table .ht-section-heading h3{margin:0}
body.shipments-view #history-load-table .ht-section-heading>a{min-height:32px;display:inline-flex;align-items:center;font-size:12px}
body.shipments-view #history-load-table .ht-document-actions{gap:8px}
body.shipments-view #history-load-table .ht-document-actions button{padding:8px 12px;min-height:36px;border:1px solid #d6e2f0;border-radius:8px;background:#f8faff;font-size:12px}
body.shipments-view #history-load-table .ht-transporter-body{align-items:center}
body.shipments-view .history-pagination{border-radius:0 0 16px 16px}

@media(min-width:1200px){body.shipments-view .history-date-grid{grid-template-columns:1.45fr 1.15fr 1.05fr 1fr 1fr 1.15fr;gap:12px}body.shipments-view .history-date-grid :is(label,.history-load-type){font-size:13px}body.shipments-view .history-date-grid :is(input,select,summary){padding-inline:10px;font-size:13px}}
@container transport-section (max-width:680px){
 body[data-workspace-page=schedule].schedule-compact>.shell main .location-grid,
 body[data-workspace-page=schedule].schedule-compact>.shell main #vehicles-body .vehicle-columns.two{grid-template-columns:minmax(0,1fr)}
 body[data-workspace-page=schedule].schedule-compact>.shell main .location-grid{gap:16px}
}
@media(max-width:760px){
 body[data-workspace-page=quote]>.shell main,
 body[data-workspace-page=schedule].schedule-compact>.shell main,
 body.shipments-view>.shell #dashboard{padding-inline:16px}
 body:is([data-workspace-page=quote],[data-workspace-page=schedule])>.shell main h1,
 body.shipments-view #dashboard h1{font-size:28px}
 body:is([data-workspace-page=quote],[data-workspace-page=schedule]).schedule-compact>.shell main .guided-step-header,
 body[data-workspace-page=quote]>.shell main .guided-step-header{padding:18px 16px;display:grid;grid-template-columns:32px minmax(0,1fr);gap:5px 10px}
 body:is([data-workspace-page=quote],[data-workspace-page=schedule]) .guided-step-header>.guided-number{grid-column:1;grid-row:1/3;align-self:start}
 body:is([data-workspace-page=quote],[data-workspace-page=schedule]) .guided-step-state{grid-column:2;margin:0;justify-self:start;font-size:12px}
 body:is([data-workspace-page=quote],[data-workspace-page=schedule]).schedule-compact>.shell main .guided-step-header strong,
 body[data-workspace-page=quote]>.shell main .guided-step-header strong{font-size:16px}
 body:is([data-workspace-page=quote],[data-workspace-page=schedule]).schedule-compact>.shell main .guided-step-body,
 body[data-workspace-page=quote]>.shell main .guided-step-body{padding:0 16px 18px}
 body:is([data-workspace-page=quote],[data-workspace-page=schedule]).schedule-compact>.shell main .guided-progress>div:first-child,
 body[data-workspace-page=quote] .guided-progress>div:first-child{flex-wrap:wrap;gap:5px}
 body:is([data-workspace-page=quote],[data-workspace-page=schedule]).schedule-compact>.shell main :is(.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea,.contact-select),
 body[data-workspace-page=quote]>.shell main .field :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px;min-height:48px}
 body[data-workspace-page=quote] .route-box{padding:16px}
 body[data-workspace-page=quote] .choice-inner{padding:12px;min-height:100px}
 body[data-workspace-page=schedule].schedule-compact>.shell main .flow-location-pair{padding:16px}
 body[data-workspace-page=schedule].schedule-compact>.shell main .flow-dates{grid-template-columns:1fr}
 body.shipments-view .history-controls{padding:16px}
 body.shipments-view .shipment-search-controls,body.shipments-view .shipment-section-caption{padding-inline:16px}
}
@container(max-width:760px){
 body.shipments-view #history-load-table .ht-load-row>td{padding:0}
 body.shipments-view #history-load-table .ht-load-row>td:nth-child(6){padding-top:12px}
 body.shipments-view #history-load-table .ht-summary{padding:12px 10px}
 body.shipments-view #history-load-table .ht-summary-grid{grid-template-columns:minmax(0,1fr)}
 body.shipments-view #history-load-table .ht-section{padding:14px}
 body.shipments-view #history-load-table .ht-summary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 body.shipments-view #history-load-table .ht-summary-actions :is(a,button){min-height:44px;width:100%}
 body.shipments-view #history-load-table .ht-document-actions button{min-height:44px}
}

body[data-workspace-page=schedule].schedule-compact>.shell main .vehicle-columns.two #return-vehicles{padding-top:18px}
@supports(grid-template-rows:subgrid){
 @container transport-section (min-width:681px){
  body[data-workspace-page=schedule].schedule-compact>.shell main #vehicles-body .vehicle-columns.two{grid-template-rows:auto auto auto;row-gap:0;align-items:stretch}
  body[data-workspace-page=schedule].schedule-compact>.shell main .vehicle-columns.two .vehicle-leg{display:grid;grid-template-rows:subgrid;grid-row:span 3;row-gap:0}
  body[data-workspace-page=schedule].schedule-compact>.shell main .vehicle-columns.two :is(#outbound-cards,#return-cards){align-content:start}
 }
}

/* The open directory may extend beyond a collapsed-section frame. */
body[data-workspace-page=schedule].schedule-compact>.shell main #schedule-form>.panel.guided-step:has(.ls-results:not([hidden])){overflow:visible;position:relative;z-index:10}
body .pickup-calendar button:disabled{opacity:1;color:#a4afbd}
body .pickup-calendar button:focus-visible{outline:3px solid #a9c8f2;outline-offset:2px}

@media(max-width:760px){body[data-workspace-page=quote] .quote-heading-actions{align-self:flex-start}body[data-workspace-page=quote] .form-stack>.page-route-map{margin:0}body[data-workspace-page=quote] .form-stack>.page-route-map .map-container{height:190px;min-height:190px}}

@media(min-width:1181px){body[data-workspace-page=quote] #new-quote-view{grid-template-columns:minmax(0,1fr) 320px}}
@container transport-section (max-width:520px){body[data-workspace-page=quote] .route-pair{grid-template-columns:minmax(0,1fr)}}
