/* ==========================================================================
   GMAO BCC — thème institutionnel posé sur Bootstrap 5.3

   Bootstrap fournit la remise à zéro, la typographie, la grille et les
   composants ; ce fichier ne fait que l'habiller aux couleurs de la banque
   et donner leur apparence aux classes propres à l'application (.champ,
   .bouton, .cadre-table, .pastille…), afin qu'aucune page n'ait à changer
   de balisage.
   ========================================================================== */

:root {
  --nuit:       #0B2E59;
  --nuit-clair: #1F4E79;
  --nuit-vif:   #12406F;
  --or:         #C8963E;
  --or-pale:    #F3E6CB;
  --fond:       #EDF1F6;
  --surface:    #FFFFFF;
  --surface-2:  #F6F8FB;
  --trait:      #D2DAE5;
  --encre:      #16202B;
  --encre-doux: #5B677A;
  --ok:         #2E7D32;
  --veille:     #B26A00;
  --critique:   #B23A2E;

  --rayon: .5rem;
  --rayon-petit: .35rem;
  --ombre: 0 1px 2px rgba(11, 46, 89, .05), 0 6px 18px rgba(11, 46, 89, .07);
  --ombre-forte: 0 4px 12px rgba(11, 46, 89, .12), 0 14px 34px rgba(11, 46, 89, .10);
  --mono: "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* Alignement des variables Bootstrap sur la charte */
  --bs-primary: #0B2E59;
  --bs-primary-rgb: 11, 46, 89;
  --bs-body-bg: #EDF1F6;
  --bs-body-color: #16202B;
  --bs-border-color: #D2DAE5;
  --bs-secondary-color: #5B677A;
  --bs-link-color: #12406F;
  --bs-link-hover-color: #0B2E59;
  --bs-border-radius: .5rem;
  --bs-body-font-family: "Segoe UI", system-ui, -apple-system, "Noto Sans", Arial, sans-serif;
  --bs-body-font-size: .95rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --nuit:       #7FB2E5;
    --nuit-clair: #27405C;
    --nuit-vif:   #35557A;
    --or:         #DCA94E;
    --or-pale:    #3A2E17;
    --fond:       #0D141C;
    --surface:    #161F2A;
    --surface-2:  #1D2733;
    --trait:      #2E3B4A;
    --encre:      #E7ECF3;
    --encre-doux: #9BA9BB;
    --ok:         #5FB865;
    --veille:     #E0A030;
    --critique:   #E2695C;
    --ombre: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .3);
    --ombre-forte: 0 4px 12px rgba(0, 0, 0, .45), 0 14px 34px rgba(0, 0, 0, .4);

    --bs-body-bg: #0D141C;
    --bs-body-color: #E7ECF3;
    --bs-border-color: #2E3B4A;
    --bs-secondary-color: #9BA9BB;
    --bs-link-color: #7FB2E5;
    --bs-link-hover-color: #A6CBF0;
    --bs-emphasis-color: #E7ECF3;
  }
}

:root[data-theme="dark"] {
  --nuit: #7FB2E5; --nuit-clair: #27405C; --nuit-vif: #35557A;
  --or: #DCA94E; --or-pale: #3A2E17;
  --fond: #0D141C; --surface: #161F2A; --surface-2: #1D2733; --trait: #2E3B4A;
  --encre: #E7ECF3; --encre-doux: #9BA9BB;
  --ok: #5FB865; --veille: #E0A030; --critique: #E2695C;
  --bs-body-bg: #0D141C; --bs-body-color: #E7ECF3; --bs-border-color: #2E3B4A;
  --bs-secondary-color: #9BA9BB; --bs-link-color: #7FB2E5;
}

html, body {
  min-height: 100%;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--bs-body-font-family);
  font-size: .95rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--nuit-vif); text-decoration: none; }
a:hover { color: var(--nuit); text-decoration: underline; }
h1:focus { outline: none; }

/* ---------- Bandeau applicatif ---------- */

