.rbr-map-page{margin:0;background:#101217;color:#eef1f6;font:14px system-ui,-apple-system,"Segoe UI",sans-serif;color-scheme:dark}.rbr-map-page main{padding:20px;max-width:1920px;margin:auto}.rbr-fleet-map{--fm-accent:#ffca35;--fm-muted:#9ba4b5;--fm-line:#2d333e;--fm-panel:#181c24;color:#eef1f6;font:14px system-ui,-apple-system,"Segoe UI",sans-serif;background:#11151c;border:1px solid var(--fm-line);border-radius:14px;overflow:hidden;isolation:isolate}.rbr-fleet-map *{box-sizing:border-box}.rbr-fleet-map [hidden]{display:none!important}.fm-head{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:19px 22px;background:var(--fm-panel);border-bottom:1px solid var(--fm-line)}.fm-brand{display:flex;align-items:center;gap:13px}.fm-logo{color:#121418;background:var(--fm-accent);font-weight:950;font-style:italic;padding:9px 8px;border-radius:7px;font-size:17px;letter-spacing:-1px}.fm-title{margin:0;font-size:19px;font-weight:750}.fm-subtitle{margin:4px 0 0;font-size:12px;color:var(--fm-muted)}.fm-signal{border:1px solid #373c44;border-radius:99px;padding:7px 11px;font-size:12px;color:#c5cbd5;white-space:nowrap}.fm-signal[data-state="online"]{color:#69e0ba;border-color:#34735f;background:#17382b55}.fm-signal[data-state="error"]{color:#ffce77;border-color:#73572a}.fm-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--fm-line)}.rbr-fleet-map button,.rbr-fleet-map input{font:inherit;color:inherit}.rbr-fleet-map button{border:1px solid #414854;background:#242b36;padding:9px 12px;border-radius:7px;cursor:pointer;min-height:38px}.rbr-fleet-map button:hover{border-color:var(--fm-accent);color:#ffe08a}.rbr-fleet-map button:focus-visible,.rbr-fleet-map input:focus-visible,.fm-canvas:focus-visible{outline:2px solid var(--fm-accent);outline-offset:3px}.rbr-fleet-map input{width:100%;background:#11161e;border:1px solid #414854;padding:9px 11px;border-radius:7px;min-height:38px}.fm-city-form{display:flex;gap:7px;flex:1;max-width:480px;min-width:210px}.fm-tools{display:flex;gap:7px;flex-wrap:wrap}.fm-tools button{min-width:39px}.fm-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;min-height:480px}.fm-surface{position:relative;min-width:0;background:#0d1015;overflow:hidden}.fm-canvas{display:block;width:100%;height:clamp(480px,68vh,840px);touch-action:none;cursor:grab}.fm-canvas:active{cursor:grabbing}.fm-map-note{position:absolute;bottom:12px;left:12px;right:12px;display:flex;justify-content:space-between;gap:12px;pointer-events:none;font-size:11px;color:#b3bccb;text-shadow:0 1px 4px #000}.fm-map-note span{padding:5px 8px;background:#11151de6;border:1px solid #303843;border-radius:5px}.fm-sidebar{border-left:1px solid var(--fm-line);background:var(--fm-panel);display:flex;flex-direction:column;min-width:0;max-height:840px}.fm-sidebar-head{padding:15px;border-bottom:1px solid var(--fm-line)}.fm-sidebar-head h3{font-size:13px;margin:0 0 11px;display:flex;justify-content:space-between}.fm-count{color:var(--fm-accent)}.fm-list{overflow:auto;max-height:370px;padding:7px;min-height:80px}.rbr-fleet-map .fm-driver{display:block;text-align:left;width:100%;background:transparent;border:1px solid transparent;padding:11px;margin:2px 0}.rbr-fleet-map .fm-driver[aria-pressed="true"]{background:#ffca3512;border-color:#8a702c}.fm-driver b,.fm-driver small{display:block;overflow-wrap:anywhere}.fm-driver b{font-size:13px;margin-bottom:5px}.fm-driver small{color:var(--fm-muted);font-size:11px;line-height:1.5}.fm-driver-dot{display:inline-block;width:7px;height:7px;background:#64ddb5;border-radius:50%;margin-right:6px}.fm-driver-dot.paused{background:#ffcc6a}.fm-empty{padding:17px 10px;line-height:1.6;color:var(--fm-muted);font-size:12px;margin:0}.fm-details{padding:15px;border-top:1px solid var(--fm-line);margin-top:auto}.fm-details h3{margin:0 0 7px;font-size:14px;overflow-wrap:anywhere}.fm-details p{font-size:12px;color:#b9c1ce;line-height:1.7;margin:5px 0;overflow-wrap:anywhere}.fm-follow{margin-top:10px;width:100%}.fm-foot{padding:11px 16px;display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;color:var(--fm-muted);font-size:11px;border-top:1px solid var(--fm-line)}.fm-message{color:#d4d9e2}.fm-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.rbr-fleet-map:fullscreen{border:0;border-radius:0}.rbr-fleet-map:fullscreen .fm-canvas{height:calc(100vh - 180px)}@media(max-width:850px){.fm-layout{grid-template-columns:minmax(0,1fr) 225px}.fm-head{padding:15px}.fm-title{font-size:17px}.fm-canvas{height:560px}}@media(max-width:640px){.rbr-map-page main{padding:6px}.fm-head{align-items:flex-start;gap:10px}.fm-title{font-size:16px}.fm-logo{font-size:14px}.fm-signal{font-size:10px;padding:6px}.fm-subtitle{font-size:11px}.fm-toolbar{padding:10px}.fm-city-form{max-width:none;flex-basis:100%}.fm-layout{grid-template-columns:1fr}.fm-canvas{height:56vh;min-height:360px}.fm-sidebar{border-left:0;border-top:1px solid var(--fm-line);max-height:none}.fm-list{max-height:190px}.fm-sidebar-head{padding:12px}.fm-details{padding:12px}.fm-foot{font-size:10px}.rbr-fleet-map:fullscreen .fm-canvas{height:55vh}}

/* Keep host-site header/footer rules outside this component. */
.rbr-fleet-map .fm-head,.rbr-fleet-map .fm-foot{position:static;inset:auto;z-index:auto;backdrop-filter:none;-webkit-backdrop-filter:none;width:auto}

.rbr-fleet-map .fm-title{font-size:19px;margin:0;font-weight:750}
@media(max-width:640px){.rbr-fleet-map .fm-title{font-size:16px}}

.rbr-fleet-map .fm-city-form input{min-width:0;flex:1 1 0}.rbr-fleet-map .fm-city-form button{flex-shrink:0}

.rbr-fleet-map .fm-driver-dot.offline{background:#939ba9}.rbr-fleet-map .fm-driver.offline b{color:#c4cbd6}

/* 3D surface shares the existing controls, presence and driver details. */
.rbr-fleet-map .fm-webgl{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.rbr-fleet-map .fm-canvas{position:relative;z-index:1;background:transparent}
.rbr-fleet-map .fm-map-note{z-index:2}
.rbr-fleet-map .fm-view-controls{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:9px 16px;border-bottom:1px solid var(--fm-line);background:#131922}
.rbr-fleet-map .fm-view-controls button{padding:6px 12px;min-width:39px}
.rbr-fleet-map .fm-view-controls button[aria-pressed="true"]{color:#ffdb72;border-color:#8a702d;background:#ffca3515}
.rbr-fleet-map button:disabled,.rbr-fleet-map input:disabled{opacity:.45;cursor:default}
.rbr-fleet-map .fm-pitch{display:flex;align-items:center;gap:8px;margin-left:8px;font-size:12px;color:var(--fm-muted);white-space:nowrap}
.rbr-fleet-map .fm-pitch input{width:110px;min-height:30px;padding:0;accent-color:#ffca35;cursor:pointer}
.rbr-fleet-map .fm-pitch span{min-width:28px}
.rbr-fleet-map .fm-view-hint{font-size:11px;color:var(--fm-muted);margin-left:auto}
@media(max-width:640px){.rbr-fleet-map .fm-view-controls{padding:9px 10px}.rbr-fleet-map .fm-pitch{margin:0}.rbr-fleet-map .fm-pitch input{width:90px}.rbr-fleet-map .fm-view-hint{flex-basis:100%;margin:0;line-height:1.5}}

/* Fill the host page; controls and the optional driver drawer float above the map. */
.rbr-fleet-map.fm-fill{position:relative;width:100%;height:100%;min-height:0;border:0;border-radius:0}
.fm-fill>.fm-layout{position:absolute;inset:0;display:block;min-height:0}
.fm-fill .fm-surface{position:absolute;inset:0;min-height:0}
.rbr-fleet-map.fm-fill .fm-canvas{width:100%;height:100%;min-height:0}
.rbr-fleet-map.fm-fill>.fm-head{position:absolute;inset:12px auto auto 12px;z-index:4;max-width:calc(100% - 24px);padding:8px 12px;gap:18px;border:1px solid var(--fm-line);border-radius:10px;background:#181c24f5;box-shadow:0 3px 15px #0004}
.fm-fill .fm-title{font-size:16px;line-height:1.2}
.fm-fill .fm-subtitle{font-size:11px;line-height:1.3;margin:2px 0 0}
.fm-fill .fm-logo{font-size:15px;padding:6px 7px}
.fm-fill>.fm-toolbar{position:absolute;top:78px;left:12px;right:12px;z-index:4;padding:0;gap:8px;border:0;background:transparent;align-items:flex-start}
.fm-fill .fm-city-form,.fm-fill .fm-tools{padding:6px;gap:6px;background:#181c24f5;border:1px solid var(--fm-line);border-radius:10px;box-shadow:0 3px 15px #0004;min-width:0}
.fm-fill .fm-city-form{flex:1 1 250px;max-width:420px}
.fm-fill .fm-tools{max-width:100%}
.fm-fill .fm-tools button{white-space:nowrap}
.fm-fill>.fm-view-controls{position:absolute;bottom:40px;left:12px;z-index:4;max-width:calc(100% - 24px);padding:7px;gap:6px;border:1px solid var(--fm-line);border-radius:10px;background:#181c24f5;box-shadow:0 3px 15px #0004}
.fm-fill .fm-view-hint{display:none}
.fm-fill .fm-pitch{margin:0 0 0 8px}
.fm-fill .fm-pitch input{margin:0}
.fm-fill .fm-map-note{bottom:108px}
.fm-fill .fm-sidebar{position:absolute;top:12px;right:12px;bottom:42px;z-index:6;width:310px;max-width:calc(100% - 24px);max-height:none;overflow:hidden;border:1px solid var(--fm-line);border-radius:10px;box-shadow:0 5px 25px #0007}
.fm-fill .fm-sidebar-head{flex-shrink:0}
.fm-fill .fm-sidebar-head h3{align-items:center;gap:10px}
.fm-fill .fm-count{margin-left:auto}
.fm-fill .fm-close-drivers{min-height:28px;width:28px;padding:0;font-size:20px;line-height:1}
.fm-fill .fm-list{flex:1;min-height:0;max-height:none}
.fm-fill .fm-details{max-height:45%;overflow:auto;flex-shrink:0}
.rbr-fleet-map.fm-fill>.fm-foot{position:absolute;inset:auto 0 0;z-index:4;padding:6px 12px;min-height:28px;display:block;background:#11151cf5;border-top:1px solid var(--fm-line)}
.fm-fill .fm-message{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fm-fill>.fm-foot>span:last-child{display:none}
@media(max-width:640px){
  .rbr-fleet-map.fm-fill>.fm-head{right:12px;gap:8px;justify-content:space-between;padding:7px 9px}
  .fm-fill .fm-brand{gap:8px}.fm-fill .fm-title{font-size:14px}.fm-fill .fm-subtitle{display:none}
  .fm-fill>.fm-toolbar{top:66px}.fm-fill .fm-city-form{max-width:none;flex-basis:100%}
  .fm-fill .fm-tools{width:100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
  .fm-fill .fm-tools button{flex-shrink:0;font-size:12px;padding:6px 8px;min-width:34px}
  .fm-fill>.fm-view-controls button{padding:6px 8px;min-width:34px}
  .fm-fill .fm-pitch{margin:0;font-size:11px;gap:5px}.fm-fill .fm-pitch input{width:70px}
  .fm-fill .fm-map-note{font-size:10px;bottom:100px}
}

/* Integração do visualizador 3D orbital original, sem hastes amarelas. */
.rbr-fleet-map .fm-original-frame{position:absolute;inset:0;display:block;width:100%;height:100%;min-height:0;z-index:3;border:0;background:#05070b}
.rbr-fleet-map.fm-original-mode .fm-canvas{pointer-events:none}
.rbr-fleet-map.fm-original-mode>.fm-head,
.rbr-fleet-map.fm-original-mode>.fm-toolbar,
.rbr-fleet-map.fm-original-mode>.fm-view-controls{display:none!important}
.rbr-fleet-map .fm-original-actions{position:absolute;right:14px;top:14px;z-index:5;display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#0d131ddc;border:1px solid #293749;border-radius:11px;padding:7px;backdrop-filter:blur(10px);box-shadow:0 3px 18px #0007}
.rbr-fleet-map .fm-original-actions button{min-height:31px;padding:6px 11px;border:1px solid #505e72;background:#1c2430;color:#eff2f7}
.rbr-fleet-map .fm-original-status{color:#aeb9ce;font-size:11px;padding:0 5px}
.rbr-fleet-map.fm-original-mode .fm-sidebar{z-index:7}
.rbr-fleet-map.fm-original-mode .fm-map-note{display:none}
.rbr-fleet-map.fm-original-mode>.fm-foot{z-index:5}
@media(max-width:750px){.rbr-fleet-map .fm-original-actions{top:8px;right:8px;gap:4px;padding:5px}.rbr-fleet-map .fm-original-status{display:none}}

/* Locais cadastrados: as mesmas camadas e detalhes no mapa 2D e 3D. */
.rbr-fleet-map .fm-locations-control{position:absolute;bottom:52px;right:14px;z-index:6;display:flex;flex-direction:column-reverse;align-items:flex-end;gap:7px;max-width:calc(100% - 28px)}
.rbr-fleet-map .fm-locations-control>button{background:#18232ff2;box-shadow:0 3px 14px #0007}
.rbr-fleet-map .fm-locations-panel{width:340px;max-width:100%;max-height:min(70vh,650px);overflow:auto;padding:12px;background:#181c24fa;border:1px solid var(--fm-line);border-radius:10px;box-shadow:0 4px 20px #0008}
.rbr-fleet-map .fm-locations-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.rbr-fleet-map .fm-locations-head h3{margin:0;font-size:15px}
.rbr-fleet-map .fm-locations-head button{padding:4px 10px;min-height:30px}
.rbr-fleet-map .fm-locations-filters{display:flex;flex-wrap:wrap;gap:10px;border:0;padding:8px 0;margin:5px 0}
.rbr-fleet-map .fm-locations-filters legend,.rbr-fleet-map .fm-locations-status{font-size:11px;color:var(--fm-muted)}
.rbr-fleet-map .fm-locations-filters label{display:flex;align-items:center;gap:5px;font-size:12px;cursor:pointer}
.rbr-fleet-map .fm-locations-filters input{width:16px;height:16px;min-height:0;padding:0;accent-color:#ffca35}
.rbr-fleet-map .fm-locations-list{max-height:190px;overflow:auto}
.rbr-fleet-map .fm-locations-list button{display:block;width:100%;text-align:left;margin:4px 0}
.rbr-fleet-map .fm-locations-list b,.rbr-fleet-map .fm-locations-list small{display:block;overflow-wrap:anywhere}
.rbr-fleet-map .fm-locations-list small{font-size:11px;color:var(--fm-muted);margin-top:4px}
.rbr-fleet-map .fm-locations-list [aria-pressed=true]{border-color:#ffca35}
.rbr-fleet-map .fm-location-details{overflow-wrap:anywhere}
.rbr-fleet-map .fm-location-details:not(:empty){border-bottom:1px solid var(--fm-line);margin:10px 0;padding-bottom:10px}
.rbr-fleet-map .fm-location-details img{width:88px;height:88px;object-fit:contain;border-radius:8px;background:#f1f3ef}
.rbr-fleet-map .fm-location-details h4{font-size:14px;margin:7px 0}
.rbr-fleet-map .fm-location-details p{font-size:12px;line-height:1.5;margin:6px 0}
@media(max-width:640px){.rbr-fleet-map .fm-locations-control{right:8px;bottom:56px;max-width:calc(100% - 16px)}.rbr-fleet-map .fm-locations-panel{max-height:60vh;width:310px}}
