/* ==========================================================================
   Painel BI SRAG-MS - Estilos Globais e Acessibilidade (WCAG AA)
   ========================================================================== */

:root {
    --primary-blue: #003366;
    --primary-dark: #002244;
    --primary-light: #005599;
    --accent-red: #d32f2f;
    --accent-dark-red: #8b0000;
    --accent-coral: #e57373;
    --accent-orange: #f57c00;
    --accent-yellow: #fbc02d;
    --accent-green: #2e7d32;
    --neutral-dark: #212529;
    --neutral-gray: #495057;
    --neutral-light: #f8f9fa;
    --neutral-border: #dee2e6;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: #f0f2f5;
    color: var(--neutral-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 32px;
}

/* ==========================================================================
   Header Institucional (Largura Total)
   ========================================================================== */
.header-gov {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 14px 0;
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid #00a859; /* Verde MS */
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    padding: 0 28px;
}

.gov-seal {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gov-logo-wrapper {
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gov-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

.gov-text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gov-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e2e8f0;
    display: block;
    font-weight: 600;
}

.gov-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.2px;
}

.report-meta {
    text-align: right;
}

.badge-epidemiologico {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 12px;
    border-radius: var(--radius-md);
    display: inline-block;
}

.se-label {
    font-size: 0.75rem;
    display: block;
    color: #d1d5db;
    text-transform: uppercase;
}

.se-number {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffd700;
}

.meta-sub {
    font-size: 0.78rem;
    color: #e2e8f0;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.meta-dados-ate {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.meta-update {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
    color: #ffd700;
    font-weight: 600;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* ==========================================================================
   Layout Principal: Sidebar Lateral Esquerda + Conteúdo Full-Width
   ========================================================================== */
.dashboard-wrapper {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 110px);
    background: #f1f5f9;
}

/* Sidebar de Filtros */
.dashboard-sidebar {
    width: 310px;
    min-width: 310px;
    max-width: 310px;
    background: var(--white);
    border-right: 1px solid #e2e8f0;
    padding: 22px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.03);
    z-index: 90;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 2px solid #f1f5f9;
}

.sidebar-title-box {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
}

.sidebar-title-box i {
    font-size: 1.1rem;
}

.sidebar-title-box h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    color: var(--neutral-dark);
}

.sidebar-live-tag {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.sidebar-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sidebar-label i {
    color: var(--primary-light);
}

/* Pills de Botões */
.btn-group-pills {
    display: flex;
    gap: 4px;
    align-items: center;
}

.btn-group-pills.full-width {
    width: 100%;
}

.btn-group-pills.full-width .btn-pill,
.btn-group-pills.full-width .btn-pill-sm {
    flex: 1;
    text-align: center;
}

.btn-pill {
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    background: var(--white);
    color: var(--neutral-gray);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pill:hover {
    background: #e2e8f0;
    color: var(--neutral-dark);
}

.btn-pill.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 2px 4px rgba(0, 51, 102, 0.2);
}

.btn-pill-sm {
    padding: 5px 6px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    background: var(--white);
    color: var(--neutral-gray);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-pill-sm:hover {
    background: #e2e8f0;
    color: var(--neutral-dark);
}

.btn-pill-sm.active {
    background: #0284c7;
    color: var(--white);
    border-color: #0284c7;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.25);
}

/* Inputs de Semanas no Sidebar */
.se-range-inputs-sidebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.se-input-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.se-input-box .se-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.se-range-inputs-sidebar .input-se {
    width: 100%;
    padding: 6px 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--neutral-dark);
    outline: none;
}

.se-range-inputs-sidebar .input-se:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(0, 85, 153, 0.15);
}

.se-sep {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
    align-self: flex-end;
    margin-bottom: 8px;
}

/* Select de Município no Sidebar */
.form-select-sidebar {
    width: 100%;
    padding: 7px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--neutral-dark);
    outline: none;
    cursor: pointer;
}

.form-select-sidebar:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(0, 85, 153, 0.15);
}

/* Ações no Sidebar */
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.btn-block {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

/* Card Informativo no Sidebar */
.sidebar-info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    padding: 12px;
    color: #1e40af;
    font-size: 0.78rem;
    line-height: 1.4;
    margin-top: auto;
}

.sidebar-info-box .info-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1e3a8a;
}

.sidebar-info-box small {
    display: block;
    margin-top: 6px;
    color: #3b82f6;
    font-weight: 600;
}

/* Conteúdo Principal Full-Width à Direita */
.dashboard-main-content {
    flex: 1;
    min-width: 0;
    padding: 24px 32px 48px;
    background: #f8fafc;
}

