/* Ligbox Design System — Spec 040 · DS-FE-001 */ :root { --lb-bg: #F6F3EE; --lb-card: #FFFFFF; --lb-primary: #5B1632; --lb-primary-hover: #4a1229; --lb-success: #2E9B55; --lb-success-bg: #e8f5ee; --lb-warning: #E6A700; --lb-warning-bg: #fef6e0; --lb-danger: #D44B4B; --lb-danger-bg: #fdeaea; --lb-info: #3578E5; --lb-info-bg: #ebf2fd; --lb-border: #E5DED3; --lb-text: #2A2A2A; --lb-text-muted: #6E6E6E; --lb-radius: 8px; --lb-radius-card: 12px; --lb-space-micro: 8px; --lb-space: 16px; --lb-space-section: 24px; --lb-space-major: 32px; --lb-shadow: 0 1px 3px rgba(42, 42, 42, 0.06); } .lb-page { background: var(--lb-bg); color: var(--lb-text); min-height: 100%; } .lb-card { background: var(--lb-card); border: 1px solid var(--lb-border); border-radius: var(--lb-radius-card); box-shadow: var(--lb-shadow); } .lb-stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--lb-space); margin-bottom: var(--lb-space-section); } .lb-stat-card { padding: var(--lb-space); display: flex; flex-direction: column; gap: 4px; } .lb-stat-label { font-size: 0.75rem; color: var(--lb-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; } .lb-stat-value { font-size: 1.65rem; font-weight: 700; line-height: 1.1; } .lb-stat-sub { font-size: 0.78rem; color: var(--lb-text-muted); } /* ── Controle de Acesso — layout mockup Roger (Gestão utilizadores) ── */ .ach-page-head { display: flex; align-items: center; margin-bottom: 12px; width: 100%; max-width: 1180px; } .ach-page-head .lb-subnav { margin: 0; } /* Grid 4 colunas — tabs/botão linha 1, 4 KPIs alinhados linha 2 */ .ach-kpi-section { display: flex; flex-direction: column; gap: 8px; width: 100%; } .ach-kpi-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: center; } .ach-kpi-top .lb-subnav { grid-column: 1 / span 3; margin: 0; width: fit-content; } .ach-create-col { grid-column: 4; } .ach-create-col .ach-create-split { width: 100%; } .ach-create-col .ach-create-main { padding: 0.45rem 0.75rem; min-height: 0; font-size: 0.82rem; } .ach-create-col .ach-create-menu { width: 32px; min-height: 0; padding: 0; } .ach-kpi-section > .ach-kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch; margin: 0; } .ach-kpi-section .ach-kpi-card { max-width: none; flex: none; height: 100%; min-height: 76px; } .ach-layout { display: flex; align-items: flex-start; gap: 14px; width: 100%; max-width: 1180px; } .ach-left { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; } .ach-kpi-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 0; } .ach-kpi-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-width: 0; flex: 1 1 160px; max-width: 210px; background: var(--lb-card); border: 1px solid var(--lb-border); border-radius: 10px; box-shadow: var(--lb-shadow); } .ach-detail-col { flex: 0 0 340px; width: 340px; min-width: 0; position: sticky; top: 12px; } .ach-kpi-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; } .ach-kpi-icon svg { width: 18px; height: 18px; stroke-width: 1.65; fill: none; stroke-linecap: round; stroke-linejoin: round; } .ach-kpi-icon--blue { background: #eef4fc; color: #2f6fd6; } .ach-kpi-icon--green { background: #e8f5ee; color: #248a4a; } .ach-kpi-icon--orange { background: #fef6e0; color: #c98a00; } .ach-kpi-icon--purple { background: #f3eef8; color: #6d28d9; } .ach-kpi-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .ach-kpi-value { font-size: 1.35rem; font-weight: 700; line-height: 1.1; color: var(--lb-text); letter-spacing: -0.02em; } .ach-kpi-label { font-size: 0.82rem; font-weight: 600; color: var(--lb-text); } .ach-kpi-sub { font-size: 0.72rem; color: var(--lb-text-muted); line-height: 1.3; } /* Split button — Criar utilizador / Perfil Suporte */ .ach-create-split { position: relative; display: flex; align-items: stretch; width: 100%; min-height: 100%; align-self: stretch; } .ach-create-main { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0.5rem 0.85rem; min-height: 38px; border: none; border-radius: var(--lb-radius) 0 0 var(--lb-radius); background: var(--lb-primary); color: #fff; font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; white-space: nowrap; } .ach-create-main:hover { background: var(--lb-primary-hover); } .ach-create-main svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; } .ach-create-menu { display: inline-flex; align-items: center; justify-content: center; width: 36px; padding: 0; min-height: 38px; border: none; border-left: 1px solid rgba(255, 255, 255, 0.22); border-radius: 0 var(--lb-radius) var(--lb-radius) 0; background: var(--lb-primary); color: #fff; cursor: pointer; } .ach-create-menu:hover { background: var(--lb-primary-hover); } .ach-create-menu svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; } .ach-create-dropdown { position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 20; background: var(--lb-card); border: 1px solid var(--lb-border); border-radius: var(--lb-radius); box-shadow: 0 8px 24px rgba(42, 42, 42, 0.12); overflow: hidden; } .ach-create-dropdown.is-hidden { display: none; } .ach-create-dropdown button { display: block; width: 100%; padding: 0.6rem 0.85rem; border: none; background: transparent; text-align: left; font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--lb-text); cursor: pointer; } .ach-create-dropdown button:hover { background: var(--lb-bg); } .ach-create-dropdown button + button { border-top: 1px solid var(--lb-border); } /* Toolbar filtros — label acima do campo */ .ach-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; justify-content: flex-start; margin: 0; } .ach-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 0 0 auto; } .ach-field--search { flex: 1 1 220px; max-width: 280px; } .ach-search-wrap { position: relative; display: block; } .ach-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--lb-text-muted); pointer-events: none; display: flex; } .ach-search-icon svg { width: 14px; height: 14px; stroke: currentColor; fill: none; } .ach-field__input--search { padding-left: 2rem; } .ach-field__label { font-size: 0.72rem; font-weight: 600; color: var(--lb-text-muted); line-height: 1.2; } .ach-field__input, .ach-field__select { width: 100%; padding: 0.48rem 0.6rem; border: 1px solid var(--lb-border); border-radius: var(--lb-radius); font: inherit; font-size: 0.82rem; background: #fff; color: var(--lb-text); } .ach-field__select { min-width: 118px; padding-right: 1.75rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E6E6E' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.55rem center; } .ach-filters-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0.48rem 0.75rem; border: 1px solid var(--lb-border); border-radius: var(--lb-radius); background: #fff; font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--lb-text); cursor: pointer; white-space: nowrap; } .ach-filters-btn:hover { background: var(--lb-bg); } .ach-filters-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; } /* Tabela utilizadores */ .ach-table-card { background: var(--lb-card); border: 1px solid var(--lb-border); border-radius: var(--lb-radius-card); box-shadow: var(--lb-shadow); overflow: auto; } .ach-users-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; } .ach-users-table thead th { text-align: left; padding: 10px 12px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lb-text-muted); border-bottom: 1px solid var(--lb-border); background: #faf8f5; white-space: nowrap; } .ach-users-table tbody td { padding: 10px 12px; border-bottom: 1px solid #f0ebe4; vertical-align: middle; } .ach-table-row { cursor: pointer; transition: background 0.12s; } .ach-table-row:hover { background: #faf8f5; } .ach-table-row--selected { background: #f3eef8; } .ach-table-row--selected:hover { background: #ede6f4; } .ach-table-empty { text-align: center; color: var(--lb-text-muted); padding: 24px 12px !important; } .ach-user-cell { display: flex; align-items: center; gap: 10px; min-width: 0; } .ach-user-cell__avatar { width: 34px; height: 34px; border-radius: 50%; background: #eceae6; color: #5c5c5c; font-weight: 700; font-size: 0.72rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .ach-user-cell__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .ach-user-cell__name { font-weight: 600; color: var(--lb-text); font-size: 0.84rem; } .ach-user-cell__email { font-size: 0.72rem; color: var(--lb-text-muted); } .ach-col-profile { white-space: nowrap; } .ach-role-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6rem; padding: 2px 6px; margin-right: 4px; border-radius: 4px; background: #eef4fc; color: #3578e5; font-size: 0.68rem; font-weight: 700; } .ach-status { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; white-space: nowrap; } .ach-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lb-success); } .ach-status--frozen { color: #3578e5; } .ach-status--frozen svg { width: 13px; height: 13px; stroke: currentColor; fill: none; } .ach-col-center { text-align: center; } .ach-tfa--ok svg { width: 16px; height: 16px; stroke: var(--lb-success); fill: none; } .ach-tfa--warn { color: var(--lb-warning); font-size: 0.85rem; } .ach-col-date { white-space: nowrap; color: var(--lb-text-muted); font-size: 0.78rem; } .ach-col-actions { width: 44px; text-align: center; } .ach-row-menu { border: 1px solid var(--lb-border); background: #fff; border-radius: 6px; width: 28px; height: 28px; padding: 0; cursor: pointer; color: var(--lb-text-muted); display: inline-flex; align-items: center; justify-content: center; } .ach-row-menu svg { width: 14px; height: 14px; stroke: currentColor; fill: none; } .ach-row-menu:hover { background: var(--lb-bg); } .ach-table-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 0.78rem; color: var(--lb-text-muted); } [data-ach-root].lb-page--ach-users { display: flex; flex-direction: column; align-items: flex-start; } .shell--v2:has(#access-matrix-content .am-tab--access-control.active) .main.main--access-matrix .page-header { margin-bottom: 0.35rem; padding-bottom: 0.35rem; } .shell--v2:has(#access-matrix-content .am-tab--access-control.active) #access-matrix-content .am-subnav { margin-bottom: 0.35rem; } .shell--v2:has(#access-matrix-content .am-tab--access-control.active) .context-sidebar__head:has(+ .context-nav .am-role-list) { margin-bottom: 0.3rem; padding-bottom: 0.3rem; } /* ── Painel detalhe utilizador (mockup Roger) ── */ .ach-user-panel { background: var(--lb-card); border: 1px solid var(--lb-border); border-radius: var(--lb-radius-card); box-shadow: var(--lb-shadow); overflow: hidden; } .ach-user-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--lb-space); padding: var(--lb-space-section); padding-bottom: var(--lb-space); } .ach-user-panel__identity { display: flex; gap: 14px; align-items: flex-start; min-width: 0; } .ach-user-avatar { width: 48px; height: 48px; border-radius: 50%; background: #eceae6; color: #5c5c5c; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .ach-user-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; } .ach-user-name { font-size: 1.05rem; font-weight: 700; color: var(--lb-text); } .ach-user-badge { display: inline-flex; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: var(--lb-success-bg); color: var(--lb-success); } .ach-user-badge--frozen { background: var(--lb-info-bg); color: var(--lb-info); } .ach-user-email { margin: 4px 0 0; font-size: 0.82rem; color: var(--lb-text-muted); } .ach-user-panel__tools { display: flex; gap: 6px; flex-shrink: 0; } .ach-icon-btn { width: 32px; height: 32px; border: none; background: transparent; border-radius: var(--lb-radius); cursor: pointer; color: var(--lb-text-muted); display: flex; align-items: center; justify-content: center; padding: 0; } .ach-icon-btn:hover { background: var(--lb-bg); color: var(--lb-text); } .ach-icon-btn--fav.active { color: #e6a700; } .ach-user-tabs { display: flex; border-bottom: 1px solid var(--lb-border); padding: 0 var(--lb-space-section); } .ach-user-tab { flex: 1; border: none; background: transparent; padding: 12px 8px; font-size: 0.85rem; font-weight: 600; color: var(--lb-text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; } .ach-user-tab.active { color: var(--lb-primary); border-bottom-color: var(--lb-primary); } .ach-user-panel__body { padding: var(--lb-space-section); } .ach-kv-list { display: flex; flex-direction: column; gap: 0; } .ach-kv-row { display: flex; justify-content: space-between; align-items: center; gap: var(--lb-space); padding: 10px 0; border-bottom: 1px solid #f0ebe4; font-size: 0.85rem; } .ach-kv-row:last-child { border-bottom: none; } .ach-kv-label { color: var(--lb-text-muted); font-weight: 500; } .ach-kv-value { color: var(--lb-text); font-weight: 500; text-align: right; } .ach-profile-badge { display: inline-flex; align-items: center; gap: 6px; } .ach-profile-code { display: inline-flex; padding: 2px 7px; border-radius: 4px; background: #eef4fc; color: #3578e5; font-size: 0.72rem; font-weight: 700; } .ach-2fa-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--lb-success); font-weight: 600; } .ach-2fa-ok svg { width: 16px; height: 16px; } .ach-quick-section { padding: var(--lb-space-section); border-top: 1px solid var(--lb-border); } .ach-quick-title { font-size: 0.88rem; font-weight: 700; margin: 0 0 12px; color: var(--lb-text); } .ach-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .ach-quick-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; background: var(--lb-card); border: 1px solid var(--lb-border); border-radius: var(--lb-radius); cursor: pointer; font-size: 0.72rem; font-weight: 600; color: var(--lb-text); text-align: center; line-height: 1.25; } .ach-quick-card:hover { background: var(--lb-bg); border-color: #cdbfb0; } .ach-quick-card svg { width: 20px; height: 20px; stroke: var(--lb-text-muted); fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; } .ach-delete-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; padding: 12px; border: none; border-radius: var(--lb-radius); background: #fdeaea; color: var(--lb-danger); font-size: 0.85rem; font-weight: 600; cursor: pointer; } .ach-delete-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; } .ach-audit-banner { display: flex; align-items: flex-start; gap: 10px; margin: var(--lb-space-section); margin-top: 0; padding: 12px 14px; background: var(--lb-info-bg); border-radius: var(--lb-radius); font-size: 0.78rem; color: #2b6cb0; line-height: 1.45; } .ach-audit-banner svg { flex-shrink: 0; width: 18px; height: 18px; stroke: #3578e5; fill: none; stroke-width: 1.75; margin-top: 1px; } .lb-btn-primary { background: var(--lb-primary); color: #fff; border: none; border-radius: var(--lb-radius); padding: 0.55rem 1rem; font-weight: 600; font-size: 0.875rem; cursor: pointer; } .lb-btn-primary:hover { background: var(--lb-primary-hover); } .lb-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; } .lb-btn-ghost { background: transparent; color: var(--lb-text); border: 1px solid var(--lb-border); border-radius: var(--lb-radius); padding: 0.5rem 0.85rem; font-weight: 600; font-size: 0.85rem; cursor: pointer; } .lb-btn-danger { background: var(--lb-danger-bg); color: var(--lb-danger); border: 1px solid #f0c4c4; border-radius: var(--lb-radius); padding: 0.5rem 0.85rem; font-weight: 600; cursor: pointer; } .lb-badge { display: inline-flex; align-items: center; gap: 4px; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; } .lb-badge--active { background: var(--lb-success-bg); color: var(--lb-success); } .lb-badge--frozen { background: var(--lb-info-bg); color: var(--lb-info); } .lb-badge--high { background: var(--lb-danger-bg); color: var(--lb-danger); } .lb-badge--warn { background: var(--lb-warning-bg); color: #9a7200; } .lb-subnav { display: flex; gap: 4px; padding: 4px; background: var(--lb-card); border: 1px solid var(--lb-border); border-radius: var(--lb-radius); width: fit-content; margin-bottom: var(--lb-space-section); } .lb-subtab { border: none; background: transparent; padding: 0.45rem 0.9rem; border-radius: 6px; font-size: 0.85rem; font-weight: 600; color: var(--lb-text-muted); cursor: pointer; } .lb-subtab.active { background: var(--lb-primary); color: #fff; } .lb-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--lb-space-section); align-items: start; } .lb-feed-list { display: flex; flex-direction: column; gap: var(--lb-space-micro); } .lb-entity-card { padding: var(--lb-space); cursor: pointer; border: 1px solid var(--lb-border); border-radius: var(--lb-radius-card); background: var(--lb-card); } .lb-entity-card:hover { border-color: #cdbfb0; } .lb-entity-card.selected { border-color: var(--lb-primary); box-shadow: 0 0 0 1px var(--lb-primary); } .lb-entity-card__head { display: flex; justify-content: space-between; gap: var(--lb-space); align-items: flex-start; } .lb-entity-card__title { font-weight: 600; font-size: 0.92rem; margin: 0 0 4px; } .lb-entity-card__preview { font-size: 0.82rem; color: var(--lb-text-muted); margin: 0; } .lb-tag-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--lb-space-micro); } .lb-tag { font-size: 0.68rem; padding: 2px 6px; border-radius: 4px; background: var(--lb-bg); color: var(--lb-text-muted); border: 1px solid var(--lb-border); } .lb-detail-panel { position: sticky; top: 0; max-height: calc(100vh - 120px); overflow: auto; } .lb-detail-head { padding: var(--lb-space-section); border-bottom: 1px solid var(--lb-border); } .lb-detail-body { padding: var(--lb-space-section); } .lb-detail-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--lb-border); } .lb-detail-tab { flex: 1; border: none; background: transparent; padding: 0.65rem; font-size: 0.8rem; font-weight: 600; color: var(--lb-text-muted); cursor: pointer; border-bottom: 2px solid transparent; } .lb-detail-tab.active { color: var(--lb-primary); border-bottom-color: var(--lb-primary); } .lb-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lb-space-micro); margin: var(--lb-space) 0; } .lb-action-btn { text-align: left; padding: 0.65rem; border: 1px solid var(--lb-border); border-radius: var(--lb-radius); background: var(--lb-card); font-size: 0.8rem; font-weight: 600; cursor: pointer; } .lb-action-btn:hover { background: var(--lb-bg); } .lb-toolbar { display: flex; flex-wrap: wrap; gap: var(--lb-space-micro); align-items: center; margin-bottom: var(--lb-space); } .lb-search { flex: 1; min-width: 180px; padding: 0.5rem 0.75rem; border: 1px solid var(--lb-border); border-radius: var(--lb-radius); font-size: 0.875rem; } .lb-select { padding: 0.5rem 0.65rem; border: 1px solid var(--lb-border); border-radius: var(--lb-radius); font-size: 0.85rem; background: #fff; } /* Wizard — mockup Roger · Criar utilizador (Spec 040) */ .lb-wizard-root { position: fixed; inset: 0; z-index: 12000; background: rgba(42, 42, 42, 0.38); display: flex; align-items: flex-start; justify-content: center; padding: 20px 16px; overflow-y: auto; } .lb-wizard-card { background: var(--lb-card); border: 1px solid var(--lb-border); border-radius: var(--lb-radius-card); box-shadow: 0 16px 48px rgba(42, 42, 42, 0.16); width: 100%; max-width: 960px; display: flex; flex-direction: column; max-height: calc(100vh - 40px); overflow: hidden; } .lb-wizard-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--lb-border); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-shrink: 0; } .lb-wizard-head__main { display: flex; gap: 12px; align-items: flex-start; min-width: 0; flex: 1; } .lb-wizard-head__icon { width: 40px; height: 40px; border-radius: 10px; background: #f3eef0; color: var(--lb-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .lb-wizard-head__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; } .lb-wizard-head__title { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--lb-text); } .lb-wizard-head__desc { margin: 4px 0 0; font-size: 0.78rem; color: var(--lb-text-muted); line-height: 1.45; max-width: 340px; } .lb-wizard-head__right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; } .lb-wizard-steps { display: flex; gap: 6px; align-items: center; } .lb-wizard-step { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--lb-text-muted); white-space: nowrap; } .lb-wizard-step.active { color: var(--lb-primary); font-weight: 700; } .lb-wizard-step.done { color: var(--lb-text-muted); } .lb-wizard-step-num { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 700; border: 1.5px solid var(--lb-border); background: #fff; color: var(--lb-text-muted); } .lb-wizard-step.active .lb-wizard-step-num { border-color: var(--lb-primary); background: var(--lb-primary); color: #fff; } .lb-wizard-step.done .lb-wizard-step-num { border-color: var(--lb-border); background: #faf8f5; color: var(--lb-text-muted); } .lb-wizard-close { width: 32px; height: 32px; border: none; background: transparent; border-radius: var(--lb-radius); cursor: pointer; color: var(--lb-text-muted); display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; } .lb-wizard-close:hover { background: var(--lb-bg); color: var(--lb-text); } .lb-wizard-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; } .lb-wizard-body { flex: 1; overflow: auto; padding: 20px 24px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; } .lb-wizard-body--success { grid-template-columns: 1fr; display: block; } .lb-wizard-form { min-width: 0; } .lw-section { margin-bottom: 22px; } .lw-section:last-child { margin-bottom: 0; } .lw-section-title { margin: 0 0 12px; font-size: 0.88rem; font-weight: 700; color: var(--lb-text); } .lw-field-grid { display: grid; gap: 12px; } .lw-field-grid--2 { grid-template-columns: 1fr 1fr; } .lw-field { display: flex; flex-direction: column; gap: 5px; } .lw-field--full { grid-column: 1 / -1; } .lw-field > label, .lw-field__label { font-size: 0.78rem; font-weight: 600; color: var(--lb-text); } .lw-req { color: var(--lb-danger); } .lw-field input, .lw-field select, .lw-field textarea, .lb-wizard-form input, .lb-wizard-form select, .lb-wizard-form textarea { width: 100%; padding: 0.52rem 0.65rem; border: 1px solid var(--lb-border); border-radius: var(--lb-radius); font-size: 0.84rem; background: #fff; color: var(--lb-text); box-sizing: border-box; } .lw-field input::placeholder { color: #b0a99e; } .lw-input-icon { position: relative; display: flex; align-items: center; } .lw-input-icon input { padding-right: 2.25rem; } .lw-input-action { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: none; background: transparent; padding: 4px; cursor: pointer; color: var(--lb-text-muted); display: flex; align-items: center; justify-content: center; } .lw-input-action:hover { color: var(--lb-text); } .lw-input-action svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; } .lw-input-trail { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--lb-text-muted); pointer-events: none; display: flex; } .lw-input-trail svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.65; } .lw-status-chips { display: flex; flex-wrap: wrap; gap: 8px; } .lw-status-chip { padding: 0.42rem 0.85rem; border: 1px solid var(--lb-border); border-radius: var(--lb-radius); background: #fff; font: inherit; font-size: 0.78rem; font-weight: 600; color: var(--lb-text-muted); cursor: pointer; } .lw-status-chip:hover { background: var(--lb-bg); } .lw-status-chip.active { border-color: var(--lb-success); background: var(--lb-success-bg); color: var(--lb-success); } .lw-status-chip.active[data-status="frozen"] { border-color: var(--lb-info); background: var(--lb-info-bg); color: var(--lb-info); } .lw-status-chip.active[data-status="pending"], .lw-status-chip.active[data-status="invited"] { border-color: #cdbfb0; background: var(--lb-bg); color: var(--lb-text-muted); } .lw-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0ebe4; cursor: pointer; } .lw-toggle-row:last-child { border-bottom: none; } .lw-toggle-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .lw-toggle-text strong { font-size: 0.82rem; font-weight: 600; color: var(--lb-text); } .lw-toggle-desc { font-size: 0.72rem; color: var(--lb-text-muted); line-height: 1.35; } .lw-toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; } .lw-toggle input { opacity: 0; width: 0; height: 0; position: absolute; } .lw-toggle-slider { position: absolute; inset: 0; background: #d4cdc4; border-radius: 999px; transition: background 0.15s; cursor: pointer; } .lw-toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.15s; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); } .lw-toggle input:checked + .lw-toggle-slider { background: var(--lb-info); } .lw-toggle input:checked + .lw-toggle-slider::before { transform: translateX(18px); } .lw-access-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f0ebe4; } .lw-access-row:last-child { border-bottom: none; } .lw-access-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--lb-bg); color: var(--lb-text-muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .lw-access-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; } .lw-access-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; } /* Resumo lateral */ .lw-summary { background: #faf8f5; border: 1px solid var(--lb-border); border-radius: var(--lb-radius-card); padding: 16px; position: sticky; top: 0; } .lw-summary-title { margin: 0 0 14px; font-size: 0.82rem; font-weight: 700; color: var(--lb-text); } .lw-summary-preview { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--lb-border); } .lw-summary-avatar { width: 42px; height: 42px; border-radius: 50%; background: #3578e5; color: #fff; font-weight: 700; font-size: 0.82rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .lw-summary-name { font-size: 0.88rem; font-weight: 700; color: var(--lb-text); line-height: 1.25; } .lw-summary-email { font-size: 0.72rem; color: var(--lb-text-muted); margin: 2px 0 6px; word-break: break-all; } .lw-summary-kv { margin: 0; display: flex; flex-direction: column; gap: 0; } .lw-summary-kv dt { font-size: 0.72rem; color: var(--lb-text-muted); margin: 0; padding: 6px 0 0; } .lw-summary-kv dd { margin: 0 0 4px; font-size: 0.78rem; font-weight: 600; color: var(--lb-text); } .lw-summary-perms { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--lb-border); } .lw-summary-perms h5 { margin: 0 0 10px; font-size: 0.75rem; font-weight: 700; color: var(--lb-text); } .lw-summary-stat { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; font-size: 0.72rem; } .lw-summary-stat span { color: var(--lb-text-muted); } .lw-summary-stat strong { color: var(--lb-text); font-weight: 700; } .lw-summary-info { display: flex; gap: 8px; margin-top: 14px; padding: 10px 12px; background: var(--lb-info-bg); border-radius: var(--lb-radius); font-size: 0.68rem; color: #2b6cb0; line-height: 1.45; } .lw-summary-info svg { flex-shrink: 0; width: 14px; height: 14px; stroke: #3578e5; fill: none; stroke-width: 1.75; margin-top: 1px; } .lb-wizard-summary { padding: var(--lb-space-section); position: sticky; top: var(--lb-space); } .lb-wizard-foot { padding: 14px 24px; border-top: 1px solid var(--lb-border); display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; background: #faf8f5; } .lb-wizard-foot .lb-btn-primary { display: inline-flex; align-items: center; gap: 6px; } .lb-wizard-success { text-align: center; padding: 32px 16px 24px; } .lb-wizard-body--wide { grid-template-columns: 1fr; } .lb-wizard-body--wide .lw-summary { display: none; } .lw-field-hint { margin: 4px 0 0; font-size: 0.68rem; color: var(--lb-text-muted); line-height: 1.4; } .lw-link-btn { border: none; background: none; padding: 0; font: inherit; font-size: 0.72rem; font-weight: 600; color: var(--lb-info); cursor: pointer; text-decoration: underline; } .lw-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; min-height: 32px; } .lw-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #eef4fc; color: #3578e5; font-size: 0.72rem; font-weight: 600; } .lw-tag button { border: none; background: transparent; color: inherit; cursor: pointer; padding: 0; line-height: 1; font-size: 0.9rem; } .lw-perm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; } .lw-perm-tab { padding: 0.42rem 0.75rem; border: 1px solid var(--lb-border); border-radius: var(--lb-radius); background: #fff; font: inherit; font-size: 0.72rem; font-weight: 600; color: var(--lb-text-muted); cursor: pointer; } .lw-perm-tab.active { border-color: var(--lb-primary); background: #f3eef0; color: var(--lb-primary); } .lw-perm-toolbar { display: flex; gap: 10px; margin-bottom: 12px; align-items: center; } .lw-perm-toolbar input { flex: 1; padding: 0.48rem 0.65rem; border: 1px solid var(--lb-border); border-radius: var(--lb-radius); font-size: 0.82rem; } .lw-module-list { border: 1px solid var(--lb-border); border-radius: var(--lb-radius-card); overflow: hidden; background: #fff; } .lw-module { border-bottom: 1px solid #f0ebe4; } .lw-module:last-child { border-bottom: none; } .lw-module-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: none; background: #faf8f5; font: inherit; text-align: left; cursor: pointer; } .lw-module-head:hover { background: #f5f1eb; } .lw-module-chevron { width: 16px; height: 16px; color: var(--lb-text-muted); transition: transform 0.15s; flex-shrink: 0; } .lw-module.is-open .lw-module-chevron { transform: rotate(90deg); } .lw-module-title { flex: 1; font-size: 0.82rem; font-weight: 700; color: var(--lb-text); } .lw-module-count { font-size: 0.68rem; color: var(--lb-text-muted); font-weight: 500; } .lw-module-body { display: none; padding: 0 14px 10px; } .lw-module.is-open .lw-module-body { display: block; } .lw-action-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f8f5f0; font-size: 0.78rem; } .lw-action-row:last-child { border-bottom: none; } .lw-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .lw-review-col { background: #faf8f5; border: 1px solid var(--lb-border); border-radius: var(--lb-radius-card); padding: 14px; } .lw-review-col h4 { margin: 0 0 10px; font-size: 0.82rem; font-weight: 700; } .lw-review-kv { margin: 0; font-size: 0.78rem; line-height: 1.55; } .lw-review-kv dt { color: var(--lb-text-muted); margin-top: 6px; } .lw-review-kv dt:first-child { margin-top: 0; } .lw-review-kv dd { margin: 0; font-weight: 600; color: var(--lb-text); } .lw-success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--lb-success-bg); color: var(--lb-success); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.75rem; font-weight: 700; } .lw-email-preview { max-width: 420px; margin: 24px auto 0; text-align: left; border: 1px solid var(--lb-border); border-radius: var(--lb-radius-card); overflow: hidden; background: #fff; } .lw-email-preview__head { padding: 12px 16px; background: var(--lb-primary); color: #fff; font-weight: 700; font-size: 0.88rem; } .lw-email-preview__body { padding: 16px; font-size: 0.78rem; line-height: 1.5; color: var(--lb-text); } .lw-confirm-overlay { position: fixed; inset: 0; z-index: 13001; background: rgba(42, 42, 42, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; } .lw-confirm-card { background: #fff; border-radius: var(--lb-radius-card); border: 1px solid var(--lb-border); max-width: 420px; width: 100%; padding: 20px; box-shadow: 0 12px 40px rgba(42, 42, 42, 0.18); } .lw-confirm-card h3 { margin: 0 0 8px; font-size: 0.95rem; } .lw-confirm-card ul { margin: 0 0 16px; padding-left: 1.2rem; font-size: 0.78rem; line-height: 1.55; color: var(--lb-text-muted); } .lw-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; } .lw-tab-placeholder { padding: 24px; text-align: center; color: var(--lb-text-muted); font-size: 0.82rem; border: 1px dashed var(--lb-border); border-radius: var(--lb-radius); } .lb-wizard-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; font-weight: 600; margin-bottom: var(--lb-space); } .lb-modal-sm { position: fixed; inset: 0; z-index: 13000; display: flex; align-items: center; justify-content: center; background: rgba(42, 42, 42, 0.45); } .lb-modal-sm-card { background: var(--lb-card); border-radius: var(--lb-radius-card); padding: var(--lb-space-section); max-width: 420px; width: 90%; border: 1px solid var(--lb-border); } .lb-perm-grid { display: grid; gap: var(--lb-space-micro); } .lb-perm-row { display: grid; grid-template-columns: 1fr 120px; gap: var(--lb-space); align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--lb-border); font-size: 0.85rem; } .lb-audit-list { display: flex; flex-direction: column; gap: var(--lb-space-micro); } .lb-audit-item { padding: var(--lb-space-micro) var(--lb-space); border-left: 3px solid var(--lb-info); background: var(--lb-bg); border-radius: 0 var(--lb-radius) var(--lb-radius) 0; font-size: 0.82rem; } /* Central Operacional layout */ .lb-ops-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 360px; gap: var(--lb-space); min-height: calc(100vh - 140px); } .lb-ops-sidebar { padding: var(--lb-space); } .lb-ops-channel { display: flex; justify-content: space-between; width: 100%; padding: 0.45rem 0.65rem; border: none; background: transparent; border-radius: var(--lb-radius); font-size: 0.82rem; cursor: pointer; text-align: left; } .lb-ops-channel:hover { background: var(--lb-bg); } .lb-ops-channel.active { background: var(--lb-primary); color: #fff; } .lb-ops-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--lb-space-micro); margin-bottom: var(--lb-space); } .lb-ops-kpi { padding: var(--lb-space); text-align: center; } .lb-chat { display: flex; flex-direction: column; gap: var(--lb-space-micro); max-height: 320px; overflow-y: auto; margin-bottom: var(--lb-space); } .lb-chat-bubble { max-width: 85%; padding: 0.55rem 0.75rem; border-radius: var(--lb-radius); font-size: 0.82rem; } .lb-chat-bubble--user { background: var(--lb-success-bg); align-self: flex-start; } .lb-chat-bubble--agent { background: #f0e8ff; align-self: flex-start; } .lb-chat-bubble--system { background: var(--lb-warning-bg); align-self: center; font-size: 0.75rem; } .lb-chat-bubble--operator { background: var(--lb-info-bg); align-self: flex-end; } .lb-sla-bar { height: 6px; border-radius: 3px; background: var(--lb-border); overflow: hidden; margin-top: 4px; } .lb-sla-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--lb-success), var(--lb-warning)); } @media (max-width: 1100px) { .ach-layout { flex-direction: column; max-width: none; } .ach-detail-col { width: 100%; flex: 1 1 auto; position: static; } .ach-page-head { flex-wrap: wrap; } .lb-split { grid-template-columns: 1fr; } .lb-ops-layout { grid-template-columns: 1fr; } .lb-stats-row { grid-template-columns: repeat(2, 1fr); } .lb-ops-kpis { grid-template-columns: repeat(2, 1fr); } .lb-wizard-body { grid-template-columns: 1fr; } .lw-review-grid { grid-template-columns: 1fr; } .lw-field-grid--2 { grid-template-columns: 1fr; } .lb-wizard-head { flex-wrap: wrap; } .lb-wizard-head__right { flex-wrap: wrap; } .lb-wizard-steps { flex-wrap: wrap; } }