@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#172b43;background:#f3f6fb;--navy:#102b45;--ink:#172b43;--teal:#087f76;--line:#e1e8f0;--muted:#698096;--shadow:0 8px 32px rgba(16,43,69,.055)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:radial-gradient(ellipse 65% 28% at 92% 4%,#e4f4f2 0%,transparent 75%),#f3f6fb}button,input,select,textarea{font:inherit}button{cursor:pointer;transition:background .18s,transform .18s,box-shadow .18s}button:hover:not(:disabled){transform:translateY(-1px)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #81cfc7;outline-offset:2px}button:disabled{opacity:.5;cursor:not-allowed}.shell{max-width:1200px;margin:auto;padding:36px 28px 72px}.top{background:linear-gradient(115deg,#0c2944 0%,#123953 62%,#0b5a5b 100%);color:white;padding:20px 0;box-shadow:0 4px 18px #0a29402b}.topin{max-width:1200px;margin:auto;padding:0 28px;display:flex;justify-content:space-between;align-items:center;gap:16px}.brand{font-family:Manrope,system-ui,sans-serif;font-weight:800;font-size:23px;letter-spacing:.7px;line-height:1.25}.brand:before{content:'↗';display:inline-grid;place-items:center;background:#16b7a4;color:#fff;width:36px;height:36px;border-radius:11px;margin-right:12px;font-size:25px;vertical-align:middle}.brand small{display:block;color:#a6d3d7;font-family:'DM Sans',sans-serif;font-weight:600;font-size:10px;letter-spacing:2.1px;margin:4px 0 0 49px}.topin>div:last-child{display:flex;align-items:center;gap:12px}.topin .tiny{color:#d8e7ee}.btn{border:1px solid transparent;background:#078477;color:white;padding:11px 17px;border-radius:10px;font-weight:700;box-shadow:0 3px 8px #087f7618}.btn:hover:not(:disabled){background:#056d64;box-shadow:0 6px 14px #087f7625}.btn.secondary{background:#edf4f7;color:#24465d;border-color:#dbe8ed;box-shadow:none}.btn.secondary:hover:not(:disabled){background:#e0edf2}.btn.ghost{background:#ffffff21;color:white;border-color:#ffffff26;box-shadow:none}.btn.danger{background:#ad3e4f}.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px 28px;margin:18px 0;box-shadow:var(--shadow)}.card h2{font-family:Manrope,sans-serif;font-size:19px;letter-spacing:-.4px;margin:4px 0 16px}.auth{max-width:475px;margin:7vh auto;padding:35px 36px}.auth h1{font-size:27px;margin:0 0 8px}.auth>.muted{margin-bottom:22px}.shell h1{font-family:Manrope,sans-serif;letter-spacing:-.8px;font-size:30px;line-height:1.2;margin:8px 0}.shell>.row:first-child{margin-bottom:22px}.shell>.row:first-child p{margin:7px 0 0}.muted{color:var(--muted)}.tiny{font-size:12px}.field{display:block;margin:12px 0}.field span{display:block;font-weight:700;font-size:12px;color:#32485e;margin-bottom:7px}.field input,.field select,.field textarea,input,select,textarea{width:100%;padding:12px 13px;border:1px solid #d5e0e9;border-radius:10px;background:#fff;color:var(--ink);min-height:45px;transition:border-color .15s,box-shadow .15s}.field input:focus,.field select:focus,.field textarea:focus{border-color:#0f988a;box-shadow:0 0 0 3px #0b9b8c16;outline:none}.field textarea{min-height:92px;resize:vertical}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 18px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.tabs{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 18px;padding:6px;background:#eaf0f6;border-radius:13px;width:fit-content}.tabs button{border:1px solid transparent;background:transparent;border-radius:9px;padding:10px 17px;color:#4f6479;font-weight:700}.tabs button:hover:not(.active){background:#ffffffa8}.tabs button.active{background:#102e49;color:#fff;box-shadow:0 4px 12px #122f4925}.auth .tabs{width:100%;gap:3px;justify-content:space-between}.auth .tabs button{padding:10px 11px;font-size:12px}.row{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.kpi{padding:20px;background:linear-gradient(120deg,#eef9f6,#f0f5fa);border:1px solid #dcece9;border-radius:13px}.kpi b{display:block;font-size:26px;margin-top:7px;font-family:Manrope,sans-serif}.tablewrap{overflow:auto;border:1px solid #e8edf3;border-radius:12px}table{width:100%;border-collapse:collapse;min-width:590px}td,th{padding:13px 14px;text-align:left;border-bottom:1px solid #edf1f5}th{font-size:11px;color:#657b90;text-transform:uppercase;letter-spacing:.65px;background:#f6f9fc;font-weight:800}td{font-size:13px}tbody tr:nth-child(even){background:#fbfcfe}tbody tr:hover{background:#f0f9f8}tr:last-child td{border-bottom:0}.pill{background:#e7f4f2;color:#0b7269;border:1px solid #d1ebe7;border-radius:30px;padding:7px 12px;font-size:12px;font-weight:700}.notice{background:#e8f8f2;color:#12614e;border:1px solid #ccebdd;padding:13px 16px;border-radius:11px;margin:14px 0}.error{background:#fff0f1;color:#a22d3c;border:1px solid #f6d8de;padding:13px 16px;border-radius:11px;margin:14px 0}.pay{border:1px solid #dce7ef;border-radius:14px;padding:20px;margin:15px 0;background:linear-gradient(#fff,#fcfefe);box-shadow:0 3px 14px #112c4308}.pay h3{margin:0 0 5px;font-size:17px}.pay>.row>b{font-family:Manrope,sans-serif;color:#087f76;font-size:24px}.pay .tablewrap{margin:16px 0}.pay .btn{margin-top:8px}.link{border:0;background:transparent;color:#087b67;text-decoration:underline;padding:7px}.right{text-align:right}.nowrap{white-space:nowrap}.hide{display:none!important}.loading{text-align:center;margin:20vh auto;color:#63778a;font-size:17px}.approval{padding:17px 0;border-bottom:1px solid var(--line)}.approval h3{margin:0 0 12px}form>.btn{margin-top:10px}#content{animation:fadeIn .25s ease}@keyframes fadeIn{from{opacity:.55;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media(max-width:750px){.shell{padding:20px 14px 50px}.topin{padding:0 16px}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.card{padding:20px}.shell h1{font-size:25px}.topin .tiny{display:none}}@media(max-width:540px){.grid,.grid.three{grid-template-columns:1fr}.auth{padding:24px 18px;margin:4vh auto}.card{padding:18px}.brand{font-size:18px}.brand:before{width:29px;height:29px;font-size:20px;margin-right:8px}.brand small{font-size:8px;letter-spacing:1px;margin-left:38px}.tabs{width:100%}.tabs button{flex:1;padding:10px 8px;font-size:12px}.pay>.row>b{font-size:21px}}@media print{.top button,.tabs,.no-print,form,.link{display:none!important}.shell{max-width:100%;padding:0}.card,.pay{box-shadow:none;break-inside:avoid}body{background:white}table{min-width:0}.top{background:#102b45!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}}
/* CargoBoss Pro — visual dashboard additions */
:root{--cb-navy:#0d2740;--cb-teal:#0b9f91;--cb-border:#dce6ef}html{scroll-behavior:smooth}body{background:radial-gradient(ellipse at 85% 0%,#e4f5f2 0,transparent 40%),#f3f6fb}.shell{max-width:1240px}.top{box-shadow:0 8px 25px #10263d1a}.card{box-shadow:0 12px 32px #10263d0b;transition:box-shadow .25s ease,transform .25s ease}.card:hover{box-shadow:0 17px 40px #10263d14}.tabs{position:relative}.tabs button{transition:transform .2s,background .2s,color .2s}.tabs button:hover{transform:translateY(-2px)}.btn{transition:transform .18s,filter .18s,box-shadow .18s}.btn:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.06);box-shadow:0 8px 16px #087b6722}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid #22b7a885;outline-offset:1px;border-color:#15a999}.hero{position:relative;overflow:hidden;border-radius:22px;background:linear-gradient(115deg,#0d2740,#124c60 68%,#078c81);padding:34px 38px;color:white;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0;box-shadow:0 20px 38px #0d274026;animation:fadeRise .55s ease both}.hero:before{content:"";position:absolute;width:380px;height:380px;border-radius:50%;border:1px solid #ffffff25;right:-140px;top:-230px;box-shadow:0 0 0 70px #ffffff08,0 0 0 145px #ffffff05}.hero h2{font-size:clamp(24px,3vw,38px);letter-spacing:-.8px;margin:8px 0}.hero p{margin:0;color:#c7e5e8}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.6px;color:#8de7dc}.eyebrow.dark{color:#118779}.hero-mark{font-size:70px;font-weight:800;opacity:.35}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.metric{background:#fff;border:1px solid var(--cb-border);border-radius:18px;padding:20px;box-shadow:0 8px 20px #0d27400a;animation:fadeRise .6s ease both;transition:transform .2s}.metric:hover{transform:translateY(-4px)}.metric span,.metric small{display:block;color:#6a7f90}.metric span{font-size:13px;font-weight:700}.metric strong{display:block;font-size:clamp(21px,2.1vw,29px);letter-spacing:-.7px;margin:11px 0 8px;color:#0e2a43;overflow-wrap:anywhere}.metric small{font-size:11px}.dashboard-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:16px}.dashboard-grid .card{margin:0}.summary-line{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #e6edf2}.summary-line.total{font-size:18px;color:#087b67;border:0}.bars{display:flex;align-items:end;justify-content:space-around;gap:10px;height:245px;padding:18px 4px 4px}.bar-item{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px}.bar-item span{font-size:11px;font-weight:700;white-space:nowrap}.bar-track{height:170px;width:100%;max-width:58px;display:flex;align-items:end;border-radius:10px;background:#eaf2f4;overflow:hidden}.bar-fill{width:100%;background:linear-gradient(0deg,#087b67,#31c7b3);border-radius:10px 10px 0 0;animation:barGrow .8s ease both;transform-origin:bottom}.bar-item small{font-size:10px;color:#698194;white-space:nowrap}.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.quick-grid button{text-align:left;border:1px solid #dce6ef;background:#f7fafc;border-radius:14px;padding:18px;color:#18354d;cursor:pointer;transition:transform .2s,background .2s,border-color .2s}.quick-grid button:hover{background:#eaf7f4;border-color:#55b6a9;transform:translateY(-3px)}.quick-grid span{display:block;font-size:28px;color:#087b67}.quick-grid b,.quick-grid small{display:block;margin-top:8px}.quick-grid small{color:#6a7f90}.live-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px;margin:18px 0 8px;background:#eef5f8;border:1px solid #d9e8ee;border-radius:14px}.live-preview>div{padding:12px}.live-preview span{display:block;font-size:12px;color:#567080;font-weight:650}.live-preview strong{display:block;font-size:22px;margin-top:8px;color:#18354d}.live-preview .preview-net{background:#d8f3ec;border-radius:10px}.live-preview .preview-net strong{color:#087b67}.payment-record{padding-bottom:18px;border-bottom:1px solid #e6edf2;animation:fadeRise .3s ease}.payment-record:last-child{border:0}@keyframes fadeRise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes barGrow{from{transform:scaleY(.08)}to{transform:scaleY(1)}}@media(max-width:900px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.hero{padding:24px}.hero-mark{display:none}.metrics{gap:9px}.metric{padding:13px}.metric strong{font-size:20px}.quick-grid{gap:8px}.quick-grid button{padding:13px}.live-preview{grid-template-columns:1fr;gap:0}.live-preview>div{padding:9px}.bars{gap:4px}.bar-item span{font-size:9px}.bar-item small{font-size:9px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}@media print{.hero,.quick-grid,.dashboard-chart,.metrics{break-inside:avoid}.btn{box-shadow:none!important}}

/* V7: professional login and password recovery */
.auth-layout{min-height:calc(100vh - 85px);display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,480px);align-items:center;gap:clamp(24px,5vw,95px);max-width:1150px;margin:auto;padding:48px 28px}.auth-intro{padding:30px 0}.auth-logo{width:68px;height:68px;border-radius:19px;display:grid;place-items:center;background:linear-gradient(135deg,#0d304c,#069b8e);color:white;font:800 25px Manrope;margin-bottom:32px;box-shadow:0 15px 30px #0a465d35}.auth-eyebrow,.auth-kicker{font-size:11px;font-weight:800;letter-spacing:2px;color:#0a8d80}.auth-intro h1{font:800 clamp(34px,4vw,56px)/1.12 Manrope;margin:20px 0;color:#102b45;letter-spacing:-1.7px}.auth-intro p{font-size:16px;line-height:1.8;color:#62798d;max-width:470px}.auth-points{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}.auth-points span{padding:9px 13px;background:white;border:1px solid #dce9ed;border-radius:20px;color:#206259;font-size:12px;font-weight:700}.auth-pro{width:100%;max-width:none;margin:0;padding:36px;box-shadow:0 22px 65px #143b5817;border-radius:23px}.auth-pro h1{font:800 27px Manrope;letter-spacing:-.8px;margin:12px 0}.auth-pro .tabs{margin:24px 0 15px}.auth-pro .tabs button{font-size:11px}.auth-main{width:100%;margin-top:18px!important;min-height:49px}.auth-footer{text-align:center;margin-top:16px}.auth-footer p{margin:12px 0 0}.password-actions{margin-top:7px;font-size:12px;color:#536d7d}.password-actions input{width:auto;min-height:0;vertical-align:middle}.auth-pro .field{margin:15px 0}@media(max-width:820px){.auth-layout{grid-template-columns:1fr;max-width:550px;gap:15px;padding:28px 16px}.auth-intro{padding:0}.auth-intro h1{font-size:29px;margin:10px 0}.auth-intro p,.auth-points{display:none}.auth-logo{width:46px;height:46px;font-size:17px;margin-bottom:12px}.auth-pro{padding:25px 19px}.auth-pro h1{font-size:23px}}

/* V7 brand identity — navy, orange and metallic silver */
:root{--navy:#071a31;--ink:#13253b;--teal:#f58216;--line:#dbe3ed;--muted:#63758a;--cb-navy:#071a31;--cb-teal:#ff8b18;--cb-border:#dbe3ed;--shadow:0 10px 32px #061b3212}
body{background:linear-gradient(145deg,#f4f7fb,#e9eef6)}
.top{background:linear-gradient(110deg,#041328,#102b4b 72%,#243a53);border-bottom:3px solid #f68a18}
.brand:before{background:linear-gradient(135deg,#ffad35,#ed7007);color:#08192e}
.brand small{color:#ffbd74}
.btn{background:linear-gradient(110deg,#e97609,#ff991e);color:#091b30;box-shadow:0 4px 12px #ed79052c}
.btn:hover:not(:disabled){background:#ffab37;box-shadow:0 8px 18px #ed790536}
.btn.secondary{background:#eef2f8;color:#19334f;border-color:#dce4ed}
.tabs button.active{background:#0c2543;color:white;border-bottom:2px solid #f68a18}
.pill{background:#fff1df;color:#99500d;border-color:#ffdfb9}
.kpi{background:linear-gradient(120deg,#fff4e6,#f3f6fb);border-color:#f1dfc8}
.pay>.row>b,.summary-line.total,.quick-grid span{color:#c9660a}
.hero{background:linear-gradient(110deg,#07192fdd,#07192fa8),url('brand-banner.png') center/cover no-repeat;border:1px solid #f38b1c80}
.hero p{color:#f5e9d9}.eyebrow{color:#ffb760}
.metric strong,.live-preview strong{color:#102640}.bar-fill{background:linear-gradient(0deg,#dd6b09,#ffab34)}
.auth-layout{max-width:1420px;min-height:calc(100vh - 85px);grid-template-columns:minmax(0,1.25fr) minmax(350px,470px);gap:clamp(24px,4vw,70px);padding:clamp(20px,4vw,55px);position:relative;isolation:isolate}
.auth-layout:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#04142be8 0%,#071b33b8 45%,#071b3399 100%),url('brand-banner.png') center/cover no-repeat;z-index:-1;border-radius:0 0 24px 24px}
.auth-intro{padding:clamp(12px,2vw,35px);color:white}.auth-logo{background:linear-gradient(135deg,#ffb743,#ed760a);color:#0a1d34;box-shadow:0 14px 32px #0005}
.auth-eyebrow,.auth-kicker{color:#f99b2e}.auth-intro h1{color:white;text-shadow:0 2px 20px #0009}.auth-intro p{color:#e0e8f2}.auth-points span{background:#071b35c7;border-color:#f7a04477;color:#fff}
.auth-pro{background:#fffffffa;border:1px solid #ffc57c;box-shadow:0 26px 75px #0006}.auth-pro h1{color:#10243e}.auth-main{background:linear-gradient(110deg,#f07a0b,#ffad34);color:#101d30}.auth-pro .link{color:#b45d0b}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid #ffac5277;border-color:#f48b19;box-shadow:0 0 0 3px #f58b181c}
@media(max-width:820px){.auth-layout{grid-template-columns:1fr;gap:12px;padding:20px 15px 35px}.auth-layout:before{background:linear-gradient(180deg,#06172be8,#081e37d6),url('brand-banner.png') center/cover no-repeat}.auth-intro{padding:8px}.auth-intro h1{font-size:28px}.auth-pro{padding:24px 18px}}
@media print{.auth-layout:before{display:none}}

/* Compact animated route selection — CargoBoss V7 */
.route-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 20px}
.route-option{position:relative;display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:56px;border:1px solid #dbe5ef;border-radius:12px;background:#fff;cursor:pointer;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease}
.route-option:hover{border-color:#f6a149;transform:translateY(-1px);box-shadow:0 5px 15px #f5821612}
.route-option:has(input:checked){border-color:#f58216;background:linear-gradient(135deg,#0b2545,#143c65);box-shadow:0 4px 16px #08213a2a,0 0 0 1px #f5821640}
.route-option input.route-toggle{position:absolute;opacity:0;width:20px;height:20px;margin:0;pointer-events:none}
.route-option .route-check{display:grid;place-items:center;flex:0 0 20px;width:20px;height:20px;border:1.5px solid #9aaabc;border-radius:5px;background:#fff;color:transparent;font-size:14px;font-weight:900;line-height:1;transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}
.route-option input:checked+.route-check{background:#0b2545;border-color:#ff941f;color:#ff941f;transform:scale(1.06)}
.route-option input:focus-visible+.route-check{outline:3px solid #ffbd74;outline-offset:3px}
.route-option .route-name{display:flex;flex-direction:column;gap:2px;color:#102b45;font-size:13px;font-weight:750;line-height:1.3}
.route-option .route-name small{font-size:11px;font-weight:500;color:#60758a}
@media(max-width:600px){.route-picker{grid-template-columns:1fr}.route-option{min-height:50px;padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.route-option,.route-check{transition:none!important}}

.route-option:has(input:checked) .route-name{color:#fff}
.route-option:has(input:checked) .route-name small{color:#c2d9ef}
.route-option:has(input:checked):hover{background:linear-gradient(135deg,#12365c,#1b4b79)}

/* CargoBoss V7 — FULL CORPORATE DARK THEME. Presentation only; payment logic unchanged. */
:root{color-scheme:dark;--navy:#071a31;--ink:#edf4ff;--teal:#ff951e;--line:#274663;--muted:#adc1d7;--shadow:0 12px 36px #0006;--cb-navy:#061528;--cb-teal:#ff941f;--cb-border:#2c4965}
html,body{background:#051222;color:#edf4ff}
body{background:radial-gradient(ellipse 65% 38% at 85% 0%,#173d65 0%,transparent 72%),linear-gradient(135deg,#06172d,#071321 65%,#0b2038);background-attachment:fixed}
.top{background:linear-gradient(95deg,#04101f,#092440 65%,#112f4c);border-bottom:2px solid #ff941f;box-shadow:0 8px 24px #0008}
.topin{max-width:1440px}.brand{color:#fff;text-shadow:0 2px 12px #0006}.brand:before{background:linear-gradient(135deg,#ffbd50,#ed7606);color:#071629}.brand small{color:#ffc27b}.topin .tiny{color:#d8e5f4}
.shell{max-width:1440px}.shell h1,.card h2,.pay h3{color:#fff}.muted,.tiny.muted{color:#adc1d7}
.card,.pay{background:linear-gradient(145deg,#0c2540,#071b32 78%);border:1px solid #294965;color:#edf4ff;box-shadow:0 12px 30px #0005}
.card h2,.card h3,.pay h3,.card b,.pay b{color:#f7faff}
.field span,.field label,label{color:#d7e7f8}
.field input,.field select,.field textarea,input,select,textarea{background:#091c31;color:#f4f8ff;border:1px solid #41607c;box-shadow:inset 0 1px 3px #0004;color-scheme:dark}
input::placeholder,textarea::placeholder{color:#9ab0c6}
.field input:focus,.field select:focus,.field textarea:focus,input:focus,select:focus,textarea:focus{border-color:#ff941f;box-shadow:0 0 0 3px #ff941f30;outline:none}
.btn{background:linear-gradient(115deg,#ffb035,#ff850d);color:#08192c;border-color:#ffb64b;font-weight:800}
.btn:hover:not(:disabled){background:linear-gradient(115deg,#ffc360,#ff9c2b);box-shadow:0 7px 18px #ff8c2145}
.btn.secondary{background:#112d4b;color:#f3f8ff;border-color:#416485}.btn.secondary:hover:not(:disabled){background:#1a3c5e}
.btn.ghost{background:#122f4c;color:#fff;border-color:#57708a}
.tabs{background:#091e35;border:1px solid #254561}.tabs button{color:#c8d9ed}.tabs button:hover:not(.active){background:#1a3958}.tabs button.active{background:linear-gradient(110deg,#ffac31,#e8750b);color:#081a2d;border-color:#f8a12c;box-shadow:0 3px 12px #ff8b1640}
.pill{background:#382a19;color:#ffc174;border-color:#9e5b1d}
.kpi,.metric,.live-preview,.quick-grid button{background:linear-gradient(140deg,#0e2b49,#102238);border:1px solid #2b4c69;color:#eaf3ff}
.kpi strong,.metric strong,.live-preview strong,.quick-grid b{color:#fff}.kpi span,.metric span,.live-preview span,.quick-grid small{color:#b5c9df}
.live-preview .preview-net{background:linear-gradient(110deg,#543214,#261e19);border:1px solid #bd6b19}.live-preview .preview-net strong{color:#ffb64a}
.route-option{background:linear-gradient(135deg,#0b2139,#0e2a48);border-color:#385878;box-shadow:0 2px 8px #0003}
.route-option:hover{border-color:#ffa62b;background:#153b60}
.route-option:has(input:checked){background:linear-gradient(115deg,#123d66,#071c34);border:1.5px solid #ff941f;box-shadow:0 0 0 1px #ff941f36,0 8px 24px #0005}
.route-option .route-check{background:#07192b;border-color:#7894b0}
.route-option input:checked+.route-check{background:#091d33;border-color:#ff941f;color:#ff941f}
.route-option .route-name,.route-option:has(input:checked) .route-name{color:#f4f8ff}.route-option .route-name small,.route-option:has(input:checked) .route-name small{color:#c2d6ec}
.route-subtotal{background:#102c48;color:#ffbb5a;border-color:#a15d22}
.tablewrap{border-radius:12px;border:1px solid #2c4b67;overflow:auto}
table{color:#e7f2ff}thead,th{background:#122f4d;color:#ffbf70}td,th{border-color:#2b4862}tbody tr:nth-child(even){background:#0d2945}tbody tr:hover{background:#163958}
.summary-line{border-color:#2b4862;color:#dceafa}.summary-line.total{color:#ffb448}
.pay>.row>b{color:#ffb448}
.hero{background:linear-gradient(105deg,#06182be8,#071a31b3),url('brand-banner.png') center/cover no-repeat;border:1px solid #d87c1e;box-shadow:0 12px 32px #0007}
.hero h1,.hero h2,.hero strong{color:#fff}.hero p{color:#e2ebf6}.eyebrow,.eyebrow.dark,.auth-kicker,.auth-eyebrow{color:#ffad45}
.quick-grid button:hover{background:#1b3f61;border-color:#ff941f}.quick-grid span{color:#ff9d2c}
.bar-track{background:#1b3a58}.bar-fill{background:linear-gradient(0deg,#e9780c,#ffb342)}
.auth-layout:before{background:linear-gradient(90deg,#041124e6 0%,#071a31b9 52%,#06162bc9 100%),url('brand-banner.png') center/cover no-repeat}
.auth-pro{background:linear-gradient(150deg,#102e4bfa,#071b31fc);border:1px solid #ec912f;box-shadow:0 24px 75px #0009}.auth-pro h1{color:#fff}.auth-intro h1{color:#fff}.auth-intro p{color:#dce9f6}.auth-pro .link{color:#ffbb69}.auth-footer p{color:#bbd0e4}
.auth-pro .tabs{background:#071a2f}.auth-pro .tabs button{color:#dceafa}.auth-pro .tabs button.active{color:#071629}
.auth-points span{background:#071b35df;border-color:#ef922f8c;color:#fff}
.approval,.payment-record{border-color:#35536e}
@media(max-width:650px){.shell{padding:20px 12px 50px}.card{padding:18px 14px}.tabs{width:100%}.tabs button{padding:9px 11px}.route-picker{gap:8px}}
@media print{:root{color-scheme:light}html,body{background:white!important;color:#111!important}.card,.pay{background:white!important;color:#111!important;box-shadow:none!important;border-color:#bbb!important}.card *, .pay *{color:#111!important}table{color:#111!important}thead,th{background:#eee!important;color:#111!important}tbody tr:nth-child(even){background:#f5f5f5!important}.top,.tabs,.no-print{display:none!important}}
/* CargoBoss V7 - gestión de paquetes fallidos */
.failed-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-top:14px}
.failed-gallery img{width:100%;height:170px;object-fit:cover;border:1px solid #f58216;border-radius:12px}
.failed-row[hidden]{display:none}
#failedPackageForm input[type=file]{border:1px dashed #f58216;padding:12px;border-radius:10px;max-width:100%}

/* Calendario de descansos */
.rest-calendar{margin:18px 0}.rest-weekdays,.rest-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.rest-weekdays{text-align:center;margin-bottom:8px;color:#a7bdd4;font-size:12px}.rest-day{min-height:72px;padding:8px 3px;border:1px solid #1c7a4e;border-radius:10px;background:linear-gradient(135deg,#0d342e,#102b4b);color:#e9fff1;cursor:pointer;transition:transform .18s,border-color .18s,box-shadow .18s}.rest-day strong{display:block;font-size:17px}.rest-day small{display:block;font-size:10px;overflow-wrap:anywhere}.rest-day:not(:disabled):hover{transform:translateY(-2px);border-color:#f58216;box-shadow:0 4px 16px #f5821644}.rest-day:disabled{cursor:default;opacity:.85}.rest-day.rest-pending{background:#48321c;border-color:#f58216;color:#ffcf8a}.rest-day.rest-approved{background:#123d57;border-color:#3da6ff}.rest-day.rest-occupied,.rest-day.rest-rejected{background:#421f2a;border-color:#a13a43;color:#ffd0d0}.rest-day.rest-selected{outline:2px solid #f58216;outline-offset:2px}@media(max-width:600px){.rest-days,.rest-weekdays{gap:3px}.rest-day{min-height:57px;padding:4px 1px}.rest-day small{font-size:8px}}

.payment-indicators{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 20px;align-items:center}
.payment-indicators span{padding:9px 14px;border-radius:12px;background:#edf1f5;font-weight:700}
.payment-indicators .payment-loaded{color:#12683d;background:#e5f6eb}
.payment-indicators .payment-missing{color:#ad2430;background:#fff0f0}
.payment-empty{border:1px dashed #dc8e8e;border-radius:14px;padding:20px;background:#fffafa}
#selectedPayment .pay{margin:12px 0}

#restRequestDate{max-width:340px}#restSubmitError{margin:10px 0}#requestRest{margin-top:12px}.rest-day.rest-selected{outline:3px solid #ff8b20!important;outline-offset:2px}

/* CargoBoss V15: branded PWA, preserving all original workflows and database */
:root{--cb-orange:#ff8c19;--cb-gold:#ffb74a;--cb-deep:#06162c;--cb-sky:#28b6d4}
body{background:radial-gradient(ellipse 70% 32% at 100% 0%,#e8f3fa 0%,transparent 75%),#f2f5f9}
.top{background:linear-gradient(112deg,#04162b 0%,#0b284a 60%,#113f60 100%);border-bottom:3px solid #fa8c22}
.topin{min-height:84px}.brand{display:flex;align-items:center;gap:13px;font-family:Manrope,sans-serif;letter-spacing:1.3px;font-weight:800}
.brand:before{display:none}.cb-brand-logo{width:70px;height:65px;object-fit:cover;object-position:center;border-radius:15px;background:#06162c;border:1px solid #ffb14a66;box-shadow:0 6px 22px #0004}
.brand small{margin:4px 0 0;color:#ffb86b;letter-spacing:1.5px}
.hero{background:linear-gradient(110deg,#04162b 0%,#0d3254 62%,#124766 100%);border:1px solid #ffffff1f;border-bottom:4px solid #ff922a;box-shadow:0 20px 35px #09284722}
.hero:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 65%,#ff8d1d11)}
.eyebrow{color:#ffbd70}.eyebrow.dark{color:#c16a16}.hero-mark{color:#ff9a27;opacity:.55}
.btn:not(.secondary):not(.ghost):not(.danger){background:linear-gradient(115deg,#fa8719,#ffad37);color:#13263a;box-shadow:0 6px 15px #fc922b35}
.btn:not(.secondary):not(.ghost):not(.danger):hover{background:linear-gradient(115deg,#ff9b30,#ffc15d)}
.tabs{background:#e5ecf4}.tabs button.active{background:linear-gradient(115deg,#0b2948,#164c6b);border-bottom:2px solid #ff9629}
.metric{border-top:3px solid #ff9a2d}.metric strong{color:#0a2c4e}
.card{border-radius:20px}.card h2{color:#0a2d4d}.kpi{background:linear-gradient(115deg,#fff7ed,#eef5fc);border-color:#f5e4d0}
.pill{background:#fff3e5;color:#a4550e;border-color:#ffdbb1}
@media(max-width:540px){.topin{min-height:72px}.cb-brand-logo{width:51px;height:49px;border-radius:11px}.brand{font-size:16px;gap:9px;letter-spacing:.5px}.brand small{font-size:7px;letter-spacing:.55px;margin:2px 0 0}.hero{padding:23px 21px}.tabs{display:flex;overflow-x:auto;flex-wrap:nowrap;justify-content:flex-start;width:100%;scrollbar-width:thin}.tabs button{flex:0 0 auto;white-space:nowrap;min-height:43px;padding:9px 12px}.card{padding:19px 16px}.shell{padding:16px 12px 55px}}
@media(display-mode:standalone){.top{padding-top:env(safe-area-inset-top)}.shell{padding-bottom:calc(65px + env(safe-area-inset-bottom))}}

/* CargoBoss V16 — contrast fix. Preserve existing dark corporate design. */
:root{color-scheme:dark;--ink:#edf4ff;--muted:#adc1d7}
html,body{background:#051222;color:#edf4ff}
.shell h1,.shell>.row h1{color:#f7fbff!important}
.shell>.row p,.shell>.row .muted{color:#bfd1e7!important}
.tabs{background:#0c2946!important;border:1px solid #466482!important}
.tabs button{color:#e0edff!important;background:transparent}
.tabs button:hover:not(.active){background:#244b70!important;color:#fff!important}
.tabs button.active{background:linear-gradient(115deg,#ffb13e,#ef810e)!important;color:#081a2d!important;border:1px solid #ffbb60!important}
.metric,.kpi,.live-preview,.quick-grid button{background:linear-gradient(140deg,#0e2b49,#102238)!important;border:1px solid #345877!important;color:#edf6ff!important}
.metric span,.metric small,.kpi span,.live-preview span,.quick-grid small{color:#c8d9ec!important}
.metric strong,.kpi strong,.live-preview strong,.quick-grid b{color:#fff!important}
.card,.pay{background:linear-gradient(145deg,#0c2540,#071b32 78%)!important;color:#eef6ff!important;border:1px solid #345471!important}
.card h1,.card h2,.card h3,.card b,.card strong,.pay h3{color:#fff!important}
.card .muted,.card p.muted,.card .tiny.muted{color:#bfd1e7!important}
.card .eyebrow,.card .eyebrow.dark,.eyebrow.dark{color:#ffb34f!important}
.hero{background:linear-gradient(110deg,#04162b 0%,#0d3254 62%,#124766 100%)!important;color:#fff!important}
.hero h1,.hero h2,.hero strong{color:#fff!important}
.hero p{color:#e0ebf7!important}
.summary-line{color:#e4eef9!important;border-color:#34516c!important}
.summary-line.total,.summary-line.total *{color:#ffb448!important}
.bar-item span{color:#fff!important}.bar-item small{color:#b9cee4!important}
.bar-track{background:#254563!important}.bar-fill{background:linear-gradient(0deg,#e9760b,#ffb13e)!important}
.quick-grid button{color:#f5faff!important}.quick-grid span{color:#ffac3b!important}
.pill{background:#493018!important;color:#ffce90!important;border-color:#b57330!important}
@media print{html,body{background:white!important;color:#111!important}.card,.pay,.metric{background:white!important;color:#111!important}.card *, .pay *, .metric *{color:#111!important}}


/* V17: CargoBoss cinematic mobile application. Existing functionality unchanged. */
:root{--cb-bg:#041121;--cb-panel:#0b223b;--cb-orange:#ff941f;--cb-gold:#ffbd55;color-scheme:dark}
html,body{background:#041121!important;color:#f2f7ff!important}
body{background:radial-gradient(ellipse at 90% 0%,#163d62 0%,transparent 44%),linear-gradient(135deg,#041121,#071b30 70%,#061426)!important}
.top{background:linear-gradient(105deg,#030c1b,#092341 66%,#10395b)!important;border-bottom:2px solid #ff982c!important}
.shell{max-width:1440px}.shell>.row:first-child{padding:8px 3px 12px}
.shell>.row h1{font-weight:800;letter-spacing:-1px;font-size:clamp(25px,3vw,35px)}
.card,.pay{background:linear-gradient(155deg,#0c2946,#071b30)!important;border:1px solid #2b4a69!important;box-shadow:0 16px 36px #0005!important}
.hero{border-radius:22px!important;border:1px solid #34536e!important;border-bottom:4px solid #ff941f!important;background:linear-gradient(105deg,#041426d9,#0c2b4bdb),url('brand-banner.png') center/cover!important}
.hero h2{color:#fff!important;text-shadow:0 2px 12px #0008}.hero p{color:#e0eaf7!important}
.tabs{border-radius:16px!important;padding:7px!important;background:#0a2038!important;border:1px solid #284969!important}
.tabs button{color:#dceaff!important;font-weight:800}.tabs button.active{background:linear-gradient(120deg,#ffb43e,#f58216)!important;color:#06172a!important;border-radius:11px!important;box-shadow:0 5px 16px #f28b2455!important}
.metric{border:1px solid #345775!important;border-top:3px solid #ff9a2e!important;background:linear-gradient(145deg,#0c2b4b,#0a2037)!important;border-radius:17px!important}.metric strong{color:white!important}
.quick-grid button{border-radius:15px!important;border:1px solid #355777!important}.quick-grid button:hover{border-color:#ff9c33!important}
.btn:not(.secondary):not(.ghost):not(.danger){background:linear-gradient(115deg,#ffad3c,#f58216)!important;color:#061629!important;font-weight:800}
.auth-layout{min-height:calc(100dvh - 90px);max-width:1350px;grid-template-columns:minmax(0,1.1fr) minmax(340px,460px);gap:clamp(20px,5vw,80px)}
.auth-layout:before{background:linear-gradient(95deg,#030d1de8,#06162dcc 58%,#05162bc4),url('brand-banner.png') center/cover!important}
.auth-intro{display:flex;flex-direction:column;justify-content:center}.auth-intro .auth-logo{width:110px;height:110px;border-radius:22px;background:url('cargoboss-logo-original.png') center/cover no-repeat!important;font-size:0;box-shadow:0 14px 42px #0009;border:1px solid #ffa73c88}
.auth-intro h1{font-size:clamp(36px,4.3vw,62px);line-height:1.07;color:white!important;text-shadow:0 4px 24px #000b}
.auth-intro p{color:#dce8f5!important}.auth-pro{background:linear-gradient(155deg,#102e4b,#071a30)!important;border:1px solid #a36d38!important;box-shadow:0 24px 80px #0009!important;border-radius:24px!important}
.auth-pro h1{color:#fff!important}.auth-pro .muted{color:#bcd0e5!important}.auth-pro .tabs{background:#071b32!important}.auth-pro .field span{color:#dbe9f9!important}.auth-pro .field input{background:#06172b!important;color:#fff!important;border:1px solid #3a5a79!important}
.auth-pro .auth-main{width:100%;min-height:52px;border-radius:12px;font-size:15px}.auth-pro .link{color:#ffb450!important}
.cb-splash{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at 50% 55%,#123b60,#041325 70%);color:#fff;transition:opacity .42s ease,visibility .42s ease}.cb-splash-out{opacity:0;visibility:hidden;pointer-events:none}
.cb-splash-sky{position:absolute;inset:0;background:linear-gradient(180deg,#061427b8,#041325b8),url('brand-banner.png') center/cover;opacity:.58;transform:scale(1.06);animation:cb-zoom 5s ease-out both}
.cb-splash-inner{position:relative;width:min(90vw,500px);text-align:center;padding:35px 14px}.cb-splash-logo{width:clamp(96px,21vw,150px);height:clamp(96px,21vw,150px);object-fit:cover;border-radius:28px;border:2px solid #ffb4499c;box-shadow:0 18px 48px #0009;animation:cb-pop .8s both}.cb-splash-kicker{font-size:11px;letter-spacing:3px;color:#ffb34c;font-weight:900;margin-top:20px}.cb-splash h1{font-size:clamp(29px,7vw,47px);line-height:1.14;letter-spacing:-1px;margin:15px 0 32px;text-shadow:0 5px 18px #000}.cb-splash h1 em{font-style:normal;color:#ffab36}.cb-splash p{font-size:13px;color:#d4e3f5;letter-spacing:.4px}
.cb-road{height:86px;position:relative;border-bottom:3px solid #ff9a2d;margin:0 0 20px;overflow:hidden}.cb-road:before{content:'';position:absolute;inset:auto 0 5px;height:3px;background:repeating-linear-gradient(90deg,#fff7 0 25px,transparent 25px 48px)}.cb-truck{position:absolute;bottom:8px;left:-20%;font-size:65px;line-height:1;filter:drop-shadow(0 5px 12px #000b);animation:cb-drive 2.15s cubic-bezier(.12,.5,.36,1) forwards}.cb-splash-load{height:5px;border-radius:10px;background:#274767;overflow:hidden}.cb-splash-load span{display:block;height:100%;width:100%;background:linear-gradient(90deg,#e9760b,#ffcc69);transform-origin:left;animation:cb-fill 2.1s ease both}
@keyframes cb-drive{0%{left:-20%;transform:translateY(3px)}70%{left:46%;transform:translateY(-2px)}100%{left:65%;transform:translateY(0)}}@keyframes cb-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes cb-pop{from{opacity:0;transform:translateY(18px) scale(.9)}to{opacity:1;transform:none}}@keyframes cb-zoom{from{transform:scale(1.12)}to{transform:scale(1)}}
@media(max-width:820px){.auth-layout{grid-template-columns:1fr;padding:15px 14px 40px;gap:12px}.auth-intro{align-items:center;text-align:center;padding:12px 0}.auth-intro .auth-logo{width:75px;height:75px;margin:0 auto 9px}.auth-intro h1{font-size:29px;margin:9px 0}.auth-pro{padding:22px 18px}.auth-intro p,.auth-points{display:none}}
@media(max-width:540px){.topin{min-height:66px}.brand{font-size:15px}.cb-brand-logo{width:47px;height:47px}.shell{padding:16px 12px 60px}.hero{padding:24px 20px!important}.tabs{gap:5px}.tabs button{padding:10px 12px}.metrics{gap:9px}.metric{padding:14px!important}.metric strong{font-size:19px!important}}
@media(prefers-reduced-motion:reduce){.cb-truck,.cb-splash-load span,.cb-splash-logo,.cb-splash-sky{animation:none!important}.cb-splash{transition:none!important}}
