/* ══════════════════════════════════════════════════════
   utilities.css — Classes utilitaires CSP-compliant
   Remplace les style="" inline pour permettre la
   suppression de 'unsafe-inline' dans CSP_STYLE_SRC.
   ══════════════════════════════════════════════════════ */

/* Zoom global app : équivalent visuel de zoom navigateur 90 %.
   Appliqué à toutes les pages depuis 2026-04-26 (portail inclus —
   calibration manuelle des `.portail-*` à reprendre si trop petit). */
body { zoom: 0.9; }

/* ── Display ── */
.d-none         { display: none; }
.d-block        { display: block; }
.d-inline       { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex         { display: flex; }
.d-flex-col     { display: flex; flex-direction: column; }

/* ── Flexbox ── */
.flex-1         { flex: 1; }
.flex-wrap      { flex-wrap: wrap; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.items-end      { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end    { justify-content: flex-end; }

/* ── Gap ── */
.gap-4  { gap: 4px; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-14 { gap: 14px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* ── Margin ── */
.m-0   { margin: 0; }
.mt-0  { margin-top: 0; }
.mt-4  { margin-top: 4px; }
.mt-6  { margin-top: 6px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: 4px; }
.mb-6  { margin-bottom: 6px; }
.mb-8  { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }
.mb-18 { margin-bottom: 18px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }

/* ── Padding ── */
.p-0          { padding: 0; }
.p-8          { padding: 8px; }
.p-12         { padding: 12px; }
.p-12-16      { padding: 12px 16px; }
.p-8-12       { padding: 8px 12px; }
.p-10-14      { padding: 10px 14px; }
.p-14-36      { padding: 14px 36px; }
.p-16         { padding: 16px; }
.p-16-20      { padding: 16px 20px; }
.p-40-20      { padding: 40px 20px; }
.pt-18        { padding-top: 18px; }
.pl-20        { padding-left: 20px; }

/* ── Sizing ── */
.w-full    { width: 100%; }
.w-60      { width: 60px; }
.w-80      { width: 80px; }
.w-100     { width: 100px; }
.w-130     { width: 130px; }
.w-140     { width: 140px; }
.w-160     { width: 160px; }
.w-200     { width: 200px; }
.max-w-400 { max-width: 400px; }
.max-w-500 { max-width: 500px; }
.max-w-600 { max-width: 600px; }
.min-w-300 { min-width: 300px; }
.mx-auto   { margin-left: auto; margin-right: auto; }

/* ── Typography ── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
/* Override la specificite plus forte de `.data-table th { text-align: left }`
   (style.css:722) pour que l'en-tete d'une colonne numerique s'aligne avec
   ses cellules. Pattern identique a `.livre-table th.text-right`. */
.data-table th.text-right  { text-align: right; }
.data-table th.text-center { text-align: center; }
.text-11     { font-size: 11px; }
.text-12     { font-size: 12px; }
.text-13     { font-size: 13px; }
.text-14     { font-size: 14px; }
.text-15     { font-size: 15px; }
.text-16     { font-size: 16px; }
.text-18     { font-size: 18px; }
.text-19     { font-size: 19px; }
.text-20     { font-size: 20px; }
.text-24     { font-size: 24px; }
.text-40     { font-size: 40px; }
.text-sm     { font-size: 0.85rem; }
.text-0_9    { font-size: 0.9rem; }
.text-0_8    { font-size: 0.8rem; }
.text-0_95   { font-size: 0.95rem; }
.fw-normal   { font-weight: normal; }
.fw-500      { font-weight: 500; }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }
.nowrap      { white-space: nowrap; }
.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no-underline { text-decoration: none; }
.line-h-1_4  { line-height: 1.4; }
.line-h-1_6  { line-height: 1.6; }
.line-h-1_8  { line-height: 1.8; }

/* ── Couleurs texte ── */
.text-body    { color: #111827; }
.text-muted   { color: #6b7280; }
.text-muted2  { color: #9ca3af; }
.text-muted3  { color: #64748b; }
.text-muted4  { color: #94a3b8; }
.text-muted5  { color: #4b5563; }
.text-info    { color: #1a56db; }
.text-info2   { color: #1e40af; }
.text-success { color: #059669; }
.text-success2 { color: #065f46; }
.text-danger  { color: #dc2626; }
.text-danger-dark  { color: #991b1b; }
.text-danger-darker { color: #7f1d1d; }
.text-info-dark    { color: #1e3a5f; }
.text-warning { color: #ca8a04; }
.text-purple  { color: #6d28d9; }
.text-white   { color: #fff; }
.text-link    { color: #6c5ce7; }

/* ── Backgrounds ── */
.bg-info      { background: #e8effd; }
.bg-info2     { background: #dbeafe; }
.bg-info3     { background: #eff6ff; }
.bg-success   { background: #d1fae5; }
.bg-success2  { background: #ecfdf5; }
.bg-success3  { background: #f0fdf4; }
.bg-danger    { background: #fee2e2; }
.bg-danger2   { background: #fef2f2; }
.bg-warning   { background: #fefce8; }
.bg-warning2  { background: #fef3c7; }
.bg-purple    { background: #ede9fe; }
.bg-purple2   { background: #faf5ff; }
.bg-muted     { background: #f3f4f6; }
.bg-muted2    { background: #f9fafb; }
.bg-none      { background: none; }

/* ── Bordures ── */
.border-0      { border: none; }
.border-base   { border: 1px solid #e5e7eb; }
.border-top    { border-top: 1px solid #e5e7eb; }
.border-bottom { border-bottom: 1px solid #e5e7eb; }
.border-danger { border: 1px solid #fecaca; }
.border-danger-light { border: 1px solid #fca5a5; }
.border-success { border: 1px solid #6ee7b7; }
.border-success2 { border: 1px solid #bbf7d0; }
.border-purple { border: 1px solid #e9d5ff; }
.border-blue   { border: 1px solid #bfdbfe; }
.rounded-6     { border-radius: 6px; }
.rounded-8     { border-radius: 8px; }
.rounded-10    { border-radius: 10px; }

/* ── Etats interactifs ── */
.disabled-look { opacity: 0.5; pointer-events: none; }
.cursor-pointer { cursor: pointer; }

/* ── Tags / Badges semantiques ── */
.tag-admin     { background: #ede9fe; color: #6d28d9; }
.tag-tresorier { background: #d1fae5; color: #059669; }
.tag-consultant{ background: #fef3c7; color: #92400e; }
.tag-assistant { background: #dbeafe; color: #1e40af; }
.tag-success   { background: #d1fae5; color: #059669; }
.tag-muted     { background: #f3f4f6; color: #6b7280; }
.tag-disabled  { background: #f3f4f6; color: #9ca3af; }
.tag-info      { background: #e8effd; color: #1a56db; }
.tag-warning   { background: #fefce8; color: #ca8a04; }
.tag-danger    { background: #fee2e2; color: #dc2626; }
.tag-visu      { background: #dbeafe; color: #1e40af; }

/* ── Permission checkbox cards ── */
.perm-card         { padding: 10px 14px; border-radius: 8px; }
.perm-card-compta  { background: #faf5ff; border: 1px solid #e9d5ff; }
.perm-card-admin   { background: #eff6ff; border: 1px solid #bfdbfe; }
.perm-card-adh     { background: #f0fdf4; border: 1px solid #bbf7d0; }

/* ── Zone dangereuse ── */
.zone-danger       { border: 1px solid #fecaca; }
.zone-danger-header { background: #fef2f2; }

/* ── Info box / alert inline ── */
.info-box      { padding: 12px 16px; border-radius: 8px; font-size: 13px; }
.info-box-blue { background: #e8effd; color: #1a56db; }
.info-box-gray { background: #f9fafb; color: #4b5563; }
.info-box-green { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.info-box-success { background: #d1fae5; color: #065f46; }

/* ── Bouton inline (form logout etc.) ── */
.btn-inline-reset {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

/* ── Mailto CTA ── */
.btn-mailto {
    display: inline-block;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    padding: 14px 36px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

/* ── Confirm input (structure delete) ── */
.input-confirm-structure {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #dc2626;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* ── Confirm input (delete) ── */
.input-confirm-delete {
    width: 100%;
    padding: 8px;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

/* ── Adherents module — extra utilities ── */
.mt-10  { margin-top: 10px; }
.mt-16  { margin-top: 16px; }
.ml-auto { margin-left: auto; }
.my-8-14 { margin-top: 8px; margin-bottom: 14px; }
.w-180  { width: 180px; }
.w-220  { width: 220px; }
.w-250  { width: 250px; }
.w-300  { width: 300px; }
.max-w-300 { max-width: 300px; }
.p-14   { padding: 14px; }
.p-12-18 { padding: 12px 18px; }
.p-14-18 { padding: 14px 18px; }
.p-30   { padding: 30px; }
.pt-16  { padding-top: 16px; }
.text-28 { font-size: 28px; }
.line-h-2 { line-height: 2; }
.text-success3 { color: #166534; }
.text-success4 { color: #16a34a; }
.text-orange   { color: #ea580c; }
.text-indigo   { color: #4f46e5; }
.text-muted6   { color: #374151; }
.bg-orange     { background: #fff7ed; }
.border-warning { border: 1px solid #fcd34d; }

/* ── Adherent statut tags ── */
.tag-actif     { background: #f0fdf4; color: #166534; }
.tag-orange    { background: #fff7ed; color: #ea580c; }

/* ── Adherent action buttons ── */
.btn-tui-relancer  { background: #fefce8; color: #ca8a04; border: 1px solid #fcd34d; }
.btn-tui-supprimer { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }

/* ── Dashboard stat cards ── */
.adh-stat-info     { background: #e8effd; }
.adh-stat-actif    { background: #f0fdf4; }
.adh-stat-attention { background: #fefce8; }
.adh-stat-danger   { background: #fff7ed; }
.adh-stat-supprimer { background: #fee2e2; }
.adh-stat-paye     { background: #d1fae5; }

/* ── Wide container override (liste/impayes pages) ── */
.adh-container-wide { max-width: 1400px !important; }

/* ── Tour save feedback popup ── */
.tour-save-feedback {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: #fff; padding: 30px 40px; border-radius: 12px;
    text-align: center; z-index: 100001;
    box-shadow: 0 4px 24px rgba(0,0,0,.15);
}

/* ══════════════════════════════════════════════════════
   Superadmin utilities — CSP refactor
   ══════════════════════════════════════════════════════ */

/* Purple link */
.sa-link { color: #7c3aed; text-decoration: none; }
.sa-link:hover { color: #6d28d9; }

/* Stat value color variants */
.sa-stat-trial    { color: #f59e0b; }
.sa-stat-standard { color: #3b82f6; }
.sa-stat-premium  { color: #059669; }
.sa-stat-expired  { color: #dc2626; }

/* Badge superadmin */
.sa-badge-superadmin { background: #7c3aed; color: #fff; }

/* Compact / small button */
.btn-sa-compact { font-size: 0.78rem; padding: 4px 10px; }
.btn-sa-sm      { padding: 4px 10px; font-size: 0.8rem; }

/* Grid 2-col */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Table: full-width collapse */
.table-full { width: 100%; border-collapse: collapse; }

/* Table row borders */
.tr-header { border-bottom: 2px solid #e5e7eb; }
.tr-row    { border-bottom: 1px solid #f3f4f6; }

/* Table header cell (feature tables) */
.th-feature        { text-align: left; padding: 6px 8px; font-size: 0.8rem; color: #6b7280; font-weight: 600; }
.th-feature-center { text-align: center; padding: 6px 8px; font-size: 0.8rem; color: #6b7280; font-weight: 600; }

/* Table data cell */
.td-feature { padding: 10px 8px; }

/* Form input/select */
.sa-input        { width: 100%; padding: 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.9rem; box-sizing: border-box; }
.sa-select       { padding: 6px 12px; border: 1px solid #d1d5db; border-radius: 6px; }
.sa-input-inline { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.9rem; }
.sa-input-w260   { width: 260px; }
.sa-input-w180   { width: 180px; }

/* Form labels */
.sa-label    { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 4px; }
.sa-label-sm { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }

/* Modal overlay */
.sa-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
/* Le toggle JS ajoute .d-flex pour ouvrir la modale ; il faut une regle
   plus specifique que .sa-modal-overlay (meme specificite que .d-flex,
   mais declaree apres dans le fichier, sinon .d-flex est ecrasee). */
.sa-modal-overlay.d-flex {
    display: flex;
}

/* Modal content box */
.sa-modal-box     { background: #fff; border-radius: 12px; padding: 24px; width: 90%; }
.sa-modal-box-500 { max-width: 500px; }
.sa-modal-box-440 { max-width: 440px; }

/* Checkbox styled */
.sa-checkbox       { width: 16px; height: 16px; cursor: pointer; accent-color: #7c3aed; }
.sa-checkbox-green { width: 16px; height: 16px; cursor: pointer; accent-color: #10b981; }

/* Feature pill badges */
.sa-pill-blue  { display: inline-block; margin-left: 6px; font-size: 0.7rem; padding: 1px 6px; background: #dbeafe; color: #1e40af; border-radius: 10px; vertical-align: middle; }
.sa-pill-green { display: inline-block; margin-left: 6px; font-size: 0.7rem; padding: 1px 6px; background: #d1fae5; color: #065f46; border-radius: 10px; vertical-align: middle; }

/* Margin-left */
.ml-4 { margin-left: 4px; }
.ml-6 { margin-left: 6px; }

/* Horizontal margin */
.mx-12 { margin-left: 12px; margin-right: 12px; }

/* Margin-bottom */
.mb-28 { margin-bottom: 28px; }

/* Page title */
.sa-page-title { font-size: 1.4rem; font-weight: 700; margin: 0 0 20px; }

/* Paragraph variants */
.sa-text-intro    { font-size: 0.9rem; color: #6b7280; margin: 0 0 12px; }
.sa-text-intro-sm { font-size: 0.85rem; color: #6b7280; margin: 0 0 20px; }
.sa-text-hint     { font-size: 0.8rem; color: #9ca3af; margin: 0 0 12px; }

/* Badge variants */
.sa-badge-imminente { background: #fee2e2; color: #991b1b; }
.sa-badge-averti    { background: #fef3c7; color: #92400e; }

/* Section subtitles */
.sa-subtitle-purple { margin: 0 0 4px; font-size: 0.95rem; color: #7c3aed; display: flex; align-items: center; gap: 6px; }
.sa-subtitle-green  { margin: 0 0 4px; font-size: 0.95rem; color: #10b981; display: flex; align-items: center; gap: 6px; }

/* Logout button */
.btn-sa-logout { color: #fff; border-color: #fff; cursor: pointer; font: inherit; }

/* Empty state table cell */
.sa-empty-cell { text-align: center; color: #9ca3af; }

/* Extra padding */
.p-12-32 { padding: 12px 32px; }
.p-40    { padding: 40px; }

/* ══════════════════════════════════════════════════════
   Compta AE utilities — CSP refactor (AUD-M001)
   ══════════════════════════════════════════════════════ */

/* ── Margins complémentaires ── */
.mt-14 { margin-top: 14px; }
.mr-6  { margin-right: 6px; }
.my-20 { margin: 20px 0; }

/* ── Overflow ── */
.overflow-auto   { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-hidden { overflow: hidden; }

/* ── Alignment ── */
.align-middle        { vertical-align: middle; }
.pointer-events-none { pointer-events: none; }

/* ── Sizing complémentaires CAE ── */
.w-70  { width: 70px; }
.w-120 { width: 120px; }

/* ── Couleurs texte complémentaires ── */
.text-info-blue   { color: #1d4ed8; }
.text-amber       { color: #92400e; }
.text-purple-dark { color: #6b21a8; }

/* ── Boutons variantes (compta AE) ── */
.btn-tui-secondary   { background: #f3f4f6; color: #6b7280; }
.btn-tui-depense     { background: #64748b; color: #fff; }
.btn-tui-danger-fill { background: #dc2626; color: #fff; }
.btn-tui-delete      { background: #fee2e2; color: #dc2626; }
.btn-tui-warning     { background: #f59e0b; color: #fff; }
.btn-tui-sm          { font-size: 11px; padding: 4px 10px; }
.btn-tui-text-12     { font-size: 12px; }

/* ── Alerte clôture ── */
.alert-cloture { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ── Tags exercice ── */
.tag-cloture { background: #fee2e2; color: #dc2626; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.tag-ouvert  { background: #d1fae5; color: #065f46; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }

/* ── Cellule vide tableau ── */
.table-empty-cell { text-align: center; padding: 20px; color: #9ca3af; }

/* ── Conteneur table arrondi ── */
.table-wrap-rounded { margin-top: 10px; border-radius: 8px; overflow: hidden; }

/* ── Flex actions formulaire ── */
.cae-form-actions { display: flex; gap: 10px; }

/* ══════════════════════════════════════════════════════
   Facturation utilities — CSP refactor (AUD-M001)
   ══════════════════════════════════════════════════════ */

/* ── Tags facturation ── */
.tag-brouillon     { background: #fef3c7; color: #92400e; }
.tag-emis          { background: #dbeafe; color: #1d4ed8; }
.tag-rembourse     { background: #d1fae5; color: #065f46; }
.tag-provisoire    { background: #f59e0b; color: #fff; font-size: 0.75em; vertical-align: middle; }
.tag-comptabilisee { background: #ccfbf1; color: #0d9488; font-size: 10px; }

/* ── Disabled input look ── */
.input-disabled-look { background: #f3f4f6; color: #6b7280; cursor: not-allowed; }

/* ── Disabled button look (clickable but dimmed) ── */
.btn-disabled-look { opacity: 0.5; cursor: not-allowed; }

/* ── Avoir button (red outline) ── */
.btn-tui-avoir { color: #dc2626; border-color: #dc2626; }

/* ── Link styles ── */
.link-indigo    { color: #4f46e5; font-weight: 600; text-decoration: none; }
.link-muted     { color: #6b7280; text-decoration: none; }
.link-muted3    { color: #64748b; }
.link-violet    { color: #6366f1; text-decoration: underline; }

/* ── Ligne total cell ── */
.ligne-total-cell { font-weight: 600; text-align: right; }

/* ── Montant danger ── */
.montant-danger { font-weight: 600; color: #dc2626; }

/* ── Table empty placeholder ── */
.table-empty { text-align: center; color: #9ca3af; padding: 20px; }
.table-empty-30 { text-align: center; color: #9ca3af; padding: 30px; }
.table-empty-14 { text-align: center; color: #9ca3af; padding: 14px; }

/* ── Filter bar ── */
.filter-bar         { padding: 12px 18px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid #e5e7eb; }
.filter-bar-wrap    { padding: 12px 18px; border-bottom: 1px solid #e5e7eb; }
.filter-form        { display: flex; gap: 10px; flex: 1; align-items: center; }
.filter-form-wrap   { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ── Export bar ── */
.export-bar { margin-top: 8px; display: flex; gap: 8px; }

/* ── Reinitialiser button text ── */
.btn-reinit { color: #6b7280; font-size: 0.8rem; }

/* ── Export button text ── */
.btn-export { font-size: 0.75rem; }

/* ── Paiement total row ── */
.paiement-total-row { background: #f0fdf4; }

/* ── Email modal ── */
.email-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.55);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}
.email-modal-box {
    background: #fff; border-radius: 14px;
    padding: 28px 32px; max-width: 540px;
    width: 95%; box-shadow: 0 12px 40px rgba(0,0,0,0.22);
}
.email-modal-title { margin: 0 0 18px; font-size: 1.1em; color: #1e293b; }
.email-modal-label { font-size: 0.8em; color: #64748b; margin-bottom: 2px; }
.email-modal-value { font-weight: 600; color: #0f172a; }
.email-modal-body-text { color: #1e293b; }
.email-modal-pre {
    margin: 0; background: #f8fafc;
    border: 1px solid #e2e8f0; border-radius: 6px;
    padding: 10px; font-size: 0.83em;
    white-space: pre-wrap; font-family: inherit;
    color: #334155; max-height: 140px; overflow-y: auto;
}
.email-modal-warning {
    font-size: 0.82em; color: #92400e;
    background: #fffbeb; border: 1px solid #fcd34d;
    border-radius: 6px; padding: 8px 12px;
    margin: 0 0 18px;
}

/* ── Recap facture (paiement page) ── */
.recap-facture { margin-bottom: 14px; padding: 12px; background: #f0fdf4; border-radius: 8px; font-size: 13px; }

/* ── Intro text for sub-pages ── */
.fact-intro-text { font-size: 13px; color: #6b7280; margin: 0 0 14px; }
.fact-intro-text-12 { font-size: 13px; color: #6b7280; margin: 0 0 12px; }
.fact-hint-text { font-size: 13px; color: #64748b; margin: 0; }
.fact-small-hint { color: #6b7280; }

/* ── Cycle de vie page text ── */
.cdv-intro { font-size: 14px; color: #475569; margin-bottom: 18px; line-height: 1.7; }

/* ── Max-width input ── */
.max-w-120 { max-width: 120px; }
.max-w-250 { max-width: 250px; }

/* ── min-width ── */
.min-w-150 { min-width: 150px; }

/* ── Pagination nav ── */
.pagination-center { margin-top: 16px; text-align: center; }
.pagination-pages { margin: 0 12px; }

/* ── Custom field form alignment ── */
.justify-flex-end { justify-content: flex-end; }

/* ── Hint small texts ── */
.hint-auto-managed { color: #9ca3af; }
.hint-legal-info { margin-top: 8px; font-size: 12px; color: #6b7280; }

/* ── Facture brouillon link style (conditional via template) ── */
.link-brouillon { font-style: italic; color: #9ca3af; }

/* ── Cycle de vie page ── */
.cdv-steps { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; }
.cdv-step { flex: 1; min-width: 160px; padding: 14px 16px; }
.cdv-arrow { display: flex; align-items: center; padding-top: 20px; color: #cbd5e1; font-size: 20px; flex-shrink: 0; }
.cdv-arrow::after { content: '\2192'; }
.cdv-badge { display: inline-block; padding: 5px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 700; margin-bottom: 10px; }
.cdv-badge-gris   { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.cdv-badge-bleu   { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.cdv-badge-vert   { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.cdv-badge-orange { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.cdv-badge-violet { background: #ede9fe; color: #5b21b6; border: 1px solid #ddd6fe; }
.cdv-badge-rouge  { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.cdv-badge-mini { padding: 2px 8px; font-size: 10px; font-weight: 600; border-radius: 10px; margin-bottom: 0; margin-left: 6px; }
.cdv-text { font-size: 13.5px; color: #475569; line-height: 1.6; }
.cdv-text strong { color: #1e293b; display: block; margin-bottom: 4px; }
.cdv-note { margin-top: 14px; padding: 12px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 13px; color: #64748b; line-height: 1.6; }

@media (max-width: 768px) {
    .cdv-steps { flex-direction: column; }
    .cdv-arrow { padding: 4px 0 4px 16px; }
    .cdv-arrow::after { content: '\2193'; }
}

/* ── Guide Factur-X page ── */
.guide-section { margin-bottom: 18px; }
.guide-section .adh-card-body { line-height: 1.7; color: #374151; font-size: 0.95rem; }
.guide-section .adh-card-body p { margin: 0 0 12px; }
.guide-section .adh-card-body ul { margin: 0 0 12px; padding-left: 24px; }
.guide-section .adh-card-body li { margin-bottom: 6px; }
.guide-section .adh-card-body strong { color: #1f2937; }
.guide-timeline { display: flex; gap: 0; margin: 16px 0; flex-wrap: wrap; }
.guide-timeline-item { flex: 1; min-width: 200px; padding: 14px 16px; border-left: 3px solid #059669; background: #f0fdf4; }
.guide-timeline-item:nth-child(2) { border-left-color: #f59e0b; background: #fffbeb; }
.guide-timeline-item:nth-child(3) { border-left-color: #ef4444; background: #fef2f2; }
.guide-timeline-date { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.guide-timeline-text { font-size: 0.85rem; color: #4b5563; }
.guide-check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; background: #f0fdf4; border-radius: 8px; margin-bottom: 8px; }
.guide-check-icon { font-size: 1.2em; flex-shrink: 0; margin-top: 1px; }
.guide-info-box { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 14px 18px; margin: 12px 0; }
.guide-info-box strong { color: #1e40af; }
.guide-workflow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.guide-workflow-step { background: #f3f4f6; padding: 8px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; color: #374151; }
.guide-workflow-arrow { color: #059669; font-weight: 700; font-size: 1.2em; }

/* ══════════════════════════════════════════════════════
   Core module utilities — CSP refactor (AUD-M001)
   ══════════════════════════════════════════════════════ */

/* ── Impersonation bar ── */
.impersonation-bar {
    background: #7c3aed; color: #fff; padding: 8px 20px;
    text-align: center; font-size: 0.9rem;
}
.impersonation-bar a { color: #fde68a; font-weight: 600; }

/* ── Extra sizing ── */
.max-w-450 { max-width: 450px; }
.max-w-700 { max-width: 700px; }
.min-w-90  { min-width: 90px; }
.min-w-100 { min-width: 100px; }
.min-w-260 { min-width: 260px; }
.min-w-400 { min-width: 400px; }

/* ── Flex shorthand ── */
.flex-0-0-80  { flex: 0 0 80px; }
.flex-0-0-340 { flex: 0 0 340px; }

/* ── Text color extras ── */
.text-slate5  { color: #475569; }
.text-blue5   { color: #3b82f6; }
.text-green5  { color: #22c55e; }
.text-amber5  { color: #f59e0b; }
.text-orange5 { color: #f97316; }
.text-red5    { color: #ef4444; }
.text-indigo5 { color: #6366f1; }
.text-sky9    { color: #0c4a6e; }
.text-amber7  { color: #b45309; }
.text-blue6   { color: #2563eb; }
.text-green2  { color: #dcfce7; }
.text-rose5   { color: #fca5a5; }
.text-854d0e  { color: #854d0e; }

/* ── Background extras ── */
.bg-white    { background: #fff; }
.bg-slate1   { background: #f8fafc; }

/* ── Border extras ── */
.border-slate2 { border: 1px solid #e2e8f0; }
.border-slate3 { border: 1px solid #cbd5e1; }
.border-orange5 { border: 1px solid #f97316; }
.rounded-4  { border-radius: 4px; }
.rounded-12 { border-radius: 12px; }

/* ── Padding extras ── */
.p-20    { padding: 20px; }
.p-24    { padding: 24px; }
.p-48    { padding: 48px; }
.p-2-8   { padding: 2px 8px; }
.p-2-9   { padding: 2px 9px; }
.p-4-8   { padding: 4px 8px; }
.p-4-10  { padding: 4px 10px; }
.p-1-6   { padding: 1px 6px; }
.p-6-8   { padding: 6px 8px; }
.p-8-20  { padding: 8px 20px; }
.p-10-12 { padding: 10px 12px; }

/* ── Font sizes ── */
.text-22 { font-size: 22px; }
.text-32 { font-size: 32px; }

/* ── Grid layouts ── */
.grid-2col-14 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Opacity ── */
.opacity-50 { opacity: 0.5; }

/* ── Visibility ── */
.visibility-hidden { visibility: hidden; }

/* ── Text decoration ── */
.underline { text-decoration: underline; }

/* ── HR separator ── */
.hr-separator { margin: 30px 0 20px; border: none; border-top: 1px solid #e2e8f0; }

/* ── Tooltip (URSSAF page) ── */
.core-tooltip-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border-radius: 50%;
    background: #e0e7ff; color: #4f46e5;
    font-size: 11px; font-weight: 700; cursor: help;
    margin-left: 4px; position: relative;
}
.core-tooltip-icon:hover .core-tooltip-text { display: block; }
.core-tooltip-text {
    display: none; position: absolute; bottom: calc(100% + 6px);
    left: 50%; transform: translateX(-50%);
    width: 240px; padding: 10px 12px;
    background: #1e293b; color: #f1f5f9;
    font-size: 12px; font-weight: 400; line-height: 1.5;
    border-radius: 8px; z-index: 10; text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.core-tooltip-text::after {
    content: ""; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: #1e293b;
}

/* ── URSSAF param styling ── */
.param-label  { display: block; font-size: 12px; font-weight: 600; color: #6b7280; margin-bottom: 4px; }
.param-input  {
    width: 100%; padding: 8px 10px; font-size: 13px;
    border: 1px solid #d1d5db; border-radius: 6px; box-sizing: border-box;
    transition: background .3s, border-color .3s;
}
.param-input.modified { background: #fefce8; border-color: #f59e0b; }
.param-input.saved    { background: #d1fae5; border-color: #10b981; }
.param-section {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 16px; margin-bottom: 14px;
}
.param-section-title { font-size: 13px; font-weight: 700; color: #334155; margin: 0 0 12px; }
.param-saved-val     { font-size: 11px; color: #94a3b8; margin-top: 2px; font-style: italic; }
.urssaf-alert-success {
    padding: 10px 16px; border-radius: 8px; margin-bottom: 14px; font-size: 13px;
    background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0;
}
.urssaf-alert-error {
    padding: 10px 16px; border-radius: 8px; margin-bottom: 14px; font-size: 13px;
    background: #fee2e2; color: #dc2626; border: 1px solid #fecaca;
}
.urssaf-btn {
    padding: 8px 20px; font-size: 13px; font-weight: 600;
    background: #2563eb; color: #fff; border: none; border-radius: 6px; cursor: pointer;
}
.urssaf-ref-box {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 14px 20px; font-size: 12px; color: #475569; line-height: 1.6; margin-bottom: 14px;
}
.urssaf-help-box {
    background: #fefce8; border: 1px solid #fde68a; border-radius: 10px;
    padding: 14px 20px; font-size: 12px; color: #92400e; line-height: 1.6;
}
.color-dot-12 {
    display: inline-block; width: 12px; height: 12px;
    border-radius: 3px; vertical-align: middle; margin-right: 4px;
}
.color-dot-warning { background: #fefce8; border: 1px solid #f59e0b; }
.color-dot-success { background: #d1fae5; border: 1px solid #10b981; }

/* ── CERFA module ── */
.cerfa-row-dimmed { opacity: 0.45; }
.cerfa-row-doublon { background: #fff7ed !important; }
.cerfa-row-doublon:hover { background: #ffedd5 !important; }
.cerfa-doublon-badge {
    display: inline-block; margin-top: 2px; padding: 1px 6px; border-radius: 8px;
    font-size: 10px; font-weight: 600; background: #fed7aa; color: #c2410c;
}
.cerfa-tag-mode {
    display: inline-block; padding: 1px 8px; border-radius: 10px;
    font-size: 11px; font-weight: 600;
}
.cerfa-tag-mode.tag-cheque, .cerfa-tag-mode[class*="cheque"] { background: #dbeafe; color: #1e40af; }
.cerfa-tag-mode.tag-especes, .cerfa-tag-mode[class*="espece"] { background: #fef3c7; color: #92400e; }
.cerfa-tag-mode[class*="virement"] { background: #d1fae5; color: #065f46; }
.cerfa-sig-box {
    margin-bottom: 10px; padding: 8px; background: #f8fafc;
    border: 1px solid #e2e8f0; border-radius: 4px; text-align: center;
}
.cerfa-sig-img { max-width: 180px; max-height: 80px; }
.cerfa-textarea {
    width: 100%; padding: 6px 8px; font-size: 12px;
    border: 1px solid #cbd5e1; border-radius: 4px; resize: vertical;
}
.cerfa-count-badge {
    background: #6366f1; color: white; padding: 4px 10px;
    border-radius: 10px; font-size: 12px; font-weight: 700;
}
.cerfa-btn-mail { padding: 2px 8px; font-size: 11px; background: #fef3c7; color: #92400e; }

/* ── Suivi dons ── */
#dons-table tbody tr.row-ok    { background: #f0fdf4 !important; }
#dons-table tbody tr.row-ambig { background: #fffbeb !important; }
#dons-table tbody tr.row-none  { background: #fef2f2 !important; }
#dons-table tbody tr.row-ok:hover    { background: #dcfce7 !important; }
#dons-table tbody tr.row-ambig:hover { background: #fef3c7 !important; }
#dons-table tbody tr.row-none:hover  { background: #fee2e2 !important; }
.tag-status { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.tag-ok    { background: #d1fae5; color: #059669; }
.tag-ambig { background: #fef3c7; color: #d97706; }
.tag-none  { background: #fee2e2; color: #dc2626; }
.don-row.row-disabled { opacity: 0.35; }

/* ── Immobilisations ── */
.immo-row-selected { background: #eff6ff !important; }
.immo-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 1000;
    align-items: center; justify-content: center;
}

/* ── Import preview modal ── */
.import-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 1000;
    align-items: center; justify-content: center;
}
.import-modal-box {
    background: #fff; border-radius: 8px; padding: 24px;
    width: 480px; max-width: 90vw; box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ── Saisie AE ── */
.sae-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.04); margin-bottom: 20px;
}
.sae-card-header {
    background: #f8fafc; padding: 14px 18px; border-bottom: 1px solid #e2e8f0;
    font-weight: 700; font-size: 15px; color: #334155;
    display: flex; align-items: center; gap: 12px;
}
.sae-card-body { padding: 18px; }
.sae-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sae-form-full { grid-column: 1 / -1; }
.sae-fg label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 4px; }
.sae-fg input, .sae-fg select {
    width: 100%; padding: 8px 12px; border: 1px solid #cbd5e1;
    border-radius: 8px; font-size: 13px; font-family: inherit; background: #fff;
}
.sae-fg input:focus, .sae-fg select:focus {
    outline: none; border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
}
.sae-type-toggle {
    display: flex; gap: 0; border-radius: 8px; overflow: hidden;
    border: 1px solid #cbd5e1; width: fit-content;
}
.sae-type-toggle input { display: none; }
.sae-type-toggle label {
    padding: 8px 22px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; margin: 0; color: #64748b; background: #fff;
}
.sae-type-toggle input[value="depense"]:checked + label { background: #dc2626; color: #fff; }
.sae-type-toggle input[value="recette"]:checked + label { background: #059669; color: #fff; }
.sae-btn-save {
    padding: 9px 28px; border-radius: 8px; font-size: 14px; font-weight: 600;
    border: none; cursor: pointer; color: #fff; background: #6366f1; transition: background 0.2s;
}
.sae-btn-save:hover { background: #4f46e5; }
.sae-empty { text-align: center; color: #94a3b8; padding: 30px 14px !important; font-size: 13px; }

/* ── Livre recettes/depenses ── */
.livre-filters {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin-bottom: 20px; padding: 14px 18px;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
}
.livre-filters label { font-size: 14px; font-weight: 600; color: #475569; white-space: nowrap; }
.livre-filters select {
    border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 14px;
    font-size: 14px; background: #fff; min-width: 140px; font-family: inherit;
}
.livre-filters .btn { padding: 8px 22px; border-radius: 8px; font-size: 14px; }
.livre-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.livre-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.livre-table th {
    background: #0f172a; color: #fff; font-weight: 600;
    padding: 9px 14px; text-align: left; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.livre-table th:last-child,
.livre-table th.text-right { text-align: right; }
.livre-table td {
    padding: 14px 16px; border-bottom: 1px solid #f1f5f9;
    font-size: 13px; color: #1e293b; vertical-align: middle;
}
.livre-table tbody tr:hover { background: #f8fafc; }
/* Widths + truncation : s'appliquent a thead ET tbody pour que les colonnes soient identiques sur les 2 livres */
.livre-table .col-date { width: 100px; }
.livre-table .col-libelle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.livre-table .col-ref { width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.livre-table .col-montant { width: 130px; text-align: right; white-space: nowrap; }
.livre-table .col-compte { width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Styles visuels des cellules (tbody uniquement — le thead garde sa police blanche) */
.livre-table tbody .col-date { color: #64748b; font-weight: 500; }
.livre-table tbody .col-libelle { font-weight: 500; }
.livre-table tbody .col-ref { color: #94a3b8; font-size: 12px; font-family: "Consolas", monospace; }
.livre-table tbody .col-montant { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.livre-table tbody .col-compte { font-size: 13px; color: #64748b; }
.livre-table tfoot td {
    padding: 10px 14px; font-size: 13px; font-weight: 700; background: #0f172a; color: #fff;
}
.livre-total-label { text-align: right; color: #fff; }
.depense-color { color: #dc2626; }
.recette-color { color: #059669; }
.livre-empty { text-align: center; color: #94a3b8; padding: 40px 16px !important; font-size: 13px; }
.livre-count-depenses {
    display: inline-flex; align-items: center; justify-content: center;
    background: #fef2f2; color: #dc2626; font-weight: 700; font-size: 13px;
    padding: 4px 12px; border-radius: 20px; margin-left: 10px;
}
.livre-count-recettes {
    display: inline-flex; align-items: center; justify-content: center;
    background: #f0fdf4; color: #059669; font-weight: 700; font-size: 13px;
    padding: 4px 12px; border-radius: 20px; margin-left: 10px;
}

/* ── No-association page ── */
.no-asso-body {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.no-asso-card {
    background: #fff; border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    padding: 48px; max-width: 520px; text-align: center;
}
.no-asso-card h1 { color: #1e293b; font-size: 1.5rem; margin: 0 0 16px; }
.no-asso-card p  { color: #475569; line-height: 1.6; margin: 0 0 12px; }
.no-asso-icon    { font-size: 3rem; margin-bottom: 16px; }
.no-asso-btn {
    display: inline-block; margin-top: 20px; padding: 10px 28px;
    background: #6366f1; color: #fff; text-decoration: none;
    border-radius: 10px; font-weight: 600;
    transition: all 0.15s ease; box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.no-asso-btn:hover { background: #4f46e5; }
.no-asso-btn-secondary {
    background: #fff; color: #6366f1; border: 2px solid #6366f1;
    margin-left: 8px; box-shadow: none;
}
.no-asso-btn-secondary:hover { background: #eef2ff; }

/* ── Abonnement expire page ── */
.abo-expire-body {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.abo-expire-card {
    background: #fff; border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    padding: 48px; max-width: 560px; text-align: center;
}
.abo-expire-card h1 { color: #1e293b; font-size: 1.5rem; margin: 0 0 16px; }
.abo-expire-card p  { color: #475569; line-height: 1.6; margin: 0 0 12px; }
.abo-expire-icon    { font-size: 3rem; margin-bottom: 16px; }
.abo-expire-info {
    background: #fef3c7; border: 1px solid #fcd34d; border-radius: 8px;
    padding: 16px; margin: 20px 0; text-align: left; font-size: 0.9rem; color: #92400e;
}
.abo-expire-info strong { color: #78350f; }
.abo-expire-btn {
    display: inline-block; margin-top: 20px; padding: 10px 28px;
    background: #7c3aed; color: #fff; text-decoration: none;
    border-radius: 10px; font-weight: 600;
    transition: all 0.15s ease; box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}
.abo-expire-btn:hover { background: #6d28d9; }
.abo-expire-btn-secondary {
    background: #fff; color: #7c3aed; border: 2px solid #7c3aed;
    margin-left: 8px; box-shadow: none;
}
.abo-expire-btn-secondary:hover { background: #f5f3ff; }

/* ── Mon abonnement page ── */
.mon-abo-body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    background: #f1f5f9; min-height: 100vh; margin: 0; padding: 40px 20px;
}
.mon-abo-container { max-width: 640px; margin: 0 auto; }
.mon-abo-back {
    display: inline-block; margin-bottom: 20px; color: #7c3aed;
    text-decoration: none; font-size: 0.9rem; font-weight: 500;
}
.mon-abo-back:hover { text-decoration: underline; }
.mon-abo-card {
    background: #fff; border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08); padding: 32px;
}
.mon-abo-card h1 { font-size: 1.4rem; color: #1e293b; margin: 0 0 24px; }
.mon-abo-row {
    display: flex; justify-content: space-between;
    padding: 12px 0; border-bottom: 1px solid #f1f5f9;
}
.mon-abo-row:last-child { border-bottom: none; }
.mon-abo-label { font-size: 0.9rem; color: #64748b; font-weight: 500; }
.mon-abo-value { font-size: 0.9rem; color: #1e293b; font-weight: 600; }
.mon-abo-badge {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600;
}
.mon-abo-badge-trial    { background: #fef3c7; color: #92400e; }
.mon-abo-badge-standard { background: #dbeafe; color: #1e40af; }
.mon-abo-badge-premium  { background: #ede9fe; color: #5b21b6; }
.mon-abo-badge-active   { background: #dcfce7; color: #166534; }
.mon-abo-badge-expired  { background: #fee2e2; color: #991b1b; }
.mon-abo-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.mon-abo-btn {
    display: inline-block; padding: 10px 24px; border-radius: 10px;
    font-weight: 600; font-size: 0.9rem; text-decoration: none;
    transition: all 0.15s ease; font-family: inherit; border: none; cursor: pointer;
}
.mon-abo-btn-primary { background: #7c3aed; color: #fff; box-shadow: 0 2px 8px rgba(124,58,237,0.3); }
.mon-abo-btn-primary:hover { background: #6d28d9; }
.mon-abo-btn-outline { background: #fff; color: #7c3aed; border: 2px solid #7c3aed; }
.mon-abo-btn-outline:hover { background: #f5f3ff; }

/* ── Analytique tag ── */
.ana-tag {
    display: inline-block; padding: 2px 9px; border-radius: 10px;
    background: #ede9fe; color: #6d28d9;
    font-size: 11px; font-weight: 700; white-space: nowrap;
    font-family: Consolas, monospace;
}

/* ── Font mono Consolas ── */
.font-mono-consolas { font-family: Consolas, monospace; }

/* ── Accent indigo ── */
.accent-indigo { accent-color: #6366f1; }

/* ── Portail margin ── */
.mx-0-20-12 { margin: 0 20px 12px; }

/* ── Cloture page ── */
.cloture-ok {
    background: #dcfce7; border: 1px solid #86efac; border-radius: 6px;
    padding: 10px 14px; color: #166534;
}
.cloture-warn {
    background: #fef9c3; border: 1px solid #fde047; border-radius: 6px;
    padding: 10px 14px; color: #854d0e;
}
.alert-cloture {
    background: #fef9c3; border: 1px solid #fde047; color: #854d0e;
}

/* ── Lettrage page ── */
.lettrage-sel-totals { margin-bottom: 12px; font-size: 13px; }

/* ── Reprise page ── */
.reprise-missing {
    margin-top: 12px; background: #fef2f2; border: 1px solid #fca5a5;
    border-radius: 6px; padding: 10px 14px;
}

/* ── Import preview legend badges ── */
.legend-badge { padding: 2px 8px; border-radius: 3px; }

/* ── Intro / info boxes ── */
.urssaf-intro-box {
    background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px;
    padding: 16px 20px; font-size: 13px; color: #0c4a6e; margin-bottom: 18px; line-height: 1.6;
}
.urssaf-form-wrap {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 24px; margin-bottom: 18px;
}

/* ── Text transform ── */
.text-uppercase { text-transform: uppercase; }

/* ── Pagination ── */
.pagination-nav { margin-top: 16px; text-align: center; }
.pagination-nav .page-info { margin: 0 12px; }

/* ── Overflow ── */
.overflow-x-auto { overflow-x: auto; }

/* ── Extra widths ── */
.w-200 { width: 200px; }
.w-300 { width: 300px; }
.w-480 { width: 480px; }
.w-full { width: 100%; }
.max-w-400 { max-width: 400px; }
.max-w-90vw { max-width: 90vw; }

/* ── Extra spacing ── */
.pt-18 { padding-top: 18px; }
.mb-18 { margin-bottom: 18px; }
.mt-6  { margin-top: 6px; }
.ml-16 { margin-left: 16px; }
.pl-18 { padding-left: 18px; }
.m-0   { margin: 0; }

/* ── Text colors extras (slate) ── */
.text-slate7 { color: #374151; }
.text-white  { color: #fff; }
.text-16     { font-size: 16px; }
.text-inherit { color: inherit; }

/* ── Rounding extras ── */
.rounded-8 { border-radius: 8px; }
.overflow-hidden { overflow: hidden; }

/* ── Font style ── */
.font-italic { font-style: italic; }

/* ── Dashboard top5 dots ── */
.asso-top5-dot-charges { background: #dc2626; }
.asso-top5-dot-produits { background: #059669; }

/* ── Accept / standalone centered page ── */
.accept-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}
.accept-wrap { width: 100%; max-width: 480px; }

/* ── Min-width extras ── */
.min-w-280 { min-width: 280px; }

/* ── Reporting migration extras (Phase 2 — CSP cleanup) ── */
.p-40-0  { padding: 40px 0; }
.p-44-16 { padding: 44px 16px; }
.mt-22   { margin-top: 22px; }

/* ── NDF migration extras (CSP cleanup) ── */
.ml-20      { margin-left: 20px; }
.ml-8       { margin-left: 8px; }
.p-6        { padding: 6px; }
.p-20-0     { padding: 20px 0; }
.p-24-0     { padding: 24px 0; }
.my-10      { margin: 10px 0; }
.max-w-260  { max-width: 260px; }
.max-w-340  { max-width: 340px; }
.grid-2col-16 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-link-danger {
    background: none; border: none; color: #ef4444;
    cursor: pointer; padding: 0; font: inherit;
}
.tag-correction { background: #fef3c7; color: #92400e; }