.bandeau {
  background: linear-gradient(180deg, #0B2E59 0%, #0E3767 100%);
  color: #fff;
  border-bottom: 3px solid var(--or);
  padding: .7rem clamp(.9rem, 3vw, 1.8rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.4rem;
  box-shadow: 0 2px 10px rgba(11, 46, 89, .18);
}

.bandeau .marque { display: flex; flex-direction: column; gap: .1rem; }
.bandeau .titre { font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; }
.bandeau .sous-titre { font-size: .74rem; color: #E3D2AE; }
.bandeau nav { display: flex; flex-wrap: wrap; gap: .25rem; margin-left: auto; }

.bandeau nav a {
  color: #D8E4F2;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 500;
  padding: .38rem .8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.bandeau nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  text-decoration: none;
}
.bandeau nav a.actif {
  color: #0B2E59;
  background: var(--or);
  border-color: var(--or);
  font-weight: 600;
}
.bandeau nav a:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }

/* ---------- Barre de session ---------- */

.session {
  background: var(--or-pale);
  color: var(--encre);
  padding: .45rem clamp(.9rem, 3vw, 1.8rem);
  font-size: .8rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  align-items: center;
  border-bottom: 1px solid var(--trait);
}
.session .droite { margin-left: auto; display: flex; align-items: center; gap: .8rem; }
.session form { margin: 0; }

/* ---------- Conteneur ---------- */

main { padding: clamp(1rem, 2.5vw, 1.8rem); max-width: 1500px; margin: 0 auto; }

.entete-page {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 1rem;
  padding-bottom: .6rem;
  margin-bottom: 1.1rem;
  border-bottom: 2px solid var(--or);
}
.entete-page h1 {
  margin: 0; font-size: 1.5rem; font-weight: 600;
  color: var(--nuit); letter-spacing: -.02em;
}
.entete-page .compte {
  margin-left: auto; font-size: .82rem; color: var(--encre-doux);
  font-variant-numeric: tabular-nums;
}

.titre-section {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--nuit);
  border-bottom: 1px solid var(--or); padding-bottom: .3rem;
  margin: 1.6rem 0 .8rem;
}

/* ---------- Cartes de modules ---------- */

.cartes { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }

.carte {
  background: var(--surface);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  padding: .85rem 1rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-height: 84px;
  box-shadow: var(--ombre);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.carte:hover { text-decoration: none; }
.carte.disponible { border-left: 3px solid var(--or); }
.carte.disponible:hover {
  border-color: var(--or); box-shadow: var(--ombre-forte); transform: translateY(-2px);
}
.carte.disponible:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.carte.attente { opacity: .7; cursor: default; box-shadow: none; }
.carte h3 { margin: 0; font-size: .92rem; font-weight: 600; color: var(--nuit); }
.carte.attente h3 { color: var(--encre-doux); }
.carte p { margin: 0; font-size: .78rem; color: var(--encre-doux); line-height: 1.45; }
.carte .phase {
  font-size: .64rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--encre-doux);
}

/* ---------- Alertes ---------- */

.alertes { display: flex; flex-direction: column; gap: .45rem; }

.alerte {
  display: flex; align-items: flex-start; gap: .7rem;
  background: var(--surface); border: 1px solid var(--trait);
  border-left: 4px solid var(--trait); border-radius: var(--rayon-petit);
  padding: .6rem .85rem; font-size: .88rem;
  text-decoration: none; color: inherit;
  box-shadow: var(--ombre);
}
.alerte:hover { box-shadow: var(--ombre-forte); text-decoration: none; }
.alerte.critique { border-left-color: var(--critique); }
.alerte.critique .texte { color: var(--critique); font-weight: 600; }
.alerte.vigilance { border-left-color: var(--veille); }
.alerte.vigilance .texte { color: var(--veille); }
.alerte.information { border-left-color: var(--ok); }
.alerte .glyphe { font-weight: 700; }

/* ---------- Tuiles d'indicateurs ---------- */

.tuiles { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.tuile {
  background: var(--surface); border: 1px solid var(--trait);
  border-radius: var(--rayon); padding: .8rem 1rem;
  display: flex; flex-direction: column; gap: .15rem;
  box-shadow: var(--ombre);
}
.tuile .intitule {
  font-size: .64rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--encre-doux);
}
.tuile .valeur {
  font-size: 1.9rem; font-weight: 600; color: var(--nuit);
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.tuile.non-calculable .valeur { color: var(--encre-doux); }
.tuile .unite { font-size: .72rem; color: var(--encre-doux); }

/* ---------- Filtres et formulaires ---------- */

.filtres {
  display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end;
  background: var(--surface); border: 1px solid var(--trait);
  border-radius: var(--rayon); box-shadow: var(--ombre);
  padding: .9rem 1rem; margin-bottom: 1rem;
}
.filtre { display: flex; flex-direction: column; gap: .25rem; min-width: 160px; }
.filtre.large { flex: 1 1 260px; }
.filtre label {
  font-size: .64rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--encre-doux);
}

.formulaire {
  display: grid; gap: .9rem 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  background: var(--surface); border: 1px solid var(--trait);
  border-radius: var(--rayon); box-shadow: var(--ombre);
  padding: 1.1rem 1.2rem;
}
.formulaire .pleine-largeur { grid-column: 1 / -1; }
.champ { display: flex; flex-direction: column; gap: .3rem; }
.champ label {
  font-size: .8rem; font-weight: 500; color: var(--encre-doux); margin: 0;
}
.champ.obligatoire label { font-weight: 600; color: var(--encre); }
.champ .marque-obligatoire { color: var(--critique); font-weight: 700; }
.champ .aide { font-size: .74rem; color: var(--encre-doux); }

/* Les champs sont des balises nues : on leur donne l'allure d'un
   .form-control Bootstrap sans toucher au balisage des pages. */
input:not([type=checkbox]):not([type=radio]), select, textarea {
  font-family: inherit; font-size: .9rem; color: var(--encre);
  background: var(--surface); border: 1px solid var(--trait);
  border-radius: var(--rayon-petit); padding: .45rem .7rem; width: 100%;
  line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235B677A' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  background-size: 14px 11px;
  padding-right: 2rem;
}
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--or);
  box-shadow: 0 0 0 .2rem rgba(200, 150, 62, .25);
}
input[type=checkbox] {
  width: 1.1rem; height: 1.1rem; accent-color: var(--nuit); cursor: pointer;
}
input[readonly], input:disabled, select:disabled, textarea[readonly] {
  background: var(--surface-2); color: var(--encre-doux);
}
textarea { min-height: 5rem; resize: vertical; }

