/* Painel de operação: altura útil do notebook, mapa e listas com rolagem independente. */
#home-view:has(.logistica-page:not([hidden])) .topbar{height:62px;padding:8px 24px}
.workspace:has(.logistica-page:not([hidden])){max-width:none!important;padding:12px 20px 16px!important}
.workspace:has(.logistica-page:not([hidden]))>.workspace-navigation{margin-bottom:8px}
.workspace:has(.logistica-page:not([hidden]))>.workspace-footer{display:none}
.logistica-page{color:#203b4f;font-size:13px}
.lg-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.lg-toolbar{margin-bottom:12px;min-height:66px}
.lg-toolbar h2{font-size:22px;margin:0;letter-spacing:-.035em}
.lg-toolbar .card-caption{font-size:10px;margin-bottom:5px}
.lg-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin:0}
.lg-filters label{display:grid;gap:4px;font-size:11px;font-weight:600;margin:0}
.lg-filters input,.lg-filters select,.lg-filters button{height:36px;box-sizing:border-box;margin:0;font-size:12px}
.lg-filters input,.lg-filters select{width:145px;padding:0 10px}
.lg-filters button{background:#087e6a;color:#fff;border:1px solid #087e6a;border-radius:6px;padding:0 20px;font-weight:650}
.lg-layout{display:grid;grid-template-columns:274px minmax(0,1fr);height:calc(100dvh - 228px);min-height:400px;border:1px solid #dce5eb;border-radius:10px;overflow:hidden;background:#fff}
.lg-sidebar{display:flex;flex-direction:column;min-height:0;border-right:1px solid #dce5eb;background:#fafbfe;overflow:hidden}
.lg-tabs{display:flex;flex-shrink:0;border-bottom:1px solid #e5e9f0;background:#fff}
.lg-tabs button{flex:1;background:transparent;border:0;border-bottom:3px solid transparent;color:#6b7d91;font-size:12px;font-weight:650;padding:15px 8px}
.lg-tabs button.active{color:#087e6a;border-bottom-color:#087e6a}
#lg-message{font-size:11px;line-height:1.5;color:#6d8093;margin:0;padding:12px 14px;border-bottom:1px solid #e7edf2}
#lg-trips-panel,#lg-detail{overflow:auto;min-height:0;flex:1;padding:12px}
.lg-trip{display:grid!important;gap:7px;text-align:left;width:100%;margin-bottom:10px;padding:15px 12px!important;white-space:normal;border:1px solid #e1e8ee;border-left:3px solid #a2b8c4;border-radius:7px;background:#fff;box-shadow:0 2px 4px #203b4f04}
.lg-trip strong{font-size:14px;letter-spacing:.03em}
.lg-trip span{font-size:12px;font-weight:500;line-height:1.45}
.lg-trip small{font-size:10px;font-weight:400;line-height:1.6;color:#718392}
.lg-trip.selected{border-left-color:#078779;border-color:#80c3b9;background:#effaf7}
.lg-map-stage{position:relative;min-width:0;min-height:0;background:#e5eee6;isolation:isolate;overflow:hidden}
#lg-map{position:absolute;inset:0;width:100%;height:100%;border:0}
.lg-map-dashboard{position:absolute;left:14px;right:58px;top:14px;pointer-events:none;z-index:1}
.lg-operation{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:6px;background:#fffffff5;font-size:11px;box-shadow:0 2px 10px #203b4f0a}
#lg-scope{font-weight:650}#lg-updated{color:#738391}
.lg-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 0}
.lg-location-badge{display:flex;align-items:center;gap:7px;margin-top:7px;padding:5px 8px;border-radius:6px;font-size:10px;line-height:1.35;font-weight:500;background:#fff3cf;color:#795816}
.lg-location-badge::before{content:"";flex:0 0 18px;width:18px;height:18px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23795816' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='M12 1v4m0 14v4M1 12h4m14 0h4M3 3l18 18'/%3E%3C/svg%3E")}
.lg-location-badge.lg-location-active::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23176746' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Ccircle cx='12' cy='12' r='2' fill='%23176746'/%3E%3Cpath d='M12 1v4m0 14v4M1 12h4m14 0h4'/%3E%3C/svg%3E")}
.lg-location-warning{background:#fff3cf;color:#795816}
.lg-location-badge{--platform-apple:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23795816'%3E%3Cpath d='M16.8 1.5c.2 1.6-.5 3-1.4 3.9-.9.9-2.1 1.4-3.3 1.3-.2-1.5.5-2.9 1.4-3.8.9-.9 2.2-1.4 3.3-1.4ZM20.2 17.5c-.5 1.3-.8 1.8-1.5 2.9-1 1.4-2.3 3.1-3.9 3.1-1.4 0-1.8-.9-3.7-.9s-2.4.9-3.7.9c-1.6 0-2.8-1.5-3.8-2.9C.8 16.7.4 11.4 2.2 8.6c1.3-2 3.4-2.9 5.4-2.3 1.4.4 2.2.9 3.5.9 1.2 0 1.9-.5 3.5-.9 1.8-.5 3.8.2 5.1 1.8-4.5 2.5-3.8 8.1.5 9.4Z'/%3E%3C/svg%3E");--platform-android:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23795816' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='m7 4-2-3m12 3 2-3M5 10a7 7 0 0 1 14 0H5Zm0 3h14v6H5zM2 13v5m20-5v5M8 19v3m8-3v3'/%3E%3Cpath d='M9 7h.01M15 7h.01' stroke-width='2.5'/%3E%3C/svg%3E");--platform-web:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23795816' stroke-width='1.7'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3Cpath d='M3 12h18M5 7h14M5 17h14'/%3E%3C/svg%3E")}
.lg-location-badge:where([data-platform]:not([data-platform=""]))::after{content:"";margin-left:auto;flex:0 0 20px;width:20px;height:20px;background-position:center;background-size:20px 20px;background-repeat:no-repeat}
.lg-location-badge[data-platform="Android"]::after{background-image:var(--platform-android)}
.lg-location-badge[data-platform="Web"]::after{background-image:var(--platform-web)}
.lg-location-badge[data-platform="iPhone + Web"]::after,.lg-location-badge[data-platform="Android + Web"]::after{flex-basis:46px;width:46px;background-position:left center,right center}
.lg-location-badge[data-platform="iPhone + Web"]::after{background-image:var(--platform-apple),var(--platform-web)}
.lg-location-badge[data-platform="Android + Web"]::after{background-image:var(--platform-android),var(--platform-web)}
.lg-incidents-note{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 8px}.lg-incidents-note button.lg-metric{display:flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid #e6c0b7;border-radius:6px;box-shadow:none}.lg-incidents-note .lg-metric strong{font-size:14px}.lg-incidents-explanation{font-size:11px;color:#5c7083;flex:1;min-width:180px}
.lg-metric{display:grid;gap:7px;padding:14px 16px;background:#fffffff5;border-radius:6px;border-top:3px solid #687f9b;box-shadow:0 3px 14px #203b4f16}
.lg-metric strong{font-size:25px;font-weight:650;color:#334c64}.lg-metric span{font-size:12px;color:#5c7083}
.lg-metric-1{border-color:#1ab98b}.lg-metric-1 strong{color:#138c68}.lg-metric-2{border-color:#eeb34c}.lg-metric-3{border-color:#e67d70}
.lg-progress-row{display:flex;align-items:center;gap:12px;padding:9px 12px;background:#fffffff5;border-radius:6px;font-size:10px;color:#677c8e}
#lg-progress{flex:1;min-width:20px;height:6px;border:0;border-radius:8px;overflow:hidden;appearance:none}
#lg-progress::-webkit-progress-bar{background:#ddebe7}#lg-progress::-webkit-progress-value{background:#168d7a}#lg-progress::-moz-progress-bar{background:#168d7a}
.lg-map-caption{position:absolute;left:16px;bottom:42px;display:grid;gap:5px;background:#fffffff2;padding:12px 15px;border-radius:8px;box-shadow:0 3px 15px #203b4f14;font-size:11px;max-width:calc(100% - 32px)}
.lg-map-caption span{color:#748595}.lg-map-caption a{color:#087e6a}.lg-map-caption button{padding:0;border:0;background:transparent;text-align:left;font-size:10px;color:#607789;margin-top:2px}
#lg-detail .lg-heading h3{font-size:13px;margin:0;line-height:1.5}#lg-detail .lg-heading button{padding:5px 10px}#lg-detail>p{font-size:11px;line-height:1.6;color:#647c8d}#lg-detail>small{font-size:10px;color:#748595}
.lg-stops{padding:0;list-style:none;display:grid;gap:8px}
.lg-stop{display:grid!important;gap:8px;text-align:left;width:100%;padding:12px!important;white-space:normal;font-size:12px;border-color:#dde7ec}
.lg-stop span{font-size:10px;line-height:1.6;font-weight:400;color:#768a98}.lg-stop small{font-size:10px;color:#087e6a}
.lg-stop .lg-location-warning{color:#9a4300;background:#fff3e5;padding:6px 8px;border-radius:4px;line-height:1.5}
.lg-pagination{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:10px;padding:10px 0}
.lg-pagination button{font-size:10px;padding:7px!important}.lg-pagination button:disabled{cursor:default}
.lg-empty{padding:28px 8px;text-align:center;color:#687e8b;font-size:12px;line-height:1.7}
#lg-dialog{width:min(850px,90vw);max-height:85vh;border:1px solid #dce5eb;border-radius:16px;padding:24px;color:#203b4f}#lg-dialog::backdrop{background:#132b3c88}#lg-dialog header{display:flex;justify-content:space-between;align-items:center;gap:18px}
.lg-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.lg-photos img{width:100%;height:auto;max-height:550px;object-fit:contain}.lg-photos a{display:grid;gap:10px}
@media(max-width:1050px){.lg-layout{grid-template-columns:245px minmax(0,1fr)}.lg-metric{padding:11px 9px}.lg-metric span{font-size:10px}.lg-operation{flex-direction:column;gap:4px}.lg-toolbar h2{font-size:19px}}
@media(max-width:760px){.workspace:has(.logistica-page:not([hidden])){padding:12px!important}.lg-toolbar{align-items:flex-start;flex-direction:column}.lg-filters{width:100%;flex-wrap:wrap}.lg-filters input{width:130px}.lg-layout{height:auto;grid-template-columns:1fr}.lg-sidebar{max-height:330px}.lg-map-stage{height:480px}.lg-metrics{gap:5px}.lg-map-dashboard{right:48px;left:10px}.lg-metric strong{font-size:21px}.lg-map-caption{bottom:45px}}

/* A rolagem da página revela o mapa inteiro; indicadores não cobrem o marcador. */
.lg-layout{height:auto;align-items:start;overflow:visible}
.lg-sidebar{height:740px;max-height:740px;border-radius:10px 0 0 10px}
.lg-map-stage{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;height:auto;border-radius:0 10px 10px 0}
.lg-map-dashboard{position:static;grid-column:1;grid-row:1;margin:12px;pointer-events:auto}
#lg-map{position:static;grid-column:1;grid-row:2;width:100%;height:clamp(440px,65dvh,700px)}
.lg-map-caption{position:static;grid-column:1;grid-row:3;max-width:none;margin:0;border-radius:0;box-shadow:none;border-top:1px solid #dce5eb;padding:12px 16px}
@media(max-width:760px){.lg-sidebar{height:330px;max-height:330px;border-radius:10px 10px 0 0}.lg-map-stage{border-radius:0 0 10px 10px}.lg-map-dashboard{margin:8px}#lg-map{height:440px}}

/* Indicadores compactos para ampliar a área visível do mapa no notebook. */
.lg-map-dashboard{margin:8px 12px}
.lg-operation{padding:7px 12px}
.lg-metrics{gap:8px;margin:6px 0}
.lg-metric{min-width:0;padding:8px 10px;gap:3px}
.lg-metric strong{font-size:22px;line-height:1.15}
.lg-metric span{font-size:11px;line-height:1.3}
.lg-progress-row{padding:6px 12px}

.lg-operation{flex-wrap:wrap;align-items:center;gap:5px 14px}.lg-phone-info{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;font-size:10px;color:#62798b;flex:1 1 100%}.lg-phone-icon{display:inline-flex;color:#8d9ba4}.lg-phone-icon.active{color:#07876c}.lg-phone-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}.lg-map-caption{display:flex;gap:16px;align-items:center;padding:8px 14px}

/* Progresso das entregas por viagem e do conjunto filtrado. */
.lg-operation{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,280px)}
.lg-operation-right{grid-column:2;grid-row:1 / span 2;display:grid;gap:5px;text-align:right}
.lg-operation .lg-phone-info{grid-column:1;min-width:0}
.lg-overall-progress,.lg-trip-progress{display:grid;gap:5px;min-width:0}
.lg-overall-progress{font-size:10px;color:#496477}
.lg-trip-progress small{font-size:10px;color:#496477}
.lg-overall-progress progress,.lg-trip-progress progress{display:block;width:100%;height:7px;border:0;border-radius:8px;overflow:hidden;background:#dcece8;accent-color:#008675}
.lg-overall-progress progress::-webkit-progress-bar,.lg-trip-progress progress::-webkit-progress-bar{background:#dcece8;border-radius:8px}
.lg-overall-progress progress::-webkit-progress-value,.lg-trip-progress progress::-webkit-progress-value{background:#008675;border-radius:8px;transition:width .3s}
.lg-overall-progress progress::-moz-progress-bar,.lg-trip-progress progress::-moz-progress-bar{background:#008675;border-radius:8px}
@media(max-width:760px){.lg-operation{grid-template-columns:1fr}.lg-operation-right{grid-column:1;grid-row:auto;text-align:left}.lg-operation .lg-phone-info{grid-row:2}}
/* Vermelho também no trilho: atrasos continuam visíveis com progresso de 0%. */
.lg-progress-late-label{color:#b42332!important}
.lg-overall-progress progress.lg-progress-late,.lg-trip-progress progress.lg-progress-late,#lg-progress.lg-progress-late{background:#f9d8dc;accent-color:#d93649}
.lg-overall-progress progress.lg-progress-late::-webkit-progress-bar,.lg-trip-progress progress.lg-progress-late::-webkit-progress-bar,#lg-progress.lg-progress-late::-webkit-progress-bar{background:#f9d8dc}
.lg-overall-progress progress.lg-progress-late::-webkit-progress-value,.lg-trip-progress progress.lg-progress-late::-webkit-progress-value,#lg-progress.lg-progress-late::-webkit-progress-value{background:#d93649}
.lg-overall-progress progress.lg-progress-late::-moz-progress-bar,.lg-trip-progress progress.lg-progress-late::-moz-progress-bar,#lg-progress.lg-progress-late::-moz-progress-bar{background:#d93649}

.lg-occurrences{width:min(1100px,94vw);max-height:90vh;overflow:auto;border:1px solid #d5e1e5;border-radius:16px;padding:24px;color:#203b4f}.lg-occurrences::backdrop{background:#18323b88}.lg-occurrences .lg-filters{flex-wrap:wrap;margin:16px 0}.lg-occurrences details{margin:16px 0;border:1px solid #d5e1e5;border-radius:10px;padding:14px}.lg-occurrences summary{font-weight:700;cursor:pointer}.lo-record{padding:12px 0;border-top:1px solid #e2e8eb;margin-top:12px}.lo-record p{margin:6px 0}.lo-observation{white-space:pre-wrap;overflow-wrap:anywhere}

/* Viagem com atividade do motorista e entregas pendentes. */
.lg-trip-running .lg-trip{border-left:5px solid #078052;background:#edf9f2;border-color:#78bd98}
.lg-trip-running .lg-trip.selected{background:#dff3e8;box-shadow:0 0 0 2px #078052}
.lg-trip .lg-running-badge{display:inline-block;margin-left:8px;padding:3px 8px;border-radius:12px;background:#086c43;color:#fff;font-size:11px;font-weight:700;letter-spacing:0;white-space:nowrap}
.lg-trip .lg-running-badge[hidden]{display:none}

button.lg-metric{font:inherit;text-align:left;cursor:pointer;color:inherit}button.lg-metric:hover,button.lg-metric:focus-visible{outline:2px solid #087e72;outline-offset:2px}.lg-incident{padding:14px 0;border-bottom:1px solid #d6e0e6}.lg-incident h4{margin:0}.lg-incident p{white-space:pre-wrap;overflow-wrap:anywhere}

button.lg-metric-3{position:relative;overflow:visible}
.lg-metric .lg-incident-tooltip{position:absolute;top:100%;right:0;z-index:5;box-sizing:border-box;width:min(360px,65vw);padding:14px;background:#203b4f;color:#fff;border-radius:8px;box-shadow:0 6px 20px #132b3c40;white-space:pre-line;overflow-wrap:anywhere;text-align:left;font-size:13px;line-height:1.6;font-weight:400}
.lg-incident-tooltip[hidden]{display:none}
#lg-trips-panel{display:flex;flex-direction:column;overflow:hidden;padding:0}
#lg-trips-panel[hidden]{display:none}
#lg-list{flex:1;min-height:0;overflow:auto;padding:12px}
#lg-trips-panel .lg-availability-toolbar{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;margin:0;padding:4px 8px;border-bottom:1px solid #e1e8ee;text-align:center;background:#fff}
#lg-trips-panel .lg-availability-check{justify-content:center;margin:0;min-height:24px}
#lg-availability-message:empty{display:none}

.lg-trip-card.lg-trip-unload-pending{background:#edf9f2}
.lg-trip-unload-pending .lg-trip{background:#edf9f2}
.lg-unload-badge{display:block;margin-top:8px;color:#294b59;font-weight:400;white-space:normal}
.lg-unload-badge[hidden]{display:none}
.lg-unload-report{background:#fff;padding:24px;border-radius:12px}
#lu-results{overflow:auto;margin-top:16px}
#lu-results table{border-collapse:collapse;width:100%;font-size:14px}
#lu-results th,#lu-results td{border:1px solid #c6d4df;padding:10px;text-align:left}
#lu-results th{background:#193d50;color:white}
#lu-results tr.lu-pending td{background:#fff0d4;color:#713600}
@media print{body.printing-unload .app-header,body.printing-unload .app-sidebar,body.printing-unload .workspace-navigation,body.printing-unload .workspace-footer,body.printing-unload .lg-unload-report form{display:none!important}body.printing-unload .workspace{display:block;margin:0;padding:0}body.printing-unload #lu-results{overflow:visible}body.printing-unload #lu-results tr{break-inside:avoid}body.printing-unload #lu-results thead{display:table-header-group}}

@media print{body.printing-unload *{visibility:hidden}body.printing-unload .lg-unload-report,body.printing-unload .lg-unload-report *{visibility:visible}body.printing-unload .lg-unload-report{position:absolute;left:0;top:0;width:100%;margin:0;padding:0}body.printing-unload #lu-results table{font-size:10px}body.printing-unload #lu-results th,body.printing-unload #lu-results td{padding:6px}}

/* No celular, cabeçalho e viagens acompanham a rolagem da página. */
@media(max-width:760px){
 #home-view:has(.logistica-page:not([hidden])) .topbar{height:auto;min-height:62px;padding:12px 16px;position:static}
 .workspace:has(.logistica-page:not([hidden]))>.workspace-navigation{position:static;flex-wrap:wrap}
 .workspace:has(.logistica-page:not([hidden]))>.workspace-footer{display:block;position:static}
 .logistica-page .lg-layout{height:auto;min-height:0;overflow:visible}
 .logistica-page .lg-sidebar{height:auto;max-height:none;overflow:visible}
 .logistica-page #lg-trips-panel,.logistica-page #lg-detail,.logistica-page #lg-list{flex:none;height:auto;max-height:none;overflow:visible}
}

/* Desktop: viagens e entregas permanecem visiveis ao selecionar uma viagem.
   Layout anterior preservado em output/layout-acompanhamento-anterior-20261022. */
@media(min-width:1000px){
 .logistica-page .lg-layout{grid-template-columns:minmax(220px,24fr) minmax(230px,24fr) minmax(300px,52fr);grid-template-rows:48px auto minmax(0,1fr);height:clamp(760px,calc(100dvh - 20px),1040px);min-height:0;align-items:stretch;overflow:hidden}
 .logistica-page .lg-sidebar{display:contents}
 .logistica-page .lg-tabs{grid-column:1;grid-row:1}
 .logistica-page #lg-message{grid-column:1;grid-row:2;background:#fafbfe}
 .logistica-page #lg-trips-panel{display:block!important;grid-column:1;grid-row:3;overflow:auto;min-height:0;background:#fafbfe}
 .logistica-page #lg-detail{display:block!important;grid-column:2;grid-row:1 / 4;overflow:auto;min-height:0;border-left:1px solid #dce5eb;border-right:1px solid #dce5eb;padding:14px;background:#fff}
 .logistica-page #lg-detail::before{content:'Entregas da viagem';display:block;font-size:13px;font-weight:700;color:#087e6a;padding:0 0 14px;margin-bottom:12px;border-bottom:1px solid #e5e9f0}
 .logistica-page .lg-map-stage{grid-column:3;grid-row:1 / 4;height:100%;grid-template-rows:auto minmax(0,1fr) auto;border-radius:0}
 .logistica-page #lg-map{height:100%;min-height:0}
 .logistica-page .lg-map-dashboard{margin:8px}
 .logistica-page .lg-operation{grid-template-columns:1fr;gap:6px;padding:8px}
 .logistica-page .lg-operation-right{grid-column:1;grid-row:auto;text-align:left}
 .logistica-page .lg-operation .lg-phone-info{grid-column:1}
 .logistica-page .lg-metrics{gap:5px}
 .logistica-page .lg-metric{padding:8px 6px}
 .logistica-page .lg-metric strong{font-size:21px}
 .logistica-page .lg-metric span{font-size:10px}
 .logistica-page .lg-map-caption{flex-wrap:wrap;gap:8px}
 .logistica-page .lg-toolbar{flex-wrap:wrap}
}

/* Selecao independente das cores operacionais da viagem. */
.logistica-page:has(#lg-detail:not([hidden])) .lg-trip-card:has(.lg-trip.selected){outline:3px solid #2463b5;outline-offset:-1px;box-shadow:0 3px 12px #2463b52b}

.lg-toggle-deliveries{display:none}
@media(min-width:1000px){
 .logistica-page .lg-toggle-deliveries{display:inline-flex;margin-top:8px;padding:5px 10px;font-size:11px;color:#2463b5;background:#fff;border:1px solid #bed0e7;border-radius:5px}
 .logistica-page:has(#lg-detail[hidden]) .lg-layout{grid-template-columns:minmax(220px,24fr) 0 minmax(300px,76fr)}
 .logistica-page #lg-detail[hidden]{display:none!important}
}

/* Controle compacto entre as abas; permanece visivel na coluna recolhida. */
@media(min-width:1000px){
 .logistica-page .lg-tabs .lg-toggle-deliveries{display:inline-flex;flex:0 0 36px;align-items:center;justify-content:center;margin:6px 0;padding:6px;border:1px solid #bed0e7;border-radius:5px;color:#2463b5;background:#fff}
 .lg-toggle-deliveries svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
 .lg-toggle-deliveries[aria-expanded="false"] svg{transform:rotate(180deg)}
}

/* Nome em uma linha; status centralizado abaixo, preservando o nome completo no titulo. */
.logistica-page .lg-trip{gap:5px;padding:10px 10px!important}
.logistica-page .lg-trip .lg-trip-identity{display:grid;min-width:0;gap:5px;letter-spacing:.01em}
.logistica-page .lg-trip .lg-driver-name{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:700;line-height:1.4}
.logistica-page .lg-trip .lg-running-badge{justify-self:center;margin:0;padding:2px 8px;font-size:10px;line-height:1.4}
.logistica-page .lg-trip .lg-location-badge{margin-top:3px}

.lg-ciencia-pendente{color:#b42318;font-size:16px;font-weight:700;line-height:1.5;text-align:center;margin:14px 0;padding:8px;overflow-wrap:anywhere}
