.c5-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.c5-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.c5-head h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.c5-head h1 i {
    color: #dc2626;
}

.c5-head p {
    margin: 6px 0 0;
    color: #475569;
    font-size: 0.92rem;
}

.c5-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.c5-filter-panel,
.c5-hero,
.c5-panel,
.c5-resumo-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.c5-filter-panel {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.field select,
.c5-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 11px;
    font-size: 0.9rem;
    color: #0f172a;
    background: #fff;
}

.field-grow {
    grid-column: span 2;
}

.c5-filter-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
    grid-column: span 4;
}

.c5-hero {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
}

.c5-hero h2 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
}

.c5-hero p {
    margin: 6px 0 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.88);
}

.c5-hero small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.74);
}

.c5-sync-status {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.c5-sync-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.74rem;
    font-weight: 700;
}

.c5-sync-chip.ok {
    background: rgba(34, 197, 94, 0.22);
    color: #dcfce7;
}

.c5-sync-chip.warn {
    background: rgba(245, 158, 11, 0.24);
    color: #fef3c7;
}

.c5-sync-chip.run {
    background: rgba(59, 130, 246, 0.24);
    color: #dbeafe;
}

.c5-hero-pill {
    min-width: 128px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    text-align: center;
}

.c5-hero-pill strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
}

.c5-hero-pill span {
    font-size: 0.76rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
}

.c5-resumo-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.c5-resumo-card {
    padding: 12px;
}

.c5-resumo-card span {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.03em;
}

.c5-resumo-card strong {
    display: block;
    margin-top: 4px;
    font-size: 1.24rem;
    font-weight: 800;
    color: #0f172a;
}

.c5-resumo-card small {
    display: block;
    margin-top: 4px;
    font-size: 0.76rem;
    color: #64748b;
}

.c5-resumo-card.highlight {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.c5-panel {
    padding: 16px 18px;
}

.c5-panel-head {
    margin-bottom: 10px;
}

.c5-panel-head h3 {
    margin: 0;
    font-size: 1.04rem;
    font-weight: 800;
    color: #0f172a;
}

.c5-panel-head p {
    margin: 5px 0 0;
    font-size: 0.84rem;
    color: #64748b;
}

.c5-historico {
    width: 100%;
    overflow-x: auto;
}

.c5-svg {
    width: 100%;
    min-height: 280px;
}

.axis-label {
    fill: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.point-label {
    fill: #334155;
    font-size: 11px;
    font-weight: 700;
}

.c5-table-wrap {
    overflow-x: auto;
}

.c5-table {
    width: 100%;
    border-collapse: collapse;
}

.c5-table th,
.c5-table td {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    font-size: 0.82rem;
    vertical-align: top;
}

.c5-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 800;
}

.c5-table td.center,
.c5-table th.center {
    text-align: center;
}

.name-main {
    font-weight: 700;
    color: #0f172a;
}

.name-sub {
    margin-top: 2px;
    color: #64748b;
    font-size: 0.74rem;
}

.row-green td {
    background: #f0fdf4;
}

.row-yellow td {
    background: #fffbeb;
}

.row-red td {
    background: #fef2f2;
}

.bool-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.75rem;
}

.bool-badge.ok {
    background: #dcfce7;
    color: #166534;
}

.bool-badge.no {
    background: #fee2e2;
    color: #991b1b;
}

.numerador {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
}

.numerador.sim {
    background: #dcfce7;
    color: #166534;
}

.numerador.nao {
    background: #fee2e2;
    color: #991b1b;
}

.c5-pagination {
    margin-top: 12px;
}

.pagination-inner {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.page-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 8px;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.page-btn.active {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}

.pagination-meta {
    color: #64748b;
    font-size: 0.82rem;
}

.empty-block {
    padding: 34px 14px;
    text-align: center;
    color: #64748b;
    font-size: 0.92rem;
}

.error-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.86rem;
    font-weight: 600;
}

.ok-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #bae6fd;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.86rem;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .c5-filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .field-grow {
        grid-column: span 2;
    }

    .c5-filter-actions {
        grid-column: span 2;
    }

    .c5-resumo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .c5-filter-panel,
    .c5-resumo-grid {
        grid-template-columns: 1fr;
    }

    .field-grow,
    .c5-filter-actions {
        grid-column: span 1;
    }

    .c5-head,
    .c5-hero,
    .pagination-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .c5-hero-pill {
        width: 100%;
    }
}
