/* =====================================================================
   THIER UNIVERS — SIMULATEUR DE BULLETIN DE PAIE
   Interface aux couleurs du pilier Pilotage ; le bulletin lui-même est
   une feuille blanche, identique à l'écran et en PDF (impression A4).
   ===================================================================== */

:root,
[data-theme="dark"] {
    --fond: #0c1a27;
    --surface: #12263a;
    --surface-2: #183049;
    --trait: #26435d;
    --texte: #e7eef5;
    --texte-doux: #93a9bd;
    --balise: #2ec4b6;
    --balise-fonce: #179a8e;
    --sur-balise: #04221f;
    --fanal: #f4b942;
    --alerte: #ff7b72;
    --ombre: 0 18px 40px rgba(0, 0, 0, 0.35);
    --police-ui: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --police-lecture: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
    /* La feuille de paie : toujours un document papier */
    --papier: #ffffff;
    --encre: #15222e;
    --encre-douce: #4f6476;
    --filet: #d5dee6;
    --filet-fort: #15222e;
    --groupe: #eef3f6;
    --net: #dff4f1;
    --net-trait: #0f8f84;
    --note: #fff6dc;
    --note-trait: #e0a526;
    --note-encre: #2f2610;
    color-scheme: dark;
}

[data-theme="light"] {
    --fond: #f2f5f8;
    --surface: #ffffff;
    --surface-2: #e7eef4;
    --trait: #cdd8e2;
    --texte: #10212f;
    --texte-doux: #4c6378;
    --balise: #0f8f84;
    --balise-fonce: #0b7168;
    --sur-balise: #ffffff;
    --fanal: #b7791f;
    --alerte: #c53030;
    --ombre: 0 12px 30px rgba(16, 33, 47, 0.10);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 72px; }

body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font-family: var(--police-ui);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
    outline: 3px solid var(--balise);
    outline-offset: 2px;
}

.evitement {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    background: var(--balise);
    color: var(--sur-balise);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
}
.evitement:focus { left: 12px; }

.visuellement-cache {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Barre ---------- */
.barre {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--fond);
    border-bottom: 1px solid var(--trait);
}
.barre-interieur {
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.barre-retour {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--texte-doux);
    text-decoration: none;
    font-weight: 500;
}
.barre-retour svg { width: 18px; height: 18px; }
.barre-retour:hover { color: var(--texte); }
.barre-nom { font-weight: 600; }
.statut {
    margin-left: auto;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--trait);
    color: var(--texte-doux);
}
.statut.premium { border-color: var(--balise); color: var(--balise); }
.statut.admin { border-color: var(--fanal); color: var(--fanal); }

