/* Final grouped Trip reference, scoped to record presentation. */
.cargo-portal .portal-trip-header .portal-trip-overview[data-component=trip-overview]{color-scheme:inherit;--overview-bg:var(--cargo-bg);--overview-paper:var(--cargo-paper);--overview-ink:var(--cargo-ink);--overview-muted:var(--cargo-stone);--overview-line:var(--cargo-line);--overview-soft:var(--cargo-soft);--overview-gold:var(--cargo-orange);--overview-cream:var(--cargo-tint);font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--cargo-ink);min-width:0}
.portal-trip-overview[data-component=trip-overview] *{box-sizing:border-box}
.portal-trip-overview[data-component=trip-overview] [hidden]{display:none!important}
.portal-trip-overview[data-component=trip-overview] svg{width:17px;height:17px;flex-shrink:0}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-tools{display:flex;gap:8px;align-items:center}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-owner{display:flex;gap:7px;align-items:center;background:transparent;border:0;padding:5px 8px;min-height:34px;font-size:12px;color:var(--cargo-stone)}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--overview-paper);border:1px dashed var(--overview-muted);font-size:12px;font-weight:600}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-settings{position:relative}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-settings>summary{list-style:none;display:flex;align-items:center;justify-content:center;min-height:34px;padding:5px 8px;border:1px solid var(--overview-line);border-radius:6px;cursor:pointer}
.portal-trip-overview .tv-settings>summary::-webkit-details-marker{display:none}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-pop{position:absolute;right:0;top:44px;width:260px;padding:15px;border:1px solid var(--overview-line);border-radius:8px;background:var(--overview-paper);box-shadow:0 5px 20px rgb(37 36 34 / 0.0784);z-index:5;font-size:12px}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-pop .portal-trip-workflow form{display:grid;gap:10px}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-pop .portal-trip-workflow label{display:flex;flex-direction:column;align-items:stretch;gap:7px;color:var(--cargo-stone);font-size:12px}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-pop select{width:100%;min-width:0;background:var(--overview-paper);border:1px solid var(--cargo-control);border-radius:5px;padding:8px;font-size:12px}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-pop small,.cargo-portal .portal-trip-header .portal-trip-overview .tv-pop p{font-size:11px;color:var(--cargo-stone);margin:0}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cargo-portal .portal-trip-header .portal-trip-overview h1{margin:0;font-size:29px;letter-spacing:-.7px;font-weight:700;line-height:1.3}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-status{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:8px 10px;border-radius:7px;font-size:14px;font-weight:650;line-height:1.35;white-space:normal;text-align:left;color:var(--cargo-stone);background:var(--cargo-soft)}
.portal-trip-overview .tv-status-icon{flex-shrink:0;font-size:15px;line-height:1}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-status[data-status-tone=preparing]{background:#f5e8c8;color:#855300}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-status[data-status-tone=documents]{background:#ede4f6;color:#684393}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-status[data-status-tone=ready]{background:#dceee2;color:#1f6545}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-status[data-status-tone=loading]{background:#fbe0d0;color:#9f3e12}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-status[data-status-tone=waiting]{background:#e2e9f6;color:#385a89}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-status[data-status-tone=scheduled]{background:#e2e9f6;color:#385a89}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-status[data-status-tone=arrived]{background:#dceee9;color:#216455}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-status[data-status-tone=transit]{background:#dfedf4;color:#205e82}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-status[data-status-tone=rejected]{background:#f6e0dc;color:#943f31}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-template{margin-top:6px;font-size:17px;font-weight:550}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-route-row{display:grid;grid-template-columns:minmax(0,1fr) 208px;margin-top:23px;background:var(--overview-paper);border:1px solid var(--overview-line);border-radius:9px;overflow:hidden}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-route{display:grid;grid-template-columns:minmax(0,1.25fr) 30px minmax(0,1fr);gap:9px;align-items:center;padding:22px 18px}
.portal-trip-overview .tv-label{font-size:11px;color:var(--cargo-stone);display:block;margin-bottom:6px}.portal-trip-overview .tv-location{font-size:15px;font-weight:600}.portal-trip-overview .tv-country{font-size:12px;color:var(--cargo-stone);margin-top:3px}.portal-trip-overview .tv-arrow{color:var(--cargo-ink);display:flex;justify-content:center}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment{border:0;border-left:1px solid var(--overview-line);border-radius:0;box-shadow:none;padding:19px 16px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;background:transparent;min-width:0;width:auto}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment h2{font-size:11px;color:var(--cargo-stone);margin:0;font-weight:400}.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment p,.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment time{margin:0;font-size:12px;color:var(--cargo-stone)}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment button{background:var(--overview-cream);color:var(--cargo-ink);border:1px solid var(--cargo-control);border-radius:6px;padding:8px;font-size:11px;font-weight:600;white-space:normal}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment dl{display:flex;flex-wrap:wrap;gap:8px;font-size:11px;margin:0}.portal-trip-overview .tv-appointment dd{margin:0}.portal-trip-overview .tv-appointment dt{color:var(--cargo-stone)}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-totals{min-height:150px;display:flex;flex-direction:column;justify-content:center}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-groups{display:grid;grid-template-columns:1.05fr 2.15fr 1.3fr;gap:20px;padding:22px 0;border-bottom:1px solid var(--overview-line)}
.portal-trip-overview .tv-group{min-width:0}.portal-trip-overview .tv-group+.tv-group{border-left:1px solid var(--overview-line);padding-left:20px}.portal-trip-overview .tv-group-title{display:flex;gap:6px;align-items:center;font-size:11px;color:var(--cargo-stone);margin-bottom:10px}
.portal-trip-overview .tv-value{font-variant-numeric:tabular-nums;font-weight:600;letter-spacing:-.35px}.portal-trip-overview .tv-hierarchy-root{display:flex;align-items:baseline;gap:8px}.portal-trip-overview .tv-hierarchy-root .tv-value{font-size:24px}.portal-trip-overview .tv-hierarchy-label{font-size:12px;color:var(--cargo-stone)}
.portal-trip-overview .tv-hierarchy-child{display:flex;align-items:baseline;gap:7px;margin:6px 0 0 11px;padding:6px 0 0 17px;position:relative}.portal-trip-overview .tv-hierarchy-child:before{content:"";position:absolute;left:0;top:0;width:10px;height:17px;border-left:1px solid var(--overview-line);border-bottom:1px solid var(--overview-line);border-radius:0 0 0 4px}.portal-trip-overview .tv-hierarchy-child .tv-value{font-size:18px}
.portal-trip-overview .tv-cargo-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.portal-trip-overview .tv-cargo-metric{background:var(--cargo-soft);border-radius:6px;padding:10px 9px;min-width:0}.portal-trip-overview .tv-cargo-metric .tv-value{font-size:23px;white-space:normal;overflow-wrap:anywhere;line-height:1.25}.portal-trip-overview .tv-cargo-label{display:flex;gap:4px;align-items:center;font-size:11px;color:var(--cargo-stone);margin-top:7px}.portal-trip-overview .tv-cargo-label svg{width:13px;height:13px}
.portal-trip-overview .tv-money .tv-value{font-size:24px;overflow-wrap:anywhere}.portal-trip-overview .tv-money .tv-value-unknown{font-size:15px}.portal-trip-overview .tv-unit{display:block;font-size:11px;font-weight:400;color:var(--cargo-stone);letter-spacing:0;margin:3px 0 0}.portal-trip-overview .tv-money-qualifier{font-size:11px;color:var(--cargo-stone);margin:7px 0 0;overflow-wrap:anywhere}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-freshness{display:flex;align-items:center;gap:6px;color:var(--cargo-stone);font-size:11px;margin:0 0 22px}.cargo-portal .portal-trip-header .portal-trip-overview .tv-refresh{border:0;background:transparent;font-size:11px;color:var(--cargo-stone);margin-left:auto;padding:5px 0}.cargo-portal .portal-trip-header .portal-trip-overview .tv-warning{font-size:12px;margin:0 0 16px;padding:9px 12px;border-radius:6px;background:var(--cargo-soft);color:var(--cargo-ink)}
.portal-trip-overview .tv-party-adapter>.portal-party-bar{display:none}.portal-trip-overview .tv-assignee-picker{width:280px;max-width:calc(100vw - 32px);max-height:calc(100vh - 100px);font-size:12px;padding:15px}.portal-trip-overview .tv-assignee-picker .portal-view-heading h2{font-size:14px}.portal-trip-overview .tv-assignee-picker input{max-width:100%;font-size:12px}.portal-trip-overview .tv-assignee-picker button{font-size:12px}
.portal-trip-overview button:focus-visible,.portal-trip-overview summary:focus-visible,.portal-trip-overview select:focus-visible{outline:3px solid var(--cargo-orange);outline-offset:3px}
@media(max-width:900px){.cargo-portal .portal-trip-header .portal-trip-overview .tv-route-row{grid-template-columns:1fr}.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment{border-left:0;border-top:1px solid var(--overview-line);padding:12px 18px;flex-direction:row;justify-content:space-between;align-items:center;gap:12px}}
@media(min-width:701px) and (max-width:900px){.cargo-portal .portal-trip-header .portal-trip-overview .tv-groups{grid-template-columns:1fr 2fr;gap:18px}.portal-trip-overview .tv-group.tv-money{grid-column:1/-1;border-left:0;padding-left:0;display:flex;justify-content:space-between;align-items:center}.portal-trip-overview .tv-money .tv-unit{display:inline;margin-left:4px}}
@media(max-width:700px){.cargo-portal .portal-trip-header .portal-trip-overview .tv-toolbar{margin-bottom:22px}.portal-trip-overview .tv-owner-label{display:none}.cargo-portal .portal-trip-header .portal-trip-overview h1{font-size:26px}.cargo-portal .portal-trip-header .portal-trip-overview .tv-template{font-size:15px}.cargo-portal .portal-trip-header .portal-trip-overview .tv-route{padding:17px 13px;grid-template-columns:minmax(0,1.3fr) 22px minmax(0,1fr);gap:5px}.portal-trip-overview .tv-location{font-size:13px}.portal-trip-overview .tv-country{font-size:11px}.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment{padding:13px}.portal-trip-overview .tv-appointment button{min-height:44px}.cargo-portal .portal-trip-header .portal-trip-overview .tv-totals{min-height:0}.cargo-portal .portal-trip-header .portal-trip-overview .tv-groups{grid-template-columns:1fr;gap:20px;padding:21px 0}.portal-trip-overview .tv-group+.tv-group{border-left:0;padding-left:0}.portal-trip-overview .tv-group.tv-money{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--overview-line);padding:15px 0 0}.portal-trip-overview .tv-money .tv-unit{display:inline;margin-left:4px}.portal-trip-overview .tv-money>div:last-child{text-align:right}.portal-trip-overview .tv-cargo-metric{padding:12px}.cargo-portal .portal-trip-header .portal-trip-overview .tv-freshness{margin-top:14px}.portal-trip-overview .tv-hierarchy-root .tv-value{font-size:23px}.cargo-portal .portal-trip-header .portal-trip-overview .tv-owner,.cargo-portal .portal-trip-header .portal-trip-overview .tv-settings>summary{min-height:44px}.cargo-portal .portal-trip-header .portal-trip-overview .tv-pop{width:240px}.cargo-portal .portal-trip-header .portal-trip-overview .tv-pop select{font-size:16px}}

