/* Éléments communs aux pages agri (pages/agri/commun.js) : pastilles d'étiquettes, bloc « Documents rattachés », connexion des évaluateurs */
.agri_etiq { --agri_etiq: #2e7d32; display: inline-flex; align-items: center; gap: 5px; margin: 2px 4px 2px 0; padding: 2px 9px 2px 7px;
    border: 1px solid color-mix(in srgb, var(--agri_etiq) 35%, transparent); border-radius: 11px;
    background: color-mix(in srgb, var(--agri_etiq) 12%, #fff); color: color-mix(in srgb, var(--agri_etiq) 80%, #000);
    font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; cursor: pointer; vertical-align: middle; }
.agri_etiq::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--agri_etiq); flex: none; }
.agri_etiq:hover { background: color-mix(in srgb, var(--agri_etiq) 22%, #fff); }
.agri_etiq_choix { opacity: .55; background: #fff; }
.agri_etiq_choix.agri_actif { opacity: 1; background: color-mix(in srgb, var(--agri_etiq) 18%, #fff); box-shadow: inset 0 0 0 1px var(--agri_etiq); }

.agri_docs_liste { list-style: none; margin: 0 0 10px 0; padding: 0; }
.agri_docs_vide { color: #999; font-style: italic; padding: 6px 0; }
.agri_doc { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eee; }
.agri_doc:last-child { border-bottom: none; }
.agri_doc_icone { flex: none; width: 22px; padding-top: 2px; font-size: 18px; color: #2e7d32; text-align: center; }
.agri_doc_icone.fa-file-pdf { color: #c62828; }
.agri_doc_icone.fa-file-image { color: #1565c0; }
.agri_doc_corps { flex: 1; min-width: 0; }
.agri_doc_titre { font-weight: 600; word-break: break-word; }
.agri_doc_desc { color: #444; font-size: 13px; margin-top: 2px; }
.agri_doc_meta { color: #777; font-size: 12px; margin: 2px 0; }
.agri_doc_modif { border: none; background: none; color: #999; padding: 0 4px; font-size: 12px; }
.agri_doc_modif:hover { color: #2e7d32; }
.agri_doc_choix { margin: 6px 0; }
.agri_docs_depot > summary { list-style: none; }
.agri_docs_depot > summary::-webkit-details-marker { display: none; }
.agri_docs_form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 10px; border: 1px dashed #c8d8c8; border-radius: 4px; background: #fbfdfb; }
.agri_docs_form .btn { align-self: flex-start; }

/* Page de connexion du site de démonstration (pages/fw_login.php) : liste des comptes d'évaluation */
.agri_eval { max-width: 420px; margin: 0 auto 24px; padding: 14px 16px; border: 1px solid #c8dccb; border-radius: 8px; background: #f3f8f3; }
.agri_eval p { margin: 0 0 10px; color: #33493a; font-size: 15px; }
/* Note Markdown de la base de connaissances (agriNoteAfficher) : connaissances, assistant */
.agri_note { line-height: 1.55; color: #2b3138; }
.agri_note h2 { font-size: 18px; margin: 22px 0 8px; color: #2e6b30; }
.agri_note h3 { font-size: 16px; margin: 16px 0 6px; }
.agri_note p, .agri_note ul, .agri_note ol { margin: 0 0 10px; }
.agri_note ul { list-style: disc; padding-left: 22px; }
.agri_note ol { list-style: decimal; padding-left: 22px; }
.agri_note table { border-collapse: collapse; margin: 6px 0 14px; width: 100%; font-size: 13px; }
.agri_note th, .agri_note td { border: 1px solid #dfe5df; padding: 5px 8px; vertical-align: top; text-align: left; }
.agri_note th { background: #f1f6f1; }
.agri_note_cite { background: #fff8d6; border-left: 4px solid #f0b400; margin: 0 -10px 10px; padding: 6px 10px 1px; border-radius: 3px; }
@media (max-width: 767px) { .agri_note table { display: block; overflow-x: auto; } }
.agri_note_cite > :first-child { margin-top: 4px; }
/* Référentiel e-phy (agriEphyFiche) : connaissances, assistant */
.agri_ephy_avert { background: #fff6e0; border: 1px solid #f1d38a; border-radius: 4px; padding: 7px 10px; font-size: 13px; color: #6b4e00; }
.agri_ephy_tete { font-size: 17px; margin: 10px 0 6px; }
.agri_ephy_etat { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 10px; margin-left: 6px; vertical-align: middle; }
.agri_ephy_autorise { background: #e3f2e5; color: #1f6b2b; }
.agri_ephy_retire { background: #fde7e7; color: #a12828; }
.agri_ephy_retrait { color: #a12828; font-weight: 600; }
.agri_ephy_ident { font-size: 13px; margin-bottom: 10px; }
.agri_ephy_ident th { color: #667; font-weight: 600; padding: 2px 12px 2px 0; vertical-align: top; white-space: nowrap; }
.agri_ephy_defile { overflow-x: auto; }
.agri_ephy_usages { border-collapse: collapse; width: 100%; font-size: 13px; }
.agri_ephy_usages th, .agri_ephy_usages td { border: 1px solid #dfe5df; padding: 4px 7px; vertical-align: top; text-align: left; }
.agri_ephy_usages th { background: #f1f6f1; }
.agri_ephy_cond { color: #777; font-size: 11px; max-height: 3.2em; overflow: hidden; }
.agri_ephy_anciens { margin-top: 10px; font-size: 13px; color: #666; }
.agri_ephy_anciens summary { cursor: pointer; }
.agri_ephy_usages td:nth-child(3), .agri_ephy_usages td:nth-child(6) { white-space: nowrap; }
/* Page de connexion de la démonstration : bloc évaluateurs juste au-dessus du formulaire, l'ensemble centré
   verticalement ; si la hauteur manque, l'ensemble s'étend vers le bas et la page défile. */
#fw_loginCtnr { height: 100%; }
.agri_login { min-height: 100%; box-sizing: border-box; padding-bottom: 20px; display: flex; flex-direction: column; justify-content: center; }
.agri_login .centre_page.agri_login_cadre { position: static; max-height: none; width: 100%; margin: 0 auto; }
.agri_login_cadre .agri_eval { max-width: none; margin: 0 0 20px; }
