/*
 * Sankofa Compta - socle d'interface (option 1a : modules en haut, pages du module à gauche).
 * Toutes les pages migrées ont <body class="sk"> et n'utilisent que les classes sk-* ci-dessous.
 * Thème sombre par défaut, thème clair avec html.theme-clair (posé par includes/head_commun.php).
 * Règle : aucune couleur, taille ou marge écrite dans une page. Si un besoin manque, on l'ajoute ICI.
 */

/* ---------- Jetons ---------- */
:root {
    --sk-fond: #0f172a; --sk-chrome: #0f172a; --sk-surface: #1e293b; --sk-surface-2: rgba(148, 163, 184, .08); --sk-champ: #0f172a;
    --sk-bordure: #334155; --sk-bordure-forte: #475569;
    --sk-texte: #f1f5f9; --sk-texte-2: #94a3b8; --sk-texte-3: #64748b;
    --sk-accent: #047857; --sk-accent-survol: #059669; --sk-accent-texte: #34d399; --sk-accent-doux: rgba(16, 185, 129, .14);
    --sk-or: #d4a72c; --sk-graphe-2: #475569;
    --sk-succes-doux: rgba(16, 185, 129, .14); --sk-succes-texte: #34d399;
    --sk-attention-doux: rgba(245, 158, 11, .12); --sk-attention-texte: #fbbf24; --sk-attention-point: #f59e0b;
    --sk-danger-doux: rgba(239, 68, 68, .12); --sk-danger-texte: #f87171; --sk-danger-point: #ef4444; --sk-danger: #dc2626;
    --sk-ombre: none; --sk-ombre-menu: 0 16px 40px rgba(0, 0, 0, .45);
    --sk-rayon: 10px; --sk-rayon-ctrl: 8px;
    --sk-police: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --sk-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
    --sk-barre: 56px; --sk-lateral: 248px;
}
html.theme-clair {
    --sk-fond: #f8fafc; --sk-chrome: #fff; --sk-surface: #fff; --sk-surface-2: #f1f5f9; --sk-champ: #fff;
    --sk-bordure: #e2e8f0; --sk-bordure-forte: #cbd5e1;
    --sk-texte: #0f172a; --sk-texte-2: #64748b; --sk-texte-3: #94a3b8;
    --sk-accent-texte: #047857; --sk-accent-doux: #ecfdf5; --sk-graphe-2: #cbd5e1;
    --sk-succes-doux: #ecfdf5; --sk-succes-texte: #047857;
    --sk-attention-doux: #fffbeb; --sk-attention-texte: #92400e; --sk-attention-point: #d97706;
    --sk-danger-doux: #fef2f2; --sk-danger-texte: #b91c1c; --sk-danger-point: #dc2626;
    --sk-ombre: 0 1px 2px rgba(15, 23, 42, .04); --sk-ombre-menu: 0 16px 40px rgba(15, 23, 42, .16);
}

