/* ===========================================================================
   FinOps Overview — estilos compartilhados dos containers de seção
   (Informar / Otimizar / Gestão de ações), faixa de alertas e rodapé.
   =========================================================================== */

/* ── Container vertical de um painel de seção ──────────────────────────────── */
.finops-section-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    gap: 0.3rem;
    overflow: hidden;
}

.finops-section-block {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1;
}

.finops-section-block--grow {
    flex: 1.25 1;
}

.finops-section-block--auto {
    flex: 0 0 auto;
}

/* INFORMAR: gráfico de consumo no topo; segunda linha = budget + compliance lado a lado */
.finops-inform-chart {
    flex: 1.3 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.finops-inform-split {
    display: flex;
    gap: 0.5rem;
    flex: 1 1;
    min-height: 0;
    width: 100%;
}

.finops-inform-budget {
    flex: 1 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.finops-inform-tags {
    flex: 1 1;
    min-height: 0;
}

.finops-inform-nested {
    flex: 2 1;
    min-height: 0;
}

.finops-section-subtitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "Ubuntu", sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    margin: 0 0 0.18rem 0;
}

.finops-section-block-body {
    position: relative;
    flex: 1 1;
    min-height: 0;
}

.finops-section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 12px;
    font-weight: 500;
    color: #2e1956;
    color: var(--color-primary-blue, #2e1956);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.finops-section-link:hover {
    text-decoration: underline;
}

.finops-section-footerlink {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(58, 79, 135, 0.08);
    margin-top: 0.25rem;
}

/* ── KPIs (linha de 3 indicadores) ─────────────────────────────────────────── */
.finops-kpi-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.finops-kpi {
    flex: 1 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.finops-kpi-label {
    font-size: 10px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-kpi-value {
    font-size: 16px;
    font-weight: 600;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    line-height: 1.1;
}

.finops-kpi-delta {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 11px;
    font-weight: 500;
}

.finops-kpi-delta.is-up {
    color: #e53e3e;
}

.finops-kpi-delta.is-down {
    color: #2f855a;
}

.finops-kpi-progress {
    height: 5px;
    border-radius: 3px;
    background: rgba(58, 79, 135, 0.12);
    overflow: hidden;
    margin-top: 0.2rem;
}

.finops-kpi-progress > span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: #2e1956;
    background: var(--color-primary-blue, #2e1956);
}

/* ── Lista de oportunidades priorizadas ────────────────────────────────────── */
.finops-opp-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: 100%;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.finops-opp-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.22rem 0.35rem;
    border-radius: 6px;
    transition: background 0.2s;
    cursor: pointer;
}

.finops-opp-item:hover {
    background: rgba(58, 79, 135, 0.05);
}

.finops-opp-rank {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.finops-opp-main {
    flex: 1 1 auto;
    min-width: 0;
}

.finops-opp-title {
    font-size: 12px;
    font-weight: 500;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-opp-sub {
    font-size: 10px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-opp-value {
    flex: 0 0 auto;
    text-align: right;
}

.finops-opp-value-amount {
    font-size: 12px;
    font-weight: 600;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
}

.finops-opp-value-pct {
    font-size: 10px;
    color: #2e1956;
    color: var(--color-primary-blue, #2e1956);
    font-weight: 500;
}

/* ── Contadores de gestão de ações ─────────────────────────────────────────── */
.finops-counter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 0.4rem;
    gap: 0.4rem;
    width: 100%;
}

.finops-counter {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    padding: 0.3rem 0.4rem;
    border-radius: 7px;
    background: rgba(58, 79, 135, 0.04);
    border: 1px solid rgba(58, 79, 135, 0.07);
    min-width: 0;
}

.finops-counter-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.finops-counter-label {
    font-size: 9.5px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    line-height: 1.15;
}

/* ── Fila de ações (tabela compacta) ───────────────────────────────────────── */
.finops-queue {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.finops-queue-head,
.finops-queue-row {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
    grid-gap: 0.4rem;
    gap: 0.4rem;
    align-items: center;
    padding: 0.25rem 0.35rem;
}

.finops-queue-head {
    font-size: 9.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    border-bottom: 1px solid rgba(58, 79, 135, 0.1);
}

.finops-queue-body {
    flex: 1 1;
    min-height: 0;
    overflow-y: auto;
}

.finops-queue-row {
    border-bottom: 1px solid rgba(58, 79, 135, 0.05);
    font-size: 11px;
}

.finops-queue-row:hover {
    background: rgba(58, 79, 135, 0.04);
}

.finops-queue-cell {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-queue-cell--action {
    font-weight: 500;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
}

.finops-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

/* ── Faixa de Alertas e anomalias ──────────────────────────────────────────── */
.finops-alert-strip {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    height: 100%;
}

.finops-alert-tiles {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 0.75rem;
    gap: 0.75rem;
    min-width: 0;
}

.finops-alert-tile {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    min-width: 0;
    border-left: 3px solid transparent;
}

.finops-alert-tile + .finops-alert-tile {
    border-left: 3px solid transparent;
    box-shadow: -1px 0 0 rgba(58, 79, 135, 0.08);
}

.finops-alert-icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.finops-alert-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.finops-alert-title {
    font-size: 12px;
    font-weight: 500;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-alert-sub {
    font-size: 10.5px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-alert-seeall {
    flex: 0 0 auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    border: 1px solid #2e1956;
    border: 1px solid var(--color-primary-blue, #2e1956);
    color: #2e1956;
    color: var(--color-primary-blue, #2e1956);
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.finops-alert-seeall:hover {
    background: #2e1956;
    background: var(--color-primary-blue, #2e1956);
    color: #fff;
}

/* ── Rodapé do overview ────────────────────────────────────────────────────── */
.finops-overview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 0.5rem;
    font-size: 11px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    gap: 0.5rem;
}

.finops-overview-footer .finops-footer-update {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: default;
}

.finops-overview-footer .finops-footer-currency {
    font-weight: 500;
}

/* ── Navegação por etapas (Informar / Otimizar / Operar) ───────────────────── */
/* Renderizada no slot `header` do LCDashboard (faixa acima dos cards). */
.lcdashboard .lcdashboard-cards-panel-header .finops-stage-nav {
    padding-bottom: 0.5rem;
}

.finops-stage-nav {
    display: flex;
    gap: 0;
    width: 100%;
    height: 100%;
    align-items: stretch;
    box-sizing: border-box;
}

.finops-stage-card {
    --chevron: 22px;
    flex: 1 1;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 1rem 0.55rem calc(1rem + var(--chevron));
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-align: left;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, #8c40e3 88%, #ffffff 12%),
        color-mix(in srgb, #8c40e3 78%, #000000 22%)
    );
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--stage-color, #8c40e3) 88%, #ffffff 12%),
        color-mix(in srgb, var(--stage-color, #8c40e3) 78%, #000000 22%)
    );
    font-family: "Ubuntu", sans-serif;
    position: relative;
    overflow: hidden;
    /* Chevron: entalhe à esquerda + ponta à direita (setas interligadas). */
    clip-path: polygon(
        0 0,
        calc(100% - var(--chevron)) 0,
        100% 50%,
        calc(100% - var(--chevron)) 100%,
        0 100%,
        var(--chevron) 50%
    );
    transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

/* Primeiro card: sem entalhe à esquerda, cantos arredondados nesse lado. */
.finops-stage-card:first-child {
    padding-left: 1rem;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    clip-path: polygon(
        0 0,
        calc(100% - var(--chevron)) 0,
        100% 50%,
        calc(100% - var(--chevron)) 100%,
        0 100%
    );
}

/* Último card: sem ponta à direita, cantos arredondados nesse lado. */
.finops-stage-card:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        0 100%,
        var(--chevron) 50%
    );
}

/* Sobreposição: a ponta de um card encaixa no entalhe do próximo. */
.finops-stage-card + .finops-stage-card {
    margin-left: calc(var(--chevron) * -1);
}

.finops-stage-card--active {
    opacity: 1;
    z-index: 2;
    transform: translateY(-1px);
    filter: brightness(1.04) saturate(1.05);
}

.finops-stage-card--inactive {
    opacity: 0.42;
    filter: grayscale(0.15);
}

.finops-stage-card--inactive:hover {
    opacity: 0.7;
}

.finops-stage-badge {
    display: none;
}

.finops-stage-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
    font-size: 18px;
}

.finops-stage-icon svg {
    width: 1em;
    height: 1em;
}

.finops-stage-texts {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.finops-stage-title {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-stage-sub {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Faixa de narrativa (método): pergunta + síntese + próximo passo ───────── */
.fos-narr {
    --narr-color: #0080AF;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.4rem 0.7rem;
    margin-top: 0.35rem;
    background: color-mix(in srgb, var(--narr-color) 7%, #ffffff 93%);
    border-left: 3px solid var(--narr-color);
    border-radius: 4px;
    font-family: "Ubuntu", sans-serif;
}

.fos-narr--informar { --narr-color: #0080AF; }
.fos-narr--otimizar { --narr-color: #BD3BFD; }
.fos-narr--operar { --narr-color: #2F855A; }

.fos-narr-texts {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.25;
}

.fos-narr-question {
    font-size: 13px;
    font-weight: 700;
    color: var(--narr-color);
}

.fos-narr-summary {
    font-size: 12px;
    font-weight: 400;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fos-narr-summary b {
    font-weight: 700;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
}

.fos-narr-up { color: #C53030; font-weight: 700; }
.fos-narr-down { color: #2F855A; font-weight: 700; }

.fos-narr-next {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--narr-color);
    border-radius: 16px;
    background: var(--narr-color);
    color: #ffffff;
    font-family: "Ubuntu", sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.fos-narr-next:hover {
    filter: brightness(1.08);
    transform: translateX(2px);
}

.fos-narr-next svg {
    width: 1em;
    height: 1em;
}

/* ── Atalho "Ver últimos meses" no card Consumo mensal (descoberta da curva) ─ */
.finops-consumo-title-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.finops-trend-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid #0080AF;
    border-radius: 14px;
    background: color-mix(in srgb, #0080AF 8%, #ffffff 92%);
    color: #0080AF;
    font-family: "Ubuntu", sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.finops-trend-shortcut:hover {
    background: color-mix(in srgb, #0080AF 16%, #ffffff 84%);
}

.finops-trend-shortcut svg {
    width: 1.05em;
    height: 1.05em;
}

/* ── Faixa de KPIs do Informar (5 indicadores) ─────────────────────────────── */
.finops-inform-kpi-strip .finops-kpi-cell {
    padding-top: 0;
    padding-bottom: 0;
}

.finops-inform-kpi-strip .finops-kpi-body {
    gap: 0;
}

.finops-inform-kpi-strip .finops-kpi-big {
    font-size: 16px;
    line-height: 1.05;
}

.finops-kpi-strip {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.finops-kpi-strip.is-loading {
    opacity: 0.6;
}

.finops-kpi-cell {
    flex: 1 1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.1rem 0.75rem;
    min-width: 0;
}

.finops-kpi-cell + .finops-kpi-cell {
    border-left: 1px solid rgba(58, 79, 135, 0.1);
}

.finops-kpi-cell--clickable {
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}

.finops-kpi-cell--clickable:hover {
    background-color: rgba(140, 64, 227, 0.06);
}

.finops-kpi-ico {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.finops-kpi-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.04rem;
}

.finops-kpi-cap {
    font-size: 10px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-kpi-big {
    font-size: 17px;
    font-weight: 700;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    line-height: 1.1;
}

.finops-kpi-big > div {
    display: inline;
}

.finops-kpi-big--trend {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.finops-kpi-big--trend.is-up {
    color: #e53e3e;
}

.finops-kpi-big--trend.is-down {
    color: #2f855a;
}

.finops-kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 10.5px;
    font-weight: 500;
    white-space: nowrap;
}

.finops-kpi-trend.is-up {
    color: #e53e3e;
}

.finops-kpi-trend.is-down {
    color: #2f855a;
}

.finops-kpi-sub {
    font-size: 10.5px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-kpi-progress--inline {
    width: 100%;
    margin-top: 0.3rem;
}

/* ── Faixa de insights financeiros do Informar (5 cartões) ─────────────────── */
.finops-insights-strip {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    align-items: stretch;
    overflow: hidden;
}

.finops-insight-card {
    flex: 1 1;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.4rem 0.55rem;
    border-radius: 9px;
    background: rgba(58, 79, 135, 0.04);
    border: 1px solid rgba(58, 79, 135, 0.07);
    min-width: 0;
}

.finops-insight-ico {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    font-size: 18px;
    margin-top: 1px;
}

.finops-insight-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.03rem;
}

.finops-insight-highlight {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-insight-title {
    font-size: 11px;
    font-weight: 600;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-insight-text {
    font-size: 10px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Lista vertical de Alertas e anomalias do Informar ─────────────────────── */
.finops-alert-list {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.finops-alert-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(58, 79, 135, 0.1);
}

.finops-alert-summary-metrics {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    min-width: 0;
}

.finops-alert-count {
    font-size: 11px;
    font-weight: 700;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
}

.finops-alert-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 600;
    background: rgba(58, 79, 135, 0.08);
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
}

.finops-alert-pill.is-critical {
    background: rgba(229, 62, 62, 0.13);
    color: #b42318;
}

.finops-alert-pill.is-high {
    background: rgba(221, 107, 32, 0.14);
    color: #b54708;
}

.finops-alert-summary-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.finops-alert-list-body {
    flex: 1 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-right: 0.15rem;
}

.finops-alert-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.35rem 0.4rem;
    border-radius: 8px;
    border: 1px solid rgba(58, 79, 135, 0.08);
    background: rgba(58, 79, 135, 0.02);
}

.finops-alert-row--alert {
    border-left: 3px solid rgba(49, 130, 206, 0.7);
}

.finops-alert-row--anomaly {
    border-left: 3px solid rgba(229, 70, 70, 0.7);
}

.finops-alert-title-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.finops-alert-kind {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    white-space: nowrap;
}

.finops-alert-row .finops-alert-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.finops-alert-row .finops-alert-title {
    font-size: 11.5px;
    font-weight: 600;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: normal;
}

.finops-alert-row .finops-alert-sub {
    font-size: 10px;
    white-space: normal;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.finops-alert-action {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.1rem;
    padding: 0;
    border: none;
    background: none;
    color: #471fcc;
    color: var(--color-primary-blue, #471fcc);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.finops-alert-action:hover {
    text-decoration: underline;
}

.finops-alert-action--ghost {
    margin-top: 0;
    padding: 0.22rem 0.5rem;
    border: 1px solid rgba(71, 31, 204, 0.35);
    border-radius: 999px;
    color: #471fcc;
    color: var(--color-primary-blue, #471fcc);
    text-decoration: none;
}

.finops-alert-action--ghost:hover {
    background: rgba(71, 31, 204, 0.06);
    text-decoration: none;
}

.finops-alert-meta {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    text-align: right;
}

.finops-alert-sev {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.finops-alert-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.finops-alert-impact {
    font-size: 12px;
    font-weight: 700;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
}

.finops-alert-date {
    font-size: 9.5px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    white-space: nowrap;
}

/* ===========================================================================
   OTIMIZAR — KPIs, economia por categoria/provedor, alertas, priorizadas e
   insights. Reaproveita .finops-kpi-strip / .finops-kpi-cell / .finops-kpi-*
   já existentes do Informar; adiciona modificadores e componentes específicos.
   =========================================================================== */

/* KPI strip com gauge na última célula */
.finops-optimize-kpi-strip .finops-kpi-cell {
    padding-top: 0;
    padding-bottom: 0;
}

.finops-optimize-kpi-strip .finops-kpi-body {
    gap: 0;
}

.finops-optimize-kpi-strip .finops-kpi-big {
    font-size: 16px;
    line-height: 1.05;
}

.finops-optimize-kpi-strip .finops-kpi-cell--with-gauge {
    justify-content: space-between;
    gap: 0.5rem;
}

.finops-optimize-kpi-strip .finops-kpi-big small {
    font-size: 13px;
    font-weight: 600;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    margin-left: 0.1rem;
}

.finops-optimize-gauge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.finops-optimize-gauge-inner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #1a8f6b;
}

/* Economia por categoria — barras horizontais */
.finops-savings-bars {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.finops-savings-bars-body {
    flex: 1 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-right: 0.15rem;
}

.finops-savings-bar {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
    align-items: center;
    grid-gap: 0.5rem;
    gap: 0.5rem;
    font-size: 11.5px;
}

.finops-savings-bar-label {
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.finops-savings-bar-track {
    position: relative;
    height: 18px;
    background: rgba(58, 79, 135, 0.06);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.finops-savings-bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, #43a67f, #5dbc95);
    border-radius: 4px;
}

.finops-savings-bar-value {
    position: relative;
    z-index: 1;
    margin-left: auto;
    padding: 0 0.4rem;
    font-size: 11px;
    font-weight: 600;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
    display: inline-flex;
    align-items: baseline;
    gap: 0.15rem;
}

/* CurrencyWithKLC renderiza um <div> (bloco); forçar inline para o valor e o
   percentual ficarem na MESMA linha dentro da barra. */
.finops-savings-bar-value > div {
    display: inline;
}

.finops-savings-bar-value small {
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    font-weight: 500;
    margin-left: 0.15rem;
}

.finops-savings-bars-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(58, 79, 135, 0.1);
    font-size: 11.5px;
}

.finops-savings-bars-footer-label {
    color: #471fcc;
    color: var(--color-primary-blue, #471fcc);
    font-weight: 600;
}

.finops-savings-bars-footer-value {
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    font-weight: 700;
}

/* Economia por provedor / serviço — tabela compacta */
.finops-savings-table {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.finops-savings-table-head,
.finops-savings-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) 50px;
    grid-gap: 0.5rem;
    gap: 0.5rem;
    align-items: center;
    padding: 0.3rem 0.25rem;
}

.finops-savings-table-head {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    border-bottom: 1px solid rgba(58, 79, 135, 0.1);
}

.finops-savings-table-body {
    flex: 1 1;
    min-height: 0;
    overflow-y: auto;
}

.finops-savings-table-row {
    font-size: 11.5px;
    border-bottom: 1px solid rgba(58, 79, 135, 0.05);
}

.finops-savings-table-row:hover {
    background: rgba(58, 79, 135, 0.03);
}

.finops-savings-table-num {
    text-align: right;
    white-space: nowrap;
}

.finops-savings-table-name {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.finops-provider-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex: 0 0 auto;
}

.finops-savings-table-service {
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.finops-savings-table-amount {
    font-weight: 600;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
}

.finops-savings-table-pct {
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    font-size: 11px;
}

/* Alertas e anomalias de otimização */
.finops-optimize-alerts {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    height: 100%;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.finops-optimize-alert {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    grid-gap: 0.6rem;
    gap: 0.6rem;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(58, 79, 135, 0.08);
    background: #fff;
}

.finops-optimize-alert--clickable {
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.finops-optimize-alert--clickable:hover {
    background: rgba(71, 31, 204, 0.04);
    border-color: rgba(71, 31, 204, 0.25);
}

.finops-optimize-alert--clickable:focus-visible {
    outline: 2px solid rgba(71, 31, 204, 0.4);
    outline-offset: 1px;
}

.finops-optimize-alert-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.finops-optimize-alert-main {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.finops-optimize-alert-title {
    font-size: 12px;
    font-weight: 700;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-optimize-alert-sub {
    font-size: 10.5px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.finops-optimize-alert-side {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: right;
    flex: 0 0 auto;
}

.finops-optimize-alert-savings {
    font-size: 13px;
    font-weight: 700;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
}

.finops-optimize-alert-savings small {
    font-size: 10px;
    font-weight: 500;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    margin-left: 0.15rem;
}

.finops-optimize-alert-chevron {
    color: #471fcc;
    color: var(--color-primary-blue, #471fcc);
    flex: 0 0 auto;
    opacity: 0.55;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.finops-optimize-alert--clickable:hover .finops-optimize-alert-chevron {
    opacity: 1;
    transform: translateX(2px);
}

/* Oportunidades priorizadas — tabela compacta */
.finops-priority-table {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.finops-priority-head,
.finops-priority-row {
    display: grid;
    grid-template-columns:
        minmax(0, 2.6fr)
        minmax(0, 1.2fr)
        minmax(0, 1.1fr)
        70px
        70px
        minmax(0, 1.1fr)
        80px
        24px;
    grid-gap: 0.45rem;
    gap: 0.45rem;
    align-items: center;
    padding: 0.3rem 0.35rem;
}

.finops-priority-head {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    border-bottom: 1px solid rgba(58, 79, 135, 0.1);
}

.finops-priority-body {
    flex: 1 1;
    min-height: 0;
    overflow-y: auto;
}

.finops-priority-row {
    font-size: 11.5px;
    border-bottom: 1px solid rgba(58, 79, 135, 0.05);
}

.finops-priority-row:hover {
    background: rgba(58, 79, 135, 0.03);
}

.finops-priority-cell {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
}

.finops-priority-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.finops-priority-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.finops-priority-category {
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    font-size: 11px;
}

.finops-priority-num {
    text-align: right;
}

.finops-priority-amount {
    font-weight: 600;
}

.finops-priority-confidence {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.finops-priority-confidence-num {
    font-weight: 600;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    font-size: 11px;
}

.finops-priority-confidence-bar {
    flex: 1 1 auto;
    height: 5px;
    border-radius: 3px;
    background: rgba(58, 79, 135, 0.12);
    overflow: hidden;
    min-width: 30px;
}

.finops-priority-confidence-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0e7c66, #1a8f6b);
    border-radius: 3px;
}

.finops-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.finops-pill--low {
    background: rgba(46, 160, 67, 0.14);
    color: #1a7f37;
}

.finops-pill--med {
    background: rgba(245, 166, 35, 0.18);
    color: #a16207;
}

.finops-pill--high {
    background: rgba(229, 62, 62, 0.14);
    color: #b42318;
}

.finops-pill--open {
    background: rgba(46, 160, 67, 0.14);
    color: #1a7f37;
}

.finops-priority-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid rgba(71, 31, 204, 0.25);
    background: #fff;
    color: #471fcc;
    color: var(--color-primary-blue, #471fcc);
    cursor: pointer;
    padding: 0;
}

.finops-priority-go:hover {
    background: rgba(71, 31, 204, 0.08);
}

.finops-priority-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.4rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(58, 79, 135, 0.08);
    font-size: 11px;
}

.finops-priority-footer-info {
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
}

.finops-priority-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #471fcc;
    color: var(--color-primary-blue, #471fcc);
    font-weight: 600;
}

/* Oportunidades priorizadas — grade RevoGrid (todas as oportunidades) */
.finops-priority-grid-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.finops-priority-grid-wrap {
    flex: 1 1;
    min-height: 0;
    width: 100%;
}

.finops-priority-grid-wrap revo-grid {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Cabeçalho do RevoGrid igual ao da tabela "Economia por provedor / serviço"
   (.finops-savings-table-head): 9.5px, 700, uppercase, espaçamento e cor claros. */
.finops-priority-grid-wrap revo-grid .header-rgRow,
.finops-priority-grid-wrap revo-grid revogr-header .rgHeaderCell,
.finops-priority-grid-wrap revo-grid .rgHeaderCell {
    font-size: 9.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a90a6 !important;
    color: var(--text-light, #8a90a6) !important;
}

/* Título da oportunidade dentro da célula (dot + texto com reticências). */
.finops-grid-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 400;
}

/* Alinhamento à direita para a coluna de impacto (números financeiros). */
.finops-grid-right {
    text-align: right;
    justify-content: flex-end;
}


.finops-priority-footer-link:hover {
    text-decoration: underline;
}

/* Insights e recomendações */
.finops-optimize-insights {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    height: 100%;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.finops-optimize-insight {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-gap: 0.55rem;
    gap: 0.55rem;
    align-items: flex-start;
}

.finops-optimize-insight-ico {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.finops-optimize-insight-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.finops-optimize-insight-title {
    font-size: 12px;
    font-weight: 600;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    line-height: 1.3;
}

.finops-optimize-insight-text {
    font-size: 10.5px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    line-height: 1.3;
}

/* ===========================================================================
   OPERAR — Gestão de ações: KPIs, fila de ações, aprovações, status (donut),
   histórico e alertas. Reaproveita .finops-kpi-* e .finops-pill do restante.
   =========================================================================== */

/* KPI strip do Operar (5 indicadores) */
.finops-operate-kpi-strip .finops-kpi-cell {
    padding-top: 0;
    padding-bottom: 0;
}

.finops-operate-kpi-strip .finops-kpi-body {
    gap: 0;
}

.finops-operate-kpi-strip .finops-kpi-big {
    font-size: 16px;
    line-height: 1.05;
}

.finops-operate-kpi-strip .finops-kpi-cell--with-gauge {
    justify-content: space-between;
    gap: 0.5rem;
}

.finops-kpi-trend.is-neutral {
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
}

.finops-kpi-sub--strong {
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    font-weight: 600;
}

.finops-operate-gauge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.finops-operate-gauge-inner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #1a8f6b;
}

/* Fila de ações */
.finops-actions-queue {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.finops-actions-toolbar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.finops-actions-search {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1 1 180px;
    min-width: 0;
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(58, 79, 135, 0.16);
    border-radius: 8px;
    background: #fff;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
}

.finops-actions-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 11.5px;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    width: 100%;
}

.finops-actions-select {
    flex: 0 0 auto;
    padding: 0.3rem 0.5rem;
    border: 1px solid rgba(58, 79, 135, 0.16);
    border-radius: 8px;
    background: #fff;
    font-size: 11px;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    cursor: pointer;
    max-width: 160px;
}

.finops-actions-table {
    flex: 1 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.finops-actions-head,
.finops-actions-row {
    display: grid;
    grid-template-columns:
        minmax(0, 2.1fr)
        minmax(0, 1.1fr)
        minmax(0, 1.5fr)
        minmax(0, 1.1fr)
        78px
        minmax(0, 1.3fr)
        minmax(0, 1fr);
    grid-gap: 0.5rem;
    gap: 0.5rem;
    align-items: center;
    padding: 0.32rem 0.3rem;
}

.finops-actions-head {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    border-bottom: 1px solid rgba(58, 79, 135, 0.1);
}

.finops-actions-body {
    flex: 1 1;
    min-height: 0;
    overflow-y: auto;
}

.finops-actions-row {
    font-size: 11.5px;
    border-bottom: 1px solid rgba(58, 79, 135, 0.05);
    cursor: pointer;
}

.finops-actions-row:hover {
    background: rgba(58, 79, 135, 0.03);
}

.finops-actions-cell {
    min-width: 0;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
}

.finops-actions-action {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-actions-owner {
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-actions-context {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.finops-actions-context-main {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-actions-context-sub {
    font-size: 10px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-actions-num {
    text-align: right;
}

.finops-actions-savings {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-weight: 600;
    white-space: nowrap;
}

.finops-actions-savings small {
    font-size: 9px;
    font-weight: 500;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
}

.finops-actions-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.finops-actions-status-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.finops-actions-status-main {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.finops-actions-status-label {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-actions-status-sla {
    font-size: 9.5px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-actions-status-sla.is-overdue {
    color: #c53030;
    font-weight: 600;
}

.finops-actions-due {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.finops-actions-due-date {
    font-size: 11px;
    white-space: nowrap;
}

.finops-actions-due-rel {
    font-size: 9.5px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    white-space: nowrap;
}

.finops-actions-due-rel.is-overdue {
    color: #c53030;
    font-weight: 600;
}

.finops-actions-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(58, 79, 135, 0.08);
    font-size: 11px;
    flex-wrap: wrap;
}

.finops-actions-footer-info {
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
}

.finops-actions-pager {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.finops-actions-pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid rgba(58, 79, 135, 0.18);
    background: #fff;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    cursor: pointer;
    padding: 0;
}

.finops-actions-pager-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.finops-actions-pager-btn:not(:disabled):hover {
    background: rgba(58, 79, 135, 0.06);
}

.finops-actions-pager-label {
    font-size: 11px;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    font-weight: 600;
}

.finops-actions-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #471fcc;
    color: var(--color-primary-blue, #471fcc);
    font-weight: 600;
}

.finops-actions-footer-link:hover {
    text-decoration: underline;
}

/* Aprovações (mini-KPIs + progresso) */
.finops-approvals {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.6rem;
}

.finops-approvals-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 0.45rem;
    gap: 0.45rem;
    flex: 1 1 auto;
}

.finops-approval-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    padding: 0.5rem 0.3rem;
    border-radius: 8px;
    border: 1px solid rgba(58, 79, 135, 0.08);
    text-align: center;
}

.finops-approval-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.finops-approval-label {
    font-size: 9.5px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    line-height: 1.2;
}

.finops-approval-tile--amber {
    background: #fef6e6;
}
.finops-approval-tile--amber .finops-approval-value {
    color: #b45309;
}
.finops-approval-tile--green {
    background: #e6f4ec;
}
.finops-approval-tile--green .finops-approval-value {
    color: #1a8f6b;
}
.finops-approval-tile--red {
    background: #fbe9e6;
}
.finops-approval-tile--red .finops-approval-value {
    color: #c53030;
}
.finops-approval-tile--blue {
    background: #e6ecfb;
}
.finops-approval-tile--blue .finops-approval-value {
    color: #2b53c4;
}

.finops-approvals-progress {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.finops-approvals-progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(58, 79, 135, 0.1);
    overflow: hidden;
}

.finops-approvals-progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0e7c66, #1a8f6b);
}

.finops-approvals-progress-label {
    font-size: 10px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
}

/* Status das ações (donut) */
.finops-status-donut {
    display: grid;
    grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    grid-gap: 0.6rem;
    gap: 0.6rem;
    height: 100%;
}

.finops-status-donut-chart {
    position: relative;
    height: 100%;
    min-height: 120px;
}

.finops-status-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.finops-status-donut-total {
    font-size: 20px;
    font-weight: 700;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    line-height: 1;
}

.finops-status-donut-caption {
    font-size: 10px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
}

.finops-status-legend {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.finops-status-legend-row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto auto;
    align-items: center;
    grid-gap: 0.35rem;
    gap: 0.35rem;
    font-size: 11px;
}

.finops-status-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 3px;
}

.finops-status-legend-label {
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-status-legend-num {
    font-weight: 700;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
}

.finops-status-legend-pct {
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    font-size: 10.5px;
}

/* Histórico recente */
.finops-history-table {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.finops-history-head,
.finops-history-row {
    display: grid;
    grid-template-columns:
        minmax(0, 2.2fr)
        minmax(0, 1.1fr)
        minmax(0, 1.3fr)
        minmax(0, 1.2fr)
        minmax(0, 1.4fr);
    grid-gap: 0.5rem;
    gap: 0.5rem;
    align-items: center;
    padding: 0.32rem 0.3rem;
}

.finops-history-head {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    border-bottom: 1px solid rgba(58, 79, 135, 0.1);
}

.finops-history-body {
    flex: 1 1;
    min-height: 0;
    overflow-y: auto;
}

.finops-history-row {
    font-size: 11.5px;
    border-bottom: 1px solid rgba(58, 79, 135, 0.05);
}

.finops-history-cell {
    min-width: 0;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-history-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

.finops-history-check {
    flex: 0 0 auto;
    color: #1a8f6b;
}

.finops-history-date {
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
}

.finops-history-num {
    text-align: right;
}

.finops-history-savings {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-weight: 600;
    color: #1a7f37;
}

.finops-history-savings small {
    font-size: 9px;
    font-weight: 500;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
}

.finops-history-impact {
    color: #2b304a;
    color: var(--text-dark, #2b304a);
}

.finops-history-context {
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    font-size: 11px;
}

.finops-history-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.4rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(58, 79, 135, 0.08);
}

.finops-history-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #471fcc;
    color: var(--color-primary-blue, #471fcc);
    font-weight: 600;
    font-size: 11px;
}

.finops-history-footer-link:hover {
    text-decoration: underline;
}

/* Alertas da gestão de ações */
.finops-op-alerts {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.finops-op-alerts-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 80px;
    grid-gap: 0.5rem;
    gap: 0.5rem;
    align-items: center;
    padding: 0.3rem 0.3rem;
    margin-left: 42px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    border-bottom: 1px solid rgba(58, 79, 135, 0.1);
}

.finops-op-alerts-deadline-h {
    text-align: right;
}

.finops-op-alerts-body {
    flex: 1 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.4rem;
}

.finops-op-alert {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 90px 80px;
    align-items: center;
    grid-gap: 0.5rem;
    gap: 0.5rem;
    padding: 0.35rem 0.3rem;
    border-radius: 8px;
    border: 1px solid rgba(58, 79, 135, 0.06);
}

.finops-op-alert-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.finops-op-alert-main {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.finops-op-alert-title {
    font-size: 12px;
    font-weight: 700;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-op-alert-sub {
    font-size: 10px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.finops-op-alert-sev {
    grid-column: 2;
    justify-self: start;
}

.finops-op-alert-owner {
    font-size: 11px;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.finops-op-alert-deadline {
    font-size: 11px;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.finops-op-alerts-footer {
    margin-top: 0.4rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(58, 79, 135, 0.08);
}

.finops-op-alerts-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #471fcc;
    color: var(--color-primary-blue, #471fcc);
    font-weight: 600;
    font-size: 11px;
}

.finops-op-alerts-link:hover {
    text-decoration: underline;
}

/* ===========================================================================
   ALERTAS E ANOMALIAS (painel detalhado) — header, linhas com mini-gráfico
   (Atual vs. Baseline + ponto de anomalia), valores, variação, impacto e
   "Ver detalhes". Usado em largura total na etapa Informar.
   =========================================================================== */
.finops-aa-panel {
    display: flex;
    flex-direction: column;
    /* Flex-fill the card body. Using `height: 100%` is unreliable here because
       the parent (.card-content-body) only sets min/max-height (no explicit
       height), so the percentage doesn't resolve and the panel grows with its
       content — at narrow widths the footer legend wraps and bleeds below the
       card. Flexing within the column container keeps it bounded and clipped. */
    flex: 1 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

/* O `.card-content-body` reserva apenas 20px do header, mas o header deste card
   (título + ícones) ocupa ~44px. Quando o painel preenche a altura (flex), o
   total (header + body) excede o `.card-frame` — que não recorta — e a legenda
   do rodapé vaza para fora/para o card seguinte. Reservamos a altura real do
   header no elemento pai do conteúdo e recortamos o frame como rede de proteção. */
.lcdashboard .card-frame.finops-aa-card {
    overflow: hidden;
}
.lcdashboard .card-frame.finops-aa-card .card-content-body {
    min-height: calc(100% - 44px);
    max-height: calc(100% - 44px);
}

/* Subtítulo + link (o título principal vem do header padrão do card) */
.finops-aa-subhead {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding-bottom: 0.45rem;
    margin-bottom: 0.1rem;
    border-bottom: 1px solid rgba(58, 79, 135, 0.08);
}

.finops-aa-subhead-text {
    font-size: 11px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-aa-header-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #471fcc;
    color: var(--color-primary-blue, #471fcc);
    font-weight: 600;
    font-size: 11.5px;
    white-space: nowrap;
}

.finops-aa-header-link:hover {
    text-decoration: underline;
}

.finops-aa-body {
    flex: 1 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0.25rem 0.5rem 0;
}

/* Ocorrência — mini-card vertical (cabe em 1/3 de largura) */
.finops-aa-item {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    gap: 0.5rem;
    padding: 0.5rem 0.55rem 0.55rem 0;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.finops-aa-item:hover {
    box-shadow: 0 4px 14px rgba(43, 48, 74, 0.08);
}

.finops-aa-item:focus-visible {
    outline: 2px solid #471fcc;
    outline: 2px solid var(--color-primary-blue, #471fcc);
    outline-offset: 1px;
}

.finops-aa-item-bar {
    flex: 0 0 auto;
    align-self: stretch;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.finops-aa-item-main {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
    flex: 1 1;
    padding-left: 0.4rem;
}

.finops-aa-item-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.finops-aa-var {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

.finops-aa-item-go {
    margin-left: auto;
    color: #b0b4c5;
    color: var(--text-light, #b0b4c5);
    flex: 0 0 auto;
}

.finops-aa-sev {
    display: inline-flex;
    align-items: center;
    padding: 0.05rem 0.5rem;
    border: 1px solid;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

.finops-aa-title {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 12.5px;
    font-weight: 700;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Compacto: título na mesma linha dos badges (severidade + variação) */
.finops-aa-item-top .finops-aa-title {
    flex: 1 1 auto;
    min-width: 0;
}

.finops-aa-name {
    font-size: 11.5px;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-aa-scope {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
}

.finops-aa-scope-text {
    font-size: 10.5px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mini-gráfico (sparkline) dentro do mini-card */
.finops-aa-lg-line {
    width: 12px;
    height: 0;
    border-top: 2px solid #2b53c4;
    border-radius: 2px;
}

.finops-aa-lg-dash {
    width: 12px;
    height: 0;
    border-top: 2px dashed #94a3b8;
}

.finops-aa-lg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #ef6c2f;
    background: #fff;
}

.finops-aa-spark {
    position: relative;
    width: 100%;
    height: 46px;
}

.finops-aa-spark--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #b9bccc;
    color: var(--text-light, #b9bccc);
}

.finops-aa-spark-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.finops-aa-spark-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ef6c2f;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 2px rgba(239, 108, 47, 0.12);
}

.finops-aa-axis {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9px;
    color: #b0b4c5;
    color: var(--text-light, #b0b4c5);
}

/* Rodapé do mini-card — Atual / Baseline / Impacto */
.finops-aa-item-foot {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    grid-gap: 0.2rem 0.5rem;
    gap: 0.2rem 0.5rem;
    margin-top: 0.1rem;
    padding-top: 0.35rem;
    border-top: 1px dashed rgba(58, 79, 135, 0.12);
    white-space: nowrap;
}

.finops-aa-foot-cell {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.finops-aa-foot-cell--impact {
    align-items: flex-end;
    text-align: right;
}

.finops-aa-foot-cap {
    font-size: 9px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.finops-aa-foot-num {
    font-size: 12px;
    font-weight: 700;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    overflow: hidden;
    text-overflow: ellipsis;
}

.finops-aa-foot-num--muted {
    font-weight: 600;
    color: #5b6478;
}

/* ════════════════════════════════════════════════════════════════════════
   Modo ampliado (focus) — layout rico com gráficos, 1 linha por ocorrência
   ════════════════════════════════════════════════════════════════════════ */
.finops-aa-body--rich {
    gap: 0.6rem;
    padding-right: 0.35rem;
}

.finops-aa-body--rich .finops-aa-row {
    display: grid;
    grid-template-columns: 4px minmax(200px, 1.4fr) minmax(220px, 1.9fr) minmax(110px, auto) minmax(150px, auto) auto;
    align-items: center;
    grid-gap: 1rem;
    gap: 1rem;
    flex: 0 0 auto;
    padding: 0.7rem 0.85rem 0.7rem 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.finops-aa-body--rich .finops-aa-row:hover {
    box-shadow: 0 4px 16px rgba(43, 48, 74, 0.07);
}

.finops-aa-bar {
    align-self: stretch;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.finops-aa-info {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
    padding-left: 0.5rem;
}

.finops-aa-info-head {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.finops-aa-info-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.finops-aa-body--rich .finops-aa-title {
    font-size: 14px;
}

.finops-aa-body--rich .finops-aa-name {
    font-size: 12px;
}

.finops-aa-body--rich .finops-aa-scope-text {
    font-size: 11px;
}

/* Coluna do gráfico */
.finops-aa-chart {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.finops-aa-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 10px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
}

.finops-aa-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.finops-aa-body--rich .finops-aa-spark {
    height: 58px;
}

/* Coluna de valores Atual / Baseline */
.finops-aa-values {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    white-space: nowrap;
}

.finops-aa-value {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.finops-aa-value-cap {
    font-size: 10px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
}

.finops-aa-value-num {
    font-size: 14px;
    font-weight: 700;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
}

.finops-aa-value-num--muted {
    font-weight: 600;
    color: #5b6478;
}

/* Caixa de variação + impacto */
.finops-aa-impact {
    display: grid;
    grid-template-rows: auto auto auto auto;
    grid-gap: 0.02rem;
    gap: 0.02rem;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    white-space: nowrap;
}

.finops-aa-impact-cap {
    font-size: 10px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
}

.finops-aa-impact-var {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.finops-aa-impact-val {
    font-size: 14px;
    font-weight: 700;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
}

/* Link Ver detalhes */
.finops-aa-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #471fcc;
    color: var(--color-primary-blue, #471fcc);
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

.finops-aa-detail:hover {
    text-decoration: underline;
}

/* Rodapé — legenda canônica */
.finops-aa-footer {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(58, 79, 135, 0.08);
    flex-wrap: wrap;
    flex: 0 0 auto;
}

/* Em larguras estreitas (< 1366px) o card de 1/3 fica apertado e a legenda
   tende a quebrar para 2+ linhas; reduz gap/fonte para mantê-la compacta. */
@media (max-width: 1366px) {
    .finops-aa-footer {
        gap: 0.6rem 0.9rem;
        padding-top: 0.4rem;
    }
    .finops-aa-foot-item {
        font-size: 10px;
    }
}

.finops-aa-foot-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 10.5px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
}

/* ── Responsividade: empilha os painéis em telas estreitas ─────────────────── */
@media (max-width: 1100px) {
    .finops-alert-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
    .finops-counter-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .finops-stage-card {
        --chevron: 16px;
        padding: 0.4rem 0.55rem 0.4rem calc(0.55rem + var(--chevron));
        gap: 0.4rem;
    }
    .finops-stage-card:first-child {
        padding-left: 0.55rem;
    }
    .finops-stage-sub {
        display: none;
    }
    .finops-kpi-cell {
        padding: 0.1rem 0.45rem;
        gap: 0.35rem;
    }
    .finops-kpi-ico {
        width: 28px;
        height: 28px;
        font-size: 17px;
    }
    .finops-kpi-big {
        font-size: 15px;
    }
    .finops-insight-text {
        -webkit-line-clamp: 3;
    }
    .finops-approvals-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
    .finops-status-donut {
        grid-template-columns: 1fr;
    }
    .finops-actions-toolbar {
        gap: 0.35rem;
    }
    .finops-actions-select {
        max-width: 130px;
    }
    .finops-aa-header-title {
        font-size: 14px;
    }
}

/* Painéis de filtro por aba (Otimizar / Operar) no side panel direito do Resume. */
.finops-stagefilter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    font-family: "Ubuntu", sans-serif;
    flex: 1 1 auto;
    min-height: 0;
}

/* A cadeia flex do .side-modal > .body > .finops-filters-host > .right-sidepanel-filters
   (que garante altura cheia e rodapé fixo) é definida de forma unificada em
   FilterPanelResume.css, escopada por .finops-filters-host — aplica-se igualmente
   aos 3 estágios (Informar/Otimizar/Operar) sem precisar repetir aqui. */

/* Bloco rolável com os grupos de filtro; o rodapé fica como irmão fixo. */
.finops-stagefilter-scroll {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.finops-stagefilter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.finops-stagefilter-title {
    font-size: 12px;
    font-weight: 700;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.finops-stagefilter-options {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.finops-stagefilter-opt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12.5px;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    cursor: pointer;
    padding: 0.25rem 0.35rem;
    border-radius: 6px;
    transition: background-color 0.12s ease;
}

.finops-stagefilter-opt:hover {
    background-color: rgba(58, 79, 135, 0.06);
}

.finops-stagefilter-opt input {
    accent-color: #471fcc;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.finops-stagefilter-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.finops-stagefilter-opt-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finops-stagefilter-empty {
    font-size: 11.5px;
    color: #8a90a6;
    color: var(--text-light, #8a90a6);
    font-style: italic;
}

.finops-stagefilter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12.5px;
    color: #2b304a;
    color: var(--text-dark, #2b304a);
    cursor: pointer;
}

.finops-stagefilter-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.4rem;
}

.finops-stagefilter-btn {
    flex: 1 1;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: "Ubuntu", sans-serif;
    transition: background-color 0.12s ease, opacity 0.12s ease;
}

.finops-stagefilter-btn--clear {
    background: #ffffff;
    border-color: #d1d5db;
    color: #4a5568;
}

.finops-stagefilter-btn--clear:disabled {
    opacity: 0.5;
    cursor: default;
}

.finops-stagefilter-count {
    font-size: 11px;
    font-weight: 600;
    color: #471fcc;
}

/* Scorecard de Valor FinOps (P5) — KPIs executivos sobre o backlog de Ações */
.fos-scorecard {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    padding: 4px 2px 18px;
}

.fos-sc-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 4px 0 2px;
}

.fos-sc-grid {
    display: grid;
    grid-gap: 12px;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.fos-sc-card {
    background: #fff;
    border: 1px solid #e7e9f0;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
    min-height: 104px;
}

.fos-sc-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #173192;
}

.fos-sc-card-head .fos-sc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #eef1fb;
    color: #173192;
    flex: 0 0 auto;
}

.fos-sc-card-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475467;
    line-height: 1.2;
}

/* Valores numéricos financeiros alinhados à direita */
.fos-sc-card-value {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1f2937;
    text-align: right;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    margin-top: auto;
}

.fos-sc-card-value.tone-positive { color: #067647; }
.fos-sc-card-value.tone-warning { color: #b54708; }
.fos-sc-card-value.tone-danger { color: #b42318; }
.fos-sc-card-value.tone-muted { color: #667085; }

.fos-sc-card-hint {
    font-size: 0.72rem;
    color: #98a2b3;
    text-align: right;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* Barra de progresso (taxa de realização / SLA) */
.fos-sc-bar {
    height: 7px;
    border-radius: 5px;
    background: #eceef3;
    overflow: hidden;
}

.fos-sc-bar > span {
    display: block;
    height: 100%;
    border-radius: 5px;
    background: #173192;
    transition: width 0.3s ease;
}

.fos-sc-bar.tone-positive > span { background: #12b76a; }
.fos-sc-bar.tone-warning > span { background: #f79009; }
.fos-sc-bar.tone-danger > span { background: #f04438; }

/* Breakdown por status — lista com contagem à direita */
.fos-sc-breakdown {
    background: #fff;
    border: 1px solid #e7e9f0;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.fos-sc-breakdown-row {
    display: grid;
    grid-template-columns: 150px 1fr 64px;
    align-items: center;
    grid-gap: 12px;
    gap: 12px;
    padding: 6px 0;
}

.fos-sc-breakdown-row + .fos-sc-breakdown-row {
    border-top: 1px solid #f2f4f7;
}

.fos-sc-breakdown-label {
    font-size: 0.82rem;
    color: #344054;
    font-weight: 500;
}

.fos-sc-breakdown-track {
    height: 8px;
    border-radius: 5px;
    background: #f2f4f7;
    overflow: hidden;
}

.fos-sc-breakdown-track > span {
    display: block;
    height: 100%;
    border-radius: 5px;
    background: #3538cd;
}

.fos-sc-breakdown-count {
    text-align: right;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1f2937;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

