/* Rectangle */
.barTop {
  width: 1px;
  left: calc(50% - 1px / 2 + 529.5px);
  top: 0%;
  bottom: -1974.51%;
  /* Contornos */
  background: #cccccf;
  opacity: 0.5;
  /* Contornos */
  border: 1px solid #cccccf;
  box-sizing: border-box;
  transform: rotate(90deg);
}

.descriptionDiv {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  margin: 1rem 0.5rem 1rem 0.5rem;
  background-color: #ffff;
  box-shadow: 4px 4px 18px rgba(58, 79, 135, 0.06);
  border-radius: 8px;
  padding-left: 0.8rem;
}

.descriptionDiv.default {
  justify-content: flex-start;
}

.descriptionDiv .dleft {
  display: flex;
  cursor: pointer;
  min-height: 50px;
  align-items: center;
}

    .descriptionDiv .dleft .order {
        color: var(--text-light);        
        padding:0 1rem 0 0;
        opacity: .7;
    }

    .descriptionDiv .right {
        display: none;
    }

.descriptionDiv:hover {
  justify-content: space-between;
}

.descriptionDiv:hover .dleft {
  color: #0580CE;
}

.descriptionDiv:hover .right {
  display: flex;
}

.makeStyles-contentsWithoutHeader {
  padding-top: 15px;
}

.titulos {
  font-family: "Ubuntu", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 160%;
  color: var(--text-default);
  flex: none;
  order: 0;
  flex-grow: 0;
  height: 26px;
  position: static;
  left: 0px;
  top: 0px;
  margin: 10px 0px;
}
/* ============================================================
   FinOps Recommendations — redesign (cards + RevoGrid per cat.)
   ============================================================ */

/* ── Shells / cards do LCDashboard ───────────────────────── */
.lcdashboard .card-frame.fr-summary-shell,
.lcdashboard .card-frame.fr-list-shell {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    justify-content: stretch !important;
    height: 100%;
    min-height: 0;
    overflow: visible;
}

.lcdashboard .card-frame.fr-summary-shell:hover,
.lcdashboard .card-frame.fr-list-shell:hover {
    box-shadow: none !important;
}

