﻿
/* ============================================================
   ECISO UI - Design System Base
   Uso:
   - Telas novas / demo / produção
   - Evitar CSS espalhado em várias páginas
   Prefixo padrão: ec-
   ============================================================ */

:root {
    --ec-bg: #f6f8fc;
    --ec-panel: #ffffff;
    --ec-text: #172033;
    --ec-muted: #667085;
    --ec-line: #e6eaf2;
    --ec-blue: #2563eb;
    --ec-blue-dark: #0f4cc9;
    --ec-cyan: #0ea5e9;
    --ec-teal: #0f766e;
    --ec-yellow: #f5b400;
    --ec-amber: #f59e0b;
    --ec-green: #12b981;
    --ec-red: #ef4444;
    --ec-purple: #7c3aed;
    --ec-radius-lg: 22px;
    --ec-radius-md: 16px;
    --ec-radius-sm: 12px;
    --ec-shadow: 0 12px 34px rgba(31, 41, 55, .08);
    --ec-shadow-lg: 0 24px 60px rgba(15, 23, 42, .18);
}

.ec-page {
    min-height: 100%;
    padding: 22px 24px 48px;
    background: linear-gradient(135deg, #f8fbff, #f3f6fb 55%, #fffaf0);
    color: var(--ec-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.ec-hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 18px;
    margin-bottom: 18px;
    padding: 20px 22px;
    border-radius: var(--ec-radius-lg);
    background: linear-gradient(135deg, #172033 0%, #0f4cc9 52%, #0ea5e9 100%);
    color: #ffffff;
    box-shadow: var(--ec-shadow-lg);
    overflow: hidden;
    position: relative;
}

    .ec-hero::after {
        content: "";
        position: absolute;
        right: -80px;
        top: -90px;
        width: 260px;
        height: 260px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .11);
    }

.ec-hero-content {
    position: relative;
    z-index: 1;
}

.ec-eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.ec-hero h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -.04em;
}

.ec-hero p {
    max-width: 780px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
}

.ec-hero-side {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 8px;
    min-width: 230px;
}

.ec-client-card {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(12px);
    text-align: right;
}

    .ec-client-card strong {
        display: block;
        font-size: 18px;
        font-weight: 900;
    }

    .ec-client-card span {
        display: block;
        margin-top: 2px;
        font-size: 12px;
        color: rgba(255, 255, 255, .76);
    }

.ec-grid {
    display: grid;
    gap: 14px;
}

.ec-grid-kpi {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.ec-grid-2 {
    grid-template-columns: 1.15fr .85fr;
}

.ec-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ec-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.ec-card {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(230, 234, 242, .95);
    border-radius: var(--ec-radius-lg);
    box-shadow: var(--ec-shadow);
    padding: 16px;
    overflow: hidden;
}

.ec-card-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -.01em;
    color: var(--ec-text);
}

.ec-card-subtitle {
    margin: 0 0 12px;
    color: var(--ec-muted);
    font-size: 11px;
}

.ec-kpi-card {
    position: relative;
    min-height: 112px;
}

.ec-kpi-label {
    color: var(--ec-muted);
    font-weight: 850;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ec-kpi-value {
    margin: 8px 0 2px;
    color: var(--ec-text);
    font-size: 28px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.05em;
}

.ec-kpi-hint {
    color: var(--ec-muted);
    font-size: 11px;
}

.ec-kpi-mini {
    position: absolute;
    top: 14px;
    right: 14px;
}

.ec-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 850;
    border: 1px solid var(--ec-line);
    background: #fff;
    white-space: nowrap;
}

.ec-badge-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #dbeafe;
}

.ec-badge-yellow {
    background: #fffbeb;
    color: #a16207;
    border-color: #fde68a;
}

.ec-badge-green {
    background: #ecfdf5;
    color: #047857;
    border-color: #bbf7d0;
}

