/* Espace cabinet – rubrique Paramètres (Accès et rôles) */
.cab-onglets { display: flex; gap: 4px; flex-wrap: wrap; background: #fff; border: 1px solid var(--pj-trait); border-radius: 12px; padding: 5px; margin-bottom: 20px; }
.cab-onglets a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; text-decoration: none; color: var(--pj-gris); font-weight: 600; font-size: 14.5px; }
.cab-onglets a .pj-ico { color: var(--pj-gris-clair); }
.cab-onglets a:hover { background: var(--pj-fond-app); color: var(--pj-marine); }
.cab-onglets a.est-actif { background: var(--pj-marine); color: #fff; }
.cab-onglets a.est-actif .pj-ico { color: var(--pj-or); }

.cab-grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.cab-grille-2 .pj-form, .cab-fiche .pj-form { display: grid; gap: 14px; }
.cab-discret { color: var(--pj-gris-clair); font-size: 13.5px; }
.cab-nowrap { white-space: nowrap; }
.pj-pastille { white-space: nowrap; }
.pj-pastille--gris { background: #EEF0F3; color: #5B6574; }
.pj-champ small { font-weight: 400; color: var(--pj-gris-clair); }

.cab-identite { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--pj-fond-app); border-radius: 10px; margin-bottom: 16px; }
.cab-identite > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cab-identite strong { font-size: 17px; color: var(--pj-marine); }
.cab-identite small { color: var(--pj-gris-clair); }
.cab-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--pj-marine); color: var(--pj-or); display: grid; place-items: center; font: 700 18px var(--pj-sans); flex: none; }
.cab-sessions { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--pj-trait); }