/* Neutralizar limites de altura impostos pelo LCDashboard */
.lcdashboard .card-frame.fr-summary-shell .card-content-body,
.lcdashboard .card-frame.fr-list-shell .card-content-body {
    max-height: 100% !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    justify-content: stretch !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.lcdashboard .card-frame.fr-summary-shell .card-content-body {
    overflow: visible;
}

.lcdashboard .card-frame.fr-list-shell .card-content-body {
    overflow: hidden;
}

.lcdashboard .card-frame.fr-summary-shell .card-content-body-content,
.lcdashboard .card-frame.fr-list-shell .card-content-body-content {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow: visible !important;
}

.lcdashboard .card-frame.fr-summary-shell .card-content-body-content > *,
.lcdashboard .card-frame.fr-list-shell .card-content-body-content > * {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
}

/* Card de listagem: organiza filtro fixo + scroll interno */
.fr-list-card {
    display: flex !important;
    flex-direction: column;
    height: 100% !important;
    width: 100% !important;
    min-height: 0;
    background: #fff;
    background: var(--background-white, #fff);
    border: none;
    border-radius: 0.25rem;
    box-shadow: 4px 4px 18px 0px rgba(58, 79, 135, 0.06);
    overflow: hidden;
}

.fr-list-card > .lc-loading {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.fr-list-card > .lc-loading > * {
    flex: 1 1 auto;
    min-height: 0;
}

.fr-list-card > .fr-filterbar {
    border-bottom: 1px solid #EBEBEB;
    border-bottom: 1px solid var(--line-light, #EBEBEB);
    padding: 0.75rem 1rem;
    background: #fff;
    background: var(--background-white, #fff);
}

.fr-list-card > .fr-list-scroll,
.fr-list-card > .fr-list-empty {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* Esconde a contagem "0 item" da toolbar quando não há filtros ativos */
body.fr-hide-empty-filter-count .toolbar .right .gridfilter .size,
body.fr-hide-empty-filter-count .toolbar .right .gridfilter .size + span {
    display: none !important;
}

/* ────────────────────────────────────────────────────────────
   Summary cards (Custos / Segurança)
   ──────────────────────────────────────────────────────────── */
.fr-summary-card {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #fff;
    background: var(--background-white, #fff);
    border: none;
    border-radius: 0.25rem;
    padding: 0.35rem 0.85rem;
    cursor: pointer;
    box-shadow: 4px 4px 18px 0px rgba(58, 79, 135, 0.06);
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    font-family: "Ubuntu", sans-serif;
    text-align: left;
    color: inherit;
    appearance: none;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

.fr-summary-card:hover {
    box-shadow: 4px 4px 18px 0px rgba(58, 79, 135, 0.2);
}

.fr-summary-card--selected {
    box-shadow: 4px 4px 18px 0px rgba(58, 79, 135, 0.25);
}

.fr-summary-card--dimmed {
    opacity: 0.5;
}

.fr-summary-card--dimmed:hover {
    opacity: 0.8;
}

/* Seta (balão) abaixo do card selecionado — quadrado rotacionado 45° */
.fr-summary-card--selected::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: #fff;
    z-index: 2;
    pointer-events: none;
}

.fr-summary-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fr-summary-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FAFBFF;
    background: var(--background-lightest, #FAFBFF);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fr-summary-title-block {
    flex: 1 1;
    min-width: 0;
}

.fr-summary-title {
    font-family: "Ubuntu", sans-serif;
    font-size: clamp(10px, 1.6vh, 13px);
    font-weight: 300;
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    line-height: 1.1;
}

.fr-summary-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #CCCCCF;
    border: 2px solid var(--line-outline, #CCCCCF);
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.fr-summary-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 0.4rem;
    gap: 0.4rem;
    border-top: 1px solid #EBEBEB;
    border-top: 1px solid var(--line-light, #EBEBEB);
    padding-top: 0.25rem;
}

.fr-summary-kpi {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.fr-summary-kpi-label {
    font-size: clamp(8px, 1.1vh, 10px);
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fr-summary-kpi-value {
    font-size: clamp(12px, 1.9vh, 16px);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    line-height: 1;
    white-space: nowrap;
}

.fr-summary-kpi-value--purple { color: #8C40E3; color: var(--color-primary-purple, #8C40E3); }
.fr-summary-kpi-value--red { color: #DC291E; color: var(--status-red, #DC291E); }
.fr-summary-kpi-value--orange { color: #F59E0B; }
.fr-summary-kpi-value--yellow { color: #F5C518; }
.fr-summary-kpi-value--green { color: #34C38F; color: var(--color-secondary-green-light, #34C38F); }

.fr-summary-kpi-sub {
    font-size: clamp(8px, 1.1vh, 10px);
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    font-weight: 400;
    line-height: 1.1;
}

/* ────────────────────────────────────────────────────────────
   Ocultação progressiva dos elementos do header conforme a
   altura da viewport diminui (telas baixas / verticais curtas)
   ──────────────────────────────────────────────────────────── */
/* Em telas mais baixas, esconde as legendas auxiliares dos KPIs */
@media (max-height: 820px) {
    .fr-summary-kpi-sub {
        display: none;
    }
}

/* Ainda mais baixo: esconde o subtítulo descritivo do card */
@media (max-height: 720px) {
    .fr-summary-card .fr-cat-subtitle {
        display: none;
    }
}

/* Telas muito baixas: esconde também o ícone redondo do header */
@media (max-height: 620px) {
    .fr-summary-icon {
        display: none;
    }
}

/* ────────────────────────────────────────────────────────────
   FilterBar
   ──────────────────────────────────────────────────────────── */
.fr-filterbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    height: 100%;
    padding: 0.5rem 0.25rem;
    font-family: "Ubuntu", sans-serif;
}

.fr-filterbar-search {
    flex: 1 1 240px;
    min-width: 200px;
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    background: var(--background-white, #fff);
    border: 1px solid #CCCCCF;
    border: 1px solid var(--line-outline, #CCCCCF);
    border-radius: 6px;
    padding: 0 0.5rem;
    height: 36px;
}

.fr-filterbar-search-icon {
    color: #898DA6;
    color: var(--icon-not-selected, #898DA6);
    margin-right: 6px;
    flex-shrink: 0;
}

.fr-filterbar-search input {
    flex: 1 1;
    border: none;
    outline: none;
    font-size: 13px;
    font-family: "Ubuntu", sans-serif;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    background: transparent;
    min-width: 0;
}

.fr-filterbar-search-clear {
    border: none;
    background: transparent;
    color: #898DA6;
    color: var(--icon-not-selected, #898DA6);
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
}

.fr-filterbar-select {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 120px;
}

.fr-filterbar-label {
    font-size: 10px;
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 500;
}

.fr-filterbar-select select {
    height: 30px;
    border: 1px solid #CCCCCF;
    border: 1px solid var(--line-outline, #CCCCCF);
    border-radius: 6px;
    padding: 0 0.5rem;
    font-size: 13px;
    font-family: "Ubuntu", sans-serif;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    background: #fff;
    background: var(--background-white, #fff);
    cursor: pointer;
    outline: none;
}

.fr-filterbar-select select:focus {
    border-color: #8C40E3;
    border-color: var(--color-primary-purple, #8C40E3);
}

.fr-filterbar-clear {
    height: 36px;
    align-self: flex-end;
    border: 1px solid #CCCCCF;
    border: 1px solid var(--line-outline, #CCCCCF);
    background: #fff;
    background: var(--background-white, #fff);
    color: #2E1956;
    color: var(--text-default, #2E1956);
    font-size: 12px;
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    padding: 0 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s ease;
}

.fr-filterbar-clear:hover {
    background: #FAFBFF;
    background: var(--background-lightest, #FAFBFF);
    border-color: #966CF3;
    border-color: var(--color-primary-purple-light, #966CF3);
}

/* ────────────────────────────────────────────────────────────
   Lista de categorias (CategoryCard)
   ──────────────────────────────────────────────────────────── */
.fr-list-scroll {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.fr-list-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fr-list-footer {
    text-align: center;
    font-size: 11px;
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    padding: 1rem 0;
}

.fr-cat-card {
    background: #fff;
    background: var(--background-white, #fff);
    border: 1px solid #EBEBEB;
    border: 1px solid var(--line-light, #EBEBEB);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    font-family: "Ubuntu", sans-serif;
}

.fr-cat-card:hover {
    border-color: #966CF3;
    border-color: var(--color-primary-purple-light, #966CF3);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.fr-cat-card--expanded {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.fr-cat-card--security {
    border-left: 3px solid #DC291E;
    border-left: 3px solid var(--status-red, #DC291E);
}

.fr-cat-header {
    width: 100%;
    display: grid;
    grid-template-columns: 48px 1fr auto 32px;
    align-items: center;
    grid-gap: 1rem;
    gap: 1rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: background 0.15s ease;
    background: transparent;
    border: none;
    text-align: left;
    color: inherit;
    font-family: inherit;
    box-sizing: border-box;
}

.fr-cat-header:hover {
    background: #FAFBFF;
    background: var(--background-lightest, #FAFBFF);
}

.fr-cat-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fr-cat-title-block {
    min-width: 0;
}

.fr-cat-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fr-cat-title {
    font-size: 14px;
    font-weight: 600;
    color: #2E1956;
    color: var(--text-default, #2E1956);
}

.fr-cat-badge {
    background: #FAFBFF;
    background: var(--background-lightest, #FAFBFF);
    color: #8C40E3;
    color: var(--color-primary-purple, #8C40E3);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #EBEBEB;
    border: 1px solid var(--line-light, #EBEBEB);
    min-width: 24px;
    text-align: center;
}

.fr-cat-subtitle {
    font-size: clamp(9px, 1.3vh, 11px);
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    margin-top: 1px;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.fr-cat-metrics {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.fr-cat-metric {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 90px;
    text-align: right;
}

.fr-cat-metric-label {
    font-size: 10px;
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    font-weight: 400;
}

.fr-cat-metric-value {
    font-size: 13px;
    font-weight: 600;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.fr-cat-metric-value--purple { color: #8C40E3; color: var(--color-primary-purple, #8C40E3); }
.fr-cat-metric-value--red { color: #DC291E; color: var(--status-red, #DC291E); }

.fr-cat-metric-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #DC291E;
    background: var(--status-red, #DC291E);
    display: inline-block;
}

.fr-cat-toggle {
    color: #898DA6;
    color: var(--icon-not-selected, #898DA6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fr-cat-body {
    border-top: 1px solid #EBEBEB;
    border-top: 1px solid var(--line-light, #EBEBEB);
    padding: 0;
    background: #fff;
    background: var(--background-white, #fff);
}

/* ────────────────────────────────────────────────────────────
   RevoGrid theme (replicado do skill-livecloud-ui-pattern §7)
   ──────────────────────────────────────────────────────────── */
.fr-grid-wrapper {
    width: 100%;
    min-height: 180px;
    height: auto;
    max-height: 50vh;
    display: flex;
    flex-direction: column;
}

.fr-grid-wrapper revo-grid {
    flex: 1 1;
    min-height: 180px;
    height: 100%;
}

.fr-grid-wrapper revo-grid .rgRow {
    cursor: pointer;
    border-bottom: 1px solid #F1F3F8;
}

.fr-grid-wrapper revo-grid .rgCell .echarts-for-react,
.fr-grid-wrapper revo-grid .rgCell .echarts-for-react > div,
.fr-grid-wrapper revo-grid .rgCell canvas {
    max-height: 68px !important;
    height: 68px !important;
}

.fr-grid-wrapper revo-grid .rgRow:hover {
    background: #FAFBFD;
}

.fr-grid-wrapper revo-grid .header-rgRow,
.fr-grid-wrapper revo-grid .rgHeaderCell {
    background-color: #fff !important;
    border-bottom: solid 1px #E2E6F3 !important;
    border-bottom: solid 1px var(--line-default, #E2E6F3) !important;
    min-height: 30px;
}

.fr-grid-wrapper revo-grid .rgHeaderCell {
    font-family: "Ubuntu", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    text-transform: none;
    border: none !important;
    box-shadow: none !important;
    padding: 3px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.fr-grid-wrapper revo-grid .rgHeaderCell::before,
.fr-grid-wrapper revo-grid .rgHeaderCell::after,
.fr-grid-wrapper revo-grid .rgHeaderCell .resizable-r,
.fr-grid-wrapper revo-grid .header-rgRow .resizable-r,
.fr-grid-wrapper revo-grid .header-rgRow .resize-r {
    border: none !important;
    background: transparent !important;
}

.fr-grid-wrapper revo-grid revogr-header,
.fr-grid-wrapper revo-grid revogr-header .rgHeaderCell,
.fr-grid-wrapper revo-grid revogr-viewport-scroll.colPinStart revogr-header,
.fr-grid-wrapper revo-grid revogr-viewport-scroll.colPinStart revogr-header .rgHeaderCell,
.fr-grid-wrapper revo-grid revogr-viewport-scroll.colPinEnd revogr-header,
.fr-grid-wrapper revo-grid revogr-viewport-scroll.colPinEnd revogr-header .rgHeaderCell {
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
}

.fr-grid-wrapper revo-grid .rgHeaderCell:hover {
    color: #2E1956;
    color: var(--text-default, #2E1956);
    background-color: #FAFBFD !important;
}

.fr-grid-wrapper revo-grid .rgHeaderCell.sortable { cursor: pointer; }

.fr-grid-wrapper revo-grid .rgHeaderCell.sort-asc,
.fr-grid-wrapper revo-grid .rgHeaderCell.sort-desc {
    color: #2E1956;
    color: var(--text-default, #2E1956);
}

.fr-grid-wrapper revo-grid .rgHeaderCell .sort-icon,
.fr-grid-wrapper revo-grid .rgHeaderCell.sort-asc::after,
.fr-grid-wrapper revo-grid .rgHeaderCell.sort-desc::after {
    color: #471FCC;
    color: var(--color-primary-blue, #471FCC);
    font-size: 0.65rem;
}

.fr-grid-wrapper revo-grid .rgCell {
    font-family: "Ubuntu", sans-serif;
    font-size: 0.72rem;
    line-height: 1.3;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    padding: 6px 10px;
    border-right: none !important;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fr-grid-wrapper revo-grid .rgCell > * {
    width: 100%;
    min-width: 0;
}

.fr-grid-wrapper revo-grid .rgCell br + * {
    margin-top: 2px;
}

revo-grid .revo-cell--right {
    text-align: right;
    justify-content: flex-end;
}

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

/* ────────────────────────────────────────────────────────────
   Cell renderers
   ──────────────────────────────────────────────────────────── */
.fr-provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FAFBFF;
    background: var(--background-lightest, #FAFBFF);
    border: 1px solid #EBEBEB;
    border: 1px solid var(--line-light, #EBEBEB);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 500;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    white-space: nowrap;
}

.fr-provider-badge-label {
    font-size: 11px;
    line-height: 1;
}

.fr-resource-cell,
.fr-account-cell,
.fr-region-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.2;
}

.fr-resource-name,
.fr-account-name {
    font-size: 12px;
    font-weight: 500;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fr-resource-id,
.fr-account-id,
.fr-region-sub {
    font-size: 10px;
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Consolas', 'Monaco', monospace;
}

.fr-region-sub {
    font-family: "Ubuntu", sans-serif;
}

.fr-config-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
    font-size: 11px;
}

.fr-currency-cell {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    font-weight: 600;
    color: #8C40E3;
    color: var(--color-primary-purple, #8C40E3);
    white-space: nowrap;
}

.fr-percent-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.fr-percent-bar-track {
    flex: 1 1;
    height: 6px;
    background: #E2E6F3;
    background: var(--background-light, #E2E6F3);
    border-radius: 3px;
    overflow: hidden;
    min-width: 40px;
}

.fr-percent-bar-fill {
    height: 100%;
    background: #8C40E3;
    background: var(--color-primary-purple, #8C40E3);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.fr-percent-bar-label {
    font-size: 11px;
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    min-width: 28px;
    text-align: right;
}

/* Chips */
.fr-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid transparent;
}

.fr-status-new {
    background: rgba(140, 64, 227, 0.1);
    color: #8C40E3;
    color: var(--color-primary-purple, #8C40E3);
}

.fr-status-eligible {
    background: rgba(52, 195, 143, 0.12);
    color: #34C38F;
    color: var(--color-secondary-green-light, #34C38F);
}

.fr-status-progress {
    background: rgba(245, 197, 24, 0.15);
    color: #B07F00;
}

.fr-status-applied {
    background: rgba(71, 31, 204, 0.1);
    color: #471FCC;
    color: var(--color-primary-blue, #471FCC);
}

.fr-status-ignored {
    background: #EBEBEB;
    background: var(--background-neutral, #EBEBEB);
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
}

.fr-impact-critical {
    background: rgba(220, 41, 30, 0.12);
    color: #DC291E;
    color: var(--status-red, #DC291E);
    font-weight: 600;
}

.fr-impact-high {
    background: rgba(245, 158, 11, 0.15);
    color: #D97706;
}

.fr-impact-medium {
    background: rgba(245, 197, 24, 0.15);
    color: #B07F00;
}

.fr-impact-low {
    background: rgba(52, 195, 143, 0.12);
    color: #34C38F;
    color: var(--color-secondary-green-light, #34C38F);
}

.fr-exposure-public {
    background: rgba(220, 41, 30, 0.1);
    color: #DC291E;
    color: var(--status-red, #DC291E);
}

.fr-exposure-internal {
    background: #E2E6F3;
    background: var(--background-light, #E2E6F3);
    color: #2E1956;
    color: var(--text-default, #2E1956);
}

.fr-risk-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.fr-risk-critical { background: #DC291E; background: var(--status-red, #DC291E); }
.fr-risk-high { background: #F59E0B; }
.fr-risk-medium { background: #F5C518; color: #5A4500; }

/* Ações */
.fr-actions-cell {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.fr-action-btn {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #898DA6;
    color: var(--icon-not-selected, #898DA6);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background 0.15s ease;
}

.fr-action-btn:hover {
    color: #8C40E3;
    color: var(--color-primary-purple, #8C40E3);
    background: #FAFBFF;
    background: var(--background-lightest, #FAFBFF);
}

/* ====================================================================
   Tabs de categorias (CategoriesTabsView)
   ==================================================================== */
.fr-tabs-container {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #fff;
    background: var(--background-white, #fff);
    border: none;
    border-radius: 0.25rem;
    box-shadow: 4px 4px 18px 0px rgba(58, 79, 135, 0.06);
    font-family: "Ubuntu", sans-serif;
}

.fr-tabs-bar {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid #EBEBEB;
    border-bottom: 1px solid var(--line-light, #EBEBEB);
    background: #FAFBFF;
    background: var(--background-lightest, #FAFBFF);
    padding: 0.25rem 0.5rem 0 0.5rem;
    scrollbar-width: thin;
}

.fr-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    border: none;
    background: transparent;
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.fr-tab:hover {
    color: #2E1956;
    color: var(--text-default, #2E1956);
    background: rgba(140, 64, 227, 0.04);
}

.fr-tab--active {
    color: #8C40E3;
    color: var(--color-primary-purple, #8C40E3);
    border-bottom-color: #8C40E3;
    border-bottom-color: var(--color-primary-purple, #8C40E3);
    background: #fff;
    background: var(--background-white, #fff);
}

.fr-tab--security.fr-tab--active {
    color: #DC291E;
    color: var(--status-red, #DC291E);
    border-bottom-color: #DC291E;
    border-bottom-color: var(--status-red, #DC291E);
}

.fr-tab-icon {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}

.fr-tab-label {
    max-width: 22ch;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fr-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 16px;
    padding: 0 5px;
    border-radius: 8px;
    background: #E2E6F3;
    background: var(--background-light, #E2E6F3);
    color: #2E1956;
    color: var(--text-default, #2E1956);
    font-size: 9px;
    font-weight: 600;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.fr-tab--active .fr-tab-badge {
    background: #8C40E3;
    background: var(--color-primary-purple, #8C40E3);
    color: #fff;
}

.fr-tab--security.fr-tab--active .fr-tab-badge {
    background: #DC291E;
    background: var(--status-red, #DC291E);
}

/* Tab panel */
.fr-tab-panel {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 0;
    overflow: hidden;
}

.fr-tab-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.85rem;
    border-bottom: 1px solid #EBEBEB;
    border-bottom: 1px solid var(--line-light, #EBEBEB);
}

.fr-tab-panel-title-block {
    flex: 1 1;
    min-width: 0;
}

.fr-tab-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    line-height: 1.2;
}

.fr-tab-panel-subtitle {
    font-size: 10px;
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(90ch, 80vw);
    margin-top: 1px;
}

.fr-tab-panel-metrics {
    display: flex;
    gap: 0.9rem;
    flex-shrink: 0;
}

.fr-tab-panel-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.fr-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    font-size: 11px;
    font-weight: 600;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    background: #FAFBFF;
    background: var(--background-lightest, #FAFBFF);
    border: 1px solid #EBEBEB;
    border: 1px solid var(--line-light, #EBEBEB);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.fr-export-btn:hover:not(:disabled) {
    background: #8C40E3;
    background: var(--color-primary-purple, #8C40E3);
    border-color: #8C40E3;
    border-color: var(--color-primary-purple, #8C40E3);
    color: #fff;
}

.fr-export-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fr-export-btn svg {
    flex-shrink: 0;
}

.fr-tab-panel-body {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.75rem 0.75rem;
}

.fr-tab-panel-body .fr-grid-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    height: 100%;
}

.fr-tab-panel-body .fr-list-empty {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ====================================================================
   SideModal: detalhes da recomendação
   ==================================================================== */
.fr-grid-wrapper--clickable revo-grid .rgRow {
    cursor: pointer;
}


/* ============================================================ */
/* SideModal — detalhes da recomendação (estilo recdetail)       */
/* ============================================================ */

/* Header do SideModal */
.fr-rd-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.fr-rd-header-badge {
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.fr-rd-header-title-text {
    flex: 1 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.fr-rd-header-title {
    font-size: 15px;
    font-weight: 600;
    color: #2D3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fr-rd-header-resource {
    font-size: 11px;
    font-weight: 400;
    color: #718096;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Courier New', monospace;
}

.fr-rd-header-cc {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 8px;
    border-radius: 10px;
    background: rgba(140, 64, 227, 0.08);
    color: #6B2BC4;
    border: 1px solid rgba(140, 64, 227, 0.18);
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    margin-top: 2px;
    width: fit-content;
}

.fr-rd-header-cc--missing {
    background: rgba(230, 81, 0, 0.08);
    color: #C75A00;
    border-color: rgba(230, 81, 0, 0.22);
}

/* Card "Centro de Custo" no SideModal */
.fr-rd-section--cc .fr-rd-section-title::before {
    content: '🏷️ ';
    margin-right: 4px;
}

.fr-cc-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #2D3748;
}

.fr-cc-missing {
    color: #C75A00;
    font-style: italic;
    font-size: 12px;
}

.fr-cc-hint {
    font-size: 11px;
    color: #718096;
    font-style: italic;
    line-height: 1.4;
}

.fr-rd-nav-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.fr-rd-nav-count {
    font-size: 11px;
    color: #718096;
    margin-right: 4px;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.fr-rd-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    color: #2D3748;
    font-size: 14px;
    line-height: 1;
}

.fr-rd-nav-btn:hover:not(:disabled) {
    background: #EDF2F7;
}

.fr-rd-nav-btn:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

/* Corpo do SideModal */
.fr-rd-content {
    padding: 16px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: "Ubuntu", sans-serif;
}

.fr-rd-content--expanded {
    height: calc(100vh - 172px);
    overflow: hidden;
}

.fr-rd-content--expanded .fr-rd-grid {
    overflow: auto;
    align-content: start;
    padding-right: 4px;
}

/* Chips */
.fr-rd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.fr-rd-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #CBD5E0;
    color: #4A5568;
    background: #fff;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.fr-rd-chip--muted {
    border-color: #E2E8F0;
    color: #6B6F7D;
    font-weight: 500;
}

.fr-rd-chip--kpi {
    background: #fff;
    font-weight: 500;
}

.fr-rd-chip--kpi strong {
    font-weight: 700;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* Grid de seções */
.fr-rd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 8px;
    gap: 8px;
}

.fr-rd-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 12px 16px;
    min-width: 0;
}

.fr-rd-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    color: var(--text-primary, #333);
    margin: 0 0 8px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
    border-bottom: 1px solid var(--border-color, #eee);
}

/* Definition list */
.fr-rd-deflist {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 110px) minmax(0, 1fr);
    grid-column-gap: 10px;
    column-gap: 10px;
    grid-row-gap: 4px;
    row-gap: 4px;
    align-items: baseline;
}

.fr-rd-dt {
    color: #718096;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
    word-break: break-word;
}

.fr-rd-dd {
    color: #2D3748;
    font-size: 12px;
    margin: 0;
    word-break: break-word;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.fr-grid-wrapper--clickable revo-grid .rgRow {
    cursor: pointer;
}

/* ============================================================ */
/* RightsizingInstancesDetail — instâncias subutilizadas        */
/* ============================================================ */

.fr-ri-content {
    padding: 16px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: "Ubuntu", sans-serif;
}

.fr-ri-content--expanded {
    height: calc(100vh - 172px);
    overflow-y: auto;
}

/* ─── AI Summary card (Resumo executivo + Ação recomendada) ─── */
.fr-ai-summary-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: "Ubuntu", sans-serif;
    min-width: 0;
}
/* Fullscreen: 3 colunas fixas, AI ocupa apenas 1 célula */
.fr-ri-content--expanded .fr-ri-sections,
.fr-rd-content--expanded .fr-rd-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.fr-ai-summary-block { min-width: 0; }
.fr-ai-summary-title {
    font-size: 13px;
    font-weight: 600;
    color: #2D3748;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 2px;
}
.fr-ai-summary-text {
    font-size: 12px;
    color: #4A5568;
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.fr-ai-summary-block--action .fr-ai-summary-text { color: #2F855A; }
.fr-ai-summary-mark {
    color: #8C40E3;
    margin-right: 4px;
    vertical-align: -2px;
    font-size: 14px;
}
.fr-ai-summary-spinner {
    color: #8C40E3;
    animation: frAiSpin 1s linear infinite;
    margin-right: 4px;
    vertical-align: -2px;
}
.fr-ai-summary-text--muted {
    color: #A0AEC0;
    font-style: italic;
}
@keyframes frAiSpin {
    to { transform: rotate(360deg); }
}

/* Hero KPI strip */
.fr-ri-hero-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 8px;
    gap: 8px;
}

.fr-ri-hero {
    background: #fff;
    border: 1px solid #e9ecef;
    border-top: 3px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
}

.fr-ri-hero-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #f0f0f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
}

.fr-ri-hero-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.fr-ri-hero-label {
    font-size: 11px;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.fr-ri-hero-value {
    font-size: 15px;
    font-weight: 700;
    color: #2D3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.fr-ri-hero-value small {
    font-size: 11px;
    font-weight: 400;
    color: #718096;
}

.fr-ri-hero-sub {
    font-size: 11px;
    color: #718096;
    font-weight: 400;
}

.fr-ri-hero-sub strong {
    color: #2D3748;
}

/* Sections grid */
.fr-ri-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 8px;
    gap: 8px;
}

/* Definition list (inside sections) */
.fr-ri-deflist {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.fr-ri-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 12px;
    min-width: 0;
}

.fr-ri-row:last-child {
    border-bottom: none;
}

.fr-ri-dt {
    color: #718096;
    font-weight: 500;
    flex-shrink: 0;
    font-size: 12px;
    margin: 0;
}

.fr-ri-dd {
    color: #2D3748;
    text-align: right;
    margin: 0;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 65%;
}

/* Copy button */
.fr-ri-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #A0AEC0;
    padding: 2px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.fr-ri-copy-btn:hover {
    color: #4A5568;
    background: #EDF2F7;
}

/* Info banner */
.fr-ri-info-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-top: 8px;
    background: #EBF8FF;
    border: 1px solid #BEE3F8;
    border-radius: 6px;
    color: #2B6CB0;
    font-size: 12px;
}

/* CPU bars */
.fr-ri-cpu-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 2px;
}

.fr-ri-cpu-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fr-ri-cpu-label {
    font-size: 11px;
    color: #718096;
    font-weight: 500;
    width: 72px;
    flex-shrink: 0;
}

.fr-ri-cpu-track {
    flex: 1 1;
    height: 14px;
    background: #E6E6E6;
    border-radius: 4px;
    overflow: hidden;
    min-width: 0;
}

.fr-ri-cpu-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.fr-ri-cpu-value {
    font-size: 12px;
    font-weight: 600;
    color: #2D3748;
    width: 48px;
    text-align: right;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* Advanced collapsible */
.fr-ri-advanced {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.fr-ri-advanced-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #4A5568;
    text-align: left;
}

.fr-ri-advanced-toggle:hover {
    background: #f7fafc;
}

.fr-ri-advanced-toggle > span {
    flex: 1 1;
}

.fr-ri-advanced-list {
    padding: 0 16px 12px 16px;
    border-top: 1px solid #e9ecef;
}

/* ============================================================ */
/* ReservedInstancesDetail — instâncias reservadas              */
/* ============================================================ */

/* CPU comparison table */
.fr-rsv-cpu-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 2px;
}

.fr-rsv-cpu-table th {
    text-align: left;
    font-weight: 600;
    color: #718096;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 6px 8px;
    border-bottom: 2px solid #e9ecef;
}

.fr-rsv-cpu-table td {
    padding: 7px 8px;
    color: #2D3748;
    border-bottom: 1px solid #f1f3f5;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.fr-rsv-cpu-table tbody tr:last-child td {
    border-bottom: none;
}

.fr-rsv-cpu-table td:first-child {
    color: #718096;
    font-weight: 500;
}

/* Outros dados técnicos — two-column grid */
.fr-rsv-tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 12px;
    gap: 12px;
}

/* Three-column wide variant (full-width row) */
.fr-rsv-tech-grid.fr-rsv-tech-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

/* Four-column variant (security variants) */
.fr-rsv-tech-grid.fr-rsv-tech-grid--4col {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

@media (max-width: 900px) {
    .fr-rsv-tech-grid.fr-rsv-tech-grid--wide {
        grid-template-columns: 1fr 1fr;
    }
    .fr-rsv-tech-grid.fr-rsv-tech-grid--4col {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Inactivity periods section ── */
.fr-inact-section {
    background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
    border: 1px solid #E9D5FF;
}

/* Inactivity periods grid */
.fr-inact-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 6px;
    gap: 6px;
    margin-top: 8px;
}

.fr-inact-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    padding: 6px 2px 8px;
}

.fr-inact-day {
    font-size: 11px;
    font-weight: 700;
    color: #553C9A;
    text-transform: capitalize;
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}

.fr-inact-pill {
    display: block;
    background: #8C40E3;
    color: #fff;
    font-size: 9.5px;
    font-weight: 600;
    padding: 3px 2px;
    border-radius: 4px;
    white-space: nowrap;
    text-align: center;
    width: 90%;
    box-sizing: border-box;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.fr-inact-empty {
    font-size: 11px;
    color: #A0AEC0;
    padding-top: 2px;
}

@media (max-width: 600px) {
    .fr-rsv-tech-grid {
        grid-template-columns: 1fr;
    }

    .fr-rsv-tech-grid.fr-rsv-tech-grid--wide {
        grid-template-columns: 1fr;
    }

    .fr-rsv-tech-grid.fr-rsv-tech-grid--4col {
        grid-template-columns: 1fr;
    }

    .fr-inact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.fr-rsv-tech-col {
    min-width: 0;
    overflow: hidden;
}

.fr-rsv-tech-col .fr-ri-dd {
    word-break: normal;
    overflow-wrap: break-word;
}

.fr-rsv-tech-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: #4A5568;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0 0 6px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #e9ecef;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fr-rsv-empty {
    font-size: 12px;
    color: #A0AEC0;
    font-style: italic;
    padding: 4px 0;
}

/* ── Security / insecure_security_groups styles ── */
.fr-ri-hero--filled {
    border: 1px solid;
    border-top-width: 3px;
    border-radius: 8px;
}

.fr-sec-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #E53E3E;
    border-radius: 10px;
    vertical-align: middle;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.fr-sec-badge--warn {
    background: #DD6B20;
}

.fr-sec-badge--high {
    background: #E53E3E;
}

.fr-ri-hero-sub {
    font-size: 11px;
    color: #718096;
    margin-top: 2px;
}

.fr-sec-scope-chip {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #2B6CB0;
    background: #EBF8FF;
    border: 1px solid #BEE3F8;
    border-radius: 6px;
}

.fr-sec-findings-col {
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    border-radius: 8px;
    padding: 10px 12px;
}

.fr-sec-findings-col .fr-rsv-tech-subtitle {
    border-bottom-color: #FED7D7;
}

.fr-sec-findings-col .fr-ri-dt {
    color: #9B2C2C;
}

.fr-sec-findings-col .fr-ri-dd {
    color: #2D3748;
}


/* ============================================================
   Compact scaling for small/medium screens (≤ 1366px)
   Reduz padding e fonte do grid para evitar scroll horizontal.
   ============================================================ */
@media (max-width: 1366px) {
    /* Grid — células e header mais compactos */
    .fr-grid-wrapper revo-grid .rgCell .echarts-for-react,
    .fr-grid-wrapper revo-grid .rgCell .echarts-for-react > div,
    .fr-grid-wrapper revo-grid .rgCell canvas { max-height: 56px !important; height: 56px !important; }
    .fr-grid-wrapper revo-grid .header-rgRow,
    .fr-grid-wrapper revo-grid .rgHeaderCell { min-height: 26px; }
    .fr-grid-wrapper revo-grid .rgHeaderCell { font-size: 0.65rem; padding: 2px 4px; }
    .fr-grid-wrapper revo-grid .rgCell { font-size: 0.68rem; line-height: 1.25; padding: 4px 5px; }

    /* Tabs — mais compactas */
    .fr-tab { padding: 0.35rem 0.55rem; font-size: 10px; gap: 0.3rem; }
    .fr-tab-icon { font-size: 13px; }
    .fr-tab-label { max-width: 16ch; }
    .fr-tab-badge { min-width: 16px; height: 14px; font-size: 8px; padding: 0 4px; border-radius: 7px; }

    /* Header do painel */
    .fr-tab-panel-header { padding: 0.4rem 0.65rem; }
    .fr-tab-panel-title { font-size: 12px; }
    .fr-tab-panel-subtitle { font-size: 9px; }

    /* Métricas */
    .fr-cat-metric { min-width: 70px; }
    .fr-cat-metric-label { font-size: 9px; }
    .fr-cat-metric-value { font-size: 12px; }
    .fr-tab-panel-metrics { gap: 0.6rem; }
}

/* ============================================================
   Responsive scaling for large screens (> 1366px wide)
   Aumenta densidade tipográfica em monitores maiores.
   ============================================================ */
@media (min-width: 1367px) {
    /* Summary cards (topo) */
    .fr-summary-card { padding: 0.85rem 1.1rem; gap: 0.6rem; min-height: 124px; }
    .fr-summary-icon { width: 40px; height: 40px; }
    .fr-summary-title { font-size: 16px; }
    .fr-summary-kpi-label { font-size: 11px; }
    .fr-summary-kpi-value { font-size: 20px; }
    .fr-summary-kpi-sub { font-size: 11px; }

    /* Tabs */
    .fr-tab { padding: 0.5rem 0.85rem; font-size: 12px; gap: 0.5rem; }
    .fr-tab-icon { font-size: 16px; }
    .fr-tab-badge { min-width: 20px; height: 18px; font-size: 10px; padding: 0 6px; }

    /* Header do painel */
    .fr-tab-panel-header { padding: 0.65rem 1rem; }
    .fr-tab-panel-title { font-size: 14px; }
    .fr-tab-panel-subtitle { font-size: 11px; }

    /* Métricas da categoria */
    .fr-cat-metric { min-width: 105px; }
    .fr-cat-metric-label { font-size: 11px; }
    .fr-cat-metric-value { font-size: 14px; }

    /* Grid */
    .fr-grid-wrapper revo-grid .rgCell .echarts-for-react,
    .fr-grid-wrapper revo-grid .rgCell .echarts-for-react > div,
    .fr-grid-wrapper revo-grid .rgCell canvas { max-height: 78px !important; height: 78px !important; }
    .fr-grid-wrapper revo-grid .header-rgRow,
    .fr-grid-wrapper revo-grid .rgHeaderCell { min-height: 34px; }
    .fr-grid-wrapper revo-grid .rgHeaderCell { font-size: 0.75rem; padding: 4px 10px; }
    .fr-grid-wrapper revo-grid .rgCell { font-size: 0.78rem; line-height: 1.35; padding: 8px 12px; }
}

/* Telas full HD+ (≥ 1600px) — escala adicional sutil */
@media (min-width: 1600px) {
    .fr-summary-card { min-height: 134px; padding: 1rem 1.25rem; gap: 0.75rem; }
    .fr-summary-icon { width: 44px; height: 44px; }
    .fr-summary-title { font-size: 17px; }
    .fr-summary-kpi-label { font-size: 12px; }
    .fr-summary-kpi-value { font-size: 22px; }
    .fr-summary-kpi-sub { font-size: 12px; }

    .fr-tab { padding: 0.6rem 1rem; font-size: 13px; }
    .fr-tab-icon { font-size: 17px; }
    .fr-tab-badge { font-size: 11px; height: 20px; min-width: 22px; }

    .fr-tab-panel-title { font-size: 15px; }
    .fr-tab-panel-subtitle { font-size: 12px; }

    .fr-cat-metric-label { font-size: 12px; }
    .fr-cat-metric-value { font-size: 15px; }

    .fr-grid-wrapper revo-grid .rgCell .echarts-for-react,
    .fr-grid-wrapper revo-grid .rgCell .echarts-for-react > div,
    .fr-grid-wrapper revo-grid .rgCell canvas { max-height: 88px !important; height: 88px !important; }
    .fr-grid-wrapper revo-grid .rgHeaderCell { font-size: 0.8rem; }
    .fr-grid-wrapper revo-grid .rgCell { font-size: 0.82rem; }

    .fr-summary-card--selected::after { bottom: -3px; }
}

.kpi-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 16px;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
}

.kpi-label {
    font-size: 0.875rem;
    color: #666;
    margin-top: 8px;
}

.status-cell {
    display: flex;
    align-items: center;
}

.detail-modal {
    padding: 16px;
}

.detail-modal p {
    margin: 8px 0;
}

.invoice-details {
    margin-top: 16px;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.invoice-details h4 {
    margin-bottom: 12px;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.invoice-item:last-child {
    border-bottom: none;
}

/* Animação de rotação para loading */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin-animation {
    animation: spin 1s linear infinite;
}

/* Animação de cursor piscando */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.cursor-blink {
    animation: blink 1s infinite;
}

/* Estilos para resultado da análise IA */
.ai-analysis-result {
    font-size: 14px;
}

.ai-analysis-result table {
    font-size: 13px;
}

.ai-analysis-result code {
    font-family: 'Consolas', 'Monaco', monospace;
}

.invoice-cost-analysis {
    height: 100%;
    width: 100%;
}

.invoice-cost-analysis .summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-gap: 12px;
    gap: 12px;
    margin-bottom: 16px;
    padding: 0 8px;
}

.invoice-cost-analysis .summary-card {
    background: #fff;
    background: var(--color-surface, #fff);
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border: 1px solid var(--color-border, #e0e0e0);
}

.invoice-cost-analysis .summary-card .label {
    font-size: 11px;
    color: #666;
    color: var(--color-text-secondary, #666);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.invoice-cost-analysis .summary-card .value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    color: var(--color-text-primary, #333);
}

.invoice-cost-analysis .summary-card .value.positive {
    color: #2e7d32;
    color: var(--color-success, #2e7d32);
}

.invoice-cost-analysis .summary-card .value.info {
    color: #1565c0;
    color: var(--color-info, #1565c0);
}

.invoice-cost-analysis .summary-card .sub-value {
    font-size: 11px;
    color: #888;
    color: var(--color-text-secondary, #888);
    margin-top: 2px;
}

.invoice-cost-analysis .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;
}

.invoice-cost-analysis .cell-currency {
    text-align: right;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

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

