:root{--navy:#092536;--deep:#071e2e;--teal:#0a7f91;--green:#66d13c;--blue:#1387a3;--light:#f5f8fa;--text:#172f3d;--muted:#768895;--line:#e3ebef;--shadow:0 10px 35px rgba(13,45,61,.055)}*{box-sizing:border-box}html{font-family: -apple-system,BlinkMacSystemFont,"Malgun Gothic","Apple SD Gothic Neo",Arial,sans-serif;color:var(--text);background:#f5f8fa}body{margin:0;font-size:14px}a{text-decoration:none;color:inherit}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(26px,3vw,34px);line-height:1.3;letter-spacing:-1.2px;margin-bottom:12px}h2{font-size:19px;letter-spacing:-.5px;margin-bottom:0}h3{font-size:18px;margin-bottom:18px}.container{max-width:1200px;margin:0 auto;padding:0 26px}.topbar{background:#fff;border-bottom:1px solid #e7edf0}.top-inner{height:78px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font-size:18px;letter-spacing:.5px;font-weight:700;color:#112b3d;white-space:nowrap}.brand b{color:#147f8c}.brand-symbol{width:37px;height:37px;background:var(--navy);color:var(--green);font-size:24px;font-weight:800;display:grid;place-items:center;border-radius:10px}.top-actions{display:flex;gap:15px;align-items:center}.status{font-size:11px;font-weight:700;letter-spacing:.7px;color:#71818a;white-space:nowrap}.status i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#65c447;margin-right:6px}.nav-link{font-weight:700;font-size:13px;color:#376979}.user-chip{background:#f2f6f8;color:#526876;border-radius:100px;padding:8px 12px;font-size:12px}.btn{border:0;display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:13px 19px;border-radius:10px;font-weight:750;min-height:42px;white-space:nowrap;transition:transform .12s,background .12s}.btn:hover{transform:translateY(-1px)}.btn.primary{background:#0a3849;color:white}.btn.primary:hover{background:#12566c}.btn.outline{border:1px solid #cddae1;color:#20495a;background:#fff}.btn.subtle{background:#f3f6f8;color:#496777}.btn.small{min-height:34px;padding:7px 12px;font-size:12px}.btn.wide{width:100%;justify-content:space-between;margin-top:20px}.main-area{padding-top:44px;padding-bottom:30px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:28px}.page-heading .muted{margin:0}.eyebrow{font-weight:800;letter-spacing:1.9px;color:#0c8aa0;font-size:10px;margin-bottom:12px}.eyebrow.light{color:#90d4d6}.muted{color:#758997;line-height:1.7}.compact{font-size:12px;margin:8px 0 0}.dataset-chip{padding:16px 24px;background:#eaf3f4;border:1px solid #d7eaeb;border-radius:16px;min-width:182px;text-align:right}.dataset-chip .smallcaps{display:block;font-size:10px;color:#78929a;font-weight:700;margin-bottom:5px}.dataset-chip strong{font-size:28px;color:#10394c;letter-spacing:-1px}.dataset-chip small{padding-left:5px;color:#688794}.two-column{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);gap:20px;margin-bottom:22px}.card{background:white;border:1px solid #e9eff3;border-radius:18px;box-shadow:var(--shadow)}.search-card{padding:29px 32px}.card-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:27px}.card-heading .eyebrow{margin-bottom:7px}.icon-card{width:48px;height:48px;background:#e8f5f5;color:#128e8f;display:grid;place-items:center;border-radius:13px;font-size:30px}.fieldgrid{display:grid;grid-template-columns:1fr 38px 1fr;gap:10px;align-items:end;margin-bottom:20px}.fieldgrid.two{grid-template-columns:1fr 1fr;gap:15px}.fieldgrid label,.form-grid label,.upload-form label{display:flex;flex-direction:column;gap:9px;font-size:12px;color:#46606e;font-weight:750;min-width:0}input,select{width:100%;height:46px;padding:0 14px;border:1px solid #dce5ea;border-radius:10px;outline:none;background:#fbfcfd;color:var(--text)}input:focus,select:focus{border-color:#36a2a7;box-shadow:0 0 0 3px #0e9b9c13}.swap-btn{width:36px;height:44px;background:#edf5f6;border:1px solid #d9ebed;color:#18798a;font-size:22px;border-radius:9px}.search-actions{display:flex;gap:10px;padding-top:5px}.search-actions .primary{min-width:160px}.quick{border-top:1px solid #edf0f2;margin-top:27px;padding-top:19px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.quick span{color:#9aa7ae;font-size:11px;margin-right:7px}.quick button{border:1px solid #e1e9ef;color:#527283;border-radius:7px;padding:7px 10px;background:#fff;font-size:11px}.quick button:hover{background:#f1f8f9}.side-stack{display:flex;flex-direction:column;gap:16px}.info-card{padding:27px 25px;flex:1}.tip{display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid #edf0f2}.tip:last-child{border:0}.tip span{font-size:11px;color:#0d8298;font-weight:800}.tip p{font-size:12px;color:#627987;line-height:1.7;margin:0}.tip b{color:#385d6e}.disclaimer{background:#eaf2f0;border:1px solid #d9e9e4;border-radius:16px;padding:19px;display:flex;gap:12px;color:#264a45}.disclaimer-icon{font-size:20px;color:#15846b}.disclaimer strong{font-size:13px}.disclaimer p{margin:7px 0 0;color:#6e857f;font-size:11px;line-height:1.75}.results-card{padding:28px 30px 15px}.result-header{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}.result-header .eyebrow{margin-bottom:7px}.counter{font-size:13px;padding:3px 9px;border-radius:99px;color:#0a7c90;background:#e8f6f7;vertical-align:middle;margin-left:5px}.source-legend{font-size:11px;color:#8da0a9}.table-wrap{width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left}thead{background:#f5f8fa;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}th{font-size:11px;font-weight:750;color:#7b919b;padding:14px 13px}td{padding:16px 13px;border-bottom:1px solid #edf2f4;font-size:12px;color:#455e6c}td:first-child{font-weight:700;color:#1b4354}td.money{font-size:15px;font-weight:850;color:#0b6575}.tag{display:inline-flex;padding:5px 8px;background:#eef5f8;color:#527a8c;border-radius:6px;font-size:10px;font-weight:700}.tag.hub{background:#e8f6ec;color:#268152}.tag.disabled{background:#f8ecec;color:#b85a5a}.empty-state{text-align:center!important;padding:54px 12px;color:#9aadb5!important;font-weight:400!important}.pagination{display:flex;align-items:center;justify-content:space-between;padding:15px 0 2px;color:#92a2a9;font-size:11px}.pagination>div{display:flex;gap:6px}.footer{display:flex;justify-content:space-between;gap:15px;color:#a3afb7;margin:24px 2px 0;font-size:10px;letter-spacing:.3px}.hidden{display:none!important}
/* Admin */.admin-heading{align-items:center}.admin-label{border-radius:8px;background:#14394b;color:#fff;padding:9px 12px;font-size:12px;font-weight:750}.tabs{display:flex;gap:6px;margin-bottom:20px;flex-wrap:wrap}.tab{border:1px solid #e3ebf0;background:#fff;color:#718994;padding:12px 19px;border-radius:9px;font-weight:750}.tab.selected{background:#14394b;border-color:#14394b;color:#fff}.panel{padding:27px 30px 24px}.section-heading h2{font-size:19px}.admin-filter{display:grid;grid-template-columns:1fr 1fr 1fr 1fr auto;gap:10px;margin-bottom:25px}.admin-filter input,.admin-filter select{height:43px}.admin-filter .btn{min-height:43px}.table-action{border:1px solid #dfedf0;background:#f5fbfc;padding:7px 12px;border-radius:7px;font-size:11px;color:#166579;font-weight:800}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:24px}.rate-form{max-width:800px}.checkbox-line{display:flex;gap:10px;align-items:center;margin:20px 0;font-size:12px;color:#5a7480}.checkbox-line input{width:17px;height:17px}.form-actions{display:flex;gap:10px}.notification{margin-bottom:20px;padding:14px 20px;background:#e6f6ee;border:1px solid #b9e7cd;color:#246b45;border-radius:11px}.notification.bad{background:#fff0ee;border-color:#ffd1c9;color:#9b403a}.instruction{background:#f2f7f8;border-left:3px solid #17a1a8;padding:20px;margin-bottom:18px;line-height:1.75}.instruction p{font-size:12px;color:#617c89;margin:8px 0 0}.upload-form{display:flex;align-items:end;gap:16px;margin:24px 0}.upload-form input{padding:11px;min-width:320px}.modal{position:fixed;inset:0;z-index:10;display:grid;place-items:center;padding:16px}.modal-backdrop{position:absolute;inset:0;background:#0b2233b0}.modal-content{position:relative;background:#fff;border-radius:18px;padding:28px;max-width:650px;width:100%;box-shadow:0 28px 80px #001b2990}.small-status{font-size:10px;font-weight:700}.login-page{background:#fff;min-height:100vh}.login-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-brand{background:linear-gradient(145deg,#061e2e,#0e4756);position:relative;color:white;padding:8vw 7vw;display:flex;flex-direction:column;justify-content:center;overflow:hidden}.login-brand:before{content:"";position:absolute;width:550px;height:550px;border:1px solid #ffffff15;border-radius:50%;right:-230px;bottom:-240px;box-shadow:0 0 0 130px #ffffff06,0 0 0 260px #ffffff05}.brand-mark{font-size:52px;font-weight:900;letter-spacing:-6px;color:white;margin-bottom:44px}.brand-mark span{color:#73d64a;font-size:48px}.login-brand h1{font-size:clamp(32px,4vw,52px);line-height:1.28;letter-spacing:-2px;margin-bottom:24px}.login-brand>p:not(.eyebrow){color:#bad6da;font-size:15px}.login-foot{position:absolute;bottom:50px;font-size:12px;color:#7dabae}.login-panel{display:flex;align-items:center;justify-content:center;padding:50px 28px}.login-form{width:min(390px,100%)}.login-form .mobile-logo{display:none}.login-form h2{font-size:28px;letter-spacing:-1px}.login-form .muted{margin:9px 0 33px;font-size:13px}.login-form form{display:flex;flex-direction:column}.login-form label{font-weight:700;color:#4d6270;font-size:12px;margin:0 0 8px}.login-form input{margin-bottom:19px;height:50px}.login-form .btn{margin-top:4px}.form-hint{font-size:11px;color:#9baab3;margin-top:20px}.error{font-size:12px;color:#c74438}.loading{opacity:.65}
@media(max-width:850px){.two-column{grid-template-columns:1fr}.side-stack{display:grid;grid-template-columns:1fr 1fr}.admin-filter{grid-template-columns:1fr 1fr}.dataset-chip{display:none}.top-actions .status{display:none}.login-shell{grid-template-columns:1fr}.login-brand{display:none}.login-form .mobile-logo{display:block;margin-bottom:50px;font-size:19px;color:var(--navy);font-weight:900}}
@media(max-width:570px){.container{padding:0 14px}.main-area{padding-top:28px}.top-inner{height:65px}.brand{font-size:14px}.top-actions{gap:7px}.top-actions .nav-link{font-size:11px}.top-actions .user-chip{display:none}.page-heading{margin-bottom:19px}.search-card,.results-card,.panel{padding:22px 16px}.fieldgrid{grid-template-columns:1fr 33px 1fr;gap:7px}.fieldgrid.two{gap:8px}.side-stack{grid-template-columns:1fr}.info-card{padding:21px}.result-header{align-items:flex-start}.source-legend{display:none}.form-grid{grid-template-columns:1fr}.admin-filter{grid-template-columns:1fr 1fr}.admin-filter .btn{grid-column:1/-1}.tabs .tab{flex:1;padding:10px 7px;font-size:11px}.upload-form{flex-direction:column;align-items:stretch}.upload-form input{min-width:0}.login-panel{padding:25px}}

/* V1.2: all-vehicle route cards */
.fieldgrid.single{grid-template-columns:1fr;max-width:400px}
.route-results{display:flex;flex-direction:column;gap:15px}
.route-group{border:1px solid #e0ebf0;border-radius:14px;padding:18px;background:linear-gradient(180deg,#ffffff,#fbfdfd);box-shadow:0 3px 12px #123b4b08}
.route-group-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.route-heading{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.route-path{font-size:18px;font-weight:850;color:#123f51;letter-spacing:-.6px}
.path-arrow{color:#0f91a6;margin:0 4px}
.route-badge{border-radius:8px;padding:5px 9px;font-weight:800;font-size:10px;white-space:nowrap}
.route-badge.direct{color:#14705b;background:#e6f5ed}
.route-badge.reversed{color:#9b5717;background:#fff1db}
.route-badge.neutral{color:#376c83;background:#edf4fa}
.source-name{color:#6c8590;font-size:11px;font-weight:750;border:1px solid #e2ebee;background:#f5f9fa;border-radius:7px;padding:6px 10px}
.route-meta{font-size:11px;color:#718995;margin:10px 0 0;line-height:1.5;overflow-wrap:anywhere}
.route-meta .dot{margin:0 8px;color:#c4d0d6}
.reverse-warning{background:#fff9ed;border:1px solid #f7e3bc;border-radius:8px;color:#9a6226;font-size:11px;line-height:1.6;padding:10px 12px;margin:12px 0 0}
.vehicle-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:15px}
.vehicle-box{background:#f2f8f9;border:1px solid #e0eef0;border-radius:9px;padding:11px 12px;min-width:0}
.vehicle-name{font-size:11px;font-weight:750;color:#64818e;margin-bottom:8px}
.vehicle-values{display:flex;flex-direction:column;gap:2px;line-height:1.5}
.vehicle-money{font-size:16px;font-weight:850;color:#0e6279;white-space:nowrap;letter-spacing:-.4px}
.vehicle-box.no-rate{background:#fafcfc;border-color:#f0f3f4}
.vehicle-box.no-rate .vehicle-name{color:#a3b2b9}
.dash{font-size:15px;color:#c0ccd1}
.rate-alert{font-size:10px;font-weight:800;color:#bc6b29;margin-top:6px}
.rate-note{font-size:10px;color:#8ba0a7;margin-top:5px}
.route-empty{text-align:center;color:#94a5ae;padding:54px 12px;background:#fbfdfd;border-radius:13px;border:1px dashed #d8e7eb}
@media(max-width:900px){.vehicle-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:570px){.vehicle-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.route-group{padding:14px}.route-path{font-size:16px}.vehicle-money{font-size:14px}}

/* V1.3 -- district-level reference price cards and curated shortcuts */
.route-badge.district{color:#4865a4;background:#e9eefb}
.route-group.district-card{border-color:#bfcde6;background:linear-gradient(180deg,#f9fbff,#f4f8fc)}
.district-warning{background:#eef3ff;border:1px solid #d7e3f9;border-radius:8px;color:#53678a;font-size:11px;line-height:1.7;padding:10px 12px;margin:12px 0 0}
.example-form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin:20px 0 25px;max-width:850px}
.example-form label{font-size:12px;font-weight:750;color:#46606e;display:flex;flex-direction:column;gap:8px}
.example-form .btn{height:46px}
.example-list{display:flex;flex-direction:column;gap:8px;max-width:850px;margin-bottom:18px}
.example-row{border:1px solid #e3ecef;background:#fafcfd;border-radius:10px;padding:11px 15px;display:flex;align-items:center;gap:13px}
.example-row b{font-size:13px;flex:1;color:#163e50}.example-row b span{color:#1192a5;margin:0 8px}
.example-order{background:#dceef0;border-radius:8px;font-size:12px;font-weight:800;color:#267587;display:grid;place-items:center;width:28px;height:28px}
@media(max-width:570px){.example-form{grid-template-columns:1fr}.example-row{padding:10px}}

/* V1.4 — unified, above-the-fold employee lookup. Admin CSS remains unchanged. */
.lookup-v14{background:#f5f8fa}
.lookup-v14 .container{max-width:1430px}
.lookup-v14 .top-inner{height:62px}
.v14-main{padding-top:20px;padding-bottom:12px}
.v14-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:10px}
.v14-title-row h1{font-size:24px;line-height:1.2;letter-spacing:-.8px;margin:0 0 3px}
.v14-title-row .eyebrow{margin:0 0 5px;font-size:9px;letter-spacing:1.5px}
.v14-title-row p{font-size:12px;margin:0;line-height:1.45}
.v14-data-pill{background:#eaf5f3;border:1px solid #daebe9;border-radius:12px;padding:9px 14px;white-space:nowrap;color:#5e8992;font-size:11px}
.v14-data-pill b{font-size:17px;color:#143c4c;margin-left:3px}
.v14-search-panel{padding:16px 20px 10px;margin-bottom:14px}
.v14-search-form{display:grid;grid-template-columns:minmax(100px,1.25fr) 38px minmax(100px,1.25fr) minmax(116px,.8fr) minmax(105px,.7fr) 72px;gap:9px;align-items:end}
.v14-field{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:750;color:#58707b;min-width:0}
.v14-field input,.v14-field select{height:44px;border-radius:8px;background:#fbfdfd;font-size:15px}
.v14-source select{font-size:12px}
.v14-search-form .btn{min-height:44px;height:44px;padding:7px 12px;font-size:13px}
.v14-swap{height:44px;width:38px;background:#edf6f6;border:1px solid #dcebed;border-radius:9px;color:#12869a;font-size:23px}
.v14-shortcuts{display:flex;align-items:center;gap:10px;border-top:1px solid #eaf0f2;margin-top:12px;padding-top:9px;min-height:35px}
.v14-shortcuts-name{font-size:11px;font-weight:750;color:#758c98;white-space:nowrap}
.v14-example-list{display:flex;gap:6px;flex-wrap:wrap}
.v14-example-list button{background:#f3f8fa;border:1px solid #e3edf0;border-radius:7px;font-size:11px;color:#436c7c;padding:5px 9px}
.v14-example-list button:hover{background:#e5f4f4}
.v14-result-panel{padding:18px 20px 12px}
.v14-result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.v14-result-head h2{font-size:21px;letter-spacing:-.5px;margin:0}
.v14-result-head .eyebrow{font-size:9px;margin-bottom:5px}
.v14-result-head .compact{font-size:11px;margin:5px 0 0;line-height:1.4}
.v14-result-count{background:#ecf6f6;color:#186776;white-space:nowrap;border-radius:9px;padding:7px 11px;font-weight:750;font-size:11px}
.v14-mapping{background:#f2f7f9;border-radius:8px;padding:9px 12px;margin:13px 0 11px;font-size:11px;line-height:1.3}
.v14-mapping b{color:#30677b}.v14-divider{padding:0 9px;color:#bacad0}
.v14-vehicle-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
.v14-rate-tile{min-width:0;min-height:109px;border:1px solid #dbe7eb;border-radius:10px;background:#f4f9fa;text-align:left;padding:13px 12px 10px;display:flex;flex-direction:column;justify-content:space-between;transition:border-color .14s,transform .14s}
.v14-rate-tile:hover:not(:disabled){border-color:#5daab7;transform:translateY(-1px)}
.v14-rate-tile:focus-visible{outline:3px solid #79cfca;outline-offset:2px}
.v14-rate-tile.district{background:#f4f7ff;border-color:#d7e1f4}
.v14-rate-tile.reverse{background:#fff9ef;border-color:#f3e2c5}
.v14-rate-tile.blank{background:#fafbfc;border-color:#edf1f2}
.v14-tile-title{font-weight:800;font-size:12px;color:#66828f}
.v14-price{font-size:19px;letter-spacing:-.5px;color:#114c64;white-space:nowrap}
.v14-rate-tile.district .v14-price{color:#4669a3}
.v14-rate-tile.reverse .v14-price{color:#90632a}
.v14-rate-tile.blank .v14-price{color:#c5d1d6}
.v14-tile-source{font-size:10px;color:#678391;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v14-attention{background:#ffede4;color:#b16122;padding:2px 4px;border-radius:3px;margin-right:3px}
.v14-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:190px;gap:7px;background:#f9fbfc;border:1px dashed #dce7eb;border-radius:10px;color:#8ca0aa}
.v14-empty strong{color:#546f7d;font-size:15px}
.v14-empty span{font-size:12px}
.v14-legend{display:flex;align-items:center;flex-wrap:wrap;gap:14px;border-top:1px solid #edf1f3;margin-top:12px;padding-top:10px;color:#66818f;font-size:10px}
.legend-dot{display:inline-block;width:7px;height:7px;border-radius:3px;margin-right:4px}
.legend-dot.local{background:#3296a6}.legend-dot.district{background:#7595d9}.legend-dot.reverse{background:#daa44e}
.v14-legend-warning{margin-left:auto;color:#8796a0}
.v14-footer{margin:14px 2px 0}
.v14-modal{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:18px}
.v14-modal-shade{position:absolute;inset:0;background:#0b2038a9}
.v14-modal-body{position:relative;background:#fff;border-radius:18px;width:min(720px,100%);max-height:min(80vh,770px);overflow:auto;padding:22px 24px;box-shadow:0 25px 60px #0b203840}
.v14-modal-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
.v14-modal-head .eyebrow{margin-bottom:5px}
.v14-modal-head h2{font-size:19px}
.v14-modal-open{overflow:hidden}
.v14-detail-list{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.v14-detail-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e7eef2;border-radius:9px;padding:12px;background:#fafcfd}
.v14-detail-row.highlight{border-color:#b6dadf;background:#f2faf9}
.v14-detail-row b{font-size:13px;color:#315268}
.v14-detail-row strong{color:#1a5d74;font-size:17px;white-space:nowrap}
.v14-detail-row p{font-size:11px;color:#82939c;margin:7px 0 0}
.v14-detail-pill{border-radius:5px;background:#e7f0f2;padding:4px 6px;font-size:10px;font-weight:800;color:#476e7b;margin-right:6px}
.v14-detail-pill.district{background:#eaf0ff;color:#506bb1}
.v14-detail-pill.reverse{background:#fff0df;color:#a56b31}
.v14-detail-warning,.v14-more{color:#8c6660;font-size:11px;line-height:1.6;margin:16px 0 0}
@media(max-height:790px) and (min-width:920px){
 .lookup-v14 .top-inner{height:54px}
 .v14-main{padding-top:12px}
 .v14-title-row{margin-bottom:9px}
 .v14-title-row h1{font-size:22px}
 .v14-title-row .muted{display:none}
 .v14-search-panel{padding:12px 17px 8px;margin-bottom:9px}
 .v14-shortcuts{margin-top:8px;padding-top:6px}
 .v14-result-panel{padding:14px 17px 10px}
 .v14-mapping{margin:9px 0 9px;padding:8px 10px}
 .v14-rate-tile{min-height:99px;padding:10px 11px 9px}
 .v14-vehicle-grid{gap:7px}
 .v14-legend{margin-top:8px;padding-top:8px}
 .v14-footer{margin-top:7px}
}
@media(max-width:1090px){.v14-vehicle-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:830px){.v14-search-form{grid-template-columns:1fr 38px 1fr;gap:8px}.v14-source{grid-column:1/3}.v14-submit{grid-column:3}.v14-reset{grid-column:1/-1}.v14-vehicle-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.v14-legend-warning{margin-left:0}}
@media(max-width:520px){.v14-title-row h1{font-size:21px}.v14-data-pill{display:none}.v14-main{padding-top:15px}.v14-search-panel,.v14-result-panel{padding:13px}.v14-field input,.v14-field select{padding:0 8px}.v14-vehicle-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.v14-rate-tile{min-height:98px;padding:10px 8px}.v14-price{font-size:16px}.v14-tile-source{font-size:9px}.v14-result-head h2{font-size:19px}.v14-result-count{font-size:10px;padding:6px}.v14-mapping{font-size:10px}.v14-modal-body{padding:16px}}

.v14-price.v14-price-multi{font-size:15px;letter-spacing:-.5px}
/* V1.5 additions - preserve V1.4 main search design */
.v15-cost-panel{margin-top:22px;padding:28px 30px}.v15-api-panel{margin-top:14px;padding:18px 25px;display:flex;align-items:center;justify-content:space-between;gap:20px}.v15-api-text{display:grid;gap:6px}.v15-api-text span{font-size:13px;color:#688092}.v15-tag{display:inline-block;border-radius:50px;background:#e8f7ee;color:#257453;padding:7px 12px;font-size:12px;font-weight:700;white-space:nowrap}.v15-cost-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:15px;margin-top:22px}.v15-cost-card{background:#f8fbfd;border:1px solid #e0eaf1;border-radius:15px;padding:17px}.v15-cost-card h3{font-size:20px;margin:0 0 12px;color:#16334b;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}.v15-cost-card h3 span{font-size:13px;color:#2c9b67}.v15-provider-row{padding:12px 0;border-top:1px solid #dee8ef;display:flex;justify-content:space-between;align-items:center;gap:12px}.v15-provider-row b{color:#18364d}.v15-provider-row small,.v15-cost-right span{display:block;font-size:12px;color:#6b7e8c;margin-top:4px}.v15-cost-right{text-align:right;white-space:nowrap}.v15-cost-right strong{font-size:15px}.v15-history{margin-top:13px}.v15-history summary{cursor:pointer;font-size:13px;font-weight:700;color:#187da1}.v15-scroll{overflow:auto}.v15-history table,.v15-table{border-collapse:collapse;width:100%;font-size:13px;margin-top:12px}.v15-history td,.v15-history th,.v15-table td,.v15-table th{border-bottom:1px solid #e4e9ef;padding:9px;text-align:left;white-space:nowrap}.v15-small-note{font-size:12px;color:#748697;margin-top:15px;line-height:1.65}.v15-shortcut.pinned{border-color:#42c466}.v15-manage-main{padding:34px 0 65px}.v15-form-card{margin:20px 0;padding:22px 26px}.v15-form-card h2{margin:0 0 16px;font-size:22px}.v15-form-grid{display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:14px}.v15-form-grid label{display:flex;flex-direction:column;font-size:13px;font-weight:700;gap:7px}.v15-form-grid label small{font-weight:400;color:#788b98}.v15-form-grid input,.v15-form-grid select,.v15-spec-input{border:1px solid #cfdde6;border-radius:8px;padding:10px;min-width:0;background:white;color:#16344a}.v15-form-grid .v15-form-long{grid-column:1/-1}.v15-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px}.v15-section-line{display:flex;justify-content:space-between;align-items:center;gap:12px}.v15-spec-input{width:75px;padding:7px}.v15-cap-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:16px}.v15-cap-card{border:1px solid #dfe8ed;border-radius:14px;background:#f8fbfd;padding:16px}.v15-cap-ok{border-color:#7abda7}.v15-cap-top{display:flex;align-items:center;justify-content:space-between;gap:7px}.v15-cap-top h3{margin:0;font-size:17px}.v15-cap-card p{font-size:13px;margin:9px 0}.v15-layout{height:32px;background:repeating-linear-gradient(90deg,#f0f4f7 0 20px,#f5f8fa 20px 40px);border:1px solid #dce6ec;display:flex;overflow:hidden;border-radius:6px;margin:10px 0}.v15-layout-zone{display:flex;align-items:center;justify-content:center;overflow:hidden;min-width:2px;color:#fff;font-weight:bold;font-size:11px;border-right:1px solid #fff}.v15-layout-zone.b127{background:#1590ad}.v15-layout-zone.b137{background:#34ad6b}.v15-layout-zone.b147{background:#6454bc}
@media(max-width:720px){.v15-cost-panel,.v15-form-card{padding:18px}.v15-form-grid{grid-template-columns:1fr 1fr}.v15-form-grid .v15-form-long{grid-column:1/-1}.v15-api-panel{flex-direction:column;align-items:flex-start}}
@media(max-width:480px){.v15-form-grid{grid-template-columns:1fr}}

/* V1.5.2: Keep opposite-direction bills visibly separate from direct-direction prices. */
.v152-direction{margin:12px 0 7px;border:1px solid #e3eaf0;border-radius:11px;padding:12px 13px;background:#fff}
.v152-direction.v152-reverse{border-color:#e8dba8;background:#fffdf5}
.v152-direction-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.v152-direction-head b{font-size:14px;color:#1b4058}
.v152-reverse .v152-direction-head b{color:#80641a}
.v152-direction-head small{font-size:12px;color:#708393}
.v152-warning{font-size:12px;line-height:1.5;color:#866d28;margin:8px 0 0}
.v152-direction .v15-provider-row:last-child{padding-bottom:0}
.v152-direction .v15-history{margin:10px 0 0}

/* V1.5.3: order-specific discounts, margin comparison, dated invoice analysis */
.v14-search-form .v153-unit{min-width:103px}
.v153-checkbox .v153-checkline{display:flex;align-items:center;gap:8px;font-weight:700;padding:8px 2px}
.v153-checkbox .v153-checkline input{min-width:16px;width:16px;height:16px;accent-color:#13996c}
.v153-flag{display:inline-block;border-radius:100px;background:#e6f6ec;color:#17714c;padding:3px 7px;font-size:10px;font-weight:700;margin-left:4px}
.v153-flag.no{background:#fff0df;color:#986124}
.v153-provider-row{align-items:flex-start}
.v153-provider-row>div:first-child{min-width:0}
.v153-margin{display:inline-block;font-size:14px;font-weight:700;line-height:1.7;margin-top:7px}
.v153-margin.gain{color:#167c59}.v153-margin.loss{color:#ca4853}
.v153-detail{font-weight:700;color:#197f9b;font-size:12px;display:inline-block;margin-top:6px;text-decoration:underline;text-underline-offset:3px}
.v153-legacy{font-size:12px;color:#8a6638;border-radius:7px;background:#fff4dd;padding:9px}
.v153-detail-main{padding:32px 0 60px}.v153-detail-main h1{font-size:27px;margin:4px 0 6px}
.v153-detail-toolbar{display:flex;gap:14px;flex-wrap:wrap;margin:22px 0}
.v153-detail-toolbar label{display:flex;align-items:center;gap:9px;font-weight:700;font-size:13px}
.v153-detail-toolbar select{border:1px solid #ccdae4;border-radius:8px;padding:10px;background:white;min-width:150px}
.v153-detail-card{padding:24px 28px;margin:18px 0}.v153-detail-card h2{font-size:20px;margin:0 0 16px}
.v153-section-head{display:flex;justify-content:space-between;gap:15px;align-items:center}
.v153-graph{width:100%;min-height:200px}.v153-graph svg{width:100%;height:auto;display:block}
.v153-legend{display:flex;gap:18px;justify-content:center;font-size:13px;color:#537083;margin-top:3px}
.v153-legend span{display:flex;gap:7px;align-items:center}.v153-legend i{display:inline-block;width:16px;height:4px;border-radius:3px}
@media(max-width:700px){.v153-detail-card{padding:15px}.v153-detail-main h1{font-size:21px}.v15-cost-card{padding:13px}}

/* Search form has one additional order unit column in v1.5.3 */
@media(min-width:831px){.v14-search-form{grid-template-columns:minmax(95px,1.1fr) 38px minmax(95px,1.1fr) minmax(110px,.8fr) minmax(110px,.8fr) minmax(110px,.8fr) 72px}}
@media(max-width:830px){.v14-search-form .v153-unit{grid-column:1}.v14-search-form .v14-source{grid-column:2}.v14-search-form .v14-submit{grid-column:3}.v14-search-form .v14-reset{grid-column:1/-1}}
@media(max-width:540px){.v14-search-form .v153-unit{grid-column:1/3}.v14-search-form .v14-source{grid-column:3}.v14-search-form .v14-submit{grid-column:1/3}.v14-search-form .v14-reset{grid-column:3}}

.v156-warning{color:#9a651b;font-weight:600;margin:3px 0}

/* V1.5.8: compact, opt-in analysis without changing the lookup grid. */
.v158-toolbar{display:flex;gap:10px;margin:15px 0;flex-wrap:wrap}.v158-toolbar input{max-width:240px}
.v158-small{font-size:11px;color:#718995;line-height:1.7;margin:8px 0}
.v158-confirm{display:flex;align-items:center;gap:9px;font-weight:700;font-size:11px;color:#315667;padding:12px 0}
.v158-confirm input{width:15px;height:15px;flex:none}
.v158-gap{margin-top:10px;padding:9px 11px;border:1px solid #cde5e7;background:#f5fbfb;border-radius:8px;display:flex;flex-direction:column;gap:4px;color:#165b69}
.v158-gap small{color:#738d95;font-size:10px}
.v14-rate-tile.v158-chosen{outline:2px solid #218e9a;outline-offset:2px}
#panel-stats .section-heading select{max-width:140px}

/* V1.5.9: lightweight, optional UI-only enhancements */
.v159-compare{margin-top:14px;padding:12px 15px;border:1px solid #cfe5e8;background:#f8fcfc;border-radius:10px}
.v159-compare-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:9px 0}
.v159-compare-row label{font-size:12px;color:#426777;display:flex;gap:6px;align-items:center}
.v159-compare-row select{max-width:150px;border:1px solid #cbdbe2;border-radius:7px;padding:6px 8px}
.v159-compare-row span{flex:1;font-size:12px;font-weight:700;color:#144558;line-height:1.6}
.v159-compare small{font-size:11px;color:#657e89}
.v159-order-badge{display:inline-block;background:#e7f3fa;color:#174f68;border-radius:5px;padding:5px 8px;margin:4px 0;font-size:11px;font-weight:700}
.v159-preview{padding:12px 16px;background:#eff8f5;border:1px solid #bdded4;border-radius:9px;margin:12px 0;font-size:13px;line-height:1.8}
.v159-preview del{color:#a35b57}.v159-preview strong{color:#185e55}
.v159-check-table{margin-bottom:24px;width:100%;font-size:12px}
#panel-consistency h3{margin-top:20px;font-size:15px}
@media(max-width:640px){.v159-compare-row{align-items:stretch;flex-direction:column}.v159-compare-row span{width:100%}}

/* V1.5.9.1: isolated admin input; no extra work on rate lookup until cost panel is shown */
.v1591-extras{border:1px solid #d6e5e9;border-radius:10px;padding:15px 18px;margin:8px 0 0}
.v1591-extras legend{font-weight:800;color:#215363;padding:0 8px}
.v1591-extra-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:10px 0}
.v1591-extra-grid label{font-size:12px;min-width:0}.v1591-extra-grid small{display:block;color:#718995;font-weight:500;margin:4px 0}
.v1591-extra-grid input{width:100%}.v1591-verify{display:flex;align-items:center;gap:8px;font-weight:750;font-size:12px;margin-top:12px}
.v1591-verify input{width:17px;height:17px;flex:none}
@media(max-width:850px){.v1591-extra-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.v1591-extra-grid{grid-template-columns:1fr}}

/* V1.5.9.3 vehicle simulator */
.v15-layout-zone.b120{background:#e08a2e}.v15-layout-zone.b130{background:#b95388}
.v1593-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.v1593-card-actions .btn{font-size:12px;padding:8px 11px;min-height:34px}
.v1593-sim-main{max-width:1120px;margin:24px auto 64px;padding:0 24px}
.v1593-sim-controls{display:flex;gap:14px;flex-wrap:wrap;align-items:center;margin:18px 0}
.v1593-sim-controls label{display:flex;gap:9px;align-items:center;font-size:13px;font-weight:700}
.v1593-sim-controls select{border:1px solid #bed3df;border-radius:8px;padding:9px;background:#fff}
.v1593-sim-panel{border:1px solid #e1eaf0;border-radius:14px;background:white;padding:18px;margin:14px 0;min-width:0}
.v1593-sim-panel h2{font-size:18px;margin:0 0 12px}
.v1593-sim-figure{overflow:auto;border-radius:12px;background:#edf3f5;border:1px solid #d4e1e6;padding:14px}
.v1593-sim-figure svg{display:block;max-width:100%;height:auto;margin:auto}
.v1593-sim-legend{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0;font-size:13px}
.v1593-sim-legend span{display:flex;gap:6px;align-items:center}
.v1593-sim-swatch{width:13px;height:13px;border-radius:3px;display:inline-block}
.v1593-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:11px}
.v1593-info-grid>div{border:1px solid #e4edf1;border-radius:10px;background:#f7fafb;padding:12px}
.v1593-info-grid b{font-size:19px;display:block;margin-top:6px}
.v1593-info-grid small{color:#6d8190}
.v1593-sim-warning{line-height:1.7;color:#8a5321;background:#fff7e8;border:1px solid #f5dfa9;padding:12px;border-radius:10px;font-size:13px}
@media(max-width:600px){.v1593-sim-main{padding:0 12px}.v1593-sim-panel{padding:12px}}

/* V1.5.9.4: previous version */
.v1593-sim-figure svg{width:70%;max-width:100%;height:auto}
.v14-field{position:relative}
.v1594-extra{font-size:12px!important;color:#195e74!important;line-height:1.6;white-space:normal}
.v1594-vehicle-link{display:inline-flex;align-items:center;min-height:30px;padding:4px 8px;border:1px solid #a9d2da;border-radius:6px;color:#0b6378;background:#f4fbfc;font-size:12px;font-weight:750;text-decoration:none}
.v1594-vehicle-link:hover{background:#e4f3f7}

/* V1.5.9.5: input alignment, clearly visible extras, autocomplete removed, compact 2D draw */
.v15-box-inputs label.v1595-box-field{display:grid;grid-template-rows:20px 18px 46px;row-gap:6px;align-content:start;min-width:0}
.v15-box-inputs .v1595-box-label{display:block;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v15-box-inputs label.v1595-box-field small{display:block;line-height:18px;margin:0;min-height:18px;font-weight:400;color:#718995}
.v15-box-inputs label.v1595-box-field input{height:46px;min-height:46px;max-height:46px;margin:0;box-sizing:border-box;align-self:stretch}
.v1593-sim-figure svg{width:50%!important;max-width:50%!important;min-width:0;height:auto;margin-left:auto;margin-right:auto}
.v1595-extra-panel{margin:9px 0 11px;border:1px solid #bedee5;background:#f1fafb;border-radius:9px;padding:10px 12px;color:#17566c;line-height:1.5}
.v1595-extra-header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px;font-size:12px;margin-bottom:6px}
.v1595-extra-header span{color:#527d8f;font-size:11px}
.v1595-extra-items{display:flex;flex-wrap:wrap;gap:6px;font-size:12px;align-items:center}
.v1595-extra-chip{background:#fff;border:1px solid #a7d2da;border-radius:7px;padding:5px 9px;white-space:normal}
.v1595-extra-chip b{font-weight:800;color:#10465c}
.v1595-extra-panel small{display:block;margin-top:7px;color:#6d8190;font-size:11px}
.v1595-extra-unverified{border-color:#eadac0;background:#fffaf2;color:#85612f}

/* V1.6: another relative 10% reduction (40% -> 36%) on the detail page. */
.v1593-sim-figure svg{width:36%!important;max-width:36%!important;height:auto}
.v1597-vehicle-switcher{position:sticky;top:8px;z-index:5;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;background:#f9fcfc;border:1px solid #cddde3;border-radius:12px;padding:12px 16px;box-shadow:0 5px 16px #183b4e0b}
.v1597-switcher-title{display:flex;flex-direction:column;gap:3px;font-size:14px}
.v1597-switcher-title small{font-size:11px;color:#607885}
.v1597-switcher-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.v1597-switcher-label{font-size:12px;font-weight:700;color:#466477}
.v1597-switcher-buttons select{min-height:36px;border:1px solid #b6cdd8;border-radius:8px;background:#fff;padding:7px 10px;font-size:13px;min-width:190px;max-width:100%}
@media(min-width:780px){.v1597-vehicle-switcher{display:grid;grid-template-columns:minmax(150px,1fr) auto}.v1597-switcher-buttons{flex-wrap:nowrap}.v1597-switcher-buttons select{width:215px}}
@media(max-width:600px){.v1597-vehicle-switcher{position:static}.v1597-switcher-buttons{width:100%}.v1597-switcher-buttons select{flex:1;min-width:0}.v1593-sim-figure svg{width:72%!important;max-width:72%!important}}