/* ---------- Base ---------- */
html body.sk { margin: 0; background: var(--sk-fond); color: var(--sk-texte); font: 14px/1.45 var(--sk-police); }
.sk .hidden, .sk [hidden] { display: none !important; }
.sk *, .sk *::before, .sk *::after { box-sizing: border-box; }
.sk a { color: var(--sk-accent-texte); text-decoration: none; }
.sk a:hover { text-decoration: underline; }
.sk :focus-visible { outline: 3px solid rgba(212, 167, 44, .6); outline-offset: 2px; }
.sk svg.sk-ic { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sk-num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sk-code { font-family: var(--sk-mono); font-size: 12px; }
.sk-muted { color: var(--sk-texte-2); }
.sk-aide { font-size: 12px; color: var(--sk-texte-3); }
.sk-pile { display: flex; flex-direction: column; gap: 16px; }
.sk-ligne { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sk-ligne.sk-centre { justify-content: center; } .sk-centre-texte { text-align: center; }
.sk-intertitre { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--sk-bordure); color: var(--sk-texte-2); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sk-grille { display: grid; gap: 16px; }
.sk-grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sk-grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sk-grille-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sk-grille-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sk-grille-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1280px) { .sk-grille-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sk-grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .sk-grille-2, .sk-grille-3, .sk-grille-4, .sk-grille-5, .sk-grille-2-1 { grid-template-columns: minmax(0, 1fr); } .sk-grille > .sk-col-2, .sk-grille > .sk-col-3, .sk-grille > .sk-col-4 { grid-column: 1 / -1; } }

/* ---------- Barre du haut ---------- */
.sk-barre { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--sk-barre); background: var(--sk-chrome); border-bottom: 1px solid var(--sk-bordure); display: flex; align-items: center; gap: 16px; padding: 0 16px; }
.sk-logo, .sk a.sk-logo { display: flex; align-items: center; gap: 10px; padding-right: 16px; height: 32px; border-right: 1px solid var(--sk-bordure); color: var(--sk-texte); }
.sk-logo:hover { text-decoration: none; }
.sk-logo b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.sk-logo small { display: block; font-size: 11px; color: var(--sk-texte-2); line-height: 1.2; }
.sk-modules { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sk-modules a { height: 32px; padding: 0 10px; border-radius: var(--sk-rayon-ctrl); display: flex; align-items: center; font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--sk-texte-2); }
.sk-modules a:hover { background: var(--sk-surface-2); color: var(--sk-texte); text-decoration: none; }
.sk-modules a.actif { background: var(--sk-accent-doux); color: var(--sk-accent-texte); }
.sk-outils { display: flex; align-items: center; gap: 4px; }
.sk-dossier { height: 40px; padding: 0 10px; margin-right: 6px; border: 1px solid var(--sk-bordure); border-radius: var(--sk-rayon-ctrl); background: var(--sk-surface); color: var(--sk-texte); display: flex; align-items: center; gap: 10px; font: inherit; cursor: pointer; text-align: left; max-width: 260px; }
.sk-dossier b { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-dossier small { display: block; font-size: 11px; color: var(--sk-texte-2); line-height: 1.2; }
.sk-btn-icone { position: relative; width: 36px; height: 36px; border: 0; border-radius: var(--sk-rayon-ctrl); background: transparent; color: var(--sk-texte-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sk-btn-icone:hover, .sk-btn-icone.actif { background: var(--sk-surface-2); color: var(--sk-texte); }
.sk-btn-icone svg.sk-ic { width: 18px; height: 18px; }
.sk-pastille { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--sk-danger); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.sk-avatar { width: 32px; height: 32px; margin-left: 4px; border: 0; border-radius: 999px; background: var(--sk-accent-doux); color: var(--sk-accent-texte); font: 700 12px var(--sk-police); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sk-menu { position: fixed; z-index: 50; min-width: 240px; max-height: 70vh; overflow-y: auto; padding: 6px; background: var(--sk-surface); border: 1px solid var(--sk-bordure); border-radius: var(--sk-rayon); box-shadow: var(--sk-ombre-menu); font-size: 13px; }
.sk-menu[hidden] { display: none; }
.sk-menu a, .sk-menu button { width: 100%; min-height: 34px; padding: 6px 10px; border: 0; border-radius: var(--sk-rayon-ctrl); background: transparent; color: var(--sk-texte); font: inherit; text-align: left; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.sk-menu a:hover, .sk-menu button:hover { background: var(--sk-surface-2); text-decoration: none; }
.sk-menu a.actif { color: var(--sk-accent-texte); font-weight: 600; }
.sk-menu-titre { padding: 8px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sk-texte-3); }
.sk-menu input { width: 100%; height: 32px; margin-bottom: 4px; }

/* ---------- Cadre + menu latéral du module ---------- */
.sk-cadre { display: flex; padding-top: var(--sk-barre); min-height: 100vh; }
.sk-lateral { width: var(--sk-lateral); flex-shrink: 0; position: sticky; top: var(--sk-barre); height: calc(100vh - var(--sk-barre)); overflow-y: auto; background: var(--sk-chrome); border-right: 1px solid var(--sk-bordure); padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; }
.sk-lateral-titre { margin: 0 0 8px; padding: 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sk-texte-3); }
.sk-lateral-groupe { margin: 14px 0 4px; padding: 0 10px; font-size: 11px; font-weight: 600; color: var(--sk-texte-3); }
.sk-lateral a { min-height: 36px; padding: 6px 10px; border-radius: var(--sk-rayon-ctrl); display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--sk-texte-2); }
.sk-lateral a:hover { background: var(--sk-surface-2); color: var(--sk-texte); text-decoration: none; }
.sk-lateral a.actif { background: var(--sk-accent-doux); color: var(--sk-accent-texte); }
.sk-lateral a .sk-compteur { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--sk-surface-2); color: var(--sk-texte-2); font-size: 11px; font-weight: 600; text-align: center; }
.sk-main { flex: 1; min-width: 0; padding: 24px 32px 40px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 1100px) { .sk-lateral { display: none; } .sk-main { padding: 20px; } }

/* ---------- En-tête de page ---------- */
.sk-entete { display: flex; flex-direction: column; gap: 4px; }
.sk-ariane { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sk-texte-2); }
.sk-ariane a { color: var(--sk-texte-2); }
.sk-ariane span:last-child { color: var(--sk-texte); }
.sk-entete-ligne { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sk-titre { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.sk-description { margin: 4px 0 0; font-size: 14px; color: var(--sk-texte-2); }
.sk-actions { display: flex; gap: 8px; }
.sk-onglets { display: flex; gap: 24px; margin-top: 12px; border-bottom: 1px solid var(--sk-bordure); overflow-x: auto; }
.sk-onglets a { padding: 10px 0; margin-bottom: -1px; font-size: 14px; color: var(--sk-texte-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.sk-onglets a:hover { color: var(--sk-texte); text-decoration: none; }
.sk-onglets a.actif { color: var(--sk-texte); font-weight: 600; border-bottom-color: var(--sk-accent); }

/* ---------- Cartes ---------- */
.sk-carte { background: var(--sk-surface); border: 1px solid var(--sk-bordure); border-radius: var(--sk-rayon); box-shadow: var(--sk-ombre); min-width: 0; }
.sk-carte-entete { min-height: 52px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--sk-bordure); }
.sk-carte-titre { margin: 0; font-size: 15px; font-weight: 600; }
.sk-carte-corps { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.sk-carte > .sk-table-cadre { border-radius: 0 0 var(--sk-rayon) var(--sk-rayon); }
.sk-kpi { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.sk-kpi-libelle { font-size: 13px; color: var(--sk-texte-2); }
.sk-kpi-valeur { font-size: 22px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.sk-kpi-pied { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--sk-bordure); font-size: 12px; display: flex; gap: 6px 20px; flex-wrap: wrap; }
.sk-hausse { color: var(--sk-succes-texte); font-weight: 600; }
.sk-baisse { color: var(--sk-danger-texte); font-weight: 600; }

/* ---------- Boutons ---------- */
.sk-btn { height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: var(--sk-rayon-ctrl); font: 500 14px var(--sk-police); display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; cursor: pointer; text-decoration: none !important; }
.sk-btn-primaire { background: var(--sk-accent); color: #fff !important; font-weight: 600; }
.sk-btn-primaire:hover { background: var(--sk-accent-survol); }
.sk-btn-secondaire { background: var(--sk-surface); border-color: var(--sk-bordure-forte); color: var(--sk-texte) !important; }
.sk-btn-secondaire:hover { background: var(--sk-surface-2); }
.sk-btn-discret { background: transparent; color: var(--sk-accent-texte) !important; }
.sk-btn-discret:hover { background: var(--sk-accent-doux); }
.sk-btn-danger { background: var(--sk-danger); color: #fff !important; font-weight: 600; }
.sk-btn-danger:hover { background: #ef4444; }
.sk-btn:disabled { opacity: .5; cursor: not-allowed; }
.sk-btn-petit, .sk-table .sk-btn { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 7px; }

/* ---------- Champs ---------- */
.sk-champ { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.sk-input { height: 36px; padding: 0 12px; border: 1px solid var(--sk-bordure-forte); border-radius: var(--sk-rayon-ctrl); background: var(--sk-champ); color: var(--sk-texte); font: 400 14px var(--sk-police); width: 100%; }
textarea.sk-input { height: auto; min-height: 80px; padding: 8px 12px; }
.sk-input::placeholder { color: var(--sk-texte-3); }
.sk-input:focus { outline: none; border-color: var(--sk-accent); box-shadow: 0 0 0 3px rgba(4, 120, 87, .25); }
.sk-input.sk-invalide { border-color: var(--sk-danger-point); }
.sk-erreur { font-size: 12px; font-weight: 400; color: var(--sk-danger-texte); }
.sk-formulaire { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.sk-filtres { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }

/* ---------- Tableaux ---------- */
.sk-table-cadre { overflow-x: auto; }
.sk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sk-table th { padding: 10px 16px; background: var(--sk-surface-2); font-size: 12px; font-weight: 600; color: var(--sk-texte-2); text-align: left; white-space: nowrap; }
.sk-table td { height: 44px; padding: 0 16px; border-top: 1px solid var(--sk-bordure); }
.sk-table tbody tr:hover > td { background: var(--sk-surface-2); }
.sk-table th.sk-num, .sk-table td.sk-num { text-align: right; }
.sk-table tr.sk-total td { background: var(--sk-surface-2); font-weight: 600; }
.sk-vide { padding: 32px 16px; text-align: center; font-size: 13px; color: var(--sk-texte-3); }

/* ---------- Statuts, étiquettes, messages ---------- */
.sk-statut { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--sk-surface-2); color: var(--sk-texte-2); }
.sk-statut::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.sk-statut-succes { background: var(--sk-succes-doux); color: var(--sk-succes-texte); }
.sk-statut-attention { background: var(--sk-attention-doux); color: var(--sk-attention-texte); }
.sk-statut-danger { background: var(--sk-danger-doux); color: var(--sk-danger-texte); }
.sk-tag { padding: 2px 8px; border: 1px solid var(--sk-bordure); border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--sk-texte-2); }
.sk-message { padding: 12px 14px; border-radius: var(--sk-rayon-ctrl); font-size: 13px; display: flex; gap: 10px; background: var(--sk-surface-2); color: var(--sk-texte); }
.sk-message::before { content: ""; width: 8px; height: 8px; margin-top: 5px; border-radius: 999px; flex-shrink: 0; background: var(--sk-texte-3); }
.sk-message-succes { background: var(--sk-succes-doux); color: var(--sk-succes-texte); } .sk-message-succes::before { background: var(--sk-accent); }
.sk-message-attention { background: var(--sk-attention-doux); color: var(--sk-attention-texte); } .sk-message-attention::before { background: var(--sk-attention-point); }
.sk-message-danger { background: var(--sk-danger-doux); color: var(--sk-danger-texte); } .sk-message-danger::before { background: var(--sk-danger-point); }
.sk-liste-alertes a { padding: 11px 16px; display: flex; gap: 10px; font-size: 13px; color: var(--sk-texte); border-bottom: 1px solid var(--sk-bordure); }
.sk-liste-alertes a:last-child { border-bottom: 0; }
.sk-liste-alertes a:hover { background: var(--sk-surface-2); text-decoration: none; }
.sk-liste-alertes a::before { content: ""; width: 8px; height: 8px; margin-top: 5px; border-radius: 999px; flex-shrink: 0; background: var(--sk-attention-point); }
.sk-liste-alertes a.danger::before { background: var(--sk-danger-point); }
.sk-jauge { height: 6px; border-radius: 999px; background: var(--sk-surface-2); overflow: hidden; }
.sk-jauge > span { display: block; height: 100%; border-radius: 999px; background: var(--sk-accent); }
.sk-jauge.attention > span { background: var(--sk-attention-point); }
.sk-jauge.danger > span { background: var(--sk-danger-point); }
.sk-jauge-ligne { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sk-jauge-ligne > .sk-jauge { width: 60px; flex-shrink: 0; }

@media print {
    .sk-barre, .sk-lateral, .sk-actions, .sk-onglets, .sk-menu { display: none !important; }
    .sk-cadre { padding-top: 0; } .sk-main { padding: 0; }
    .sk-carte { box-shadow: none; break-inside: avoid; }
}

/* ---------- Graphiques et mesures ---------- */
.sk-graphe { position: relative; height: 240px; }
.sk-mesure { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.sk-mesure b { font-weight: 600; font-variant-numeric: tabular-nums; }
.sk-mesure .sk-hausse, .sk-mesure .sk-baisse { font-weight: 600; }
.sk-liens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; font-size: 13px; }

/* ---------- Listes avec recherche (Tom Select, assets/js/listes-recherche.js) ---------- */
.sk .ts-wrapper.sk-input { display: flex; align-items: center; padding: 0 32px 0 12px; cursor: pointer; }
.sk .ts-wrapper.sk-input.focus { border-color: var(--sk-accent); box-shadow: 0 0 0 3px rgba(4, 120, 87, .25); }
.sk .ts-dropdown { background: var(--sk-surface); color: var(--sk-texte); border-color: var(--sk-bordure); box-shadow: var(--sk-ombre-menu); font-size: 13px; }
.sk .ts-dropdown .option.active { background: var(--sk-accent-doux); color: var(--sk-accent-texte); }
.sk .ts-dropdown .optgroup-header, .sk .ts-dropdown .no-results { color: var(--sk-texte-3); }
.sk .ts-dropdown .dropdown-input { background: var(--sk-champ); color: var(--sk-texte); border-color: var(--sk-bordure-forte); }
.sk-table .sk-input, .sk-table .ts-wrapper.sk-input { height: 30px; font-size: 13px; }
.sk-filtres .sk-input, .sk-filtres .ts-wrapper.sk-input { width: auto; min-width: 180px; }

/* ---------- Cases à cocher, lignes mises en évidence, notes sous une cellule ---------- */
.sk input[type="checkbox"], .sk input[type="radio"] { width: 16px; height: 16px; margin: 0; accent-color: var(--sk-accent); cursor: pointer; vertical-align: middle; }
.sk input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .4; }
.sk-table th.sk-case, .sk-table td.sk-case { width: 44px; padding-right: 0; }
.sk-table tr.sk-evidence > td { background: var(--sk-attention-doux); }
.sk-note { display: block; margin-top: 2px; font-size: 12px; color: var(--sk-texte-2); }
.sk-note-danger { color: var(--sk-danger-texte); }
.sk-note-attention { color: var(--sk-attention-texte); }
.sk-note a { color: inherit; text-decoration: underline; }
.sk-table td { padding-top: 6px; padding-bottom: 6px; }

/* ---------- Pied de carte (actions sous un tableau ou un formulaire) ---------- */
.sk-carte-pied { padding: 12px 16px; border-top: 1px solid var(--sk-bordure); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sk-carte-pied.sk-droite { justify-content: flex-end; }

/* ---------- Carte repliable (mode d'emploi, réglages) ---------- */
details.sk-carte > summary { min-height: 52px; padding: 8px 16px; display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; }
details.sk-carte > summary::-webkit-details-marker { display: none; }
details.sk-carte > summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--sk-texte-2); border-bottom: 2px solid var(--sk-texte-2); transform: rotate(45deg); }
details.sk-carte[open] > summary { border-bottom: 1px solid var(--sk-bordure); }
details.sk-carte[open] > summary::after { transform: rotate(-135deg); }
.sk-texte { font-size: 14px; line-height: 1.55; }
.sk-texte ol, .sk-texte ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.sk-case-libelle { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.sk-lateral a > span:not(.sk-compteur) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-table tr.sk-groupe > td { background: var(--sk-surface-2); font-weight: 600; }
.sk-table td.sk-retrait { padding-left: 48px; }
.sk-table tr.sk-detail > td { height: 36px; font-size: 12px; color: var(--sk-texte-2); }
.sk-note-succes { color: var(--sk-succes-texte); }
.sk-liste-etat { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
input[type="file"].sk-input { height: auto; padding: 6px; font-size: 13px; }
input[type="file"].sk-input::file-selector-button { height: 30px; margin-right: 12px; padding: 0 12px; border: 0; border-radius: 7px; background: var(--sk-accent); color: #fff; font: 600 13px var(--sk-police); cursor: pointer; }
.sk-progression { flex: 1; max-width: 420px; }
.sk-onglets { scrollbar-width: none; } .sk-onglets::-webkit-scrollbar { display: none; }
:where(.sk-main) p { margin: 0; } .sk-texte { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Pagination (serveur : skPagination ; automatique : assets/js/mise-en-page.js) ---------- */
.sk .sk-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; font-size: 13px; color: var(--sk-texte-2); border-top: 1px solid var(--sk-bordure); }
.sk .sk-pagination .sk-pages { display: flex; align-items: center; gap: 4px; }
.sk .sk-pagination :is(a, button) { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--sk-bordure-forte); background: transparent; color: var(--sk-texte); font: inherit; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sk .sk-pagination :is(a, button):hover:not(:disabled) { border-color: var(--sk-accent); color: var(--sk-accent-texte); text-decoration: none; }
.sk .sk-pagination :is(a.actif, button.sk-actif) { background: var(--sk-accent); border-color: var(--sk-accent); color: #fff; font-weight: 600; }
.sk .sk-pagination select { height: 32px; border: 1px solid var(--sk-bordure-forte); border-radius: 7px; background: var(--sk-champ); color: var(--sk-texte); }
select.sk-input { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }

/* ---------- Fiche : libellés et valeurs ---------- */
.sk-infos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 24px; }
.sk-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sk-info-libelle { font-size: 12px; color: var(--sk-texte-3); }
.sk-info-valeur { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.sk-separateur { border: 0; border-top: 1px solid var(--sk-bordure); margin: 0; }
.sk-historique { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.sk-historique time { color: var(--sk-texte-3); margin-right: 6px; font-variant-numeric: tabular-nums; }

/* ---------- Fenêtre modale (formulaire de création) ---------- */
.sk-fenetre { position: fixed; inset: 0; z-index: 60; padding: 16px; background: rgba(2, 6, 23, .55); display: flex; align-items: center; justify-content: center; }
.sk-fenetre > .sk-carte { width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto; box-shadow: var(--sk-ombre-menu); }
.sk-fenetre.sk-fenetre-petite > .sk-carte { max-width: 480px; }

/* ---------- Pièce justificative : aperçu à gauche, traitement à droite ---------- */
.sk-grille-2-3 { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
@media (max-width: 1400px) { .sk-grille-2-3 { grid-template-columns: minmax(0, 1fr); } }
.sk-apercu { width: 100%; border: 0; border-radius: var(--sk-rayon-ctrl); background: #fff; display: block; }
iframe.sk-apercu { height: 75vh; }
.sk-input.sk-etroit, .sk-table .sk-input.sk-etroit { width: 160px; }
.sk-table .sk-input { min-width: 120px; }
.sk-champ-large { grid-column: span 2; }
@media (max-width: 900px) { .sk-champ-large { grid-column: auto; } }
.sk-note { font-family: var(--sk-police); }

/* ---------- Tableau de saisie (lignes d'écriture modifiables) ---------- */
.sk-deplacer { display: flex; flex-direction: column; align-items: center; gap: 0; }
.sk-mini { width: 22px; height: 16px; padding: 0; border: 0; background: transparent; color: var(--sk-texte-3); font-size: 9px; line-height: 1; cursor: pointer; }
.sk-mini:hover { color: var(--sk-texte); }
.sk-poignee { cursor: grab; color: var(--sk-texte-3); font-size: 13px; line-height: 1; }
.sk-table tr.sk-glisse { opacity: .4; }
.sk-table tr.sk-cible > td { box-shadow: inset 0 2px 0 var(--sk-accent); }
.sk-table-saisie th, .sk-table-saisie td { padding-left: 6px; padding-right: 6px; }
.sk-table-saisie td.sk-ordre { width: 40px; text-align: center; }
.sk-table-saisie .sk-input, .sk-table-saisie .ts-wrapper.sk-input { min-width: 0; }
.sk-table-saisie .select-compte, .sk-table-saisie .ts-wrapper.select-compte { min-width: 170px; }
.sk-table-saisie select[name$="[compte_tiers]"] + .ts-wrapper, .sk-table-saisie .ts-wrapper[class*="compte_tiers"] { min-width: 110px; }
.sk-table-saisie input[type="date"] { width: 132px; min-width: 132px; }
.sk-table-saisie .debit-input, .sk-table-saisie .credit-input { width: 100px; min-width: 100px; }
.sk-table-saisie input[name$="[numero_facture]"] { width: 110px; }
.sk-table-saisie input[name$="[libelle]"] { min-width: 140px; }

/* ---------- Tuile (lien vers un écran, sur une page d'accueil de module) ---------- */
a.sk-tuile { padding: 16px; display: flex; gap: 12px; align-items: flex-start; color: var(--sk-texte); }
a.sk-tuile:hover { text-decoration: none; border-color: var(--sk-accent); }
.sk-tuile-icone { width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--sk-rayon-ctrl); background: var(--sk-accent-doux); color: var(--sk-accent-texte); display: inline-flex; align-items: center; justify-content: center; }
.sk-tuile b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.sk-tuile span { font-size: 13px; color: var(--sk-texte-2); }

/* ---------- États comptables (balances, livres) ---------- */
.sk-table th.sk-centre, .sk-table td.sk-centre { text-align: center; }
.sk-table .sk-sep { border-left: 1px solid var(--sk-bordure); }
.sk-table thead tr + tr th { padding-top: 4px; }
.sk-table tr.sk-sous-total > td { font-weight: 600; background: var(--sk-surface-2); }
.sk-table .sk-court { white-space: nowrap; }

/* ---------- États financiers : lignes dépliables, simulation, grande fenêtre ---------- */
.sk-bascule { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-align: left; }
.sk-bascule:hover { color: var(--sk-accent-texte); }
.sk-bascule .sk-ic { width: 14px; height: 14px; flex-shrink: 0; transform: rotate(-90deg); transition: transform .15s; }
.sk-bascule[aria-expanded="true"] .sk-ic { transform: none; }
.sk-table td.sk-retrait-1 { padding-left: 36px; }
.sk-filigrane { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; overflow: hidden; pointer-events: none; }
.sk-filigrane span { font-size: 9rem; font-weight: 900; color: var(--sk-attention-texte); opacity: .08; transform: rotate(-30deg); white-space: nowrap; user-select: none; }
.sk-fenetre.sk-fenetre-large > .sk-carte { max-width: 1100px; }
.sk-carte-entete .sk-ligne { margin-left: auto; }
.sk-table.sk-compacte td { height: 34px; padding-top: 4px; padding-bottom: 4px; }
.sk-table td.sk-detail-calcul { height: auto; padding: 8px 16px 12px; } .sk-table td.sk-detail-calcul .sk-pile { gap: 8px; }
.sk-table td.sk-col-ref, .sk-table th.sk-col-ref { width: 120px; }
.sk-ligne.sk-droite { justify-content: flex-end; }
.sk-grille.sk-haut { align-items: start; }
.sk-carte-pied.sk-pile { align-items: stretch; }
.sk-ligne.sk-serre { flex-wrap: nowrap; gap: 4px; }

/* ---------- Lignes de document (factures, devis, BC : assets/js/lignes_facture.js) ---------- */
.sk-ligne-doc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--sk-bordure); border-radius: var(--sk-rayon-ctrl); background: var(--sk-surface); }
.sk-ligne-doc-lecture { align-items: start; font-size: 13px; }
.sk-col-1 { grid-column: span 1; } .sk-col-2 { grid-column: span 2; } .sk-col-3 { grid-column: span 3; } .sk-col-4 { grid-column: span 4; }
.sk-col-5 { grid-column: span 5; } .sk-col-6 { grid-column: span 6; } .sk-col-12 { grid-column: span 12; }
@media (max-width: 1100px) { .sk-ligne-doc > [class*="sk-col-"] { grid-column: span 6; } .sk-ligne-doc > .sk-col-5, .sk-ligne-doc > .sk-col-12 { grid-column: span 12; } }
.sk-champ-petit { gap: 4px; font-size: 12px; font-weight: 500; color: var(--sk-texte-2); }
.sk-ligne-doc .sk-input { height: 32px; padding: 0 8px; font-size: 13px; }
.sk-ligne-doc select.sk-input { padding-right: 26px; background-position: right 6px center; }
.sk-ligne-doc .sk-mini-champ { width: 64px; flex-shrink: 0; }
.sk-ligne-doc .sk-num .sk-btn { margin-top: 4px; }
.sk-relatif { position: relative; }
.sk-pousse { margin-left: auto; }
.sk-pile-serree { gap: 6px; }
.sk-mesure-forte { font-size: 15px; }
.sk-liste-deroulante { position: absolute; z-index: 30; top: 100%; left: 0; margin-top: 4px; width: 100%; max-height: 16rem; overflow-y: auto; padding: 4px; background: var(--sk-surface); border: 1px solid var(--sk-bordure); border-radius: var(--sk-rayon-ctrl); box-shadow: var(--sk-ombre-menu); font-size: 13px; font-weight: 400; color: var(--sk-texte); }
.sk-liste-deroulante.sk-liste-large { width: 26rem; max-width: 80vw; }
.sk-liste-deroulante > div, .sk-liste-deroulante > label { padding: 6px 10px; border-radius: 6px; cursor: pointer; display: flex; flex-direction: column; }
.sk-liste-deroulante > label { flex-direction: row; }
.sk-liste-deroulante > div:hover, .sk-liste-deroulante > label:hover, .sk-liste-deroulante > .actif { background: var(--sk-surface-2); }
.sk-liste-deroulante [data-valeur] { flex-direction: row; gap: 8px; }
.sk-fleche-champ { position: absolute; right: 0; top: 0; height: 32px; width: 30px; border: 0; background: transparent; color: var(--sk-texte-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sk-fleche-champ .sk-ic, .sk-choix-taxes .sk-ic { width: 14px; height: 14px; }
.sk-ligne-doc [data-liste-comptes] .sk-input { padding-right: 30px; }
.sk-choix-taxes { display: flex; align-items: center; gap: 6px; text-align: left; cursor: pointer; height: auto !important; min-height: 32px; padding: 4px 8px !important; }
.sk-choix-taxes .l-pastilles { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.sk-ligne-doc .sk-pile-serree .sk-btn { align-self: flex-end; }
.sk-mini-champ { width: 88px; flex-shrink: 0; }

/* ---------- Graphiques : légende HTML, conteneur de 240 px (règle 11) ; listes Top 5 (règle 12) ---------- */
.sk-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--sk-texte-2); }
.sk-legende span { display: inline-flex; align-items: center; gap: 6px; }
.sk-legende i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sk-pastille-accent { background: var(--sk-accent); } .sk-pastille-graphe-2 { background: var(--sk-graphe-2); }
.sk-pastille-or { background: var(--sk-or); } .sk-pastille-danger { background: var(--sk-danger-point); }
.sk-classement { margin: 0; padding: 4px 16px 12px; list-style: none; }
.sk-classement li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--sk-bordure); font-size: 13px; }
.sk-classement li:last-child { border-bottom: 0; }
.sk-classement-rang { color: var(--sk-texte-3); font-variant-numeric: tabular-nums; }
.sk-classement-nom { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-classement b { font-weight: 600; font-variant-numeric: tabular-nums; }
.sk-classement .sk-jauge { grid-column: 2 / 4; height: 4px; }
.sk-encadre { padding: 12px; border-radius: var(--sk-rayon-ctrl); background: var(--sk-surface-2); display: flex; flex-direction: column; gap: 2px; }
.sk-encadre b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sk-pastille-accent-doux { background: var(--sk-accent-doux); border: 1px solid var(--sk-accent); } .sk-pastille-bordure { background: var(--sk-bordure-forte); }

/* ---------- Choix exclusif en boutons (sens d'un mouvement...) ---------- */
.sk-segments { display: flex; gap: 8px; }
.sk-segment { flex: 1; height: 36px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--sk-bordure-forte); border-radius: var(--sk-rayon-ctrl); cursor: pointer; font-weight: 500; color: var(--sk-texte); }
.sk-segment:has(:checked) { border-color: var(--sk-accent); background: var(--sk-accent-doux); color: var(--sk-accent-texte); }
.sk-segment:has(:disabled) { opacity: .5; cursor: not-allowed; }
.sk-input.sk-champ-moyen { width: 300px; max-width: 100%; }
.sk-table .sk-input.sk-plein { width: 100%; }

/* ---------- Barre de sélection fixée en bas (rapprochement) ; volet repliable dans une cellule ---------- */
.sk-barre-selection { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px; background: var(--sk-surface); border-top: 1px solid var(--sk-bordure-forte); box-shadow: var(--sk-ombre-menu); font-size: 13px; }
.sk-barre-selection[hidden] { display: none; }
.sk-barre-selection b { font-variant-numeric: tabular-nums; }
.sk-volet > summary { cursor: pointer; list-style: none; color: var(--sk-accent-texte); font-weight: 500; }
.sk-volet > summary::-webkit-details-marker { display: none; }
.sk-volet-corps { margin-top: 6px; padding: 10px; width: 300px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--sk-bordure); border-radius: var(--sk-rayon-ctrl); background: var(--sk-surface-2); white-space: normal; }
.sk-texte-succes { color: var(--sk-succes-texte); } .sk-texte-danger { color: var(--sk-danger-texte); } .sk-texte-attention { color: var(--sk-attention-texte, var(--sk-or)); }
.sk-attenue { opacity: .7; }
.sk-nowrap { white-space: nowrap; }
.sk-filtres > .sk-pousse { flex: 1; } .sk-filtres > .sk-pousse .sk-input { width: 100%; }
/* Indicateur cliquable (filtre de la liste) : lien autour de skKpi, bordure accent quand le filtre est actif */
.sk-kpi-lien { display: block; color: inherit; text-decoration: none; }
.sk-kpi-lien:hover .sk-kpi { border-color: var(--sk-bordure-forte); }
.sk-kpi-lien.actif .sk-kpi { border-color: var(--sk-accent); box-shadow: 0 0 0 1px var(--sk-accent); }
.sk-kpi-lien .sk-kpi-valeur { color: var(--sk-texte); }
.sk-table th.sk-large, .sk-table td.sk-large { width: 55%; } .sk-table .ts-wrapper.sk-plein { width: 100%; }
.sk-en-ligne { display: inline; }

/* ---------- Kanban (échéances fiscales) : colonnes par étape, cartes glissables ---------- */
.sk-kanban { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 1280px) { .sk-kanban { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .sk-kanban { grid-template-columns: 1fr; } }
.sk-kanban-colonne { min-height: 12rem; padding: 8px; border: 1px solid var(--sk-bordure); border-radius: var(--sk-rayon); background: var(--sk-surface-2); }
.sk-kanban-colonne.survol { outline: 2px dashed var(--sk-accent); outline-offset: -4px; }
.sk-kanban-titre { margin: 0 0 8px; padding: 4px 6px 6px; border-bottom: 2px solid var(--sk-bordure-forte); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--sk-texte-2); }
.sk-kanban-titre.ton-info { border-color: var(--sk-graphe-2); } .sk-kanban-titre.ton-attention { border-color: var(--sk-attention-point); }
.sk-kanban-titre.ton-or { border-color: var(--sk-or); } .sk-kanban-titre.ton-succes { border-color: var(--sk-accent); }
.sk-kanban-cartes { display: flex; flex-direction: column; gap: 8px; }
.sk-kanban-carte { padding: 10px; border: 1px solid var(--sk-bordure); border-radius: var(--sk-rayon-ctrl); background: var(--sk-surface); font-size: 13px; cursor: grab; display: flex; flex-direction: column; gap: 4px; }
.sk-kanban-carte[draggable="false"] { cursor: pointer; }
.sk-kanban-carte.glisse { opacity: .4; }
.sk-kanban-carte.retard { border-color: var(--sk-danger-point); } .sk-kanban-carte.proche { border-color: var(--sk-attention-point); }
.sk-kanban-carte.sk-carte-focus { box-shadow: 0 0 0 2px var(--sk-accent); }
.sk-kanban-carte b { font-weight: 600; line-height: 1.3; }
.sk-kanban-carte .sk-ligne { flex-wrap: wrap; gap: 4px; }

/* ---------- Personnes (paie) : avatar avec photo ou initiales, nom et précisions ---------- */
.sk-personne { display: flex; align-items: center; gap: 10px; color: inherit; }
.sk a.sk-personne { color: inherit; } .sk a.sk-personne:hover b { color: var(--sk-accent-texte); text-decoration: none; }
.sk-personne b { font-weight: 600; display: block; }
.sk-avatar-personne { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--sk-accent-doux); color: var(--sk-accent-texte); font: 700 12px var(--sk-police); display: inline-flex; align-items: center; justify-content: center; }
.sk-avatar-personne img { width: 100%; height: 100%; object-fit: cover; }
.sk-avatar-personne.sk-avatar-grand { width: 72px; height: 72px; border-radius: 16px; font-size: 22px; }
.sk-zone-photo { width: 96px; height: 96px; border: 2px dashed var(--sk-bordure-forte); border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; color: var(--sk-texte-3); cursor: pointer; background: var(--sk-surface-2); } .sk-zone-photo:hover { border-color: var(--sk-accent); } .sk-zone-photo img { width: 100%; height: 100%; object-fit: cover; }
.sk-document { width: 100%; max-width: 820px; margin: 0 auto; } .sk-signature { height: 48px; border-bottom: 1px solid var(--sk-bordure-forte); }
.sk-tag, .sk-statut { white-space: nowrap; }
.sk-table-cadre.sk-defilement { max-height: 420px; overflow-y: auto; } .sk-table-cadre.sk-defilement thead th { position: sticky; top: 0; z-index: 1; }
.sk-separateur-bas { border-bottom: 1px solid var(--sk-bordure); } .sk-separateur-bas:last-child { border-bottom: 0; }
.sk-table textarea.sk-input { height: 32px; min-height: 32px; resize: vertical; }
.sk-table .sk-input.sk-saisie-mois { min-width: 96px; width: 96px; padding: 0 6px; } .sk-table input[type="number"].sk-saisie-mois { text-align: right; }
.sk-table .sk-input.sk-compte-budget, .sk-table .ts-wrapper.sk-compte-budget { width: 300px; }
/* Heatmap des mouvements (analyses/heatmap.php) : intensité 0 à 5 sur la couleur d'accent */
.sk-hm-mois + .sk-hm-mois { margin-top: 20px; }
.sk-hm-titre { font-size: 14px; font-weight: 600; margin: 8px 0; text-transform: capitalize; }
.sk-hm-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 560px; }
.sk-hm-entete { text-align: center; font-size: 11px; font-weight: 600; color: var(--sk-texte-3); padding: 4px 0; }
.sk-hm-jour { min-height: 44px; border-radius: 6px; border: 1px solid var(--sk-bordure); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; line-height: 1.2; }
.sk-hm-jour b { font-size: 13px; }
.sk-hm-jour span { color: inherit; opacity: .85; }
.sk-hm-jour.sk-hm-vide { border-style: dashed; opacity: .35; }
.sk-hm-0 { background: var(--sk-surface-2); color: var(--sk-texte-3); }
.sk-hm-1 { background: color-mix(in srgb, var(--sk-accent) 15%, var(--sk-surface)); }
.sk-hm-2 { background: color-mix(in srgb, var(--sk-accent) 32%, var(--sk-surface)); }
.sk-hm-3 { background: color-mix(in srgb, var(--sk-accent) 50%, var(--sk-surface)); }
.sk-hm-4 { background: color-mix(in srgb, var(--sk-accent) 72%, var(--sk-surface)); color: #fff; }
.sk-hm-5 { background: var(--sk-accent); color: #fff; }
.sk-hm-jour:not(.sk-hm-vide):not(.sk-hm-0) { cursor: default; }
.sk-hm-jour:not(.sk-hm-vide):not(.sk-hm-0):hover { outline: 2px solid var(--sk-or, var(--sk-accent)); outline-offset: 1px; }
.sk-legende i.sk-hm-0, .sk-legende i[class^="sk-hm-"] { border: 1px solid var(--sk-bordure); }
.sk-hm-bulle { position: fixed; z-index: 70; min-width: 240px; max-width: 340px; padding: 12px 14px; border-radius: var(--sk-rayon-ctrl); background: var(--sk-surface); border: 1px solid var(--sk-bordure-forte); box-shadow: var(--sk-ombre-menu); font-size: 13px; pointer-events: none; }
.sk-hm-bulle strong { display: block; margin-bottom: 6px; }
.sk-hm-ligne { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.sk-hm-bulle ul { margin: 4px 0 0 16px; padding: 0; color: var(--sk-texte-2); }
/* Liste de comptes et bouton « Créer » (fenêtre Nouveau compte, includes/ui/fenetre_compte.php) */
.sk-champ-compte { display: flex; align-items: center; gap: 6px; } .sk-champ-compte > select, .sk-champ-compte > .ts-wrapper { flex: 1; min-width: 0; }
/* Liste des notifications (notifications/index.php) : point de couleur selon le type, notification lue atténuée */
.sk-liste-notifs a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; color: var(--sk-texte); }
.sk-liste-notifs a + a { border-top: 1px solid var(--sk-bordure); }
.sk-liste-notifs a:hover { background: var(--sk-surface-2); text-decoration: none; }
.sk-liste-notifs a.lue { opacity: .6; }
.sk-notif-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.sk-notif-point { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--sk-texte-3); }
.sk-notif-point.ton-succes { background: var(--sk-accent); } .sk-notif-point.ton-attention { background: var(--sk-attention-point); } .sk-notif-point.ton-danger { background: var(--sk-danger-point); }
/* Fil d'actualités (actualites/index.php) */
.sk-liste-articles article { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.sk-liste-articles article + article { border-top: 1px solid var(--sk-bordure); }
.sk-liste-articles h3 { font-size: 14px; font-weight: 600; margin: 0; }
.sk-liste-articles p { margin: 0; }
/* Lot 9 : six indicateurs (portefeuille), 1/3 - 2/3, liste à défilement court */
.sk-grille-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .sk-grille-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 1280px) { .sk-grille-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .sk-grille-6, .sk-grille-1-2 { grid-template-columns: minmax(0, 1fr); } }
.sk-defilement-court { max-height: 260px; overflow-y: auto; }
/* Journal d audit : détail avant / après */
.sk-table tr.sk-haut-ligne td { vertical-align: top; } .sk-diff summary { cursor: pointer; } .sk-diff table td { padding: 2px 10px 2px 0; } .sk-barre-texte { text-decoration: line-through; }
.sk-liste-notifs .sk-liste-element { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; } .sk-liste-notifs .sk-liste-element + .sk-liste-element { border-top: 1px solid var(--sk-bordure); }
.sk-ligne.sk-nowrap { flex-wrap: nowrap; }
/* Double authentification (settings/totp_setup.php) */
.sk-code-totp { width: 140px; text-align: center; font-family: var(--sk-mono); letter-spacing: .2em; }
.sk-codes-secours { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 12px; border-radius: var(--sk-rayon-ctrl); background: var(--sk-surface-2); font-family: var(--sk-mono); text-align: center; }
.sk-etapes { display: flex; flex-direction: column; gap: 20px; }
.sk-etapes > div { display: flex; gap: 14px; align-items: flex-start; }
.sk-etape-num { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--sk-accent); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sk-qr { width: 180px; height: 180px; padding: 10px; background: #fff; border-radius: var(--sk-rayon); }
/* Profils et droits : matrice des menus */
.sk-table .sk-centre { text-align: center; } .sk-cadenas { font-size: 11px; opacity: .6; } .sk-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.sk-matrice td:first-child, .sk-matrice th:first-child { position: sticky; left: 0; background: var(--sk-surface); z-index: 1; }
.sk-matrice thead th:first-child, .sk-matrice tr.sk-groupe td:first-child { background: linear-gradient(var(--sk-surface-2), var(--sk-surface-2)), var(--sk-surface); }
.sk-matrice tr.sk-total td:first-child { background: linear-gradient(var(--sk-surface-2), var(--sk-surface-2)), var(--sk-surface); }
.sk-table tr.sk-fort td, .sk-matrice tr.sk-fort td:first-child { background: var(--sk-accent); color: #fff; }
.sk-livre-paie th a { color: inherit; } .sk-livre-paie th { white-space: normal; min-width: 96px; vertical-align: bottom; } .sk-livre-paie td:first-child { white-space: nowrap; }
/* Choix d un profil (utilisateurs et accès) */
.sk-choix-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.sk-choix-carte { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--sk-bordure); border-radius: var(--sk-rayon-ctrl); cursor: pointer; font-weight: 400; }
.sk-choix-carte:has(:checked) { border-color: var(--sk-accent); background: var(--sk-accent-doux); }
button.sk-segment { background: var(--sk-surface); justify-content: center; } .sk-segment.actif { border-color: var(--sk-accent); background: var(--sk-accent-doux); color: var(--sk-accent-texte); }
.sk-input.sk-mini-champ { width: 88px; flex: none; }
/* Catalogue : volets achat / vente / stock de la fiche article */
.sk-volet-article { border: 1px solid var(--sk-bordure); border-radius: var(--sk-rayon-ctrl); overflow: hidden; } .sk-volet-entete { padding: 10px 14px; background: var(--sk-surface-2); border-bottom: 1px solid var(--sk-bordure); }
.sk-volet-article > .sk-pile, .sk-volet-article > .sk-grille { padding: 14px; } .sk-inactif { opacity: .4; pointer-events: none; } .sk-col-pleine { grid-column: 1 / -1; }

/* Nouvelle société : récapitulatif en direct */
.sk-recap-titre { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sk-texte-3); margin: 0 0 6px; }
.sk-recap-dl { display: grid; gap: 6px; margin: 0; font-size: 13px; }
.sk-recap-dl > div { display: flex; justify-content: space-between; gap: 12px; }
.sk-recap-dl dt { color: var(--sk-texte-2); } .sk-recap-dl dd { margin: 0; text-align: right; }
.sk-recap-liste { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.sk-recap-liste li { display: flex; gap: 6px; align-items: baseline; }
.sk-recap-liste.sk-numerotee { list-style: decimal; padding-left: 18px; } .sk-recap-liste.sk-numerotee li { display: list-item; }
.sk-anneau { position: relative; width: 52px; height: 52px; flex-shrink: 0; }
.sk-anneau svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sk-anneau .fond { stroke: var(--sk-bordure); } .sk-anneau .ok { stroke: var(--sk-accent); } .sk-anneau .moyen { stroke: var(--sk-or); } .sk-anneau .faible { stroke: var(--sk-danger-point); }
.sk-anneau circle { transition: stroke-dasharray .5s ease; }
.sk-anneau span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.sk-tag-bouton { background: var(--sk-surface-2); cursor: pointer; } .sk-tag-bouton:hover { border-color: var(--sk-accent); color: var(--sk-accent-texte); }
.sk-org { overflow-x: auto; } .sk-org-arbre { display: flex; flex-direction: column; align-items: center; min-width: max-content; }
.sk-org-noeud { display: flex; flex-direction: column; align-items: center; padding: 6px 10px; border: 1px solid var(--sk-bordure); border-radius: var(--sk-rayon-ctrl); background: var(--sk-surface); font-size: 12px; text-align: center; max-width: 150px; }
.sk-org-noeud.actif { border-color: var(--sk-accent); background: var(--sk-accent-doux); color: var(--sk-accent-texte); }
.sk-org-trait { width: 1px; height: 14px; background: var(--sk-bordure-forte); }
.sk-org-enfants { display: flex; }
.sk-org-col { position: relative; display: flex; flex-direction: column; align-items: center; padding: 14px 6px 0; }
.sk-org-col .v { position: absolute; top: 0; left: 50%; width: 1px; height: 14px; background: var(--sk-bordure-forte); }
.sk-org-col .g, .sk-org-col .d { position: absolute; top: 0; height: 1px; width: 50%; background: var(--sk-bordure-forte); }
.sk-org-col .g { left: 0; } .sk-org-col .d { right: 0; }
.sk-frise { position: relative; height: 4.6rem; margin: 0 4px; }
.sk-frise-fond, .sk-frise-ex, .sk-frise-apres { position: absolute; top: 2.1rem; height: 6px; border-radius: 3px; }
.sk-frise-fond { left: 0; right: 0; background: var(--sk-surface-2); }
.sk-frise-ex { left: 0; background: var(--sk-accent); transition: width .8s cubic-bezier(.16, 1, .3, 1); }
.sk-frise-apres { background: var(--sk-or); opacity: .6; transition: width .8s cubic-bezier(.16, 1, .3, 1), left .8s cubic-bezier(.16, 1, .3, 1); }
.sk-frise-grad { position: absolute; top: 2.1rem; width: 1px; height: 6px; background: var(--sk-surface); opacity: .7; }
.sk-frise-jalons > .sk-frise-jalon { position: absolute; }
.sk-frise-point { position: absolute; left: -5px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--sk-surface); background: var(--sk-texte-3); }
.sk-frise-point.ton-succes { background: var(--sk-accent); } .sk-frise-point.ton-attention { background: var(--sk-or); }
.sk-frise-lib { position: absolute; white-space: nowrap; font-size: 11px; color: var(--sk-texte-2); }
.sk-frise-lib.centre { transform: translateX(-50%); } .sk-frise-lib.droite { right: 0; } .sk-frise-lib.gauche { left: -4px; }
.sk-frise-jalon { opacity: 0; transform: translateY(4px); animation: sk-frise-apparition .45s ease forwards; }
@keyframes sk-frise-apparition { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sk-frise-ex, .sk-frise-apres { transition: none; } .sk-frise-jalon { animation: none; opacity: 1; transform: none; } }
.sk-oblig { list-style: none; margin: 0; padding: 0; }
.sk-oblig > li { padding: 10px 16px; border-bottom: 1px solid var(--sk-bordure); font-size: 13px; display: grid; gap: 2px; }

/* Flux de trésorerie : colonnes de prévision, rubriques dépliables */
.sk-table .sk-col-prevision { background: var(--sk-surface-2); }
.sk-table tr.sk-flux-rubrique { cursor: pointer; } .sk-table tr.sk-flux-rubrique:hover > td { background: var(--sk-accent-doux); }
.sk-flux-chevron { display: inline-block; width: 10px; color: var(--sk-texte-3); transition: transform .15s ease; }
tr.sk-ouvert .sk-flux-chevron { transform: rotate(90deg); }

/* Accueil public (index.php, avant la connexion) : fond émeraude uni, symbole en filigrane, police système */
html body.sk-accueil { margin: 0; min-height: 100%; background: #052e23; color: #ecfdf5; font: 14px/1.45 var(--sk-police); overflow-x: hidden; }
.sk-accueil *, .sk-accueil *::before, .sk-accueil *::after { box-sizing: border-box; }
.sk-accueil-scene { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: #052e23; }
.sk-accueil-filigrane { position: absolute; right: -6vw; top: 50%; width: min(62vw, 760px); transform: translateY(-50%); color: var(--sk-or); opacity: .09; pointer-events: none; animation: sk-accueil-respire 9s ease-in-out infinite; }
@keyframes sk-accueil-respire { 0%, 100% { opacity: .07; } 50% { opacity: .11; } }
.sk-accueil-haut { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 28px 48px; }
.sk-accueil-marque { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.sk-accueil-marque b { font-size: 21px; font-weight: 700; }
.sk-accueil-lien { color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; padding: 9px 18px; border: 1px solid rgba(167, 243, 208, .4); border-radius: 8px; transition: border-color .2s, background .2s; }
.sk-accueil-lien:hover { border-color: #a7f3d0; background: rgba(167, 243, 208, .08); }
.sk-accueil-contenu { position: relative; z-index: 2; margin: auto 0; padding: 40px 48px 56px; max-width: 780px; display: flex; flex-direction: column; gap: 22px; }
.sk-accueil-accroche { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #e8c766; }
.sk-accueil-titre { margin: 0; font-size: clamp(34px, 5.4vw, 64px); font-weight: 700; line-height: 1.06; letter-spacing: -.01em; color: #fff; }
.sk-accueil-titre em { font-style: normal; color: #e8c766; }
.sk-accueil-sous-titre { margin: 0; font-size: 16px; line-height: 1.65; color: #bfe3d3; max-width: 56ch; }
.sk-accueil-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 6px; }
.sk-accueil-bouton { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 48px; padding: 0 26px; border-radius: 10px; background: #fff; color: #064e3b; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .2s; }
.sk-accueil-bouton:hover { background: #ecfdf5; }
.sk-accueil-bouton:focus-visible, .sk-accueil-lien:focus-visible { outline: 2px solid #e8c766; outline-offset: 3px; }
.sk-accueil-mention { font-size: 13px; color: #bfe3d3; }
.sk-accueil svg.sk-ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sk-accueil-mention svg.sk-ic { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; color: #e8c766; }
.sk-accueil-modules { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 48px 40px; background: rgba(167, 243, 208, .14); border: 1px solid rgba(167, 243, 208, .14); border-radius: 14px; overflow: hidden; }
.sk-accueil-module { background: #063a2c; padding: 22px 24px; }
.sk-accueil-module svg.sk-ic { width: 22px; height: 22px; color: #e8c766; }
.sk-accueil-module h3 { margin: 10px 0 6px; font-size: 15px; font-weight: 600; color: #fff; }
.sk-accueil-module p { margin: 0; font-size: 13px; line-height: 1.55; color: #bfe3d3; }
.sk-accueil-pied { position: relative; z-index: 2; padding: 0 48px 26px; font-size: 12px; color: #bfe3d3; }
.sk-accueil-pied a { color: inherit; }
.sk-accueil-apparition { animation: sk-auth-apparition .7s cubic-bezier(.16, 1, .3, 1) both; }
@media (prefers-reduced-motion: reduce) { .sk-accueil-filigrane, .sk-accueil-apparition { animation: none; } }
@media (max-width: 1024px) { .sk-accueil-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .sk-accueil-haut { padding: 16px; }
    .sk-accueil-contenu { padding: 24px 16px 32px; gap: 16px; }
    .sk-accueil-modules { grid-template-columns: minmax(0, 1fr); margin: 0 16px 28px; }
    .sk-accueil-pied { padding: 0 16px 20px; }
    .sk-accueil-bouton { width: 100%; }
    .sk-accueil-filigrane { width: 120vw; right: -40vw; top: 30%; }
    .sk-accueil-lien { display: none; }
}

/* Pages hors session (maquettes 3a à 3f) : includes/ui/auth.php. Gabarit « Carte » : panneau de marque à gauche,
   formulaire posé sur le fond clair à droite ; gabarit « Assistant » : barre de marque, étapes à gauche, contenu. */
html body.sk.sk-auth { min-height: 100vh; background: var(--sk-fond); }
.sk-auth-page { display: grid; grid-template-columns: 42% 1fr; min-height: 100vh; }
.sk-auth-panneau { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 40px 48px; background: #064e3b; color: #bfe3d3; }
.sk-auth-filigrane { position: absolute; right: -18%; bottom: -12%; width: 90%; color: #fff; opacity: .1; pointer-events: none; }
.sk-auth-marque { position: relative; display: inline-flex; align-items: center; gap: 12px; color: #fff !important; font-size: 17px; text-decoration: none !important; }
.sk-auth-accroche { position: relative; display: flex; flex-direction: column; gap: 12px; }
.sk-auth-accroche p { margin: 0; color: #fff; font-size: 30px; line-height: 1.2; font-weight: 700; max-width: 440px; }
.sk-auth-accroche em { font-style: normal; color: #e8c766; }
.sk-auth-accroche span { font-size: 13px; color: #bfe3d3; }
.sk-auth-copyright { position: relative; margin: 0; font-size: 12px; color: #bfe3d3; }
.sk-auth-centre { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--sk-fond); }
.sk-auth-bloc { width: 100%; max-width: 400px; animation: sk-auth-apparition .35s ease both; }
.sk-auth-bloc.sk-auth-large { max-width: 480px; }
.sk-auth-progression { display: flex; gap: 6px; margin-bottom: 14px; }
.sk-auth-progression span { flex: 1; height: 4px; border-radius: 2px; background: var(--sk-bordure); }
.sk-auth-progression span.fait { background: var(--sk-accent); }
.sk-auth-etape { margin: 0 0 6px; color: var(--sk-accent-texte); font-size: 12px; font-weight: 600; }
.sk-auth-bloc h1 { margin: 0 0 6px; color: var(--sk-texte); font-size: 24px; font-weight: 700; }
.sk-auth-description { margin: 0 0 20px; color: var(--sk-texte-2); font-size: 14px; }
.sk-auth-bloc h1 + .sk-auth-contenu { margin-top: 20px; }
.sk-auth-note { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--sk-bordure); color: var(--sk-texte-2); font-size: 12px; }
.sk-auth .sk-input { height: 40px; }
.sk-auth textarea.sk-input { height: auto; }
.sk-auth form > .sk-btn-primaire, .sk-auth .sk-btn-plein { width: 100%; height: 44px; }
.sk-auth .sk-code-saisie { height: 56px; text-align: center; font-family: var(--sk-mono); font-size: 26px; letter-spacing: .35em; }
.sk-auth .sk-champ-mdp { position: relative; display: block; } .sk-auth .sk-champ-mdp .sk-input { padding-right: 84px; }
.sk-auth .sk-champ-mdp button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.sk-auth-libelle-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sk-minuteur { display: flex; flex-direction: column; gap: 6px; }
.sk-minuteur-piste { height: 4px; border-radius: 2px; background: var(--sk-bordure); overflow: hidden; }
.sk-minuteur-piste > span { display: block; height: 100%; width: 100%; background: var(--sk-accent); transition: width 1s linear; }
.sk-minuteur-piste > span.fin { background: var(--sk-danger-point); }
.sk-minuteur-ligne { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--sk-texte-2); }
.sk-minuteur-ligne b { color: var(--sk-texte); } .sk-minuteur-ligne b.fin { color: var(--sk-danger-texte); }
.sk-auth-liens { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sk-auth-etapes-bloc { border: 1px solid var(--sk-bordure); border-radius: var(--sk-rayon); background: var(--sk-surface); }
.sk-auth-etapes-bloc > div { display: flex; gap: 14px; align-items: flex-start; padding: 16px; }
.sk-auth-etapes-bloc > div + div { border-top: 1px solid var(--sk-bordure); }
.sk-auth-qr-cle { display: flex; gap: 16px; align-items: center; padding: 12px; margin-top: 10px; border-radius: var(--sk-rayon-ctrl); background: var(--sk-surface-2); }
.sk-auth-qr-cle .sk-qr { width: 148px; height: 148px; flex-shrink: 0; }
.sk-input.sk-champ-erreur { border-color: var(--sk-danger-point); }
.sk-champ .sk-erreur { color: var(--sk-danger-texte); font-size: 12px; font-weight: 400; }
@keyframes sk-auth-apparition { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sk-auth-bloc { animation: none; } }
@media (max-width: 760px) {
    .sk-auth-page { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .sk-auth-panneau { flex-direction: row; align-items: center; min-height: 56px; padding: 0 20px; gap: 12px; }
    .sk-auth-panneau .sk-auth-accroche, .sk-auth-panneau .sk-auth-copyright, .sk-auth-filigrane { display: none; }
    .sk-auth-panneau .sk-auth-marque svg { width: 28px; height: 28px; }
    .sk-auth-centre { align-items: flex-start; padding: 24px 20px; }
}
@media print { html body.sk.sk-auth { background: #fff; } .sk-auth-panneau, .sk-sans-impression { display: none !important; } .sk-auth-page { display: block; } }

/* Assistant d'installation (setup/initial_setup.php) : barre de marque, étapes à gauche, contenu */
.sk-auth-barre { position: fixed; inset: 0 0 auto 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 24px; background: #064e3b; color: #bfe3d3; }
.sk-auth-barre .sk-auth-marque { font-size: 15px; }
.sk-auth-barre-sep { width: 1px; height: 22px; background: rgba(191, 227, 211, .35); }
.sk-auth-barre-titre { font-size: 14px; }
.sk-auth-cadre { padding-top: 56px; }
.sk-assistant-etapes { position: sticky; top: 56px; align-self: flex-start; width: 248px; flex-shrink: 0; min-height: calc(100vh - 56px); padding: 24px 12px; background: var(--sk-surface); border-right: 1px solid var(--sk-bordure); }
.sk-assistant-etapes ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sk-assistant-etapes li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--sk-rayon-ctrl); }
.sk-assistant-etapes li > span { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--sk-surface-2); color: var(--sk-texte-2); border: 1px solid var(--sk-bordure); }
.sk-assistant-etapes li > div { display: flex; flex-direction: column; min-width: 0; }
.sk-assistant-etapes li b { font-size: 13px; color: var(--sk-texte); font-weight: 600; }
.sk-assistant-etapes li small { font-size: 12px; color: var(--sk-texte-2); }
.sk-assistant-etapes li.actif { background: var(--sk-accent-doux); }
.sk-assistant-etapes li.actif > span, .sk-assistant-etapes li.fait > span { background: var(--sk-accent); border-color: var(--sk-accent); color: #fff; }
.sk-assistant-etapes li.sautee { opacity: .55; }
.sk-assistant-mobile { display: none; }
.sk-assistant-main { max-width: 920px; }
.sk-assistant-entete { display: flex; flex-direction: column; gap: 4px; }
.sk-assistant-entete .sk-auth-etape { margin: 0; }
.sk-assistant-entete h1 { margin: 0; font-size: 22px; font-weight: 700; color: var(--sk-texte); }
.sk-assistant-entete p:last-child { margin: 0; color: var(--sk-texte-2); font-size: 14px; }
.sk-assistant-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 4px; }
.sk-assistant-actions .sk-btn { height: 40px; }
.sk-auth-mode-assistant .sk-choix-carte { padding: 14px; border-radius: 10px; background: var(--sk-surface); }
.sk-auth-mode-assistant .sk-choix-carte input[type="radio"], .sk-auth-mode-assistant .sk-choix-carte input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--sk-accent); vertical-align: -3px; }
.sk-auth-mode-assistant .sk-choix-carte:has(:checked) { border-color: var(--sk-accent); box-shadow: 0 0 0 1px var(--sk-accent); background: var(--sk-accent-doux); }
.sk-choix-cartes.sk-choix-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sk-choix-cartes.sk-choix-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sk-filiale { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--sk-bordure); border-radius: var(--sk-rayon); background: var(--sk-surface-2); }
.sk-encadre-recap { padding: 12px 14px; border-radius: var(--sk-rayon-ctrl); background: var(--sk-surface-2); }
.sk-liste-creee { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sk-liste-creee li { display: flex; gap: 10px; align-items: flex-start; }
.sk-liste-creee li > svg.sk-ic { width: 18px; height: 18px; flex-shrink: 0; color: var(--sk-accent); margin-top: 1px; }
@media (max-width: 760px) {
    .sk-assistant-etapes { display: none; }
    .sk-assistant-mobile { display: block; position: sticky; top: 56px; z-index: 10; padding: 12px 20px; background: var(--sk-surface); border-bottom: 1px solid var(--sk-bordure); }
    .sk-assistant-segments { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 8px; }
    .sk-assistant-segments span { height: 4px; border-radius: 2px; background: var(--sk-bordure); }
    .sk-assistant-segments span.fait, .sk-assistant-segments span.actif { background: var(--sk-accent); }
    .sk-assistant-mobile p { margin: 0; display: flex; flex-direction: column; font-size: 12px; color: var(--sk-texte-2); }
    .sk-assistant-mobile b { color: var(--sk-texte); font-size: 13px; }
    .sk-auth-cadre { flex-direction: column; }
    .sk-assistant-main { padding: 20px; }
    .sk-choix-cartes.sk-choix-2, .sk-choix-cartes.sk-choix-3 { grid-template-columns: minmax(0, 1fr); }
}

/* Cloche de notifications : panneau (assets/js/notifications.js) et bulles à l'écran */
#cloche-panneau { padding: 0; }
.sk-notif-entete, .sk-notif-pied { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; }
.sk-notif-entete { border-bottom: 1px solid var(--sk-bordure); } .sk-notif-pied { border-top: 1px solid var(--sk-bordure); }
.sk-menu .sk-notif-entete button, .sk-menu .sk-notif-pied button, .sk-menu .sk-notif-pied a { width: auto; min-height: 28px; }
.sk-notif-liste { display: flex; flex-direction: column; gap: 2px; padding: 6px; }
.sk-menu .sk-notif-liste a { align-items: flex-start; gap: 10px; }
.sk-menu .sk-notif-liste a.lue { opacity: .6; }
.sk-notif-action { border-left: 3px solid var(--sk-texte-3); }
.sk-notif-action.ton-attention { background: var(--sk-attention-doux) !important; border-left-color: var(--sk-attention-point); color: var(--sk-attention-texte) !important; }
.sk-notif-action.ton-info { background: var(--sk-surface-2) !important; }
.sk-notif-nonlue { width: 8px; height: 8px; margin-top: 6px; flex-shrink: 0; border-radius: 50%; background: var(--sk-accent); }
.sk-bulles-notifs { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; width: 320px; max-width: 92vw; }
.sk-bulle-notif { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--sk-surface); border: 1px solid var(--sk-bordure); border-radius: var(--sk-rayon); box-shadow: var(--sk-ombre-menu); color: var(--sk-texte) !important; text-decoration: none !important; animation: sk-auth-apparition .3s ease both; }
.sk-bulle-notif:hover { background: var(--sk-surface-2); }

/* Sélection et barres de défilement fines aux couleurs de la marque (reprises de l'ancien assets/css/charte.css) */
::selection { background: rgba(4, 120, 87, .35); }
html { scrollbar-color: rgba(52, 211, 153, .35) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(52, 211, 153, .28); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 167, 44, .6); background-clip: padding-box; }
html.theme-clair, html.theme-clair * { scrollbar-color: rgba(4, 120, 87, .35) transparent; }
html.theme-clair ::-webkit-scrollbar-thumb { background: rgba(4, 120, 87, .3); background-clip: padding-box; }
html.theme-clair ::-webkit-scrollbar-thumb:hover { background: rgba(212, 167, 44, .7); background-clip: padding-box; }
.sk-input.sk-saisie-mois { width: 92px; min-width: 92px; padding: 0 8px; }   /* grille des cours mensuels (Paramètres paie, devises) */
.sk-table tr.sk-selection td { background: var(--sk-accent-doux); }   /* ligne choisie (compteurs de congés) */
