/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/*
 * "Ver credencial" (segredos da credencial) é admin-only. A linha da credencial
 * é broadcastada por Turbo Stream para todos os usuários da conta, num contexto
 * sem current_user — então o item é sempre renderizado no HTML e a visibilidade
 * por papel é decidida aqui no cliente, via data-user-role no <body>. O acesso
 * de fato é garantido server-side (CredentialSecretsController#view_secrets?).
 */
li:has(> [data-modal-target^="credential-secrets-"]) {
  display: none;
}
body[data-user-role="admin"] li:has(> [data-modal-target^="credential-secrets-"]) {
  display: block;
}
