/* v359 - Atlas/grid correction and clean package UI final override. Loaded last. */
:root{
  --v359-ink:#0e1b2a;
  --v359-muted:#607086;
  --v359-line:#d7e1eb;
  --v359-red:#98282b;
  --v359-red-dark:#681b20;
  --v359-green:#16795b;
  --v359-blue:#2563eb;
  --v359-gold:#b7791f;
}

/* Sidebar compact/centered */
@media (min-width:901px){
  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body) #platformSidebar.platform-sidebar-v295{
    width:216px!important;min-width:216px!important;max-width:216px!important;padding:10px 12px 12px!important;
  }
  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body) #platformSidebar .platform-brand-v295.brand-panel-premium{
    min-height:138px!important;padding:8px 6px 12px!important;display:grid!important;place-items:center!important;align-content:center!important;gap:7px!important;text-align:center!important;border-bottom:1px solid var(--v359-line)!important;
  }
  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body) #platformSidebar .platform-brand-v295>button{display:none!important;}
  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body) #platformSidebar .platform-brand-v295 a{display:grid!important;place-items:center!important;width:100%!important;margin:0!important;}
  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body) #platformSidebar .brand-logo-large{width:142px!important;max-width:142px!important;height:50px!important;max-height:50px!important;object-fit:contain!important;object-position:center!important;margin:0 auto!important;display:block!important;}
  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body) #platformSidebar .brand-copy{margin:0!important;display:grid!important;justify-items:center!important;gap:4px!important;}
  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body) #platformSidebar .brand-subtitle{font-size:10px!important;line-height:1.1!important;letter-spacing:.13em!important;font-weight:950!important;text-transform:uppercase!important;color:var(--v359-ink)!important;}
  body:not(.endpoint-auth-login):not(.lineup-tv-body):not(.movement-tv-body) #platformSidebar .brand-tag{max-width:165px!important;font-size:10px!important;line-height:1.3!important;color:var(--v359-muted)!important;}
}