.cab-role { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.cab-role--marine { background: var(--pj-marine); color: var(--pj-or); }
.cab-role--or { background: var(--pj-or-clair); color: var(--pj-or-fonce); }
.cab-role--gris { background: #EEF0F3; color: #5B6574; }

.cab-barre { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cab-barre__droite { display: flex; gap: 8px; flex-wrap: wrap; }
.cab-filtres { display: flex; gap: 4px; background: #fff; border: 1px solid var(--pj-trait); border-radius: 10px; padding: 4px; }
.cab-filtres a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 7px; text-decoration: none; color: var(--pj-gris); font-weight: 600; font-size: 14.5px; }
.cab-filtres a.est-actif { background: var(--pj-marine); color: #fff; }
.cab-compteur { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--pj-or-clair); color: var(--pj-or-fonce); font-size: 12px; display: inline-grid; place-items: center; }
.cab-cherche { flex: 1; max-width: 380px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1.5px solid #D5DAE2; border-radius: 10px; background: #fff; color: var(--pj-gris-clair); }
.cab-cherche:focus-within { border-color: var(--pj-or); }
.cab-cherche input { flex: 1; border: 0; outline: none; font: 15px var(--pj-sans); background: transparent; min-width: 0; }
.cab-total { margin: 0; color: var(--pj-gris); }

.pj-panneau.cab-panneau-liste { padding: 6px 8px; overflow-x: auto; }
.cab-tableau td small { display: block; color: var(--pj-gris-clair); font-size: 12.5px; }
.cab-nom { font-weight: 700; text-decoration: none; }
.cab-col-ouvrir { text-align: right; }
.cab-btn-petit { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.cab-details { max-width: 460px; font-size: 14px; }
.cab-activite { list-style: none; margin: 0 0 12px; padding: 0; }
.cab-activite li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--pj-trait); }
.cab-activite small { color: var(--pj-gris-clair); font-size: 13px; white-space: nowrap; }

.cab-retour { margin: 0 0 14px; }
.cab-retour a { text-decoration: none; font-weight: 600; font-size: 14.5px; }
.cab-fiche { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.cab-etat-compte { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: -4px 0 16px; }
.cab-resume-droits { padding: 12px 14px; background: var(--pj-fond-app); border-radius: 8px; font-size: 14px; color: var(--pj-gris); line-height: 1.55; }
.cab-resume-droits strong { color: var(--pj-marine); }
.cab-actions { display: grid; gap: 10px; margin: 6px 0 12px; }
.cab-btn-plein { width: 100%; }
.pj-btn.cab-btn-danger { background: #fff; border-color: var(--pj-rouge); color: var(--pj-rouge); }
.pj-btn.cab-btn-danger:hover { background: var(--pj-rouge); color: #fff; }

/* Matrice des droits */
.cab-matrice-defile { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.cab-matrice { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; min-width: 820px; }
.cab-matrice thead th { position: sticky; top: 0; background: var(--pj-marine); color: #fff; font-size: 13px; font-weight: 600; padding: 12px 8px; text-align: center; line-height: 1.25; }
.cab-matrice thead th:first-child { text-align: left; border-radius: 8px 0 0 0; padding-left: 14px; }
.cab-matrice thead th:last-child { border-radius: 0 8px 0 0; }
.cab-matrice tbody th { text-align: left; font-weight: 500; padding: 10px 14px; color: var(--pj-encre); }
.cab-matrice td { text-align: center; padding: 6px; }
.cab-matrice tbody tr:not(.cab-matrice__groupe):hover { background: #FAFBFC; }
.cab-matrice tbody tr td, .cab-matrice tbody tr th { border-bottom: 1px solid var(--pj-trait); }
.cab-matrice__groupe th { background: var(--pj-or-clair); color: var(--pj-or-fonce) !important; font-size: 12.5px !important; text-transform: uppercase; letter-spacing: .08em; font-weight: 700 !important; padding: 8px 14px !important; }
.cab-case { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; }
.cab-case:hover { background: var(--pj-fond-app); }
.cab-case input { width: 20px; height: 20px; accent-color: var(--pj-marine); cursor: pointer; }
.cab-case--verrou { cursor: not-allowed; position: relative; }
.cab-case--verrou::after { content: "🔒"; position: absolute; font-size: 10px; right: 2px; top: 2px; }
.cab-barre-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.cab-form-secondaire { margin-top: 10px; display: flex; justify-content: flex-end; }

/* Journal */
.cab-filtres-journal { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; }
.cab-filtres-journal__boutons { display: flex; gap: 8px; }
.cab-pagination { display: flex; gap: 6px; margin: 14px 0; }
.cab-pagination a { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid var(--pj-trait); border-radius: 8px; text-decoration: none; font-weight: 600; background: #fff; }
.cab-pagination a.est-actif { background: var(--pj-marine); color: #fff; border-color: var(--pj-marine); }

/* Sécurité */
.cab-bloques { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cab-bloques li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #F3C9C9; background: #FDF5F5; border-radius: 8px; }
.cab-bloques li span { display: flex; flex-direction: column; }
.cab-bloques small { color: var(--pj-gris); }

@media (max-width: 1100px) {
	.cab-fiche { grid-template-columns: 1fr; }
	.cab-filtres-journal { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	.cab-grille-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.cab-onglets a { flex: 1 1 45%; justify-content: center; padding: 10px 8px; font-size: 13.5px; }
	.cab-cherche { max-width: none; width: 100%; order: 3; }
	.cab-barre > .pj-btn { width: 100%; }
	.cab-filtres-journal { grid-template-columns: 1fr; }
	.pj-panneau.cab-panneau-liste { padding: 0; background: transparent; border: 0; overflow: visible; }
	.cab-tableau, .cab-tableau tbody { display: block; width: 100%; }
	.cab-tableau thead { display: none; }
	.cab-tableau tr { display: block; background: #fff; border: 1px solid var(--pj-trait); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
	.cab-tableau td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 6px 0; border: 0; text-align: right; white-space: normal; }
	.cab-tableau td::before { content: attr(data-label); flex: none; text-align: left; font-weight: 600; color: var(--pj-gris-clair); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
	.cab-tableau td.cab-col-ouvrir::before { content: none; }
	.cab-tableau td.cab-col-ouvrir .pj-btn { width: 100%; }
	.cab-details { max-width: none; }
}
