/* Saúde Integrada — Padronização Tipográfica e Visual (Padrão Gabinete Integrado) */
:root {
  --si-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --si-ink: #142b40;
  --si-muted: #5c7285;
  --si-border: #dce6ee;
  --si-surface: #ffffff;
  --si-bg: #f4f7fa;
  --si-sidebar: #0e2439;
  --si-brand: #0c6b5e;
  --si-brand-hover: #09564b;
}

html, body {
  font-family: var(--si-font) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5, h6,
p, span, a, div, label, small, strong,
button, input, select, textarea,
table, thead, tbody, th, td {
  font-family: var(--si-font) !important;
}

/* Cabeçalhos com peso equilibrado (sem exagero nem contraste desconexo) */
h1 {
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
}

h2 {
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
}

h3 {
  font-weight: 600 !important;
}

/* Logo na barra lateral: cartão limpo e proporcional */
aside img[src*="logo-saude"],
.sidebar img[src*="logo-saude"],
.brand img[src*="logo-saude"] {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 50px !important;
  width: auto !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

aside .brand,
.sidebar .brand,
.logo-box,
.brand-box {
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14) !important;
}

/* Tipografia da barra lateral */
aside, .sidebar {
  font-size: 13.5px;
}

aside a, .sidebar a {
  font-weight: 500 !important;
  letter-spacing: -0.005em;
}

aside a.active, .sidebar a.active {
  font-weight: 600 !important;
}

/* Números de KPI e percentuais: alinhados, sem peso exagerado */
.kpi-value, .metric-value, .stat-value, .card-value,
.kpi strong, .kpi .num, .kpi .value, .banner-stat strong, .hero-stat strong {
  font-family: var(--si-font) !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.025em !important;
}

/* Rótulos e campos de filtro uniformes */
label {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

input, select, textarea {
  font-size: 13.5px !important;
  font-weight: 400 !important;
}

button, .btn {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
}

/* Tabelas limpas no padrão GI */
table th {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

table td {
  font-size: 13.5px !important;
  font-weight: 400 !important;
  font-variant-numeric: tabular-nums;
}

/* Tela de login: logo bem proporcionado */
.login-card img[src*="logo-saude"],
.login-box img[src*="logo-saude"],
main img[src*="logo-saude"] {
  display: block;
  max-width: 240px;
  height: auto;
  margin: 0 auto 14px auto;
  object-fit: contain;
}
