/* Macro Map · MODE · HURRICANE DESK · fase 1 (shell · fit Atlântico/Golfo · zero GOES/companies) */

#ih-panel-macro-map[data-mm-mode="hurricane_desk"] {
  --hur-accent: #4A8FA0;
  --hur-bg: #07090c;
  --hur-panel: rgba(8, 10, 14, 0.96);
  --hur-line: rgba(74, 143, 160, 0.38);
  --hur-muted: #7a8494;
  --hur-dock-h: 380px;
  --hur-foot-h: 60px;
  --hur-film-h: 72px;
}

#ih-panel-macro-map[data-mm-mode="hurricane_desk"] .ih-map-stage {
  background: #05070a !important;
  border: 1px solid rgba(40, 48, 58, 0.95) !important;
  overflow: hidden;
}

#ih-panel-macro-map[data-mm-mode="hurricane_desk"] #cal-map-host,
body.ih-hub-full #view-caleco.ih-view.active.ih-show-calendar #ih-panel-macro-map[data-mm-mode="hurricane_desk"] #cal-map-host,
#view-caleco.ih-show-calendar #ih-panel-macro-map[data-mm-mode="hurricane_desk"] #cal-map-host {
  background: #0a121c !important;
  inset: auto !important;
  top: var(--hur-film-h) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: calc(var(--hur-dock-h) + var(--hur-foot-h)) !important;
  height: auto !important;
  width: auto !important;
  min-height: 160px !important;
  z-index: 1 !important;
}

#ih-panel-macro-map[data-mm-mode="hurricane_desk"] #cal-map-host .ih-mm-maplibre,
#ih-panel-macro-map[data-mm-mode="hurricane_desk"] #cal-map-ml {
  background: #0a121c !important;
  bottom: 0 !important;
  height: 100% !important;
  left: 0 !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  width: 100% !important;
}

#ih-panel-macro-map[data-mm-mode="hurricane_desk"] #cal-map-ml,
#ih-panel-macro-map[data-mm-mode="hurricane_desk"] .maplibregl-canvas-container,
#ih-panel-macro-map[data-mm-mode="hurricane_desk"] .maplibregl-canvas {
  cursor: grab;
  pointer-events: auto !important;
  touch-action: none;
}

#ih-panel-macro-map[data-mm-mode="hurricane_desk"] .ih-mm-kpi,
#ih-panel-macro-map[data-mm-mode="hurricane_desk"] .ih-mm-sessions,
#ih-panel-macro-map[data-mm-mode="hurricane_desk"] #ih-mm-disaster-foot,
#ih-panel-macro-map[data-mm-mode="hurricane_desk"] .ih-module-bar,
#ih-panel-macro-map[data-mm-mode="hurricane_desk"] #ih-mm-data-source,
#ih-panel-macro-map[data-mm-mode="hurricane_desk"] #ih-mm-eq-legend,
#ih-panel-macro-map[data-mm-mode="hurricane_desk"] .ih-mm-layer-menu {
  display: none !important;
  pointer-events: none !important;
}

#ih-panel-macro-map[data-mm-mode="hurricane_desk"] #ih-mm-bmap,
#ih-panel-macro-map[data-mm-mode="hurricane_desk"] #ih-mm-bmap-fab,
#ih-panel-macro-map[data-mm-mode="hurricane_desk"] .ih-mm-bmap__fab {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

#ih-panel-macro-map[data-mm-mode="hurricane_desk"] .ih-mm-film {
  background: #07090c !important;
  border-bottom: 1px solid rgba(74, 143, 160, 0.32) !important;
  left: 0;
  padding: 0 !important;
  right: 0;
  z-index: 14;
}

#ih-panel-macro-map[data-mm-mode="hurricane_desk"] .ih-mm-film__gct-word {
  color: var(--hur-accent);
  font: 800 30px/1 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.06em;
}

#ih-panel-macro-map[data-mm-mode="hurricane_desk"] .ih-mm-film__gct-product {
  color: #ebe5d8;
  font: 600 20px/1.25 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#ih-panel-macro-map[data-mm-mode="hurricane_desk"] .ih-mm-film__mode-center {
  color: var(--hur-accent) !important;
  font: 700 25px/1.2 "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: 0.16em !important;
}

#ih-panel-macro-map .ih-mm-hur-dock {
  align-items: stretch;
  background: #07090c;
  border-top: 1px solid rgba(40, 48, 58, 0.95);
  bottom: var(--hur-foot-h, 54px);
  display: flex;
  flex-direction: row;
  gap: 10px;
  height: var(--hur-dock-h, 168px);
  left: 0;
  overflow: hidden;
  padding: 10px 12px 8px;
  pointer-events: auto;
  position: absolute;
  right: 0;
  z-index: 12;
}