.input-se:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(0, 85, 153, 0.15);
}

.se-sep {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Seleção de Município */
.select-wrapper {
    position: relative;
}

.form-select-sm {
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--neutral-dark);
    outline: none;
    max-width: 260px;
    cursor: pointer;
}

.form-select-sm:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(0, 85, 153, 0.15);
}

/* Bloco de Ações */
.block-actions {
    background: transparent;
    border: none;
    padding: 0;
    gap: 6px;
}

.divider-v {
    width: 1px;
    height: 24px;
    background: #cbd5e1;
    margin: 0 2px;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 700;
}

.btn-light {
    background: #e2e8f0;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.btn-light:hover {
    background: #cbd5e1;
}

.btn-outline-success {
    background: transparent;
    border: 1px solid #16a34a;
    color: #16a34a;
}

.btn-outline-success:hover {
    background: #16a34a;
    color: var(--white);
}

.disclaimer-bar-compact {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.disclaimer-bar-compact i {
    color: var(--primary-light);
    font-size: 0.85rem;
}

/* ==========================================================================
   Seções & Títulos
   ========================================================================== */
.section-container {
    background: var(--white);
    padding: 22px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    border: 1px solid var(--neutral-border);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--primary-blue);
    padding-left: 10px;
}

.section-subtitle {
    font-size: 0.88rem;
    color: var(--neutral-gray);
    margin-top: -12px;
    margin-bottom: 16px;
    padding-left: 14px;
}

/* ==========================================================================
   Seção 1: KPIs Gerais
   ========================================================================== */
.kpi-section {
    margin-bottom: 24px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 20px;
}

.kpi-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-border);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
}

