/* Scoped to route history: other report screens keep their existing layout. */
#view-history .route-history-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 22px;padding:4px 0 20px;border-bottom:1px solid #e5e7eb}
#view-history .route-history-header>div:first-child{min-width:0}
#view-history .route-history-header .eyebrow{font-size:11px;letter-spacing:.16em;color:var(--wine,#6f1837)}
#view-history .route-history-header h1{margin:7px 0 6px;font-size:30px;line-height:1.2;letter-spacing:-.035em;color:#202c3c}
#view-history .route-history-header p{margin:0;color:#6b7788;font-size:13px;line-height:1.5}
#view-history .route-export-panel{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:9px;padding-left:26px;border-left:1px solid #dfe3e8}
#view-history .route-export-label{font-size:10px;line-height:1;letter-spacing:.12em;font-weight:700;color:#657185}
#view-history .route-export-buttons{display:flex;gap:10px}
#view-history .route-export-buttons button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:116px;height:43px;margin:0;padding:0 17px;border:1px solid #cddcd5;border-radius:10px;font-size:13px;font-weight:700;white-space:nowrap;background:#fff;color:#246345;box-shadow:0 2px 4px #14233705;transition:background .15s,box-shadow .15s}
#view-history .route-export-buttons #download-route{background:var(--wine,#6f1837);border-color:var(--wine,#6f1837);color:#fff;min-width:152px}
#view-history .route-export-buttons button:hover:not(:disabled){box-shadow:0 4px 12px #14233718;filter:brightness(.97)}
#view-history .route-export-buttons button:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
#view-history button:focus-visible,#view-history input:focus-visible,#view-history select:focus-visible{outline:3px solid #c99b5580;outline-offset:3px}
#view-history #route-form{display:grid;grid-template-columns:minmax(180px,1.4fr) repeat(2,minmax(140px,1fr)) repeat(2,minmax(105px,.75fr)) auto;align-items:end;gap:12px;padding:18px;margin:0 0 18px;border:1px solid #e2e6eb;border-radius:14px;box-shadow:0 3px 12px #162b4204;background:#fff}
#view-history #route-form label{min-width:0;grid-column:auto;font-size:11px;line-height:1.3;font-weight:700;letter-spacing:.025em;color:#526174}
#view-history #route-form input,#view-history #route-form select{box-sizing:border-box;width:100%;height:44px;margin-top:7px;padding:0 10px;font-size:14px;font-weight:500;color:#263345;background:#fbfcfd;border:1px solid #dce2e9;border-radius:8px}
#view-history #route-form button{grid-column:auto;height:44px;padding:0 17px;font-size:13px;border-radius:9px;white-space:nowrap}
#view-history .route-workspace{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:16px;height:calc(100dvh - 320px);min-height:580px}
#view-history .route-map-card{min-width:0;border:1px solid #dbe2e5;border-radius:16px;box-shadow:0 7px 24px #18332e0a;overflow:hidden}
#view-history .route-summary{height:74px;min-height:74px;grid-template-columns:repeat(3,minmax(0,1fr));background:white;border-bottom:1px solid #e5e9ed}
#view-history .route-summary>div{padding:12px 18px;grid-column:auto;border-right:1px solid #edf0f2}
#view-history .route-summary>div:last-child{border-right:0}
#view-history .route-summary span{font-size:11px;line-height:1.3;color:#738093}
#view-history .route-summary strong{font-size:23px;line-height:1.2;letter-spacing:-.025em;color:#233648;margin-top:5px}
#view-history #route-map{min-height:0;flex:1;width:100%;background:#e9eeeb}
#view-history .route-points-panel{border:1px solid #e2e6eb;border-radius:14px;min-width:0}
#view-history .route-points-panel .panel-head{padding:18px 16px;border-bottom:1px solid #edf0f2;background:#fff}
#view-history .route-points-panel .panel-head strong{font-size:14px;color:#293647}
#view-history .route-points-panel .panel-head span{font-size:11px;color:#788596;line-height:1.5;margin-top:5px}
#view-history .route-empty{font-size:12px;line-height:1.7;color:#7b8796}
@media(max-width:1350px){#view-history #route-form{grid-template-columns:repeat(3,minmax(0,1fr))}#view-history .route-workspace{grid-template-columns:minmax(0,1fr) 240px}}
@media(max-width:1000px){#view-history .route-history-header{gap:16px}#view-history .route-history-header h1{font-size:26px}#view-history .route-export-panel{padding-left:18px}#view-history .route-workspace{display:flex;flex-direction:column;height:auto;min-height:0}#view-history .route-map-card{height:560px}#view-history .route-points-panel{max-height:360px}#view-history #route-map{height:auto;min-height:0}}
@media(max-width:650px){#view-history .route-history-header{align-items:stretch;flex-direction:column;gap:18px;margin-bottom:16px;padding-bottom:18px}#view-history .route-export-panel{align-items:stretch;padding:0;border:0;gap:8px}#view-history .route-export-buttons{display:grid;grid-template-columns:1fr 1fr}#view-history .route-export-buttons button{min-width:0!important;width:100%}#view-history #route-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}#view-history #route-form label:first-child,#view-history #route-form button{grid-column:1/-1}#view-history #route-form input,#view-history #route-form select{font-size:16px}#view-history .route-summary>div{padding:12px 9px}#view-history .route-summary strong{font-size:19px}#view-history .route-summary span{font-size:10px}#view-history .route-map-card{height:520px}#view-history .route-comparison-section{margin-top:22px}}
