/* Chantier « gestion2 » (v2.8) : alertes des administrateurs, poste éteint, brouillons à reprendre, Gestion en sections. */

/* ---- Alertes (accueil des administrateurs et Gestion) : une ligne par problème, la couleur dit la gravité */
.g2-a-surveiller{margin:4px 0 10px;padding:4px 14px 2px;border-radius:12px;background:#fff7f2;border:1px solid #fed7aa}
.g2-a-surveiller .sous-titre{margin:8px 0 2px;font-size:14px;display:flex;justify-content:space-between;align-items:center}
.g2-a-surveiller .sous-titre a{color:var(--orange-fonce);font-weight:700;font-size:13.5px;text-decoration:none}
.g2-alertes li{padding:10px 0;gap:6px 12px;align-items:flex-start}
.g2-a-surveiller .g2-alertes li:first-child{border-top:0}
.g2-alertes .g2-point{flex:none;width:10px;height:10px;border-radius:50%;margin-top:6px;background:var(--orange)}
.g2-alertes .g2-rouge .g2-point{background:var(--rouge)}
.g2-alertes .g2-txt{flex:1;min-width:0}
.g2-alertes .g2-txt strong{display:block;font-size:15px}
.g2-alertes .g2-txt .muet{font-size:13.5px}
.g2-alertes .bouton{flex:none}

/* ---- Poste éteint (Ma journée des employées) */
.g2-poste-eteint{margin:6px 0 4px;padding:10px 12px;border-radius:10px;background:#fff1f2;color:#881337;font-weight:600;line-height:1.45}
.g2-poste-eteint .pastille{margin-right:6px}
.a-faire-liste .quand.g2-bloque,.liste .quand.g2-bloque{color:#9f1239;font-weight:600}

/* ---- Brouillons à reprendre (lus dans le navigateur par menu.js) */
.g2-reprises li:first-child{border-top:0}
.pastille.g2-brouillon{background:#e8efff;color:#1e3a8a}

/* ---- Gestion : l'essentiel en haut, les réglages repliés */
.g2-tete{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.g2-tete h1{margin-bottom:6px}
.g2-surveiller{margin:0 0 22px}
.g2-surveiller>h2{margin-top:4px}
.g2-surveiller .alerte{margin:10px 0}
.g2-surveiller>.g2-alertes{margin:0 0 6px}
.g2-surveiller>.g2-alertes li:first-child{border-top:0}
.g2-ok{margin:0;padding:12px 14px;border-radius:12px;background:#e6f6f2;color:#0b5f58;font-weight:600}
/* rouge = à faire tout de suite ; orange = à surveiller ; bleu = information */
.g2-surveiller .alerte:not(.rouge):not(.g2-modele){background:#fff7ed;color:#7c2d12}
.g2-surveiller .alerte:not(.rouge):not(.g2-modele) strong{color:#9a3412}
.alerte.g2-modele{background:#eef4ff;color:#1e3a8a}
.alerte.g2-modele strong{color:#1e3a8a}
.g2-groupe{border-top:1px solid var(--trait)}
.g2-groupe:last-of-type{border-bottom:1px solid var(--trait)}
.g2-groupe>summary{list-style:none;cursor:pointer;display:flex;align-items:baseline;gap:6px 14px;flex-wrap:wrap;padding:14px 30px 14px 0;position:relative;min-height:24px}
.g2-groupe>summary::-webkit-details-marker{display:none}
.g2-groupe>summary::after{content:"";position:absolute;right:6px;top:20px;width:8px;height:8px;border-right:2.5px solid var(--marine);border-bottom:2.5px solid var(--marine);transform:rotate(45deg);transition:transform .15s}
.g2-groupe[open]>summary::after{transform:rotate(-135deg);top:24px}
.g2-groupe>summary b{font-size:16px}
.g2-groupe>summary small{color:var(--muet);font-size:13.5px}
.g2-groupe>summary:hover b{color:var(--orange-fonce)}
.g2-groupe>.tuiles{margin:2px 0 18px}
.tuiles.g2-quotidien{grid-template-columns:repeat(3,minmax(0,1fr))}

/* ---- Tuile « Ordinateurs de travail » : l'état de chaque poste d'un coup d'œil */
.g2-postes{display:flex;flex-direction:column;gap:4px}
.g2-postes i{font-style:normal;font-size:14px;padding-left:16px;position:relative}
.g2-postes i::before{content:"";position:absolute;left:0;top:6px;width:9px;height:9px;border-radius:50%;background:var(--vert)}
.g2-postes i.g2-eteint{color:#9f1239}
.g2-postes i.g2-eteint::before{background:var(--rouge)}

/* ---- Sauvegardes */
.g2-sauvegardes{padding:0 0 16px;max-width:820px}
.g2-sauvegardes h3{font-size:15.5px;margin:18px 0 6px}
.g2-table{width:100%;border-collapse:collapse;font-size:14px;margin:6px 0}
.g2-table th{text-align:left;color:var(--muet);font-weight:700;font-size:13px;padding:6px 8px;border-bottom:1px solid var(--trait)}
.g2-table td{padding:8px;border-bottom:1px solid #eef1f6;vertical-align:top}
.g2-table td:nth-child(2),.g2-table td:nth-child(3){white-space:nowrap}
.g2-table code{font-size:12.5px;color:var(--muet);word-break:break-all}
.g2-etapes{margin:4px 0 12px;padding-left:22px}
.g2-etapes li{margin:4px 0}
.g2-label{display:block;font-weight:700;font-size:14px;margin:8px 0 4px}
.g2-message{width:100%;box-sizing:border-box;font:13.5px/1.5 ui-monospace,Menlo,Consolas,monospace;background:#f8fafc;resize:vertical}

@media (max-width:700px){
  .g2-a-surveiller{padding:2px 10px}
  .g2-alertes li{flex-wrap:nowrap;gap:6px 10px}
  .g2-alertes .g2-txt strong{font-size:14.5px}
  .g2-alertes .g2-txt .muet{font-size:13px}
  .g2-alertes .bouton{min-height:40px;padding-left:12px;padding-right:12px;align-self:center}
  .g2-table th:nth-child(3),.g2-table td:nth-child(3){display:none}
  .g2-table td:nth-child(2){white-space:normal}
  .g2-groupe>summary small{flex-basis:100%}
  .tuiles.g2-quotidien{grid-template-columns:1fr 1fr}
  .g2-gestion .tuile span:not(.g2-postes){display:none}
  .g2-gestion .tuile{min-height:64px;justify-content:center}
  .journee .liste:not(.a-faire-liste) li>a:not(.bouton){flex:1 1 100%}
}
