html {
  font-size: 15px;
  min-height: 100%;
}

body {
  background: #f5f7fa;
  color: #1f2933;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  min-height: 100vh;
}

body > .container {
  flex: 1 0 auto;
}

footer.footer {
  bottom: auto !important;
  position: static !important;
}

.navbar-brand {
  font-weight: 700;
}

.page-heading {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 20px 0 18px;
}

.page-heading h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}

.heading-actions,
.navbar-actions,
.table-actions,
.terminal-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-actions {
  justify-content: flex-end;
}

.page-heading p,
.muted {
  color: #667085;
  margin: 2px 0 0;
}

.metric-grid,
.form-grid,
.detail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 18px;
}

.metric-tile,
.panel,
.login-panel {
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.metric-tile {
  padding: 18px;
}

.metric-tile span {
  color: #667085;
  display: block;
  font-size: 13px;
  text-transform: uppercase;
}

.metric-tile strong {
  display: block;
  font-size: 32px;
  margin-top: 4px;
}

.metric-tile.danger strong {
  color: #b42318;
}

.panel {
  margin-bottom: 18px;
  padding: 18px;
}

.panel-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.panel-title h2 {
  font-size: 18px;
  margin: 0;
}

.map-panel {
  overflow: hidden;
}

.brazil-map-wrap {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 420px) 1fr;
}

.brazil-map {
  background: linear-gradient(180deg, #f7fbfd 0%, #edf5f8 100%);
  border: 1px solid #dde3ea;
  border-radius: 8px;
  height: auto;
  max-width: 420px;
  width: 100%;
}

.client-map-halo {
  fill: rgba(180, 35, 24, 0.18);
  stroke: #b42318;
  stroke-width: 0.08;
}

.client-map-dot {
  fill: #b42318;
  stroke: #fff;
  stroke-width: 0.08;
}

.map-list {
  align-content: start;
  display: grid;
  gap: 10px;
}

.map-list-item {
  border-bottom: 1px solid #edf1f5;
  padding-bottom: 10px;
}

.map-list-item strong,
.map-list-item span {
  display: block;
}

.map-list-item span {
  color: #667085;
}

.status-pill {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
}

.status-pill.online {
  background: #dcfae6;
  color: #067647;
}

.status-pill.semheartbeat,
.status-pill.bridgefechado,
.status-pill.semsincronizar,
.status-pill.errosql {
  background: #fee4e2;
  color: #b42318;
}

.status-pill.certificadovencendo {
  background: #fef0c7;
  color: #b54708;
}

.lifecycle-pill {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
}

.lifecycle-pill.active {
  background: #e8f1ff;
  color: #175cd3;
}

.lifecycle-pill.inactive {
  background: #fef0c7;
  color: #b54708;
}

.lifecycle-pill.deleted {
  background: #eef0f3;
  color: #475467;
}

.row-muted {
  opacity: 0.64;
}

.login-shell {
  display: grid;
  min-height: 65vh;
  place-items: center;
}

.login-panel {
  max-width: 380px;
  padding: 28px;
  width: 100%;
}

.login-panel h1 {
  font-size: 26px;
  margin-bottom: 4px;
}

.login-hint {
  color: #667085;
  font-size: 13px;
  margin-top: 16px;
  text-align: center;
}

.detail-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  margin: 0;
  row-gap: 8px;
}

.detail-list dt {
  color: #667085;
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .brazil-map-wrap {
    grid-template-columns: 1fr;
  }
}
