/* v360 - weather card and Atlas branch-marker correction.
   Loaded last. Overrides previous v35x experiments. */
:root{
  --v360-ink:#0b1726;
  --v360-muted:#64748b;
  --v360-line:#d7e1eb;
  --v360-red:#98282b;
  --v360-red-dark:#681b20;
  --v360-blue:#2563eb;
  --v360-blue-soft:#eff6ff;
  --v360-cloud:#526173;
  --v360-cloud-soft:#f3f6f9;
  --v360-amber:#b7791f;
  --v360-amber-soft:#fff8e6;
  --v360-green:#16795b;
  --v360-green-soft:#effcf5;
}

/* ===== Top-bar Santos weather pill: compact, aligned and condition-aware. ===== */
body:not(.endpoint-auth-login):not(.lineup-tv-body) .platform-topbar-v295 .ops-live-v291{
  min-width:136px!important;
  max-width:168px!important;
  height:50px!important;
  min-height:50px!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  padding:6px 10px!important;
  border-radius:18px!important;
  border:1px solid var(--v360-line)!important;
  background:linear-gradient(145deg,#fff,#f8fafc)!important;
  box-shadow:0 8px 18px rgba(15,28,42,.06)!important;
}
body:not(.endpoint-auth-login):not(.lineup-tv-body) .platform-topbar-v295 .ops-weather-icon-v342{
  width:34px!important;height:34px!important;min-width:34px!important;border-radius:13px!important;
  display:grid!important;place-items:center!important;border:0!important;box-shadow:none!important;
}
body:not(.endpoint-auth-login):not(.lineup-tv-body) .platform-topbar-v295 .ops-weather-icon-v342 svg{width:20px!important;height:20px!important;}
body:not(.endpoint-auth-login):not(.lineup-tv-body) .platform-topbar-v295 .ops-weather-copy-v342{
  display:grid!important;gap:1px!important;min-width:0!important;line-height:1.05!important;
}
body:not(.endpoint-auth-login):not(.lineup-tv-body) .platform-topbar-v295 .ops-weather-copy-v342 span{
  max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  font-size:8px!important;font-weight:950!important;letter-spacing:.07em!important;text-transform:uppercase!important;color:#55667a!important;
}
body:not(.endpoint-auth-login):not(.lineup-tv-body) .platform-topbar-v295 .ops-weather-copy-v342 strong{
  font-size:12px!important;line-height:1.05!important;font-weight:950!important;color:var(--v360-ink)!important;
}
body:not(.endpoint-auth-login):not(.lineup-tv-body) .platform-topbar-v295 .ops-weather-copy-v342 small{
  max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  font-size:8px!important;line-height:1.05!important;color:var(--v360-muted)!important;
}
body:not(.endpoint-auth-login):not(.lineup-tv-body) .ops-topbar-v291[data-weather-condition="clear"] .ops-weather-icon-v342{background:#fff3c4!important;color:#8a5a00!important;}
body:not(.endpoint-auth-login):not(.lineup-tv-body) .ops-topbar-v291[data-weather-condition="cloud"] .ops-weather-icon-v342{background:#eef2f6!important;color:#44576b!important;}
body:not(.endpoint-auth-login):not(.lineup-tv-body) .ops-topbar-v291[data-weather-condition="rain"] .ops-weather-icon-v342{background:#dbeafe!important;color:#1d4ed8!important;}
body:not(.endpoint-auth-login):not(.lineup-tv-body) .ops-topbar-v291[data-weather-condition="storm"] .ops-weather-icon-v342{background:#ffe4e6!important;color:#98282b!important;}
body:not(.endpoint-auth-login):not(.lineup-tv-body) .ops-topbar-v291[data-weather-risk="low"] .ops-live-v291{border-color:#bfdcca!important;background:linear-gradient(145deg,#fff,#f8fffb)!important;}
body:not(.endpoint-auth-login):not(.lineup-tv-body) .ops-topbar-v291[data-weather-risk="medium"] .ops-live-v291{border-color:#bdd7ff!important;background:linear-gradient(145deg,#fff,#f8fbff)!important;}
body:not(.endpoint-auth-login):not(.lineup-tv-body) .ops-topbar-v291[data-weather-risk="high"] .ops-live-v291{border-color:#efb9c0!important;background:linear-gradient(145deg,#fff,#fff7f8)!important;}

/* ===== Dashboard Weather & Risk card. ===== */
body.endpoint-main-dashboard .cc-weather-v291{
  border-radius:18px!important;overflow:hidden!important;background:#fff!important;
}
body.endpoint-main-dashboard .cc-weather-v291>header{
  padding:14px 16px 10px!important;border-bottom:1px solid var(--v360-line)!important;
}
body.endpoint-main-dashboard .cc-weather-v291>header h2{font-size:17px!important;line-height:1.15!important;}
body.endpoint-main-dashboard .cc-weather-v291>header span{font-size:9px!important;letter-spacing:.12em!important;}
body.endpoint-main-dashboard .cc-weather-v291>header>button{
  width:42px!important;height:42px!important;border-radius:13px!important;border:1px solid var(--v360-line)!important;background:#fff!important;
}
body.endpoint-main-dashboard #ccWeatherNow{padding:14px 16px 12px!important;}
body.endpoint-main-dashboard .cc-weather-now-v356{
  display:grid!important;grid-template-columns:50px minmax(0,1fr) 74px!important;gap:12px!important;align-items:center!important;
  min-height:86px!important;padding:12px!important;border:1px solid var(--v360-line)!important;border-radius:16px!important;background:#fff!important;
  box-shadow:none!important;
}
body.endpoint-main-dashboard .cc-weather-now-v356.wx-clear{border-color:#f3d48a!important;background:linear-gradient(180deg,#fffdf5,#fff)!important;}
body.endpoint-main-dashboard .cc-weather-now-v356.wx-cloud{border-color:#d4dde7!important;background:linear-gradient(180deg,#f7f9fc,#fff)!important;}
body.endpoint-main-dashboard .cc-weather-now-v356.wx-rain{border-color:#bfdbfe!important;background:linear-gradient(180deg,#f2f7ff,#fff)!important;}
body.endpoint-main-dashboard .cc-weather-now-v356.wx-storm{border-color:#f3bdc4!important;background:linear-gradient(180deg,#fff5f6,#fff)!important;}
body.endpoint-main-dashboard .cc-weather-now-icon-v356{
  width:50px!important;height:50px!important;border-radius:16px!important;display:grid!important;place-items:center!important;box-shadow:none!important;
}
body.endpoint-main-dashboard .cc-weather-now-icon-v356 svg{width:27px!important;height:27px!important;}
body.endpoint-main-dashboard .cc-weather-now-v356.wx-clear .cc-weather-now-icon-v356{background:#fff1bd!important;color:#8a5a00!important;}
body.endpoint-main-dashboard .cc-weather-now-v356.wx-cloud .cc-weather-now-icon-v356{background:#e8eef5!important;color:#425568!important;}
body.endpoint-main-dashboard .cc-weather-now-v356.wx-rain .cc-weather-now-icon-v356{background:#dbeafe!important;color:#1d4ed8!important;}
body.endpoint-main-dashboard .cc-weather-now-v356.wx-storm .cc-weather-now-icon-v356{background:#ffe4e6!important;color:#98282b!important;}
body.endpoint-main-dashboard .cc-weather-now-copy-v356{display:grid!important;gap:3px!important;min-width:0!important;}
body.endpoint-main-dashboard .cc-weather-now-copy-v356 b{
  max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  font-size:13px!important;line-height:1.2!important;font-weight:850!important;color:var(--v360-ink)!important;
}
body.endpoint-main-dashboard .cc-weather-now-copy-v356 strong{font-size:24px!important;line-height:1!important;font-weight:950!important;color:var(--v360-ink)!important;}
body.endpoint-main-dashboard .cc-weather-now-copy-v356 small{font-size:11px!important;line-height:1.25!important;color:var(--v360-muted)!important;}
body.endpoint-main-dashboard .cc-weather-risk-v356{display:grid!important;justify-items:end!important;gap:5px!important;min-width:0!important;}
body.endpoint-main-dashboard .cc-weather-risk-v356 em{
  min-width:70px!important;height:26px!important;padding:0 8px!important;border-radius:999px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  font-size:8px!important;font-weight:950!important;letter-spacing:.08em!important;text-transform:uppercase!important;font-style:normal!important;
}
body.endpoint-main-dashboard .cc-weather-risk-v356 em.low{background:var(--v360-green-soft)!important;color:var(--v360-green)!important;}
body.endpoint-main-dashboard .cc-weather-risk-v356 em.medium{background:var(--v360-blue-soft)!important;color:var(--v360-blue)!important;}
body.endpoint-main-dashboard .cc-weather-risk-v356 em.high{background:#fff0f2!important;color:var(--v360-red)!important;}
body.endpoint-main-dashboard .cc-weather-risk-v356 span{font-size:10px!important;color:var(--v360-muted)!important;}

body.endpoint-main-dashboard .cc-weather-days-v291{
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;padding:0 16px 16px!important;
}
body.endpoint-main-dashboard .cc-weather-days-v291 article{
  min-height:110px!important;padding:10px 6px!important;display:grid!important;align-content:start!important;justify-items:center!important;gap:5px!important;
  border:1px solid var(--v360-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important;
}
body.endpoint-main-dashboard .cc-weather-days-v291 article::before{display:none!important;content:none!important;}
body.endpoint-main-dashboard .cc-weather-days-v291 article.wx-clear{border-color:#f3d48a!important;background:linear-gradient(180deg,#fffdf5,#fff)!important;}
body.endpoint-main-dashboard .cc-weather-days-v291 article.wx-cloud{border-color:#d4dde7!important;background:linear-gradient(180deg,#f7f9fc,#fff)!important;}
body.endpoint-main-dashboard .cc-weather-days-v291 article.wx-rain{border-color:#bfdbfe!important;background:linear-gradient(180deg,#f2f7ff,#fff)!important;}
body.endpoint-main-dashboard .cc-weather-days-v291 article.wx-storm{border-color:#f3bdc4!important;background:linear-gradient(180deg,#fff5f6,#fff)!important;}
body.endpoint-main-dashboard .cc-weather-days-v291 .cc-weather-icon-v342{
  width:36px!important;height:36px!important;display:grid!important;place-items:center!important;border-radius:13px!important;box-shadow:none!important;
}
body.endpoint-main-dashboard .cc-weather-days-v291 .cc-weather-icon-v342 svg{width:22px!important;height:22px!important;}
body.endpoint-main-dashboard .cc-weather-days-v291 article.wx-clear .cc-weather-icon-v342{background:#fff1bd!important;color:#8a5a00!important;}
body.endpoint-main-dashboard .cc-weather-days-v291 article.wx-cloud .cc-weather-icon-v342{background:#e8eef5!important;color:#425568!important;}
body.endpoint-main-dashboard .cc-weather-days-v291 article.wx-rain .cc-weather-icon-v342{background:#dbeafe!important;color:#1d4ed8!important;}
body.endpoint-main-dashboard .cc-weather-days-v291 article.wx-storm .cc-weather-icon-v342{background:#ffe4e6!important;color:#98282b!important;}
body.endpoint-main-dashboard .cc-weather-days-v291 b{font-size:8.5px!important;font-weight:950!important;letter-spacing:.06em!important;color:var(--v360-red)!important;}
body.endpoint-main-dashboard .cc-weather-days-v291 strong{font-size:24px!important;line-height:1!important;font-weight:950!important;color:var(--v360-ink)!important;}
body.endpoint-main-dashboard .cc-weather-days-v291 em{font-size:13px!important;line-height:1!important;font-style:normal!important;color:var(--v360-muted)!important;}
body.endpoint-main-dashboard .cc-weather-days-v291 span{font-size:11px!important;line-height:1.15!important;font-weight:800!important;color:#27384c!important;text-align:center!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;}
body.endpoint-main-dashboard .cc-weather-days-v291 small{font-size:9px!important;line-height:1.15!important;color:var(--v360-muted)!important;text-align:center!important;}

/* ===== Atlas branch markers: no stacked grey cards, no count bubble. ===== */
.endpoint-main-operations_atlas .atlas44-branch-marker{
  display:grid!important;place-items:center!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:0!important;
  border:2px solid #fff!important;border-radius:50%!important;background:var(--v360-red)!important;color:#fff!important;box-shadow:0 9px 22px rgba(15,28,42,.22)!important;
  grid-template-columns:1fr!important;overflow:visible!important;
}
.endpoint-main-operations_atlas .atlas44-branch-marker[hidden]{display:none!important;}
.endpoint-main-operations_atlas .atlas44-branch-marker.offline{background:#334155!important;color:#e2e8f0!important;opacity:.94!important;}
.endpoint-main-operations_atlas .atlas44-branch-marker.live{background:var(--v360-red)!important;color:#fff!important;}
.endpoint-main-operations_atlas .atlas44-branch-marker.compact{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;}
.endpoint-main-operations_atlas .atlas44-branch-marker>svg,
.endpoint-main-operations_atlas .atlas44-branch-marker>i,
.endpoint-main-operations_atlas .atlas44-branch-marker>.lucide{width:17px!important;height:17px!important;color:currentColor!important;}
.endpoint-main-operations_atlas .atlas44-branch-marker>span,
.endpoint-main-operations_atlas .atlas44-branch-marker>em{display:none!important;}
.endpoint-main-operations_atlas .atlas44-branch-marker:hover,
.endpoint-main-operations_atlas .atlas44-branch-marker.selected{transform:translateY(-1px)!important;box-shadow:0 0 0 5px rgba(152,40,43,.12),0 12px 26px rgba(15,28,42,.24)!important;}
.endpoint-main-operations_atlas .atlas44-branch-marker:hover::after,
.endpoint-main-operations_atlas .atlas44-branch-marker.selected::after{
  content:attr(title);position:absolute;top:40px;left:50%;transform:translateX(-50%);z-index:99;
  max-width:180px;padding:5px 8px;border:1px solid rgba(255,255,255,.95);border-radius:999px;background:rgba(255,255,255,.96);color:var(--v360-ink);
  font-size:10px;font-weight:850;white-space:nowrap;box-shadow:0 10px 24px rgba(15,28,42,.12);pointer-events:none;
}

/* Atlas weather panel: consistent colors with dashboard. */
.endpoint-main-operations_atlas .atlas44-weather-now.wx-low{border-color:#bfdcca!important;background:linear-gradient(180deg,#f8fffb,#fff)!important;}
.endpoint-main-operations_atlas .atlas44-weather-now.wx-medium{border-color:#bfdbfe!important;background:linear-gradient(180deg,#f2f7ff,#fff)!important;}
.endpoint-main-operations_atlas .atlas44-weather-now.wx-high{border-color:#f3bdc4!important;background:linear-gradient(180deg,#fff5f6,#fff)!important;}
.endpoint-main-operations_atlas .atlas44-weather-now.wx-low>svg{background:#eefcf5!important;color:var(--v360-green)!important;}
.endpoint-main-operations_atlas .atlas44-weather-now.wx-medium>svg{background:#dbeafe!important;color:#1d4ed8!important;}
.endpoint-main-operations_atlas .atlas44-weather-now.wx-high>svg{background:#ffe4e6!important;color:var(--v360-red)!important;}
.endpoint-main-operations_atlas .atlas44-weather-days article.wx-clear{border-color:#f3d48a!important;background:linear-gradient(180deg,#fffdf5,#fff)!important;}
.endpoint-main-operations_atlas .atlas44-weather-days article.wx-cloud{border-color:#d4dde7!important;background:linear-gradient(180deg,#f7f9fc,#fff)!important;}
.endpoint-main-operations_atlas .atlas44-weather-days article.wx-rain{border-color:#bfdbfe!important;background:linear-gradient(180deg,#f2f7ff,#fff)!important;}
.endpoint-main-operations_atlas .atlas44-weather-days article.wx-storm{border-color:#f3bdc4!important;background:linear-gradient(180deg,#fff5f6,#fff)!important;}
.endpoint-main-operations_atlas .atlas44-weather-days article.wx-clear svg{background:#fff1bd!important;color:#8a5a00!important;}
.endpoint-main-operations_atlas .atlas44-weather-days article.wx-cloud svg{background:#e8eef5!important;color:#425568!important;}
.endpoint-main-operations_atlas .atlas44-weather-days article.wx-rain svg{background:#dbeafe!important;color:#1d4ed8!important;}
.endpoint-main-operations_atlas .atlas44-weather-days article.wx-storm svg{background:#ffe4e6!important;color:#98282b!important;}

@media(max-width:1180px){
  body.endpoint-main-dashboard .cc-weather-days-v291 article{min-height:104px!important;padding:9px 5px!important;}
  body.endpoint-main-dashboard .cc-weather-days-v291 strong{font-size:21px!important;}
}
