/*
 * css/admin.css — páginas Usuarios, Permisos por rol y Usuarios conectados (Auth §7, §10; docs/Auth_ES.md).
 * Solo variables del kit (--chrome-*, --ok/--warn/--err): se ve igual en claro y en oscuro.
 */

/* acciones por fila: se acomodan en varias líneas sin estirar la tabla */
.usr-acts { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.usr-tbl td:last-child { min-width: 180px; }

/* formulario dentro de confirmDialog */
.adm-dlg { width: min(520px, 100%); }
.adm-form { display: flex; flex-direction: column; gap: 10px; }
.adm-form .tb-field { flex-wrap: wrap; justify-content: space-between; }
.adm-form .tb-field > .inp { flex: 1 1 220px; min-width: 0; }
.adm-form .tb-field:has(> input[type=checkbox]) { justify-content: flex-start; }
.adm-form p { margin: 0; }

/* Permisos por rol */
.rol-tbl .rol-c { text-align: center; }
.rol-tbl th.rol-c { white-space: normal; min-width: 72px; font-size: var(--chrome-text-sm); }
.rol-tbl td:first-child { min-width: 200px; }
.rol-tbl tr.rol-off td { color: var(--chrome-fg-muted); }
.rol-tbl tr.rol-off code { text-decoration: line-through; }
.rol-tbl tr.rol-group td { font-weight: 600; color: var(--chrome-fg-muted); background: var(--chrome-bg-subtle, transparent); }
.rol-switch { display: inline-flex; align-items: center; gap: 4px; font-size: var(--chrome-text-sm); cursor: pointer; }
.rol-tbl input[type=checkbox] { accent-color: var(--chrome-accent); }
.rol-tbl input[type=checkbox]:disabled { cursor: not-allowed; }

/* Usuarios conectados: la propia sesión */
tr.ses-own td { background: color-mix(in srgb, var(--chrome-accent) 8%, transparent); }