.portal-trip-overview .tv-totals{position:relative}.portal-trip-overview .tv-totals-scope{position:absolute;top:2px;right:0;font-size:10px;color:var(--cargo-stone)}

.cargo-portal .portal-trip-header .portal-trip-overview .tv-toolbar{padding-right:70px}.portal-trip-overview .portal-trip-back{text-decoration:none;color:var(--cargo-stone);font-size:12px}.portal-trip-overview .tv-totals svg{width:15px;height:15px}.portal-trip-overview .tv-cargo-label svg{width:13px;height:13px}
@media(max-width:700px){.cargo-portal .portal-trip-header .portal-trip-overview .tv-toolbar{padding-right:0}}
@media(max-width:900px){.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment[data-appointment-state=none]{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}.portal-trip-overview .tv-appointment[data-appointment-state=none] h2,.portal-trip-overview .tv-appointment[data-appointment-state=none] p{grid-column:1}.portal-trip-overview .tv-appointment[data-appointment-state=none]>button{grid-column:2;grid-row:1/span 2;align-self:center}}
@media(max-width:700px){.portal-trip-overview .tv-money>div:last-child{display:grid;grid-template-columns:auto auto;align-items:baseline;justify-content:end;column-gap:4px}.portal-trip-overview .tv-money .tv-value{grid-column:1;grid-row:1}.portal-trip-overview .tv-money .tv-unit{grid-column:2;grid-row:1;margin:0}.portal-trip-overview .tv-money-qualifier{grid-column:1/-1}}
.portal-trip-overview .tv-owner:focus-visible{outline:2px solid var(--cargo-orange);outline-offset:0;border-radius:6px}
@media(max-width:700px){.portal-trip-overview .tv-money>div:last-child{display:block}.portal-trip-overview .tv-money .tv-value,.portal-trip-overview .tv-money .tv-unit{display:inline}.portal-trip-overview .tv-money .tv-unit{margin-left:4px}}

