/* Approved direction 04: pale steel blue, white surfaces, Tre-Log green. */
:root{--navy:#233c4b;--green:#277e62;--border:#d5e1e8;--muted:#526879;--radius:12px;--shadow:0 2px 8px #233c4b04;background:#edf2f5;color:var(--navy);font-size:16px;color-scheme:light}
.topbar{position:fixed;top:0;left:0;width:192px;height:94px;padding:8px;background:#fff;z-index:30;justify-content:center;border-right:1px solid var(--border)}
.brand img{width:180px;height:49px;border-radius:0;object-fit:contain}
.sidebar{top:94px;width:192px;padding:16px 8px;background:#d9e5ec;border-right:1px solid #c8d8e2}
.sidebar nav{flex:1;gap:10px}.nav-link{padding:15px 12px;border-radius:9px;font-size:16px;gap:10px;color:#233c4b}.nav-link svg{width:24px;height:24px}.nav-link:hover{background:#cbdce5}.nav-link[aria-current=page]{background:var(--green);color:white}.nav-link[data-nav=utenti]{margin-top:auto}
.account{border-top:1px solid #b4c9d5;margin:18px 10px 0;padding-top:16px;display:flex;flex-wrap:wrap;gap:10px}.account-name{color:var(--navy);text-align:left;font-size:14px;line-height:1.4;padding:4px 0;max-width:154px}.account-name small{color:#526879;font-size:12px}.header-button{color:var(--navy);background:transparent;border-color:#aebfca;font-size:13px;min-height:32px;padding:5px 12px}.header-button:hover{background:#cbdce5}
main{margin-left:192px;min-height:100vh;max-width:none;padding:0 18px 28px;scroll-margin-top:0}
.page-head{min-height:180px;margin:0 -18px 16px;padding:30px 30px;align-items:flex-start;background-color:#698197;background-image:linear-gradient(90deg,#304d68e8 0%,#304d68b5 38%,#304d6810 70%),url('/sede-trelog.jpg');background-size:cover;background-position:center 80%;color:white;gap:24px}.page-head>div:first-child{min-width:0;max-width:76%}.page-head h1{font-size:40px;line-height:1.15;letter-spacing:-.7px;overflow-wrap:anywhere;margin:8px 0 10px}.page-head p{color:#fff;font-size:17px;line-height:1.5;max-width:70ch;overflow-wrap:anywhere}.page-head .actions{justify-content:flex-end;flex-shrink:0;gap:8px}.page-head .actions .button:not(.primary){background:#ffffffed;font-size:13px;min-height:36px}.page-head .actions:has(#save-trip){flex-direction:column;align-items:flex-end}
.card{border-radius:var(--radius);margin-bottom:16px}.card-head{padding:18px 20px;gap:12px}.card-head h2{font-size:24px;letter-spacing:-.4px}.card-body{padding:20px}.grid{gap:16px 24px}button,.button{font-size:15px;min-height:44px;border-radius:8px}button.primary:hover,.button.primary:hover{background:#1c644d}label,.field-label{font-size:14px}.field{gap:6px}input,select,textarea{font-size:16px;min-height:42px;border-radius:6px;border-color:#afc3d1}input:disabled,textarea:disabled{opacity:1}textarea{min-height:66px}.stats{gap:14px;margin-bottom:18px}.stat{border-radius:12px;padding:20px}.stat strong{font-size:28px}.stat span{font-size:13px}.filterbar{padding:18px 20px}.filterbar label{font-size:13px}.filterbar button{align-self:flex-end}.table-wrap{border-radius:0 0 12px 12px}th{background:#eaf0f4;color:#3f596c}td,th{padding:15px 18px}td{background:white}.selected td{background:#e4f3eb}
.trip-layout{display:grid;grid-template-columns:minmax(0,2.05fr) minmax(320px,1fr);align-items:stretch;gap:16px}.trip-main{min-width:0}.trip-main>.card:last-child{margin-bottom:0}.trip-form .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 20px}.trip-form .field{display:flex;grid-column:span 2;gap:6px}.trip-form .field.full{grid-column:1/-1}.trip-form .field:has(#pallets),.trip-form .field:has(#proposedPrice){grid-column:span 1}.trip-main .card:has(.trip-form) .card-head{border-bottom:0;padding-bottom:12px}.trip-main .card:has(.trip-form) .card-body{padding-top:0}.required-note{font-size:11px}.quote-table{font-size:16px}.quote-table th{font-size:13px;padding:12px 10px}.quote-table td{padding:10px}.quote-table .quote-radio{width:38px;padding-left:16px}.quote-table .quote-name{min-width:130px}.quote-radio input{width:20px;height:20px;cursor:pointer;outline-offset:4px}.quote-actions{display:flex;gap:3px}.quote-actions button{min-width:32px;min-height:36px;padding:6px;border-color:transparent}.quote-actions button:hover{border-color:#99b7a9}.quote-actions svg,.offer-history svg{width:20px;height:20px;flex:none}#add-quote{font-size:14px;border-color:var(--green);color:var(--green);min-height:40px;padding:8px 12px}
.offer-summary{padding:22px 20px;margin-bottom:0;min-width:0}.offer-summary>h2{font-size:25px;letter-spacing:-.4px}.offer-carrier{display:flex;gap:14px;align-items:center;padding:26px 0;border-bottom:1px solid #cbdbe5}.offer-carrier h3{font-size:23px;margin:0;line-height:1.25;overflow-wrap:anywhere}.offer-icon{width:48px;height:48px;flex:none;display:grid;place-items:center;background:var(--green);color:white;border-radius:9px}.offer-icon svg{width:28px;height:28px}.offer-route{font-size:17px;line-height:1.6;padding:24px 0;margin:0;border-bottom:1px solid #cbdbe5;overflow-wrap:anywhere}.offer-route span{padding:0 8px}.offer-amounts{margin:16px 0 24px;font-size:17px}.offer-amounts>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;align-items:center}.offer-amounts dt{min-width:0}.offer-amounts dd{margin:0;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.offer-amounts .offer-margin{border-top:1px solid #cbdbe5;border-bottom:1px solid #cbdbe5;margin-top:8px;padding:20px 0;font-size:22px;font-weight:700}.offer-margin dd{font-size:28px;border-radius:8px;background:#e2f3e9;padding:4px 10px}.offer-margin:has(.negative) dd{background:#fff0ef}.offer-summary #confirm-trip{width:100%;min-height:52px;font-size:19px}.offer-hint{font-size:15px;color:var(--muted);font-style:italic;line-height:1.5;margin:16px 0 24px}.offer-history{margin-top:24px}.offer-history button{color:var(--green);padding:6px 0;text-decoration:underline;text-underline-offset:4px;white-space:normal;justify-content:flex-start}.offer-empty{padding:36px 0;color:var(--muted);line-height:1.6}.offer-empty>svg{width:44px;height:44px;color:#729286;margin-bottom:16px}.offer-empty p{margin-bottom:8px}.trip-actions{margin-top:18px}.trip-actions button{font-size:13px;min-height:36px}
body:has(#shell[hidden]){background:linear-gradient(90deg,#edf2f5f5,#edf2f5dc),url('/sede-trelog.jpg') center/cover fixed}body:has(#shell[hidden]) .topbar{position:static;width:100%;height:104px;background:#ffffffed;border:0}body:has(#shell[hidden]) .brand img{width:220px;height:60px}.auth-card{margin:50px auto;border-radius:14px;box-shadow:0 12px 40px #233c4b10}
@media(min-width:1700px){main{padding-left:28px;padding-right:28px}.page-head{margin-left:-28px;margin-right:-28px}.trip-layout{grid-template-columns:minmax(0,2.3fr) minmax(360px,1fr)}.trip-form .grid{gap:18px 24px}.card-body{padding:24px}}
@media(min-width:761px) and (max-width:1200px){.trip-layout{grid-template-columns:minmax(0,1fr)}.offer-summary{display:block}.offer-summary>h2{font-size:24px}.offer-carrier{padding:18px 0}.offer-route{padding:16px 0}.offer-amounts{max-width:550px}.offer-summary #confirm-trip{width:auto;min-width:260px}.offer-history{margin-top:12px}.page-head h1{font-size:32px}.page-head>div:first-child{max-width:65%}.page-head .actions{flex-shrink:1}}
@media(max-width:760px){.topbar{position:static;width:100%;height:76px;padding:12px;background:#fff;border:0}.brand img{width:180px;height:49px}.sidebar{position:static;width:auto;padding:8px 12px;border-right:0}.sidebar nav{flex-direction:row;gap:4px}.nav-link{font-size:14px;padding:12px 10px;gap:7px}.nav-link svg{width:19px;height:19px}.nav-link[data-nav=utenti]{margin:0}.account{margin:8px 0 0;padding:8px 2px 0;flex-wrap:nowrap;justify-content:space-between;gap:12px}.account-name{max-width:none;font-size:13px;display:flex;gap:8px;align-items:center}.account-name small{margin:0;font-size:11px}.header-button{min-height:36px}.page-head{min-height:176px;padding:22px 16px;margin:0 -14px 14px;display:flex;flex-direction:column;gap:18px;background-image:linear-gradient(90deg,#304d68ed,#304d68a6),url('/sede-trelog.jpg');background-position:center 80%}.page-head>div:first-child{max-width:100%}.page-head h1{font-size:29px;margin:0 0 8px}.page-head p{font-size:14px}.page-head .actions,.page-head .actions:has(#save-trip){flex-direction:row;align-items:stretch;justify-content:flex-start;width:100%;flex-wrap:wrap}.page-head .actions>*{flex:1;font-size:13px;padding:10px}.page-head .actions .button:not(.primary){font-size:12px}main{margin:0;padding:0 14px 24px}.trip-layout{grid-template-columns:minmax(0,1fr);gap:14px}.card-head{padding:18px 16px}.card-head h2{font-size:22px}.card-body{padding:18px 16px}.trip-form .grid{grid-template-columns:1fr;gap:16px}.trip-form .field,.trip-form .field.full,.trip-form .field:has(#pallets),.trip-form .field:has(#proposedPrice){grid-column:1}.required-note{font-size:11px}.quote-table td{padding:8px}.quote-table .quote-radio{padding-left:4px;width:auto}.quote-table .quote-name{min-width:0}.quote-table tr{padding:12px 8px}.quote-table td:last-child{padding-top:12px}.quote-actions button{min-width:44px;min-height:44px}.quote-actions{gap:8px}.offer-summary{padding:20px 18px}.offer-summary>h2{font-size:24px}.offer-carrier h3{font-size:22px}.offer-route{font-size:16px}.offer-amounts{font-size:16px}.offer-margin dd{font-size:25px}.offer-summary #confirm-trip{font-size:18px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat{padding:16px 12px}.stat strong{font-size:21px}.stat span{font-size:11px}.auth-card{margin:30px 16px}.filterbar{padding:16px}.trip-actions{gap:8px}.trip-actions button{min-height:42px}}

@media(min-width:1201px){.card-head h2{font-size:26px}.offer-summary>h2{font-size:28px}#save-trip{font-size:17px}.page-head p{font-size:19px}}
@media(max-width:760px){.quote-table tr.selected,.quote-table tr.selected td{background:#e4f3eb}.quote-table tr:not(.selected),.quote-table tr:not(.selected) td{background:white}}

/* Dates and pricing workflow, version 2.2. */
@media(min-width:761px){.trip-form .field:has(#date),.trip-form .field:has(#deliveryDate){grid-column:span 1}.trip-form .field:has(#proposedPrice){grid-column:span 2}.trip-form .field:has(#vehicle),.trip-form .field:has(#pallets){grid-column:span 1}}
.offer-summary .field label{line-height:1.5}.offer-summary input{font-size:20px;font-variant-numeric:tabular-nums}.offer-summary .offer-amounts{margin-bottom:18px}.quote-table .quote-name{width:55%}
@media(max-width:760px){.quote-table .quote-name{width:auto}.quote-table td.num{grid-column:2/-1}.trip-form .field:has(#proposedPrice){grid-column:1}}