/* Hero back to reference size; not oversized. */
body.endpoint-main-dashboard .cc-hero-amspec-v297.cc-hero-v291{
  position:relative!important;min-height:174px!important;height:auto!important;padding:28px 42px!important;border-radius:18px!important;display:flex!important;align-items:center!important;overflow:hidden!important;background-size:cover!important;background-position:center right!important;box-shadow:0 14px 34px rgba(15,28,42,.08)!important;
}
body.endpoint-main-dashboard .cc-hero-amspec-v297.cc-hero-v291::before{content:""!important;position:absolute!important;inset:0!important;background:linear-gradient(90deg,rgba(255,255,255,.93) 0%,rgba(255,255,255,.88) 42%,rgba(255,255,255,.38) 72%,rgba(255,255,255,.08) 100%)!important;pointer-events:none!important;}
body.endpoint-main-dashboard .cc-hero-copy-v297{position:relative!important;z-index:1!important;max-width:760px!important;padding:0!important;}
body.endpoint-main-dashboard .cc-hero-copy-v297 span{font-size:10px!important;line-height:1!important;letter-spacing:.23em!important;font-weight:950!important;color:var(--v359-red)!important;text-transform:uppercase!important;}
body.endpoint-main-dashboard .cc-hero-copy-v297 h1{margin:10px 0 10px!important;max-width:760px!important;font-size:40px!important;line-height:1.05!important;letter-spacing:-.035em!important;font-weight:950!important;color:#0a1725!important;}
html[lang="pt"] body.endpoint-main-dashboard .cc-hero-copy-v297 h1,
html[data-ui-language="pt"] body.endpoint-main-dashboard .cc-hero-copy-v297 h1{font-size:38px!important;max-width:780px!important;}
body.endpoint-main-dashboard .cc-hero-copy-v297 p{max-width:620px!important;font-size:14.5px!important;line-height:1.42!important;font-weight:650!important;color:#142236!important;}
body.endpoint-main-dashboard .cc-hero-actions-v297{position:relative!important;z-index:1!important;}

/* Atlas layout: integrated into the grid, no floating map card. */
.endpoint-main-operations_atlas .atlas44{overflow:visible!important;}
.endpoint-main-operations_atlas .atlas44-workspace{
  display:grid!important;grid-template-columns:320px minmax(560px,1fr) 350px!important;gap:16px!important;align-items:start!important;position:relative!important;z-index:0!important;
}
.endpoint-main-operations_atlas .atlas44-map-panel{
  position:relative!important;z-index:0!important;height:560px!important;min-height:560px!important;max-height:560px!important;border-radius:18px!important;border:1px solid #d7e1eb!important;background:#edf2f7!important;box-shadow:none!important;overflow:hidden!important;isolation:isolate!important;
}
.endpoint-main-operations_atlas .atlas44-map{position:absolute!important;inset:0!important;z-index:0!important;}
.endpoint-main-operations_atlas .atlas44-map-panel::before{background:linear-gradient(135deg,rgba(15,28,42,.035),transparent 28%,rgba(255,255,255,.12) 78%)!important;z-index:1!important;pointer-events:none!important;}
.endpoint-main-operations_atlas .atlas44-live{left:18px!important;top:18px!important;z-index:5!important;}
.endpoint-main-operations_atlas .atlas44-legend{left:18px!important;right:18px!important;bottom:14px!important;z-index:5!important;border-radius:12px!important;background:rgba(255,255,255,.90)!important;box-shadow:0 8px 18px rgba(15,28,42,.08)!important;}
.endpoint-main-operations_atlas .maplibregl-ctrl-bottom-right{z-index:6!important;}
.endpoint-main-operations_atlas .atlas44-inspector,
.endpoint-main-operations_atlas .atlas44-network-panel{position:relative!important;z-index:1!important;}
.endpoint-main-operations_atlas .atlas44-decision-deck{position:relative!important;z-index:1!important;margin-top:16px!important;}
.endpoint-main-operations_atlas .atlas44-network-table{position:relative!important;z-index:1!important;margin-top:16px!important;}
.endpoint-main-operations_atlas .atlas44-live-terminals,
.endpoint-main-operations_atlas .atlas44-map-note,
.endpoint-main-operations_atlas .atlas44-map-pulse{display:none!important;}

/* Branches visible on Brazil view; this overrides v356 display:none. */
.endpoint-main-operations_atlas .atlas44-branch-marker{
  display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:0!important;border:3px solid #fff!important;border-radius:50%!important;background:#98282b!important;color:#fff!important;box-shadow:0 9px 20px rgba(13,27,45,.18)!important;cursor:pointer!important;
}
.endpoint-main-operations_atlas .atlas44-branch-marker[hidden]{display:none!important;}
.endpoint-main-operations_atlas .atlas44-branch-marker.offline{background:#526173!important;opacity:.82!important;}
.endpoint-main-operations_atlas .atlas44-branch-marker>svg{width:18px!important;height:18px!important;}
.endpoint-main-operations_atlas .atlas44-branch-marker>span{display:none!important;}
.endpoint-main-operations_atlas .atlas44-branch-marker>em{position:absolute!important;top:-7px!important;right:-7px!important;display:grid!important;place-items:center!important;min-width:18px!important;height:18px!important;padding:0 4px!important;border:2px solid #fff!important;border-radius:999px!important;background:#fff!important;color:#98282b!important;font-size:7px!important;font-weight:900!important;font-style:normal!important;}

/* Terminal markers: only operating terminals, compact red beacon, no white cards. */
.endpoint-main-operations_atlas .atlas44-terminal-marker.atlas44-terminal-dom{
  display:grid!important;place-items:center!important;width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:50%!important;grid-template-columns:1fr!important;overflow:visible!important;
}
.endpoint-main-operations_atlas .atlas44-terminal-marker[hidden]{display:none!important;}
.endpoint-main-operations_atlas .atlas44-terminal-marker.atlas44-terminal-dom .atlas44-terminal-copy,
.endpoint-main-operations_atlas .atlas44-terminal-marker.atlas44-terminal-dom>em,
.endpoint-main-operations_atlas .atlas44-terminal-marker.atlas44-terminal-dom .atlas44-contract,
.endpoint-main-operations_atlas .atlas44-terminal-marker.atlas44-terminal-dom .atlas44-stack-index{display:none!important;}
.endpoint-main-operations_atlas .atlas44-terminal-marker.atlas44-terminal-dom .atlas44-beacon-ring{left:2px!important;top:2px!important;width:46px!important;height:46px!important;border-radius:50%!important;background:rgba(152,40,43,.20)!important;box-shadow:0 0 0 1px rgba(152,40,43,.24),0 0 0 8px rgba(152,40,43,.07)!important;}
.endpoint-main-operations_atlas .atlas44-terminal-marker.atlas44-terminal-dom .atlas44-terminal-icon{width:39px!important;height:39px!important;border-radius:50%!important;border:3px solid #fff!important;background:radial-gradient(circle at 35% 30%,#c94d53 0%,#98282b 42%,#651a1f 100%)!important;color:#fff!important;box-shadow:0 13px 28px rgba(152,40,43,.32)!important;transition:transform .18s ease,box-shadow .18s ease!important;}
.endpoint-main-operations_atlas .atlas44-terminal-marker.atlas44-terminal-dom .atlas44-terminal-icon svg{width:21px!important;height:21px!important;}
.endpoint-main-operations_atlas .atlas44-terminal-marker.atlas44-terminal-dom:hover,
.endpoint-main-operations_atlas .atlas44-terminal-marker.atlas44-terminal-dom.selected{width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;}
.endpoint-main-operations_atlas .atlas44-terminal-marker.atlas44-terminal-dom:hover .atlas44-terminal-icon,
.endpoint-main-operations_atlas .atlas44-terminal-marker.atlas44-terminal-dom.selected .atlas44-terminal-icon{transform:scale(1.06)!important;box-shadow:0 0 0 5px rgba(152,40,43,.14),0 15px 30px rgba(152,40,43,.36)!important;}
.endpoint-main-operations_atlas .atlas44-terminal-marker.atlas44-terminal-dom.selected::after{content:attr(data-terminal-label);position:absolute;top:56px;left:50%;transform:translateX(-50%);max-width:160px;padding:5px 8px;border:1px solid rgba(255,255,255,.95);border-radius:999px;color:#0f1c2a;background:rgba(255,255,255,.96);box-shadow:0 10px 22px rgba(15,28,42,.12);font-size:10px;font-weight:850;line-height:1;white-space:nowrap;}

/* Stuffing marker hidden by default via JS; clean when enabled. */
.endpoint-main-operations_atlas .atlas44-operation-marker.stuffing{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border-radius:12px!important;border:3px solid #fff!important;background:linear-gradient(145deg,#c53d43,#8b2328)!important;box-shadow:0 12px 24px rgba(139,35,40,.25)!important;}
.endpoint-main-operations_atlas .atlas44-operation-marker.stuffing[hidden]{display:none!important;}
.endpoint-main-operations_atlas .atlas44-operation-marker.stuffing>span,
.endpoint-main-operations_atlas .atlas44-operation-marker.stuffing>em{display:none!important;}
.endpoint-main-operations_atlas .atlas44-operation-marker.stuffing>svg{width:19px!important;height:19px!important;color:#fff!important;}

/* Responsive guard so the map never overlays lower sections. */
@media (max-width:1280px){
  .endpoint-main-operations_atlas .atlas44-workspace{grid-template-columns:300px minmax(0,1fr) 320px!important;}
  .endpoint-main-operations_atlas .atlas44-map-panel{height:520px!important;min-height:520px!important;max-height:520px!important;}
}
@media (max-width:980px){
  .endpoint-main-operations_atlas .atlas44-workspace{grid-template-columns:1fr!important;}
  .endpoint-main-operations_atlas .atlas44-map-panel{height:480px!important;min-height:480px!important;max-height:480px!important;}
  body.endpoint-main-dashboard .cc-hero-copy-v297 h1{font-size:34px!important;}
  html[lang="pt"] body.endpoint-main-dashboard .cc-hero-copy-v297 h1,
  html[data-ui-language="pt"] body.endpoint-main-dashboard .cc-hero-copy-v297 h1{font-size:32px!important;}
}
