:root{--red:#9e1108;--ink:#1b1b1d;--muted:#656569;--line:#e2e2e4;--bg:#f5f5f6;--green:#217453;--amber:#8d5b08}*{box-sizing:border-box}body{margin:0;font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button,.button{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:8px;padding:10px 16px;font-weight:650;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:hover,.button:hover{background:#eef1f3}button:disabled{cursor:wait;opacity:.55}.primary{background:var(--red);border-color:var(--red);color:white}.primary:hover{background:#7e0c06}.dark{background:var(--ink);color:white;border-color:var(--ink)}.danger{color:var(--red)}.small{font-size:14px;padding:7px 11px}.shell{display:grid;grid-template-columns:218px 1fr;min-height:100vh}.sidebar{background:#000;color:#c9c9cd;padding:30px 20px;display:flex;flex-direction:column;gap:35px;position:sticky;top:0;height:100vh}.brand{font-size:27px;font-weight:850;letter-spacing:2px;color:white;line-height:1.1}.brand span{display:block;font-size:12px;font-weight:500;letter-spacing:3px;margin-top:8px;color:#b8c5ce}.sidebar nav{display:grid;gap:8px}.sidebar nav button{text-align:left;justify-content:flex-start;border:0;background:transparent;color:#c4c4c8;padding:13px 14px}.sidebar nav button.active{background:#252525;color:white;box-shadow:inset 3px 0 #c92b20}.sidebottom{margin-top:auto;font-size:14px}.sidebottom strong{display:block;color:white;margin-bottom:8px}main{padding:30px 38px;min-width:0;max-width:1600px;width:100%;margin:auto}.topline{display:flex;justify-content:space-between;color:var(--muted);font-size:14px;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:28px}.pagehead{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:25px}h1{font-size:30px;letter-spacing:-.8px;line-height:1.2;margin:0 0 8px}h2{font-size:20px;margin:0 0 16px}h3{font-size:17px;margin:0 0 8px}p{margin:6px 0 16px}.muted{color:var(--muted)}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.kpi{background:white;border:1px solid var(--line);border-radius:10px;padding:20px}.kpi span{font-size:14px;color:var(--muted)}.kpi strong{display:block;font-size:30px;letter-spacing:-1px;margin-top:8px}.kpi:first-child{border-top:3px solid var(--red)}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:20px}.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.toolbar input{flex:1;min-width:180px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px;display:flex;flex-direction:column;gap:12px}.row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.actions{display:flex;gap:8px;flex-wrap:wrap}.tag{font-size:13px;font-weight:650;border-radius:5px;background:#edf0f3;padding:5px 9px;display:inline-block}.tag.preparar{background:#fff1d6;color:#865800}.tag.carregado,.tag.entregue{background:#e3f2ea;color:#1d684c}.tag.saiu{background:#e5efff;color:#22528c}.tag.ocorrencia{background:#fee9e9;color:#9e1108}.meter{height:7px;border-radius:5px;background:#e9edef;overflow:hidden}.meter>span{display:block;height:100%;background:var(--green)}.address{min-height:48px;color:var(--muted);font-size:15px}.empty{padding:48px 25px;text-align:center;border:1px dashed #bbc7cf;border-radius:12px;background:white}.empty h2{margin:12px 0 6px}.empty p{max-width:480px;margin:0 auto 22px}.empty .symbol{width:56px;height:56px;border-radius:14px;background:#f7e7e8;color:var(--red);font-size:32px;margin:auto}.notice{background:#fff4dd;border-left:3px solid #c48a19;padding:12px 16px;font-size:14px;border-radius:4px;margin:12px 0}.good{background:#eaf4ef;border-color:var(--green)}label{display:block;font-size:14px;font-weight:650;margin-bottom:6px}input:not([type=checkbox]),select,textarea{border:1px solid #bbc6ce;padding:10px 12px;border-radius:7px;background:white;color:var(--ink);max-width:100%}input[type=checkbox]{width:19px;height:19px;accent-color:var(--red);vertical-align:middle}label input, label select,label textarea{display:block;width:100%;margin-top:6px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.fields .wide{grid-column:1/-1}.checklabel{display:flex;gap:10px;align-items:center;font-size:15px}.checklabel input{display:inline-block;width:19px!important;margin:0}dialog{border:1px solid var(--line);border-radius:14px;padding:26px;width:min(960px,95vw);max-height:92vh;color:var(--ink);box-shadow:0 20px 100px #14242e44}dialog::backdrop{background:#15232d99}dialog .foot{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;position:sticky;bottom:-26px;background:white;padding:15px 0}.tablewrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:left;color:var(--muted);font-size:13px;background:#f5f7f8}td,th{padding:12px 10px;border-bottom:1px solid var(--line)}td input[type=number]{width:90px}td:first-child{min-width:200px}.map{height:420px;border-radius:10px;border:1px solid var(--line);margin:16px 0;z-index:0}.maplayout{display:grid;grid-template-columns:280px 1fr;gap:20px}.maplayout .map{height:560px;margin:0}.stop{border-bottom:1px solid var(--line);padding:13px 0}.stop strong{display:block}.login{max-width:460px;margin:10vh auto;background:white;padding:36px;border:1px solid var(--line);border-radius:14px}.login .brand{color:var(--red);margin-bottom:30px}.login label{margin:16px 0}.login button{width:100%;margin-top:10px}#toast{display:none;position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90vw;background:#181818;color:white;padding:14px 22px;border-radius:9px;z-index:2000;box-shadow:0 6px 25px #0003}.error{color:#9e1108}.weight{font-weight:700}.history{font-size:14px}.history div{padding:12px 0;border-bottom:1px solid var(--line)}.history small{color:var(--muted)}a{color:#9e1108}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #377fab;outline-offset:3px}@media(max-width:1000px){main{padding:24px}.shell{grid-template-columns:180px 1fr}.sidebar{padding:25px 12px}.kpis{grid-template-columns:1fr 1fr}.grid{grid-template-columns:1fr}.maplayout{grid-template-columns:1fr}.maplayout .map{height:400px}}@media(max-width:640px){.shell{display:block}.sidebar{height:auto;position:static;padding:18px;gap:18px}.brand{font-size:22px}.brand span{display:none}.sidebar nav{display:flex;gap:4px;overflow:auto}.sidebar nav button{font-size:14px;padding:10px}.sidebottom{display:none}main{padding:20px 16px}.topline{margin-bottom:22px}.pagehead{align-items:flex-start;flex-direction:column}h1{font-size:26px}.kpi{padding:15px}.kpi strong{font-size:26px}.fields{grid-template-columns:1fr}.panel{padding:18px}dialog{padding:18px}.map{height:340px}.pagehead .actions{width:100%}.pagehead .primary{flex:1}}

/* Identidade Imper: arquivo original, proporção preservada. */
.brandlockup{display:flex;flex-direction:column;align-items:center;gap:12px}.brandlockup>span,.loginbrand>span{font-size:12px;letter-spacing:4px;font-weight:650;color:#eee}.brandmark{position:relative;overflow:hidden;width:155px;height:172px;flex-shrink:0;background:#000}.brandmark img{position:absolute;width:550px;height:auto;max-width:none;left:50%;top:50%;transform:translate(-50%,-50%)}.sidebar{padding-top:22px;gap:28px}.sidebar nav button{border-radius:6px}.sidebar .sidebottom{border-top:1px solid #333;padding-top:20px}.login{padding-top:0;overflow:hidden}.loginbrand{margin:0 -36px 28px;padding:24px;background:#000;display:flex;flex-direction:column;align-items:center;gap:12px}.loginbrand .brandmark{width:155px;height:175px}.kpi,.card,.panel{box-shadow:0 2px 4px #00000003}.kpi:first-child{border-top-color:var(--red)}.meter>span{background:var(--red)}.pagehead .primary{box-shadow:0 4px 10px #9e110814}button:hover{border-color:#bbb}.primary:hover{border-color:#7e0c06}.primary:focus-visible{outline-color:#1b1b1b}.sidebar nav button:focus-visible{outline-color:#fff}
@media(max-width:640px){.sidebar{padding:12px 16px 16px;gap:12px}.brandlockup{flex-direction:row;gap:12px}.brandmark{width:57px;height:66px}.brandmark img{width:210px}.brandlockup>span{font-size:12px;letter-spacing:3px}.sidebar nav button{white-space:nowrap;flex-shrink:0;font-size:14px;padding:10px}.sidebar nav{scrollbar-width:thin}.login{margin:5vh 16px}.loginbrand .brandmark img{width:550px}}

@media(max-width:640px){.sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible}.sidebar nav button{display:block;white-space:normal;padding:10px 5px;line-height:1.35}.toolbar input{flex-basis:100%}}
/* Imper 2.0: mesa de operação, hierarquia e leitura rápida. */
:root{--bg:#f5f5f5;--ink:#202023;--muted:#707074;--line:#e5e5e7}
.shell{grid-template-columns:222px minmax(0,1fr)}main{padding:0 36px 26px;max-width:1700px}.sidebar{padding:22px 16px;height:100vh;gap:0}.brandlockup{padding-bottom:28px;gap:10px}.brandlockup .brandmark{width:110px;height:125px}.brandlockup .brandmark img{width:395px}.brandlockup>span{font-size:10px;letter-spacing:2.5px}.navcaption{font-size:11px;letter-spacing:1.5px;color:#858589;margin:12px 12px}.sidebar nav{gap:6px}.sidebar nav button{gap:13px;padding:13px 12px;font-size:14px;line-height:1.3}.sidebar nav button small{margin-left:auto;background:#3c3c3c;padding:2px 6px;border-radius:4px}.navicon{width:21px;height:21px;flex-shrink:0;vertical-align:middle}.sidebottom{font-size:12px!important;line-height:1.8}.edition{display:block;font-size:10px;letter-spacing:2px;color:#888;margin-bottom:8px}.sidebottom strong{font-size:14px}.topline{height:83px;margin-bottom:32px;align-items:center;padding:0;font-size:13px}.breadcrumb{font-size:11px;letter-spacing:1px;color:#999}.toptools{display:flex;align-items:center;gap:10px}.toptools #connection{font-size:12px;color:#397659;padding-right:14px}.toptools #connection.offline{color:#9e1108}.avatar{background:#eee;border:1px solid #ddd;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;color:#444;font-weight:700}.username{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pagehead{margin-bottom:28px}.pagehead h1{font-size:29px;letter-spacing:-1px}.pagehead .muted{font-size:14px}.primary{background:#9e1108}.panel,.card{border-radius:9px}.kpis{gap:16px}.prokpis .kpi{display:block;text-align:left;cursor:pointer;font-weight:400;padding:22px;border-top:1px solid var(--line)}.prokpis .kpi:first-child{border-top:1px solid var(--line);box-shadow:inset 0 3px #9e1108}.prokpis .kpi strong{font-size:36px;margin:10px 0 4px}.prokpis .kpi small{color:#929297;font-size:12px}.prokpis .kpi:hover{background:#fff;border-color:#aaa}.overviewgrid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:22px}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.sectionhead h2{margin:4px 0 0}.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:750;color:#999}.countpill{display:inline-block;background:#f4e4e2;border-radius:4px;color:#9e1108;padding:2px 6px;font-size:12px;vertical-align:middle}.attentionrow{display:flex;align-items:center;gap:14px;padding:18px 0;border-top:1px solid #eee}.ordermini{color:#8d2e28;background:#f8efee;font-size:12px;border:1px solid #f0d9d7;padding:8px;border-radius:5px}.grow{flex:1;min-width:0}.attentionrow strong,.attentionrow span,.tripstops strong,.tripstops small{display:block}.attentionrow span,.tripstops small{font-size:12px;color:var(--muted);margin-top:4px}.attentionrow strong{font-size:15px}.fleetitem{padding:18px 0;border-top:1px solid var(--line)}.fleetitem p{font-size:13px;margin:10px 0}.fleetitem .row strong{display:flex;align-items:center;gap:10px}.tripmini{font-size:12px;background:#f6f6f7;padding:10px;border-radius:4px;color:#777}.activitylist>div{display:flex;gap:24px;padding:13px 0;border-top:1px solid #eee;font-size:14px}.activitylist time{font-size:12px;color:#999;min-width:44px}.activitylist small{display:block;font-size:12px;color:#999;margin-top:3px}.calmempty{padding:28px;text-align:center;color:#777}.calmempty p{font-size:14px}.appfooter{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#999;margin-top:30px}.statusbar{display:flex;gap:4px;overflow:auto;margin-bottom:20px;scrollbar-width:thin}.statusbar button{white-space:nowrap;border:0;background:transparent;font-size:14px;font-weight:500;padding:10px 12px;color:#777}.statusbar button.chosen{background:#191919;color:white}.statusbar button span{font-size:11px;margin-left:5px;border-radius:4px;padding:2px 5px;background:#00000010}.statusbar button.chosen span{background:#ffffff25}.orderpanel{padding:20px}.orderstable{font-size:14px}.orderstable td:first-child{min-width:30px;width:30px;padding-right:0}.orderstable td{vertical-align:middle;padding:17px 10px}.orderstable td>strong,.orderstable td>small{display:block}.orderstable td>small{font-size:12px;color:#8c8c90;margin-top:6px}.orderstable .orderid{display:block;font-size:12px;color:#999;margin-bottom:4px}.orderstable .orderid small{font-size:9px;color:#9e1108}.orderstable .celladdress{display:block;max-width:260px;font-size:13px;line-height:1.5}.orderstable .meter{margin-top:9px;min-width:90px}.orderstable td:last-child button{margin:3px}.priority{display:inline-block;margin-top:6px;color:#9e1108;font-size:11px;font-weight:700}.selectionbar{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #eee;padding-top:18px;font-size:13px;color:#777}.selectionbar .primary{font-size:14px}.dispatchhead{display:flex;align-items:center;justify-content:space-between;gap:22px;background:#1a1a1c;color:#fff;padding:24px;border-radius:9px;margin-bottom:24px}.dispatchhead label{margin:0;min-width:240px;max-width:45%}.dispatchhead select{font-size:14px}.dispatchhead small{display:block;letter-spacing:1px;font-size:10px;color:#aaa}.dispatchhead strong{display:block;font-size:20px;margin-top:8px}.dispatchhead .error{color:#ffa899}.big{height:9px;margin-bottom:20px}.loadlines>label{display:flex;align-items:center;gap:16px;border-top:1px solid #eee;padding:14px 0;margin:0;font-size:14px}.loadlines>label>span{flex:1}.loadlines small{display:block;color:#999;font-size:12px;margin-top:4px}.loadlines input{max-width:95px;margin:0}.savebar{position:sticky;bottom:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 22px;border:1px solid #ddd;box-shadow:0 -4px 20px #00000008;background:#fff;border-radius:9px;font-size:13px;color:#777}.tripgrid{align-items:start}.tripcard{gap:15px;padding:24px}.tripcard h2{margin:0;font-size:24px}.tripcode{font-size:12px;text-transform:uppercase;letter-spacing:1px;color:#999}.tripcard>.muted{font-size:13px}.tripnumbers{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:6px 0}.tripnumbers strong{display:block;font-size:25px}.tripnumbers em{font-style:normal;font-size:13px;font-weight:400;color:#777}.tripnumbers small{font-size:11px;color:#888}.routebrief{background:#f6f6f6;font-size:12px;padding:12px;border-radius:6px;color:#777}.routebrief strong{color:#222;font-size:16px}.routebrief span{display:block;margin-top:5px}.tripstops>div{display:flex;gap:12px;padding:15px 0;border-top:1px solid #eee;align-items:center}.tripstops strong{font-size:14px}.stopnumber{width:25px;height:25px;border-radius:50%;background:#f1f1f2;display:grid;place-items:center;font-size:12px;color:#777;flex-shrink:0}.tripfooter{display:flex;gap:18px;align-items:center;border-top:1px solid #eee;padding-top:15px;font-size:12px}.tripfooter a{color:#555;text-decoration:none}.textbutton{border:0;background:none!important;padding:0;font-size:12px;font-weight:500;color:#555}.loginhint{font-size:12px;color:#999;margin:18px 0 0}.loginbrand>span{font-size:10px;letter-spacing:2px}.login h1{font-size:25px}.tag{white-space:nowrap}.steps{display:flex;gap:6px;margin-top:15px}.steps span{font-size:11px;flex:1;border-top:3px solid #ddd;padding-top:8px;color:#aaa}.steps .complete{border-color:#9e1108;color:#9e1108}
@media(min-width:1450px){.pagehead h1{font-size:32px}.kpi strong{font-size:40px}}@media(max-width:1150px){.overviewgrid{grid-template-columns:1fr}.toptools #connection{display:none}.dispatchhead{flex-wrap:wrap}.dispatchhead label{max-width:100%;width:100%}.tripgrid{grid-template-columns:1fr}}@media(max-width:850px){.shell{grid-template-columns:170px minmax(0,1fr)}main{padding:0 20px 20px}.sidebar{padding:16px 10px}.sidebar nav button{padding:12px 10px;font-size:13px;gap:9px}.username{display:none}.pagehead{align-items:flex-start;flex-direction:column}.pagehead .actions{width:100%}.pagehead .actions>button{flex:1}.breadcrumb{display:none}}@media(max-width:640px){.shell{display:block}.sidebar{height:auto;padding:10px 16px 12px}.brandlockup{flex-direction:row;padding:0 0 12px;gap:12px}.brandlockup .brandmark{width:46px;height:56px}.brandlockup .brandmark img{width:175px}.brandlockup>span{font-size:10px;letter-spacing:2px}.navcaption{display:none}.sidebar nav{display:flex;overflow-x:auto;gap:4px}.sidebar nav button{display:flex;flex-direction:column;gap:4px;font-size:11px;padding:8px;min-width:64px;white-space:nowrap}.sidebar nav button small{display:none}.navicon{width:19px;height:19px}.sidebar .sidebottom{display:none}main{padding:0 16px 18px}.topline{height:60px;margin-bottom:24px}.toptools{gap:6px}.toptools .avatar{display:none}.pagehead h1{font-size:26px}.pagehead .actions button,.pagehead .actions a{font-size:13px;padding:10px 12px}.prokpis{gap:10px}.prokpis .kpi{padding:17px 13px}.prokpis .kpi>span{font-size:12px}.prokpis .kpi strong{font-size:30px}.prokpis .kpi small{font-size:10px}.panel{padding:18px}.sectionhead h2{font-size:18px}.attentionrow{gap:8px}.ordermini{font-size:10px;padding:5px}.attentionrow strong{font-size:13px}.attentionrow span{font-size:11px}.appfooter{font-size:10px;display:block}.appfooter span{display:block;margin-top:5px}.selectionbar,.savebar{align-items:stretch;flex-direction:column}.dispatchhead{padding:18px;gap:18px}.dispatchhead label{min-width:100%}.dispatchhead strong{font-size:17px}.loadlines>label{gap:8px;font-size:12px}.loadlines input{max-width:64px;padding:8px}.loadlines button{padding:8px;font-size:12px}.tripfooter{gap:12px;flex-wrap:wrap}.tripcard{padding:18px}.orderpanel{padding:15px}.statusbar button{font-size:12px}.login{margin:4vh 14px;padding:0 24px 24px}.loginbrand{margin:0 -24px 25px}}
.numbered-pin span{display:grid;place-items:center;width:30px;height:30px;background:#9e1108;border:2px solid #fff;box-shadow:0 2px 7px #0005;border-radius:50%;color:#fff;font:bold 13px Arial,sans-serif}
.accountbutton{display:flex;gap:8px;align-items:center;padding:0;border:0;background:transparent!important;font-size:12px;font-weight:500}.accountbutton:focus-visible{outline:2px solid #9e1108}.accountbutton .avatar{display:grid!important}#passwordForm label{margin:15px 0}
.eyebrow,.navcaption,.edition,.appfooter,.prokpis .kpi small,.tripnumbers small,.dispatchhead small{font-size:12px}@media(max-width:640px){.sidebar nav button,.prokpis .kpi small,.appfooter{font-size:12px}.attentionrow span{font-size:12px}}

.tag.cancelado{background:#eceef2;color:#555d6b}.danger{color:#b42318;border-color:#ebbbb5}
.maplayout .stop>small{display:block;margin:5px 0;line-height:1.5}.maplayout .stop>.tag{display:inline-block;margin-top:5px}

/* Tablet: alvos de toque, leitura sem arrastar a tabela e espaço para teclado. */
button,.button,input,select,textarea{touch-action:manipulation}
button:disabled{cursor:not-allowed}
.tablewrap{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
@media (pointer:coarse),(max-width:1100px){
 button,.button,.small,.textbutton,.accountbutton{min-height:48px;min-width:48px;padding:11px 14px;font-size:16px}
 input:not([type=checkbox]),select,textarea{font-size:16px;min-height:48px}
 input[type=checkbox],.checklabel input{width:28px!important;height:28px;flex-shrink:0}
 .checklabel{min-height:48px;padding:8px 0}
 .actions,.foot,.tripfooter{gap:12px;flex-wrap:wrap}
 .statusbar{flex-wrap:wrap;overflow:visible;gap:8px}.statusbar button{min-height:48px;font-size:15px;border:1px solid var(--line);background:white}
 .statusbar button.chosen{background:#191919}
 .leaflet-control-zoom a{width:48px!important;height:48px!important;line-height:48px!important;font-size:25px!important}
 .loadlines input{min-width:88px;max-width:110px;font-size:18px;padding:10px}
 .loadlines>label{gap:12px;font-size:16px;flex-wrap:wrap}.loadlines>label>span{min-width:50%;overflow-wrap:anywhere}
 .loadlines button{min-height:48px;font-size:16px;padding:10px 14px}
 .tripfooter a{display:inline-flex;align-items:center;min-height:48px;padding:8px}
 dialog{max-height:92vh;max-height:92dvh;overflow-y:auto;overscroll-behavior:contain;padding:22px}
 dialog .foot{position:static;flex-wrap:wrap;padding-bottom:env(safe-area-inset-bottom,0px)}
 dialog .foot button{flex:1 1 140px}
 .orderstable,.orderstable tbody{display:block;width:100%}
 .orderstable thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .orderstable tbody tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:10px;padding:12px;margin:12px 0;gap:8px 16px}
 .orderstable td{display:block;border:0;padding:6px!important;min-width:0!important;width:auto!important;overflow-wrap:anywhere}
 .orderstable td:first-child,.orderstable td:nth-child(2),.orderstable td:last-child{grid-column:1/-1}
 .orderstable td:first-child{display:flex;align-items:center;gap:12px;min-height:48px}
 .orderstable td:first-child:after{content:'Selecionar pedido';font-size:14px;color:var(--muted)}
 .orderstable td[data-label]:before{content:attr(data-label);display:block;font-size:12px;font-weight:650;color:var(--muted);margin-bottom:5px}
 .orderstable td:first-child:before,.orderstable td:nth-child(2):before,.orderstable td:last-child:before{display:none}
 .orderstable .celladdress{max-width:none}.orderstable td:last-child{display:flex;gap:10px;flex-wrap:wrap}
 .orderstable td:last-child button{flex:1;margin:0}.orderstable td>strong{font-size:18px}
 .orderstable td:first-child input{margin:8px}
}
@media(max-width:1100px){
 .shell{display:block}.sidebar{position:static;width:100%;height:auto;padding:10px 18px 14px}
 .brandlockup{flex-direction:row;padding:0 0 8px;gap:12px}.brandlockup .brandmark{width:40px;height:46px}.brandlockup .brandmark img{width:150px}
 .navcaption,.sidebar .sidebottom{display:none}.sidebar nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;overflow:visible}
 .sidebar nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;white-space:normal;text-align:center;font-size:13px;min-height:62px;padding:8px 4px;gap:5px}
 .sidebar nav button small{display:none}.navicon{width:22px;height:22px}
 main{padding:0 22px 24px}.topline{height:auto;min-height:66px;margin-bottom:22px;gap:12px;padding:10px 0}
 .pagehead{flex-direction:column;align-items:stretch}.pagehead .actions{width:100%;flex-wrap:wrap}.pagehead .actions>*{flex:1 1 180px;font-size:16px}
 .overviewgrid,.tripgrid,.maplayout{grid-template-columns:1fr}.maplayout>div:last-child{grid-row:1}.maplayout .map{height:48vh;min-height:300px;max-height:500px}
 .kpis{grid-template-columns:1fr 1fr}.toolbar>*{flex:1 1 190px;min-width:0;max-width:100%}.toolbar input{min-width:0}
 .sectionhead{flex-wrap:wrap}.selectionbar,.savebar{flex-wrap:wrap}.savebar{position:static}.selectionbar button{flex:1 1 240px}
 .dispatchhead{flex-wrap:wrap}.dispatchhead label{min-width:0;width:100%;max-width:100%}
 .tripfooter{flex-wrap:wrap}.row>div,.stop,.notice{overflow-wrap:anywhere}
}
@media(max-width:600px){
 .sidebar nav{grid-template-columns:repeat(3,minmax(0,1fr))}.sidebar nav button{flex-direction:row;min-height:50px;font-size:13px}
 main{padding:0 14px 20px}.fields{grid-template-columns:1fr}.orderstable tbody tr{grid-template-columns:1fr}
 .topline>div:first-child{display:none}.toptools{margin-left:auto}.panel,.orderpanel{padding:14px}
 .loadlines>label>span{flex-basis:100%}.loadlines input{flex:1}.loadlines button{flex:1}
 .maplayout .map{height:350px}.pagehead .actions>*{flex-basis:100%}
 .selectionbar{flex-direction:column}.selectionbar button{flex:auto;width:100%}
}
.touchselect{font-size:0;margin:0;display:flex;align-items:center}
@media(pointer:coarse),(max-width:1100px){
 .touchselect{font-size:14px;gap:12px;min-height:48px;cursor:pointer;width:100%}.orderstable td:first-child:after{content:none}
 .loadingtable,.loadingtable tbody{display:block;width:100%}.loadingtable thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .loadingtable tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;border:1px solid var(--line);border-radius:8px;margin-bottom:14px}
 .loadingtable td{display:block;min-width:0!important;padding:4px;border:0;overflow-wrap:anywhere}.loadingtable td:first-child{grid-column:1/-1;font-weight:650}
 .loadingtable td:before{content:attr(data-label);display:block;font-size:13px;color:var(--muted);margin-bottom:6px}.loadingtable td:first-child:before{display:none}
 .loadingtable td input[type=number]{width:100%;min-width:0}.loadingtable td button{width:100%}
}
@media(max-width:1100px){.toolbar input{flex:1 1 100%}}
.dialogclose{position:sticky;top:0;float:right;z-index:5;margin:0 0 10px 12px;min-width:48px;min-height:48px;background:white;box-shadow:0 2px 8px #0001}

#signaturePad{display:block;width:100%;height:auto;aspect-ratio:5/2;min-height:180px;max-height:340px;background:#fff;border:2px dashed #777;border-radius:10px;touch-action:none;user-select:none;-webkit-user-select:none;margin:12px 0} .receipt-signature{display:block;width:100%;max-width:500px;background:white;border:1px solid #ddd;margin-top:12px} #receiptForm>label{margin-top:16px}

.operational-warning{max-width:640px;width:calc(100% - 32px);padding:24px;border:0;border-radius:16px;max-height:85dvh;overflow:auto}.operational-warning li{margin:12px 0;line-height:1.5}.operational-warning button{min-height:48px}.operational-warning::backdrop{background:#0009}
