/* B-EQUIPE-1 — Équipe offre Base : avatar de fiche, onglets, carte
   « Autorisations caisse » (profil fixe et grille Premium) sans débordement
   horizontal, du bureau jusqu'à 375 px. Couleurs : variables du design
   system uniquement. */

/* Avatar de fiche : réutilise tel quel le rond de la carte de la liste
   (`.staff-card-photo-wrap` / `.staff-card-avatar`, base_staff.html). */

/* Autorisations caisse. */
.cash-perm-card { max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.cash-perm-card fieldset { min-width: 0; margin: 0 0 var(--pds-space-3); padding: 0; border: 0; }
.cash-perm-card .pds-choice-grid { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.cash-perm-card .pds-choice { min-width: 0; }
.cash-perm-fixed { list-style: none; margin: var(--pds-space-3) 0; padding: 0; display: grid; gap: var(--pds-space-2); }
.cash-perm-fixed__row {
    display: flex;
    align-items: flex-start;
    gap: var(--pds-space-2);
    min-width: 0;
    padding: var(--pds-space-2) var(--pds-space-3);
    border: 1px solid var(--pds-border);
    border-radius: var(--pds-radius-md);
    background: var(--pds-surface);
}
.cash-perm-fixed__row > span:last-child { min-width: 0; }
.cash-perm-fixed__mark { flex: 0 0 auto; font-weight: 700; color: var(--pds-danger); }
.cash-perm-fixed__mark--yes { color: var(--pds-success); }

/* Bloc « Accès » de la fiche. */
.staff-access-table { width: 100%; table-layout: fixed; }
.staff-access-table td { overflow-wrap: anywhere; }

/* Formulaire : création bloquée au plafond. */
.staff-form-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.staff-form-blocked { opacity: 0.55; pointer-events: none; }
[data-staff-create-blocked] button[type="submit"][disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(0.6);
}

@media (max-width: 767.98px) {
    .staff-access-table td:first-child { width: 42%; }
}