#ih-panel-macro-map .ih-mm-hur-card {
  background: #0c0e12;
  border: 1px solid rgba(52, 62, 74, 0.95);
  border-radius: 5px;
  box-shadow: none;
  display: flex;
  filter: none;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 10px 12px;
}

#ih-panel-macro-map .ih-mm-hur-rail {
  align-content: stretch;
  display: grid;
  flex: 1.4 1 720px;
  gap: 10px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr) minmax(0, 0.9fr);
  grid-template-rows: auto;
  max-width: none;
  min-width: 0;
  overflow: hidden;
  pointer-events: auto;
}

#ih-panel-macro-map .ih-mm-hur-rail > .ih-mm-hur-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

#ih-panel-macro-map .ih-mm-hur-rail > .ih-mm-hur-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  overflow: auto;
}

#ih-panel-macro-map .ih-mm-hur-rail > .ih-mm-hur-impacted {
  grid-column: 3;
  grid-row: 1;
}

#ih-panel-macro-map .ih-mm-hur-rail[hidden],
#ih-panel-macro-map .ih-mm-hur-dock[hidden],
#ih-panel-macro-map .ih-mm-hur-foot[hidden] {
  display: none !important;
}

#ih-panel-macro-map .ih-mm-hur-rail__hd {
  color: var(--hur-muted, #7a8494);
  font: 700 20px/1.2 "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

#ih-panel-macro-map .ih-mm-hur-rail__empty {
  color: var(--hur-muted, #7a8494);
  font: 400 19px/1.4 "Segoe UI", sans-serif;
  margin-top: 8px;
  max-width: 42ch;
}

#ih-panel-macro-map .ih-mm-hur-regions {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#ih-panel-macro-map .ih-mm-hur-regions--layers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#ih-panel-macro-map .ih-mm-hur-chip {
  background: #1c2128;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  box-shadow: inset 0 -3px 0 transparent;
  color: #9aa3ab;
  cursor: pointer;
  font: 700 19px/1.2 "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  min-height: 40px;
  opacity: 1;
  padding: 7px 10px 10px;
  text-align: center;
  white-space: normal;
  width: auto;
}

#ih-panel-macro-map .ih-mm-hur-regions--layers .ih-mm-hur-chip {
  padding-left: 10px;
}

#ih-panel-macro-map .ih-mm-hur-chip.is-on {
  background: #2a313a;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -3px 0 #4A8FA0;
  color: #fff;
}

#ih-panel-macro-map .ih-mm-hur-regions--layers .ih-mm-hur-chip.is-on {
  color: #fff;
}

#ih-panel-macro-map .ih-mm-hur-chip:hover:not(:disabled):not(.is-on) {
  background: #242a32;
  color: #d7dde4;
}

#ih-panel-macro-map .ih-mm-hur-chip:disabled {
  cursor: default;
  opacity: 0.45;
}

#ih-panel-macro-map .ih-mm-hur-dossier {
  flex: 0.95 1 260px;
  max-width: 340px;
}

#ih-panel-macro-map .ih-mm-hur-dock__meta {
  display: flex;
  flex: 0.85 1 260px;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
  overflow: hidden;
}

#ih-panel-macro-map .ih-mm-hur-dock__meta > .ih-mm-hur-card {
  flex: 1 1 auto;
}

#ih-panel-macro-map .ih-mm-hur-card--clock {
  align-items: center;
  flex: 0 0 auto;
  justify-content: center;
  min-height: 72px;
  text-align: center;
}

#ih-panel-macro-map .ih-mm-hur-dock__hd {
  color: var(--hur-muted, #7a8494);
  font: 700 20px/1.2 "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

#ih-panel-macro-map .ih-mm-hur-dock__name,
#ih-panel-macro-map .ih-mm-hur-dock__asof,
#ih-panel-macro-map .ih-mm-hur-dock__loop,
#ih-panel-macro-map .ih-mm-hur-dock__storms,
#ih-panel-macro-map .ih-mm-hur-dock__proof {
  color: #c8d0da;
  font: 500 19px/1.45 "Segoe UI", sans-serif;
}

#ih-panel-macro-map .ih-mm-hur-dock__asof {
  color: #4A8FA0;
  font-weight: 700;
}

#ih-panel-macro-map .ih-mm-hur-dock__proof.is-ok,
#ih-panel-macro-map .ih-mm-hur-foot #ih-mm-hur-foot-proof.is-ok {
  color: #3FE3BC;
}

#ih-panel-macro-map .ih-mm-hur-dock__proof.is-fail,
#ih-panel-macro-map .ih-mm-hur-foot #ih-mm-hur-foot-proof.is-fail {
  color: #E85C5C;
}

