.rbac-study-page {
    --rbac-ink: #17213c;
    --rbac-muted: #68728b;
    --rbac-line: #e5e9f2;
    --rbac-surface: #ffffff;
    --rbac-primary: #4f46c5;
    --rbac-primary-dark: #352d9b;
    color: var(--rbac-ink);
    padding: 4px 6px 32px;
}

.rbac-study-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
    padding: 30px 34px;
    margin-bottom: 18px;
    border-radius: 18px;
    color: #fff;
    background: radial-gradient(circle at 92% 8%, rgba(255, 255, 255, .2), transparent 32%), linear-gradient(118deg, #1c2b65 0%, #4f46c5 56%, #7665df 100%);
    box-shadow: 0 16px 38px rgba(38, 43, 112, .2);
}

.rbac-study-eyebrow,
.rbac-study-kicker {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rbac-study-eyebrow { color: #c9d2ff; margin-bottom: 9px; }
.rbac-study-hero h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.15; }
.rbac-study-hero p { max-width: 720px; margin: 0; color: #e0e5ff; font-size: 14px; line-height: 1.6; }
.rbac-study-hero-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 16px; flex-shrink: 0; }
.rbac-study-readonly-badge { color: #e1e6ff; font-size: 12px; }
.rbac-study-primary-button { border: 0; padding: 10px 16px; border-radius: 8px; color: #2d277a; background: #fff; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.rbac-study-primary-button:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0, 0, 0, .15); }

.rbac-study-alert { margin: 0 0 18px; padding: 13px 16px; border: 1px solid #f1c6c6; border-radius: 10px; color: #8e2d2d; background: #fff5f5; font-size: 13px; }
.rbac-study-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 13px; gap: 13px; margin-bottom: 20px; }
.rbac-study-summary-card { min-height: 105px; padding: 17px 18px; border: 1px solid var(--rbac-line); border-radius: 12px; background: var(--rbac-surface); box-shadow: 0 5px 16px rgba(39, 49, 90, .05); }
.rbac-study-summary-card span { display: block; color: var(--rbac-muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.rbac-study-summary-card strong { display: block; margin: 9px 0 5px; font-size: 20px; line-height: 1.15; }
.rbac-study-summary-card small { display: block; color: var(--rbac-muted); font-size: 12px; line-height: 1.45; }
.rbac-study-summary-card-accent { border-color: #e3dcff; background: linear-gradient(145deg, #faf9ff, #f1efff); }
.rbac-study-summary-card-accent strong { color: var(--rbac-primary); font-size: 17px; }

.rbac-study-section { margin-top: 20px; padding: 22px; border: 1px solid var(--rbac-line); border-radius: 14px; background: var(--rbac-surface); box-shadow: 0 5px 16px rgba(39, 49, 90, .04); }
.rbac-study-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 8px; }
.rbac-study-kicker { color: var(--rbac-primary); margin-bottom: 6px; }
.rbac-study-section h2 { margin: 0; font-size: 20px; }
.rbac-study-section-intro { max-width: 850px; margin: 0 0 18px; color: var(--rbac-muted); font-size: 13px; line-height: 1.55; }
.rbac-study-version, .rbac-study-count-badge, .rbac-study-inline-note { padding: 6px 10px; border-radius: 999px; color: #5145ae; background: #f0edff; font-size: 11px; font-weight: 800; white-space: nowrap; }
.rbac-study-inline-note { color: #8a6500; background: #fff4cb; }
.rbac-study-profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.rbac-study-profile-card { padding: 17px; border: 1px solid #e8eaf3; border-radius: 11px; background: #fcfcfe; }
.rbac-study-profile-card-topline, .rbac-study-gate-titleline { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rbac-study-profile-card h3, .rbac-study-gate h3 { margin: 0; font-size: 15px; }
.rbac-study-profile-card p { min-height: 40px; margin: 10px 0 13px; color: var(--rbac-muted); font-size: 12px; line-height: 1.5; }
.rbac-study-profile-card small, .rbac-study-gate small { display: block; margin-top: 13px; color: var(--rbac-muted); font-size: 11px; line-height: 1.45; }
.rbac-study-chip-list { display: flex; flex-wrap: wrap; gap: 5px; }
.rbac-study-chip-list span { padding: 4px 7px; border-radius: 5px; color: #424b6c; background: #edf0f8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.rbac-study-status { display: inline-block; padding: 4px 7px; border-radius: 5px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.rbac-study-status.proposed { color: #5f51ae; background: #eeeaff; }
.rbac-study-status.pending { color: #9a5b00; background: #fff0d0; }
.rbac-study-status.partial { color: #2b6f51; background: #e3f5e9; }

.rbac-study-table-wrap { overflow-x: auto; border: 1px solid var(--rbac-line); border-radius: 9px; }
.rbac-study-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 12px; }
.rbac-study-table th { padding: 11px 12px; color: #56617e; background: #f6f7fb; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.rbac-study-table td { padding: 12px; border-top: 1px solid #edf0f5; vertical-align: top; }
.rbac-study-table td strong, .rbac-study-table td span { display: block; }
.rbac-study-table td span { margin-top: 4px; color: var(--rbac-muted); line-height: 1.4; }
.rbac-study-table code { color: #403a99; font-size: 11px; white-space: nowrap; }
.numeric-cell { width: 40px; text-align: right !important; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.rbac-study-sensitivity { display: inline-block !important; margin-top: 0 !important; padding: 4px 7px; border-radius: 5px; font-size: 10px; font-weight: 800; }
.rbac-study-sensitivity.baixa { color: #277050; background: #e6f6ed; }
.rbac-study-sensitivity.media { color: #8a6200; background: #fff2d3; }
.rbac-study-sensitivity.alta { color: #a0442b; background: #ffebe5; }
.rbac-study-sensitivity.critica { color: #a02445; background: #ffe3eb; }
.rbac-study-coverage-table td { line-height: 1.4; }
.rbac-study-coverage-status { display: inline-block !important; width: max-content; margin-top: 0 !important; padding: 4px 7px; border-radius: 5px; font-size: 10px; font-weight: 800; }
.rbac-study-coverage-status.mapped { color: #277050; background: #e6f6ed; }
.rbac-study-coverage-status.partial { color: #8a6200; background: #fff2d3; }
.rbac-study-coverage-status.pending { color: #a0442b; background: #ffebe5; }

.rbac-study-gates { display: flex; flex-direction: column; gap: 8px; }
.rbac-study-gate { display: flex; gap: 14px; padding: 14px; border: 1px solid #edf0f5; border-radius: 10px; background: #fcfcfe; }
.rbac-study-priority { display: flex; justify-content: center; align-items: center; width: 34px; height: 25px; flex: 0 0 34px; border-radius: 6px; font-size: 11px; font-weight: 900; }
.rbac-study-priority.p0 { color: #a32643; background: #ffe4eb; }
.rbac-study-priority.p1 { color: #946000; background: #fff0ce; }
.rbac-study-priority.p2 { color: #4a5492; background: #ebedfb; }
.rbac-study-gate-body { flex: 1 1; }
.rbac-study-gate-body p { margin: 7px 0 0; color: var(--rbac-muted); font-size: 12px; line-height: 1.5; }

.rbac-study-rollout-section { background: linear-gradient(135deg, #fbfbff, #f7f9ff); }
.rbac-study-rollout-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 15px; gap: 15px; }
.rbac-study-rollout-grid > div { position: relative; padding: 4px 5px 2px 42px; }
.rbac-study-rollout-grid b { position: absolute; top: 0; left: 0; display: flex; justify-content: center; align-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--rbac-primary); font-size: 13px; }
.rbac-study-rollout-grid h3 { margin: 2px 0 6px; font-size: 14px; }
.rbac-study-rollout-grid p { margin: 0; color: var(--rbac-muted); font-size: 12px; line-height: 1.5; }
.rbac-study-footer-note { margin: 17px 3px 0; padding: 13px 16px; border-left: 3px solid #aaa0ef; color: #58627e; background: #f8f8fe; font-size: 12px; line-height: 1.6; }

@media (max-width: 1100px) {
    .rbac-study-summary-grid, .rbac-study-rollout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rbac-study-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .rbac-study-page { padding: 0 0 22px; }
    .rbac-study-hero { align-items: flex-start; flex-direction: column; padding: 23px 20px; }
    .rbac-study-hero-actions { align-items: flex-start; }
    .rbac-study-summary-grid, .rbac-study-profile-grid, .rbac-study-rollout-grid { grid-template-columns: 1fr; }
    .rbac-study-section { padding: 17px 13px; }
    .rbac-study-section-heading { align-items: flex-start; flex-direction: column; }
}

/* 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 body único da tela ──────────────────────────────── */
.lcdashboard .card-frame.fr-recommendations-body-shell {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    justify-content: stretch !important;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.lcdashboard .card-frame.fr-recommendations-body-shell:hover {
    box-shadow: none !important;
}

.lcdashboard .card-frame.fr-recommendations-body-shell .card-content-body,
.lcdashboard .card-frame.fr-recommendations-body-shell .card-content-body-content {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

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

.fr-recommendations-body {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #fff;
    background: var(--background-white, #fff);
    border-radius: 0.25rem;
    box-shadow: 4px 4px 18px 0px rgba(58, 79, 135, 0.06);
    overflow: hidden;
}

.fr-recommendations-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 0.75rem;
    gap: 0.75rem;
    flex: 0 0 auto;
    padding: 0.75rem 0.75rem 0;
    min-width: 0;
}

.fr-summary-card-host {
    display: flex;
    min-width: 0;
    height: clamp(112px, 16vh, 150px);
}

.fr-summary-card-host > .lc-loading,
.fr-summary-card-host > .lc-loading > * {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
}

.fr-recommendations-pool {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    margin-top: 0.75rem;
    border-top: 1px solid #EBEBEB;
    border-top: 1px solid var(--line-light, #EBEBEB);
    overflow: hidden;
}

.fr-recommendations-pool > .lc-loading,
.fr-recommendations-pool > .fr-category-pool-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 0;
}

.fr-recommendations-pool > .lc-loading > * {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    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-category-cards-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Body do pool: concentra a área rolável dos cards e mantém o dashboard
   interno desacoplado do shell da listagem. */
.fr-category-pool-body {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0.75rem;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

.fr-category-pool-body > .fr-category-cards-view {
    flex: 1 0 auto;
    min-width: 0;
    min-height: 100%;
}

.fr-category-pool-body > .fr-list-empty {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

/* Pool de cards com foco nativo do LCDashboard. O dashboard interno ocupa
   toda a área da lista; ao focar um card, o LCDashboard esconde os demais e
   expande o selecionado para a grade inteira. */
.fr-category-cards-view > .lcdashboard.fr-category-cards-dashboard {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
}

.fr-category-cards-dashboard .lcdashboard-cards,
.fr-category-cards-dashboard .lcdashboard-cards-panel,
.fr-category-cards-dashboard .lcdashboard-cards-panel-body {
    width: 100%;
    height: 100%;
    max-height: none !important;
}

.fr-category-cards-dashboard .lcdashboard-cards-panel-body {
    min-height: 0;
    overflow: hidden;
}

.fr-category-cards-dashboard .card-frame-header-content {
    min-width: 0;
    flex-wrap: nowrap;
}

.fr-category-cards-dashboard .card-frame-header-content .card-title {
    min-width: 0;
}

.fr-category-cards-dashboard .card-frame-header-content .block-icons {
    flex: 0 0 auto;
}

.fr-category-cards-dashboard .card-frame.fr-cat-dashboard-card {
    min-width: 0;
    min-height: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid #EBEBEB;
    border: 1px solid var(--line-light, #EBEBEB);
    border-left: 3px solid #8C40E3;
    border-left: 3px solid var(--color-primary-purple, #8C40E3);
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fr-category-cards-dashboard .card-frame.fr-cat-dashboard-card:hover {
    border-color: #966CF3;
    border-color: var(--color-primary-purple-light, #966CF3);
    box-shadow: 0 2px 12px rgba(46, 25, 86, 0.08);
}

.fr-category-cards-dashboard .card-frame.fr-cat-dashboard-card--security {
    border-left-color: #DC291E;
    border-left-color: var(--status-red, #DC291E);
}

.fr-category-cards-dashboard .card-frame.fr-cat-dashboard-card--security:hover {
    border-color: rgba(220, 41, 30, 0.5);
}

.fr-category-cards-dashboard .card-frame.fr-cat-dashboard-card--empty {
    opacity: 0.68;
}

.fr-category-cards-dashboard .fr-cat-dashboard-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    max-width: 100%;
}

.fr-category-cards-dashboard .fr-cat-dashboard-title-icon {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.fr-category-cards-dashboard .fr-cat-dashboard-title-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fr-category-cards-dashboard .fr-cat-dashboard-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 17px;
    padding: 0 5px;
    border: 1px solid #EBEBEB;
    border: 1px solid var(--line-light, #EBEBEB);
    border-radius: 9px;
    background: #FAFBFF;
    background: var(--background-lightest, #FAFBFF);
    color: #8C40E3;
    color: var(--color-primary-purple, #8C40E3);
    font-size: 10px;
    font-weight: 600;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    line-height: 1;
    flex: 0 0 auto;
}

.fr-category-cards-dashboard .card-frame.fr-cat-dashboard-card .card-content-body,
.fr-category-cards-dashboard .card-frame.fr-cat-dashboard-card .card-content-body-content {
    min-height: 0 !important;
    max-height: none !important;
    height: 100%;
    flex: 1 1 auto;
    width: 100%;
}

.fr-category-cards-dashboard .card-frame.fr-cat-dashboard-card .card-content-body {
    overflow: hidden;
}

.fr-category-cards-dashboard .card-frame.fr-cat-dashboard-card .card-content-body-content {
    display: flex;
    flex-direction: column;
}

.fr-cat-card-content,
.fr-cat-card-summary,
.fr-cat-card-focused-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.fr-cat-card-summary {
    justify-content: space-between;
    gap: 0.6rem;
}

.fr-cat-card-definition {
    min-height: 0;
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    font-size: 11px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fr-cat-card-metrics {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
}

.fr-cat-card-metrics .fr-cat-metric {
    min-width: 0;
}

.fr-cat-focus-action {
    align-self: flex-start;
    padding: 0.25rem 0.55rem;
    border: 1px solid #EBEBEB;
    border: 1px solid var(--line-light, #EBEBEB);
    border-radius: 5px;
    background: #FAFBFF;
    background: var(--background-lightest, #FAFBFF);
    color: #2E1956;
    color: var(--text-default, #2E1956);
    cursor: pointer;
    font-family: "Ubuntu", sans-serif;
    font-size: 10px;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fr-cat-focus-action:hover,
.fr-cat-focus-action:focus-visible {
    border-color: #8C40E3;
    border-color: var(--color-primary-purple, #8C40E3);
    background: rgba(140, 64, 227, 0.08);
    color: #8C40E3;
    color: var(--color-primary-purple, #8C40E3);
    outline: none;
}

.fr-cat-dashboard-card--security .fr-cat-focus-action:hover,
.fr-cat-dashboard-card--security .fr-cat-focus-action:focus-visible {
    border-color: #DC291E;
    border-color: var(--status-red, #DC291E);
    background: rgba(220, 41, 30, 0.08);
    color: #DC291E;
    color: var(--status-red, #DC291E);
}

.fr-cat-card-focused-content .fr-category-body-toolbar {
    flex: 0 0 auto;
    padding: 0.35rem 0;
    border-bottom: 1px solid #EBEBEB;
    border-bottom: 1px solid var(--line-light, #EBEBEB);
    background: transparent;
}

.fr-cat-card-focused-content .fr-grid-wrapper {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
}

.fr-cat-card-focused-content .fr-grid-wrapper revo-grid {
    height: 100%;
    min-height: 0;
}

.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-card--cost {
    border-left: 3px solid #8C40E3;
    border-left: 3px solid var(--color-primary-purple, #8C40E3);
}

.fr-cat-card--empty {
    opacity: 0.68;
}

.fr-cat-card--empty:hover {
    opacity: 0.9;
}

.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;
    overflow: hidden;
}

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

.fr-cat-title {
    font-size: 14px;
    font-weight: 600;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.fr-category-body-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid #EBEBEB;
    border-bottom: 1px solid var(--line-light, #EBEBEB);
    background: #FAFBFF;
    background: var(--background-lightest, #FAFBFF);
}

.fr-category-body-summary {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    min-width: 0;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    font-size: 12px;
}

.fr-category-body-summary strong {
    font-weight: 600;
    white-space: nowrap;
}

.fr-category-body-summary span {
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    font-size: 11px;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

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

.fr-cat-header:focus-visible {
    outline: 2px solid #8C40E3;
    outline: 2px solid var(--color-primary-purple, #8C40E3);
    outline-offset: -2px;
}

.fr-cat-card--security .fr-cat-header:focus-visible {
    outline-color: #DC291E;
    outline-color: var(--status-red, #DC291E);
}

/* ────────────────────────────────────────────────────────────
   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-shutdown-schedule {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    max-height: 40px;
    overflow: hidden;
    cursor: help;
}

.fr-shutdown-period {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
    line-height: 17px;
    white-space: nowrap;
}

.fr-shutdown-period > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.fr-shutdown-more {
    flex: 0 0 auto;
    padding: 0 5px;
    border-radius: 8px;
    background: #F1F3F8;
    background: var(--background-light, #F1F3F8);
    color: #471FCC;
    color: var(--color-primary-blue, #471FCC);
    font-size: 0.65rem;
    font-weight: 600;
}

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

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