.ec-badge-red {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.ec-badge-gray {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.ec-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 10px;
    border: 1px solid var(--ec-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(12px);
}

.ec-form-control,
.ec-form-select {
    min-height: 38px;
    border: 1px solid #d8deea;
    border-radius: 12px;
    background: #fff;
    padding: 8px 10px;
    color: var(--ec-text);
    font-size: 13px;
    outline: none;
}

    .ec-form-control:focus,
    .ec-form-select:focus {
        border-color: #83aaff;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
    }

.ec-btn {
    border: 1px solid var(--ec-line);
    border-radius: 13px;
    padding: 9px 12px;
    font-weight: 850;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 4px 14px rgba(31, 41, 55, .06);
}

.ec-btn-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--ec-blue), var(--ec-cyan));
}

.ec-btn-warning {
    border: 0;
    color: #352400;
    background: linear-gradient(135deg, #f8c63a, var(--ec-amber));
}

.ec-btn-danger-soft {
    color: #b42318;
    background: #fff4f2;
    border-color: #ffd6cf;
}

.ec-table-wrap {
    overflow: auto;
    border: 1px solid var(--ec-line);
    border-radius: 16px;
    background: #fff;
}

.ec-table {
    width: 100%;
    min-width: 860px;
    margin: 0;
    border-collapse: collapse;
}

    .ec-table th {
        position: sticky;
        top: 0;
        z-index: 1;
        padding: 9px 10px;
        background: #f7f9fd;
        color: #475467;
        text-align: left;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .05em;
        border-bottom: 1px solid #eef1f6;
    }

    .ec-table td {
        padding: 9px 10px;
        color: #344054;
        font-size: 12px;
        vertical-align: top;
        border-bottom: 1px solid #eef1f6;
    }

    .ec-table tbody tr:hover {
        background: #f8fbff;
    }

.ec-section-title {
    margin: 20px 0 10px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -.02em;
    color: #172033;
}

.ec-progress {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}

    .ec-progress span {
        display: block;
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--ec-blue), var(--ec-cyan));
    }

.ec-insight {
    display: flex;
    gap: 10px;
    margin: 8px 0;
    padding: 10px;
    border: 1px solid var(--ec-line);
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, #f8fbff);
}

.ec-dot {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    margin-top: 3px;
    border-radius: 999px;
}

.ec-dot-red {
    background: var(--ec-red);
}

.ec-dot-yellow {
    background: var(--ec-yellow);
}

.ec-dot-blue {
    background: var(--ec-blue);
}

.ec-dot-green {
    background: var(--ec-green);
}

.ec-small {
    color: var(--ec-muted);
    font-size: 11px;
}

.ec-demo-chart {
    display: grid;
    gap: 10px;
}

.ec-bar-row {
    display: grid;
    grid-template-columns: 120px 1fr 54px;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.ec-bar-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}

.ec-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ec-blue), var(--ec-cyan));
}

.ec-roadmap-list {
    display: grid;
    gap: 8px;
}

.ec-roadmap-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    align-items: start;
    padding: 10px;
    border: 1px solid var(--ec-line);
    border-radius: 16px;
    background: #fff;
}

.ec-rank {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #1d4ed8;
    background: #eff6ff;
    font-weight: 950;
}

@media (max-width: 1200px) {
    .ec-grid-kpi {
        grid-template-columns: repeat(2, 1fr);
    }

    .ec-grid-2,
    .ec-grid-3,
    .ec-grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .ec-page {
        padding: 16px;
    }

    .ec-hero {
        flex-direction: column;
    }

    .ec-hero-side {
        justify-items: start;
        min-width: 0;
    }

    .ec-grid-kpi {
        grid-template-columns: 1fr;
    }
}