.valid.modified:not([type=checkbox]) { outline: none; }
.invalid { border-color: var(--critique) !important; }
.validation-message, .erreur-champ { color: var(--critique); font-size: .78rem; }

/* ---------- Boutons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }

.bouton {
  font-family: inherit; font-size: .86rem; font-weight: 500;
  background: var(--surface); color: var(--nuit);
  border: 1px solid var(--trait); border-radius: var(--rayon-petit);
  padding: .45rem 1rem; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: border-color .15s, background .15s, box-shadow .15s, color .15s;
}
.bouton:hover:not(:disabled) {
  border-color: var(--or); background: var(--surface-2);
  color: var(--nuit); text-decoration: none;
}
.bouton:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.bouton:disabled { opacity: .5; cursor: default; }
.bouton.primaire {
  background: #0B2E59; color: #fff; border-color: #0B2E59;
  box-shadow: 0 1px 2px rgba(11, 46, 89, .2);
}
.bouton.primaire:hover:not(:disabled) {
  background: var(--nuit-vif); border-color: var(--nuit-vif); color: #fff;
}
.bouton.danger { color: var(--critique); border-color: var(--critique); background: var(--surface); }
.bouton.danger:hover:not(:disabled) { background: var(--critique); color: #fff; border-color: var(--critique); }

/* ---------- Tableaux ---------- */

