:root {
  color-scheme: dark;
  --bg: #050b14;
  --bg-soft: #081321;
  --panel: rgba(11, 25, 42, .88);
  --panel-strong: #0c1b2d;
  --border: rgba(123, 166, 201, .18);
  --border-strong: rgba(123, 166, 201, .32);
  --text: #edf6ff;
  --muted: #85a0b8;
  --green: #22c55e;
  --red: #ef4444;
  --purple: #a855f7;
  --yellow: #facc15;
  --blue: #38bdf8;
  --orange: #fb923c;
  --gray: #64748b;
  --shadow: 0 22px 70px rgba(0, 0, 0, .25);
  --radius: 17px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 111, 179, .17), transparent 34rem),
    radial-gradient(circle at 90% 12%, rgba(168, 85, 247, .11), transparent 30rem),
    linear-gradient(180deg, #07111e 0%, #040a12 100%);
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1900px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(270px, 1fr) auto minmax(270px, 1fr);
  align-items: center;
  gap: 20px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(5, 14, 25, .8);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 10px;
  z-index: 20;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #03121d;
  font-weight: 1000;
  font-size: 21px;
  background: linear-gradient(135deg, #65e7ff, #22c55e);
  box-shadow: 0 0 28px rgba(56, 189, 248, .28);
}

.brand-block h1 {
  margin: 0;
  font-size: 17px;
  letter-spacing: .01em;
}

.brand-block p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(0, 0, 0, .2);
}

.tab {
  border: 0;
  padding: 10px 15px;
  border-radius: 9px;
  color: #9bb2c6;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  transition: .18s ease;
}

.tab:hover {
  color: #fff;
  background: rgba(255,255,255,.05);
}

.tab.active {
  color: #03121d;
  background: linear-gradient(135deg, #6ee7f9, #38bdf8);
  box-shadow: 0 7px 22px rgba(56, 189, 248, .22);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.button {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  padding: 0 13px;
  color: #dceeff;
  background: rgba(255,255,255,.04);
  font-size: 11px;
  font-weight: 800;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, .55);
}

.button.primary {
  color: #04111b;
  border-color: transparent;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
}

.source-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 12px 2px 0;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 11px;
}

.source-state {
  display: flex;
  align-items: center;
  gap: 8px;
}

.source-state strong {
  color: #dcecff;
}

.source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray);
  box-shadow: 0 0 10px currentColor;
}

.source-dot.loading {
  color: var(--blue);
  background: var(--blue);
  animation: pulse 1.2s infinite;
}

.source-dot.ok {
  color: var(--green);
  background: var(--green);
}

.source-dot.error {
  color: var(--red);
  background: var(--red);
}

@keyframes pulse {
  50% { opacity: .35; transform: scale(.75); }
}

main {
  margin-top: 4px;
}

.page {
  display: none;
  animation: pageIn .22s ease;
}

.page.active {
  display: block;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(5px); }
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 18px 4px 12px;
}

.eyebrow,
.panel-kicker {
  display: block;
  margin-bottom: 5px;
  color: #65d8ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.yellow-text { color: var(--yellow); }
.blue-text { color: var(--blue); }
.orange-text { color: var(--orange); }

.page-heading h2 {
  margin: 0;
  font-size: clamp(21px, 2vw, 32px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 13px;
  color: #a9bfd1;
  font-size: 10px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.dot.red { color: var(--red); background: var(--red); }
.dot.purple { color: var(--purple); background: var(--purple); }
.dot.yellow { color: var(--yellow); background: var(--yellow); }
.dot.blue { color: var(--blue); background: var(--blue); }
.dot.orange { color: var(--orange); background: var(--orange); }
.dot.green { color: var(--green); background: var(--green); }

.rule-badge {
  max-width: 450px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #bcd0e1;
  background: rgba(255,255,255,.03);
  font-size: 11px;
}

.yellow-rule { border-color: rgba(250,204,21,.26); }
.blue-rule { border-color: rgba(56,189,248,.26); }
.orange-rule { border-color: rgba(251,146,60,.26); }

.rule-badge strong {
  color: #fff;
}

.kpi-grid {
  display: grid;
  gap: 12px;
}

.kpi-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi,
.panel {
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(15, 35, 56, .86), rgba(7, 19, 33, .88));
  box-shadow: var(--shadow);
}

.kpi {
  min-height: 124px;
  padding: 17px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.kpi::after {
  content: "";
  position: absolute;
  inset: auto -30px -55px auto;
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: rgba(56,189,248,.1);
  filter: blur(3px);
}

.kpi.success::after { background: rgba(34,197,94,.14); }
.kpi.danger::after { background: rgba(239,68,68,.15); }
.kpi.warning::after { background: rgba(250,204,21,.13); }
.kpi.blue-card::after { background: rgba(56,189,248,.14); }
.kpi.muted::after { background: rgba(100,116,139,.12); }

.kpi-label {
  position: relative;
  z-index: 1;
  color: #9cb3c7;
  font-size: 11px;
  font-weight: 750;
}

.kpi strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  font-size: clamp(29px, 3vw, 45px);
  line-height: 1;
  letter-spacing: -.05em;
}

.kpi small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 9px;
  color: #7892a9;
  font-size: 10px;
}

.panel {
  border-radius: var(--radius);
  min-width: 0;
}

.panel-header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
}