/* ---------- En-tête ---------- */
.entete {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 20px 20px;
}
.entete-titre {
    margin: 0;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.entete-phrase {
    margin: 10px 0 0;
    max-width: 70ch;
    color: var(--texte-doux);
    font-family: var(--police-lecture);
    font-size: 1.08rem;
    line-height: 1.65;
}
.exemple-point {
    display: inline-grid;
    place-items: center;
    width: 1.25em;
    height: 1.25em;
    border-radius: 50%;
    background: var(--fanal);
    color: #2b1d00;
    font-family: var(--police-ui);
    font-size: 0.8em;
    font-weight: 700;
    vertical-align: 0.1em;
}
.entete-note {
    margin: 10px 0 0;
    font-size: 0.86rem;
    color: var(--texte-doux);
}

/* ---------- Atelier : saisie + aperçu ---------- */
.atelier {
    max-width: 1440px;
    margin: 0 auto;
    padding: 8px 20px 56px;
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.saisie {
    position: sticky;
    top: 68px;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}
.saisie-aide {
    margin: 0 0 12px;
    font-size: 0.86rem;
    color: var(--texte-doux);
}

.rubrique {
    border: 1px solid var(--trait);
    border-radius: 10px;
    background: var(--surface);
    margin-bottom: 10px;
}
.rubrique > summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.rubrique > summary::-webkit-details-marker { display: none; }
.rubrique > summary::after {
    content: '';
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--texte-doux);
    border-bottom: 2px solid var(--texte-doux);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    margin-right: 4px;
}
.rubrique[open] > summary::after { transform: rotate(-135deg); }
.rubrique-corps {
    padding: 2px 14px 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}

.champ { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.champ.large { grid-column: 1 / -1; }
.champ label {
    font-size: 0.84rem;
    color: var(--texte-doux);
    line-height: 1.3;
}
.champ-saisie { position: relative; }
.champ input,
.champ select,
.champ textarea {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--trait);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.95rem;
    line-height: 1.3;
}
.champ textarea { resize: vertical; min-height: 58px; }
.champ input.nombre {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.champ-saisie.avec-unite input { padding-right: 30px; }
.champ-unite {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--texte-doux);
    pointer-events: none;
}
.champ input:focus,
.champ select:focus,
.champ textarea:focus { border-color: var(--balise); outline: none; box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.25); }
.champ input[aria-invalid="true"] { border-color: var(--alerte); }
.champ-case {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.champ-case input { width: auto; accent-color: var(--balise); }
.champ-case label { color: var(--texte); font-size: 0.9rem; }
.champ-aide { font-size: 0.78rem; color: var(--texte-doux); }

/* ---------- Mes salariés ---------- */
.dossier {
    border: 1px solid var(--trait);
    border-left: 4px solid var(--balise);
    border-radius: 10px;
    background: var(--surface);
    padding: 14px;
    margin-bottom: 12px;
    display: grid;
    gap: 10px;
}
.dossier-titre { margin: 0; font-size: 1rem; }
.dossier-aide { margin: 0; font-size: 0.86rem; color: var(--texte-doux); line-height: 1.5; }
.dossier-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dossier-actions .bouton { padding: 8px 14px; font-size: 0.88rem; }
.dossier-actions .bouton.principal { margin-left: 0; }
.dossier-actions a.bouton { text-decoration: none; display: inline-flex; align-items: center; }
.dossier .champ select {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--trait);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.95rem;
}
.bouton.danger { color: var(--alerte); }
.bouton:disabled { opacity: 0.5; cursor: default; }
.dossier-etat { margin: 0; font-size: 0.84rem; color: var(--texte-doux); min-height: 1.2em; }
.dossier-etat.succes { color: var(--balise); }
.dossier-etat.erreur { color: var(--alerte); }

.dossier-admin { padding-top: 10px; border-top: 1px dashed var(--trait); }
.dossier-consultation {
    margin: 0;
    padding: 10px 12px;
    border-left: 3px solid var(--fanal);
    border-radius: 6px;
    background: color-mix(in srgb, var(--fanal) 10%, transparent);
    font-size: 0.88rem;
    line-height: 1.5;
}
.fenetre-large { width: min(860px, calc(100vw - 24px)); }
.membre {
    border: 1px solid var(--trait);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.membre-entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.membre h3 { margin: 0; font-size: 1rem; }
.membre-info { margin: 2px 0 0; font-size: 0.85rem; color: var(--texte-doux); }
.membre-salaries { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.membre-salaries li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--surface-2);
    font-size: 0.9rem;
}
.membre .bouton { padding: 6px 12px; font-size: 0.85rem; }