#ih-panel-macro-map .ih-mm-hur-proof-btn {
  background: rgba(14, 17, 22, 0.98);
  border: 1px solid rgba(58, 70, 84, 0.95);
  border-radius: 3px;
  box-shadow: none;
  color: #9ec9d4;
  cursor: pointer;
  font: 700 18px/1.2 "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  margin-top: 8px;
  padding: 7px 10px;
}

#ih-panel-macro-map .ih-mm-hur-proof-btn:hover {
  background: rgba(74, 143, 160, 0.28);
  color: #e8f4f8;
}

#ih-panel-macro-map .ih-mm-hur-stale {
  background: rgba(232, 92, 92, 0.18);
  border: 1px solid rgba(232, 92, 92, 0.65);
  color: #E85C5C;
  display: inline-block;
  font: 700 20px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.1em;
  margin-left: 8px;
  padding: 4px 8px;
  vertical-align: middle;
}

#ih-panel-macro-map .ih-mm-hur-stale[hidden] {
  display: none !important;
}

#ih-panel-macro-map .ih-mm-hur-dock__loop {
  color: #4A8FA0;
}

#ih-panel-macro-map .ih-mm-hur-clock-lab {
  color: var(--hur-muted, #7a8494);
  font: 700 20px/1.2 "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

#ih-panel-macro-map .ih-mm-hur-clock {
  color: #4A8FA0;
  font: 700 44px/1.15 "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
}

#ih-mm-hur-storm-list:empty {
  display: none;
}

#ih-panel-macro-map .ih-mm-hur-storms-col {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin-top: 12px;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

#ih-panel-macro-map .ih-mm-hur-storms-col .ih-mm-hur-rail__hd {
  color: var(--hur-muted, #7a8494);
  flex-shrink: 0;
  font: 700 20px/1.2 "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

#ih-panel-macro-map #ih-mm-hur-storm-list.ih-mm-hur-storm-list,
#ih-panel-macro-map #ih-mm-hur-storm-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0;
  max-height: min(260px, 42vh);
  min-height: 0;
  min-width: 200px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  scrollbar-color: rgba(74, 143, 160, 0.75) transparent;
  scrollbar-width: thin;
}

#ih-panel-macro-map #ih-mm-hur-storm-list::-webkit-scrollbar {
  width: 4px;
}

#ih-panel-macro-map #ih-mm-hur-storm-list::-webkit-scrollbar-thumb {
  background: rgba(74, 143, 160, 0.75);
  border-radius: 2px;
}

#ih-panel-macro-map .ih-mm-hur-storm {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(52, 62, 74, 0.9);
  border-left: 2px solid transparent;
  box-shadow: none;
  color: #c8d0da;
  cursor: pointer;
  display: grid;
  filter: none;
  gap: 10px 12px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 8px 8px 8px 6px;
  text-align: left;
  width: 100%;
}

#ih-panel-macro-map .ih-mm-hur-storm:last-child {
  border-bottom: 0;
}

#ih-panel-macro-map .ih-mm-hur-storm:hover {
  background: rgba(18, 22, 28, 0.55);
}

#ih-panel-macro-map .ih-mm-hur-storm.is-on {
  background: rgba(18, 28, 34, 0.55);
  border-left-color: #4A8FA0;
  box-shadow: none;
}

#ih-panel-macro-map .ih-mm-hur-storm__leo {
  color: #4A8FA0;
  flex-shrink: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: none;
}

#ih-panel-macro-map .ih-mm-hur-storm.is-td .ih-mm-hur-storm__leo {
  color: #E8B44A;
  text-shadow: none;
}

#ih-panel-macro-map .ih-mm-hur-storm.is-hu .ih-mm-hur-storm__leo {
  color: #E8B44A;
  text-shadow: none;
}

#ih-panel-macro-map .ih-mm-hur-storm.is-ts .ih-mm-hur-storm__leo {
  color: #4A8FA0;
  text-shadow: none;
}

#ih-panel-macro-map .ih-mm-hur-storm__lab {
  color: #c8d0da;
  font: 600 19px/1.25 "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

#ih-panel-macro-map .ih-mm-hur-dossier.is-empty .ih-mm-hur-dossier__title {
  border-color: rgba(52, 62, 74, 0.95);
  color: var(--hur-muted, #7a8494);
}

#ih-panel-macro-map .ih-mm-hur-dossier__title {
  border: 1px solid rgba(74, 143, 160, 0.75);
  border-radius: 3px;
  box-shadow: none;
  color: #4A8FA0;
  font: 700 20px/1.3 "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  padding: 7px 10px;
  text-transform: uppercase;
}

#ih-panel-macro-map .ih-mm-hur-dossier__grid {
  display: grid;
  gap: 5px 14px;
  grid-template-columns: 1fr 1fr;
}

