.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;
}