/* Quiet physical source observation alongside the existing responsibility/menu. */
.cargo-portal .portal-trip-header .portal-trip-overview .tv-freshness{margin:0;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:4px 8px;text-align:right;max-width:330px}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-refresh{display:inline-flex;align-items:center;gap:4px;margin:0;padding:5px;white-space:nowrap}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-refresh svg{width:13px;height:13px}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-refresh:disabled{opacity:1;cursor:wait}
@media(max-width:700px){.cargo-portal .portal-trip-header .portal-trip-overview .tv-tools{flex-wrap:wrap;justify-content:flex-end;min-width:0}.cargo-portal .portal-trip-header .portal-trip-overview .tv-freshness{flex:1 1 100%;font-size:10px;order:1}.cargo-portal .portal-trip-header .portal-trip-overview .tv-toolbar{align-items:flex-start}.cargo-portal .portal-trip-header .portal-trip-overview .tv-refresh{min-height:34px}}

.portal-trip-overview .portal-trip-back{white-space:nowrap;flex-shrink:0}
@media(max-width:700px){.portal-trip-overview .tv-freshness>span{flex:1;min-width:0}.cargo-portal .portal-trip-header .portal-trip-overview .tv-refresh{flex-shrink:0}}
.portal-trip-overview .tv-source-note{font-size:11px;color:var(--cargo-stone);margin:8px 0 0}

