/*
 * Habillage commun des écrans de liste de l'admin (complète theme.css) :
 * icônes au trait (même famille que le menu) à la place des pictos Font Awesome 4,
 * boutons d'action de ligne discrets (couleur au survol seulement), lignes supprimées estompées,
 * valeurs vides « - » en gris clair. Aucun gabarit modifié : tout passe par les classes existantes.
 */

/* ---------- Icônes au trait (masque SVG, couleur = couleur du texte) ---------- */
.content-wrapper .fa.fa-plus, .content-wrapper .fa.fa-edit, .content-wrapper .fa.fa-pencil, .content-wrapper .fa.fa-remove, .content-wrapper .fa.fa-trash, .content-wrapper .fa.fa-trash-o, .content-wrapper .fa.fa-times, .content-wrapper .fa.fa-close, .content-wrapper .fa.fa-mail-reply, .content-wrapper .fa.fa-undo, .content-wrapper .fa.fa-search, .content-wrapper .fa.fa-save, .content-wrapper .fa.fa-download, .content-wrapper .fa.fa-clone, .content-wrapper .fa.fa-check, .content-wrapper .fa.fa-external-link, .content-wrapper .fa.fa-print, .content-wrapper .fa.fa-info-circle, .content-wrapper .fa.fa-folder-o, .content-wrapper .fa.fa-paper-plane, .content-wrapper .fa.fa-question-circle, .content-wrapper .fa.fa-chevron-right, .content-wrapper .fa.fa-ellipsis-h, .content-wrapper .fa.fa-unlock, .content-wrapper .fa.fa-cogs, .content-wrapper .fa.fa-graduation-cap, .content-wrapper .fa.fa-th-large {
  width: 1em; height: 1em; font-size: 15px; vertical-align: -2px; background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.content-wrapper .fa.fa-plus:before, .content-wrapper .fa.fa-edit:before, .content-wrapper .fa.fa-pencil:before, .content-wrapper .fa.fa-remove:before, .content-wrapper .fa.fa-trash:before, .content-wrapper .fa.fa-trash-o:before, .content-wrapper .fa.fa-times:before, .content-wrapper .fa.fa-close:before, .content-wrapper .fa.fa-mail-reply:before, .content-wrapper .fa.fa-undo:before, .content-wrapper .fa.fa-search:before, .content-wrapper .fa.fa-save:before, .content-wrapper .fa.fa-download:before, .content-wrapper .fa.fa-clone:before, .content-wrapper .fa.fa-check:before, .content-wrapper .fa.fa-external-link:before, .content-wrapper .fa.fa-print:before, .content-wrapper .fa.fa-info-circle:before, .content-wrapper .fa.fa-folder-o:before, .content-wrapper .fa.fa-paper-plane:before, .content-wrapper .fa.fa-question-circle:before, .content-wrapper .fa.fa-chevron-right:before, .content-wrapper .fa.fa-ellipsis-h:before, .content-wrapper .fa.fa-unlock:before, .content-wrapper .fa.fa-cogs:before, .content-wrapper .fa.fa-graduation-cap:before, .content-wrapper .fa.fa-th-large:before { content: none; }
.content-wrapper .fa.fa-plus { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-edit, .content-wrapper .fa.fa-pencil { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-remove, .content-wrapper .fa.fa-trash, .content-wrapper .fa.fa-trash-o { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v6M14 11v6'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-times, .content-wrapper .fa.fa-close { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-mail-reply, .content-wrapper .fa.fa-undo { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-search { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-save { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2Z'/%3E%3Cpath d='M17 21v-8H7v8M7 3v5h8'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-download { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m7 10 5 5 5-5M12 15V3'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-clone { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-check { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-external-link { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-print { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V2h12v7'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='8' rx='1'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-info-circle { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-folder-o { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.7-.9l-.8-1.2A2 2 0 0 0 7.9 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-paper-plane { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 2-7 20-4-9-9-4Z'/%3E%3Cpath d='M22 2 11 13'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-question-circle { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3M12 17h.01'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-chevron-right { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-ellipsis-h { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='12' r='1'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='19' cy='12' r='1'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-unlock { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 9.9-1'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-cogs { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.2 2h-.4a2 2 0 0 0-2 2v.2a2 2 0 0 1-1 1.7l-.4.3a2 2 0 0 1-2 0l-.2-.1a2 2 0 0 0-2.7.7l-.2.4a2 2 0 0 0 .7 2.7l.2.1a2 2 0 0 1 1 1.7v.5a2 2 0 0 1-1 1.7l-.2.1a2 2 0 0 0-.7 2.7l.2.4a2 2 0 0 0 2.7.7l.2-.1a2 2 0 0 1 2 0l.4.3a2 2 0 0 1 1 1.7v.2a2 2 0 0 0 2 2h.4a2 2 0 0 0 2-2v-.2a2 2 0 0 1 1-1.7l.4-.3a2 2 0 0 1 2 0l.2.1a2 2 0 0 0 2.7-.7l.2-.4a2 2 0 0 0-.7-2.7l-.2-.1a2 2 0 0 1-1-1.7v-.5a2 2 0 0 1 1-1.7l.2-.1a2 2 0 0 0 .7-2.7l-.2-.4a2 2 0 0 0-2.7-.7l-.2.1a2 2 0 0 1-2 0l-.4-.3a2 2 0 0 1-1-1.7V4a2 2 0 0 0-2-2Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-graduation-cap { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10 12 5 2 10l10 5 10-5Z'/%3E%3Cpath d='M6 12v5c3 3 9 3 12 0v-5'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-th-large { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E"); }
.content-wrapper .fa.fa-lg, .content-wrapper .fa.fa-sm { font-size: 15px; line-height: 1; }

/* ---------- Bouton « + Nouveau » en haut des listes ---------- */
.content-wrapper .content-header .btn > .fa, .content-wrapper .box-header .btn > .fa { margin-right: 4px; }

/* ---------- Actions de ligne : icônes seules, discrètes, couleur au survol ---------- */
.content-wrapper .table td:has(> .btn-xs), .content-wrapper .table td:has(> form > .btn-xs) { width: 1%; white-space: nowrap; padding-left: 2px; padding-right: 2px; }
.content-wrapper .table td:has(> .btn-xs):last-child, .content-wrapper .table td:has(> form > .btn-xs):last-child { padding-right: 18px; }
.content-wrapper .table td > form:has(> .btn-xs) { display: inline-block; margin: 0; }
.content-wrapper .table .btn-xs:has(> .fa:only-child) {
  width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: 9px; color: #7b8794; }
.content-wrapper .table .btn-xs:has(> .fa:only-child):hover, .content-wrapper .table .btn-xs:has(> .fa:only-child):focus-visible { background: #eaf3f9; border-color: #d3e5f1; color: var(--t-blue-d); }
.content-wrapper .table .btn-xs.btn-danger:has(> .fa:only-child):hover, .content-wrapper .table .btn-xs.btn-danger:has(> .fa:only-child):focus-visible { background: #f8e9e7; border-color: #ecd0cb; color: #9b3a2e; }
.content-wrapper .table .btn-xs.btn-warning:has(> .fa:only-child):hover, .content-wrapper .table .btn-xs.btn-warning:has(> .fa:only-child):focus-visible { background: #fbf0e0; border-color: #f0dcbc; color: #8a5a14; }
.content-wrapper .table .btn-xs.btn-success:has(> .fa:only-child):hover { background: #e6f2ea; border-color: #cfe5d7; color: #2f6b47; }
/* l'icône « restaurer » d'une ligne supprimée reste visible : c'est la seule action utile */
.content-wrapper .table .btn-xs.btn-warning:has(> .fa:only-child) { color: #8a5a14; }
/* boutons avec texte (« Restaurer ») : petite pastille */
.content-wrapper .table .btn-xs:not(:has(> .fa:only-child)) { padding: 3px 9px; border-radius: 8px; font-size: 12px; }

/* ---------- Lignes ---------- */
.content-wrapper .table > tbody > tr > td { font-variant-numeric: tabular-nums; }
.content-wrapper .table .ftj-nil { color: #b8c1cb; }
/* ligne supprimée (elle propose « restaurer ») */
.content-wrapper .table > tbody > tr:has(.btn-warning .fa-mail-reply, .btn-warning .fa-undo) > td:not(:has(.btn-warning)) { opacity: .55; }
.content-wrapper .table > tbody > tr:has(.btn-warning .fa-mail-reply, .btn-warning .fa-undo) > td:first-child { box-shadow: inset 3px 0 0 #f0dcbc; }
.content-wrapper .table > tbody > tr > td:first-child { color: var(--t-text2); }
.content-wrapper .ftj-empty-row td { text-align: center; color: var(--t-text2); padding: 34px 18px !important; }

/* dates « 12/01/2025 10:20 » : date puis heure en gris (classe posée par admin.js) */
.content-wrapper .table td.ftj-date { white-space: nowrap; }
.content-wrapper .table td.ftj-date small { display: block; color: var(--t-text2); font-size: 12px; }
/* Oui / Non : pastilles douces */
.content-wrapper .table .ftj-yn { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.content-wrapper .table .ftj-yn.is-oui { background: #e6f2ea; color: #2f6b47; }
.content-wrapper .table .ftj-yn.is-non { background: var(--t-track); color: var(--t-text2); }

/* ---------- Bas de liste ---------- */
.content-wrapper .pagination-container { padding: 0 18px 8px; }
.content-wrapper .pagination-container:empty { display: none; }

/* ---------- Barres de filtres : une seule grille, champs alignés quel que soit le découpage en lignes du gabarit ---------- */
.content-wrapper form:has(button[name=filter_action]):not(.st-filters) { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.content-wrapper form:has(button[name=filter_action]):not(.st-filters) > .row,
.content-wrapper form:has(button[name=filter_action]):not(.st-filters) > .row > [class*="col-"] { display: contents; }
.content-wrapper form:has(button[name=filter_action]):not(.st-filters) .form-group { width: 190px; margin: 0; padding: 0; }
.content-wrapper form:has(button[name=filter_action]):not(.st-filters) .form-group .form-control { width: 100%; min-width: 0; }
.content-wrapper form:has(button[name=filter_action]):not(.st-filters) .form-group:has(.checkbox) { width: auto; align-self: center; }
.content-wrapper form:has(button[name=filter_action]):not(.st-filters) .btn.filter { margin: 0; }
.content-wrapper form:has(button[name=filter_action]):not(.st-filters) > div:empty, .content-wrapper form:has(button[name=filter_action]):not(.st-filters) > input[type=hidden] { display: none; }
/* les « clearfix » de Bootstrap (.row::before/::after) deviendraient des cases vides et décaleraient les champs */
.content-wrapper form:has(button[name=filter_action]):not(.st-filters) .row::before,
.content-wrapper form:has(button[name=filter_action]):not(.st-filters) .row::after { display: none; }
