ligbox-ops-platform/projects/ops-desk/frontend/assets/access-control-support.css
Ligbox Spec Hub b03bb2c37c feat(desk): UI/API Spec 039-041 + deploy atómico e smoke GREEN
Commita governance, user-wizard, operational-feed e catálogo RBAC;
adiciona deploy-desk-full.sh, smoke-desk.sh e regra anti-deploy parcial;
documenta credencial VM112 @betinplace.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 13:32:15 +00:00

1185 lines
19 KiB
CSS

/* Controle de acesso Suporte — identidade ACS (Spec UI Roger 2026-06-29) */
:root {
--acs-blue: #2b6cb0;
--acs-blue-dark: #1a4f8a;
--acs-blue-light: #ebf4ff;
--acs-green: #38a169;
--acs-green-bg: #e6f6ed;
--acs-red: #e53e3e;
--acs-red-bg: #fde8e8;
--acs-gray-bg: #f7fafc;
--acs-card-shadow: 0 4px 18px rgba(26, 79, 138, 0.08);
}
.shell--v2 .main.main--acs > .page-header {
display: none !important;
}
#view-admin.view.active {
max-width: none;
padding: 0;
}
.acs-page {
position: relative;
z-index: 0;
margin: 0;
min-height: calc(100vh - 58px);
background: var(--acs-gray-bg);
}
.acs-hero {
position: relative;
padding: 1.75rem 1.75rem 2.25rem;
background: linear-gradient(135deg, var(--acs-blue-dark) 0%, var(--acs-blue) 55%, #3182ce 100%);
color: #fff;
clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
margin-bottom: 0.5rem;
}
.acs-hero h1 {
margin: 0;
font-size: 1.65rem;
font-weight: 700;
letter-spacing: -0.02em;
}
.acs-breadcrumb {
margin: 0.45rem 0 0;
font-size: 0.78rem;
opacity: 0.9;
}
.acs-breadcrumb a {
color: #fff;
text-decoration: none;
}
.acs-breadcrumb a:hover {
text-decoration: underline;
}
.acs-body {
padding: 0 1.5rem 2rem;
margin-top: -1.25rem;
}
.acs-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 280px;
gap: 1rem;
align-items: start;
}
.acs-kpi-row {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 0.65rem;
margin-bottom: 0.85rem;
}
.acs-card {
background: #fff;
border-radius: 12px;
border: 1px solid #e2e8f0;
box-shadow: var(--acs-card-shadow);
}
.acs-kpi {
padding: 0.85rem 1rem;
text-align: center;
}
.acs-kpi-val {
display: block;
font-size: 1.55rem;
font-weight: 700;
color: var(--acs-blue);
line-height: 1.1;
}
.acs-kpi-label {
display: block;
margin-top: 0.2rem;
font-size: 0.68rem;
font-weight: 650;
color: #718096;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.acs-toolbar {
display: flex;
flex-wrap: wrap;
gap: 0.65rem;
align-items: flex-end;
padding: 0.85rem 1rem;
margin-bottom: 0.85rem;
}
.acs-search {
flex: 1 1 220px;
position: relative;
}
.acs-search input {
width: 100%;
padding: 0.5rem 0.75rem 0.5rem 2.1rem;
border: 1px solid #cbd5e0;
border-radius: 8px;
font: inherit;
font-size: 0.85rem;
background: #fff;
}
.acs-search::before {
content: "⌕";
position: absolute;
left: 0.65rem;
top: 50%;
transform: translateY(-50%);
color: #a0aec0;
font-size: 0.95rem;
}
.acs-filter {
display: flex;
flex-direction: column;
gap: 0.25rem;
font-size: 0.72rem;
font-weight: 600;
color: #718096;
}
.acs-filter select {
padding: 0.48rem 0.55rem;
border: 1px solid #cbd5e0;
border-radius: 8px;
font: inherit;
font-size: 0.82rem;
min-width: 120px;
}
.acs-btn-primary {
appearance: none;
border: none;
background: var(--acs-blue);
color: #fff;
font: inherit;
font-size: 0.82rem;
font-weight: 600;
padding: 0.5rem 0.9rem;
border-radius: 8px;
cursor: pointer;
white-space: nowrap;
}
.acs-btn-primary:hover {
background: var(--acs-blue-dark);
}
.acs-btn-ghost {
appearance: none;
border: 1px solid #cbd5e0;
background: #fff;
color: var(--acs-blue);
font: inherit;
font-size: 0.82rem;
font-weight: 600;
padding: 0.48rem 0.85rem;
border-radius: 8px;
cursor: pointer;
}
.acs-table-card {
overflow: hidden;
}
.acs-table-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
padding: 0.85rem 1rem;
border-bottom: 1px solid #edf2f7;
}
.acs-table-head h3 {
margin: 0;
font-size: 0.95rem;
font-weight: 700;
color: #1a202c;
}
.acs-table-wrap {
overflow-x: auto;
overflow-y: visible;
-webkit-overflow-scrolling: touch;
}
.acs-page--matrix .acs-table-card {
overflow: visible;
}
.acs-table {
width: 100%;
border-collapse: collapse;
font-size: 0.84rem;
}
.acs-table th {
text-align: left;
padding: 0.55rem 1rem;
font-size: 0.68rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #718096;
background: #f8fafc;
border-bottom: 1px solid #edf2f7;
}
.acs-table td {
padding: 0.65rem 1rem;
border-bottom: 1px solid #f1f5f9;
vertical-align: middle;
}
.acs-table tbody tr.acs-row {
cursor: pointer;
transition: background 0.12s ease;
}
.acs-table tbody tr.acs-row:hover,
.acs-table tbody tr.acs-row.selected {
background: var(--acs-blue-light);
}
.acs-user-cell {
display: flex;
align-items: center;
gap: 0.65rem;
}
.acs-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
display: grid;
place-items: center;
font-size: 0.75rem;
font-weight: 700;
color: #fff;
background: linear-gradient(135deg, var(--acs-blue), #4299e1);
flex-shrink: 0;
}
.acs-avatar-lg {
width: 64px;
height: 64px;
font-size: 1.1rem;
}
.acs-user-name {
display: block;
font-weight: 650;
color: #1a202c;
}
.acs-user-sub {
display: block;
font-size: 0.76rem;
color: #718096;
}
.acs-status {
display: inline-block;
padding: 0.22rem 0.55rem;
border-radius: 6px;
font-size: 0.72rem;
font-weight: 650;
}
.acs-status--on {
background: var(--acs-green-bg);
color: var(--acs-green);
}
.acs-status--off {
background: var(--acs-red-bg);
color: var(--acs-red);
}
.acs-table-foot {
padding: 0.6rem 1rem;
font-size: 0.76rem;
color: #718096;
border-top: 1px solid #edf2f7;
}
/* Rail — lista rápida de usuários */
.acs-rail {
position: sticky;
top: 0.75rem;
}
.acs-rail-card {
padding: 0.85rem;
}
.acs-rail-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.55rem;
}
.acs-rail-head h4 {
margin: 0;
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #718096;
}
.acs-rail-count {
font-size: 0.68rem;
color: #a0aec0;
}
.acs-rail-search input {
width: 100%;
padding: 0.45rem 0.6rem;
border: 1px solid #e2e8f0;
border-radius: 8px;
font-size: 0.78rem;
margin-bottom: 0.55rem;
}
.acs-rail-list {
list-style: none;
margin: 0;
padding: 0;
max-height: calc(100vh - 280px);
overflow-y: auto;
}
.acs-rail-item {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.45rem 0.35rem;
border-radius: 8px;
cursor: pointer;
font-size: 0.8rem;
}
.acs-rail-item:hover,
.acs-rail-item.selected {
background: var(--acs-blue-light);
}
.acs-rail-item .acs-avatar {
width: 28px;
height: 28px;
font-size: 0.62rem;
}
/* Drawer / modal detalhe */
.team-drawer.acs-drawer .team-drawer-panel {
width: min(100%, 480px);
border-radius: 12px 0 0 12px;
border-left: none;
box-shadow: -8px 0 32px rgba(26, 79, 138, 0.15);
}
.team-drawer.acs-drawer .team-drawer-header {
background: linear-gradient(90deg, var(--acs-blue-light), #fff);
border-bottom: 1px solid #e2e8f0;
}
.team-drawer.acs-drawer .team-drawer-header h3 {
color: var(--acs-blue-dark);
}
.acs-field {
display: block;
margin-bottom: 0.75rem;
}
.acs-field label {
display: block;
font-size: 0.72rem;
font-weight: 650;
color: #4a5568;
margin-bottom: 0.3rem;
}
.acs-field input,
.acs-field select {
width: 100%;
padding: 0.5rem 0.65rem;
border: 1px solid #cbd5e0;
border-radius: 8px;
font: inherit;
font-size: 0.85rem;
}
.acs-toggle-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.55rem 0;
border-bottom: 1px solid #edf2f7;
font-size: 0.84rem;
}
.acs-toggle {
position: relative;
width: 42px;
height: 24px;
flex-shrink: 0;
}
.acs-toggle input {
opacity: 0;
width: 0;
height: 0;
}
.acs-toggle-slider {
position: absolute;
inset: 0;
background: #cbd5e0;
border-radius: 999px;
cursor: pointer;
transition: background 0.2s;
}
.acs-toggle-slider::before {
content: "";
position: absolute;
width: 18px;
height: 18px;
left: 3px;
top: 3px;
background: #fff;
border-radius: 50%;
transition: transform 0.2s;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.acs-toggle input:checked + .acs-toggle-slider {
background: var(--acs-blue);
}
.acs-toggle input:checked + .acs-toggle-slider::before {
transform: translateX(18px);
}
.acs-drawer-actions {
display: flex;
gap: 0.5rem;
justify-content: flex-end;
margin-top: 1rem;
padding-top: 1rem;
border-top: 1px solid #edf2f7;
}
.acs-drawer-actions .btn-primary {
background: var(--acs-blue);
border-color: var(--acs-blue);
}
@media (max-width: 960px) {
.acs-layout {
grid-template-columns: 1fr;
}
.acs-rail {
order: -1;
position: static;
}
.acs-kpi-row {
grid-template-columns: repeat(2, 1fr);
}
.acs-matrix-split {
grid-template-columns: 1fr;
}
}
/* Embutido na Matriz de Acesso */
.acs-page--embedded {
margin: 0;
min-height: 0;
background: transparent;
}
.acs-page--matrix .acs-body {
padding: 0;
}
.acs-page--matrix {
overflow: visible;
}
.acs-matrix-users {
min-width: 0;
overflow: visible;
}
.acs-matrix-users-head {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.5rem 1rem;
margin: 0.35rem 0 0.85rem;
padding: 0.65rem 0.9rem;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 10px;
}
.acs-matrix-users-title {
font-size: 0.72rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: #718096;
flex: 0 0 auto;
}
.acs-matrix-users-meta {
display: inline-flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
font-size: 0.84rem;
color: #2d3748;
min-width: 0;
}
.acs-matrix-users-count {
color: #718096;
font-size: 0.78rem;
white-space: nowrap;
}
.acs-matrix-users-count::before {
content: "·";
margin-right: 0.5rem;
color: #cbd5e0;
}
.acs-kpi-row--matrix {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.5rem;
margin-bottom: 0.65rem;
}
.acs-page--matrix .acs-kpi {
padding: 0.65rem 0.5rem;
}
.acs-page--matrix .acs-kpi-val {
font-size: 1.25rem;
}
.acs-page--matrix .acs-kpi-label {
font-size: 0.62rem;
}
.acs-page--matrix .acs-layout {
gap: 0.65rem;
}
.acs-page--matrix .acs-rail {
position: static;
}
@media (min-width: 1100px) {
.acs-kpi-row--matrix {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
.acs-matrix-wrap {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.acs-matrix-split {
display: grid;
grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
gap: 1rem;
align-items: start;
min-width: 0;
}
.acs-perms-card {
padding: 1rem;
position: sticky;
top: 0.5rem;
}
.acs-perms-head {
display: flex;
gap: 0.75rem;
align-items: flex-start;
margin-bottom: 0.85rem;
}
.acs-perms-head h3 {
margin: 0;
font-size: 1rem;
color: #1a202c;
}
.acs-perms-desc {
margin: 0.35rem 0 0;
font-size: 0.78rem;
color: #718096;
line-height: 1.45;
}
.acs-role-code {
display: grid;
place-items: center;
min-width: 42px;
height: 42px;
border-radius: 10px;
background: linear-gradient(135deg, #2b6cb0, #4299e1);
color: #fff;
font-weight: 800;
font-size: 0.85rem;
letter-spacing: 0.04em;
flex-shrink: 0;
}
.acs-role-code-inline {
font-size: 0.75rem;
padding: 0.1rem 0.35rem;
border-radius: 4px;
background: #ebf4ff;
color: #2b6cb0;
}
.acs-perm-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
padding: 0.45rem 0;
border-bottom: 1px solid #edf2f7;
font-size: 0.82rem;
}
.acs-perm-label {
color: #2d3748;
}
.acs-toggle--readonly input:disabled + .acs-toggle-slider {
opacity: 1;
cursor: default;
}
.acs-env-block {
margin-top: 1rem;
padding-top: 0.85rem;
border-top: 1px solid #edf2f7;
}
.acs-env-block h4 {
margin: 0 0 0.45rem;
font-size: 0.68rem;
text-transform: uppercase;
letter-spacing: 0.06em;
color: #718096;
}
.acs-env-chips {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
}
.acs-env-chip {
font-size: 0.72rem;
padding: 0.25rem 0.5rem;
border-radius: 6px;
background: #ebf4ff;
color: #2b6cb0;
font-weight: 600;
}
.acs-env-chip--muted {
background: #f7fafc;
color: #a0aec0;
}
.acs-code-legend {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
}
.acs-code-pill {
display: inline-flex;
align-items: center;
gap: 0.35rem;
font-size: 0.72rem;
padding: 0.2rem 0.45rem;
border-radius: 6px;
background: #f7fafc;
border: 1px solid #e2e8f0;
color: #4a5568;
}
.acs-code-pill code {
font-weight: 700;
color: #2b6cb0;
}
.acs-code-pill--root code {
color: #c05621;
}
.acs-matrix-role-banner {
display: none;
}
#access-matrix-content .am-access-control-host {
min-width: 0;
overflow: visible;
padding: 0.35rem 0.15rem 0.5rem 0;
}
#access-matrix-content .am-wrap {
min-width: 0;
overflow: visible;
}
#access-matrix-content .am-panel--access-control .am-access-control-host .acs-page--embedded {
padding-top: 0;
}
/* Sub-abas Controle de acesso */
.acs-subnav {
display: flex;
gap: 0.35rem;
margin-bottom: 1rem;
padding: 0.25rem;
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 10px;
width: fit-content;
max-width: 100%;
flex-wrap: wrap;
}
.acs-subtab {
border: none;
background: transparent;
padding: 0.5rem 1rem;
border-radius: 8px;
font-size: 0.85rem;
font-weight: 600;
color: #64748b;
cursor: pointer;
}
.acs-subtab:hover {
background: #f1f5f9;
color: #334155;
}
.acs-subtab.active {
background: #4a152c;
color: #fff;
}
.acs-capabilities-wrap {
max-width: 520px;
}
/* Gestão de utilizadores (um-*) */
.um-panel {
min-width: 0;
}
.um-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1rem;
}
.um-head h3 {
margin: 0;
font-size: 1.1rem;
color: #1e293b;
}
.um-desc {
margin: 0.35rem 0 0;
font-size: 0.82rem;
color: #64748b;
}
.um-btn-primary {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.55rem 1rem;
border: none;
border-radius: 8px;
background: #4a152c;
color: #fff;
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
white-space: nowrap;
}
.um-btn-primary:hover {
background: #3d1124;
}
.um-btn-ghost {
padding: 0.55rem 1rem;
border: 1px solid #d1d5db;
border-radius: 8px;
background: #fff;
color: #374151;
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
}
.um-kpi-row {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 0.65rem;
margin-bottom: 0.85rem;
}
.um-kpi {
padding: 0.75rem 1rem;
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 10px;
text-align: center;
}
.um-kpi strong {
display: block;
font-size: 1.35rem;
color: #2563eb;
}
.um-kpi span {
font-size: 0.68rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #94a3b8;
}
.um-toolbar {
display: flex;
flex-wrap: wrap;
gap: 0.65rem;
align-items: flex-end;
margin-bottom: 0.85rem;
padding: 0.85rem 1rem;
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 10px;
}
.um-search {
flex: 1;
min-width: 180px;
padding: 0.45rem 0.65rem;
border: 1px solid #cbd5e0;
border-radius: 8px;
font-size: 0.85rem;
}
.um-toolbar label {
display: flex;
flex-direction: column;
gap: 0.2rem;
font-size: 0.72rem;
color: #64748b;
}
.um-toolbar select {
padding: 0.4rem 0.55rem;
border: 1px solid #cbd5e0;
border-radius: 8px;
font-size: 0.82rem;
}
.um-table-wrap {
overflow-x: auto;
overscroll-behavior-x: contain;
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 10px;
}
.um-table {
width: 100%;
border-collapse: collapse;
font-size: 0.82rem;
}
.um-table th {
text-align: left;
padding: 0.65rem 0.85rem;
font-size: 0.68rem;
text-transform: uppercase;
letter-spacing: 0.04em;
color: #64748b;
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
}
.um-table td {
padding: 0.7rem 0.85rem;
border-bottom: 1px solid #f1f5f9;
vertical-align: middle;
}
.um-sub {
display: block;
font-size: 0.72rem;
color: #94a3b8;
}
.um-role-badge {
display: inline-block;
padding: 0.12rem 0.4rem;
border-radius: 6px;
background: #dbeafe;
color: #1d4ed8;
font-size: 0.68rem;
font-weight: 700;
}
.um-status--on {
color: #15803d;
font-weight: 600;
}
.um-status--off {
color: #b91c1c;
font-weight: 600;
}
.um-actions {
white-space: nowrap;
}
.um-act {
border: none;
background: transparent;
color: #4a152c;
font-size: 0.78rem;
font-weight: 600;
cursor: pointer;
padding: 0.2rem 0.35rem;
}
.um-act:hover {
text-decoration: underline;
}
.um-act--danger {
color: #b91c1c;
}
.um-empty {
padding: 2rem;
text-align: center;
color: #64748b;
background: #fff;
border: 1px dashed #cbd5e0;
border-radius: 10px;
}
.um-modal-root {
position: fixed;
inset: 0;
z-index: 1600;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
}
.um-backdrop {
position: fixed;
inset: 0;
background: rgba(15, 23, 42, 0.45);
z-index: 1599;
}
.um-modal-card {
position: relative;
z-index: 1601;
width: min(440px, 100%);
max-height: 90vh;
overflow-y: auto;
background: #fff;
border-radius: 12px;
box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}
.um-modal-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 1.15rem 0.5rem;
}
.um-modal-head h3 {
margin: 0;
font-size: 1.05rem;
}
.um-close {
border: none;
background: transparent;
font-size: 1.35rem;
cursor: pointer;
color: #64748b;
}
.um-form {
padding: 0 1.15rem 1.15rem;
}
.um-field {
display: flex;
flex-direction: column;
gap: 0.3rem;
margin-bottom: 0.85rem;
font-size: 0.82rem;
color: #475569;
}
.um-field input,
.um-field select {
padding: 0.45rem 0.65rem;
border: 1px solid #cbd5e0;
border-radius: 8px;
font-size: 0.85rem;
}
.um-hint {
font-size: 0.72rem;
color: #94a3b8;
}
.um-toggle-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.85rem;
font-size: 0.85rem;
}
.um-meta {
margin: 0 0 0.75rem;
font-size: 0.78rem;
color: #64748b;
}
.um-msg--err {
color: #b91c1c;
font-size: 0.82rem;
}
.um-modal-foot {
display: flex;
justify-content: flex-end;
gap: 0.5rem;
padding-top: 0.5rem;
}
@media (max-width: 768px) {
.um-kpi-row {
grid-template-columns: repeat(2, 1fr);
}
.um-head {
flex-direction: column;
}
}
body.um-scroll-lock {
overflow: hidden;
}
.um-panel--embedded .um-head--embedded {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 0.5rem;
margin-bottom: 0.65rem;
}
.um-panel--embedded .acs-matrix-users-meta {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
margin-top: 0.25rem;
font-size: 0.82rem;
}
.um-btn-primary--sm,
.um-btn-ghost--sm {
padding: 0.4rem 0.75rem;
font-size: 0.78rem;
}
.um-mini-stats {
display: flex;
gap: 1rem;
margin-bottom: 0.65rem;
font-size: 0.75rem;
color: #64748b;
}
.um-mini-stats strong {
color: #2563eb;
}
.um-toolbar--compact {
margin-bottom: 0.65rem;
padding: 0.55rem 0.65rem;
}
.um-toolbar--compact .um-search {
min-width: 120px;
}
.um-table--compact th,
.um-table--compact td {
padding: 0.45rem 0.55rem;
font-size: 0.78rem;
}
.um-hint--block {
display: block;
margin-bottom: 0.75rem;
padding: 0.45rem 0.65rem;
background: #f0fdf4;
border-radius: 8px;
color: #166534;
}