.headerLog {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    min-width: 100%;
    max-width: 100%;
    border-bottom: 2px solid #e9ecf6;
    padding: 0px 5px;
    font-size: 0.75rem;
    color: #2E1956;
}

    .headerLog div {
        font-weight: bold;
        margin-bottom: .4rem;
    }

.bodyLog {
    margin-bottom: 12px;
}

    .bodyLog > .row {
        display: flex;
        font-size: 0.75rem;
        font-weight: 400;
        justify-content: space-between;
        padding: 0px 5px;
        border-radius: 4px;
        color: #2E1956;
    }

.headerLog > .resources {
    max-width: 50%;
    min-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.headerLog > .resources_focus {
    max-width: 25%;
    min-width: 25%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.headerLog > .eventTime_focus {
    max-width: 12.5%;
    min-width: 12.5%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bodyLog > .row:hover {
    background-color: #e9ecf6;
    border-radius: 4px;
}

.bodyLog > .row > .resources {
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 50%;
}

.bodyLog > .row > .resources_focus {
    max-width: 25%;
    min-width: 25%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bodyLog > .row > .eventTime_focus {
    max-width: 12.5%;
    min-width: 12.5%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.slide-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slide-item {
    animation: slideIn 0.5s ease-out;
    opacity: 1;
    transform: translateX(0);
}

.slide-item.sliding-out {
    animation: slideOut 0.5s ease-out;

}.slide-item.automation-content {
    display: flex;
    flex-direction: column;
    width: 100%;

}
.subtitle-dash.ellipsis.nextScheduleAutomation {
    color: #fff;
    display: flex;
    flex-direction: row;
    overflow: visible;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

.automation-content {
    transition: all 0.3s ease-out;
}
.alert-card-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 6px 10px;
    background-color: #fff;
}

.alert-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.alert-card-title {
    font-family: "Ubuntu", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #5a6c7d;
    margin: 0;
    line-height: 1;
}

.alert-card-icon {
    font-size: 12px;
    color: #7a8a9a;
    cursor: pointer;
}

.alert-card-body {
    display: flex;
    justify-content: space-between;
    flex: 1 1;
    gap: 12px;
}

.alert-periods {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 85px;
}

.alert-period-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.period-label {
    font-family: "Ubuntu", sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #8a9bab;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.period-value {
    font-family: "Ubuntu", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #3d5a73;
    line-height: 1.3;
}

/* .alert-variation {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-around;
    flex: 1;
    gap: 2px;
} */

.variation-header {
    font-family: "Ubuntu", sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0;
    line-height: 1;
}

.variation-percentage {
    font-family: "Ubuntu", sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #e85454;
    line-height: 1.1;
}

.variation-amount {
    font-family: "Ubuntu", sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #8a9bab;
    line-height: 1.2;
}

.variation-chart {
    width: 100%;
    height: 45px;
    min-height: 45px;
}

.alert-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 2px;
    padding-top: 4px;
    border-top: 1px solid #f0f2f5;
}

.alert-description {
  font-family: "Ubuntu", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #8a9bab;
  letter-spacing: -0.02em;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}


/* Media query para resoluções maiores (1920px) */
@media screen and (min-width: 1920px) {
    .alert-card-title {
        font-size: 16px;
    }

    .alert-card-icon {
        font-size: 14px;
    }

    .period-label {
        font-size: 12px;
    }

    .period-value {
        font-size: 14px;
    }

    .variation-header {
        font-size: 12px;
    }

    .variation-percentage {
        font-size: 20px;
    }
 

    .alert-description {
        font-size: 0.875rem;
        /* 14px */
    }
}

/* Layout compacto para a coluna de variação */
.alert-variation.compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;              /* tira espaços verticais */
  margin: 0;
  min-height: 24px;        /* garante faixa baixinha */
}

/* Bloco de texto (percentual + valor) em uma única linha */
.alert-variation .variation-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.05;
  white-space: nowrap;     /* evita quebrar em duas linhas */
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums; /* números com largura uniforme */
}

/* Percentual levemente maior que o valor absoluto */
.alert-variation .variation-meta .var-pct {
  font-size: 0.95rem;
  font-weight: 600;
}
.alert-variation .variation-meta .var-amt {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Separador discreto */
.alert-variation .variation-meta .dot {
  opacity: 0.5;
}

/* Cores por sinal (ajuste se inverter cores na sua convenção) */
.alert-variation .variation-meta.up .var-pct,
.alert-variation .variation-meta.up .var-amt {
  color: #d94141; /* positivo = vermelho (custos subiram) */
}
.alert-variation .variation-meta.down .var-pct,
.alert-variation .variation-meta.down .var-amt {
  color: #1b8f5a; /* negativo = verde (custos caíram) */
}

/* Área do sparkline bem compacta */
.alert-variation .variation-chart {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

/* (Opcional) Deixa a descrição em uma linha com elipse */
.alert-card-footer .alert-description {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-variation {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1;
  align-items: flex-end;
  justify-content: flex-start;
}

.variation-header {
  display: flex;
  align-items: baseline; /* % grande + valor pequeno alinhados */
  gap: 8px;
  line-height: 1;        /* compacto */
}

.variation-percentage {
  font-size: calc(2.8vh);
  font-weight: 400;
}

.variation-amount {
  font-size: 0.625rem;
  color: #7a8a9a;
}

.variation-chart {
  width: 100%;
  height: 45px;
  min-height: 45px;
  flex: 1 1;
}

.var-up { color: #ff4444; }   /* positivos = vermelho */
.var-down { color: #17a84b; } /* negativos = verde   */

/* Estilos para modo Home - base responsiva */
.alert-card-container.is-home {
    padding: calc(4px + 0.3vw) calc(6px + 0.4vw);
}

.alert-card-container.is-home .alert-card-body {
    flex-direction: column;
    gap: calc(4px + 0.3vw);
}

.alert-card-container.is-home .alert-periods {
    flex-direction: row;
    justify-content: space-between;
    min-width: 100%;
    gap: calc(6px + 0.5vw);
}

.alert-card-container.is-home .period-container {
    flex: 1 1;
}

.alert-card-container.is-home .period-label {
    font-size: calc(7px + 0.15vw);
}

.alert-card-container.is-home .period-value {
    font-size: calc(8px + 0.15vw);
}

.alert-card-container.is-home .alert-variation {
    width: 100%;
    align-items: stretch;
}

.alert-card-container.is-home .variation-percentage {
    text-align: center;
    font-size: calc(16px + 1vw);
}

.alert-card-container.is-home .variation-chart {
    height: calc(40px + 3vw);
    min-height: 40px;
}

.alert-card-container.is-home .alert-card-footer {
    padding-top: calc(2px + 0.2vw);
    margin-top: calc(2px + 0.2vw);
}

.alert-card-container.is-home .footer-subtitle {
    font-size: calc(7px + 0.1vw);
}

/* Home - ocultar chart em telas com altura menor que 700px */
@media (max-height: 700px) {
    .alert-card-container.is-home .variation-chart {
        display: none;
    }
}

/* Home - telas 900px+ */
@media (min-width: 900px) {
    .alert-card-container.is-home {
        padding: 8px 12px;
    }

    .alert-card-container.is-home .alert-card-body {
        gap: 8px;
    }

    .alert-card-container.is-home .alert-periods {
        gap: 12px;
    }

    .alert-card-container.is-home .period-label {
        font-size: 9px;
    }

    .alert-card-container.is-home .period-value {
        font-size: 11px;
    }

    .alert-card-container.is-home .variation-percentage {
        font-size: 28px;
    }

    .alert-card-container.is-home .variation-chart {
        height: 80px;
        min-height: 80px;
    }

    .alert-card-container.is-home .alert-card-footer {
        padding-top: 4px;
        margin-top: 4px;
    }

    .alert-card-container.is-home .footer-subtitle {
        font-size: 9px;
    }
}
/* CMS Operations Dashboard — corpo em abas (LcCategoryTabs) dentro do LCDashboard 12-row */

/* Grid de painéis dentro do corpo da aba */
.cmsops-tab-grid {
    display: grid;
    grid-gap: 14px;
    gap: 14px;
    grid-template-columns: 1fr 1.6fr;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: auto;
    padding: 2px;
}

.cmsops-tab-grid--three {
    grid-template-columns: 1.3fr 0.9fr 1.3fr;
}

@media (max-width: 1200px) {

    .cmsops-tab-grid,
    .cmsops-tab-grid--three {
        grid-template-columns: 1fr;
    }
}

/* Embed da seção Recursos (operations/EstateList) no body */
.cmsops-resources-embed {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cmsops-resources-embed .ops-est {
    padding: 0;
}

/* Embed da seção Serviços (operations/ServiceCatalog) no body */
.cmsops-services-embed {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: auto;
}

.cmsops-services-embed .ops-svc {
    padding: 0;
}

.cmsops-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #E8E5F1;
    border: 1px solid var(--border-color, #E8E5F1);
    background: #fff;
    min-height: 0;
}

.cmsops-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cmsops-panel__head h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #2E1956;
    color: var(--text-default, #2E1956);
}

.cmsops-panel__meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.74rem;
    color: #8684A8;
    color: var(--text-light, #8684A8);
}

.cmsops-panel__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 600;
    color: #471FCC;
    color: var(--color-primary-blue, #471FCC);
}

.cmsops-panel__link:hover {
    text-decoration: underline;
}

/* ── Multicloud Estate ── */
.cmsops-estate {
    display: flex;
    flex-direction: column;
}

.cmsops-estate__head,
.cmsops-estate__row {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr 1fr;
    align-items: center;
    grid-gap: 8px;
    gap: 8px;
    padding: 8px 4px;
}

.cmsops-estate__head {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #8684A8;
    color: var(--text-light, #8684A8);
    font-weight: 700;
    border-bottom: 1px solid #EFEDF6;
    border-bottom: 1px solid var(--border-color, #EFEDF6);
}

.cmsops-estate__row {
    border-bottom: 1px solid #F2F0F8;
    border-bottom: 1px solid var(--border-color, #F2F0F8);
    font-size: 0.82rem;
    color: #2E1956;
    color: var(--text-default, #2E1956);
}

.cmsops-estate__row:last-child {
    border-bottom: 0;
}

.cmsops-estate__prov {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}

.cmsops-estate__res {
    font-weight: 600;
}

.cmsops-estate__health {
    font-size: 0.74rem;
    font-weight: 600;
}

.cmsops-estate__health--ok {
    color: #1B8A63;
}

.cmsops-estate__health--warn {
    color: #9A6E00;
}

.cmsops-estate__health--muted {
    color: #8684A8;
    color: var(--text-light, #8684A8);
}

/* ── Inventário preservado ── */
.cmsops-panel--inv .cmsops-inv {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 12px;
    gap: 12px;
}

@media (max-width: 900px) {
    .cmsops-panel--inv .cmsops-inv {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cmsops-inv__cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #EFEDF6;
    border: 1px solid var(--border-color, #EFEDF6);
    border-radius: 10px;
    padding: 10px;
    min-height: 120px;
}

.cmsops-inv__t {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6B6890;
    color: var(--text-light, #6B6890);
    text-transform: uppercase;
    letter-spacing: .02em;
}

/* Próximo agendamento: mantém o fundo branco da célula do inventário e aplica
   o mesmo estilo claro (texto escuro) usado no card da página de Automações.
   O componente NextScheduleAutomation fixa cor branca inline, então sobrescrevemos. */
.cmsops-inv__cell .subtitle-dash.ellipsis.nextScheduleAutomation {
    color: #2E1956;
    color: var(--text-default, #2E1956);
    padding: 10px 12px;
}

.cmsops-inv__cell .automation-resource {
    color: #2E1956 !important;
    color: var(--text-default, #2E1956) !important;
}

.cmsops-inv__cell .automation-name {
    color: #8B90A3 !important;
    color: var(--text-light, #8B90A3) !important;
}

.cmsops-inv__cell .automation-schedule {
    color: #2E1956 !important;
    color: var(--text-default, #2E1956) !important;
}

/* ── Listas (incidentes / pendências) ── */
.cmsops-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.cmsops-list__row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 2px;
    border-top: 1px solid #F2F0F8;
    border-top: 1px solid var(--border-color, #F2F0F8);
}

.cmsops-list__row:first-child {
    border-top: 0;
}

.cmsops-sev {
    flex-shrink: 0;
    width: 4px;
    height: 30px;
    border-radius: 3px;
    background: #8684A8;
    background: var(--text-light, #8684A8);
}

.cmsops-sev--crit {
    background: #DC291E;
    background: var(--status-red, #DC291E);
}

.cmsops-sev--high {
    background: #E2591E;
}

.cmsops-sev--med {
    background: #E2A100;
}

.cmsops-sev--low {
    background: #3b82f6;
}

.cmsops-sev--info {
    background: #8684A8;
    background: var(--text-light, #8684A8);
}

.cmsops-list__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1;
}

.cmsops-list__title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cmsops-list__sub {
    font-size: 0.72rem;
    color: #8684A8;
    color: var(--text-light, #8684A8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cmsops-list__at {
    font-size: 0.72rem;
    color: #8684A8;
    color: var(--text-light, #8684A8);
    white-space: nowrap;
    flex-shrink: 0;
}

.cmsops-badge {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    flex-shrink: 0;
}

.cmsops-badge--warn {
    background: color-mix(in srgb, #E2A100 16%, #fff);
    color: #9A6E00;
}

/* ── Gauge de automação ── */
.cmsops-panel--gauge {
    align-items: center;
}

.cmsops-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.cmsops-gauge__ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(#34C38F calc(var(--pct) * 1%), #F1EFF8 0);
    background: conic-gradient(var(--color-secondary-green-light, #34C38F) calc(var(--pct) * 1%), var(--background-neutral, #F1EFF8) 0);
}

.cmsops-gauge__ring::after {
    content: '';
    position: absolute;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: #fff;
}

.cmsops-gauge__pct {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2E1956;
    color: var(--text-default, #2E1956);
}

.cmsops-gauge__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    justify-content: center;
    font-size: 0.76rem;
    color: #6B6890;
    color: var(--text-light, #6B6890);
}

.cmsops-gauge__legend strong {
    color: #2E1956;
    color: var(--text-default, #2E1956);
}

/* ── Feed de auditoria ── */
.cmsops-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.cmsops-feed__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 2px;
    border-top: 1px solid #F2F0F8;
    border-top: 1px solid var(--border-color, #F2F0F8);
}

.cmsops-feed__row:first-child {
    border-top: 0;
}

.cmsops-feed__row--error .cmsops-feed__action {
    color: #DC291E;
    color: var(--status-red, #DC291E);
}

.cmsops-feed__prov {
    flex-shrink: 0;
    width: 24px;
    display: inline-flex;
    justify-content: center;
}

.cmsops-feed__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1;
}

.cmsops-feed__action {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cmsops-feed__res {
    font-size: 0.72rem;
    color: #8684A8;
    color: var(--text-light, #8684A8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cmsops-feed__at {
    font-size: 0.72rem;
    color: #8684A8;
    color: var(--text-light, #8684A8);
    white-space: nowrap;
    flex-shrink: 0;
}

.cmsops-activity-embed {
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.cmsops-alert-embed {
    min-height: 0;
}

.cmsops-auto-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cmsops-auto-schedule {
    width: 100%;
    border: 1px solid #E8E5F1;
    border: 1px solid var(--border-color, #E8E5F1);
    border-radius: 10px;
    overflow: hidden;
    background: #6c3ec6;
    background: var(--color-primary-purple, #6c3ec6);
}

.cmsops-auto-schedule .card-big-number {
    height: auto;
    min-height: 104px;
    margin: 0;
}

.cmsops-auto-schedule .subtitle-dash.ellipsis.nextScheduleAutomation {
    padding: 10px 12px;
}

.cmsops-list--demands .cmsops-list__row {
    align-items: flex-start;
}

.cmsops-demand__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1;
}

.cmsops-demand__title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cmsops-demand__sub {
    font-size: 0.72rem;
    color: #8684A8;
    color: var(--text-light, #8684A8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cmsops-demand__status {
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
}
/* ── Aba Recursos (CMS) — inventário multicloud no padrão LiveCloud ───────── */
.cmsres {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 2px;
}

/* Toolbar: contexto à esquerda, ações à direita */
.cmsres__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Chips de contexto (provedor/conta/busca selecionados) */
.cmsres__context {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cmsres__context-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: 14px;
    background: rgba(140, 64, 227, .12);
    border: 1px solid rgba(140, 64, 227, .4);
    color: #fff;
    color: var(--text-primary, #fff);
    font-size: .76rem;
}

.cmsres__toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cmsres__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border: 1px solid var(--border-secondary, rgba(255, 255, 255, .12));
    border-radius: 16px;
    background: transparent;
    color: #9a9a9a;
    color: var(--text-secondary, #9a9a9a);
    font-size: .78rem;
    cursor: pointer;
    transition: all .15s ease;
}

.cmsres__btn:hover:not(:disabled),
.cmsres__btn.is-active {
    border-color: #8C40E3;
    color: #fff;
    color: var(--text-primary, #fff);
}

.cmsres__btn.is-active {
    background: rgba(140, 64, 227, .14);
}

.cmsres__btn:disabled {
    opacity: .5;
    cursor: default;
}

.cmsres__btn .is-spinning {
    animation: cmsres-spin 1s linear infinite;
}

@keyframes cmsres-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Grid */
.cmsres__grid-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.cmsres__grid-wrapper revo-grid {
    flex: 1 1 auto;
    min-height: 0;
}

.cmsres__detail {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

/* Status pill nas células */
.cmsres-status {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
}

.cmsres-status--ok {
    color: #21A22E;
}

.cmsres-status--danger {
    color: #DC291E;
}

.cmsres-status--muted {
    color: #9a9a9a;
    color: var(--text-secondary, #9a9a9a);
}

revo-grid .revo-cell--right {
    justify-content: flex-end;
    text-align: right;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

revo-grid .revo-cell--center {
    justify-content: center;
    text-align: center;
}

/* ───────────────────────────────────────────────────────────────────────────
   CmsServicesTab — catálogo de serviços no padrão LCDashboard (cards + focus).

   O LCDashboard.isSubGrid usa, por default, flexbox (2 colunas) — o que quebra
   o FOCUS (que depende de CSS grid para expandir o card). Aqui restauramos o
   grid (com as positions row/col/Span) escopado a .cms-svc, mantendo o focus.
   ─────────────────────────────────────────────────────────────────────────── */

.cms-svc {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 0.5rem;
}

.cms-svc__board {
    flex: 1 1;
    min-height: 0;
    position: relative;
}

/* Restaura o comportamento de grid (sobrepõe o flex default do isSubGrid). */
.cms-svc .lcdashboard.isSubGrid {
    min-height: 100% !important;
    max-height: 100% !important;
    height: 100%;
    display: flex;
}

.cms-svc .lcdashboard.isSubGrid .lcdashboard-cards {
    flex: 1 1;
    min-height: 0;
}

.cms-svc .lcdashboard.isSubGrid .lcdashboard-cards .lcdashboard-cards-panel {
    display: block;
    height: 100%;
}

.cms-svc .lcdashboard.isSubGrid .lcdashboard-cards .lcdashboard-cards-panel .lcdashboard-cards-panel-body {
    display: grid !important;
    flex-wrap: nowrap;
    height: 100%;
    grid-gap: 0.75rem;
    gap: 0.75rem;
}

.cms-svc .lcdashboard.isSubGrid .lcdashboard-cards .lcdashboard-cards-panel .lcdashboard-cards-panel-body .card-frame {
    width: auto;
    flex: initial;
}

/* ── Card resumo (categoria) ────────────────────────────────────────────── */
.cms-svc-card__title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.cms-svc-card__ico {
    display: inline-flex;
    color: #6b48ff;
    color: var(--color-primary-blue, #6b48ff);
}

.cms-svc-card__summary {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.cms-svc-card__count {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.cms-svc-card__count strong {
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 700;
}

.cms-svc-card__count span {
    font-size: 0.72rem;
    opacity: 0.7;
}

.cms-svc-card__providers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cms-svc-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.4rem;
    border-radius: 0.4rem;
    background: rgba(0, 0, 0, 0.04);
    background: var(--background-lighter, rgba(0, 0, 0, 0.04));
    font-size: 0.72rem;
}

.cms-svc-card__chip b {
    font-weight: 600;
}

.cms-svc-card__open {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    align-self: flex-start;
    font-size: 0.74rem;
    font-weight: 600;
    color: #6b48ff;
    color: var(--color-primary-blue, #6b48ff);
}

/* ── Card focado (drilldown) ────────────────────────────────────────────── */
.cms-svc-card__detail {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: auto;
}

.cms-svc-card__detail .ops-svd {
    padding: 0;
}

/* ── Rodapé ─────────────────────────────────────────────────────────────── */
.cms-svc__foot {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: flex-start;
    padding: 0.3rem 0.1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b48ff;
    color: var(--color-primary-blue, #6b48ff);
}

.cms-svc__foot:hover {
    text-decoration: underline;
}

/* ── Layout base ──────────────────────────────────────────────────────── */
.lcdashboard.csp-billing-review .card-frame:hover {
    box-shadow: none;
}

/* ── Aviso de acesso restrito ─────────────────────────────────────────── */
.csp-billing-review .access-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    gap: 16px;
    color: #666;
    color: var(--color-text-secondary, #666);
}

.csp-billing-review .access-denied svg {
    font-size: 64px;
    color: #d32f2f;
    color: var(--color-danger, #d32f2f);
    opacity: 0.5;
}

.csp-billing-review .access-denied h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    color: var(--color-text-primary, #333);
}

.csp-billing-review .access-denied p {
    font-size: 13px;
    max-width: 400px;
    text-align: center;
}

/* ── Relatório não gerado ─────────────────────────────────────────────── */
.csp-billing-review .report-not-generated {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    gap: 8px;
    color: #666;
    color: var(--color-text-secondary, #666);
}

.csp-billing-review .report-not-generated h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    color: var(--color-text-primary, #333);
    margin: 0;
}

.csp-billing-review .report-not-generated p {
    font-size: 13px;
    max-width: 420px;
    text-align: center;
    margin: 0;
}

.csp-billing-review .generate-report-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    background: #1976d2;
    background: var(--color-primary, #1976d2);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.csp-billing-review .generate-report-btn:hover:not(:disabled) {
    background: #1565c0;
    background: var(--color-primary-dark, #1565c0);
}

.csp-billing-review .generate-report-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Cards de resumo (dentro de LCDashboard cards) ────────────────────── */
.lcdashboard.csp-billing-review .summary-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    height: 100%;
}

.lcdashboard.csp-billing-review .summary-card-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    color: var(--color-text-primary, #333);
}

.lcdashboard.csp-billing-review .summary-card-value.positive {
    color: #2e7d32;
    color: var(--color-success, #2e7d32);
}

.lcdashboard.csp-billing-review .summary-card-value.info {
    color: #1565c0;
    color: var(--color-info, #1565c0);
}

.lcdashboard.csp-billing-review .summary-card-value.warn {
    color: #e65100;
    color: var(--color-warning, #e65100);
}

.lcdashboard.csp-billing-review .summary-card-sub {
    font-size: 11px;
    color: #888;
    color: var(--color-text-secondary, #888);
}

/* ── Top Tab Bar (Reconciliação / Consumo Diário) ─────────────────────── */
.csp-billing-review .top-tab-bar {
    display: flex;
    gap: 0;
    padding: 0 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
    border-bottom: 2px solid var(--color-border, #e0e0e0);
}

.csp-billing-review .top-tab {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: #666;
    color: var(--color-text-secondary, #666);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
}

.csp-billing-review .top-tab:hover {
    color: #333;
    color: var(--color-text-primary, #333);
    background: #e3f2fd;
    background: var(--color-primary-light, #e3f2fd);
    border-radius: 6px 6px 0 0;
}

.csp-billing-review .top-tab.active {
    color: #1565c0;
    color: var(--color-primary, #1565c0);
    border-bottom-color: #1565c0;
    border-bottom-color: var(--color-primary, #1565c0);
    font-weight: 600;
}

/* ── Sub Tabs ─────────────────────────────────────────────────────────── */
.csp-billing-review .view-tabs {
    display: flex;
    gap: 4px;
    padding: 0 8px;
    margin-bottom: 12px;
}

.csp-billing-review .view-tab {
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    border: 1px solid var(--color-border, #e0e0e0);
    background: #fff;
    background: var(--color-surface, #fff);
    color: #666;
    color: var(--color-text-secondary, #666);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.csp-billing-review .view-tab:hover {
    background: #e3f2fd;
    background: var(--color-primary-light, #e3f2fd);
}

.csp-billing-review .view-tab.active {
    background: #1565c0;
    background: var(--color-primary, #1565c0);
    color: #fff;
    border-color: #1565c0;
    border-color: var(--color-primary, #1565c0);
}

/* ── Badges ───────────────────────────────────────────────────────────── */
.csp-billing-review .fonte-badge {
    display: inline-block;
    background: #e3f2fd;
    background: var(--color-primary-light, #e3f2fd);
    color: #1565c0;
    color: var(--color-primary, #1565c0);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.csp-billing-review .sip-badge {
    display: inline-block;
    background: #f5f5f5;
    background: var(--color-surface-variant, #f5f5f5);
    color: #333;
    color: var(--color-text-primary, #333);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.csp-billing-review .sip-badge-nf {
    background: #e8f5e9;
    color: #2e7d32;
}

.csp-billing-review .cell-muted {
    color: #bbb;
    color: var(--color-text-disabled, #bbb);
}

/* ── Células da tabela ────────────────────────────────────────────────── */
.csp-billing-review .cell-currency {
    text-align: right;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.csp-billing-review .cell-factor {
    text-align: right;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    color: #666;
    color: var(--color-text-secondary, #666);
}

.csp-billing-review .cell-percent {
    text-align: right;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.csp-billing-review .cell-percent.positive {
    color: #2e7d32;
    color: var(--color-success, #2e7d32);
}

.csp-billing-review .cell-percent.negative {
    color: #d32f2f;
    color: var(--color-danger, #d32f2f);
}

.csp-billing-review .cell-percent.zero {
    color: #999;
    color: var(--color-text-secondary, #999);
}

/* ── Destaque coluna Valor NF ─────────────────────────────────────────── */
.csp-billing-review .cell-nf-value {
    color: #2e7d32;
    color: var(--color-success, #2e7d32);
}

/* ── Indicador de cache ───────────────────────────────────────────────── */
.csp-billing-review .cache-info {
    margin-top: 2px;
    font-size: 10px;
    color: #aaa;
    color: var(--color-text-tertiary, #aaa);
    font-style: italic;
}

/* ── Step Monitor Overlay ─────────────────────────────────────────────── */
.step-monitor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.step-monitor-panel {
    background: #fff;
    background: var(--color-bg-primary, #fff);
    border-radius: 12px;
    padding: 32px;
    min-width: 420px;
    max-width: 520px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.step-monitor-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
    color: var(--color-text-primary, #333);
}

.step-monitor-subtitle {
    font-size: 13px;
    color: #888;
    color: var(--color-text-secondary, #888);
    margin: 0 0 24px 0;
}

.step-monitor-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-monitor-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f5f5f5;
    background: var(--color-bg-secondary, #f5f5f5);
    transition: all 0.3s ease;
}

.step-monitor-step.active {
    background: #e3f2fd;
    background: var(--color-info-bg, #e3f2fd);
    border-left: 3px solid #1976d2;
    border-left: 3px solid var(--color-info, #1976d2);
}

.step-monitor-step.success {
    background: #e8f5e9;
    background: var(--color-success-bg, #e8f5e9);
    border-left: 3px solid #2e7d32;
    border-left: 3px solid var(--color-success, #2e7d32);
}

.step-monitor-step.failed {
    background: #fce4ec;
    background: var(--color-danger-bg, #fce4ec);
    border-left: 3px solid #d32f2f;
    border-left: 3px solid var(--color-danger, #d32f2f);
}

.step-monitor-step.pending {
    opacity: 0.5;
}

.step-monitor-step .step-icon {
    font-size: 18px;
    min-width: 24px;
    text-align: center;
    line-height: 1.4;
}

.step-monitor-step .step-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-monitor-step .step-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    color: var(--color-text-primary, #333);
}

.step-monitor-step .step-detail {
    font-size: 11px;
    color: #888;
    color: var(--color-text-secondary, #888);
}

.step-monitor-step .step-error {
    color: #d32f2f;
    color: var(--color-danger, #d32f2f);
    font-weight: 500;
}

.step-monitor-step.active .step-icon {
    animation: pulse-spin 1.5s ease-in-out infinite;
}

@keyframes pulse-spin {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.step-monitor-close-btn {
    display: block;
    margin: 24px auto 0;
    padding: 10px 32px;
    border: none;
    border-radius: 6px;
    background: #1976d2;
    background: var(--color-primary, #1976d2);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.step-monitor-close-btn:hover {
    background: #1565c0;
    background: var(--color-primary-dark, #1565c0);
}

/* ── Row Detail Panel (detalhe contratos por customer) ────────────────── */

.row-detail-panel {
    border-top: 2px solid #1976d2;
    border-top: 2px solid var(--color-primary, #1976d2);
    background: #f8f9fb;
    background: var(--color-background-secondary, #f8f9fb);
    padding: 12px 16px;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to   { opacity: 1; max-height: 400px; }
}

.row-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.row-detail-title {
    font-size: 13px;
    color: #333;
    color: var(--color-text-primary, #333);
}

.row-detail-customer-id {
    font-size: 11px;
    color: #888;
    color: var(--color-text-secondary, #888);
    margin-left: 6px;
    font-weight: 400;
}

.row-detail-count {
    font-size: 11px;
    color: #888;
    color: var(--color-text-secondary, #888);
    background: #eee;
    background: var(--color-background-tertiary, #eee);
    padding: 2px 8px;
    border-radius: 10px;
}

.row-detail-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    color: #888;
    color: var(--color-text-secondary, #888);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}

.row-detail-close:hover {
    background: #ddd;
    background: var(--color-background-tertiary, #ddd);
    color: #333;
    color: var(--color-text-primary, #333);
}

.row-detail-empty {
    font-size: 12px;
    color: #999;
    color: var(--color-text-secondary, #999);
    padding: 8px 0;
    font-style: italic;
}

.row-detail-table-wrapper {
    overflow-x: auto;
    max-height: 220px;
    overflow-y: auto;
}

.row-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.row-detail-table thead th {
    position: sticky;
    top: 0;
    background: #eaedf1;
    background: var(--color-background-tertiary, #eaedf1);
    padding: 6px 10px;
    text-align: left;
    font-weight: 600;
    color: #555;
    color: var(--color-text-primary, #555);
    border-bottom: 1px solid #ddd;
    border-bottom: 1px solid var(--color-border, #ddd);
    white-space: nowrap;
}

.row-detail-table tbody td {
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
    border-bottom: 1px solid var(--color-border-light, #eee);
    color: #333;
    color: var(--color-text-primary, #333);
}

.row-detail-table tbody tr:hover {
    background: #f0f4ff;
    background: var(--color-background-hover, #f0f4ff);
}

.row-detail-tenant {
    font-size: 11px;
    color: #888;
    color: var(--color-text-secondary, #888);
    font-family: monospace;
}

.status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 1px 8px;
    border-radius: 10px;
}

.status-badge.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.inactive {
    background: #fce4ec;
    color: #c62828;
}

/* ── Modal: Contratos SIP ─────────────────────────────────────────────── */

.sip-contracts-modal {
    background: #fff;
    background: var(--color-background, #fff);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    width: 92vw;
    max-width: 1200px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

.sip-contracts-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #eee;
    border-bottom: 1px solid var(--color-border, #eee);
}

.sip-contracts-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
    color: var(--color-text-primary, #333);
}

.sip-contracts-count {
    font-size: 12px;
    color: #888;
    color: var(--color-text-secondary, #888);
    background: #eee;
    background: var(--color-background-tertiary, #eee);
    padding: 2px 10px;
    border-radius: 10px;
}

.sip-contracts-filter {
    padding: 8px 20px;
}

.sip-contracts-filter-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border: 1px solid var(--color-border, #ddd);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background: #f8f9fb;
    background: var(--color-background-secondary, #f8f9fb);
    color: #333;
    color: var(--color-text-primary, #333);
    transition: border-color 0.2s;
}

.sip-contracts-filter-input:focus {
    border-color: #1976d2;
    border-color: var(--color-primary, #1976d2);
}

.sip-contracts-filter-input::placeholder {
    color: #aaa;
    color: var(--color-text-secondary, #aaa);
}

.sip-contracts-table-wrapper {
    flex: 1 1;
    min-height: 0;
    padding: 0 4px 4px;
}

/* ── RevoGrid cell helpers (SIP contracts) ────────────────────────────── */

.sip-contracts-table-wrapper revo-grid {
    font-size: 12px;
}

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

.revo-cell-status-active {
    color: #2e7d32;
    font-weight: 500;
}

.revo-cell-status-inactive {
    color: #c62828;
    font-weight: 500;
}

/* ── Modal: Histórico 3 meses ─────────────────────────────────────────── */

.history-modal {
    height: auto;
    max-height: 80vh;
}

.history-table-wrapper {
    overflow-x: auto;
}

.history-table tbody td {
    vertical-align: middle;
}

.history-row-current {
    background: #e3f2fd !important;
    background: var(--color-info-bg, #e3f2fd) !important;
}

.history-current-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    background: #1976d2;
    background: var(--color-primary, #1976d2);
    color: #fff;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 6px;
    vertical-align: middle;
}

.history-variation {
    display: block;
    font-size: 10px;
    margin-top: 2px;
}

.history-variation.up {
    color: #d32f2f;
    color: var(--color-danger, #d32f2f);
}

.history-variation.down {
    color: #2e7d32;
    color: var(--color-success, #2e7d32);
}

.history-totals-row {
    background: #eaedf1;
    background: var(--color-background-tertiary, #eaedf1);
}

.history-totals-row td {
    border-top: 2px solid #ccc;
    border-top: 2px solid var(--color-border, #ccc);
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