.cadre-table {
  overflow-x: auto; background: var(--surface);
  border: 1px solid var(--trait); border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.cadre-table table { margin: 0; }
table { border-collapse: collapse; width: 100%; font-size: .86rem; color: var(--encre); }
thead th {
  background: var(--nuit-clair); color: #fff; text-align: left;
  padding: .55rem .7rem; font-weight: 600; white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
tbody td { padding: .45rem .7rem; border-bottom: 1px solid var(--trait); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface-2); }
tfoot td { padding: .5rem .7rem; border-top: 2px solid var(--trait); background: var(--surface-2); }
td.numerique, th.numerique { text-align: right; font-variant-numeric: tabular-nums; }
td code { font-family: var(--mono); font-size: .82rem; color: var(--nuit-vif); }

.pastille {
  display: inline-block; padding: .12rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; border: 1px solid currentColor; white-space: nowrap;
}
.pastille.ok { color: var(--ok); background: rgba(46, 125, 50, .08); }
.pastille.vigilance { color: var(--veille); background: rgba(178, 106, 0, .08); }
.pastille.critique { color: var(--critique); background: rgba(178, 58, 46, .08); }
.pastille.neutre { color: var(--encre-doux); background: rgba(91, 103, 122, .08); }

/* ---------- États vides et messages ---------- */

.vide {
  background: var(--surface); border: 1px dashed var(--trait);
  border-radius: var(--rayon);
  padding: 1.8rem; text-align: center; color: var(--encre-doux); font-size: .9rem;
}

.encart {
  background: var(--surface); border: 1px solid var(--trait);
  border-left: 4px solid var(--or); border-radius: var(--rayon-petit);
  padding: .8rem 1rem; font-size: .88rem; margin: .9rem 0;
  box-shadow: var(--ombre);
}
.encart.erreur { border-left-color: var(--critique); }
.encart.erreur strong { color: var(--critique); }

/* ---------- Page de connexion ---------- */

.page-connexion {
  min-height: 100vh; display: grid; place-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #0B2E59 0%, #133F76 55%, #1F4E79 100%);
}
.carte-connexion {
  background: var(--surface); border: 1px solid var(--trait);
  border-radius: var(--rayon); overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .3);
  width: 100%; max-width: 400px;
}
.carte-connexion .entete {
  background: #0B2E59; color: #fff; padding: 1.2rem 1.4rem; border-bottom: 3px solid var(--or);
}
.carte-connexion .entete h1 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.carte-connexion .entete p { margin: .2rem 0 0; font-size: .78rem; color: #E3D2AE; }
.carte-connexion form { padding: 1.4rem; display: flex; flex-direction: column; gap: .9rem; }
.carte-connexion .bouton { justify-content: center; width: 100%; }
.carte-connexion footer {
  padding: .8rem 1.4rem; border-top: 1px solid var(--trait);
  font-size: .76rem; color: var(--encre-doux); background: var(--surface-2);
}

/* ---------- Pied de page ---------- */

.pied {
  margin-top: 2.5rem; padding: 1rem clamp(.9rem, 3vw, 1.8rem);
  border-top: 1px solid var(--trait); font-size: .78rem; color: var(--encre-doux);
  display: flex; flex-wrap: wrap; gap: .3rem 1rem;
}

/* ---------- Utilitaires ---------- */

.discret { color: var(--encre-doux); }
.mono { font-family: var(--mono); }
.rien-a-signaler { color: var(--ok); font-weight: 600; }

#blazor-error-ui {
  background: #FFF4CE; border-top: 3px solid var(--critique);
  bottom: 0; display: none; left: 0; padding: .8rem 1.2rem;
  position: fixed; width: 100%; z-index: 1000; color: #16202B;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1rem; top: .8rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Documents imprimables ---------- */

.page-impression {
  max-width: 900px; margin: 1.5rem auto; padding: clamp(1.2rem, 3vw, 2.2rem);
  background: var(--surface); color: var(--encre);
  border: 1px solid var(--trait); border-radius: var(--rayon);
  box-shadow: var(--ombre);
}
.page-impression .no-imprimer {
  display: flex; gap: .5rem; margin-bottom: 1.4rem;
}
.entete-document {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; border-bottom: 3px solid var(--or); padding-bottom: .8rem; margin-bottom: 1.2rem;
}
.entete-document .identite { font-size: .8rem; color: var(--encre-doux); line-height: 1.5; }
.entete-document .identite strong { display: block; font-size: 1.05rem; color: var(--nuit); }
.entete-document .titre-document { text-align: right; }
.entete-document .titre-document h1 {
  margin: 0; font-size: 1.2rem; font-weight: 600; color: var(--nuit); letter-spacing: -.01em;
}
.entete-document .titre-document .numero {
  font-family: var(--mono); font-size: .98rem; font-weight: 700;
}
.entete-document .titre-document .discret { display: block; font-size: .76rem; }

.bloc-document {
  border: 1px solid var(--trait); border-radius: var(--rayon-petit);
  padding: .9rem 1rem; margin-bottom: 1rem;
}
.bloc-document h2 {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--nuit); margin: 0 0 .7rem;
}
.grille-document {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .6rem 1.2rem; font-size: .86rem;
}
.grille-document .libelle { font-size: .7rem; color: var(--encre-doux); }
.grille-document .valeur { font-weight: 600; }
.texte-document { font-size: .86rem; white-space: pre-wrap; margin: .8rem 0 0; }