.kpi-main {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-casos .kpi-main {
    background: #fdf2f2;
    border-right: 2px solid #fad2d2;
}

.card-obitos .kpi-main {
    background: #f3f4f6;
    border-right: 2px solid #e5e7eb;
}

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

.kpi-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-casos .kpi-tag { color: var(--accent-red); }
.card-obitos .kpi-tag { color: #374151; }

.icon-kpi {
    font-size: 1.4rem;
    opacity: 0.8;
}

.card-casos .icon-kpi { color: var(--accent-red); }
.card-obitos .icon-kpi { color: #374151; }

.kpi-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}

.card-casos .kpi-value { color: var(--accent-red); }
.card-obitos .kpi-value { color: #111827; }

.kpi-taxa {
    font-size: 0.82rem;
    color: var(--neutral-gray);
}

.kpi-categories {
    padding: 15px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 8px;
    background-color: var(--white);
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.cat-val {
    font-size: 1.15rem;
    font-weight: 800;
    min-width: 55px;
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    text-align: center;
}

.cat-lbl {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--neutral-dark);
}

/* Cores das Categorias do Boletim */
.bg-identificado { background-color: #fff5f5; }
.bg-identificado .cat-val { background-color: #d32f2f; }

.bg-nao-especificado { background-color: #fff5f5; }
.bg-nao-especificado .cat-val { background-color: #e57373; }

.bg-aguardando { background-color: #fff5f5; }
.bg-aguardando .cat-val { background-color: #ef5350; }

.bg-identificado-obito { background-color: #f9fafb; }
.bg-identificado-obito .cat-val { background-color: #4b5563; }

.bg-nao-especificado-obito { background-color: #f9fafb; }
.bg-nao-especificado-obito .cat-val { background-color: #6b7280; }

.bg-aguardando-obito { background-color: #f9fafb; }
.bg-aguardando-obito .cat-val { background-color: #9ca3af; }

/* ==========================================================================
   Seção 2: Gráficos de Séries Temporais
   ========================================================================== */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 20px;
}

.chart-box {
    border: 1px solid var(--neutral-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    background: var(--white);
}

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

.chart-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--neutral-dark);
}

.badge-partial {
    font-size: 0.75rem;
    background: #fff3cd;
    color: #856404;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.chart-canvas-wrapper {
    position: relative;
    height: 280px;
    width: 100%;
}

/* ==========================================================================
   Seção 3: Tabela de Notificações por Município
   ========================================================================== */
.table-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 14px;
}

.table-search-box {
    display: flex;
    align-items: center;
    position: relative;
}

.table-search-box i {
    position: absolute;
    left: 10px;
    color: #9ca3af;
    font-size: 0.85rem;
}

.form-control-sm {
    padding: 6px 12px 6px 30px;
    border: 1px solid #ced4da;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    outline: none;
    min-width: 220px;
}

.table-responsive {
    overflow-x: auto;
    max-height: 480px;
    border: 1px solid var(--neutral-border);
    border-radius: var(--radius-sm);
}

.table-gov {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.table-gov th {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 14px;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.table-gov th:hover {
    background-color: var(--primary-dark);
}

.table-gov td {
    padding: 8px 14px;
    border-bottom: 1px solid #e9ecef;
}

.table-gov tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table-gov tbody tr:hover {
    background-color: #e8f4f8;
}

.text-right {
    text-align: right;
}

.table-footer-info {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    font-size: 0.78rem;
    color: var(--neutral-gray);
}

/* ==========================================================================
   Seção 4: Mapa Coroplético
   ========================================================================== */
.map-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.map-slider-control {
    background: var(--neutral-light);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--neutral-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.map-slider-control label {
    font-size: 0.85rem;
    font-weight: 600;
}

.slider-range {
    cursor: pointer;
    width: 140px;
}

.map-wrapper {
    position: relative;
    border: 1px solid var(--neutral-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.map-container {
    height: 480px;
    width: 100%;
    background: #eef2f5;
}

.map-legend-card {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-border);
    z-index: 1000;
}

.map-legend-card h4 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--neutral-dark);
}

.legend-scale {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
}

.legend-color {
    display: inline-block;
    width: 18px;
    height: 14px;
    border-radius: 2px;
}

/* ==========================================================================
   Seção 5: Perfil Demográfico
   ========================================================================== */
.demographics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 20px;
}

.demographics-card {
    border: 1px solid var(--neutral-border);
    border-radius: var(--radius-sm);
    padding: 18px;
    background: var(--white);
}

.card-title-badge {
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    text-align: center;
}

.bg-badge-casos {
    background-color: #fee2e2;
    color: var(--accent-dark-red);
    border: 1px solid #fca5a5;
}

.bg-badge-obitos {
    background-color: #e5e7eb;
    color: #111827;
    border: 1px solid #d1d5db;
}

.sub-chart-box {
    margin-bottom: 18px;
}

.sub-chart-box h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-gray);
    margin-bottom: 8px;
}

.chart-canvas-wrapper-sm {
    position: relative;
    height: 240px;
    width: 100%;
}

.donut-wrapper {
    height: 180px;
}

.sex-legend-cards {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.sex-legend-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    min-width: 120px;
    text-align: center;
}

.sex-legend-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neutral-dark);
}

.dot-legend {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-masc { background-color: #1e3a8a; }
.dot-fem { background-color: #64748b; }

.sex-count {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    margin-top: 2px;
}

/* ==========================================================================
   Seção 6: Agentes Etiológicos e Coinfecção
   ========================================================================== */
.etiology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 20px;
}

.etiology-card {
    border: 1px solid var(--neutral-border);
    border-radius: var(--radius-sm);
    padding: 18px;
    background: var(--white);
}

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

.etiology-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.badge-total {
    font-size: 0.78rem;
    background: #e0f2fe;
    color: #0369a1;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* ==========================================================================
   Seção 7: Plantão CIEVS
   ========================================================================== */
.cievs-section {
    margin-bottom: 24px;
}

.cievs-card {
    background: linear-gradient(135deg, #003366 0%, #004d80 100%);
    color: var(--white);
    padding: 22px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.cievs-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.cievs-header i {
    font-size: 2rem;
    color: #ffd700;
}

.cievs-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.cievs-header p {
    font-size: 0.85rem;
    color: #d1d5db;
}

.cievs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-label {
    font-size: 0.78rem;
    display: block;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 0.88rem;
    font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-gov {
    background-color: var(--primary-dark);
    color: #d1d5db;
    padding: 24px 0;
    font-size: 0.82rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* ==========================================================================
   Impressão & Exportação PDF
   ========================================================================== */
@media print {
    .no-print, .dashboard-sidebar, .map-slider-control {
        display: none !important;
    }
    
    body {
        background: var(--white);
        color: #000;
    }

    .container, .dashboard-main-content {
        max-width: 100%;
        padding: 0 !important;
    }

    .dashboard-wrapper {
        display: block !important;
    }

    .section-container, .kpi-card, .chart-box, .demographics-card, .etiology-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
        margin-bottom: 15px;
    }

    .table-responsive {
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Responsividade Tablet e Mobile */
@media (max-width: 992px) {
    .dashboard-wrapper {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .dashboard-main-content {
        padding: 20px 16px 36px;
    }
}

@media (max-width: 768px) {
    .header-container, .footer-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 16px;
    }

    .report-meta {
        text-align: left;
    }

    .kpi-card {
        grid-template-columns: 1fr;
    }

    .card-casos .kpi-main, .card-obitos .kpi-main {
        border-right: none;
        border-bottom: 1px solid var(--neutral-border);
    }
}
