body[data-page="relatorio"] {
    background:
        radial-gradient(circle at top left, rgba(31, 157, 90, 0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(31, 157, 90, 0.10), transparent 55%),
        #f4fbf7;
    color: #0f2a1c;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page="relatorio"] .site-header {
    border-bottom: 1px solid rgba(15, 42, 28, 0.12);
    backdrop-filter: blur(14px);
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.86),
            rgba(255, 255, 255, 0.94));
}

body[data-page="relatorio"] .nav {
    padding-block: 10px;
}

body[data-page="relatorio"] .brand-name,
body[data-page="relatorio"] .brand-role {
    font-family: "Space Grotesk", system-ui, sans-serif;
}

body[data-page="relatorio"] .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 999px;
    background: rgba(31, 157, 90, 0.08);
    border: 1px solid rgba(15, 42, 28, 0.12);
}

body[data-page="relatorio"] .nav-links a {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #0f2a1c;
    text-decoration: none;
    background: transparent;
    opacity: 0.92;
    transition: all 0.15s ease-out;
}

body[data-page="relatorio"] .nav-links a:hover {
    opacity: 1;
    border-color: rgba(31, 157, 90, 0.35);
    background: radial-gradient(circle at top left,
            rgba(31, 157, 90, 0.14),
            transparent 60%);
}

body[data-page="relatorio"] .nav-links a.active {
    opacity: 1;
    color: #ffffff;
    background: linear-gradient(135deg, #1f9d5a, #3ccf86);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(31, 157, 90, 0.28);
}

body[data-page="relatorio"] .main-content {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

body[data-page="relatorio"] .page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

body[data-page="relatorio"] .page-header h1 {
    margin: 0;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 2rem;
    letter-spacing: 0.03em;
}

body[data-page="relatorio"] .page-header p {
    margin: 0.35rem 0 0;
    color: rgba(15, 42, 28, 0.65);
    font-size: 0.92rem;
}

.painel-filter-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.painel-filter-row .filter-group label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(15, 42, 28, 0.65);
}

.filter-select {
    min-width: 260px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(15, 42, 28, 0.18);
    background: rgba(255, 255, 255, 0.92);
    color: #0f2a1c;
    font-size: 0.86rem;
    outline: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, rgba(15, 42, 28, 0.55) 50%),
        linear-gradient(135deg, rgba(15, 42, 28, 0.55) 50%, transparent 50%);
    background-position: calc(100% - 16px) 11px, calc(100% - 11px) 11px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.filter-select:focus {
    border-color: rgba(31, 157, 90, 0.55);
    box-shadow: 0 0 0 4px rgba(31, 157, 90, 0.12);
}

.filter-hint {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(15, 42, 28, 0.55);
}

body[data-page="relatorio"] .card {
    background:
        radial-gradient(circle at top left, rgba(31, 157, 90, 0.10), transparent 65%),
        rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    border: 1px solid rgba(15, 42, 28, 0.12);
    box-shadow: 0 24px 70px rgba(15, 42, 28, 0.10);
    padding: 18px 22px 20px;
}

body[data-page="relatorio"] .card+.card {
    margin-top: 1.75rem;
}

body[data-page="relatorio"] h2 {
    margin: 0;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.2rem;
}

body[data-page="relatorio"] .card-subtitle {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: rgba(15, 42, 28, 0.60);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 1100px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

.kpi-card {
    border-radius: 14px;
    padding: 12px 14px 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 42, 28, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 96px;
}

.kpi-label {
    font-size: 0.78rem;
    color: rgba(15, 42, 28, 0.65);
}

.kpi-value {
    display: block;
    margin-top: 4px;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #0f2a1c;
}

.kpi-subtitle {
    margin-top: 4px;
    font-size: 0.78rem;
    color: rgba(15, 42, 28, 0.55);
}

.kpi-success {
    color: #1f9d5a;
}

.kpi-warning {
    color: #c07a12;
}

/* GRÁFICOS */

.charts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 1100px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    border: 1px solid rgba(15, 42, 28, 0.12);
    padding: 12px 14px 16px;
}

.chart-title {
    margin: 0 0 6px;
    font-size: 0.92rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
    color: #0f2a1c;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    min-height: 260px;
}

#mensagem-painel {
    margin-top: 0.9rem;
    font-size: 0.8rem;
    color: rgba(15, 42, 28, 0.65);
}

.card-table {
    margin-top: 1.75rem;
}

.card-table-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.card-table-info {
    font-size: 0.8rem;
    color: #0f2a1c;
}

.table-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.filter-group-inline {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group-inline label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(15, 42, 28, 0.65);
}

.table-filters select,
.table-filters input[type="date"] {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(15, 42, 28, 0.18);
    background: rgba(255, 255, 255, 0.92);
    color: #0f2a1c;
    font-size: 0.82rem;
    outline: none;
}

.table-filters select:focus,
.table-filters input[type="date"]:focus {
    border-color: rgba(31, 157, 90, 0.55);
    box-shadow: 0 0 0 4px rgba(31, 157, 90, 0.12);
}

/* tabela */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.table-chamados {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.table-chamados thead tr {
    background: linear-gradient(90deg, rgba(31, 157, 90, 0.22), rgba(31, 157, 90, 0.10));
}

.table-chamados thead th {
    text-align: left;
    padding: 8px 10px;
    color: #0f2a1c;
    font-weight: 600;
}

.table-chamados tbody tr:nth-child(even) {
    background: rgba(31, 157, 90, 0.05);
}

.table-chamados tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.92);
}

.table-chamados tbody td {
    padding: 7px 10px;
    border-top: 1px solid rgba(15, 42, 28, 0.10);
    color: #0f2a1c;
    vertical-align: top;
}

.table-chamados tbody tr:hover {
    background: rgba(31, 157, 90, 0.10);
}

.col-descricao {
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-empty {
    text-align: center;
    padding: 12px 10px;
    color: rgba(15, 42, 28, 0.55);
}
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f2a1c;
    border: 1px solid rgba(15, 42, 28, 0.12);
    background: rgba(255, 255, 255, 0.92);
}

.status-badge--ok {
    background: rgba(31, 157, 90, 0.14);
    border-color: rgba(31, 157, 90, 0.25);
    color: #0f2a1c;
}

.status-badge--warn {
    background: rgba(192, 122, 18, 0.16);
    border-color: rgba(192, 122, 18, 0.25);
    color: #0f2a1c;
}

@media (max-width: 720px) {
    .painel-filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
