.hidden {
  display: none;
}
.lc-checklabelvaluelist > .list {
  height: 150px;
}

/* Group Details 360° — alinhado ao padrão visual UserDetail360 (u360) */

.gd360 {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    font-family: "Ubuntu", sans-serif;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    gap: 12px;
    container-type: inline-size;
    container-name: gd360;
}

/* ──────────────── Cabeçalho / identidade ──────────────── */
.gd360__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 4px 16px;
    border-bottom: 1px solid #ECEFF6;
    flex-wrap: wrap;
}

.gd360__title { display: flex; gap: 16px; align-items: center; min-width: 0; }

.gd360__avatar {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #8C40E3, #5A2EA6);
    color: #fff; font-size: 26px; flex-shrink: 0;
}

.gd360__title h2 {
    margin: 0; font-size: 19px; font-weight: 600; color: #2E1956;
    overflow-wrap: anywhere;
}

.gd360__subtitle { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

.gd360__pill {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 500;
    padding: 3px 10px; border-radius: 12px;
    background: #fff; border: 1px solid #d8deea; color: #5B6E9C;
}
.gd360__pill--soft { background: #F4F6FA; border-color: #ECEFF6; color: #6B6F86; }

/* Tons de risco (chip do cabeçalho) */
.gd360__risk.risk-low { background: #fff; border-color: #38A169; color: #237A43; }
.gd360__risk.risk-medium { background: #fff; border-color: #F5A623; color: #936300; }
.gd360__risk.risk-high { background: #fff; border-color: #E07B39; color: #B5531B; }
.gd360__risk.risk-critical { background: #fff; border-color: #C53030; color: #A6301F; }

.gd360__badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.gd360__badge {
    font-size: 11px; font-weight: 500;
    padding: 3px 10px; border-radius: 12px;
    background: #FFF8E6; color: #936300; border: 1px solid #F5E6C0;
}

/* ──────────────── Abas (fr-tab style) ──────────────── */
.gd360__tabs {
    display: flex; align-items: stretch; gap: 0;
    overflow-x: auto; overflow-y: hidden;
    border-bottom: 1px solid #EBEBEB;
    background: #FAFBFF;
    padding: 0 0.5rem;
    scrollbar-width: thin;
    flex-shrink: 0;
}
.gd360__tab {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.35rem 0.6rem;
    border: none; background: transparent;
    color: #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;
}
.gd360__tab svg { font-size: 14px; }
.gd360__tab:hover { color: #2E1956; background: rgba(140, 64, 227, 0.04); }
.gd360__tab--active {
    color: #8C40E3; border-bottom-color: #8C40E3; background: #fff;
}

/* ──────────────── Conteúdo ──────────────── */
.gd360__content {
    flex: 1 1; min-height: 0; overflow: auto;
    border-radius: 8px;
    padding: 12px;
}

.gd360__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-gap: 8px;
    gap: 8px;
    align-content: start;
}

/* ──────────────── Cards ──────────────── */
.gd360__card {
    border: 1px solid #e9ecef; border-radius: 8px; background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 12px 14px; display: flex; flex-direction: column; gap: 10px;
}
.gd360__cardtitle {
    margin: 0; font-size: 13px; font-weight: 600; color: #2E1956;
    padding-bottom: 6px; border-bottom: 1px solid #eee;
}
.gd360__cardbody { display: flex; flex-direction: column; gap: 6px; }

/* Linhas chave/valor */
.gd360__field {
    display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
    font-size: 12.5px; padding: 2px 0;
}
.gd360__fieldlabel { color: #718096; font-weight: 500; flex-shrink: 0; }
.gd360__fieldvalue {
    color: #2D3748; text-align: right;
    overflow-wrap: anywhere; word-break: break-word;
}
.gd360__fieldvalue.mono { font-family: "Roboto Mono", monospace; font-size: 11px; color: #5B6E9C; }
.gd360__statvalue { font-weight: 700; font-size: 15px; color: #2D3748; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.gd360__statvalue.warn { color: #A6301F; }
.gd360__muted { color: #8A8FA3; font-size: 12px; }

.gd360__toggle { font-size: 12.5px; color: #8A8FA3; font-weight: 500; }
.gd360__toggle.on { color: #237A43; font-weight: 600; }

/* Bloco de risco compacto (card Resumo) */
.gd360__riskbig {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 14px; border-radius: 10px; gap: 2px;
}
.gd360__riskbig.risk-low { background: #E7F6EC; color: #237A43; }
.gd360__riskbig.risk-medium { background: #FCF3E0; color: #936300; }
.gd360__riskbig.risk-high { background: #FDEDE3; color: #B5531B; }
.gd360__riskbig.risk-critical { background: #FBE9E7; color: #A6301F; }
.gd360__riskscore { font-size: 32px; font-weight: 700; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.gd360__risklevel { font-size: 13px; font-weight: 500; }

/* ──────────────── Painéis / tabelas ──────────────── */
.gd360__panel { display: flex; flex-direction: column; gap: 14px; }
.gd360__panelhead { display: flex; justify-content: space-between; align-items: center; }

.gd360__counters { display: flex; gap: 8px; color: #5B6E9C; font-size: 12px; flex-wrap: wrap; }
.gd360__counters span {
    background: #F4F6FA; border: 1px solid #ECEFF6;
    padding: 4px 12px; border-radius: 20px; white-space: nowrap;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.gd360__subhead {
    margin: 8px 0 4px; font-size: 13px; font-weight: 600; color: #2E1956;
    padding-bottom: 6px; border-bottom: 1px solid #eee;
}

.gd360__table {
    width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px;
    border: 1px solid #e9ecef; border-radius: 10px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    background: #fff;
}
.gd360__section .gd360__table { border-color: #ECEFF6; box-shadow: none; }
.gd360__table th {
    text-align: left; padding: 9px 12px;
    color: #718096; font-size: 11.5px; font-weight: 600;
    background-color: #FAFBFD; border-bottom: 1px solid #E2E6F3;
    position: sticky; top: 0; z-index: 1;
}
.gd360__table td { padding: 9px 12px; border-bottom: 1px solid #F2F4F9; color: #2D3748; }
.gd360__table tr:last-child td { border-bottom: none; }
.gd360__table tr:hover td { background: #FAFBFD; }

/* ──────────────── RevoGrid (padrão u360__revogrid) ──────────────── */
.gd360__revogrid {
    width: 100%;
    position: relative;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    background: #fff;
}
.gd360__section .gd360__revogrid { border-color: #ECEFF6; box-shadow: none; }

.gd360__revogrid revo-grid { font-family: "Ubuntu", sans-serif; }

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

.gd360__revogrid revo-grid .header-rgRow,
.gd360__revogrid revo-grid .rgHeaderCell {
    background-color: #FAFBFD !important;
    border-bottom: 1px solid #E2E6F3 !important;
}
.gd360__revogrid revo-grid .rgHeaderCell {
    font-size: 11.5px;
    font-weight: 600;
    color: #718096;
    text-transform: none;
    display: flex;
    align-items: center;
}
.gd360__revogrid revo-grid .rgCell {
    font-size: 12px;
    color: #2D3748;
    display: flex;
    align-items: center;
}

.gd360__tag {
    margin-left: 6px; padding: 1px 8px; border-radius: 10px; font-size: 10px; font-weight: 500;
}
.gd360__tag--ext { background: #F3EEFB; color: #6B36C9; }
.gd360__tag--off { background: #FBE9E7; color: #A6301F; }

.gd360__risktag { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 500; }
.gd360__risktag.risk-low { background: #E7F6EC; color: #237A43; }
.gd360__risktag.risk-medium { background: #FCF3E0; color: #936300; }
.gd360__risktag.risk-high { background: #FDEDE3; color: #B5531B; }
.gd360__risktag.risk-critical { background: #FBE9E7; color: #A6301F; }

/* ──────────────── Avisos ──────────────── */
.gd360__notice {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; border-radius: 8px; font-size: 12px; line-height: 1.5;
    background: #F4F7FC; border: 1px solid #E2E6F3; color: #5B6E9C;
}
.gd360__notice--warn { background: #FCF3E0; border-color: #F5E6C0; color: #936300; }
.gd360__notice svg { font-size: 16px; flex-shrink: 0; }

.gd360__impacttext { font-size: 11px; color: #8A8FA3; font-style: italic; margin-top: 2px; }

.gd360__rule {
    font-family: "Roboto Mono", monospace; font-size: 12px;
    background: #2E1956; color: #E9E2FB;
    padding: 12px; border-radius: 8px; word-break: break-word; line-height: 1.5;
}

/* ──────────────── Segurança e risco ──────────────── */
.gd360__riskheader { display: flex; gap: 18px; align-items: center; }
.gd360__gauge {
    width: 96px; height: 96px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 6px solid #ECEFF6; flex-shrink: 0;
}
.gd360__gauge.risk-low { border-color: #38A169; }
.gd360__gauge.risk-medium { border-color: #F5A623; }
.gd360__gauge.risk-high { border-color: #E07B39; }
.gd360__gauge.risk-critical { border-color: #C53030; }
.gd360__gaugescore { font-size: 28px; font-weight: 700; color: #2E1956; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.gd360__gaugemax { font-size: 11px; color: #8A8FA3; }
.gd360__risklevel-big { font-size: 16px; font-weight: 600; color: #2E1956; margin-bottom: 6px; }

.gd360__risksplit { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 18px; gap: 18px; }
@container gd360 (max-width: 900px) { .gd360__risksplit { grid-template-columns: 1fr; } }

.gd360__factor, .gd360__reco {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 0; border-bottom: 1px solid #F2F4F9;
}
.gd360__factor:last-child, .gd360__reco:last-child { border-bottom: none; }
.gd360__factor-main { flex: 1 1; min-width: 0; }
.gd360__factor-main strong, .gd360__reco strong { font-size: 13px; font-weight: 600; color: #2E1956; }
.gd360__factor-main p, .gd360__reco p { margin: 2px 0 0; color: #6B6F86; font-size: 12px; }
.gd360__factor-tags { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }

.gd360__sev { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.gd360__sev.sev-low { background: #E7F6EC; color: #237A43; }
.gd360__sev.sev-medium { background: #FCF3E0; color: #936300; }
.gd360__sev.sev-high { background: #FDEDE3; color: #B5531B; }
.gd360__sev.sev-critical { background: #FBE9E7; color: #A6301F; }
.gd360__impact { font-size: 11px; color: #8A8FA3; }

.gd360__reco svg { font-size: 18px; color: #8C40E3; flex-shrink: 0; margin-top: 2px; }
.gd360__prio {
    padding: 1px 8px; border-radius: 8px; font-size: 9px; height: fit-content;
    text-transform: uppercase; letter-spacing: .3px; white-space: nowrap;
    background: #F1F3F8; color: #6B6F86;
}
.gd360__prio.prio-alta { background: #FDEDE3; color: #B5531B; }
.gd360__prio.prio-média { background: #FCF3E0; color: #936300; }
.gd360__prio.prio-baixa { background: #E7F6EC; color: #237A43; }
.gd360__prio.prio-crítica { background: #FBE9E7; color: #A6301F; }

/* ════════════════ Bloco de identidade (padrão u360__id2) ════════════════ */
.gd360__id2 {
    display: grid;
    grid-template-columns: auto minmax(220px, 1.1fr) minmax(280px, 1.6fr);
    align-items: center;
    grid-gap: 18px;
    gap: 18px;
    padding: 12px 4px 16px;
    border-bottom: 1px solid #ECEFF6;
}
.gd360__id2-avatar {
    position: relative;
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #8C40E3, #5A2EA6);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 600; flex-shrink: 0;
}
.gd360__statusdot {
    position: absolute; right: 2px; bottom: 2px;
    width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff;
}
.gd360__statusdot.sec { background: #8C40E3; }
.gd360__statusdot.m365 { background: #3CB371; }
.gd360__id2-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gd360__id2-name { font-size: 19px; font-weight: 600; color: #2E1956; overflow-wrap: anywhere; }
.gd360__id2-mails { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gd360__id2-mail {
    font-size: 12.5px; color: #5B6E9C; display: inline-flex; align-items: center; gap: 4px;
    min-width: 0; overflow-wrap: anywhere;
}
.gd360__id2-mail small { color: #9AA1B9; }
.gd360__copy {
    border: none; background: none; cursor: pointer; color: #9AA1B9; padding: 1px;
    display: inline-flex; align-items: center; border-radius: 4px;
}
.gd360__copy:hover { color: #8C40E3; background: #F3EEFB; }

/* Chips de status */
.gd360__chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.gd360__chip {
    font-size: 11px; font-weight: 500;
    padding: 3px 10px; border-radius: 12px;
    background: #fff; border: 1px solid #d8deea; color: #5B6E9C;
    display: inline-flex; align-items: center; gap: 4px;
}
.gd360__chip svg { font-size: 13px; }
.gd360__chip--ok { border-color: #38A169; color: #237A43; }
.gd360__chip--warn { border-color: #F5A623; color: #936300; }
.gd360__chip--danger { border-color: #C53030; color: #A6301F; }

/* Campos de identidade (strip) */
.gd360__idfields-wrap { display: flex; align-items: center; gap: 6px; min-width: 0; }
.gd360__idfields {
    display: flex; flex-wrap: nowrap; gap: 10px 16px; min-width: 0;
    overflow: hidden; max-height: 40px; transition: max-height 0.25s ease;
}
.gd360__idfields.expanded { flex-wrap: wrap; max-height: 200px; }
.gd360__idfield { display: flex; align-items: flex-start; gap: 8px; min-width: 0; flex-shrink: 0; }
.gd360__idfield-ic {
    width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #F1F4F9; color: #5B6E9C;
}
.gd360__idfield-txt { display: flex; flex-direction: column; min-width: 0; }
.gd360__idfield-txt small { font-size: 10.5px; color: #718096; }
.gd360__idfield-txt b {
    font-size: 12.5px; font-weight: 600; color: #2D3748;
    min-width: 0; overflow-wrap: anywhere; word-break: break-word;
}

@container gd360 (max-width: 720px) {
    .gd360__id2 { grid-template-columns: auto 1fr; }
    .gd360__idfields-wrap { grid-column: 1 / -1; }
}

/* ════════════════ Faixa de KPIs (padrão u360__stats) ════════════════ */
.gd360__stats-wrap { display: flex; align-items: center; gap: 6px; position: relative; }
.gd360__stats {
    display: flex; flex-wrap: nowrap; gap: 6px;
    overflow: hidden; max-height: 32px; transition: max-height 0.25s ease;
}
.gd360__stats.expanded { flex-wrap: wrap; max-height: 500px; }
.gd360__stats-more {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 10px; background: #ECEFF6; border: 1px solid #D8DCE6;
    border-radius: 20px; font-size: 11px; font-weight: 600; color: #5B6E9C;
    cursor: pointer; white-space: nowrap; transition: background 0.15s;
}
.gd360__stats-more:hover { background: #D8DCE6; }
.gd360__stat {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; background: #F4F6FA; border-radius: 20px;
    font-size: 12px; white-space: nowrap; border: 1px solid #ECEFF6;
}
.gd360__stat--warn { background: #FFF8E6; border-color: #F5E6C0; }
.gd360__stat--danger { background: #FFF0ED; border-color: #F5D0C8; }
.gd360__stat--ok { background: #EFFAF3; border-color: #C3E8D0; }
.gd360__stat-ic { display: flex; align-items: center; color: #5B6E9C; flex-shrink: 0; }
.gd360__stat--warn .gd360__stat-ic { color: #936300; }
.gd360__stat--danger .gd360__stat-ic { color: #A6301F; }
.gd360__stat--ok .gd360__stat-ic { color: #237A43; }
.gd360__stat-val { font-weight: 700; color: #2E1956; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.gd360__stat-lbl { color: #6B6F86; }

/* ════════════════ Seções (padrão u360__section) ════════════════ */
.gd360__main { display: flex; flex-direction: column; gap: 12px; }

.gd360__section {
    min-height: 100%;
    display: flex; flex-direction: column; gap: 8px;
    background: #fff; border: 1px solid #ECEFF6; border-radius: 10px;
    padding: 14px 16px;
}
.gd360__section-title {
    font-size: 13px; font-weight: 600; color: #2E1956;
    display: flex; align-items: center; gap: 6px;
    margin: 0 0 4px; padding-bottom: 6px; border-bottom: 1px solid #eee;
}
.gd360__section-title .count { font-size: 11px; color: #6B6F86; font-weight: 400; }

.gd360__summary-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 12px;
    gap: 12px; align-items: start;
}
.gd360__summary-row > .gd360__section { min-width: 0; }

/* Definition list (Resumo) */
.gd360__defgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    grid-gap: 8px;
    gap: 8px; min-width: 0;
}
.gd360__defsection {
    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;
}
.gd360__defsection-title {
    font-size: 13px; font-weight: 600; color: #2E1956;
    margin: 0 0 8px 0; padding-bottom: 6px; border-bottom: 1px solid #eee;
}
.gd360__deflist {
    display: grid; grid-template-columns: minmax(110px, max-content) 1fr;
    grid-gap: 4px 12px;
    gap: 4px 12px; margin: 0; font-size: 12px; line-height: 1.4;
}
.gd360__deflist-dt {
    color: #718096; font-weight: 500; padding: 4px 0;
    border-bottom: 1px solid #F1F3F5; white-space: nowrap;
}
.gd360__deflist-dd {
    margin: 0; color: #2D3748; padding: 4px 0; border-bottom: 1px solid #F1F3F5;
    min-width: 0; overflow-wrap: anywhere; word-break: break-word;
}
.gd360__deflist-dd.ok { color: #237A43; font-weight: 600; }
.gd360__deflist-dd.off { color: #8A8FA3; }
.gd360__deflist > :nth-last-child(-n+2) { border-bottom: none; }

/* Risco resumido (padrão u360__riskbadge / risklist) */
.gd360__riskbadge {
    font-size: 12px; padding: 4px 10px; border-radius: 8px; margin-bottom: 8px;
    background: #F1F3F8; color: #6B6F86; text-transform: capitalize;
}
.gd360__riskbadge--baixo { background: #E7F6EC; color: #237A43; }
.gd360__riskbadge--médio { background: #FCF3E0; color: #936300; }
.gd360__riskbadge--alto { background: #FDEDE3; color: #B5531B; }
.gd360__riskbadge--crítico { background: #FBE9E7; color: #A6301F; }
.gd360__risklist { list-style: none; margin: 0; padding: 0; }
.gd360__risklist li {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; padding: 4px 0; border-bottom: 1px solid #F2F4F9;
}
.gd360__risklist li:last-child { border-bottom: none; }
.gd360__risklist .num { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.gd360__ok { color: #237A43; }
.gd360__warn { color: #936300; }
.gd360__danger { color: #A6301F; }

/* SaaSGroup List - RevoGrid + KPI cards + pills */

/* ── SideModal: form body + footer ─────────────────────────────────────── */
.sg-form-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0 16px;
}

.sg-form-unsupported {
    font-size: 0.75rem;
    color: #d18700;
    color: var(--color-status-warning, #d18700);
    padding: 4px 0;
}

.sg-modal-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 0 4px;
    background: #fff;
    background: var(--color-neutral-white, #fff);
    border-top: 1px solid #E2E6F3;
    border-top: 1px solid var(--color-neutral-light, #E2E6F3);
    margin-top: 12px;
}

/* ── Wrapper do grid ───────────────────────────────────────────────────── */
.saasgroup-grid-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    font-family: "Ubuntu", sans-serif;
}

.sg-grid-loadmore {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    background: #fff;
    background: var(--color-neutral-white, #fff);
    border: 1px solid #E2E6F3;
    border: 1px solid var(--color-neutral-light, #E2E6F3);
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 0.7rem;
    color: #6B7280;
    color: var(--color-neutral-dark, #6B7280);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    z-index: 5;
    pointer-events: none;
}

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

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

.saasgroup-grid-wrapper revo-grid .rgRow:hover {
    background-color: #FAFBFD;
    background-color: var(--background-lightest, #FAFBFD);
}

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

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

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

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

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

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

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

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

/* Cells */
.saasgroup-grid-wrapper revo-grid .rgCell {
    font-family: "Ubuntu", sans-serif;
    font-size: 0.75rem;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    padding: 4px 8px;
    border-right: none !important;
    display: flex;
    align-items: center;
}

/* Alinhamentos utilitarios */
.saasgroup-grid-wrapper revo-grid .revo-cell--right {
    text-align: right;
    justify-content: flex-end;
}

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

/* ── Pills de tipo ─────────────────────────────────────────────────────── */
.sg-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 12px;
    font-family: "Ubuntu", sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
    white-space: nowrap;
}

.sg-pill--office365 {
    background: #E8F0FE;
    color: #1A73E8;
}

.sg-pill--security {
    background: #F3E8FF;
    color: #6B21A8;
}

.sg-pill--mail {
    background: #FCE7F3;
    color: #BE185D;
}

.sg-pill--distribution {
    background: #DCFCE7;
    color: #166534;
}

.sg-pill--default {
    background: #E2E6F3;
    background: var(--background-light, #E2E6F3);
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
}

/* ── Acoes inline ──────────────────────────────────────────────────────── */
.sg-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    width: 100%;
}

.sg-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    color: #2E1956;
    color: var(--icon-default, #2E1956);
    cursor: pointer;
    background: transparent;
    border: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sg-action-btn:hover {
    background: #E2E6F3;
    background: var(--background-light, #E2E6F3);
    color: #471FCC;
    color: var(--color-primary-blue, #471FCC);
}

.sg-action-btn:disabled,
.sg-action-btn[aria-disabled="true"] {
    color: #EBEBEB;
    color: var(--icon-disabled, #EBEBEB);
    cursor: not-allowed;
}

.sg-action-btn:disabled:hover,
.sg-action-btn[aria-disabled="true"]:hover {
    background: transparent;
    color: #EBEBEB;
    color: var(--icon-disabled, #EBEBEB);
}

/* Menu 3-pontos */
.sg-menu-wrapper {
    position: relative;
    display: inline-block;
}

.sg-menu {
    position: absolute;
    top: 28px;
    right: 0;
    min-width: 140px;
    background: #fff;
    background: var(--background-white, #fff);
    border: 1px solid #E2E6F3;
    border: 1px solid var(--line-default, #E2E6F3);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(46, 25, 86, 0.12);
    padding: 4px 0;
    z-index: 50;
}

.sg-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-family: "Ubuntu", sans-serif;
    font-size: 12px;
    color: #2E1956;
    color: var(--text-default, #2E1956);
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.sg-menu-item:hover {
    background: #FAFBFD;
    background: var(--background-lightest, #FAFBFD);
}

.sg-menu-item[disabled],
.sg-menu-item[aria-disabled="true"] {
    color: #8B90A3;
    color: var(--text-light, #8B90A3);
    cursor: not-allowed;
}

.sg-menu-item[disabled]:hover,
.sg-menu-item[aria-disabled="true"]:hover {
    background: transparent;
}

.sg-menu-item--danger {
    color: #DC291E;
    color: var(--status-red, #DC291E);
}

.sg-menu-item--danger:hover {
    background: #FEE2E2;
}

/* ── KPI cards: barra de progresso e descricao ────────────────────────── */
.sg-kpi-progress {
    width: 100%;
    height: 4px;
    background: #E2E6F3;
    background: var(--background-light, #E2E6F3);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

.sg-kpi-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.sg-kpi-percent {
    font-family: "Ubuntu", sans-serif;
    font-size: 11px;
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    margin-top: 2px;
}

.sg-kpi-lastsync {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: "Ubuntu", sans-serif;
    color: #2E1956;
    color: var(--text-default, #2E1956);
}

.sg-kpi-lastsync-main {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
}

.sg-kpi-lastsync-detail {
    font-size: 11px;
    color: #6B6F7D;
    color: var(--text-dark, #6B6F7D);
    margin-top: 4px;
}

.sg-kpi-lastsync-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 11px;
    color: #3EBB3F;
    color: var(--status-green, #3EBB3F);
    font-weight: 500;
}

/* ── Status badge (pill) ───────────────────────────────────────────────── */
.sg-status {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
    font-family: "Ubuntu", sans-serif;
    line-height: 1.4;
}

.sg-status--active {
    background: #ECFBF3;
    color: #1F9E6E;
}

.sg-status--licensed {
    background: #FFF4EC;
    color: #C76317;
}

.sg-status--onpremise {
    background: #EEF0F5;
    color: #5A6F8F;
}

/* ── Status-colored left border per row ────────────────────────────────── */
.saasgroup-grid-wrapper revo-grid .rgRow.sg-row--licensed {
    box-shadow: inset 3px 0 0 0 #C76317;
    background: #FFFBF6;
}

.saasgroup-grid-wrapper revo-grid .rgRow.sg-row--onpremise {
    box-shadow: inset 3px 0 0 0 #B0B6C6;
    background: #FAFBFD;
}