.signatures-document {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem;
  margin-top: 2rem;
}
.signatures-document .case {
  border-top: 1px solid var(--encre); padding-top: .4rem; font-size: .8rem; min-height: 3.5rem;
}
.signatures-document .case .role { font-weight: 600; }

/* Réquisition de matériel / fournitures : calquée sur l'imprimé papier de la DSG */
.requisition { font-size: .9rem; color: var(--encre); }
.requisition .souligne { text-decoration: underline; text-underline-offset: .2em; }
.requisition .pointille {
  display: inline-block; min-width: 9rem; padding: 0 .4rem;
  border-bottom: 1px dotted var(--encre); font-weight: 600;
}
.requisition .pointille.large { flex: 1; min-width: 0; }
.requisition-entete {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.6rem;
}
.requisition-entete .identite { line-height: 1.5; }
.requisition-entete .identite strong { display: block; font-size: 1rem; color: var(--nuit); }
.requisition-entete .lieu-date { white-space: nowrap; padding-top: .2rem; }
.requisition-titre {
  margin: 0 0 1.4rem; text-align: center; font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; line-height: 1.4; color: var(--nuit);
}
.requisition-titre .numero {
  display: block; margin-top: .5rem; text-transform: none; letter-spacing: 0;
  font-weight: 600; font-size: .95rem;
}
.requisition-titre .numero .pointille { font-family: var(--mono); }
.requisition-ligne { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .5rem; }
.requisition-ligne .libelle { white-space: nowrap; }
.requisition-reference { font-size: .78rem; color: var(--encre-doux); margin-bottom: .9rem; }
.requisition-table {
  width: 100%; border-collapse: collapse; margin-bottom: 1.8rem; font-size: .86rem;
}
.requisition-table th, .requisition-table td {
  border: 1px solid var(--encre); padding: .3rem .5rem; vertical-align: top;
}
.requisition-table th {
  background: var(--surface-2); color: var(--encre); font-weight: 700;
  text-align: center; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em;
  line-height: 1.25;
}
.requisition-table td { height: 1.9rem; }
.requisition-table .col-num { width: 2.6rem; text-align: center; font-family: var(--mono); }
.requisition-table .col-qte { width: 6.5rem; text-align: center; }
.requisition-table .col-visa { width: 5.5rem; }
.requisition-table .col-obs { width: 22%; }
.requisition-pied {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; align-items: end;
  margin-bottom: 2.2rem; font-size: .88rem;
}
.requisition-pied .reception div { margin-top: .45rem; }
.requisition-pied .reception .pointille { min-width: 12rem; }
.requisition-pied .visa, .requisition-pied .signature {
  text-align: center; min-height: 4.5rem; display: flex; align-items: flex-start;
  justify-content: center; line-height: 1.3;
}
.requisition-accord { text-align: center; font-weight: 600; font-size: .9rem; }

@media print {
  .requisition-table th { background: #fff !important; }
  .requisition-table th, .requisition-table td { border-color: #000; }
  .requisition .pointille { border-bottom-color: #000; }
  html, body { background: #fff; color: #000; font-size: 11pt; }
  .bandeau, .session, .pied, #blazor-error-ui, .no-imprimer,
  #components-reconnect-modal { display: none !important; }
  main { padding: 0; max-width: none; }
  .page-impression {
    max-width: none; padding: 0; margin: 0;
    border: none; box-shadow: none; background: #fff;
  }
  .bloc-document, .entete-document, .cadre-table { border-color: #000; box-shadow: none; }
  thead th { background: #fff !important; color: #000 !important; border-bottom: 2px solid #000; }
  a { color: inherit; text-decoration: none; }
}

/* --------------------------------------------------------------------------
   Matrice des habilitations
   -------------------------------------------------------------------------- */

.matrice th { white-space: nowrap; }

.matrice th .lien-discret {
  background: none;
  border: 0;
  padding: 0;
  font-size: .75rem;
  color: var(--encre-doux);
  text-decoration: underline;
  cursor: pointer;
}

.matrice th .lien-discret:hover { color: var(--nuit); }

.matrice .colonne-ressource { min-width: 16rem; }

.matrice .ligne-groupe td {
  background: var(--surface-2);
  color: var(--encre-doux);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.matrice td.numerique input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--nuit);
}

.matrice .sans-objet { color: var(--trait); }

.matrice select { font-size: .85rem; }