#ih-panel-macro-map .ih-mm-hur-dossier__grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#ih-panel-macro-map .ih-mm-hur-dossier__grid i {
  color: var(--hur-muted, #7a8494);
  font: 700 17px/1.2 "Segoe UI", sans-serif;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#ih-panel-macro-map .ih-mm-hur-dossier__grid b {
  color: #c8d0da;
  font: 500 18px/1.3 "Segoe UI", sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ih-panel-macro-map .ih-mm-hur-dossier__links {
  color: #4A8FA0;
  font: 600 18px/1.4 "Segoe UI", sans-serif;
  margin-top: 8px;
}

#ih-panel-macro-map .ih-mm-hur-dossier__links a {
  color: #4A8FA0;
  text-decoration: none;
}

#ih-panel-macro-map .ih-mm-hur-dossier__links a:hover {
  text-decoration: underline;
}

#ih-panel-macro-map .ih-mm-hur-dossier__meta {
  color: var(--hur-muted, #7a8494);
  font: 500 17px/1.35 "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  margin-top: 6px;
}

#ih-panel-macro-map .ih-mm-hur-impacted {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

#ih-panel-macro-map .ih-mm-hur-impact-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
  min-height: 0;
  overflow: auto;
}

#ih-panel-macro-map .ih-mm-hur-impact-row {
  align-items: baseline;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(52, 62, 74, 0.9);
  box-shadow: none;
  color: #c8d0da;
  cursor: pointer;
  display: grid;
  font: 500 18px/1.3 "Segoe UI", sans-serif;
  gap: 2px 8px;
  grid-template-columns: auto auto 1fr;
  padding: 6px 2px;
  text-align: left;
}

#ih-panel-macro-map .ih-mm-hur-mix-badge {
  color: #7a8494;
  font: 700 18px/1.2 "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  min-width: 2.4em;
}

#ih-panel-macro-map .ih-mm-hur-impact-row--port .ih-mm-hur-mix-badge,
#ih-panel-macro-map .ih-mm-hur-impact-row--port b {
  color: #4A8FA0;
}

#ih-panel-macro-map .ih-mm-hur-impact-row--refinery .ih-mm-hur-mix-badge,
#ih-panel-macro-map .ih-mm-hur-impact-row--refinery b {
  color: #E8B44A;
}

#ih-panel-macro-map .ih-mm-hur-impact-row b {
  color: #00E5FF;
  font: 700 24px/1.2 "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
}

#ih-panel-macro-map .ih-mm-hur-impact-row span {
  color: #c8d0dc;
  grid-column: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ih-panel-macro-map .ih-mm-hur-impact-row i {
  color: var(--hur-muted, #7a8494);
  font: 500 20px/1.2 "Segoe UI", sans-serif;
  font-style: normal;
  grid-column: 1 / -1;
}

#ih-panel-macro-map .ih-mm-hur-impact-row:hover {
  background: rgba(0, 229, 255, 0.06);
}

#ih-panel-macro-map .ih-mm-hur-impact-empty {
  color: var(--hur-muted, #7a8494);
  font: 500 22px/1.35 "Segoe UI", sans-serif;
}

#ih-panel-macro-map .ih-mm-hur-query-filter {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(74, 143, 160, 0.35);
  color: #d4dce6;
  flex: 0 0 auto;
  font: 600 22px/1.2 "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
  padding: 8px 10px;
  width: 100%;
}

#ih-panel-macro-map .ih-mm-hur-query-filter::placeholder {
  color: var(--hur-muted, #7a8494);
  letter-spacing: 0.08em;
}

#ih-panel-macro-map .ih-mm-hur-query-filter:focus {
  border-color: rgba(0, 229, 255, 0.55);
  outline: none;
}

#ih-panel-macro-map .ih-mm-hur-foot {
  align-items: center;
  background: #07090c;
  border-top: 1px solid rgba(74, 143, 160, 0.22);
  bottom: 0;
  color: var(--hur-muted, #7a8494);
  display: flex;
  font: 600 24px/1 "Segoe UI", sans-serif;
  gap: 16px;
  height: var(--hur-foot-h, 60px);
  left: 0;
  letter-spacing: 0.08em;
  padding: 0 16px;
  pointer-events: auto;
  position: absolute;
  right: 0;
  z-index: 12;
}

#ih-panel-macro-map .ih-mm-hur-foot button {
  background: transparent;
  border: 0;
  color: #4A8FA0;
  cursor: pointer;
  font: 700 24px/1 "Segoe UI", sans-serif;
}

#ih-panel-macro-map:has(#ih-mm-region-foot:not([hidden])) .ih-mm-hur-foot {
  bottom: var(--mm-region-foot-h, 60px) !important;
}
#ih-panel-macro-map:has(#ih-mm-region-foot:not([hidden])) .ih-mm-hur-dock {
  bottom: calc(var(--hur-foot-h, 54px) + var(--mm-region-foot-h, 60px)) !important;
}