.panel-header h3 {
  margin: 0;
  font-size: 14px;
}

.panel-note {
  color: #748da3;
  font-size: 9px;
}

.layout-general {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, .7fr);
  gap: 12px;
  margin-top: 12px;
}

.map-panel,
.alert-panel {
  min-height: 630px;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  padding: 12px;
}

.state-card {
  min-height: 84px;
  padding: 10px;
  border: 1px solid rgba(119, 155, 184, .14);
  border-radius: 12px;
  background: rgba(0,0,0,.13);
}

.state-card.has-alert {
  border-color: rgba(239,68,68,.22);
  background: linear-gradient(145deg, rgba(239,68,68,.055), rgba(0,0,0,.15));
}

.state-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.state-card header strong {
  color: #e8f5ff;
  font-size: 12px;
}

.state-card header span {
  color: #7892a9;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hospital-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.hospital-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: #bcd1e2;
  background: rgba(255,255,255,.025);
  font-size: 8.5px;
  font-weight: 800;
}

.hospital-chip i,
.status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: currentColor;
  box-shadow: 0 0 7px currentColor;
}

.hospital-chip.green,
.status-pill.green { color: var(--green); }
.hospital-chip.red,
.status-pill.red { color: var(--red); }
.hospital-chip.purple,
.status-pill.purple { color: var(--purple); }
.hospital-chip.yellow,
.status-pill.yellow { color: var(--yellow); }
.hospital-chip.blue,
.status-pill.blue { color: var(--blue); }
.hospital-chip.orange,
.status-pill.orange { color: var(--orange); }
.hospital-chip.muted,
.status-pill.muted { color: var(--gray); }

.alert-list {
  max-height: 760px;
  overflow: auto;
  padding: 10px;
}

.count-badge {
  min-width: 34px;
  height: 27px;
  padding: 0 9px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #ffd8d8;
  border: 1px solid rgba(239,68,68,.28);
  background: rgba(239,68,68,.11);
  font-size: 11px;
  font-weight: 900;
}

.orange-badge {
  color: #fed7aa;
  border-color: rgba(251,146,60,.28);
  background: rgba(251,146,60,.11);
}

.alert-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-left: 3px solid currentColor;
  border-radius: 11px;
  background: rgba(0,0,0,.13);
}

.alert-item + .alert-item {
  margin-top: 8px;
}

.alert-item.red { color: var(--red); }
.alert-item.purple { color: var(--purple); }
.alert-item.yellow { color: var(--yellow); }
.alert-item.blue { color: var(--blue); }
.alert-item.orange { color: var(--orange); }

.alert-item-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.alert-item-head > div {
  min-width: 0;
}

.alert-item-head strong {
  display: block;
  color: #f0f8ff;
  font-size: 11px;
}

.alert-item-head span:not(.status-pill) {
  color: #7690a6;
  font-size: 9px;
}

.alert-item ul {
  margin: 9px 0 0;
  padding-left: 17px;
}

.alert-item li,
.alert-item p {
  color: #9db3c6;
  font-size: 9.5px;
  line-height: 1.45;
}

.alert-item li::marker {
  color: currentColor;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(0,0,0,.16);
  font-size: 8.5px;
  font-weight: 850;
  white-space: nowrap;
}

.status-pill i {
  width: 5px;
  height: 5px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.7fr);
  gap: 12px;
  margin-top: 12px;
}

.competence-layout {
  grid-template-columns: minmax(310px, .75fr) minmax(0, 1.65fr);
}

.ranking-list {
  padding: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 25px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 3px;
  border-bottom: 1px solid rgba(123,166,201,.11);
}

