/* Paramètres › Utilisateurs (php/user.php) : même vocabulaire que les écrans Secteurs (secteurs.css : .sect-fiche,
   .sect-badge, palette verte #0f5132, bordures #e2e8f0). */

.ut { margin-top: 12px; }
.ut-bloc { margin-top: 14px; padding: 12px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; }

.ut-table { font-size: .875rem; margin-bottom: 0; }
.ut-table thead th { color: #64748b; font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.ut-table td { vertical-align: middle; }
.ut-table tbody tr { cursor: pointer; }
.ut-table tbody tr:hover > * { background: #f0fdf4 !important; }
/* Comptes désactivés : informations grisées, les boutons restent nets */
.ut-table tr[data-statut="0"] td:not(.ut-col-actions) { opacity: .5; }

.ut-qui { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.ut-qui__texte { min-width: 0; }
.ut-nom { font-weight: 700; color: #0f172a; white-space: nowrap; }
.ut-pale { color: #64748b; font-size: .78rem; }
.ut-vous { display: inline-block; padding: 0 7px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: .68rem; font-weight: 700; vertical-align: middle; }

/* Pastille d'initiales, couleur selon le type de compte */
.ut-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; letter-spacing: .03em; color: #fff; background: #64748b; }
.ut-avatar--boss { background: #7c3aed; }
.ut-avatar--admin { background: #1d4ed8; }
.ut-avatar--admin2 { background: #0f766e; }
.ut-avatar--finance { background: #0f5132; }

.ut-type { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: #f1f5f9; color: #334155; white-space: nowrap; }
.ut-type--boss { background: #ede9fe; color: #6d28d9; }
.ut-type--admin { background: #dbeafe; color: #1d4ed8; }
.ut-type--admin2 { background: #ccfbf1; color: #0f766e; }
.ut-type--finance { background: #dcfce7; color: #166534; }

/* Modules accessibles : plein = toutes les sections, sinon « n/total » */
.ut-modules { display: flex; flex-wrap: wrap; gap: 4px; min-width: 230px; max-width: 360px; }
.ut-module { display: inline-block; padding: 1px 8px; border-radius: 6px; border: 1px solid #e2e8f0; background: #fff; color: #334155; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.ut-module small { color: #94a3b8; font-weight: 600; }
.ut-module--complet { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }

.ut-valide { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.ut-badge--off { background: #f1f5f9; color: #64748b; }

.ut-col-actions { white-space: nowrap; text-align: right; }
.ut-btn { border-radius: 999px; padding: 1px 12px; font-size: .76rem; font-weight: 600; }
.ut-btn--modifier { background: #fff; border: 1px solid #cbd5e1; color: #334155; }
.ut-btn--modifier:hover { border-color: #0f5132; color: #0f5132; background: #f0fdf4; }
.ut-btn--off { background: #fff; border: 1px solid #fecaca; color: #b91c1c; }
.ut-btn--off:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
.ut-btn--on { background: #fff; border: 1px solid #bbf7d0; color: #166534; }
.ut-btn--on:hover { background: #0f5132; border-color: #0f5132; color: #fff; }
.ut-votre { display: inline-block; margin-left: 6px; }

/* Barre DataTables (recherche, nombre par page, pagination) */
.ut .dataTables_wrapper .dataTables_filter input { border: 1px solid #cbd5e1; border-radius: 999px; padding: 3px 12px; }
.ut .dataTables_wrapper .dataTables_length select { border: 1px solid #cbd5e1; border-radius: 8px; padding: 2px 6px; }
.ut .dataTables_wrapper .dataTables_info { color: #64748b; font-size: .8rem; }
.ut .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.ut .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { background: #0f5132 !important; border-color: #0f5132 !important; color: #fff !important; border-radius: 8px; }

/* ---------- Fenêtre « Modifier utilisateur » (php/mod-user.php, accès : php/accessListShow.php) ---------- */
.mu .modal-header.mu-tete { align-items: center; padding: 16px 20px; }
.mu-identite { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mu-identite .ut-avatar { width: 48px; height: 48px; font-size: 1rem; }
.mu-nom { margin: 0; font-size: 1.15rem; font-weight: 800; color: #0f172a; line-height: 1.2; }
.mu-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }

.mu-carte { padding: 12px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; }
.mu-carte__tete { margin-bottom: 8px; }
.mu-carte__titre, .mu-section__titre { font-weight: 700; color: #0f172a; font-size: .95rem; }
.mu-carte__aide, .mu-section__aide { color: #64748b; font-size: .8rem; }
.mu-mdp { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mu-mdp .form-control { max-width: 320px; border-radius: 10px; }
.mu-section { margin: 16px 2px 8px; }
.mu-chargement { color: #64748b; font-size: .875rem; padding: 10px 2px; display: flex; align-items: center; gap: 8px; }

.mu-acces-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.mu-acces { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; }
.mu-acces--large { grid-column: 1 / -1; border-color: #fde68a; background: #fffdf5; }
.mu-acces__tete { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.mu-acces__texte { flex: 1; min-width: 0; }
.mu-acces__titre { font-weight: 700; color: #0f172a; display: flex; align-items: center; gap: 6px; }
.mu-acces__aide { color: #64748b; font-size: .76rem; line-height: 1.3; }
.mu-acces__pastille { flex: none; width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .75rem; letter-spacing: .02em; color: #fff; background: #0f5132; }
.mu-acces--transfert .mu-acces__pastille { background: #1d4ed8; }
.mu-acces--loyer .mu-acces__pastille { background: #b45309; }
.mu-acces--secteurs .mu-acces__pastille { background: #0f766e; }
.mu-acces--dg .mu-acces__pastille { background: #7c3aed; }
.mu-acces--validation .mu-acces__pastille { background: #d97706; }
.mu-compte { display: inline-block; padding: 0 7px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .7rem; font-weight: 700; }
.mu-compte.is-plein { background: #dcfce7; color: #166534; }
.mu-compte.is-vide { background: #f1f5f9; color: #94a3b8; }

.mu-acces__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.mu-interrupteur { display: flex; align-items: center; gap: 2px; margin: 0; padding: 6px 8px; border: 1px solid #e2e8f0; border-radius: 9px; background: #f8fafc; cursor: pointer; font-size: .82rem; color: #334155; transition: border-color .15s, background .15s; }
.mu-interrupteur:hover { border-color: #0f5132; }
.mu-interrupteur:has(input:checked) { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; font-weight: 600; }
.mu-interrupteur.is-bloque { cursor: not-allowed; opacity: .65; }
.mu-interrupteur.is-bloque:hover { border-color: #e2e8f0; }
.mu-interrupteur .form-check-input { cursor: inherit; }
.mu-interrupteur .form-check-input:checked { background-color: #0f5132; border-color: #0f5132; }

.mu-note { margin-bottom: 8px; padding: 4px 10px; border-radius: 8px; background: #f1f5f9; color: #475569; font-size: .78rem; }
.mu-note--ok { background: #dcfce7; color: #166534; }
.mu-note--alerte { background: #fef3c7; color: #92400e; }

.mu .modal-footer.mu-pied { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border-top: 1px solid #e2e8f0; padding: 12px 20px; }
.mu-pied__droite { display: flex; gap: 8px; margin-left: auto; }
.mu-btn-statut { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; }
.mu-btn-statut[style*="none"] { display: none !important; }
.mu .mu-btn-statut.btn-outline-danger { background: #fff; border: 1px solid #fecaca; color: #b91c1c; }
.mu .mu-btn-statut.btn-outline-danger:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
.mu .mu-btn-statut.btn-outline-success { background: #fff; border: 1px solid #bbf7d0; color: #166534; }
.mu .mu-btn-statut.btn-outline-success:hover { background: #0f5132; border-color: #0f5132; color: #fff; }