.ec-assistant {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.ec-assistant-fab {
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 18px 38px rgba(37, 99, 235, .32);
    cursor: pointer;
}

    .ec-assistant-fab span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.ec-assistant-panel {
    width: 360px;
    max-width: calc(100vw - 34px);
    margin-bottom: 12px;
    border: 1px solid rgba(230, 234, 242, .95);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.ec-assistant-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #172033, #0f4cc9);
    color: #fff;
}

    .ec-assistant-header strong {
        display: block;
        font-size: 14px;
    }

    .ec-assistant-header span {
        display: block;
        margin-top: 2px;
        font-size: 11px;
        color: rgba(255, 255, 255, .72);
    }

    .ec-assistant-header button {
        border: 0;
        background: rgba(255, 255, 255, .16);
        color: #fff;
        width: 30px;
        height: 30px;
        border-radius: 12px;
        cursor: pointer;
        font-size: 18px;
        line-height: 1;
    }

.ec-assistant-body {
    max-height: 300px;
    overflow: auto;
    padding: 14px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.ec-assistant-msg {
    max-width: 86%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.4;
}

    .ec-assistant-msg.bot {
        background: #eef4ff;
        color: #172033;
        border-bottom-left-radius: 5px;
    }

    .ec-assistant-msg.user {
        margin-left: auto;
        background: #2563eb;
        color: #fff;
        border-bottom-right-radius: 5px;
    }

.ec-assistant-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 12px;
    background: #fff;
}

    .ec-assistant-suggestions button {
        border: 1px solid #e6eaf2;
        background: #fff;
        color: #344054;
        border-radius: 999px;
        padding: 6px 9px;
        font-size: 11px;
        font-weight: 800;
        cursor: pointer;
    }

        .ec-assistant-suggestions button:hover {
            background: #eef4ff;
            color: #0f4cc9;
        }

.ec-assistant-input {
    display: flex;
    gap: 8px;
    padding: 12px 14px 14px;
    border-top: 1px solid #eef1f6;
    background: #fff;
}

    .ec-assistant-input input {
        flex: 1;
        min-width: 0;
        border: 1px solid #d8deea;
        border-radius: 13px;
        padding: 9px 10px;
        font-size: 12px;
        outline: none;
    }

        .ec-assistant-input input:focus {
            border-color: #83aaff;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
        }

    .ec-assistant-input button {
        border: 0;
        border-radius: 13px;
        background: linear-gradient(135deg, #2563eb, #0ea5e9);
        color: #fff;
        font-size: 12px;
        font-weight: 800;
        padding: 0 12px;
        cursor: pointer;
    }

@media (max-width: 680px) {
    .ec-assistant {
        right: 14px;
        bottom: 14px;
    }

    .ec-assistant-panel {
        width: calc(100vw - 28px);
    }
}


/* ============================================================
   ECISO - Dashboard Executivo
   ============================================================ */

.ec-dashboard-shell {
    padding: 22px 24px 48px;
    background: #f4f7fb;
    min-height: 100%;
    color: #172033;
}

.ec-dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 22px 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #172033 0%, #0f4cc9 50%, #0ea5e9 100%);
    color: #fff;
    box-shadow: 0 22px 54px rgba(15, 23, 42, .20);
}

    .ec-dashboard-hero h1 {
        margin: 0;
        font-size: 26px;
        font-weight: 900;
        letter-spacing: -.04em;
    }

    .ec-dashboard-hero p {
        max-width: 780px;
        margin: 8px 0 0;
        color: rgba(255,255,255,.82);
        font-size: 13px;
    }

.ec-eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
}

.ec-dashboard-context {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    min-width: 340px;
}

.ec-dashboard-content {
    min-height: 85vh;
}

.ec-dashboard-section {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #e6eaf2;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(31, 41, 55, .06);
}

.ec-dashboard-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.ec-dashboard-section-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 900;
    color: #172033;
}

.ec-dashboard-section-subtitle {
    margin: 0;
    color: #667085;
    font-size: 12px;
}

.ec-kpi-grid-pro {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* Aproveita os SfCard atuais sem precisar reescrever os 4 cards agora */
.ec-dashboard-shell .eciso-card--exec,
.ec-dashboard-shell .eciso-card--elevated {
    border: 1px solid #edf1f7 !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, #ffffff, #fbfcff) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06) !important;
    overflow: hidden;
}

.ec-dashboard-shell .e-card {
    border-radius: 20px !important;
}

.ec-dashboard-shell .e-card-content {
    padding: 0 !important;
}

.ec-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 850;
    border: 1px solid #e6eaf2;
    background: #fff;
    white-space: nowrap;
}

.ec-badge-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #dbeafe;
}