.rank-number {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #9ab1c5;
  background: rgba(255,255,255,.04);
  font-size: 9px;
  font-weight: 900;
}

.rank-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 9px;
}

.rank-label strong {
  color: #dbeeff;
}

.rank-label span {
  color: #718ba2;
}

.bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.bar i.green { background: linear-gradient(90deg, #16a34a, #4ade80); }
.bar i.yellow { background: linear-gradient(90deg, #ca8a04, #fde047); }

.rank-value {
  color: #e9f4ff;
  font-size: 10px;
}

.search {
  width: min(250px, 42vw);
  height: 34px;
  padding: 0 10px;
  color: #dcecff;
  outline: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(0,0,0,.22);
  font-size: 10px;
}

.search:focus {
  border-color: rgba(56,189,248,.55);
  box-shadow: 0 0 0 3px rgba(56,189,248,.08);
}

.table-scroll {
  overflow: auto;
  max-height: 680px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 12px;
  text-align: left;
  color: #7792aa;
  background: #0b1929;
  border-bottom: 1px solid var(--border);
  font-size: 8.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

td {
  padding: 10px 12px;
  color: #a9bfd1;
  border-bottom: 1px solid rgba(123,166,201,.1);
  font-size: 9.5px;
  vertical-align: middle;
}

tbody tr:hover {
  background: rgba(56,189,248,.035);
}

td strong {
  color: #e6f2fc;
  font-size: 10px;
}

.right {
  text-align: right;
}

.mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.detail-cell {
  max-width: 480px;
  white-space: normal;
  line-height: 1.42;
}

.empty-state {
  margin: 10px;
  padding: 22px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  color: #7891a7;
  text-align: center;
  font-size: 10px;
  line-height: 1.55;
}

.success-empty {
  color: #73d995;
  border-color: rgba(34,197,94,.25);
  background: rgba(34,197,94,.04);
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(120, 150, 175, .28);
  background-clip: padding-box;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
    position: static;
  }

  .tabs,
  .top-actions {
    justify-self: stretch;
  }

  .tabs {
    justify-content: center;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .layout-general,
  .split-layout,
  .competence-layout {
    grid-template-columns: 1fr;
  }

  .map-panel,
  .alert-panel {
    min-height: 0;
  }

  .state-grid {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
}

@media (max-width: 820px) {
  .shell {
    padding: 9px;
  }

  .source-strip,
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .tabs {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .tab {
    white-space: nowrap;
  }

  .kpi-grid.four {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .state-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .legend {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .kpi-grid.four,
  .state-grid {
    grid-template-columns: 1fr;
  }

  .top-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .brand-block p {
    white-space: normal;
  }
}

/* =====================================================================
   AJUSTES DO PAINEL COM 4 PÁGINAS E MAPAS
   ===================================================================== */

.kpi-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpi.purple-card::after {
  background: rgba(168, 85, 247, .16);
}

.muted-dot {
  color: var(--gray);
  background: var(--gray);
}

/* Visão geral no formato anterior */
.general-old-layout {
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: minmax(250px, .62fr) minmax(520px, 1.65fr) minmax(315px, .78fr);
  gap: 12px;
}

.general-left-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.general-brand-card {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 35, 56, .9), rgba(7, 19, 33, .92));
  box-shadow: var(--shadow);
}

.general-brand-card > strong {
  display: block;
  margin-top: 5px;
  font-size: clamp(47px, 5vw, 72px);
  line-height: .92;
  letter-spacing: -.07em;
}

.general-brand-card > small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.general-mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 15px;
}

.general-mini-kpis > div {
  padding: 9px;
  border: 1px solid rgba(123, 166, 201, .14);
  border-radius: 10px;
  background: rgba(0, 0, 0, .14);
}

.general-mini-kpis span {
  display: block;
  color: #7892a8;
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.general-mini-kpis b {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 20px;
}

.general-legend-list {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
  color: #a8bfd1;
  font-size: 9px;
}

.general-legend-list span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.general-small-card {
  overflow: hidden;
}

.general-total-number {
  display: block;
  padding: 8px 14px 2px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.045em;
}

.general-top-list {
  padding: 7px 14px 12px;
}

.general-top-list > div:not(.general-list-empty) {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(123, 166, 201, .10);
  color: #9eb5c8;
  font-size: 8.5px;
}

.general-top-list strong {
  color: #eef7ff;
  font-variant-numeric: tabular-nums;
}

.general-list-empty {
  padding: 7px 0;
  color: #7892a8;
  font-size: 8.5px;
}

.general-main-map-panel,
.general-problems-panel {
  min-width: 0;
  overflow: hidden;
}

.general-main-map-panel {
  min-height: 680px;
}

.general-problems-panel .alert-list {
  max-height: calc(100vh - 220px);
}

/* Mapas Leaflet */
.leaflet-map {
  width: 100%;
  background: #06111d;
}

.general-map {
  height: calc(100vh - 205px);
  min-height: 620px;
}

.page-map-panel {
  overflow: hidden;
  margin-top: 12px;
}

.page-map {
  height: 420px;
}

.page-table-panel {
  margin-top: 12px;
}

.page-map-legend {
  padding-bottom: 3px;
}

.summary-tag {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: rgba(0, 0, 0, .15);
  color: #bdd2e3;
  font-size: 8.5px;
  font-weight: 800;
  white-space: nowrap;
}

.purple-tag {
  color: #e9d1ff;
  border-color: rgba(168, 85, 247, .34);
}

.orange-tag {
  color: #fed7aa;
  border-color: rgba(251, 146, 60, .34);
}

.heading-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.leaflet-container {
  background: #06111d;
  font-family: inherit;
}

.leaflet-control-zoom a {
  color: #e4f3ff !important;
  border-color: var(--border) !important;
  background: #0a1b2d !important;
}

.leaflet-control-attribution {
  color: #7891a7 !important;
  background: rgba(5, 15, 25, .85) !important;
  font-size: 8px !important;
}

.leaflet-control-attribution a {
  color: #7dd3fc !important;
}

.hospital-map-icon {
  border: 0 !important;
  background: transparent !important;
}

.hospital-map-marker {
  width: 22px;
  height: 22px;
  position: relative;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .94);
  border-radius: 50%;
  color: var(--gray);
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .28), 0 0 16px currentColor;
}

.hospital-map-marker i {
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 50%;
  background: #fff;
}

.hospital-map-marker.red { color: var(--red); }
.hospital-map-marker.purple { color: var(--purple); }
.hospital-map-marker.yellow { color: var(--yellow); }
.hospital-map-marker.blue { color: var(--blue); }
.hospital-map-marker.orange { color: var(--orange); }
.hospital-map-marker.green { color: var(--green); }
.hospital-map-marker.gray { color: var(--gray); }

.hospital-map-marker.pulse::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  animation: hospital-map-pulse 1.8s infinite;
}

@keyframes hospital-map-pulse {
  0% { opacity: .82; transform: scale(.65); }
  75%, 100% { opacity: 0; transform: scale(1.55); }
}

.leaflet-tooltip {
  color: #edf7ff !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 8px !important;
  background: #071827 !important;
  box-shadow: var(--shadow) !important;
  font-size: 9px !important;
}

.leaflet-tooltip::before {
  border-top-color: #071827 !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: #dcecf9 !important;
  background: #081a2b !important;
}

.leaflet-popup-content-wrapper {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.map-popup {
  min-width: 205px;
  font-size: 10px;
  line-height: 1.45;
}

.map-popup > strong {
  display: block;
  color: #fff;
  font-size: 12px;
}

.map-popup > span {
  color: #7e9ab0;
}

.map-popup hr {
  height: 1px;
  margin: 8px 0;
  border: 0;
  background: var(--border);
}

.map-popup div + div {
  margin-top: 4px;
}

.map-error {
  min-height: 350px;
  display: grid;
  place-items: center;
  color: #fca5a5;
  font-size: 10px;
}

/* A página de exames usa roxo para fila acima de 200 */
.status-pill.purple {
  color: var(--purple);
}

/* Tabelas abaixo dos mapas */
.page-table-panel .table-scroll {
  max-height: 610px;
}

/* Responsividade dos novos blocos */
@media (max-width: 1280px) {
  .general-old-layout {
    grid-template-columns: minmax(250px, .62fr) minmax(500px, 1.45fr);
  }

  .general-problems-panel {
    grid-column: 1 / -1;
  }

  .general-problems-panel .alert-list {
    max-height: 480px;
  }
}

@media (max-width: 900px) {
  .general-old-layout {
    grid-template-columns: 1fr;
  }

  .general-map,
  .page-map {
    height: 510px;
    min-height: 510px;
  }

  .kpi-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .kpi-grid.two {
    grid-template-columns: 1fr;
  }

  .general-mini-kpis {
    grid-template-columns: 1fr;
  }

  .general-map,
  .page-map {
    height: 440px;
    min-height: 440px;
  }

  .heading-tags {
    justify-content: flex-start;
  }
}