/* TRIP-UI-09: route above an independent full-width appointment row. */
.cargo-portal .portal-trip-header .portal-trip-overview .tv-route-row{grid-template-columns:minmax(0,1fr);gap:16px;background:transparent;border:0;border-radius:0;overflow:visible}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-route{grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:12px;padding:17px 20px;background:var(--overview-paper);border:1px solid var(--overview-line);border-radius:9px}
.portal-trip-overview .tv-route .tv-label{margin-bottom:5px}
.portal-trip-overview .tv-route .tv-location{font-size:14px;line-height:1.4}
.portal-trip-overview .tv-route .tv-country{font-size:11px;margin-top:5px}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment{display:grid;grid-template-columns:minmax(160px,1fr) minmax(180px,1.25fr) auto;gap:0 20px;align-items:center;justify-content:normal;border:1px solid var(--overview-line);border-radius:9px;padding:17px 18px;background:var(--overview-paper)}
.portal-trip-overview .tv-appointment-heading{grid-column:1/-1;display:flex;align-items:center;gap:9px;margin-bottom:13px}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment h2{font-size:13px;font-weight:600;color:var(--cargo-ink);display:flex;align-items:center;gap:7px;margin:0}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment .portal-trip-appointment-status{font-size:10px;font-weight:600;padding:3px 6px;border:0;border-radius:4px;line-height:1.45}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment time{display:block;font-size:15px;font-weight:600;color:var(--cargo-ink);font-variant-numeric:tabular-nums;line-height:1.45;margin:0 0 2px}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment .tv-appointment-time-label{font-size:11px;color:var(--cargo-stone);margin:0}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment .tv-appointment-facts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin:0}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment .tv-appointment-facts>div{display:block;font-size:14px}
.portal-trip-overview .tv-appointment-facts dt{font-size:11px;margin-bottom:3px}
.portal-trip-overview .tv-appointment-facts dd{display:inline;font-size:12px;font-weight:500;color:var(--cargo-ink)}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment .portal-actions{display:flex;align-items:center;gap:15px;margin:0;flex-wrap:wrap;justify-content:space-between}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment .portal-actions button{background:transparent;border:0;border-radius:0;min-height:0;font-size:12px;font-weight:500;padding:3px 0;color:var(--cargo-ink);white-space:nowrap}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment .portal-actions button[aria-label="Reload appointment"]{font-size:11px;font-weight:400;color:var(--cargo-stone)}
.portal-trip-overview .tv-appointment .portal-trip-appointment-actual,.portal-trip-overview .tv-appointment .portal-trip-appointment-notice{grid-column:1/-1;margin-top:10px}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment.tv-appointment-empty{grid-template-columns:minmax(0,1fr) auto;gap:6px 16px}
.portal-trip-overview .tv-appointment.tv-appointment-empty>.tv-appointment-heading{grid-column:1;margin-bottom:0}
.portal-trip-overview .tv-appointment.tv-appointment-empty>p{grid-column:1}
.portal-trip-overview .tv-appointment.tv-appointment-empty>button{grid-column:2;grid-row:1/span 2;align-self:center}
.portal-trip-overview .tv-appointment .portal-actions button:focus-visible{outline:2px solid var(--cargo-orange);outline-offset:3px}
@media(max-width:760px){
 .cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment{display:block}
 .portal-trip-overview .tv-appointment-heading{justify-content:space-between}
 .cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment .tv-appointment-time-label{margin-bottom:14px}
 .cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment .tv-appointment-facts{margin-bottom:15px}
 .cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment .portal-actions{border-top:1px solid var(--overview-line);padding-top:11px}
 .cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment.tv-appointment-empty,.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment.tv-appointment-empty{display:grid}
}
@media(max-width:540px){.cargo-portal .portal-trip-header .portal-trip-overview .tv-route{padding:17px 14px;gap:8px}.portal-trip-overview .tv-route .tv-location{font-size:13px}}
@media(pointer:coarse){.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment .portal-actions button{min-height:44px}}
.portal-trip-overview .tv-route,.portal-trip-overview .tv-appointment{--overview-paper:var(--cargo-paper);--overview-ink:var(--cargo-ink);--overview-muted:var(--cargo-stone);--overview-line:var(--cargo-line);--overview-gold:var(--cargo-orange)}
.portal-trip-overview .tv-appointment-time{grid-column:1;grid-row:2}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment .tv-appointment-facts{grid-column:2;grid-row:2}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment .portal-actions{grid-column:3;grid-row:2}
.portal-trip-overview .tv-appointment .portal-actions button[aria-label="Reload appointment"]{display:inline-flex;align-items:center;gap:5px}