.ec-badge-green {
    background: #ecfdf5;
    color: #047857;
    border-color: #bbf7d0;
}

.ec-badge-yellow {
    background: #fffbeb;
    color: #a16207;
    border-color: #fde68a;
}

.ec-badge-red {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.ec-badge-gray {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.ec-btn {
    border: 1px solid #e6eaf2;
    border-radius: 13px;
    padding: 9px 12px;
    font-weight: 850;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 4px 14px rgba(31, 41, 55, .06);
}

.ec-btn-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.ec-dashboard-shell .eciso-grid-wrap {
    border: 1px solid #e6eaf2;
    border-radius: 18px;
    background: #fff;
    overflow: auto;
}

.ec-dashboard-shell .eciso-grid-table thead th {
    background: #113f73 !important;
    color: #fff !important;
    border-color: #113f73 !important;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ec-dashboard-shell .eciso-grid-table tbody td {
    border-color: #eef1f6 !important;
    color: #344054;
    font-size: 12px;
}

.ec-dashboard-shell .eciso-grid-table tbody tr:hover {
    background: #f8fbff;
}

@media (max-width: 1200px) {
    .ec-kpi-grid-pro {
        grid-template-columns: repeat(2, 1fr);
    }

    .ec-dashboard-hero {
        align-items: flex-start;
    }

    .ec-dashboard-context {
        min-width: 0;
    }
}

@media (max-width: 700px) {
    .ec-dashboard-shell {
        padding: 16px;
    }

    .ec-dashboard-hero {
        flex-direction: column;
    }

    .ec-kpi-grid-pro {
        grid-template-columns: 1fr;
    }
}


.ec-chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ec-chart-card {
    min-height: 360px;
    padding: 18px;
    border: 1px solid #e6eaf2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(31, 41, 55, .06);
}

.ec-chart-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

    .ec-chart-card-head h3 {
        margin: 0 0 4px;
        color: #172033;
        font-size: 16px;
        font-weight: 900;
    }

    .ec-chart-card-head p {
        margin: 0;
        color: #667085;
        font-size: 12px;
    }

@media (max-width: 1200px) {
    .ec-chart-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   ECISO - Gráficos seguros HTML/CSS para Dashboard
   ============================================================ */

.ec-dashboard-section--charts {
    background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.ec-chart-grid-safe {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ec-chart-card-safe {
    padding: 18px;
    border: 1px solid #e6eaf2;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.ec-chart-card-head-safe {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

    .ec-chart-card-head-safe h3 {
        margin: 0 0 4px;
        color: #172033;
        font-size: 15px;
        font-weight: 900;
    }

    .ec-chart-card-head-safe p {
        margin: 0;
        color: #667085;
        font-size: 12px;
    }

.ec-bars {
    display: grid;
    gap: 11px;
}

.ec-bar-row-safe {
    display: grid;
    grid-template-columns: minmax(150px, 230px) 1fr 64px;
    align-items: center;
    gap: 12px;
}

.ec-bar-label {
    overflow: hidden;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ec-bar-track-safe {
    height: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}

.ec-bar-fill-risk,
.ec-bar-fill-maturity {
    height: 100%;
    min-width: 4px;
    border-radius: 999px;
}

.ec-bar-fill-risk {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.ec-bar-fill-maturity {
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
}

.ec-bar-value {
    color: #172033;
    font-size: 12px;
    font-weight: 900;
    text-align: right;
}

@media (max-width: 1200px) {
    .ec-chart-grid-safe {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .ec-bar-row-safe {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .ec-bar-value {
        text-align: left;
    }
}


.ec-dashboard-section {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 24px;
    padding: 18px 18px 14px;
    margin-top: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.ec-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

    .ec-section-header h3 {
        margin: 0;
        font-size: 24px;
        font-weight: 800;
        color: #14213d;
    }

    .ec-section-header p {
        margin: 4px 0 0;
        color: #6b7280;
        font-size: 13px;
    }

.ec-gauge-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 18px;
}

.ec-gauge-card {
    background: #fcfdff;
    border: 1px solid #e7edf5;
    border-radius: 22px;
    padding: 18px;
    text-align: center;
}

.ec-gauge-title {
    font-size: 14px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 12px;
}

.ec-gauge-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-gauge-inner {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px #edf2f7;
}

.ec-gauge-value {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.ec-gauge-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

.ec-gauge-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

    .ec-gauge-footer strong {
        color: #0f172a;
    }

.ec-bars-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 18px;
}

.ec-bars-card {
    background: #fcfdff;
    border: 1px solid #e7edf5;
    border-radius: 22px;
    padding: 16px;
}

    .ec-bars-card h4 {
        margin: 0;
        font-size: 18px;
        font-weight: 800;
        color: #14213d;
    }

    .ec-bars-card p {
        margin: 4px 0 14px;
        color: #6b7280;
        font-size: 12px;
    }

.ec-bar-row {
    display: grid;
    grid-template-columns: 160px 1fr 60px;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.ec-bar-label {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ec-bar-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: #e8eef6;
    overflow: hidden;
}

.ec-bar-fill {
    height: 100%;
    border-radius: 999px;
}

.ec-bar-fill-risk {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.ec-bar-fill-maturity {
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
}

.ec-bar-fill-neutral {
    background: linear-gradient(90deg, #64748b, #94a3b8);
}

.ec-bar-fill-warning {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.ec-bar-value {
    text-align: right;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
}

@media (max-width: 1100px) {
    .ec-gauge-grid,
    .ec-bars-grid {
        grid-template-columns: 1fr;
    }
}

.ec-framework-gauge-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 16px;
}

.ec-framework-gauge-card {
    min-height: 170px;
    padding: 18px;
    border: 1px solid #e6eaf2;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .ec-framework-gauge-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 38px rgba(15, 23, 42, .10);
    }

.ec-framework-gauge-title {
    color: #172033;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 4px;
}

.ec-framework-gauge-subtitle {
    color: #667085;
    font-size: 12px;
    min-height: 30px;
}

.ec-framework-gauge-value {
    margin: 14px 0 6px;
    color: #2563eb;
    font-size: 32px;
    font-weight: 950;
    line-height: 1;
}

.ec-framework-gauge-description {
    color: #475467;
    font-size: 12px;
}

.ec-framework-gauge-action {
    display: inline-flex;
    margin-top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 850;
}

@media (max-width: 1200px) {
    .ec-framework-gauge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .ec-framework-gauge-grid {
        grid-template-columns: 1fr;
    }
}


.ec-catalog-kpi {
    padding: 18px;
    border: 1px solid #e6eaf2;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.ec-catalog-kpi-label {
    color: #475467;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ec-catalog-kpi-value {
    margin: 10px 0 4px;
    color: #172033;
    font-size: 32px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.04em;
}

.ec-catalog-kpi-hint {
    color: #667085;
    font-size: 12px;
}


/* ============================================================
   ECISO - Galeria de Frameworks
   Versão ajustada para imagens inteiras
   ============================================================ */

.ec-framework-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 22px;
}

.ec-framework-card {
    overflow: hidden;
    border: 1px solid #e6eaf2;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .ec-framework-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 44px rgba(15, 23, 42, .12);
    }

.ec-framework-card-image-wrap {
    height: 310px;
    padding: 14px;
    background: linear-gradient(135deg, #07182f, #0b2a4d);
    border-bottom: 1px solid #eef1f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ec-framework-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.ec-framework-card-body {
    padding: 16px 18px 18px;
}

.ec-framework-card-title {
    color: #172033;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.2;
}

.ec-framework-card-subtitle {
    margin-top: 5px;
    color: #667085;
    font-size: 12px;
    word-break: break-word;
}

.ec-framework-card-body p {
    margin: 10px 0 0;
    color: #475467;
    font-size: 13px;
    line-height: 1.35;
}

@media (max-width: 1200px) {
    .ec-framework-gallery {
        grid-template-columns: 1fr;
    }

    .ec-framework-card-image-wrap {
        height: 300px;
    }
}

@media (max-width: 720px) {
    .ec-framework-card-image-wrap {
        height: 240px;
    }
}