#painelEquipe .eq-win-body { align-items: center; }
.eq-rbac-host {
    width: 100%;
    max-width: 100%;
    margin: 0;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.eq-rbac {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.eq-rbac-host > .eq-pes-vazio,
.eq-rbac > .eq-pes-vazio {
    margin: auto;
}
.eq-rbac-toolbar { display: none; }
#eqRbacBody {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.eq-rbac-lista {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-height: 0;
    overflow: auto;
    width: 100%;
    max-width: 820px;
}
.eq-rbac-lista:has(.eq-pes-vazio) {
    align-items: center;
    justify-content: center;
}
.eq-rbac-card {
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
    padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff;
}
.eq-rbac-card strong { display: block; color: #0f172a; }
.eq-rbac-card span { color: #64748b; font-size: 0.8rem; }
.eq-rbac-card-acoes { flex-shrink: 0; }
.eq-rbac-sql {
    background: #fff7ed; border: 1px solid #fdba74; color: #9a3412;
    padding: 10px 12px; border-radius: 8px; font-size: 0.82rem; margin-bottom: 12px;
}
.eq-rbac-dlg {
    position: fixed; inset: 0; z-index: 240; background: rgba(2, 8, 18, 0.55);
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.eq-rbac-dlg-card {
    width: min(760px, 100%); max-height: min(92dvh, 880px);
    background: #fff; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden;
}
.eq-rbac-dlg-card header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 14px; background: var(--azul-marca); color: #fff;
}
.eq-rbac-dlg-card header h3 { margin: 0; font-size: 0.95rem; color: #fff; }
.eq-rbac-dlg-body { padding: 14px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.eq-rbac-dlg-body label { font-size: 0.75rem; font-weight: 700; color: var(--azul-marca); margin-top: 6px; }
.eq-rbac-dlg-body input, .eq-rbac-dlg-body select {
    min-height: 40px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 6px;
}
.eq-rbac-dlg-card footer {
    display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; background: #f8fafc;
}

.eq-rbac-matrix { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.eq-rbac-matrix-hint { margin: 0; font-size: 0.78rem; color: #64748b; line-height: 1.4; }
.eq-rbac-matrix-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.eq-rbac-bulk {
    border: 1px solid #cbd5e1; background: #fff; border-radius: 6px;
    min-height: 36px; padding: 0 10px; font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.eq-rbac-mod {
    border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; overflow: hidden;
}
.eq-rbac-mod-head {
    width: 100%; display: flex; align-items: center; gap: 10px;
    padding: 12px 12px; border: 0; background: #f8fafc; cursor: pointer; text-align: left;
    min-height: 48px;
}
.eq-rbac-mod-head strong { color: #0f172a; font-size: 0.88rem; }
.eq-rbac-mod-count { color: #64748b; font-style: normal; font-size: 0.75rem; margin-left: auto; }
.eq-rbac-caret { color: #94a3b8; font-size: 0.7rem; transition: transform 0.15s ease; }
.eq-rbac-mod.is-open .eq-rbac-caret { transform: rotate(90deg); }
.eq-rbac-mod-all {
    border: 1px solid #e2e8f0; background: #fff; border-radius: 6px;
    padding: 4px 8px; font-size: 0.7rem; font-weight: 700; cursor: pointer; color: #334155;
}
.eq-rbac-mod-body {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px; padding: 10px 12px 12px; border-top: 1px solid #eef2f7;
}
.eq-rbac-cell {
    display: flex; align-items: flex-start; gap: 8px;
    min-height: 40px; padding: 8px 8px; border: 1px solid #e2e8f0; border-radius: 8px;
    background: #f8fafc; font-size: 0.8rem; color: #0f172a; cursor: pointer;
}
.eq-rbac-cell:has(input:checked) { background: #ecfdf5; border-color: #a7f3d0; }
.eq-rbac-cell input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--azul-marca); }

.eq-rbac-resumo { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 10px; margin-top: 8px; }
.eq-rbac-resumo-tit { margin: 0 0 8px; font-size: 0.82rem; }
.eq-rbac-resumo-on, .eq-rbac-resumo-off { font-size: 0.8rem; margin: 6px 0; }
.eq-rbac-resumo-on { color: #047857; }
.eq-rbac-resumo-on small { display: block; color: #64748b; font-weight: 400; }
.eq-rbac-resumo-off { color: #94a3b8; }
.eq-rbac-deny {
    position: fixed; inset: 0; z-index: 260; background: rgba(2, 8, 18, 0.62);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.eq-rbac-deny > div {
    max-width: 420px; background: #fff; border-radius: 12px; padding: 28px 22px; text-align: center;
}
.eq-rbac-deny i { font-size: 2rem; color: var(--azul-sutil); margin-bottom: 10px; }
.eq-rbac-deny h2 { margin: 0 0 8px; font-size: 1.1rem; color: #0f172a; }
.eq-rbac-deny p { color: #64748b; font-size: 0.88rem; line-height: 1.45; }

@media (min-width: 760px) {
    .eq-rbac-mod { display: grid; grid-template-columns: minmax(220px, 32%) 1fr; align-items: stretch; }
    .eq-rbac-mod-head { cursor: default; background: #f1f5f9; border-right: 1px solid #e2e8f0; }
    .eq-rbac-caret { display: none; }
    .eq-rbac-mod-body { display: grid !important; border-top: 0; }
    .eq-rbac-mod-body[hidden] { display: grid !important; }
}

@media (max-width: 759px) {
    .eq-rbac-card { flex-direction: column; align-items: stretch; }
    .eq-rbac-toolbar .btn-acao { width: 100%; }
    .eq-rbac-dlg { padding: 0; align-items: stretch; }
    .eq-rbac-dlg-card { width: 100%; max-height: 100dvh; border-radius: 0; min-height: 100dvh; }
    .eq-rbac-mod-body { grid-template-columns: 1fr; }
    .eq-rbac-mod-all { display: none; }
    .eq-rbac-mod.is-open .eq-rbac-mod-all { display: inline-flex; }
}
