:root{color-scheme:light;--rt-bg:#f3f6fa;--rt-surface:#fff;--rt-surface-soft:#f7f9fc;--rt-sidebar:#091b32;--rt-sidebar-2:#102946;--rt-primary:#0969ef;--rt-primary-hover:#0757cb;--rt-success:#11a96b;--rt-warning:#e99320;--rt-danger:#e6424e;--rt-text:#14243d;--rt-muted:#63738d;--rt-border:#e1e8f1;--rt-radius-sm:8px;--rt-radius-md:12px;--rt-radius-lg:16px;--rt-shadow-sm:0 2px 8px #162c4410;--rt-shadow-md:0 12px 34px #10244020;--rt-space-1:4px;--rt-space-2:8px;--rt-space-3:12px;--rt-space-4:16px;--rt-space-5:20px;--rt-space-6:24px;font:14px/1.4 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--rt-text);background:var(--rt-bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #0969ef55;outline-offset:2px}[hidden]{display:none!important}.app-shell{height:100dvh;min-height:600px;display:grid;grid-template-columns:204px minmax(0,1fr);overflow:hidden}.sidebar{background:var(--rt-sidebar);color:#e9f1fc;display:flex;flex-direction:column;padding:17px 12px 12px;min-height:0}.brand{height:58px;display:flex;align-items:center;gap:10px;padding:0 9px;color:#f6f9ff;text-decoration:none;font-size:17px;font-weight:750;line-height:1.05;letter-spacing:-.4px}.brand small{display:block;font-size:13px;font-weight:500;letter-spacing:.15px;color:#bdcadd;margin-top:3px}.brand-mark{width:31px;height:38px;display:grid;place-items:center;color:#ff334b;font-size:34px;position:relative}.brand-mark:after{content:"";width:9px;height:9px;background:#13b878;border:2px solid var(--rt-sidebar);border-radius:50%;position:absolute;right:0;bottom:3px}.sidebar nav{display:grid;gap:4px;margin-top:25px;overflow:auto}.nav-item{min-height:44px;width:100%;display:flex;align-items:center;gap:12px;border:0;border-radius:9px;padding:0 12px;background:transparent;color:#d2dceb;text-align:left;font-size:13px}.nav-item:hover{background:#ffffff12;color:#fff}.nav-item.active{background:linear-gradient(110deg,#0b6bf5,#104aa2);color:white;font-weight:650}.nav-item:disabled{opacity:.43;cursor:not-allowed}.nav-icon{width:20px;text-align:center;font-size:19px;line-height:1;color:#d9e5f5}.nav-badge{margin-left:auto;border-radius:7px;background:var(--rt-danger);padding:2px 7px;color:#fff;font-size:11px}.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff19;padding-top:9px}.app-main{min-width:0;display:flex;flex-direction:column;overflow:hidden}.topbar{height:72px;flex:none;background:var(--rt-surface);border-bottom:1px solid var(--rt-border);box-shadow:var(--rt-shadow-sm);display:flex;align-items:center;gap:16px;padding:0 22px;z-index:500}.global-search,.search-input{display:flex;align-items:center;gap:10px;background:var(--rt-surface);border:1px solid var(--rt-border);border-radius:10px;color:#60728d}.global-search{height:44px;flex:1;max-width:600px;padding:0 13px}.global-search>span,.search-input>span{font-size:25px;line-height:1}.global-search input,.search-input input{width:100%;border:0;outline:0;background:transparent;color:var(--rt-text);padding:0}.global-search input::placeholder,.search-input input::placeholder{color:#71819a}.top-metrics{display:flex;gap:9px}.metric-chip{height:48px;min-width:106px;display:flex;align-items:center;gap:9px;padding:5px 10px;border:1px solid #edf0f5;border-radius:10px;background:#fff}.metric-chip>span:last-child{display:grid;line-height:1.1}.metric-chip b{font-size:16px}.metric-chip small,.top-profile small{font-size:11px;color:var(--rt-muted);margin-top:3px}.metric-icon{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;font-size:23px;font-weight:700}.metric-icon.success{background:#e4f8ef;color:var(--rt-success)}.metric-icon.primary{background:#e8f1ff;color:var(--rt-primary)}.metric-icon.muted{background:#f1f4f8;color:#74849a}.top-profile{display:flex;align-items:center;gap:9px;min-width:145px;padding-left:13px;border-left:1px solid var(--rt-border)}.top-profile>span:last-child{display:grid;line-height:1.15}.top-profile b{font-size:12px}.avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#e6eef9;color:#244c83;font-size:12px;font-weight:700}.map-view{display:flex;flex:1;min-height:0;flex-direction:column;padding:12px 14px 8px;gap:7px}.notice{min-height:0;color:#8a5b0a;font-size:12px}.fleet-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(310px,34%) minmax(300px,1fr) minmax(315px,27%);gap:12px}.panel{background:var(--rt-surface);border:1px solid var(--rt-border);border-radius:var(--rt-radius-md);box-shadow:var(--rt-shadow-sm);min-width:0;min-height:0}.vehicle-panel{display:flex;flex-direction:column;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:17px 16px 11px}.panel-heading h1{font-size:23px;letter-spacing:-.6px;margin:0}.panel-heading p{font-size:12px;color:var(--rt-muted);margin:3px 0 0}.count-pill{font-size:12px;background:#eaf2ff;color:var(--rt-primary);padding:4px 8px;border-radius:20px;vertical-align:3px}.icon-button{width:37px;height:37px;border:1px solid var(--rt-border);border-radius:9px;background:white;color:#526681;font-size:21px}.status-tabs{display:flex;align-items:center;gap:7px;padding:0 13px 12px;overflow:auto}.status-tab{white-space:nowrap;border:1px solid var(--rt-border);border-radius:22px;padding:7px 10px;background:white;color:var(--rt-muted);font-size:11px}.status-tab b{margin-left:4px;color:var(--rt-text);background:#f1f4f8;border-radius:12px;padding:2px 5px}.status-tab.selected{border-color:#91bcff;background:#edf5ff;color:var(--rt-primary);font-weight:650}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:4px}.status-dot.online{background:var(--rt-success)}.status-dot.moving{background:var(--rt-primary)}.list-tools{display:flex;gap:8px;padding:0 13px 11px}.search-input{height:39px;flex:1;min-width:0;padding:0 9px}.search-input>span{font-size:22px}.search-input input{font-size:12px}.filter-button{border:1px solid var(--rt-border);border-radius:8px;background:white;color:#344b6b;padding:0 10px;font-size:12px}.filter-options{display:flex;gap:8px;padding:0 13px 10px}.filter-options label{flex:1;color:var(--rt-muted);font-size:11px}.filter-options select{width:100%;margin-top:3px;padding:7px 8px;border:1px solid var(--rt-border);border-radius:7px;background:white;color:var(--rt-text)}.vehicle-list{overflow:auto;padding:0 10px 10px;scrollbar-width:thin}.vehicle{width:100%;display:grid;grid-template-columns:9px minmax(0,1fr) auto;align-items:center;gap:9px;padding:11px 7px;border:0;border-bottom:1px solid #edf0f5;background:white;text-align:left;color:var(--rt-text);cursor:pointer}.vehicle:hover{background:#f8fbff}.vehicle.selected{border-radius:8px;background:#eaf3ff;border-bottom-color:transparent}.vehicle-status-dot{width:8px;height:8px;border-radius:50%;background:#9aa8ba}.vehicle-status-dot.online{background:var(--rt-success)}.vehicle-status-dot.offline{background:var(--rt-danger)}.vehicle-status-dot.unknown{background:#96a1b3}.vehicle-status-dot.moving{background:var(--rt-primary);box-shadow:0 0 0 3px #0969ef22}.vehicle-copy{min-width:0}.vehicle-copy strong,.vehicle-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vehicle-copy strong{font-size:12px;font-weight:680}.vehicle-copy small{margin-top:3px;color:var(--rt-muted);font-size:11px}.vehicle-meta{text-align:right;color:var(--rt-muted);font-size:10px;white-space:nowrap}.vehicle-meta b{display:block;color:var(--rt-text);font-size:11px;font-weight:600;margin-bottom:3px}.vehicle-empty{padding:20px 8px;color:var(--rt-muted);font-size:12px}.map-panel{position:relative;min-width:0;min-height:0;border-radius:var(--rt-radius-md);border:1px solid var(--rt-border);overflow:hidden;background:#e9eff4;box-shadow:var(--rt-shadow-sm)}#map{position:absolute;inset:0;background:#e9eff4}.map-toolbar{position:absolute;z-index:450;top:12px;left:12px;right:12px;display:flex;justify-content:space-between;pointer-events:none}.map-switch,.map-actions{display:flex;gap:4px;padding:4px;border:1px solid #e7edf4;background:#fffffff2;border-radius:10px;box-shadow:var(--rt-shadow-sm);pointer-events:auto}.map-switch button,.map-control{height:34px;padding:0 11px;border:0;border-radius:7px;background:transparent;color:#415672;font-size:12px}.map-switch button.active{background:var(--rt-sidebar);color:white}.map-control{width:35px;padding:0;font-size:19px;background:white;border:1px solid var(--rt-border)}.map-attribution-note{position:absolute;z-index:400;bottom:5px;left:8px;padding:2px 5px;border-radius:4px;background:#ffffffc9;color:#51627a;font-size:9px;pointer-events:none}.leaflet-container{font:inherit}.leaflet-control-attribution{font-size:9px!important}.vehicle-marker{width:32px;height:36px;display:grid;place-items:center;border:2px solid white;border-radius:12px 12px 12px 3px;transform:rotate(-45deg);box-shadow:0 2px 8px #10243a55;color:white;font-size:14px;font-weight:700}.vehicle-marker span{transform:rotate(45deg)}.vehicle-marker.online{background:var(--rt-success)}.vehicle-marker.offline{background:#77869a}.vehicle-marker.unknown{background:#9b8d5a}.vehicle-marker.moving{background:var(--rt-primary);box-shadow:0 0 0 4px #0969ef35,0 2px 8px #10243a55}.vehicle-drawer{display:flex;flex-direction:column;overflow:auto}.drawer-empty{margin:auto;text-align:center;padding:30px;color:var(--rt-muted)}.empty-pin{width:48px;height:48px;margin:0 auto 15px;display:grid;place-items:center;border-radius:50%;background:#edf4fe;color:var(--rt-primary);font-size:28px}.drawer-empty h2{margin:0 0 6px;color:var(--rt-text);font-size:15px}.drawer-empty p{font-size:12px}.drawer-cover{position:relative;height:152px;margin:10px 10px 0;display:grid;place-items:center;border-radius:10px;background:linear-gradient(140deg,#eaf1f7,#d9e3ee);color:#7890ad;font-size:58px}.drawer-cover .status-chip{position:absolute;left:10px;top:10px}.drawer-title{display:flex;align-items:flex-start;justify-content:space-between;padding:12px 14px}.drawer-title h2{font-size:19px;margin:0}.drawer-title p{font-size:12px;color:var(--rt-muted);margin:3px 0 0}.status-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:20px;background:#e7f7ef;color:#08794d;font-size:10px;font-weight:650;white-space:nowrap}.status-chip.offline{background:#fff0f0;color:#c53540}.status-chip.unknown{background:#f3f1eb;color:#786b3e}.status-chip .status-dot{margin:0}.drawer-tabs{display:flex;gap:0;margin:0 12px;border-bottom:1px solid var(--rt-border);overflow:auto}.drawer-tabs button{flex:1;padding:10px 7px;border:0;border-bottom:2px solid transparent;background:white;color:var(--rt-muted);font-size:11px;white-space:nowrap}.drawer-tabs button.active{border-bottom-color:var(--rt-primary);color:var(--rt-primary);font-weight:650}.drawer-content{padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:7px}.detail-card{min-height:58px;padding:9px;border-radius:9px;background:var(--rt-surface-soft);border:1px solid #edf0f5}.detail-card small{display:block;color:var(--rt-muted);font-size:10px}.detail-card strong{display:block;margin-top:3px;font-size:12px;font-weight:650;overflow-wrap:anywhere}.drawer-section-title{padding:8px 13px 4px;margin:0;font-size:12px}.drawer-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:8px 10px 12px}.quick-action{min-height:57px;border:1px solid var(--rt-border);border-radius:9px;background:#fff;color:#526681;font-size:10px}.quick-action:disabled{opacity:.5;cursor:not-allowed}.quick-action span{display:block;color:var(--rt-primary);font-size:18px;margin-bottom:3px}.drawer-extra{padding:0 13px 13px}.drawer-row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #edf0f5;font-size:11px}.drawer-row span{color:var(--rt-muted)}.workspace-footer{min-height:19px;display:flex;align-items:center;gap:12px;color:var(--rt-muted);font-size:10px}.text-button{border:0;background:transparent;color:var(--rt-muted);padding:1px;font-size:10px}.login-screen{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% 20%,#e4effe 0,var(--rt-bg) 55%)}.login-card{width:min(100%,420px);padding:30px;background:white;border:1px solid var(--rt-border);border-radius:16px;box-shadow:var(--rt-shadow-md)}.login-brand{color:var(--rt-text);padding:0 0 25px}.login-brand .brand-mark:after{border-color:white}.eyebrow{font-size:10px;letter-spacing:.12em;font-weight:700;color:var(--rt-primary);margin:0 0 8px}.login-card h1,.legacy-heading h1{font-size:27px;letter-spacing:-.7px;margin:0 0 7px}.login-card>p:not(.eyebrow){color:var(--rt-muted);line-height:1.6}.login-card form{display:grid;gap:15px;margin-top:22px}.login-card label,.filters label{display:block;color:#384b66;font-size:12px;font-weight:600}.login-card input,.filters input,.filters select{display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid var(--rt-border);border-radius:8px;background:white;color:var(--rt-text)}.button{border:1px solid var(--rt-border);border-radius:8px;padding:10px 14px;font-size:12px;font-weight:650}.button-primary{border-color:var(--rt-primary);background:var(--rt-primary);color:white}.button-primary:hover{background:var(--rt-primary-hover)}.button-secondary{background:white;color:#415672}.button:disabled{opacity:.6;cursor:wait}#login-error{min-height:20px;color:var(--rt-danger);font-size:12px}.legacy-view{flex:1;min-height:0;overflow:auto;padding:24px;background:var(--rt-bg)}.legacy-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.legacy-heading p{margin:4px 0;color:var(--rt-muted)}.filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:16px;background:white;border:1px solid var(--rt-border);border-radius:12px}.filters label{min-width:175px;flex:1}.filters .button{height:40px}.legacy-result{margin-top:14px;padding:15px;background:white;border:1px solid var(--rt-border);border-radius:10px;color:#526681}.legacy-result:empty{display:none}.legacy-result p{border-bottom:1px solid var(--rt-border);padding:9px 0;margin:0}.mobile-menu{display:none}
@media(min-width:1600px){.fleet-layout{grid-template-columns:minmax(340px,31%) minmax(420px,1fr) minmax(340px,25%)}.panel-heading{padding-top:20px}.vehicle{padding:13px 8px}.drawer-cover{height:176px}}
@media(max-width:1200px){.app-shell{grid-template-columns:74px minmax(0,1fr)}.sidebar{padding-inline:8px}.brand{justify-content:center;padding:0}.brand>span:last-child{display:none}.sidebar nav{margin-top:20px}.nav-item{justify-content:center;padding:0}.nav-item>span:not(.nav-icon){display:none}.nav-icon{font-size:20px}.sidebar-bottom .nav-item{justify-content:center}.topbar{padding:0 13px;gap:9px}.metric-chip{min-width:80px;padding:5px}.metric-icon{width:28px;height:28px}.top-profile{min-width:auto}.top-profile>span:last-child{display:none}.fleet-layout{grid-template-columns:minmax(270px,33%) minmax(260px,1fr)}.vehicle-drawer{position:fixed;z-index:600;right:12px;top:84px;bottom:35px;width:min(350px,40vw);box-shadow:var(--rt-shadow-md)}}
@media(max-width:760px){.app-shell{grid-template-columns:56px minmax(0,1fr);min-height:500px}.sidebar{padding:10px 5px}.brand{height:45px}.brand-mark{font-size:29px}.sidebar nav{gap:3px;margin-top:11px}.nav-item{min-height:40px}.nav-icon{font-size:18px}.topbar{height:58px;padding:0 8px}.global-search{height:38px}.global-search input{font-size:11px}.top-metrics{gap:3px}.metric-chip{min-width:0;height:38px;padding:3px 5px;border:0}.metric-chip small{display:none}.metric-chip b{font-size:12px}.metric-icon{width:25px;height:25px;font-size:17px}.top-profile{padding-left:5px;border:0}.avatar{width:30px;height:30px}.map-view{padding:8px;gap:0}.notice{position:absolute;z-index:450;top:60px;left:65px}.fleet-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(215px,38%) minmax(250px,1fr);gap:7px}.vehicle-panel{grid-row:1}.vehicle-list{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(155px,45%);grid-template-rows:1fr;overflow:auto}.vehicle{align-content:center;border:1px solid var(--rt-border);border-radius:8px;margin:4px}.map-panel{grid-row:2}.vehicle-drawer{top:auto;right:8px;bottom:8px;left:64px;width:auto;height:min(62vh,450px);display:none}.vehicle-drawer.open{display:flex}.drawer-cover{height:90px}.drawer-actions{padding-bottom:7px}.workspace-footer{display:none}.legacy-view{padding:14px}.legacy-heading h1{font-size:22px}.filters label{min-width:100%;flex-basis:100%}}
@media(max-width:430px){.top-metrics .metric-chip:nth-child(3){display:none}.topbar{gap:5px}.global-search{padding:0 8px}.global-search>span{font-size:19px}.metric-icon{display:none}.metric-chip{padding:2px}.top-profile{display:none}.panel-heading h1{font-size:19px}.status-tabs{padding-inline:8px}.status-tab{padding:6px 8px}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.brand-mark{color:transparent;font-size:0}.brand-mark:before{content:"";width:24px;height:27px;display:block;background:radial-gradient(circle at 50% 39%,#fff 0 17%,transparent 18%),#ff334b;border-radius:50% 50% 50% 0;transform:rotate(-45deg)}.login-brand .brand-mark:before{background:radial-gradient(circle at 50% 39%,#fff 0 17%,transparent 18%),#ff334b}.leaflet-control-zoom{display:none!important}

.nav-icon svg{display:block;width:19px;height:19px}.metric-icon svg{width:20px;height:20px}

.vehicle-marker.selected{box-shadow:0 0 0 5px #0969ef35,0 2px 8px #10243a55}


/* Final map workspace refinements */
.notification-settings{border-top:1px solid #ffffff19;padding:7px 5px 5px;color:#bdcadd}
.notification-title{display:block;margin:0 5px 5px;font-size:10px;font-weight:650;letter-spacing:.04em;text-transform:uppercase}
.notification-controls{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.notification-button{min-width:0;min-height:29px;display:flex;align-items:center;justify-content:center;gap:4px;padding:3px 5px;border:1px solid #ffffff20;border-radius:7px;background:#ffffff08;color:#d8e4f3;font-size:10px}
.notification-button:hover{background:#ffffff16;color:#fff}
.notification-button>span:first-child{font-size:14px;line-height:1}
.notification-status{display:block;max-height:30px;overflow:auto;margin:4px 3px 0;color:#aebed2;font-size:9px;line-height:1.25}
.vehicle-empty{padding:10px 8px;color:var(--rt-muted);font-size:11px;text-align:center}
.notice:empty{display:none}
.notice:not(:empty){width:fit-content;max-width:100%;padding:5px 9px;border:1px solid #efdba9;border-radius:8px;background:#fff9e9;color:#765716;font-size:11px;line-height:1.35}
@media(min-width:1201px){
 .fleet-layout{grid-template-columns:minmax(280px,.78fr) minmax(0,1.8fr) minmax(0,0fr);transition:grid-template-columns .22s ease}
 .fleet-layout.has-selection{grid-template-columns:minmax(280px,.9fr) minmax(300px,1.25fr) minmax(290px,.9fr)}
 .vehicle-drawer{position:relative;inset:auto;width:auto;height:auto;min-width:0;display:flex;overflow:hidden;border:0;opacity:0;visibility:hidden;transform:translateX(7px);box-shadow:none;transition:opacity .16s ease,transform .16s ease,visibility .16s ease}
 .vehicle-drawer.open{display:flex;overflow:auto;border:1px solid var(--rt-border);opacity:1;visibility:visible;transform:translateX(0);box-shadow:var(--rt-shadow-sm)}
 .vehicle-list{scrollbar-width:thin;scrollbar-color:#c6d1df transparent}
 .vehicle-list::-webkit-scrollbar{width:7px}
 .vehicle-list::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:8px;background:#c6d1df;background-clip:padding-box}
 .vehicle{gap:7px;padding:9px 6px}
 .panel-heading{padding:13px 13px 9px}
 .notice:not(:empty){flex:none}
}
@media(min-width:1201px){
 .app-shell{grid-template-columns:190px minmax(0,1fr)}
 .sidebar{padding:12px 10px 9px}
 .brand{height:50px}
 .sidebar nav{flex:1;min-height:0;gap:2px;margin-top:14px;scrollbar-width:thin;scrollbar-color:#ffffff35 transparent}
 .sidebar nav::-webkit-scrollbar{width:6px}
 .sidebar nav::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:8px;background:#ffffff35;background-clip:padding-box}
 .nav-item{min-height:36px;gap:9px;padding:0 10px;font-size:12px}
 .sidebar nav .nav-icon{width:19px;font-size:17px}
 .sidebar-bottom{padding-top:6px}
 .sidebar-bottom .nav-item{min-height:35px}
 .notification-settings{padding:6px 3px 4px}
 .topbar{height:64px;gap:12px;padding:0 18px}
 .global-search{height:41px;max-width:520px}
 .top-metrics{gap:6px}
 .metric-chip{height:42px;min-width:94px;gap:7px;padding:4px 8px}
 .metric-icon{width:30px;height:30px;font-size:20px}
 .metric-chip b{font-size:15px}
 .metric-chip small{font-size:10px}
 .top-profile{min-width:130px;padding-left:10px}
 .avatar{width:34px;height:34px}
}
@media(max-width:1200px){
 .vehicle-drawer:not(.open){display:none}
 .notification-title,.notification-button .label{display:none}
 .notification-controls{display:flex;justify-content:center;gap:5px}
 .notification-button{width:30px;min-height:29px;padding:2px}
 .notification-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
}
@media(max-width:760px){
 .notification-settings{padding:5px 0}
 .notification-button{width:21px;min-height:26px}
 .notification-controls{gap:2px}
}

/* Design System: Histórico e Relatórios */
.period-controls{display:flex;align-items:end;gap:12px;padding:10px 24px;background:var(--rt-surface);border-bottom:1px solid var(--rt-border)}
#primary-nav{align-content:start;grid-auto-rows:min-content}
.nav-item:disabled .nav-coming-soon{margin-left:auto;color:var(--rt-muted);font-size:10px;font-weight:500;white-space:nowrap}
.period-controls label{display:grid;gap:4px;min-width:190px;color:var(--rt-muted);font-size:11px;font-weight:600}
.period-controls select,.period-controls input{height:38px;width:100%;padding:0 10px;border:1px solid var(--rt-border);border-radius:var(--rt-radius-sm);background:var(--rt-surface);color:var(--rt-text)}
.legacy-view{display:flex;flex-direction:column;gap:14px}
.module-header{display:flex;align-items:center;justify-content:space-between;flex:none}
.module-header h1{margin:0;font-size:25px;letter-spacing:-.6px}
.module-header>div>p:last-child{margin:4px 0 0;color:var(--rt-muted)}
.history-toolbar,.report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.period-presets,.history-actions,.report-actions,.report-exports{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.period-preset{min-height:36px;padding:7px 12px;border:1px solid var(--rt-border);border-radius:var(--rt-radius-sm);background:var(--rt-surface);color:var(--rt-muted);font-size:12px}
.period-preset.selected{border-color:var(--rt-primary);background:var(--rt-surface-soft);color:var(--rt-primary);font-weight:650}
.period-preset:disabled{cursor:not-allowed;opacity:.55}
.history-actions .button,.report-toolbar .button{min-height:38px}
.limit-note,.inline-status{margin:0;color:var(--rt-muted);font-size:12px}
.inline-status:empty{display:none}
.history-content{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(350px,.9fr);gap:14px;flex:1;min-height:390px}
.history-map-card,.history-events-card,.report-content{display:flex;flex-direction:column;overflow:hidden}
.section-heading,.report-content-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--rt-border)}
.section-heading h2,.report-content-heading h2{margin:0;font-size:15px}
.section-heading p,.report-content-heading p{margin:3px 0 0;color:var(--rt-muted);font-size:11px}
.history-map-host{position:relative;flex:1;min-height:300px;background:var(--rt-bg);overflow:hidden}
.history-map-host>.map-panel{position:absolute!important;inset:0;width:100%;height:100%;border:0;border-radius:0;box-shadow:none}
.history-map-empty{position:absolute;z-index:440;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;background:var(--rt-bg);color:var(--rt-text);pointer-events:none}
.history-map-empty[hidden]{display:none!important}
.history-map-empty>span{font-size:32px;color:var(--rt-primary)}
.history-map-empty small{color:var(--rt-muted)}
.history-side{display:flex;flex-direction:column;gap:12px;min-width:0;min-height:0}
.history-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.metric-card{display:grid;gap:5px;min-width:0;padding:11px 12px;border:1px solid var(--rt-border);border-radius:var(--rt-radius-md);background:var(--rt-surface);box-shadow:var(--rt-shadow-sm)}
.metric-card span{color:var(--rt-muted);font-size:10px}
.metric-card strong{font-size:17px;letter-spacing:-.3px;overflow-wrap:anywhere}
.history-events-card{flex:1;min-height:210px}
.content-tabs{display:flex;gap:4px;overflow-x:auto;padding:8px 12px 0;border-bottom:1px solid var(--rt-border);scrollbar-width:thin}
.content-tab{flex:none;padding:9px 11px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--rt-muted);font-size:12px;white-space:nowrap}
.content-tab.active{border-bottom-color:var(--rt-primary);color:var(--rt-primary);font-weight:650}
.history-result,.report-result{min-height:0;flex:1;overflow:auto;padding:12px}
.empty-state{display:grid;place-content:center;gap:5px;min-height:112px;padding:18px;text-align:center;color:var(--rt-muted);font-size:12px}
.data-table-wrap{width:100%;overflow:auto}
.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}
.data-table th,.data-table td{padding:9px 8px;border-bottom:1px solid var(--rt-border);white-space:nowrap}
.data-table th{position:sticky;top:0;background:var(--rt-surface-soft);color:var(--rt-muted);font-weight:650}
.table-note{margin:0 0 8px;color:var(--rt-muted);font-size:11px}
.report-content{flex:1;min-height:340px}
.report-content-heading{flex:none}
.report-content-heading .status-badge{flex:none;padding:5px 9px;border-radius:20px;background:var(--rt-surface-soft);color:var(--rt-primary);font-size:11px;font-weight:650}
.report-result{display:flex;flex-direction:column;gap:14px}
.report-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px}
.report-section{padding:13px;border:1px solid var(--rt-border);border-radius:var(--rt-radius-md);background:var(--rt-surface)}
.report-section h3{margin:0 0 10px;font-size:13px}
.report-section p{margin:0;color:var(--rt-muted);font-size:12px}
.report-section .data-table-wrap{max-height:340px}
.report-footnote{margin:0;color:var(--rt-muted);font-size:11px}
@media(max-width:1100px){.history-content{grid-template-columns:minmax(0,1.2fr) minmax(300px,1fr)}.period-controls{padding-inline:14px}}
@media(max-width:760px){.legacy-view{padding:12px;overflow:auto}.module-header h1{font-size:21px}.period-controls{align-items:stretch;flex-direction:column;gap:7px;padding:8px}.period-controls label{min-width:0}.history-content{grid-template-columns:minmax(0,1fr);min-height:0}.history-map-card{min-height:380px}.history-side{min-height:420px}.history-toolbar,.report-toolbar{align-items:stretch}.period-presets{overflow-x:auto;flex-wrap:nowrap}.period-preset{flex:none}.report-actions,.report-exports{flex:1}.report-toolbar .button{flex:1}.report-content{min-height:400px}}
.module-view{display:flex;flex-direction:column;gap:12px}.module-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.module-header h1{margin:0;font-size:26px;letter-spacing:-.5px}.module-header p:not(.eyebrow){margin:5px 0 0;color:var(--rt-muted)}.module-view>.report-content{display:flex;flex-direction:column;gap:12px;padding:14px;overflow:visible}.module-view .report-section{overflow:auto}.module-view .report-section h2{margin:0 0 12px;font-size:15px}.module-editor{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:end;gap:12px;padding:14px}.module-editor h2{grid-column:1/-1}.module-field{display:grid;gap:6px;min-width:0;color:#384b66;font-size:12px;font-weight:600}.module-field input,.module-field select,.module-row input{width:100%;min-height:38px;padding:8px 10px;border:1px solid var(--rt-border);border-radius:8px;background:var(--rt-surface);color:var(--rt-text)}.module-editor>.button{min-height:38px}.module-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:12px;border:1px solid var(--rt-border);border-radius:var(--rt-radius-md);background:var(--rt-surface)}.module-filters .module-field{min-width:150px;flex:1}.module-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 4px;border-bottom:1px solid var(--rt-border);color:var(--rt-text);font-size:12px}.module-row .button{flex:none}.module-view td .button{margin:2px}.module-view td input{width:145px;min-height:34px;margin:2px;padding:6px 8px;border:1px solid var(--rt-border);border-radius:7px}.module-view .metric-card small{color:var(--rt-muted);font-size:10px}.module-view .report-footnote{padding-top:8px}@media(max-width:760px){.module-header{align-items:flex-start}.module-header h1{font-size:21px}.module-view>.report-content{padding:8px}.module-row{align-items:flex-start;flex-direction:column}}
.telemetry-series svg{display:block;width:100%;min-height:180px;max-height:260px}.telemetry-gridline{stroke:var(--rt-border);stroke-width:1}.telemetry-line{fill:none;stroke:var(--rt-primary);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.telemetry-point{fill:var(--rt-primary);stroke:var(--rt-surface);stroke-width:1.5}
.history-replay{display:flex;align-items:center;gap:12px;padding:12px 4px;flex-wrap:wrap}.history-replay input[type=range]{flex:1;min-width:150px;accent-color:var(--rt-primary)}.history-replay label{display:flex;align-items:center;gap:8px;color:var(--rt-muted);font-size:12px}.history-replay select{min-height:34px;border:1px solid var(--rt-border);border-radius:7px;background:var(--rt-surface);color:var(--rt-text);padding:4px 8px}.history-replay #history-replay-time{min-width:160px;color:var(--rt-text);font-variant-numeric:tabular-nums;font-size:12px}
.module-choice-list{display:grid;gap:8px;min-width:0;margin:0;padding:10px;border:1px solid var(--rt-border);border-radius:8px}.module-choice-list legend{padding:0 5px;color:#384b66;font-size:12px;font-weight:600}.module-choice-list label{display:flex;align-items:center;gap:8px;color:var(--rt-text);font-size:12px}.module-choice-list input{width:16px;height:16px;accent-color:var(--rt-primary)}.integration-secret{display:block;overflow-wrap:anywhere;margin:10px 0;padding:12px;border-radius:8px;background:var(--rt-surface-soft);color:var(--rt-text);font-size:12px;user-select:all}

.global-search{position:relative}.search-results{position:absolute;z-index:20;top:calc(100% + 6px);left:0;width:100%;max-height:320px;overflow:auto;padding:6px;background:var(--rt-surface);border:1px solid var(--rt-border);border-radius:var(--rt-radius-sm);box-shadow:var(--rt-shadow-md)}.search-result{display:block;width:100%;padding:9px;border:0;border-radius:6px;background:transparent;color:var(--rt-text);text-align:left}.search-result:hover{background:var(--rt-surface-soft)}.search-results p{margin:8px;color:var(--rt-muted)}

.module-view .data-table th{position:static}

/* PG-001 — referência visual aprovada */
.login-screen{--login-primary:#0869ed;--login-hero-image:url('/login-hero.png');--login-background-fallback:#091b32;--login-overlay-opacity:.45;position:fixed;inset:0;z-index:1000;min-height:100svh;display:grid;place-items:stretch;grid-template-columns:minmax(0,1.5fr) minmax(440px,1fr);overflow:auto;padding:0;background-color:var(--login-background-fallback);background-image:linear-gradient(90deg,rgba(0,23,46,var(--login-overlay-opacity)) 0%,rgba(6,29,55,calc(var(--login-overlay-opacity)*.55)) 37%,transparent 68%),linear-gradient(0deg,rgba(6,23,46,calc(var(--login-overlay-opacity)*.7)) 0%,transparent 34%,rgba(8,27,48,calc(var(--login-overlay-opacity)*.25)) 100%),var(--login-hero-image);background-position:center;background-size:cover;background-repeat:no-repeat}
.login-screen[hidden]{display:none!important}
.login-story{position:relative;min-width:0;min-height:100svh;display:flex;flex-direction:column;justify-content:space-between;padding:clamp(28px,3.4vw,60px) clamp(32px,4.3vw,74px) 24px;color:#f4f8ff;background:transparent}
.login-story:before{content:none}
.login-story-content{width:min(100%,760px);margin:auto 0}
.login-company{display:inline-flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font-size:18px;line-height:1.05}
.login-company>[data-brand-name]{display:grid;gap:3px}.login-company strong{font-size:28px;letter-spacing:-.8px}.login-company>[data-brand-logo]{max-width:min(240px,50vw);max-height:64px;object-fit:contain}.login-brand>[data-brand-logo]{max-width:min(220px,55vw);max-height:62px;object-fit:contain}
.login-company>.brand-mark{width:57px;height:62px;flex:none}.login-company>.brand-mark:before{width:45px;height:52px}.login-company>.brand-mark:after{right:1px;bottom:5px;width:14px;height:14px;border:3px solid #071b34}
.login-kicker{margin:30px 0 15px;color:#19c8f4;font-size:12px;font-weight:800;letter-spacing:4px}
.login-story h1{margin:0;color:#fff;font-size:clamp(39px,3.15vw,54px);font-weight:750;line-height:1.08;letter-spacing:-2px}
.login-story h1 span{display:block}.login-story h1 strong{display:inline;color:#1eb7ec;font-weight:780}
.login-lead{max-width:480px;margin:14px 0 20px;color:#e1eafa;font-size:clamp(16px,1.22vw,20px);line-height:1.48}
.login-benefits{display:grid;gap:14px;margin:0;padding:0;list-style:none}
.login-benefits li{display:flex;align-items:center;gap:15px;min-height:70px}
.benefit-icon{width:68px;height:68px;display:grid;place-items:center;flex:none;border-radius:23px;background:#0a4c86a8;color:#21b9ee}
.benefit-icon svg{width:33px;height:33px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.login-benefits li>span:last-child{display:grid;gap:3px}.login-benefits strong{font-size:16px;font-weight:750}.login-benefits small{color:#d6e2f2;font-size:14px}
.login-story-footer{display:flex;align-items:center;gap:12px;min-height:63px;border-top:1px solid #ffffff33;color:#d5e0f0;font-size:13px}
.login-story-footer>.brand-mark{width:34px;height:40px}.login-story-footer>.brand-mark:before{width:27px;height:31px}
.story-brand{color:#fff;font-size:20px;font-weight:750;letter-spacing:-.5px}.story-brand small{color:#bdcadd;font-size:13px;font-weight:550}
.login-story-footer>i{height:28px;margin:0 8px;border-left:1px solid #ffffff77}
.login-access{min-width:0;min-height:100svh;display:grid;grid-template-rows:1fr auto;align-items:center;gap:12px;padding:clamp(20px,2vw,40px) clamp(20px,2vw,40px) 14px;background:transparent}
.login-card{width:100%;max-width:568px;margin:auto;padding:clamp(30px,3vw,50px);border:1px solid #ffffffeb;border-radius:20px;background:#fffffffc;box-shadow:0 12px 32px #102d4b12}
.login-brand{height:auto;display:flex;gap:15px;padding:0 0 30px;color:#0b1f40;font-size:29px;font-weight:800;letter-spacing:-1px}
.login-brand .brand-mark{width:54px;height:62px;display:grid;place-items:center}.login-brand .brand-mark:before{width:43px;height:49px}
.login-brand .brand-mark:after{right:1px;bottom:5px;width:16px;height:16px;border:3px solid white}
.login-brand small{margin-top:2px;color:#a9bbd3;font-size:21px;font-weight:650;letter-spacing:-.4px}
.login-card h2{margin:0 0 7px;color:#111d42;font-size:34px;line-height:1.15;letter-spacing:-1.2px}
.login-intro{margin:0;color:#4c6282;font-size:16px;line-height:1.5}
.portal-status{min-height:58px;display:flex;align-items:center;gap:15px;margin:18px 0 19px;padding:11px 16px;border-radius:9px;background:#e6f2ff;color:#273f64;font-size:13px;line-height:1.45}
.portal-status svg{width:28px;height:28px;flex:none;fill:none;stroke:#0878f9;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.portal-status span:nth-child(2){flex:1}.portal-status .portal-info{width:17px;height:17px;display:grid;place-items:center;flex:none;border:2px solid #0878f9;border-radius:50%;color:#0878f9;font-size:11px;font-weight:800}
.portal-status[data-state=loading]{color:#4c6282}.portal-status[data-state=unavailable],.portal-status[data-state=error],.login-message[data-state=error]{color:#9e2932;background:#fff0f0}
.login-card form{display:grid;gap:18px;margin-top:0}
.login-field{display:grid;gap:7px;color:#283f62;font-size:14px;font-weight:650}
.field-control{position:relative;min-height:51px;display:flex;align-items:center;gap:13px;padding:0 14px;border:1px solid #d1deed;border-radius:9px;background:#fff;color:#67809e;transition:border-color .15s,box-shadow .15s}
.field-control:focus-within{border-color:var(--login-primary);box-shadow:0 0 0 3px #0969ef20}
.field-control>svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.field-control input{width:100%;min-width:0;height:49px;margin:0;padding:0;border:0;outline:0;background:transparent;color:#152847;font-size:15px;font-weight:450}
.field-control input::placeholder,.login-field>input::placeholder{color:#8398b4;opacity:1}
.password-toggle{width:34px;height:38px;display:grid;place-items:center;flex:none;padding:0;border:0;background:transparent;color:#607995}
.password-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.password-toggle[aria-pressed=true] .eye-slash{display:none}
.forgot-password{justify-self:end;margin-top:-13px;padding:2px 0;border:0;background:transparent;color:#0670ef;font-size:14px;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.login-submit{width:100%;min-height:51px;display:flex;align-items:center;justify-content:center;gap:12px;margin-top:1px;border:0;border-radius:9px;background:linear-gradient(100deg,#0969ef,#0862e5);color:#fff;font-size:16px;font-weight:700;box-shadow:0 4px 9px #0869ef22}
.login-submit:hover{background:linear-gradient(100deg,#075fd9,#064fbf)}.login-submit:disabled{opacity:.65;cursor:wait}
.login-submit svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.login-message{min-height:0;margin:8px 0 0;padding:0;color:#9e2932;font-size:13px;line-height:1.4}.login-message:empty{display:none}.login-message[data-state=success]{color:#08794d;background:#eaf8f0;padding:9px 11px;border-radius:7px}
.login-help{display:flex;align-items:center;gap:13px;margin-top:20px;padding-top:18px;border-top:1px solid #dce5ef;color:#293f60}
.help-headset{width:39px;height:39px;display:grid;place-items:center;flex:none;color:#203a5f}.help-headset svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.login-help>span:last-child{display:grid;gap:3px}.login-help strong{font-size:12px}.login-help small{color:#617691;font-size:12px;line-height:1.35}
.login-legal{display:flex;align-items:center;justify-content:space-between;gap:14px;color:#f2f6fc;font-size:10px;text-shadow:0 1px 4px #071b34c9}
.login-legal nav{display:flex;align-items:center;gap:12px}.login-legal a{color:inherit;text-decoration:none}.login-legal a:hover{text-decoration:underline}.login-legal i{height:13px;border-left:1px solid #94a7bf}
.recovery-back{margin:0 0 24px;padding:0;border:0;background:transparent;color:#0869ed;font-size:14px;font-weight:650}.login-card #recovery-content form{margin-top:23px}
.login-field>input{width:100%;min-height:51px;padding:0 14px;border:1px solid #d1deed;border-radius:9px;background:#fff;color:#152847;font-size:15px;font-weight:450}
@media(max-width:1050px){.login-screen{grid-template-columns:minmax(0,1.25fr) minmax(410px,1fr)}.login-story{padding-inline:34px}.login-access{padding-inline:24px}.login-card{padding:34px}.login-story h1{font-size:43px}}
.login-legal a{color:inherit}
@media(max-width:800px){.login-screen{position:relative;min-height:100svh;grid-template-columns:minmax(0,1fr);overflow:visible;background-position:center top;background-attachment:fixed}.login-story{min-height:330px;padding:25px 28px 22px;background:linear-gradient(90deg,rgba(0,23,46,var(--login-overlay-opacity)),rgba(6,29,55,calc(var(--login-overlay-opacity)*.65)) 65%,transparent)}.login-story:before{content:none}.login-story-content{width:100%;margin:0}.login-company{font-size:14px}.login-company>.brand-mark{width:42px;height:42px}.login-company>.brand-mark:before{width:32px;height:36px}.login-company>.brand-mark:after{width:12px;height:12px;right:0;bottom:3px;border-width:2px}.login-company strong{font-size:20px}.login-kicker{margin:19px 0 8px;font-size:10px;letter-spacing:2.6px}.login-story h1{font-size:32px;line-height:1.03;letter-spacing:-1px}.login-title-break{display:none}.login-story h1 span,.login-story h1 strong{display:inline}.login-lead{max-width:530px;margin:8px 0 0;font-size:14px}.login-benefits,.login-story-footer{display:none}.login-access{min-height:0;grid-template-rows:auto auto;gap:20px;padding:22px 18px 20px}.login-card{max-width:520px;padding:28px;border-radius:16px}.login-brand{padding-bottom:20px;font-size:24px}.login-brand .brand-mark{width:44px;height:48px}.login-brand .brand-mark:before{width:35px;height:40px}.login-brand small{font-size:18px}.login-card h2{font-size:29px}.portal-status{margin:17px 0 20px}.login-legal{max-width:520px;width:100%;margin:auto;flex-wrap:wrap;justify-content:center;text-align:center}}
@media(max-width:520px){.login-story{min-height:192px;padding:18px 22px;background:linear-gradient(90deg,rgba(0,23,46,var(--login-overlay-opacity)),rgba(6,29,55,calc(var(--login-overlay-opacity)*.7)) 65%,transparent),linear-gradient(0deg,rgba(6,23,46,calc(var(--login-overlay-opacity)*.8)),transparent 74%)}.login-kicker{margin-top:15px}.login-lead{max-width:360px;margin-top:6px;font-size:13px;line-height:1.35}.login-access{padding:18px 14px 17px}.login-card{padding:23px 20px}.login-brand{padding-bottom:19px}.login-card h2{font-size:27px}.login-intro{font-size:14px}.portal-status{min-height:57px;gap:10px;padding:10px 12px;font-size:12px}.portal-status svg{width:24px;height:24px}.login-card form{gap:15px}.login-field{font-size:13px}.field-control{min-height:49px}.field-control input{height:47px;font-size:16px}.login-submit{min-height:52px}.login-help{align-items:flex-start;margin-top:17px;padding-top:14px}.help-headset{width:32px;height:32px}.login-help small{font-size:11px}.login-legal{font-size:9px}.login-legal nav{gap:8px}}
@media(min-width:801px) and (max-height:820px){.login-story{padding-top:22px;padding-bottom:18px}.login-kicker{margin:22px 0 10px}.login-story h1{font-size:clamp(36px,2.7vw,46px)}.login-lead{margin:10px 0 14px;font-size:16px}.login-benefits{gap:8px}.login-benefits li{min-height:58px}.benefit-icon{width:54px;height:54px;border-radius:18px}.login-story-footer{min-height:46px}.login-access{padding-top:14px;padding-bottom:10px}.login-card{padding:26px 30px}.login-brand{padding-bottom:18px}.portal-status{min-height:52px;margin:13px 0 14px}.login-card form{gap:13px}.login-help{margin-top:13px;padding-top:12px}}
@media(prefers-reduced-motion:reduce){.field-control{transition:none}}

/* Navegação principal aprovada: notificações e ações da conta ficam na topbar. */
.topbar{gap:10px;overflow:visible}
.global-search{max-width:none;min-width:150px}
.notification-settings{position:relative;display:flex;align-items:center;gap:8px;flex:none;padding:0 8px;border:0;border-left:1px solid var(--rt-border);border-right:1px solid var(--rt-border);color:var(--rt-text)}
.notification-title{display:none}
.notification-bell{width:30px;height:34px;display:grid;place-items:center;position:relative;color:#364a67}
.notification-bell:after{content:"";position:absolute;top:6px;right:3px;width:8px;height:8px;border:1px solid white;border-radius:50%;background:var(--rt-danger)}
.notification-bell svg{width:21px;height:21px}
.notification-controls{display:flex;gap:4px}
.notification-button{min-height:30px;padding:3px 8px;border:1px solid var(--rt-border);border-radius:7px;background:white;color:#405675;font-size:10px;font-weight:650}
.notification-button:hover{border-color:#9bbef0;background:#f4f8ff;color:var(--rt-primary)}
.notification-button#push-enable{background:var(--rt-primary);border-color:var(--rt-primary);color:white}
.notification-button#push-enable:hover{background:var(--rt-primary-hover)}
.notification-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.account-area{position:relative;display:flex;align-items:center;gap:10px;flex:none}
.top-profile{min-width:124px;padding-left:0;border:0}
.top-profile>span:last-child{display:grid}
.top-profile b{font-size:12px}
.top-profile small{white-space:nowrap}
.account-menu-button{min-height:40px;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid #dce6f3;border-radius:9px;background:#eaf3ff;color:#17477e;font-size:12px;font-weight:650}
.account-menu-button:hover,.account-menu-button[aria-expanded=true]{border-color:#b6d2fb;background:#dcecff}
.account-menu-button svg{width:21px;height:21px}
.account-chevron{font-size:14px;line-height:1}
.account-menu{position:absolute;z-index:900;top:calc(100% + 8px);right:0;width:220px;padding:8px;border:1px solid #e7edf4;border-radius:10px;background:white;box-shadow:0 12px 28px #1024401c}
.account-menu[hidden]{display:none!important}
.account-menu-item{width:100%;min-height:40px;display:flex;align-items:center;gap:10px;padding:7px 9px;border:0;border-radius:7px;background:white;color:#233b5d;text-align:left;font-size:12px}
.account-menu-item:hover,.account-menu-item:focus-visible{background:#f2f7fe;color:#075fce}
.account-menu-item>span:last-child{display:grid;gap:2px}
.account-menu-item small{color:var(--rt-muted);font-size:10px;font-weight:400}
.account-item-icon{width:20px;flex:none;color:#536c8d;font-size:17px;text-align:center}
.account-menu hr{height:1px;margin:6px 0;border:0;background:var(--rt-border)}
.account-menu #logout{min-height:40px;color:#293f60}
.status-dot.offline{background:#93a1b4}
.vehicle-empty{margin:18px 8px 8px;font-size:13px}
#vehicles>.button{display:block;width:fit-content;margin:0 auto 14px}
@media(max-width:1200px){.notification-button#push-enable:before{content:"+"}.notification-button#push-disable:before{content:"−"}}
@media(min-width:1201px){.fleet-layout{grid-template-columns:minmax(350px,.9fr) minmax(400px,1.75fr) minmax(0,0fr)}}
@media(max-width:1450px){.status-tabs{flex-wrap:wrap;overflow:visible;row-gap:5px}}
@media(max-width:1200px){.topbar{gap:8px}.global-search{min-width:100px}.top-profile{min-width:auto}.account-area{gap:7px}.account-menu{right:0}}
@media(max-width:760px){.topbar{gap:5px}.global-search{min-width:70px;padding-inline:8px}.notification-settings{gap:3px;padding-inline:3px}.notification-bell{width:23px}.notification-bell:after{right:0}.notification-controls{gap:2px}.notification-button{width:29px;min-height:28px;padding:2px}.account-area{gap:0}.account-menu-button{min-height:36px;padding:0 7px}.account-menu{width:min(240px,calc(100vw - 76px))}.notice{position:static;z-index:auto}.fleet-layout{grid-template-rows:minmax(310px,44%) minmax(250px,1fr)}.fleet-layout .status-tabs{flex-wrap:wrap;overflow:visible;row-gap:5px}.vehicle-list.is-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:auto}.vehicle-list.is-empty .vehicle-empty{width:100%}.vehicle-list.is-empty>.button{flex:none;max-width:100%;white-space:normal}}
@media(max-width:430px){.top-profile{display:none}.topbar{gap:4px}.global-search{min-width:44px}.top-metrics{gap:2px}.metric-chip{min-width:23px}.notification-settings{padding-inline:2px}.notification-bell{width:19px}.notification-controls{gap:1px}.notification-button{width:24px;padding:1px}.account-menu-button{gap:4px;padding-inline:6px;font-size:11px}.account-menu-button svg{width:18px;height:18px}}

/* Mobile navigation and dedicated fleet screen; desktop rules above remain unchanged. */
.mobile-menu-toggle,.mobile-brand,.mobile-drawer-scrim,.mobile-map-tools,.mobile-vehicles-sheet,.mobile-vehicles-view{display:none}
.notification-bell{padding:0;border:0;background:transparent;color:inherit;font:inherit}
.notification-popover{display:contents}
.notification-popover>strong{display:none}
@media(max-width:768px){
 .app-shell{position:relative;height:100dvh;min-height:0;display:flex;overflow:hidden}
 .app-main{width:100%;height:100%;min-height:0}
 .topbar{position:relative;z-index:800;height:60px;min-height:60px;gap:12px;padding:0 14px;box-shadow:0 1px 5px #10244012}
 .mobile-menu-toggle{display:grid;place-items:center;flex:none;width:32px;height:40px;padding:0;border:0;background:transparent;color:#14243d;font-size:25px;line-height:1}
 .mobile-brand{display:flex;align-items:center;gap:7px;min-width:0;color:#10243d;text-decoration:none;font-size:15px;font-weight:750;line-height:1;letter-spacing:-.4px}
 .mobile-brand small{display:block;margin-top:3px;color:#7a8da8;font-size:11px;font-weight:500;letter-spacing:0}
 .mobile-brand .brand-mark{width:28px;height:34px;font-size:31px;color:#ff334b}
 .mobile-brand .brand-mark:after{right:0;bottom:2px}
 .global-search,.top-metrics{display:none}
 .notification-settings{position:static;display:block;flex:none;margin-left:auto;padding:0;border:0;background:transparent}
 .notification-bell{position:relative;display:grid;place-items:center;width:40px;height:42px;border:0;border-radius:8px;background:transparent;color:#172946}
 .notification-bell svg{width:23px;height:23px}
 .notification-bell:after{right:3px;top:4px}
 .notification-controls{display:flex;gap:6px}
 .notification-popover{display:none;position:absolute;z-index:950;top:calc(100% + 8px);right:56px;width:210px;padding:13px;border:1px solid var(--rt-border);border-radius:12px;background:white;box-shadow:var(--rt-shadow-md)}
 .notification-popover.open{display:grid;gap:10px}
 .notification-popover>strong{display:block;font-size:13px}
 .notification-button{width:auto;min-height:34px;padding:5px 10px}
 .account-area{position:relative;flex:none;gap:0}
 .top-profile{display:none}
 .account-menu-button{width:42px;height:42px;min-height:42px;justify-content:center;gap:0;padding:0;border:0;border-radius:50%;background:#eaf3ff;color:#163c71;font-size:0}
 .account-menu-button svg,.account-menu-button>span:not(.account-chevron){display:none}
 .account-menu-button:before{content:"RT";font-size:12px;font-weight:750}
 .account-chevron{position:absolute;right:-7px;top:14px;font-size:12px}
 .account-menu{right:0;top:calc(100% + 9px);width:min(240px,calc(100vw - 24px))}
 .sidebar{position:fixed;z-index:710;top:60px;bottom:0;left:0;width:min(215px,46vw);min-height:0;padding:12px 8px;background:linear-gradient(180deg,#071b33,#06182d);box-shadow:12px 0 30px #06182d25;transform:translateX(-105%);transition:transform .2s ease}
 .sidebar .brand{display:none}
 .sidebar nav{gap:3px;margin:0;overflow-y:auto}
 .nav-item{min-height:39px;gap:8px;padding:0 9px;border-radius:8px;font-size:12px;white-space:nowrap}
 .sidebar .nav-item{justify-content:flex-start}
 .sidebar .nav-item>span:not(.nav-icon){display:inline}
 .nav-icon{width:19px;flex:none;font-size:17px}
 .nav-icon svg{width:18px;height:18px;vertical-align:middle}
 .mobile-menu-open .sidebar{transform:translateX(0)}
 .mobile-drawer-scrim:not([hidden]){position:fixed;z-index:700;inset:60px 0 0;display:block;width:100%;height:calc(100% - 60px);border:0;background:#07182d75}
 .map-view{position:relative;display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}
 .mobile-map-tools{display:grid;flex:none;gap:9px;padding:12px 12px 10px;background:#fff;border-bottom:1px solid #e8edf4}
 .mobile-vehicle-tools{display:flex;gap:8px;align-items:center}
 .mobile-vehicle-tools .search-input{height:46px;min-width:0;flex:1;border-radius:10px;padding:0 12px}
 .mobile-vehicle-tools .search-input>span{font-size:22px}
 .mobile-vehicle-tools input{min-width:0;width:100%;height:100%;border:0;outline:0;background:transparent;color:var(--rt-text)}
 .mobile-vehicle-tools input:focus-visible{outline:0}
 .mobile-vehicle-tools .filter-button{width:46px;height:46px;flex:none;padding:0;border-radius:10px;font-size:20px}
 .mobile-status-tabs{display:grid;grid-template-columns:.8fr 1fr 1.35fr .8fr;gap:7px}
 .mobile-status-tabs button{min-width:0;min-height:52px;display:grid;align-content:center;justify-items:center;gap:1px;padding:4px 3px;border:1px solid #e6edf6;border-radius:10px;background:white;color:#687b97;font-size:11px;line-height:1.15;white-space:nowrap}
 .mobile-status-tabs button b{color:#14243d;font-size:15px}
 .mobile-status-tabs button.selected{border-color:#7db5ff;background:#eff7ff;color:#0969ef}
 .mobile-status-tabs button.selected b{color:#0969ef}
 .mobile-status-tabs .status-dot{display:none}
 .mobile-map-tools .filter-options{position:absolute;z-index:30;top:65px;right:12px;width:min(270px,calc(100vw - 24px));padding:12px;border:1px solid var(--rt-border);border-radius:10px;background:white;box-shadow:var(--rt-shadow-md)}
 .notice{position:relative;top:auto;left:auto;right:auto;z-index:25;flex:none;margin:0;padding:6px 10px;font-size:10px}
 .notice:empty{display:none}
 .fleet-layout{position:relative;display:block;flex:1;min-height:0;overflow:hidden;padding:0;border:0;background:transparent;box-shadow:none}
 .fleet-layout>.vehicle-panel,.fleet-layout>.vehicle-drawer{display:none!important}
 .fleet-layout.has-selection>.vehicle-drawer.open{position:fixed;z-index:660;inset:auto 10px calc(12px + env(safe-area-inset-bottom));display:flex!important;width:auto;height:min(58dvh,470px);overflow:auto;border:1px solid var(--rt-border);border-radius:14px;background:#fffffff8;box-shadow:var(--rt-shadow-md);backdrop-filter:blur(12px)}
 .fleet-layout.has-selection>.mobile-vehicles-sheet{display:none}
 .fleet-layout>.map-panel{position:absolute;inset:0;width:100%;height:100%;min-height:0;border:0;border-radius:0;box-shadow:none}
 .map-toolbar{top:10px;left:10px;right:10px;pointer-events:none}
 .map-switch{display:flex;gap:3px;pointer-events:auto}
 .map-switch button{min-height:38px;padding:0 9px;border-radius:9px;font-size:11px}
 .map-actions{pointer-events:auto;gap:7px}
 .map-control{width:42px;height:42px;border-radius:11px}
 #map{height:100%;min-height:0}
 .map-attribution-note{display:none}
 .mobile-vehicles-sheet{position:absolute;z-index:550;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;min-height:72px;padding:11px 14px;border:1px solid #e4ebf4;border-radius:14px;background:#fffffff5;color:#152743;text-align:left;box-shadow:0 5px 18px #10244019;backdrop-filter:blur(12px)}
 .mobile-vehicles-sheet>span:first-child{display:grid;gap:3px}
 .mobile-vehicles-sheet strong{font-size:14px}
 .mobile-vehicles-sheet small{color:#6b7f9b;font-size:12px}
 .mobile-vehicles-sheet>span:last-child{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e9f2ff;color:#174a88;font-size:28px;line-height:1}
 .mobile-vehicles-view{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;background:#fff}
 .mobile-vehicles-view[hidden]{display:none!important}
 .mobile-vehicles-heading{display:flex;align-items:center;gap:12px;flex:none;min-height:66px;padding:10px 14px;border-bottom:1px solid #e8edf4}
 .mobile-back-button{width:38px;height:38px;flex:none;border:0;border-radius:10px;background:#f1f5fa;color:#172946;font-size:25px;line-height:1}
 .mobile-vehicles-heading h1{display:flex;align-items:center;gap:7px;min-width:0;margin:0;font-size:21px;letter-spacing:-.5px}
 .mobile-add-vehicle{display:grid;place-items:center;width:46px;height:46px;flex:none;margin-left:auto;border:0;border-radius:11px;background:var(--rt-primary);color:white;font-size:29px;font-weight:400;line-height:1;box-shadow:0 2px 7px #0969ef32}
 .mobile-add-vehicle:disabled{opacity:.45;cursor:not-allowed}
 .mobile-vehicles-view>.mobile-vehicle-tools{flex:none;padding:11px 12px 9px}
 .mobile-filter-options{display:grid;gap:9px;padding:10px 12px;border-bottom:1px solid #edf1f6;background:#fafcff}
 .mobile-filter-options[hidden]{display:none}
 .mobile-filter-options label{display:grid;gap:4px;color:#5e718d;font-size:11px}
 .mobile-filter-options select{min-height:38px;padding:0 8px;border:1px solid #dce5f0;border-radius:8px;background:white;color:#1c3453}
 .mobile-vehicles-view>.mobile-status-tabs{flex:none;padding:0 12px 10px;border-bottom:1px solid #edf1f6}
 .mobile-vehicle-list{flex:1;min-height:0;overflow:auto;padding:0 12px calc(16px + env(safe-area-inset-bottom))}
 .mobile-vehicle-list.is-empty{display:flex;align-items:center;justify-content:center}
 .mobile-vehicle-list .vehicle-empty{margin:0;color:#657894;font-size:14px}
 .mobile-vehicle-row{width:100%;min-height:65px;display:flex;align-items:center;gap:9px;padding:7px 2px;border:0;border-bottom:1px solid #e9eef5;background:white;color:#152743;text-align:left}
 .mobile-vehicle-icon{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:11px;background:#f1f5fa;color:#1d3555;font-size:19px}
 .mobile-vehicle-row>.status-dot{width:9px;height:9px;flex:none}
 .mobile-vehicle-copy{display:grid;gap:2px;min-width:0;flex:1}
 .mobile-vehicle-copy strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
 .mobile-vehicle-copy small,.mobile-vehicle-meta{color:#7386a2;font-size:12px}
 .mobile-vehicle-meta{display:grid;gap:2px;justify-items:end;max-width:92px;text-align:right}
 .mobile-vehicle-meta span,.mobile-vehicle-meta small{overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}
 .mobile-vehicle-meta small{font-size:12px}
 .mobile-vehicle-arrow{flex:none;color:#597493;font-size:23px}
 #period-controls{display:none!important}
}
@media(max-width:430px){.topbar{gap:9px;padding-inline:11px}.mobile-brand{font-size:14px}.mobile-brand .brand-mark{width:26px}.notification-bell{width:36px}.account-menu-button{width:39px;height:39px}.mobile-map-tools{padding-inline:10px}.mobile-status-tabs{gap:5px}.mobile-status-tabs button{font-size:10px}.mobile-vehicles-heading{gap:9px;padding-inline:11px}.mobile-vehicles-view>.mobile-vehicle-tools{padding-inline:10px}.mobile-vehicles-view>.mobile-status-tabs{padding-inline:10px}.mobile-vehicle-list{padding-inline:10px}}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}

/* Minha conta: edição dos dados da própria conta autenticada. */
#module-view.account-view{padding-bottom:0}
#module-view.account-view>.module-header{align-items:flex-start}
#module-view.account-view>.module-header .eyebrow{margin-bottom:8px;color:var(--rt-primary);letter-spacing:.16em}
#module-view.account-view>.report-content{position:relative;display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:16px;padding:0 0 76px;border:0;background:transparent;box-shadow:none}
.account-card{min-width:0;padding:18px;border:1px solid var(--rt-border);border-radius:14px;background:var(--rt-surface);box-shadow:var(--rt-shadow-sm)}
.account-card>header{margin-bottom:15px;padding-left:38px;position:relative}
.account-card>header:before{content:"";position:absolute;left:0;top:1px;width:24px;height:24px;border-radius:7px;background:#eaf2ff}
.account-card>header h2{margin:0;color:var(--rt-text);font-size:16px;letter-spacing:-.2px}
.account-card>header p{margin:2px 0 0;color:var(--rt-muted);font-size:12px}
.account-fields{display:grid;gap:12px;min-width:0}
.account-fields-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.account-field{display:grid;gap:6px;min-width:0;color:#425673;font-size:12px;font-weight:550}
.account-field input,.account-field textarea{width:100%;min-width:0;min-height:40px;padding:9px 11px;border:1px solid #d9e2ee;border-radius:7px;background:#fff;color:var(--rt-text);font:inherit;font-weight:450}
.account-field textarea{min-height:78px;resize:vertical}
.account-field input[readonly]{background:#f8fafc;color:#63738d}
.account-notify{align-self:end;min-height:40px;color:#bf3440}
.account-counter{display:block;margin-top:4px;text-align:right;color:#8594aa;font-size:10px}
.account-lower{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.8fr);gap:16px;min-width:0}
.account-lower>.account-card{margin:0}
.account-lower .account-fields{margin-bottom:14px}
.account-session{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;align-items:center;padding:12px 10px;border-bottom:1px solid var(--rt-border)}
.account-session strong{font-size:12px;color:var(--rt-primary)}
.account-session small{grid-column:1;overflow-wrap:anywhere;color:var(--rt-muted);font-size:11px}
.account-session>span{grid-column:2;grid-row:1;border-radius:8px;padding:3px 7px;background:#e5f8ef;color:#119260;font-size:10px;font-weight:650}
.account-session .button{grid-column:2;grid-row:2;padding:6px 8px;font-size:10px}
.account-savebar{position:sticky;bottom:0;z-index:5;display:flex;justify-content:flex-end;gap:10px;margin:0 -24px;padding:10px 24px;border-top:1px solid var(--rt-border);background:#ffffffed;backdrop-filter:blur(8px)}
.account-savebar .button{min-height:40px}
#module-view.account-view>.inline-status{flex:none}
@media(max-width:1200px){.account-savebar{margin-inline:-18px;padding-inline:18px}}
@media(max-width:760px){
 #module-view.account-view{gap:10px;padding:12px 10px 0}
 #module-view.account-view>.module-header h1{font-size:22px}
 #module-view.account-view>.report-content{gap:10px;padding-bottom:12px}
 .account-card{padding:14px;border-radius:12px}
 .account-fields-three,.account-lower{grid-template-columns:minmax(0,1fr)}
 .account-fields{gap:10px}
 .account-notify{width:100%}
 .account-savebar{position:sticky;bottom:-12px;margin:0 -10px;padding:10px;background:#ffffffed}
 .account-savebar .button{flex:1}
}
#module-view.account-view .account-card>.account-field{margin-top:12px}

/* Usuários acessados por Conta: mantém o shell aprovado e a administração atual. */
.account-item-icon svg{display:block;width:19px;height:19px;margin:auto}
#module-view.account-users-view{gap:12px}
#module-view.account-users-view>.module-header{align-items:flex-start}
#module-view.account-users-view>.module-header .eyebrow{margin-bottom:8px;letter-spacing:.16em}
#module-view.account-users-view>.report-content{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:14px;padding:0 0 20px;border:0;background:transparent;box-shadow:none;overflow:visible}
#module-view.account-users-view .report-section{min-width:0;padding:18px;border:1px solid var(--rt-border);border-radius:14px;background:var(--rt-surface);box-shadow:var(--rt-shadow-sm);overflow:visible}
#module-view.account-users-view .report-section>h2{margin:0 0 14px;color:var(--rt-text);font-size:16px;letter-spacing:-.2px}
#module-view.account-users-view .users-list-section .data-table{width:100%;table-layout:auto}
#module-view.account-users-view .users-list-section .data-table th{padding:11px 12px;color:#536783;font-size:11px}
#module-view.account-users-view .users-list-section .data-table td{padding:12px;white-space:normal;overflow-wrap:anywhere;font-size:12px}
#module-view.account-users-view .users-admin-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:14px}
#module-view.account-users-view .users-admin-section>h2,#module-view.account-users-view .users-admin-section>.data-table{grid-column:1/-1}
#module-view.account-users-view .users-admin-section>.module-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:12px;padding:14px;border:1px solid var(--rt-border);border-radius:11px;background:#fbfcfe}
#module-view.account-users-view .users-admin-section>.account-user-form{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}
#module-view.account-users-view .users-admin-section>.module-editor h3{grid-column:1/-1;margin:0;color:var(--rt-text);font-size:14px}
#module-view.account-users-view .users-admin-section .module-field{min-width:0}
#module-view.account-users-view .users-admin-section .module-field input,#module-view.account-users-view .users-admin-section .module-field select{min-width:0;max-width:100%}
#module-view.account-users-view .users-admin-section .module-choice-list{grid-column:1/-1;max-height:220px;overflow:auto}
#module-view.account-users-view .account-edit-list{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;padding:12px;border:1px solid var(--rt-border);border-radius:11px;background:#fff}
#module-view.account-users-view .account-edit-list h3{margin:0 0 5px;color:var(--rt-text);font-size:13px}
#module-view.account-users-view .account-edit-list .button{width:100%;min-height:37px;text-align:left;white-space:normal;overflow-wrap:anywhere}
#module-view.account-users-view .account-role-form{grid-column:1}
#module-view.account-users-view .account-role-edit-list{grid-column:2}
#module-view.account-users-view .users-admin-section .data-table td{white-space:normal;overflow-wrap:anywhere}
@media(max-width:760px){
 #module-view.account-users-view{gap:10px;padding:12px 10px}
 #module-view.account-users-view>.module-header h1{font-size:22px}
 #module-view.account-users-view>.report-content{gap:10px;padding-bottom:16px}
 #module-view.account-users-view .report-section{padding:14px;border-radius:12px}
 #module-view.account-users-view .users-admin-section{grid-template-columns:minmax(0,1fr)}
 #module-view.account-users-view .users-admin-section>.module-editor,#module-view.account-users-view .users-admin-section>.account-user-form,#module-view.account-users-view .account-role-form,#module-view.account-users-view .account-role-edit-list{grid-column:1;grid-template-columns:minmax(0,1fr)}
 #module-view.account-users-view .users-admin-section>.module-editor h3,#module-view.account-users-view .users-admin-section .module-choice-list{grid-column:1}
 #module-view.account-users-view .users-list-section .data-table{min-width:560px}
 #module-view.account-users-view .users-list-section{overflow-x:auto}
}
#module-view.account-users-view .users-admin-section>.data-table{table-layout:fixed}
#module-view.account-users-view .users-admin-section>.data-table th:nth-child(1),#module-view.account-users-view .users-admin-section>.data-table td:nth-child(1){width:18%;white-space:nowrap;overflow-wrap:normal}
#module-view.account-users-view .users-admin-section>.data-table th:nth-child(2),#module-view.account-users-view .users-admin-section>.data-table td:nth-child(2){width:13%;white-space:nowrap;overflow-wrap:normal}
#module-view.account-users-view .users-admin-section>.data-table th:nth-child(3),#module-view.account-users-view .users-admin-section>.data-table td:nth-child(3){width:69%;overflow-wrap:anywhere}
#module-view.account-users-view .account-role-form .module-choice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:8px;max-height:260px;overflow:auto;padding:12px}
#module-view.account-users-view .account-role-form .module-choice-list legend{grid-column:1/-1}
#module-view.account-users-view .account-role-form .module-choice-list label{min-width:0;overflow-wrap:anywhere}
#module-view.account-users-view .users-admin-section>.module-editor button[type=button]{min-height:38px;padding:8px 12px;border:1px solid var(--rt-border);border-radius:8px;background:#fff;color:#415672;font-size:12px;font-weight:650}
#module-view.account-users-view .users-list-section .data-table{table-layout:fixed}
#module-view.account-users-view .users-list-section .data-table th:nth-child(1),#module-view.account-users-view .users-list-section .data-table td:nth-child(1){width:22%}
#module-view.account-users-view .users-list-section .data-table th:nth-child(2),#module-view.account-users-view .users-list-section .data-table td:nth-child(2){width:28%}
#module-view.account-users-view .users-list-section .data-table th:nth-child(3),#module-view.account-users-view .users-list-section .data-table td:nth-child(3){width:20%}
#module-view.account-users-view .users-list-section .data-table th:nth-child(4),#module-view.account-users-view .users-list-section .data-table td:nth-child(4){width:12%}
#module-view.account-users-view .users-list-section .data-table th:nth-child(5),#module-view.account-users-view .users-list-section .data-table td:nth-child(5){width:18%}
#module-view.account-users-view>.module-header>.users-create-shortcut{flex:none}
@media(max-width:760px){#module-view.account-users-view .users-list-section .data-table{min-width:700px}}
@media(max-width:760px){
 #module-view.account-users-view>.module-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;row-gap:8px}
 #module-view.account-users-view>.module-header>div{grid-column:1/-1;grid-row:1}
 #module-view.account-users-view>.module-header>.users-create-shortcut{grid-column:1;grid-row:2}
 #module-view.account-users-view>.module-header>#module-refresh{grid-column:2;grid-row:2}
 #module-view.account-users-view .users-admin-section>.data-table{min-width:650px}
 #module-view.account-users-view .users-admin-section{overflow-x:auto}
}

/* Conta → Logs avançados: reaproveita sessões e auditoria do carregador existente. */
#module-view.account-logs-view{gap:12px}
#module-view.account-logs-view>.module-header{align-items:flex-start}
#module-view.account-logs-view>.module-header .eyebrow{margin-bottom:8px;letter-spacing:.16em}
#module-view.account-logs-view>.report-content{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:14px;padding:0 0 20px;border:0;background:transparent;box-shadow:none;overflow:visible}
#module-view.account-logs-view .report-section{min-width:0;padding:18px;border:1px solid var(--rt-border);border-radius:14px;background:var(--rt-surface);box-shadow:var(--rt-shadow-sm)}
#module-view.account-logs-view .report-section>h2{margin:0 0 14px;color:var(--rt-text);font-size:16px;letter-spacing:-.2px}
#module-view.account-logs-view .logs-sessions-section .data-table,#module-view.account-logs-view .logs-audit-section .data-table{width:100%;table-layout:fixed}
#module-view.account-logs-view .data-table th{padding:11px 10px;color:#536783;font-size:11px}
#module-view.account-logs-view .data-table td{padding:10px;white-space:normal;overflow-wrap:anywhere;font-size:12px}
#module-view.account-logs-view .logs-sessions-section .data-table th:nth-child(1),#module-view.account-logs-view .logs-sessions-section .data-table td:nth-child(1){width:22%}
#module-view.account-logs-view .logs-sessions-section .data-table th:nth-child(2),#module-view.account-logs-view .logs-sessions-section .data-table td:nth-child(2){width:22%}
#module-view.account-logs-view .logs-sessions-section .data-table th:nth-child(3),#module-view.account-logs-view .logs-sessions-section .data-table td:nth-child(3){width:22%}
#module-view.account-logs-view .logs-sessions-section .data-table th:nth-child(4),#module-view.account-logs-view .logs-sessions-section .data-table td:nth-child(4){width:14%}
#module-view.account-logs-view .logs-sessions-section .data-table th:nth-child(5),#module-view.account-logs-view .logs-sessions-section .data-table td:nth-child(5){width:20%}
#module-view.account-logs-view .logs-audit-section .module-field{max-width:380px;margin-bottom:12px}
#module-view.account-logs-view .logs-audit-section .data-table th:nth-child(1),#module-view.account-logs-view .logs-audit-section .data-table td:nth-child(1){width:18%}
#module-view.account-logs-view .logs-audit-section .data-table th:nth-child(2),#module-view.account-logs-view .logs-audit-section .data-table td:nth-child(2){width:20%}
#module-view.account-logs-view .logs-audit-section .data-table th:nth-child(3),#module-view.account-logs-view .logs-audit-section .data-table td:nth-child(3){width:20%}
#module-view.account-logs-view .logs-audit-section .data-table th:nth-child(4),#module-view.account-logs-view .logs-audit-section .data-table td:nth-child(4){width:25%}
#module-view.account-logs-view .logs-audit-section .data-table th:nth-child(5),#module-view.account-logs-view .logs-audit-section .data-table td:nth-child(5){width:17%}
@media(max-width:760px){
 #module-view.account-logs-view{gap:10px;padding:12px 10px}
 #module-view.account-logs-view>.module-header h1{font-size:22px}
 #module-view.account-logs-view>.report-content{gap:10px;padding-bottom:16px}
 #module-view.account-logs-view .report-section{padding:14px;border-radius:12px;overflow:hidden}
 #module-view.account-logs-view .logs-audit-section .module-field{max-width:none}
 #module-view.account-logs-view .data-table thead{display:none}
 #module-view.account-logs-view .data-table,#module-view.account-logs-view .data-table tbody{display:block;width:100%}
 #module-view.account-logs-view .data-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 10px;padding:10px 0;border-bottom:1px solid var(--rt-border)}
 #module-view.account-logs-view .data-table tbody td{display:block;width:auto!important;min-width:0;padding:2px 0;border:0;overflow-wrap:anywhere;word-break:normal}
 #module-view.account-logs-view .logs-sessions-section .data-table tbody td:nth-child(-n+3),#module-view.account-logs-view .logs-audit-section .data-table tbody td:first-child{white-space:nowrap;font-size:11px}
 #module-view.account-logs-view .data-table tbody td::before{display:block;margin-bottom:2px;color:var(--rt-muted);font-size:10px;font-weight:650}
 #module-view.account-logs-view .logs-sessions-section .data-table tbody td:nth-child(1)::before{content:'Criada em'}
 #module-view.account-logs-view .logs-sessions-section .data-table tbody td:nth-child(2)::before{content:'Última atividade'}
 #module-view.account-logs-view .logs-sessions-section .data-table tbody td:nth-child(3)::before{content:'Expira em'}
 #module-view.account-logs-view .logs-sessions-section .data-table tbody td:nth-child(4)::before{content:'Estado'}
 #module-view.account-logs-view .logs-sessions-section .data-table tbody td:nth-child(5)::before{content:'Ação'}
 #module-view.account-logs-view .logs-audit-section .data-table tbody td:nth-child(1)::before{content:'Quando'}
 #module-view.account-logs-view .logs-audit-section .data-table tbody td:nth-child(2)::before{content:'Ator'}
 #module-view.account-logs-view .logs-audit-section .data-table tbody td:nth-child(3)::before{content:'Ação'}
 #module-view.account-logs-view .logs-audit-section .data-table tbody td:nth-child(4)::before{content:'Entidade'}
 #module-view.account-logs-view .logs-audit-section .data-table tbody td:nth-child(5)::before{content:'Resultado'}
 #module-view.account-logs-view .data-table tbody td:last-child .button{min-height:32px;padding:6px 9px}
}

/* Organização de Usuários em áreas próprias sem alterar os fluxos atuais. */
#module-view.account-users-view>.report-content>.users-workspace-tabs{display:flex;gap:6px;padding:5px;border:1px solid var(--rt-border);border-radius:11px;background:#eaf0f8}
#module-view.account-users-view .users-workspace-tab{min-height:38px;padding:8px 15px;border:1px solid transparent;border-radius:8px;background:transparent;color:#526681;font-size:12px;font-weight:650}
#module-view.account-users-view .users-workspace-tab.active{border-color:#d5e1f2;background:#fff;color:var(--rt-primary);box-shadow:0 1px 3px #10243a12}
#module-view.account-users-view>.report-content>.users-workspace-panel{min-width:0;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible}
#module-view.account-users-view .users-user-admin>.account-user-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:12px;padding:14px;border:1px solid var(--rt-border);border-radius:11px;background:#fbfcfe}
#module-view.account-users-view .users-user-admin>.account-user-form h3{grid-column:1/-1;margin:0;color:var(--rt-text);font-size:14px}
#module-view.account-users-view .users-user-admin>.account-user-form button[type=button]{min-height:38px;padding:8px 12px;border:1px solid var(--rt-border);border-radius:8px;background:#fff;color:#415672;font-size:12px;font-weight:650}
#module-view.account-users-view .users-user-admin .account-edit-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:7px;min-width:0;margin-top:14px;padding-top:12px;border-top:1px solid var(--rt-border)}
#module-view.account-users-view .users-user-admin .account-edit-list h3{grid-column:1/-1;margin:0 0 3px;color:var(--rt-text);font-size:13px}
#module-view.account-users-view .users-user-admin .account-edit-list .button{min-width:0;white-space:normal;overflow-wrap:anywhere}
#module-view.account-users-view .users-roles-content .users-admin-section>h2{font-size:16px}
#module-view.account-users-view .users-roles-content .users-admin-section>.module-editor{margin-top:14px}
@media(max-width:760px){
 #module-view.account-users-view>.report-content>.users-workspace-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px}
 #module-view.account-users-view .users-workspace-tab{min-width:0;min-height:42px;padding:7px 5px;font-size:11px}
 #module-view.account-users-view .users-user-admin>.account-user-form{grid-template-columns:minmax(0,1fr)}
 #module-view.account-users-view .users-user-admin>.account-user-form h3{grid-column:1}
 #module-view.account-users-view .users-user-admin .account-edit-list{grid-template-columns:minmax(0,1fr)}
 #module-view.account-users-view .users-roles-content .users-admin-section>.data-table{min-width:650px}
 #module-view.account-users-view .users-roles-content .users-admin-section{overflow-x:auto}
}
#module-view .settings-preferences{align-items:end}
#module-view .settings-preferences h2{grid-column:1/-1}
#module-view .settings-company p{margin:5px 0;color:var(--rt-muted);font-size:12px}
.white-label-hub{display:grid;gap:12px;min-width:0}
.white-label-hub>h2{margin:0}
.white-label-intro{margin:0;color:var(--rt-muted);font-size:12px;line-height:1.5}
.white-label-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;min-width:0}
.white-label-tab{min-width:0;min-height:40px;padding:8px 10px;border:1px solid var(--rt-border);border-radius:9px;background:var(--rt-surface);color:var(--rt-muted);font-size:12px;font-weight:650;text-align:left;overflow-wrap:anywhere}
.white-label-tab[aria-selected=true]{border-color:#8dbbff;background:#edf5ff;color:var(--rt-primary)}
.white-label-tab:focus-visible{outline:3px solid #83b4ff;outline-offset:2px}
.white-label-panels{min-width:0;padding:14px;border:1px solid var(--rt-border);border-radius:10px;background:#fbfcfe}
.white-label-panel[hidden]{display:none}
.white-label-panel h3{margin:0 0 8px;color:var(--rt-text);font-size:14px}
.white-label-panel p{margin:0;color:var(--rt-muted);font-size:12px;line-height:1.5}
.white-label-panel .data-table{margin-top:8px}
@media(max-width:760px){.white-label-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.white-label-tab{padding:7px;font-size:11px}.white-label-panels{padding:12px}}

.brand>[data-brand-logo],.mobile-brand>[data-brand-logo]{max-width:132px;max-height:42px;object-fit:contain}.sidebar .brand>[data-brand-logo]{max-width:148px}.white-label-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:10px;min-width:0}.white-label-form>.button{justify-self:start}.white-label-file input{padding:7px}.white-label-file small{color:var(--rt-muted);font-size:11px;font-weight:450}.white-label-toggle{display:flex;align-items:center;gap:8px;min-height:38px;color:var(--rt-text);font-size:12px}.white-label-toggle input{width:17px;height:17px;accent-color:var(--rt-primary)}.white-label-login-preview{display:grid;gap:10px;max-width:420px;margin:6px auto;padding:22px;border:1px solid var(--rt-border);border-radius:14px;background:#fff;box-shadow:var(--rt-shadow-sm)}.white-label-login-preview img{max-width:180px;max-height:54px;object-fit:contain}.white-label-login-preview h4{margin:4px 0 0;font-size:21px}.white-label-login-preview p{color:var(--rt-muted)}.white-label-login-preview>span{padding:10px;border-radius:8px;background:#0969ef;color:white;text-align:center;font-weight:700}.white-label-login-preview>small{color:var(--rt-muted)}.white-label-internal-preview{display:flex;align-items:center;gap:10px;margin-top:12px;padding:12px;border-radius:9px;background:var(--rt-sidebar);color:#fff}.white-label-internal-preview img{max-width:130px;max-height:36px;object-fit:contain}.white-label-internal-preview strong{border-left:3px solid var(--brand-preview-color,#0969ef);padding-left:9px}.white-label-domain-note{margin-top:12px!important}
@media(max-width:760px){.white-label-form{grid-template-columns:minmax(0,1fr)}.white-label-form>.button{width:100%}.white-label-login-preview{padding:16px}}
.white-label-domain-form{grid-template-columns:minmax(0,1fr) auto auto;margin-bottom:12px;padding:12px;border:1px solid var(--rt-border);border-radius:10px;background:#fbfcfe}.white-label-domain-form .white-label-toggle{white-space:nowrap}.white-label-domain-actions{display:flex;flex-wrap:wrap;gap:4px;min-width:210px}.white-label-domain-actions .button{padding:6px 8px;font-size:11px;white-space:nowrap}.button-danger{border-color:#f1a0a5;background:#fff2f3;color:#bd2834}.button-danger:hover{background:#ffe5e7}.white-label-domain-list .data-table-wrap{max-width:100%;overflow-x:auto}.white-label-domain-list .data-table{min-width:580px}
@media(max-width:760px){.white-label-domain-form{grid-template-columns:minmax(0,1fr)}.white-label-domain-form .white-label-toggle{justify-self:start}.white-label-domain-form>.button{width:100%}.white-label-domain-actions{min-width:0}}
.white-label-asset-preview{display:block;max-width:min(100%,220px);max-height:120px;border:1px solid var(--rt-border);border-radius:8px;background:#fff;object-fit:contain}
.white-label-dns-record{display:block;margin-top:5px;color:var(--rt-muted);font-size:10px;overflow-wrap:anywhere}

/* Veículos: tabela como área de trabalho e detalhes sob demanda. */
#module-view>.report-content.vehicles-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,38%);align-content:start;align-items:start;gap:14px;min-width:0;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible}
.vehicles-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,38%);align-content:start;align-items:start;gap:14px;min-width:0;overflow:visible}
.vehicles-workspace>.vehicle-command-bar{grid-column:1/-1;grid-row:1}
.vehicles-workspace>.vehicle-onboarding-card{grid-column:1/-1;grid-row:2}
.vehicles-workspace>.inline-status{grid-column:1/-1;grid-row:4}
.vehicle-command-bar{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:start;gap:9px;min-width:0}
.vehicle-filters{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;padding:0;border:0;background:transparent}
.vehicle-filters>.module-field{min-width:0}
.vehicle-filters>.module-field input{min-height:46px;border-radius:10px;background:#fff}
.vehicle-filter-controls{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:9px;padding:12px;border:1px solid var(--rt-border);border-radius:12px;background:#fff;box-shadow:var(--rt-shadow-sm)}
.vehicle-filter-controls[hidden]{display:none}
.vehicle-filter-submit{grid-column:1/-1;justify-self:end;min-height:36px;padding:7px 14px;border:1px solid var(--rt-border);border-radius:8px;background:#fff;color:var(--rt-text);font-weight:650}
.vehicle-command-bar>.button{min-height:46px;white-space:nowrap}
.vehicle-csv-menu{position:relative;z-index:12}
.vehicle-csv-menu>summary{display:grid;place-items:center;width:46px;height:46px;list-style:none;border:1px solid var(--rt-border);border-radius:10px;background:#fff;color:var(--rt-text);font-size:24px;cursor:pointer}
.vehicle-csv-menu>summary::-webkit-details-marker{display:none}
.vehicle-csv-actions{position:absolute;top:calc(100% + 6px);right:0;width:min(350px,calc(100vw - 32px));max-height:min(70vh,620px);overflow:auto;padding:14px;border:1px solid var(--rt-border);border-radius:12px;background:#fff;box-shadow:var(--rt-shadow-md)}
.vehicle-csv-actions h2{font-size:14px}
.vehicle-onboarding-card{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:8px;padding:13px 16px;border:1px solid var(--rt-border);border-radius:13px;background:#fff;box-shadow:var(--rt-shadow-sm)}
.vehicle-onboarding-card{height:auto;min-height:0;overflow:visible}
.vehicle-onboarding-card h2{margin:0!important;font-size:15px!important}
.vehicle-onboarding-card h2{grid-column:1/-1}
.vehicle-onboarding-card>.button{min-height:36px;white-space:normal}
.vehicle-onboarding-card>.empty-state{grid-column:1/-1;min-height:0;margin:0;padding:0;font-size:11px}
.vehicle-fleet-card{grid-column:1;grid-row:3;min-width:0;padding:15px;border:1px solid var(--rt-border);border-radius:14px;background:#fff;box-shadow:var(--rt-shadow-sm);overflow:visible!important}
.vehicle-fleet-card>h2{margin:0 0 12px!important;color:var(--rt-text);font-size:17px!important}
.vehicle-fleet-card .data-table-wrap{max-height:none;overflow:visible}
.vehicle-fleet-table{width:100%;table-layout:fixed}
.vehicle-fleet-table th,.vehicle-fleet-table td{padding:9px 7px;font-size:11px;white-space:normal;overflow-wrap:anywhere}
.vehicle-fleet-table th:nth-child(1){width:18%}.vehicle-fleet-table th:nth-child(2){width:12%}.vehicle-fleet-table th:nth-child(3){width:14%}.vehicle-fleet-table th:nth-child(4){width:13%}.vehicle-fleet-table th:nth-child(5){width:11%}.vehicle-fleet-table th:nth-child(6){width:18%}.vehicle-fleet-table th:nth-child(7){width:14%}
.vehicle-fleet-table tbody tr{cursor:pointer}
.vehicle-fleet-table tbody tr:hover{background:#f0f6ff}
.vehicle-fleet-table tbody tr:focus-visible{outline:2px solid var(--rt-primary);outline-offset:-2px}
.vehicle-fleet-table .vehicle-name-cell{display:grid;gap:3px}
.vehicle-fleet-table .vehicle-name-cell small{color:var(--rt-muted)}
.vehicle-fleet-table td:last-child{white-space:nowrap}.vehicle-fleet-table td:last-child .button{display:inline-grid;place-items:center;width:27px;min-width:27px;min-height:28px;margin:1px;padding:2px;font-size:13px}
.vehicle-detail-panel{grid-column:2;grid-row:3;position:sticky;top:12px;align-self:start;max-height:calc(100vh - 110px);overflow:auto;padding:18px;border:1px solid var(--rt-border);border-radius:14px;background:#fff;box-shadow:var(--rt-shadow-sm)}
.vehicle-detail-title{padding-right:38px;font-size:20px!important}
.vehicle-detail-close{position:absolute;top:12px;right:12px;width:34px;height:34px;border:0;border-radius:8px;background:#f3f6fa;color:var(--rt-text);font-size:24px}
.vehicle-detail-tabs{position:sticky;top:-18px;z-index:1;display:flex;justify-content:space-between;gap:4px;margin:0 -18px 12px;padding:10px 12px 0;border-bottom:1px solid var(--rt-border);background:#fff}
.vehicle-detail-tabs button{min-height:38px;padding:7px 8px;border:0;border-bottom:3px solid transparent;background:transparent;color:var(--rt-muted);font-size:11px;font-weight:650}
.vehicle-detail-tabs button[aria-selected=true]{border-color:var(--rt-primary);color:var(--rt-primary)}
.vehicle-detail-tab-panel[hidden]{display:none!important}
.vehicle-detail-tab-panel>p{padding:10px 0;border-bottom:1px solid #edf1f6;color:var(--rt-text);font-size:12px}
.vehicle-detail-panel .report-section{padding:12px;border:1px solid var(--rt-border);border-radius:10px;background:#fff;overflow:visible}
.vehicle-detail-panel .module-editor{grid-template-columns:minmax(0,1fr);padding:9px 0}
.vehicle-editor-dialog{width:min(560px,calc(100vw - 28px));max-width:none;max-height:calc(100vh - 28px);padding:0;border:1px solid var(--rt-border);border-radius:16px;background:#fff;color:var(--rt-text);box-shadow:0 24px 70px #0a1b3040}
.vehicle-editor-dialog::backdrop{background:#0a1b3070;backdrop-filter:blur(3px)}
.vehicle-editor-dialog .vehicle-editor-form{grid-template-columns:repeat(2,minmax(0,1fr));padding:22px;border:0;background:transparent;box-shadow:none}
.vehicle-editor-dialog .vehicle-editor-form h2{grid-column:1/-1;font-size:19px}
.vehicle-editor-dialog .vehicle-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}.vehicle-editor-dialog .vehicle-form-actions .button{min-height:40px}
@media(min-width:1500px){#module-view>.report-content.vehicles-workspace,.vehicles-workspace{grid-template-columns:minmax(0,1fr) minmax(390px,34%);gap:18px}.vehicle-fleet-table th,.vehicle-fleet-table td{padding:12px;font-size:12px}}
@media(max-width:900px){#module-view>.report-content.vehicles-workspace,.vehicles-workspace{grid-template-columns:minmax(0,1fr)}.vehicles-workspace>.vehicle-command-bar,.vehicles-workspace>.vehicle-onboarding-card,.vehicles-workspace>.inline-status,.vehicle-fleet-card,.vehicle-detail-panel{grid-column:1}.vehicles-workspace>.vehicle-command-bar,.vehicles-workspace>.vehicle-onboarding-card,.vehicles-workspace>.inline-status,.vehicle-fleet-card{grid-row:auto}.vehicle-detail-panel{grid-row:auto;position:fixed;z-index:850;inset:auto 10px 10px;max-height:min(84svh,760px);border-radius:18px;box-shadow:0 16px 50px #10243a35}.vehicle-detail-tabs{top:-18px}}
@media(max-width:760px){#module-view>.report-content.vehicles-workspace,.vehicles-workspace{gap:10px}.vehicle-command-bar{grid-template-columns:minmax(0,1fr) auto;gap:7px}.vehicle-filters{grid-column:1/-1;grid-row:1}.vehicle-command-bar>.button{grid-row:2}.vehicle-command-bar>.button-secondary{grid-column:1}.vehicle-command-bar>.button-primary{grid-column:1;grid-row:3}.vehicle-csv-menu{grid-column:2;grid-row:2}.vehicle-filter-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.vehicle-onboarding-card{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.vehicle-onboarding-card h2,.vehicle-onboarding-card>.empty-state{grid-column:1/-1}.vehicle-onboarding-card>.button{font-size:11px}.vehicle-fleet-card{padding:12px}.vehicle-fleet-table,.vehicle-fleet-table tbody{display:block;width:100%}.vehicle-fleet-table thead{display:none}.vehicle-fleet-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;margin:0 0 8px;padding:11px;border:1px solid #e5ebf3;border-radius:12px;background:#fff}.vehicle-fleet-table tbody td{display:block;width:auto!important;padding:2px 0;border:0;font-size:11px}.vehicle-fleet-table tbody td:nth-child(1){grid-column:1;grid-row:1;font-size:14px;font-weight:700}.vehicle-fleet-table tbody td:nth-child(2){grid-column:1;grid-row:2;color:var(--rt-muted)}.vehicle-fleet-table tbody td:nth-child(3),.vehicle-fleet-table tbody td:nth-child(4){display:none}.vehicle-fleet-table tbody td:nth-child(5){grid-column:1;grid-row:3}.vehicle-fleet-table tbody td:nth-child(6){grid-column:2;grid-row:1/4;align-self:center;text-align:right;color:var(--rt-muted)}.vehicle-fleet-table tbody td:nth-child(7){grid-column:1/-1;display:flex;gap:5px}.vehicle-fleet-table tbody td:nth-child(7) .button{flex:1;min-height:34px;font-size:11px}.vehicle-detail-tabs{overflow-x:auto;justify-content:flex-start}.vehicle-detail-tabs button{flex:none}.vehicle-detail-panel .data-table-wrap{overflow:visible}.vehicle-detail-panel .data-table{width:100%;min-width:0;table-layout:fixed}.vehicle-detail-panel .data-table th,.vehicle-detail-panel .data-table td{padding:5px 3px;font-size:10px;white-space:normal;overflow-wrap:anywhere}}
@media(max-width:430px){.vehicle-editor-dialog .vehicle-editor-form{grid-template-columns:minmax(0,1fr);padding:16px}.vehicle-editor-dialog .vehicle-editor-form h2{grid-column:1}.vehicle-editor-dialog .vehicle-form-actions{grid-column:1;flex-direction:column-reverse}.vehicle-editor-dialog .vehicle-form-actions .button{width:100%}.vehicle-filter-controls{grid-template-columns:minmax(0,1fr)}.vehicle-onboarding-card{grid-template-columns:minmax(0,1fr)}}

/* Equipamentos: inventário em foco, filtros e ações ocasionais sob demanda. */
#module-view>.report-content.devices-workspace,.devices-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,39%);align-content:start;align-items:start;gap:14px;min-width:0;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible}
.devices-workspace>.device-command-bar,.devices-workspace>.device-summary-cards,.devices-workspace>.inline-status{grid-column:1/-1}
.device-command-bar{display:grid;grid-template-columns:minmax(240px,1fr) auto auto auto;align-items:start;gap:9px;min-width:0}
.device-command-bar>.module-field{min-width:0}.device-command-bar>.module-field input{min-height:46px;border-radius:10px;background:#fff}
.device-command-bar>input[name=search]{box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:0 14px;border:1px solid var(--rt-border);border-radius:10px;background:#fff;color:var(--rt-text);font-size:14px}
.device-command-bar>.button{min-height:46px;white-space:nowrap}
.device-filters{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px;padding:14px;border:1px solid var(--rt-border);border-radius:12px;background:#fff;box-shadow:var(--rt-shadow-sm)}
.device-filters[hidden]{display:none!important}.device-filters>.button{justify-self:end;grid-column:1/-1}
.device-actions-menu{position:relative;z-index:20}.device-actions-menu>summary{display:grid;place-items:center;list-style:none;width:46px;height:46px;border:1px solid var(--rt-border);border-radius:10px;background:#fff;color:var(--rt-text);font-size:23px;cursor:pointer}.device-actions-menu>summary::-webkit-details-marker{display:none}
.device-actions-menu[open]{display:flex;flex-direction:column;gap:4px;position:absolute;top:0;right:0;min-width:210px;padding:7px;border:1px solid var(--rt-border);border-radius:11px;background:#fff;box-shadow:var(--rt-shadow-md)}.device-actions-menu[open]>summary{align-self:flex-end;width:34px;height:34px}.device-menu-action{width:100%;min-height:38px;padding:8px 10px;border:0;border-radius:7px;background:#fff;color:var(--rt-text);text-align:left;font-size:12px;cursor:pointer}.device-menu-action:hover{background:#edf5ff;color:var(--rt-primary)}
.device-csv-actions{display:none}.device-csv-dialog[open]>.device-csv-actions{display:grid;gap:8px;margin:0;padding:22px;border:0;box-shadow:none}.device-csv-dialog .device-csv-actions>h2{margin:0;font-size:18px}.device-csv-dialog .device-csv-actions>.module-field{margin:0}.device-csv-dialog .device-csv-actions .data-table-wrap{max-width:100%;overflow:auto}
.device-summary-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;min-width:0}.device-summary-card{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:82px;padding:16px;border:1px solid var(--rt-border);border-radius:13px;background:#fff;box-shadow:var(--rt-shadow-sm);color:var(--rt-muted);font-size:13px}.device-summary-card strong{color:var(--rt-text);font-size:23px}
.device-inventory-card{grid-column:1;grid-row:3;min-width:0;padding:15px;border:1px solid var(--rt-border);border-radius:14px;background:#fff;box-shadow:var(--rt-shadow-sm);overflow:visible!important}.device-inventory-card>h2{margin:0 0 12px!important;color:var(--rt-text);font-size:18px!important}.device-inventory-card .data-table-wrap{max-height:none;overflow:auto}.device-inventory-table{width:100%;table-layout:fixed}.device-inventory-table th,.device-inventory-table td{padding:9px 7px;font-size:11px;white-space:normal;overflow-wrap:anywhere}.device-inventory-table th:nth-child(1){width:22%}.device-inventory-table th:nth-child(2){width:15%}.device-inventory-table th:nth-child(3){width:12%}.device-inventory-table th:nth-child(4){width:17%}.device-inventory-table th:nth-child(5){width:15%}.device-inventory-table th:nth-child(6){width:12%}.device-inventory-table th:nth-child(7){width:7%}.device-inventory-table tbody tr{cursor:pointer}.device-inventory-table tbody tr:hover,.device-inventory-table tbody tr.is-selected{background:#eaf3ff}.device-inventory-table tbody tr:focus-visible{outline:2px solid var(--rt-primary);outline-offset:-2px}.device-inventory-table .device-name-cell{display:grid;gap:3px}.device-inventory-table .device-name-cell strong{color:var(--rt-text)}.device-inventory-table .device-name-cell small{color:var(--rt-muted)}.device-inventory-table td:last-child{white-space:nowrap}.device-inventory-table td:last-child .button{display:inline-grid;place-items:center;width:27px;min-width:27px;min-height:28px;margin:1px;padding:2px;font-size:13px}
.device-inventory-table.has-device-registry th:nth-child(1){width:20%}.device-inventory-table.has-device-registry th:nth-child(2){width:13%}.device-inventory-table.has-device-registry th:nth-child(3){width:11%}.device-inventory-table.has-device-registry th:nth-child(4){width:15%}.device-inventory-table.has-device-registry th:nth-child(5){width:14%}.device-inventory-table.has-device-registry th:nth-child(6){width:13%}.device-inventory-table.has-device-registry th:nth-child(7){width:14%}.device-inventory-table.has-device-registry th:nth-child(8){width:10%}.device-inventory-table th:last-child{white-space:nowrap}.device-inventory-table td:nth-child(n+2):nth-last-child(n+2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.device-inventory-table td:last-child .button{width:22px;min-width:22px;padding:1px}
.device-detail-placeholder{grid-column:2;grid-row:3;display:grid;align-content:center;justify-items:center;min-height:420px;padding:24px;border:1px solid var(--rt-border);border-radius:14px;background:#fff;box-shadow:var(--rt-shadow-sm);color:var(--rt-text);text-align:center}.device-detail-placeholder p{max-width:260px;color:var(--rt-muted);font-size:13px;line-height:1.5}
.device-detail-panel{grid-column:2;grid-row:3;position:sticky;top:12px;align-self:start;max-height:calc(100vh - 105px);overflow:auto;padding:16px;border:1px solid var(--rt-border);border-radius:14px;background:#fff;box-shadow:var(--rt-shadow-sm)}.device-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:3px 3px 14px}.device-detail-header h2{margin:0;color:var(--rt-text);font-size:20px}.device-detail-header p{margin:4px 0;color:var(--rt-muted);font-size:12px}.device-detail-close{width:34px;height:34px;border:0;border-radius:8px;background:#f2f5f9;color:var(--rt-text);font-size:24px;cursor:pointer}.device-detail-tabs{position:sticky;top:-16px;z-index:2;display:flex;justify-content:space-between;gap:3px;margin:0 -16px 12px;padding:7px 10px 0;border-bottom:1px solid var(--rt-border);background:#fff}.device-detail-tabs button{flex:none;min-height:40px;padding:6px 8px;border:0;border-bottom:3px solid transparent;background:transparent;color:var(--rt-muted);font-size:11px;font-weight:650}.device-detail-tabs button[aria-selected=true]{border-color:var(--rt-primary);color:var(--rt-primary)}.device-detail-tab-panel[hidden]{display:none!important}.device-detail-panel .report-section{margin:0 0 10px;padding:12px;border:1px solid var(--rt-border);border-radius:10px;background:#fff;overflow:visible}.device-detail-panel .report-section>h2{margin:0 0 9px!important;font-size:15px!important}.device-detail-panel .report-section>p{padding:7px 0;border-bottom:1px solid #edf1f6;color:var(--rt-text);font-size:12px}.device-detail-panel .module-editor{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px}.device-detail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.device-detail-actions>.button:first-child{grid-column:1/-1}.device-status{display:inline-flex;width:max-content;padding:5px 9px;border-radius:99px;background:#eaf5ff;color:var(--rt-primary);font-size:11px;font-weight:650}
.device-editor-dialog{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(720px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 28px);overflow:auto;padding:24px;border:1px solid var(--rt-border);border-radius:16px;background:#fff;color:var(--rt-text);box-shadow:0 24px 70px #0a1b3040}.device-editor-dialog::backdrop{background:#0a1b3070;backdrop-filter:blur(3px)}.device-dialog-close{float:right;min-height:34px;padding:5px 10px;border:1px solid var(--rt-border);border-radius:8px;background:#fff;color:var(--rt-text)}.device-form{clear:both;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 0;border:0;background:transparent;box-shadow:none}.device-form h2{grid-column:1/-1;margin:0 0 6px}.device-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}.device-profile-form{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;border:0;box-shadow:none}.device-profile-form h2{grid-column:1/-1}.device-csv-dialog{width:min(800px,calc(100vw - 28px))}
#module-view>.report-content.devices-workspace,.devices-workspace{grid-template-columns:minmax(0,1fr) minmax(320px,34%)}
.device-inventory-table.has-device-registry th:nth-child(1){width:20%}.device-inventory-table.has-device-registry th:nth-child(2){width:14%}.device-inventory-table.has-device-registry th:nth-child(3){width:12%}.device-inventory-table.has-device-registry th:nth-child(4){width:16%}.device-inventory-table.has-device-registry th:nth-child(5){width:16%}.device-inventory-table.has-device-registry th:nth-child(6){width:12%}.device-inventory-table.has-device-registry th:nth-child(7){width:10%}
.device-inventory-table:not(.has-device-registry) th:nth-child(1){width:25%}.device-inventory-table:not(.has-device-registry) th:nth-child(2){width:18%}.device-inventory-table:not(.has-device-registry) th:nth-child(3){width:14%}.device-inventory-table:not(.has-device-registry) th:nth-child(4){width:18%}.device-inventory-table:not(.has-device-registry) th:nth-child(5){width:15%}.device-inventory-table:not(.has-device-registry) th:nth-child(6){width:10%}
.device-connection-badge{display:inline-flex;align-items:center;max-width:100%;padding:4px 8px;border-radius:999px;background:#eff3f8;color:#5d6b7e;font-size:10px;font-weight:650;white-space:nowrap}.device-connection-badge.is-connected,.device-status.is-connected{background:#e4f8ee;color:#07834a}.device-connection-badge.is-disconnected,.device-status.is-disconnected,.device-connection-badge.is-unknown,.device-status.is-unknown,.device-connection-badge.is-archived,.device-status.is-archived{background:#eff3f8;color:#66758b}.device-connection-badge.is-never,.device-status.is-never{background:#fff3dc;color:#94600c}
@media(min-width:1500px){#module-view>.report-content.devices-workspace,.devices-workspace{grid-template-columns:minmax(0,1fr) minmax(410px,34%);gap:18px}.device-inventory-table th,.device-inventory-table td{padding:11px 9px;font-size:12px}}
@media(max-width:900px){#module-view>.report-content.devices-workspace,.devices-workspace{grid-template-columns:minmax(0,1fr)}.devices-workspace>.device-command-bar,.devices-workspace>.device-summary-cards,.devices-workspace>.inline-status,.device-inventory-card,.device-detail-panel,.device-detail-placeholder{grid-column:1;grid-row:auto}.device-detail-placeholder{display:none}.device-detail-panel{position:fixed;z-index:850;inset:8px 8px max(8px,env(safe-area-inset-bottom));height:calc(100dvh - 16px);box-sizing:border-box;max-height:none;border-radius:17px;box-shadow:0 0 0 100vmax #0a182a5c,0 18px 50px #10243a45}.device-detail-tabs{overflow-x:auto;justify-content:flex-start}.device-detail-panel .data-table-wrap{max-width:100%;overflow:auto}}
@media(max-width:760px){#module-view>.report-content.devices-workspace,.devices-workspace{gap:10px}.device-command-bar{grid-template-columns:minmax(0,1fr) auto auto;gap:7px}.device-command-bar>input[name=search]{grid-column:1/-1}.device-command-bar>.device-filters{grid-column:1/-1}.device-command-bar>.button-primary{grid-column:2;grid-row:2}.device-command-bar>.button-secondary{grid-column:1;grid-row:2}.device-actions-menu{grid-column:3;grid-row:2}.device-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.device-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.device-summary-card{min-height:70px;padding:12px;font-size:12px}.device-summary-card strong{font-size:20px}.device-inventory-card{padding:11px}.device-inventory-table,.device-inventory-table tbody{display:block;width:100%}.device-inventory-table thead{display:none}.device-inventory-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;margin-bottom:8px;padding:12px;border:1px solid #e5ebf3;border-radius:12px;background:#fff}.device-inventory-table tbody td{display:block;width:auto!important;padding:2px 0;border:0;font-size:12px}.device-inventory-table tbody td:nth-child(1){grid-column:1;grid-row:1;font-size:14px}.device-inventory-table tbody td:nth-child(2){grid-column:1;grid-row:2;color:var(--rt-muted)}.device-inventory-table tbody td:nth-child(3){grid-column:1;grid-row:3}.device-inventory-table tbody td:nth-child(4){grid-column:1;grid-row:4}.device-inventory-table tbody td:nth-child(5){grid-column:2;grid-row:1/4;align-self:center;text-align:right;color:var(--rt-muted)}.device-inventory-table.has-device-registry tbody td:nth-child(6){display:none}.device-inventory-table:not(.has-device-registry) tbody td:nth-child(6){grid-column:1/-1;display:flex;gap:6px}.device-inventory-table tbody td:last-child{grid-column:1/-1;display:flex;gap:6px}.device-inventory-table tbody td:last-child .button{flex:1;min-height:34px}.device-detail-tabs{justify-content:flex-start}.device-detail-tabs button{font-size:12px}.device-detail-panel .module-editor{grid-template-columns:minmax(0,1fr)}.device-editor-dialog{padding:17px}.device-form,.device-profile-form{grid-template-columns:minmax(0,1fr)}.device-form h2,.device-form-actions,.device-profile-form h2{grid-column:1}.device-form-actions{flex-direction:column-reverse}.device-form-actions .button{width:100%}}
@media(max-width:430px){.device-filters{grid-template-columns:minmax(0,1fr)}.device-summary-card{gap:5px;padding:10px;font-size:11px}.device-detail-actions{grid-template-columns:minmax(0,1fr)}.device-detail-actions>.button:first-child{grid-column:1}}

/* Histórico de rotas: composição desktop e mobile baseada na referência aprovada. */
.history-view{min-width:0;padding:18px 22px;gap:14px;overflow:auto}
.history-page-heading{align-items:center;gap:18px}
.history-page-heading .eyebrow{margin:0 0 5px}
.history-page-heading h1{font-size:28px}
.history-limit-note{display:flex;align-items:center;gap:10px;max-width:420px;margin:0;padding:11px 14px;border:1px solid var(--rt-border);border-radius:10px;background:var(--rt-surface-soft);color:var(--rt-muted);font-size:11px;line-height:1.5}
.history-limit-note span{display:grid;place-items:center;flex:none;width:18px;height:18px;border:1.5px solid var(--rt-primary);border-radius:50%;color:var(--rt-primary);font-size:12px;font-weight:700}
#history-controls-anchor{min-width:0}
#history-view #period-controls{display:grid!important;grid-template-columns:minmax(170px,1.25fr) minmax(155px,1fr) minmax(155px,1fr);gap:10px 12px;margin:0;padding:10px 12px;border:1px solid var(--rt-border);border-radius:10px;background:var(--rt-surface);box-shadow:var(--rt-shadow-sm)}
#history-view #period-controls label{min-width:0}
.history-toolbar{justify-content:flex-start;gap:8px}
.history-actions{margin-left:auto}
.history-actions .button{min-height:40px}
.history-metrics{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.history-metrics .empty-state{grid-column:1/-1}
.history-metrics .metric-card{min-height:78px;align-content:center;padding:12px 14px}
.history-metrics .metric-card span{font-size:11px}
.history-metrics .metric-card strong{font-size:19px}
.history-content{grid-template-columns:minmax(0,1.25fr) minmax(360px,.8fr);align-items:stretch;min-height:440px}
.history-map-card,.history-side,.history-events-card{min-height:440px}
.history-events-card .section-heading,.history-events-card .content-tabs{flex:none}
.history-result .data-table-wrap{overflow-x:auto;overscroll-behavior-inline:contain}
.history-result .data-table{min-width:100%}
.history-replay{min-height:62px;padding:10px 14px;gap:10px}
.history-replay #history-replay-start,.history-replay #history-replay-time{min-width:0;color:var(--rt-muted);font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.history-replay #history-replay-time{min-width:150px}
@media(max-width:1100px){.history-view{padding:14px}.history-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.history-content{grid-template-columns:minmax(0,1fr) minmax(300px,.9fr)}.history-page-heading .history-limit-note{max-width:340px}}
@media(max-width:760px){
 .history-view{padding:12px;gap:11px;overflow:auto;min-height:0}
 .history-page-heading{align-items:flex-start;flex-direction:column;gap:9px}
 .history-page-heading h1{font-size:23px}
 .history-page-heading .history-limit-note{max-width:none;width:100%;padding:9px 11px}
 #history-view #period-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}
 #history-view #period-controls label:first-child{grid-column:1/-1}
 #history-view #period-controls input,#history-view #period-controls select{min-width:0;font-size:12px}
 .history-toolbar{align-items:stretch;flex-direction:column;gap:8px}
 .history-actions{display:grid;grid-template-columns:1fr;margin:0}
 .history-actions .button{width:100%}
 .period-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
 .period-preset{width:100%}
 .history-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .history-metrics .metric-card{min-height:70px;padding:10px}
 .history-metrics .metric-card strong{font-size:17px}
 .history-content{grid-template-columns:minmax(0,1fr);gap:11px;min-height:0}
 .history-map-card{min-height:0;height:420px}
 .history-map-host{min-height:0}
 .history-replay{display:grid;grid-template-columns:auto 1fr auto;gap:8px;padding:10px}
 .history-replay[hidden]{display:none!important}
 .history-replay #history-replay-toggle{grid-column:1}
 .history-replay #history-replay-start{grid-column:2}
 .history-replay input[type=range]{grid-column:1/3;grid-row:2;width:100%;min-width:0}
 .history-replay #history-replay-time{grid-column:3;grid-row:2;min-width:0}
 .history-replay label{grid-column:3;grid-row:1;justify-self:end}
 .history-side,.history-events-card{min-height:0}
 .history-events-card{min-height:330px}
 .history-events-card .section-heading{padding:13px 14px}
 .history-events-card .content-tabs{gap:0;padding-inline:5px}
 .history-events-card .content-tab{padding:10px 12px}
 .history-result{padding:9px}
 .history-result .data-table-wrap{overflow:visible}
 .history-result .data-table,.history-result .data-table tbody{display:block;width:100%;min-width:0}
 .history-result .data-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .history-result .data-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 9px;margin:0 0 8px;padding:10px;border:1px solid var(--rt-border);border-radius:9px;background:var(--rt-surface)}
 .history-result .data-table td{min-width:0;padding:2px 0;border:0;white-space:normal;overflow-wrap:anywhere;font-size:11px}
 .history-result .data-table td:first-child{grid-column:1/-1;color:var(--rt-text);font-weight:650}
}
#module-view>.report-content.alert-center-workspace{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:12px;min-width:0;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible}
.alert-tabs{display:flex;align-items:center;flex:none;height:auto;min-height:52px;gap:6px;min-width:0;overflow-x:auto;padding:5px;border:1px solid var(--rt-border);border-radius:12px;background:#eaf0f8}
.alert-tab{display:flex;align-items:center;justify-content:center;flex:none;min-height:40px;padding:8px 17px;border:1px solid transparent;border-radius:9px;background:transparent;color:#526681;font-size:13px;font-weight:650}
.alert-tab.active{border-color:#d5e1f2;background:#fff;color:var(--rt-primary);box-shadow:0 1px 3px #10243a12}
.alert-workspace-pane{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0;align-content:start}
.alert-filters{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));align-items:end;gap:10px;padding:14px;border:1px solid var(--rt-border);border-radius:13px;background:#fff}
.alert-filters .module-field,.alert-filters .module-select{min-width:0}.alert-filters .module-field input,.alert-filters .module-field select{box-sizing:border-box;max-width:100%;min-width:0}
.alert-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.alert-summary-card{display:grid;gap:5px;min-width:0;padding:13px;border:1px solid var(--rt-border);border-radius:12px;background:#fff;color:var(--rt-muted);font-size:12px}
.alert-summary-card strong{color:var(--rt-text);font-size:21px}
.alert-results-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.alert-list-card,.alert-workspace-pane>.report-section{min-width:0;padding:16px;border:1px solid var(--rt-border);border-radius:13px;background:#fff;box-shadow:var(--rt-shadow-sm)}
.alert-data-table{width:100%;table-layout:auto}
.alert-data-table th,.alert-data-table td{padding:10px 8px;white-space:normal;overflow-wrap:anywhere;font-size:12px}
.alert-select-row{cursor:pointer}
.alert-select-row:hover{background:#f2f7ff}
.alert-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;color:var(--rt-muted);font-size:12px}
.alert-detail-drawer{position:fixed;z-index:900;inset:0 0 0 auto;width:min(540px,48vw);max-height:100dvh;overflow:auto;padding:22px;background:#f6f9fd;border-left:1px solid var(--rt-border);box-shadow:-16px 0 44px #10243a2c}
.alert-detail-drawer>h2{margin:14px 0 4px;color:var(--rt-text);font-size:24px}
.alert-detail-drawer>.report-section{margin-top:12px;padding:14px;border:1px solid var(--rt-border);border-radius:12px;background:#fff}
.alert-detail-drawer p{overflow-wrap:anywhere;color:var(--rt-muted);font-size:12px}
.alert-attributes{display:grid;grid-template-columns:minmax(110px,.4fr) minmax(0,1fr);gap:7px 12px;margin:0;font-size:12px}.alert-attributes dt{color:var(--rt-muted);overflow-wrap:anywhere}.alert-attributes dd{margin:0;color:var(--rt-text);overflow-wrap:anywhere}
.alert-ack-form,.alert-toolbar,.alert-form-actions{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin:10px 0}
.alert-rule-editor,.alert-contact-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px;border:1px solid var(--rt-border);border-radius:12px;background:#fff}
.alert-rule-editor h2,.alert-contact-form h2,.alert-form-actions{grid-column:1/-1}
.alert-rule-editor fieldset,.alert-contact-form fieldset{display:flex;flex-wrap:wrap;gap:9px;grid-column:1/-1;margin:0;padding:12px;border:1px solid var(--rt-border);border-radius:9px}
.alert-rule-editor fieldset label{display:flex;align-items:center;gap:5px;max-width:100%;font-size:12px;overflow-wrap:anywhere}
.alert-advanced{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px;border:1px solid var(--rt-border);border-radius:10px}
.alert-advanced summary{grid-column:1/-1;cursor:pointer;font-weight:700;color:var(--rt-text)}
.alert-calendar{grid-column:1/-1;display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:0;padding:12px;border:1px solid var(--rt-border);border-radius:10px}.alert-calendar[hidden]{display:none}.alert-weekdays{display:flex;gap:8px;flex-wrap:wrap}.alert-weekdays label{display:flex;align-items:center;gap:4px}.alert-escalations{grid-column:1/-1;display:grid;gap:8px}.alert-escalation-row{display:grid;grid-template-columns:minmax(150px,.5fr) minmax(0,1fr) auto;gap:10px;align-items:end;padding:10px;border:1px solid var(--rt-border);border-radius:9px}.alert-taxonomy-note{padding:10px;border-radius:9px;background:#edf5ff;color:#425d7e;font-size:12px;overflow-wrap:anywhere}
@media(max-width:900px){.alert-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.alert-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.alert-detail-drawer{width:min(620px,72vw)}}
@media(max-width:760px){#module-view>.report-content.alert-center-workspace{gap:9px}.alert-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px}.alert-tab{min-width:0;padding:8px 4px;font-size:11px}.alert-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:11px}.alert-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.alert-summary-card{padding:10px}.alert-list-card,.alert-workspace-pane>.report-section{padding:11px}.alert-data-table,.alert-data-table tbody{display:block;width:100%}.alert-data-table thead{display:none}.alert-data-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;margin:0 0 8px;padding:10px;border:1px solid var(--rt-border);border-radius:11px;background:#fff}.alert-data-table tbody td{display:block;width:auto!important;padding:3px 0;border:0;font-size:11px}.alert-data-table tbody td:nth-child(1){grid-column:1;grid-row:1;color:var(--rt-muted)}.alert-data-table tbody td:nth-child(2){grid-column:1;grid-row:2;font-size:14px;font-weight:700;color:var(--rt-text)}.alert-data-table tbody td:nth-child(3){grid-column:1;grid-row:3}.alert-data-table tbody td:nth-child(4){grid-column:1;grid-row:4}.alert-data-table tbody td:nth-child(5){grid-column:2;grid-row:1}.alert-data-table tbody td:nth-child(6){grid-column:2;grid-row:2}.alert-data-table tbody td:last-child{grid-column:1/-1;display:flex;gap:6px}.alert-data-table tbody td:last-child .button{min-height:34px}.alert-pagination{flex-wrap:wrap}.alert-detail-drawer{inset:0;width:100%;max-height:100dvh;padding:16px;border:0;box-shadow:0 0 0 100vmax #091b3270}.alert-detail-drawer .alert-data-table tbody td{font-size:10px}.alert-rule-editor,.alert-contact-form{grid-template-columns:minmax(0,1fr);padding:12px}.alert-calendar{grid-column:1;display:grid;grid-template-columns:minmax(0,1fr)}.alert-escalations{grid-column:1}.alert-escalation-row{grid-template-columns:minmax(0,1fr)}.alert-rule-editor h2,.alert-contact-form h2,.alert-form-actions{grid-column:1}.alert-advanced{grid-template-columns:1fr}.alert-advanced summary{grid-column:1}}
.alert-more{position:relative;min-width:0}.alert-more summary{list-style:none;cursor:pointer}.alert-more summary::-webkit-details-marker{display:none}.alert-more-menu{position:absolute;z-index:20;right:0;top:calc(100% + 5px);display:grid;min-width:150px;padding:5px;border:1px solid var(--rt-border);border-radius:10px;background:#fff;box-shadow:var(--rt-shadow-sm)}.alert-more-menu button{padding:10px;border:0;border-radius:7px;background:#fff;color:var(--rt-text);text-align:left}.alert-more-menu button:hover{background:#edf5ff}
/* Motoristas: reorganização visual da página sem alterar os fluxos da API. */
.drivers-page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:4px 2px}.drivers-page-heading .eyebrow{margin:0 0 5px;color:var(--rt-primary,#0877f9);font-size:10px;font-weight:800;letter-spacing:1.5px}.drivers-page-heading h2{margin:0;color:var(--rt-text,#142b49);font-size:27px;letter-spacing:-.5px}.drivers-page-heading p:last-child{margin:5px 0 0;color:var(--rt-muted,#667b9a)}.drivers-heading-actions{display:flex;gap:8px;align-items:center;flex:none}.drivers-filters{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(150px,.7fr) minmax(130px,.6fr);align-items:end}.drivers-filters .module-field{min-width:0}.drivers-list-card{min-width:0}.drivers-table{width:100%;border-collapse:collapse}.drivers-table th{background:#f1f6fc;color:#243b59;font-size:12px;white-space:nowrap}.drivers-table td{vertical-align:middle}.drivers-table tbody tr:hover{background:#f3f8ff}.drivers-table td:last-child{white-space:nowrap}.drivers-table td:last-child .button{min-width:32px;padding-inline:8px}.drivers-csv-disclosure{order:8;border:1px solid var(--rt-border);border-radius:12px;background:#fff;box-shadow:var(--rt-shadow-sm,0 4px 14px #1734540a)}.drivers-csv-disclosure>summary{padding:13px 16px;color:var(--rt-text);font-weight:700;cursor:pointer}.drivers-csv-disclosure[open]>summary{border-bottom:1px solid var(--rt-border)}.drivers-csv-disclosure>.report-section{margin:10px;padding:14px}.drivers-csv-disclosure>.report-section>*{margin-right:8px}.drivers-dialog{width:min(640px,calc(100vw - 28px));max-width:none;max-height:min(90dvh,800px);padding:0;border:1px solid var(--rt-border);border-radius:16px;background:#fff;color:var(--rt-text);box-shadow:0 22px 80px #0c234755}.drivers-dialog::backdrop{background:#07182b88;backdrop-filter:blur(2px)}.drivers-create-form{padding:24px}.drivers-create-form h2{margin:0;color:var(--rt-text)}.drivers-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:9px;padding-top:8px}.drivers-detail-drawer{position:fixed;z-index:750;top:82px;right:18px;bottom:18px;width:min(430px,calc(100vw - 36px));overflow:auto;padding:22px 18px 18px;box-shadow:0 16px 55px #102b4a35;border:1px solid var(--rt-border);border-radius:16px;background:#fff}.drivers-drawer-close{position:absolute;right:12px;top:10px;border:0;background:transparent;color:var(--rt-muted);font-size:26px;cursor:pointer}.drivers-detail-tabs{display:flex;gap:8px;margin:14px 0;border-bottom:1px solid var(--rt-border)}.drivers-detail-tabs button{padding:10px 14px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--rt-muted);cursor:pointer}.drivers-detail-tabs button[aria-selected=true]{border-color:#0877f9;color:#0877f9;font-weight:700}.drivers-detail-line{display:flex;justify-content:space-between;gap:12px;padding:12px 4px;margin:0;border-bottom:1px solid var(--rt-border);font-size:13px}.drivers-detail-line span{color:var(--rt-muted)}.drivers-detail-line strong{text-align:right;color:var(--rt-text)}.drivers-associations{padding:16px}.drivers-associations>.module-field{max-width:380px}.drivers-associations .module-editor{margin-top:12px}.drivers-associations .data-table-wrap{max-height:340px;overflow:auto}
.drivers-name-cell{display:flex;align-items:center;gap:10px}.drivers-avatar{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:50%;background:#e4f0ff;color:#0877f9;font-size:11px;font-weight:800}.drivers-list-card,.drivers-associations{overflow:visible!important}
@media(max-width:760px){.drivers-page-heading{align-items:flex-start}.drivers-heading-actions .button{min-height:40px;padding:8px 10px;white-space:nowrap}.drivers-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}.drivers-filters .module-field:first-child{grid-column:1/-1}.drivers-table,.drivers-table tbody{display:block;width:100%}.drivers-table thead{display:none}.drivers-table tbody tr{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:3px 10px;margin:0 0 9px;padding:10px;border:1px solid var(--rt-border);border-radius:12px;background:#fff}.drivers-table tbody td{display:block;width:auto!important;padding:2px 0;border:0;font-size:12px;min-width:0;overflow-wrap:anywhere}.drivers-table tbody td:nth-child(1){display:contents}.drivers-avatar{grid-column:1;grid-row:1;margin:auto}.drivers-name-cell strong{grid-column:2;grid-row:1;align-self:center;font-size:14px}.drivers-table tbody td:nth-child(2){grid-column:2;grid-row:2;color:var(--rt-muted)}.drivers-table tbody td:nth-child(3){grid-column:2;grid-row:3;color:var(--rt-muted)}.drivers-table tbody td:nth-child(4){grid-column:3;grid-row:1}.drivers-table tbody td:nth-child(5){grid-column:1/-1;grid-row:4;color:var(--rt-muted)}.drivers-table tbody td:nth-child(6){grid-column:1/-1;grid-row:5}.drivers-table tbody td:nth-child(7){grid-column:1/-1;grid-row:6;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:6px}.drivers-table tbody td:nth-child(7) .button{min-height:32px}.drivers-detail-drawer{top:58px;right:0;bottom:0;left:0;width:100%;max-height:calc(100dvh - 58px);padding:20px 14px;border:0;border-radius:0}.drivers-associations{padding:12px}.drivers-associations .data-table-wrap{overflow-x:auto}.drivers-csv-disclosure>.report-section{margin:8px;padding:10px}.drivers-csv-disclosure>.report-section>*{max-width:100%}.drivers-dialog{max-height:calc(100dvh - 24px)}.drivers-create-form{grid-template-columns:minmax(0,1fr);padding:20px}.drivers-create-form h2,.drivers-form-actions{grid-column:1}}
.video-workspace{gap:12px}.video-workspace>.report-section{overflow:visible!important}.video-filter-card,.video-related-card,.video-channels-card,.video-library-card{min-width:0;padding:16px}.video-filters{display:grid;grid-template-columns:minmax(220px,1.15fr) minmax(150px,.8fr) minmax(150px,.8fr) minmax(170px,1fr) minmax(120px,.55fr) auto;align-items:end;gap:10px}.video-filters .module-field{min-width:0}.video-filters .button{min-height:40px}.video-related-content{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(220px,1.3fr);gap:14px;align-items:start}.video-vehicle-summary{padding:14px;border-radius:12px;background:#f1f6fc;color:var(--rt-text)}.video-vehicle-summary strong{display:block;font-size:17px}.video-vehicle-summary p{margin:9px 0 0;color:var(--rt-muted);font-size:12px}.video-observed-status{display:inline-flex;margin-top:9px;padding:4px 9px;border-radius:999px;background:#e4f7ed;color:#07864b;font-size:11px;font-weight:700}.video-equipment-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}.video-equipment-item{display:grid;gap:5px;padding:12px;border:1px solid var(--rt-border);border-radius:10px;background:#fff}.video-equipment-item strong{overflow-wrap:anywhere;font-size:13px}.video-equipment-item small{color:var(--rt-muted);overflow-wrap:anywhere}.video-section-actions{display:flex;align-items:end;gap:9px;margin-left:auto}.video-section-actions .module-field{min-width:210px}.video-channel-content,.video-library-content{min-width:0}.video-channels-table,.video-library-table{width:100%;border-collapse:collapse}.video-channels-table td,.video-library-table td{vertical-align:middle}.video-channel-declaration{color:#916313}.video-library-heading{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-bottom:10px}.video-pagination{display:flex;align-items:center;gap:8px}.video-pagination .button{min-height:35px}.video-library-count{color:var(--rt-muted);font-size:12px;margin-right:auto}.video-media-drawer{position:fixed;z-index:760;top:72px;right:14px;bottom:14px;width:min(430px,calc(100vw - 28px));overflow:auto;padding:22px 16px 18px;border:1px solid var(--rt-border);border-radius:16px;background:#fff;box-shadow:0 16px 55px #102b4a35}.video-drawer-close{position:absolute;top:8px;right:12px;border:0;background:transparent;color:var(--rt-muted);font-size:27px;cursor:pointer}.video-detail-card{padding:12px}.video-detail-line{display:flex;justify-content:space-between;gap:12px;margin:0;padding:9px 2px;border-bottom:1px solid var(--rt-border);font-size:12px}.video-detail-line span{color:var(--rt-muted)}.video-detail-line strong{text-align:right;overflow-wrap:anywhere;color:var(--rt-text)}.video-detail-actions,.video-form-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:12px}.video-dialog{width:min(580px,calc(100vw - 28px));max-height:calc(100dvh - 24px);max-width:none;padding:0;border:1px solid var(--rt-border);border-radius:15px;background:#fff;color:var(--rt-text);box-shadow:0 22px 80px #0c234755}.video-dialog::backdrop{background:#07182b88;backdrop-filter:blur(2px)}.video-channel-form,.video-preservation-form{grid-template-columns:minmax(0,1fr);padding:22px}.video-channel-form h2,.video-preservation-form h2{grid-column:1;margin:0}.video-capability-options{display:flex;flex-wrap:wrap;gap:8px 14px;grid-column:1;padding:12px;border:1px solid var(--rt-border);border-radius:10px}.video-capability-options legend{padding:0 5px;font-size:12px;font-weight:700}.video-capability-options label{display:flex;align-items:center;gap:5px;font-size:12px}.video-preservation-form small{color:var(--rt-muted)}.video-form-actions{grid-column:1}
@media(max-width:1050px){.video-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.video-filters .module-field:first-child{grid-column:span 2}.video-related-content{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.video-workspace{gap:9px}.video-filter-card,.video-related-card,.video-channels-card,.video-library-card{padding:11px}.video-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0;border:0;background:transparent}.video-filters .module-field:first-child,.video-filters .module-field:nth-child(4){grid-column:1/-1}.video-filters .button{grid-column:1/-1}.video-related-content{grid-template-columns:minmax(0,1fr)}.video-equipment-list{grid-template-columns:minmax(0,1fr)}.video-section-actions{align-items:stretch;flex-direction:column;margin:0 0 9px}.video-section-actions .module-field{min-width:0}.video-channels-table,.video-channels-table tbody,.video-library-table,.video-library-table tbody{display:block;width:100%}.video-channels-table thead,.video-library-table thead{display:none}.video-channels-table tbody tr,.video-library-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;margin:0 0 8px;padding:10px;border:1px solid var(--rt-border);border-radius:11px;background:#fff}.video-channels-table tbody td,.video-library-table tbody td{display:block;width:auto!important;padding:2px 0;border:0;font-size:12px;overflow-wrap:anywhere}.video-channels-table tbody td:nth-child(1){grid-column:1/-1;color:var(--rt-muted)}.video-channels-table tbody td:nth-child(2){grid-column:1/-1;font-size:14px;font-weight:700}.video-channels-table tbody td:nth-child(3),.video-channels-table tbody td:nth-child(4),.video-channels-table tbody td:nth-child(5){grid-column:1/-1}.video-library-table tbody td:nth-child(1){grid-column:1/-1;color:var(--rt-muted)}.video-library-table tbody td:nth-child(2){grid-column:1/-1;font-size:14px;font-weight:700}.video-library-table tbody td:nth-child(3),.video-library-table tbody td:nth-child(4),.video-library-table tbody td:nth-child(5),.video-library-table tbody td:nth-child(6){grid-column:1/-1}.video-library-table tbody td:last-child{display:flex;gap:7px;grid-column:1/-1}.video-library-table tbody td:last-child .button{flex:1;min-height:36px}.video-library-heading{justify-content:flex-start}.video-pagination{flex-wrap:wrap;width:100%}.video-library-count{flex:1 0 100%}.video-media-drawer{top:58px;right:0;bottom:0;left:0;width:100%;max-height:calc(100dvh - 58px);padding:20px 13px 16px;border:0;border-radius:0}.video-detail-line{font-size:12px}.video-dialog{max-height:calc(100dvh - 16px)}.video-channel-form,.video-preservation-form{grid-template-columns:minmax(0,1fr);padding:18px}.video-form-actions{grid-column:1}}

/* Controles específicos da biblioteca de vídeo. */
.video-filters select,.video-section-actions select{box-sizing:border-box;min-width:0;max-width:100%;min-height:40px;padding:8px 32px 8px 11px;border:1px solid var(--rt-border);border-radius:9px;background:#fff;color:var(--rt-text);font:inherit}
.video-section-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.video-section-header>h2{margin:0}
.video-section-actions .module-field{max-width:250px}
.video-library-table td:last-child{display:flex;gap:6px;align-items:center}
.video-media-drawer .report-section{box-shadow:none}
@media(max-width:760px){.video-section-header{align-items:stretch;flex-direction:column}.video-section-actions{flex-direction:column}.video-library-table tbody td::before{display:block;margin-bottom:2px;color:var(--rt-muted);font-size:10px;font-weight:600;content:attr(data-label)}.video-library-table tbody td:last-child::before{content:""}}

.video-workspace{min-height:0;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
@media(max-width:760px){.video-filters .module-field input,.video-filters .module-field select{box-sizing:border-box;width:100%;min-width:0;max-width:100%}.video-filters input[type=datetime-local]{font-size:11px;letter-spacing:-.35px;padding-right:3px;padding-left:5px}}
@media(max-width:760px){#workspace:not(.mobile-menu-open):has(.nav-item[data-module="video"].active) .sidebar{transform:translateX(calc(-100% - 20px));box-shadow:none}}

/* Analytics aggregate workspace */
.analytics-workspace{display:flex;flex-direction:column;gap:14px;min-width:0}
.analytics-workspace>.analytics-intro{margin:0;color:#60738f}
.analytics-workspace>.report-section{min-width:0;padding:16px;border:1px solid #dce4ef;border-radius:12px;background:#fff;box-shadow:0 2px 8px #243b5b08;overflow:visible}
.analytics-workspace>.report-section>h2{font-size:18px;margin:0 0 5px;color:#101c33}
.analytics-filters{display:grid;grid-template-columns:minmax(190px,1fr) minmax(250px,1.3fr) minmax(180px,.8fr) auto;align-items:end;gap:12px}
.analytics-filters>h2,.analytics-period-anchor{grid-column:1/-1}
.analytics-filters .period-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0;padding:12px;margin:0;border:1px solid #e1e8f2;border-radius:9px;background:#f9fbfe}
.analytics-filters .period-controls>label:first-child{display:none}
.analytics-filters .period-controls>label{min-width:0}
.analytics-filters .period-controls input,.analytics-filters .period-controls select{width:100%;min-width:0}
.analytics-filters fieldset{min-width:0;max-height:148px;overflow:auto;margin:0;padding:8px 10px;border:1px solid #d5dfee;border-radius:8px}
.analytics-filters legend{font-size:12px;font-weight:700;color:#344c6f}
.analytics-filters fieldset label{display:flex;align-items:center;gap:7px;margin:4px 0;font-size:12px;color:#283b58}
.analytics-filters .module-field{min-width:0}
.analytics-filter-note{grid-column:1/-1;margin:0;color:#637692;font-size:12px;line-height:1.5}
.analytics-filters>.analytics-filter-note+ p{grid-column:1/-1}
.analytics-filters>.button{min-height:38px;white-space:nowrap}
.analytics-total-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:12px}
.analytics-total{display:grid;align-content:center;gap:7px;min-width:0;min-height:68px;padding:12px;border:1px solid #e1e8f2;border-radius:10px;background:#fff}
.analytics-total span{font-size:12px;color:#61738f}
.analytics-total strong{min-width:0;font-size:18px;color:#10213d;overflow-wrap:anywhere}
.analytics-total:nth-child(10) strong{font-size:12px}
.analytics-table-wrap{max-height:none!important;overflow-x:auto!important}
.analytics-table{width:100%;table-layout:fixed;font-size:11px}
.analytics-table th{background:#f0f4f9;color:#50647f;white-space:normal;overflow-wrap:anywhere;padding:8px 5px}
.analytics-table td{white-space:normal;vertical-align:middle;overflow-wrap:anywhere;padding:8px 5px}
.analytics-table th:nth-child(1),.analytics-table td:nth-child(1){width:14%}
.analytics-table th:nth-child(2),.analytics-table td:nth-child(2){width:8%}
.analytics-table th:nth-child(3),.analytics-table td:nth-child(3),.analytics-table th:nth-child(4),.analytics-table td:nth-child(4),.analytics-table th:nth-child(5),.analytics-table td:nth-child(5),.analytics-table th:nth-child(6),.analytics-table td:nth-child(6),.analytics-table th:nth-child(7),.analytics-table td:nth-child(7){width:6%}
.analytics-table th:nth-child(8),.analytics-table td:nth-child(8){width:8%}
.analytics-table th:nth-child(9),.analytics-table td:nth-child(9){width:7%}
.analytics-table th:nth-child(10),.analytics-table td:nth-child(10){width:11%;font-size:10px}
.analytics-table th:nth-child(11),.analytics-table td:nth-child(11){width:8%}
.analytics-table th:nth-child(12),.analytics-table td:nth-child(12){width:10%}
.analytics-table td:last-child .button{min-height:30px;padding:5px 8px;font-size:11px;white-space:nowrap}
.analytics-missing-chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.analytics-missing-chips span{padding:9px 13px;border:1px solid #dce4ef;border-radius:9px;background:#f7f9fc;font-size:12px}
@media(max-width:1100px){.analytics-filters{grid-template-columns:1fr 1fr}.analytics-filters .module-field{min-width:0}.analytics-total-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){
 .analytics-workspace>.report-section{padding:12px}
 .analytics-filters{grid-template-columns:minmax(0,1fr);gap:9px}
 .analytics-filters>h2,.analytics-period-anchor{grid-column:1}
 .analytics-filters .period-controls{grid-template-columns:1fr 1fr;gap:8px;padding:9px}
 .analytics-filters fieldset{max-height:130px}
 .analytics-filters>.analytics-filter-note{grid-column:1}
 .analytics-filters>.button{width:100%}
 .analytics-total-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .analytics-total{min-height:60px;padding:10px}
 .analytics-total strong{font-size:16px}
 .analytics-table-wrap{overflow:visible!important}
 .analytics-table,.analytics-table tbody,.analytics-table tr,.analytics-table td{display:block;width:100%;min-width:0}
 .analytics-table thead{display:none}
 .analytics-table tr{margin:10px 0;padding:10px;border:1px solid #dfe7f2;border-radius:10px;background:#fff}
 .analytics-table td{display:grid;width:100%!important;grid-template-columns:minmax(104px,38%) minmax(0,1fr);gap:8px;padding:5px 2px;border:0;white-space:normal;overflow-wrap:anywhere}
 .analytics-table td::before{content:attr(data-label);font-size:11px;color:#667a96}
 .analytics-table td:first-child{min-width:0;font-weight:700;color:#122240}
 .analytics-table td:last-child .button{width:100%}
 .analytics-missing-chips{gap:6px}
 .analytics-missing-chips span{padding:7px 9px;font-size:11px}
}

/* Operational reports: scoped layout, shared period controls return to their owner. */
.report-view{min-width:0;color:#15223e}
.report-view .module-header h1{font-size:30px;letter-spacing:-.8px;color:#0a1022}
.report-controls,.report-history{padding:18px;margin-bottom:16px;border:1px solid #dce4ef;border-radius:10px;background:#fff}
.report-controls .period-controls{padding:0;margin:0 0 14px;border:0;background:transparent;display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:16px}
.report-controls label,.report-history-filters label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;font-weight:600}
.report-controls input,.report-controls select,.report-history-filters input,.report-history-filters select{width:100%;min-width:0;background:#fff;border:1px solid #d5dfee;border-radius:6px;padding:9px;color:#182542}
.report-presets{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.report-presets>span{font-size:12px;font-weight:600;margin-right:8px}
.report-presets .active{color:#fff;background:#0866ff;border-color:#0866ff}
.report-controls .report-toolbar{margin:12px 0 0;gap:12px;flex-wrap:wrap}
.report-history h2{font-size:18px;margin:0 0 8px}
.report-history-filters{display:grid;grid-template-columns:1fr 1fr 1fr 1fr auto;gap:12px;align-items:end;margin:12px 0}
.report-view .report-content{border:1px solid #dce4ef;border-radius:10px;padding:18px}
.report-view .content-tabs{overflow-x:auto;white-space:nowrap;max-width:100%;margin-bottom:16px}
.report-view .content-tab{flex-shrink:0}
.report-view .report-kpis{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.report-view .metric-card{padding:16px 12px;border:1px solid #dfe7f2;box-shadow:none;border-radius:8px;min-width:0}
.report-view .metric-card>span{font-size:12px;line-height:1.5}
.report-view .metric-card strong{font-size:23px;color:#0a1022;margin:6px 0}
.report-view .metric-card small{font-size:10px;color:#63718e;overflow-wrap:anywhere}
.report-view details{font-size:12px;margin-top:8px}
.report-view summary{cursor:pointer;color:#2468cc}
.report-view .report-section{border:1px solid #dfe7f2;border-radius:8px;padding:14px;min-width:0;margin-top:14px}
.report-view .report-section h3{font-size:15px;margin:0 0 10px}
.report-view .report-section .report-section{border:0;padding:0}
.report-view .report-coverage-value{font-size:26px;font-weight:700;color:#12366b;margin:8px 0}
.report-view .report-notice{background:#f2f7ff}
.report-view .report-notice p{color:#456080;line-height:1.6}
.report-view .data-table{font-size:12px;width:100%}
.report-view .data-table th{background:#edf2f7;color:#263b5c;font-weight:500}
.report-view .data-table td{overflow-wrap:anywhere}
.report-view .data-table-wrap{min-width:0}
.report-operations{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.report-operations .report-section{margin:0}
.report-input-actions{grid-column:1/-1;display:flex;gap:10px}
.report-view pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:300px;overflow:auto}
.report-editor{width:min(520px,calc(100vw - 32px));max-height:90dvh;overflow:auto;border:1px solid #dce4ef;border-radius:12px;padding:24px;color:#15223e}
.report-editor::backdrop{background:#0e1e3b66}
.report-editor-form{display:grid;gap:14px}
.report-editor h2{margin:0;font-size:22px}
.report-editor .report-footnote{margin:0;line-height:1.5}
@media(max-width:1400px){.report-view .report-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.report-history-filters{grid-template-columns:1fr 1fr}.report-operations{grid-template-columns:1fr}}
@media(max-width:768px){
 .report-view .module-header h1{font-size:25px}.report-controls,.report-history,.report-view .report-content{padding:12px}
 .report-controls .period-controls{grid-template-columns:1fr 1fr;gap:10px}.report-controls .period-controls>label:first-child{grid-column:1/-1}
 .report-presets{gap:6px}.report-presets>span{width:100%}.report-presets .button{padding:8px;font-size:11px;flex:1}
 .report-controls .report-toolbar,.report-actions,.report-exports{display:flex;width:100%;gap:8px}.report-actions .button,.report-exports .button{flex:1;padding:10px 6px;white-space:normal;font-size:11px}
 .report-view .report-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.report-view .metric-card strong{font-size:21px}
 .report-view .report-content-heading{flex-wrap:wrap}.report-view .report-section{padding:10px}.report-operations{grid-template-columns:1fr}
 .report-view .data-table-wrap{overflow:visible}.report-view .data-table,.report-view .data-table tbody,.report-view .data-table tr,.report-view .data-table td{display:block;width:100%;min-width:0}
 .report-view .data-table thead{display:none}.report-view .data-table tr{border:1px solid #e0e7f1;border-radius:7px;padding:8px;margin:8px 0}
 .report-view .data-table td{display:grid;grid-template-columns:105px minmax(0,1fr);gap:8px;white-space:normal;border:0;padding:5px 0}
 .report-view .data-table td::before{content:attr(data-label);color:#62718b;font-size:11px}
 .report-history-filters{gap:8px}.report-history-filters button{grid-column:1/-1}
}
.report-view>*,.report-view .report-content{flex-shrink:0}
.report-view .report-content{flex-grow:0}
.report-view .report-result{flex:none;overflow:visible;padding:0}
.report-view .report-history,.report-view .report-controls{margin-bottom:0}
.report-view .report-section .data-table-wrap{max-height:none}
.report-view .report-section .report-coverage-value{font-size:26px;font-weight:700;margin:8px 0}
.report-view .report-controls input{font-weight:400}
