/* Restrito ao conteúdo de Trajetos; não altera mapa, veículos ou navegação. */
#abaTrajetos .trip-history-periods{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
#abaTrajetos .trip-history-periods button{min-height:44px;padding:10px 14px;border:1px solid #cbd5e1;border-radius:10px;background:#edf2f4;color:#34515e;font-size:12px}
#abaTrajetos .trip-history-periods button.active{background:#087f6e;color:#fff;border-color:#087f6e}
#abaTrajetos .trip-history-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
#abaTrajetos .trip-history-stat{padding:12px 8px;border:1px solid #e4ebee;border-radius:12px;background:#f8fafb}
#abaTrajetos .trip-history-stat span{display:block;font-size:10px;color:#607580;line-height:1.5}
#abaTrajetos .trip-history-stat strong{display:block;font-size:18px;color:#152d3b;margin-top:4px}
#abaTrajetos .trip-history-stops{padding:12px;border:1px solid #e4ebee;border-radius:12px;margin-bottom:12px;font-size:12px;line-height:1.6}
#abaTrajetos .trip-history-stops summary{font-weight:700;cursor:pointer;min-height:32px}
#abaTrajetos .trip-history-note{font-size:11px;color:#647c87;line-height:1.6}
#abaTrajetos .trip-history-summary[hidden],#abaTrajetos .trip-history-stops[hidden]{display:none!important}
#abaTrajetos button:focus-visible,#abaTrajetos summary:focus-visible{outline:3px solid #14b8a6;outline-offset:3px}
#abaTrajetos .trip-view-tabs{display:flex;gap:8px;margin:10px 0}
#abaTrajetos .trip-view-tabs button{flex:1;min-height:44px;background:#e2e8f0;color:#334155;border-radius:10px}
#abaTrajetos .trip-view-tabs button.active{background:#087f6e;color:#fff}
#abaTrajetos #tripLegacyReports{margin:12px 0;font-size:12px}
#abaTrajetos #tripLegacyReports>summary{cursor:pointer;min-height:40px;padding:10px;background:#f1f5f9;border-radius:10px}
#abaTrajetos #tripJourneyListSection[hidden],#abaTrajetos #tripLegacyReports[hidden]{display:none!important}
#abaTrajetos .trip-journey-card,#routeViewer .trip-journey-card{display:flex;flex-direction:column;gap:9px;width:100%;text-align:left;padding:15px;margin-bottom:10px;border:1px solid #d9e4e7;border-radius:12px;background:#fff;color:#213c47;font-weight:400;cursor:pointer}
#abaTrajetos .trip-journey-card:hover,#routeViewer .trip-journey-card:hover{border-color:#087f6e;background:#f5fbf8}
#abaTrajetos .trip-journey-card.selected,#routeViewer .trip-journey-card.selected{border:2px solid #087f6e;background:#edf8f3}
#abaTrajetos .trip-journey-card strong,#routeViewer .trip-journey-card strong{font-size:15px}
#abaTrajetos .trip-journey-time,#routeViewer .trip-journey-time{font-size:12px;font-weight:600;color:#46616c}
#abaTrajetos .trip-journey-address,#routeViewer .trip-journey-address{font-size:12px;line-height:1.55;overflow-wrap:anywhere}
#abaTrajetos .trip-journey-metrics,#routeViewer .trip-journey-metrics{font-size:12px;font-weight:700;color:#087f6e}
#routeViewer .route-viewer-body{display:flex;flex:1;min-height:0;overflow:hidden}
#routeViewer .route-viewer-workspace{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}
#routeViewer #routeJourneySidebar{width:320px;flex-shrink:0;overflow:auto;min-height:0;padding:16px;background:#f7fafb;border-right:1px solid #d9e4e7}
#routeViewer #routeJourneySidebar[hidden]{display:none!important}
#routeViewer #routeJourneySidebar h3{margin:0 0 8px;font-size:17px;color:#213c47}
#routeViewer .trip-history-note{font-size:12px;line-height:1.55;color:#647c87}
#routeViewer .trip-journey-card:focus-visible{outline:3px solid #14b8a6;outline-offset:2px}
@media(max-width:800px){
  #routeViewer.journey-mode .route-viewer-body{flex-direction:column}
  #routeViewer.journey-mode #routeJourneySidebar{width:100%;max-height:32%;border-right:0;border-bottom:1px solid #d9e4e7;padding:12px}
  #routeViewer.journey-mode .route-viewer-map{min-height:120px}
}