.portal-trip-overview .tv-appointment-heading h2 svg{width:16px;height:16px;color:var(--cargo-stone)}
.portal-trip-overview .tv-appointment .portal-actions button[aria-label="Reload appointment"] svg{width:13px;height:13px}
.portal-trip-overview .tv-route .tv-arrow svg{width:18px;height:18px}

.portal-trip-overview .tv-appointment[data-appointment-state=late] .portal-trip-appointment-status{background:var(--cargo-soft);color:var(--cargo-ink)}

.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment .portal-actions button:first-child{padding:0;text-align:left}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment .portal-actions button[aria-label="Reload appointment"]{padding:3px}
@media(max-width:760px){.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment .portal-actions button:first-child{flex:1}}


/* Bundle members share one overview. */
.portal-trip-overview .tv-title h1{overflow-wrap:anywhere}
.portal-bundle-scope{padding:10px 0;margin:8px 0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.portal-bundle-stale{color:var(--cargo-ink)}

.tv-destination-edit{display:block;border:0;background:transparent;padding:5px 0;color:var(--cargo-ink);font:inherit;font-size:12px;cursor:pointer}.tv-destination-edit[hidden]{display:none}.tv-local-destination{display:block;font-size:11px;color:var(--cargo-stone)}.portal-destination-dialog{width:min(430px,calc(100vw - 32px));border:1px solid var(--line);border-radius:10px;padding:24px;color:var(--cargo-ink);background:var(--surface,var(--cargo-paper))}.portal-destination-dialog h2{font-size:18px;margin:0 0 10px}.portal-destination-dialog p{font-size:13px;color:var(--cargo-stone)}.portal-destination-dialog form{display:grid;gap:18px;margin-top:22px}.portal-destination-dialog label{display:grid;gap:7px;font-size:12px}.portal-destination-dialog input,.portal-destination-dialog select{width:100%;font:inherit;color:var(--cargo-ink);background:var(--surface,var(--cargo-paper));padding:10px 12px;border:1px solid var(--cargo-control);border-radius:6px}.portal-destination-dialog .portal-actions{justify-content:flex-end}.portal-destination-dialog button[type=submit]{background:var(--accent);color:var(--cargo-ink);border-color:var(--accent)}

.cargo-portal .tv-route{position:relative;padding-right:105px}.cargo-portal .tv-destination-edit{position:absolute;right:20px;top:18px;display:block;border:0;background:transparent;box-shadow:none;padding:5px 0;min-height:28px;color:var(--cargo-ink);font-size:12px;font-weight:400}.cargo-portal .tv-destination-edit[hidden]{display:none}@media(max-width:700px){.cargo-portal .tv-route{padding-right:12px}.cargo-portal .tv-destination-edit{position:static;margin-top:6px}}/* Readable neutral colors for existing disabled controls. */.cargo-portal button:disabled,.cargo-portal select:disabled{color:var(--cargo-stone);background:var(--cargo-soft);border-color:var(--cargo-control)}

/* Approved route objects, connected edge to edge through the actual transport. */
.cargo-portal .portal-trip-header .portal-trip-overview .tv-route{grid-template-columns:minmax(0,1fr) 126px minmax(0,1fr);align-items:stretch;gap:0;padding:20px;border-radius:12px}
.portal-trip-overview .tv-route-place{position:relative;min-width:0;min-height:116px;display:flex;flex-direction:column;justify-content:center;padding:16px;background:var(--cargo-soft);border:1px solid var(--cargo-line);border-radius:9px;overflow-wrap:anywhere}
.portal-trip-overview .tv-departure:after{content:"";position:absolute;right:-3px;top:calc(50% - 3px);width:6px;height:6px;border-radius:50%;background:var(--cargo-orange);z-index:1}
.portal-trip-overview .tv-transport{position:relative;min-width:0;color:var(--cargo-orange)}
.portal-trip-overview .tv-transport-row{position:absolute;top:50%;transform:translateY(-50%);display:flex;align-items:center;width:100%}
.portal-trip-overview .tv-route-connector{position:relative;height:1px;flex:1;background:var(--cargo-orange)}
.portal-trip-overview .tv-route-connector:last-child:after{content:"";position:absolute;right:1px;top:-3px;width:6px;height:6px;border-top:1px solid var(--cargo-orange);border-right:1px solid var(--cargo-orange);transform:rotate(45deg)}
.portal-trip-overview .tv-transport-mark{display:grid;place-items:center;flex-shrink:0;width:52px;height:52px;border-radius:50%;background:var(--cargo-orange);color:var(--cargo-ink)}
.portal-trip-overview .tv-transport-mark svg{width:28px;height:28px;stroke-width:1.6}
.portal-trip-overview .tv-transport-label{position:absolute;top:calc(50% + 31px);left:0;width:100%;text-align:center;font-size:11px;line-height:1.4;color:var(--cargo-stone)}
.portal-trip-overview .tv-transport[data-shipping-method=unknown] .tv-transport-mark{background:var(--cargo-soft);color:var(--cargo-stone)}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-route .tv-destination-edit{position:static;align-self:flex-start;min-height:28px;padding:3px 0;margin-top:5px;color:var(--cargo-stone);font-size:11px}
@media(max-width:560px){
 .cargo-portal .portal-trip-header .portal-trip-overview .tv-route{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 84px auto;padding:14px;gap:0}
 .portal-trip-overview .tv-route-place{min-height:90px;padding:12px 14px}
 .portal-trip-overview .tv-departure:after{right:calc(50% - 3px);top:auto;bottom:-3px}
 .portal-trip-overview .tv-transport-row{width:52px;height:100%;left:calc(50% - 26px);top:0;transform:none;flex-direction:column}
 .portal-trip-overview .tv-route-connector{width:1px;height:auto}
 .portal-trip-overview .tv-route-connector:last-child:after{right:-3px;top:auto;bottom:2px;border-top:0;border-bottom:1px solid var(--cargo-orange)}
 .portal-trip-overview .tv-transport-mark{width:44px;height:44px}
 .portal-trip-overview .tv-transport-mark svg{width:24px;height:24px}
 .portal-trip-overview .tv-transport-label{left:calc(50% + 32px);top:50%;transform:translateY(-50%);width:calc(50% - 36px);text-align:left;overflow-wrap:anywhere}
}
@media(pointer:coarse){.cargo-portal .portal-trip-header .portal-trip-overview .tv-route .tv-destination-edit{min-height:44px}}

/* Saved delivery creation summary, within the existing pickup card. */
.portal-trip-overview .tv-delivery-summary{grid-column:1/-1;position:relative;border-top:1px solid var(--overview-line);margin-top:14px;padding-top:14px;min-width:0}
.portal-trip-overview .tv-delivery-heading{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding-right:110px}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-delivery-heading h3{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;font-weight:600}
.portal-trip-overview .tv-delivery-count{font-size:11px;background:var(--cargo-soft);border:1px solid var(--overview-line);border-radius:4px;padding:1px 5px;font-variant-numeric:tabular-nums}
.portal-trip-overview .tv-delivery-badge{display:inline-block;white-space:nowrap;font-size:10px;font-weight:600;padding:3px 6px;border-radius:4px;background:var(--cargo-soft);color:var(--cargo-ink)}
.portal-trip-overview .tv-delivery-badge[data-tone=success]{background:#dceee4;color:#226647}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-delivery-caption{font-size:11px;color:var(--cargo-stone);margin:5px 0 0;overflow-wrap:anywhere}
.portal-trip-overview .tv-delivery-disclosure>summary{position:absolute;right:0;top:14px;font-size:12px;cursor:pointer;padding:2px 0;list-style:none;color:var(--cargo-ink)}
.portal-trip-overview .tv-delivery-disclosure>summary::-webkit-details-marker{display:none}
.portal-trip-overview .tv-delivery-disclosure>summary::after{content:'⌄';margin-left:8px}
.portal-trip-overview .tv-delivery-disclosure[open]>summary::after{content:'⌃'}
.portal-trip-overview .tv-delivery-list{margin-top:14px;border-top:1px solid var(--overview-line)}
.portal-trip-overview .tv-delivery-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;padding:13px 0;border-bottom:1px solid var(--overview-line);align-items:start}
.portal-trip-overview .tv-delivery-identity strong{font-size:12px;font-weight:600;overflow-wrap:anywhere}
.portal-trip-overview .tv-delivery-details{grid-column:1/-1;font-size:11px}
.portal-trip-overview .tv-delivery-details>summary{cursor:pointer;width:max-content;color:var(--cargo-stone);padding:4px 0}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment .tv-delivery-details dl{margin:8px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 24px;background:var(--cargo-soft);border:1px solid var(--overview-line);border-radius:6px;padding:14px}
.portal-trip-overview .tv-delivery-details dt{font-size:10px;color:var(--cargo-stone);margin-bottom:4px}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-delivery-details dd{font-weight:500;margin:0;font-size:12px;color:var(--cargo-ink);overflow-wrap:anywhere}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-delivery-footnote{font-size:10px;color:var(--cargo-stone);margin:12px 0 0}
.portal-trip-overview .tv-delivery-summary summary:focus-visible{outline:2px solid var(--cargo-orange);outline-offset:4px}
@media(max-width:600px){.portal-trip-overview .tv-delivery-heading{padding-right:0;gap:6px}.portal-trip-overview .tv-delivery-disclosure>summary{position:static;margin-top:10px;min-height:30px;display:flex;align-items:center;width:max-content}.cargo-portal .portal-trip-header .portal-trip-overview .tv-appointment .tv-delivery-details dl{grid-template-columns:1fr}.portal-trip-overview .tv-delivery-list{margin-top:6px}}

.cargo-portal .portal-trip-header .portal-trip-overview .tv-delivery-details dl>div{display:block;min-width:0}

.portal-trip-overview .tv-delivery-actions{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-delivery-actions button{background:transparent;border:1px solid var(--cargo-line);padding:5px 9px;min-height:32px;font-size:11px;font-weight:500}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-delivery-actions p{flex-basis:100%;font-size:12px;margin:3px 0;color:var(--cargo-stone)}
.cargo-portal .portal-trip-header .portal-trip-overview .tv-delivery-actions button:last-child{background:var(--cargo-soft)}