/* ---------- Outils ---------- */
.outils {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
.bouton {
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    border: 1px solid var(--trait);
    background: var(--surface);
    color: var(--texte);
}
.bouton:hover { border-color: var(--texte-doux); }
.bouton.principal {
    margin-left: auto;
    background: var(--balise);
    border-color: var(--balise);
    color: var(--sur-balise);
}
.bouton.principal:hover { background: var(--balise-fonce); border-color: var(--balise-fonce); color: #fff; }

.alertes:empty { display: none; }
.alertes {
    border-left: 3px solid var(--alerte);
    background: var(--surface);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.alertes p { margin: 0; }
.alertes p + p { margin-top: 6px; }

.avertissement {
    margin: 14px 0 0;
    max-width: 90ch;
    font-size: 0.82rem;
    color: var(--texte-doux);
    line-height: 1.5;
}

/* ---------- La feuille de paie ---------- */
.feuille-cadre {
    overflow-x: auto;
    border-radius: 6px;
    box-shadow: var(--ombre);
    -webkit-overflow-scrolling: touch;
}
.feuille {
    background: var(--papier);
    color: var(--encre);
    min-width: 780px;
    padding: 26px 28px 22px;
    font-size: 12.5px;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}
.feuille h3, .feuille p { margin: 0; }

.feuille-entete {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--filet-fort);
}
.feuille-employeur strong { display: block; font-size: 14px; }
.feuille-employeur span { display: block; color: var(--encre-douce); }
.feuille-titre { text-align: right; }
.feuille-titre h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.feuille-titre p { color: var(--encre-douce); }
.feuille-titre .periode { color: var(--encre); font-weight: 600; font-size: 14px; }

.feuille-parties {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    padding: 14px 0;
}
.feuille-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 12px;
    font-size: 12px;
}
.feuille-details dt { color: var(--encre-douce); }
.feuille-details dd { margin: 0; }
.feuille-destinataire {
    border: 1px solid var(--filet);
    border-radius: 4px;
    padding: 10px 14px;
    align-self: start;
}
.feuille-destinataire strong { display: block; font-size: 14px; }
.feuille-destinataire span { display: block; white-space: pre-line; }

.rubriques {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4px;
}
.rubriques th {
    font-size: 11px;
    font-weight: 600;
    color: var(--encre-douce);
    text-align: right;
    padding: 4px 6px;
    border-bottom: 1px solid var(--filet-fort);
    white-space: nowrap;
}
.rubriques th:first-child { text-align: left; }
.rubriques thead tr:first-child th { border-bottom: 0; padding-bottom: 0; }
.rubriques th.cote-salarie { text-align: center; border-bottom: 1px solid var(--filet); }
.rubriques th.cote-employeur { text-align: center; border-bottom: 1px solid var(--filet); background: #f6f8fa; }
.rubriques td {
    padding: 3px 6px;
    border-bottom: 1px solid #edf1f4;
    text-align: right;
    white-space: nowrap;
    vertical-align: baseline;
}
.rubriques td:first-child {
    text-align: left;
    white-space: normal;
    min-width: 230px;
}
.rubriques td.employeur { background: #f6f8fa; }
.rubriques tr.groupe td {
    background: var(--groupe);
    font-weight: 600;
    text-align: left;
    padding-top: 5px;
    border-bottom: 0;
}
.rubriques tr.total td {
    font-weight: 700;
    border-top: 1px solid var(--filet-fort);
    border-bottom: 1px solid var(--filet-fort);
}
.rubriques tr.allegement td { color: #0b7168; }

.montant { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }

.point {
    flex: none;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 1px solid #a9bccb;
    background: #fff;
    color: #3d5669;
    font: 700 10.5px/1 var(--police-ui);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}
.point:hover,
.point[aria-expanded="true"] {
    background: var(--fanal);
    border-color: var(--note-trait);
    color: #2b1d00;
}
.point:focus-visible { outline: 2px solid var(--note-trait); outline-offset: 1px; }

.recap {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 18px;
    margin-top: 14px;
}
.recap-gauche { display: flex; flex-direction: column; gap: 10px; }
.recap-ligne {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px solid #edf1f4;
}
.recap-ligne span:first-child { color: var(--encre-douce); }
.recap-ligne strong { font-weight: 600; }
.impot {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.impot th, .impot td { padding: 3px 6px; text-align: right; border-bottom: 1px solid #edf1f4; }
.impot th { color: var(--encre-douce); font-weight: 600; font-size: 11px; }
.impot th:first-child, .impot td:first-child { text-align: left; }

.net-a-payer {
    background: var(--net);
    border-left: 4px solid var(--net-trait);
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.net-a-payer span { font-weight: 600; font-size: 13px; }
.net-a-payer strong { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.paiement { font-size: 12px; color: var(--encre-douce); }

.conges {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.conges caption { text-align: left; font-weight: 600; padding-bottom: 4px; }
.conges th, .conges td { padding: 3px 6px; border: 1px solid var(--filet); text-align: right; }
.conges th { font-weight: 600; color: var(--encre-douce); font-size: 11px; }
.conges th:first-child, .conges td:first-child { text-align: left; }

.mentions {
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid var(--filet);
    font-size: 11px;
    color: var(--encre-douce);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.mentions .conserver { font-family: var(--police-lecture); font-style: italic; color: var(--encre); }

.cellule-modifiable {
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: underline dotted #8aa3b6;
    text-underline-offset: 3px;
}
.cellule-modifiable:hover { color: #0b7168; text-decoration-color: currentColor; }
.cellule-modifiable:focus-visible { outline: 2px solid #0f8f84; outline-offset: 2px; border-radius: 2px; }

/* ---------- Bulletin modifiable comme un tableur (v1.3) ---------- */
.barre-tableur { font-size: 0.9rem; margin: 0 0 10px; }
.barre-tableur p { margin: 0 0 6px; }
.barre-tableur .taux-modifies { color: #b7791f; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cellule-saisie {
    width: 100%;
    min-width: 58px;
    max-width: 112px;
    box-sizing: border-box;
    font: inherit;
    text-align: right;
    color: inherit;
    background: color-mix(in srgb, var(--encre) 6%, transparent);
    border: 1px solid transparent;
    border-bottom: 1px dashed #0f8f84;
    border-radius: 3px;
    padding: 1px 4px;
}
.cellule-saisie:hover { border-color: #0f8f84; }
.cellule-saisie:focus { outline: 2px solid #0f8f84; outline-offset: 0; background: var(--papier); }
.cellule-saisie.modifiee { background: #fdecc8; color: #7a4a00; border-bottom-color: #b7791f; }
.cellule-saisie.libelle { text-align: left; max-width: none; min-width: 140px; }
.cellule-saisie[aria-invalid="true"] { outline: 2px solid #c53030; }
.libelle-libre { display: flex; align-items: center; gap: 4px; }
.supprimer-libre { border: 0; background: none; color: #c53030; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.ligne-ajout td { padding-top: 6px; padding-bottom: 6px; }
.ajouts { display: flex; flex-wrap: wrap; gap: 6px; }
.ajouter-libre { border: 1px dashed #0f8f84; background: none; color: #0b7168; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 0.9em; cursor: pointer; }
.ajouter-libre:hover { background: color-mix(in srgb, #0f8f84 10%, transparent); }
@media print {
    .cellule-saisie { border: 0 !important; background: none !important; padding: 0 !important; outline: none !important; }
    .ligne-ajout, .supprimer-libre, .barre-tableur { display: none !important; }
}

/* ---------- Annotation (explication d'un montant) ---------- */
.bulle {
    position: absolute;
    z-index: 50;
    width: min(340px, calc(100vw - 24px));
    background: var(--note);
    color: var(--note-encre);
    border-left: 4px solid var(--note-trait);
    border-radius: 4px;
    padding: 12px 34px 12px 14px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}
.bulle[hidden] { display: none; }
.bulle-titre { margin: 0; font-weight: 700; font-size: 0.92rem; line-height: 1.35; }
.bulle-montant { margin: 2px 0 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bulle-texte { margin: 0; font-family: var(--police-lecture); font-size: 0.95rem; line-height: 1.6; }
.bulle-fermer {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border: 0;
    background: transparent;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--note-encre);
    border-radius: 50%;
}
.bulle-fermer:hover { background: rgba(0, 0, 0, 0.06); }

/* ---------- Fenêtres (paramètres, accès) ---------- */
.fenetre {
    width: min(680px, calc(100vw - 24px));
    max-height: calc(100vh - 40px);
    border: 1px solid var(--trait);
    border-radius: 14px;
    background: var(--surface);
    color: var(--texte);
    padding: 0 20px 18px;
    box-shadow: var(--ombre);
}
.fenetre::backdrop { background: rgba(4, 12, 20, 0.6); }
.fenetre-entete {
    position: sticky;
    top: 0;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 8px;
    z-index: 1;
}
.fenetre-entete h2 { margin: 0; font-size: 1.2rem; }
.fenetre-fermer {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--trait);
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
}
.fenetre-aide { margin: 0 0 12px; color: var(--texte-doux); font-size: 0.92rem; }
.parametres-groupe { margin: 0 0 14px; }
.parametres-groupe h3 { margin: 0 0 8px; font-size: 0.95rem; }
.parametres-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px 12px;
}
.fenetre-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 6px;
}
.fenetre-actions .bouton.principal { margin-left: 0; }
.fenetre-actions a.bouton { text-decoration: none; display: inline-flex; align-items: center; }

/* ---------- Annonces ---------- */
.annonces {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.annonce {
    background: var(--surface);
    border: 1px solid var(--trait);
    border-left: 4px solid var(--balise);
    border-radius: 10px;
    padding: 10px 14px;
    box-shadow: var(--ombre);
    font-size: 0.92rem;
}

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 1040px) {
    .atelier { grid-template-columns: minmax(0, 1fr); }
    .saisie { position: static; max-height: none; overflow: visible; padding-right: 0; }
}
@media (max-width: 560px) {
    .entete { padding-top: 22px; }
    .rubrique-corps { grid-template-columns: minmax(0, 1fr); }
    .bouton.principal { margin-left: 0; width: 100%; }
    .outils .bouton { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* ---------- Impression : le bulletin seul, au format A4 ---------- */
@media print {
    @page { size: A4 portrait; margin: 9mm 9mm 10mm; }
    :root, [data-theme="dark"], [data-theme="light"] { color-scheme: light; --fond: #ffffff; }
    html, body { background: #fff !important; color: #000; }
    .barre, .evitement, .entete, .saisie, .outils, .alertes, .avertissement, .bulle, .annonces, .fenetre { display: none !important; }
    .atelier { display: block; padding: 0; max-width: none; }
    .feuille-cadre { overflow: visible; box-shadow: none; border-radius: 0; }
    .feuille { min-width: 0; width: 100%; padding: 0; font-size: 7.2pt; line-height: 1.22; }
    .feuille-entete { padding-bottom: 6px; gap: 12px; }
    .feuille-titre h3 { font-size: 13pt; }
    .feuille-titre .periode, .feuille-employeur strong, .feuille-destinataire strong { font-size: 9pt; }
    .feuille-parties { padding: 6px 0; gap: 12px; }
    .feuille-details { font-size: 7pt; gap: 0 10px; }
    .feuille-destinataire { padding: 6px 10px; }
    .rubriques th { font-size: 6.6pt; padding: 1px 5px; }
    .rubriques td { padding: 1.1px 5px; }
    .rubriques td:first-child { min-width: 0; }
    .rubriques tr.groupe td { padding-top: 2px; }
    .recap { margin-top: 6px; gap: 14px; }
    .recap-gauche { gap: 5px; }
    .recap-ligne { padding: 1px 0; }
    .net-a-payer { padding: 6px 10px; }
    .net-a-payer span { font-size: 8pt; }
    .net-a-payer strong { font-size: 12pt; }
    .impot, .conges { font-size: 7pt; }
    .impot th, .impot td, .conges th, .conges td { padding: 1px 5px; }
    .impot th, .conges th, .conges caption, .paiement { font-size: 7pt; }
    .mentions { margin-top: 6px; padding-top: 4px; font-size: 6.6pt; }
    .point { display: none !important; }
    .cellule-modifiable { text-decoration: none !important; cursor: default; }
    .rubriques tr, .recap, .conges, .mentions { break-inside: avoid; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}