/* =====================================================================
   Ishuri — feuille de style de l'application (version 3)
   Thème : menu bleu en dégradé, police Inter, cartes blanches à bord fin,
   icônes sur pastilles de couleur. Les montants utilisent des chiffres
   tabulaires pour s'aligner en colonne.
   ===================================================================== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../vendor/fonts/inter/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../vendor/fonts/inter/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../vendor/fonts/inter/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../vendor/fonts/inter/inter-latin-700-normal.woff2") format("woff2"); }

:root {
    /* Couleurs de marque */
    --primaire: #1976d2;
    --primaire-fonce: #1565c0;
    --primaire-clair: #e8f2fd;
    --primaire-rgb: 25, 118, 210;
    --menu-haut: #1a73d0;
    --menu-bas: #1255a8;
    /* Neutres */
    --fond: #f4f7fb;
    --surface: #ffffff;
    --bord: #e5e9f0;
    --bord-fort: #d5dce6;
    --texte: #0f172a;
    --sourdine: #64748b;
    --encre: #0f2b5b;
    /* Couleurs de sens */
    --vert: #15803d;
    --vert-fonce: #166534;
    --vert-clair: #dcfce7;
    --ambre: #b45309;
    --ambre-clair: #fef3c7;
    --rouge: #b91c1c;
    --rouge-clair: #fee2e2;
    --bleu: #1976d2;
    --violet: #7c3aed;
    --violet-clair: #ede9fe;
    --rayon: 8px;
    --ombre-1: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .05);
    --ombre-2: 0 18px 40px rgba(15, 23, 42, .18);

    --bs-body-font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --bs-body-color: var(--texte);
    --bs-body-font-size: 14px;
    --bs-primary: var(--primaire);
    --bs-primary-rgb: var(--primaire-rgb);
    --bs-link-color: var(--primaire);
    --bs-link-color-rgb: var(--primaire-rgb);
    --bs-link-hover-color: var(--primaire-fonce);
    --bs-border-color: var(--bord);
}
body { background: var(--fond); font-size: 14px; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--primaire); outline-offset: 2px; }

/* --------------------------------------------------------------- Boutons et champs */
.btn { border-radius: 6px; font-weight: 600; font-size: 13.5px; letter-spacing: .005em; }
.btn-lg { font-size: 15px; border-radius: 8px; }
.btn-sm { border-radius: 5px; font-size: 12.5px; }
.btn-primary { --bs-btn-bg: var(--primaire); --bs-btn-border-color: var(--primaire); --bs-btn-hover-bg: var(--primaire-fonce); --bs-btn-hover-border-color: var(--primaire-fonce); --bs-btn-active-bg: var(--primaire-fonce); --bs-btn-active-border-color: var(--primaire-fonce); --bs-btn-disabled-bg: #93bdec; --bs-btn-disabled-border-color: #93bdec; box-shadow: 0 1px 2px rgba(25, 118, 210, .25); }
.btn-outline-primary { --bs-btn-color: var(--primaire); --bs-btn-border-color: #b6d3f4; --bs-btn-hover-bg: var(--primaire); --bs-btn-hover-border-color: var(--primaire); --bs-btn-active-bg: var(--primaire-fonce); }
.btn-outline-secondary { --bs-btn-color: #334155; --bs-btn-border-color: var(--bord-fort); --bs-btn-hover-bg: #f1f5f9; --bs-btn-hover-color: #0f172a; --bs-btn-hover-border-color: #cbd5e1; }
.btn-success { --bs-btn-bg: #16a34a; --bs-btn-border-color: #16a34a; --bs-btn-hover-bg: var(--vert); --bs-btn-hover-border-color: var(--vert); }
.btn .spinner-border { vertical-align: -0.15em; }
.btn.occupe { cursor: progress; opacity: .9; }
.form-control, .form-select { border-radius: 6px; border-color: var(--bord-fort); font-size: 14px; }
.form-control-lg, .form-select-lg { font-size: 16px; border-radius: 8px; }
.form-control:focus, .form-select:focus { border-color: #7fb3ea; box-shadow: 0 0 0 .2rem rgba(25, 118, 210, .14); }
.form-label { font-weight: 600; font-size: 13px; color: #334155; margin-bottom: .3rem; }
.form-check-input:checked { background-color: var(--primaire); border-color: var(--primaire); }
.form-text, .aide { color: var(--sourdine); font-size: 13px; }

/* --------------------------------------------------------------- Structure */
.app { display: flex; min-height: 100vh; }
.app-menu { width: 252px; flex-shrink: 0; background: linear-gradient(180deg, var(--menu-haut) 0%, #1666bf 45%, var(--menu-bas) 100%); color: rgba(255, 255, 255, .9); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 40; box-shadow: 2px 0 14px rgba(15, 23, 42, .12); }
.app-marque { display: flex; align-items: center; gap: 12px; padding: 18px 16px 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.app-marque-logo { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; overflow: hidden; }
.app-marque-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.app-marque-texte { min-width: 0; }
.app-marque-nom { display: block; color: #fff; font-weight: 700; font-size: 15.5px; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-marque-ecole { display: block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .62); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-menu nav { padding: 6px 10px 16px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.app-menu-section { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .5); padding: 16px 10px 6px; }
.app-menu-lien { display: flex; align-items: center; gap: 11px; padding: 8px 10px; margin: 1px 0; border-radius: 7px; color: rgba(255, 255, 255, .88); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s; }
.app-menu-lien i { font-size: 17px; width: 18px; text-align: center; opacity: .9; }
.app-menu-lien span { flex: 1; min-width: 0; }
.app-menu-lien:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.app-menu-lien.actif { background: rgba(255, 255, 255, .18); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #93c5fd, 0 1px 2px rgba(0, 0, 0, .08); }
.app-menu-compteur { font-size: 10.5px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .22); font-variant-numeric: tabular-nums; }
.app-menu-compteur.bleu { background: #3b82f6; }
.app-menu-compteur.orange { background: #f59e0b; }
.app-menu-compteur.rouge { background: #ef4444; }
.app-menu-pied { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .1); }
.app-menu-pied-texte { flex: 1; min-width: 0; line-height: 1.2; }
.app-menu-pied-texte b { display: block; color: #fff; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-menu-pied-texte small { color: rgba(255, 255, 255, .6); font-size: 11px; }
.app-menu-sortie { color: rgba(255, 255, 255, .7); font-size: 18px; }
.app-menu-sortie:hover { color: #fff; }
.avatar { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--primaire); color: #fff; letter-spacing: .02em; }
.app-menu .avatar { background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .3); }
.avatar.petit { width: 28px; height: 28px; font-size: 10.5px; }

.app-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-barre { display: flex; align-items: center; gap: 12px; background: var(--surface); border-bottom: 1px solid var(--bord); padding: 10px 24px; position: sticky; top: 0; z-index: 30; min-height: 60px; }
.app-salut { font-weight: 600; font-size: 14px; color: var(--texte); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-salut b { font-weight: 600; }
.app-salut > span { color: var(--primaire); }
.app-salut .app-salut-main { color: inherit; }
.app-barre-droite { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.app-bascule { border: 1px solid var(--bord); font-size: 18px; line-height: 1; padding: 4px 8px; }
.app-recherche { position: relative; display: flex; align-items: center; }
.app-recherche > i { position: absolute; left: 11px; color: #94a3b8; font-size: 16px; pointer-events: none; }
.app-recherche input { width: 240px; height: 34px; border: 1px solid var(--bord); background: #f8fafc; border-radius: 999px; padding: 0 14px 0 32px; font-size: 13px; transition: width .2s, background .2s, border-color .2s; }
.app-recherche input:focus { outline: none; width: 300px; background: #fff; border-color: #8dbdf0; box-shadow: 0 0 0 .2rem rgba(25, 118, 210, .1); }
.app-recherche-res { position: absolute; top: 40px; right: 0; width: 340px; background: #fff; border: 1px solid var(--bord); border-radius: 10px; box-shadow: var(--ombre-2); padding: 6px; z-index: 60; max-height: 420px; overflow-y: auto; }
.app-recherche-res a { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 7px; color: var(--texte); text-decoration: none; }
.app-recherche-res a:hover, .app-recherche-res a.actif { background: var(--primaire-clair); }
.app-recherche-res a span:last-child { min-width: 0; line-height: 1.25; }
.app-recherche-res b { display: block; font-size: 13px; }
.app-recherche-res small { color: var(--sourdine); font-size: 11.5px; }
td .aide { white-space: nowrap; }
.app-recherche-res .vide { padding: 10px; color: var(--sourdine); font-size: 13px; }
.app-puce { border: 1px solid var(--bord); background: #f8fafc; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: #334155; }
.app-puce:hover { background: #f1f5f9; }
.app-utilisateur { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; padding: 2px 4px; border-radius: 8px; text-align: left; }
.app-utilisateur:hover { background: #f8fafc; }
.app-utilisateur-texte { line-height: 1.2; }
.app-utilisateur-texte b { display: block; font-size: 13px; color: var(--texte); max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-utilisateur-texte small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--sourdine); font-weight: 600; }
.dropdown-menu { border: 1px solid var(--bord); border-radius: 10px; box-shadow: var(--ombre-2); padding: 6px; font-size: 13.5px; }
.dropdown-item { border-radius: 6px; padding: 7px 10px; }
.dropdown-item i { margin-right: 6px; opacity: .75; }
.dropdown-item.active, .dropdown-item:active { background: var(--primaire); }

.app-contenu { padding: 22px 24px 28px; width: 100%; max-width: 1480px; flex: 1; }
.app-entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.app-titre { font-size: 20px; font-weight: 700; margin: 0; color: var(--texte); letter-spacing: -.015em; }
.app-sous-titre { color: var(--sourdine); font-size: 13px; margin-top: 2px; }
.app-entete-droite { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-annee, .app-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: #334155; background: #fff; border: 1px solid var(--bord); padding: 5px 10px; border-radius: 6px; box-shadow: var(--ombre-1); }
.app-annee i, .app-date i { color: var(--primaire); }
.app-annee.cloturee { color: var(--ambre); border-color: #fcd9a3; background: #fffbeb; }
.app-pied { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 24px; border-top: 1px solid var(--bord); background: #fff; color: var(--sourdine); font-size: 12px; }
.app-pied b { color: var(--primaire); font-weight: 600; }
.app-voile { display: none; }

@media (max-width: 991.98px) {
    .app-menu { position: fixed; left: -270px; transition: left .22s ease; }
    .app-menu.ouvert { left: 0; }
    .app-menu.ouvert ~ .app-voile { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 35; }
    .app-contenu { padding: 16px; }
    .app-recherche input { width: 170px; }
    .app-recherche input:focus { width: 210px; }
    .app-utilisateur-texte { display: none; }
}
@media (max-width: 575.98px) {
    .app-barre { padding: 8px 12px; }
    .app-salut, .app-recherche, .app-date { display: none; }
    .app-titre { font-size: 18px; }
}

/* --------------------------------------------------------------- Cartes (blocs) */
.bloc { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px 18px; margin-bottom: 18px; box-shadow: var(--ombre-1); }
.bloc-titre { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -16px -18px 14px; padding: 12px 18px; border-bottom: 1px solid var(--bord); flex-wrap: wrap; }
.bloc-titre h2 { font-size: 14px; font-weight: 600; margin: 0; color: var(--texte); display: flex; align-items: center; gap: 8px; letter-spacing: -.005em; }
.bloc-titre h2 > i { color: var(--primaire); font-size: 16px; }
.bloc-titre > a:not(.btn), .bloc-titre .bloc-meta { font-size: 12.5px; color: var(--sourdine); }
.bloc-titre > a:not(.btn) { color: var(--primaire); font-weight: 500; text-decoration: none; }
.bloc-titre > a:not(.btn):hover { text-decoration: underline; }
.bloc-pied { display: flex; justify-content: space-between; margin: 14px -18px -16px; padding: 10px 18px; border-top: 1px solid var(--bord); background: #f8fafc; font-size: 12.5px; color: var(--sourdine); border-radius: 0 0 var(--rayon) var(--rayon); }

/* --------------------------------------------------------------- Chiffres clés */
.chiffre { font-variant-numeric: tabular-nums; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
/* Six chiffres ou plus : trois par ligne sur ordinateur, pour que les montants ne débordent pas */
@media (min-width: 992px) { .kpis:has(> :nth-child(6)) { grid-template-columns: repeat(3, 1fr); } }
.kpi-valeur { overflow-wrap: anywhere; }
.kpi { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px 16px; box-shadow: var(--ombre-1); position: relative; }
.kpi-libelle { color: var(--sourdine); font-size: 12.5px; font-weight: 500; }
.kpi-valeur { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--texte); line-height: 1.25; letter-spacing: -.015em; }
.kpi-valeur.rouge { color: var(--rouge); }
.kpi-valeur.vert { color: var(--vert); }
.kpi .aide { font-size: 12px; margin-top: 2px; }
/* Variante avec icône : l'icône à gauche, le chiffre puis le libellé à droite */
.kpi.avec-icone { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.kpi.avec-icone .kpi-valeur { order: -1; }
.kpi-corps { display: flex; flex-direction: column; min-width: 0; }
.kpi-icone { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 21px; }
.ton-bleu { background: #e3f0fd; color: #1976d2; }
.ton-vert { background: #dcfce7; color: #15803d; }
.ton-orange { background: #ffedd5; color: #c2410c; }
.ton-violet { background: #ede9fe; color: #6d28d9; }
.ton-rouge { background: #fee2e2; color: #b91c1c; }
.ton-cyan { background: #cffafe; color: #0e7490; }

/* Barres de progression façon « activité » */
.barres { display: flex; flex-direction: column; gap: 10px; }
.barre-ligne { display: grid; grid-template-columns: minmax(110px, 34%) 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.barre-ligne .piste { height: 7px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.barre-ligne .piste span { display: block; height: 100%; border-radius: 999px; background: var(--primaire); }
.barre-ligne .piste span.vert { background: #16a34a; }
.barre-ligne .piste span.orange { background: #f59e0b; }
.barre-ligne .piste span.rouge { background: #ef4444; }
.barre-ligne b { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; min-width: 48px; }

/* Grand chiffre centré (cartes « à traiter ») */
.grand-chiffre { text-align: center; padding: 12px 0 6px; }
.grand-chiffre b { display: block; font-size: 38px; font-weight: 700; color: #c2410c; line-height: 1.1; font-variant-numeric: tabular-nums; }
.grand-chiffre b.calme { color: var(--vert); }
.grand-chiffre span { color: var(--sourdine); font-size: 13px; }

/* --------------------------------------------------------------- Pastilles de statut */
.pastille { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; line-height: 1.3; }
.pastille-ok { background: #dcfce7; color: #166534; }
.pastille-warn { background: #fef3c7; color: #92400e; }
.pastille-ko { background: #fee2e2; color: #991b1b; }
.pastille-info { background: #e3f0fd; color: #1565c0; }
.pastille-off { background: #f1f5f9; color: #475569; }

/* --------------------------------------------------------------- Tableaux */
.table { --bs-table-hover-bg: #f3f8fe; font-size: 13.5px; }
.table > :not(caption) > * > * { padding: .6rem .7rem; border-bottom-color: #edf0f5; }
.table-sm > :not(caption) > * > * { padding: .45rem .6rem; }
.table > thead th { background: #f8fafc; color: #475569; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--bord); white-space: nowrap; }
.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-bg-type: #fbfcfe; }
.table > tbody > tr:hover > * { background-color: #f3f8fe; }
table.dataTable td, table.dataTable th { vertical-align: middle; }
td.montant, th.montant { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.montant { font-weight: 600; }
.actions { white-space: nowrap; text-align: right; }
.table a:not(.btn) { font-weight: 500; text-decoration: none; }
.table a:not(.btn):hover { text-decoration: underline; }
div.dt-container .dt-length select, div.dataTables_wrapper .dataTables_length select { width: auto; display: inline-block; margin: 0 6px; border-radius: 6px; }
div.dt-container .dt-search input, div.dataTables_wrapper .dataTables_filter input { border-radius: 6px; min-width: 220px; }
div.dt-container .dt-info, div.dataTables_wrapper .dataTables_info { color: var(--sourdine); font-size: 12.5px; }
div.dt-container div.dt-processing, div.dataTables_wrapper div.dataTables_processing { background: #fff; border: 1px solid var(--bord); border-radius: 10px; box-shadow: var(--ombre-1); padding: 10px 16px; }
.pagination { --bs-pagination-active-bg: var(--primaire); --bs-pagination-active-border-color: var(--primaire); --bs-pagination-color: #334155; --bs-pagination-hover-color: var(--primaire); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(25, 118, 210, .14); --bs-pagination-font-size: 13px; }
.pagination .page-link { border-radius: 6px !important; margin: 0 2px; }

/* --------------------------------------------------------------- Onglets */
.nav-tabs { border-bottom-color: var(--bord); }
.nav-tabs .nav-link { color: var(--sourdine); font-weight: 600; font-size: 13.5px; border: 0; border-bottom: 2px solid transparent; }
.nav-tabs .nav-link:hover { color: var(--primaire); border-bottom-color: #c4dcf6; }
.nav-tabs .nav-link.active { color: var(--primaire); border-bottom-color: var(--primaire); background: transparent; }
.nav-pills .nav-link.active { background: var(--primaire); }

/* --------------------------------------------------------------- Fenêtres modales */
.modal-content { border: 0; border-radius: 12px; box-shadow: var(--ombre-2); overflow: hidden; }
.modal-header { background: linear-gradient(135deg, var(--menu-haut) 0%, var(--primaire) 100%); color: #fff; border-bottom: 0; padding: 14px 20px; }
.modal-header .modal-title { font-weight: 600; font-size: 15px; color: #fff; }
.modal-header .btn-close { filter: invert(1) grayscale(100%) brightness(200%); opacity: .85; }
.modal-header .btn-close:hover { opacity: 1; }
.modal-body { padding: 20px; }
.modal-footer { background: #f8fafc; border-top: 1px solid var(--bord); padding: 12px 20px; }
.modal-backdrop.show { opacity: .5; }
.modal.fade .modal-dialog { transform: translateY(-12px) scale(.98); transition: transform .2s ease-out; }
.modal.show .modal-dialog { transform: none; }

/* --------------------------------------------------------------- Alertes et notifications */
.alert { border-radius: 8px; font-size: 13.5px; border-width: 1px; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.alert-info { background: var(--primaire-clair); border-color: #bfdbfe; color: #1e3a8a; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.toast { border-radius: 10px; box-shadow: var(--ombre-2); }
.toast-container { z-index: 2000; }
.app-hors-ligne { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; padding: 4px 10px; border-radius: 999px; }
.app-hors-ligne.en-attente { color: #92400e; background: #fef3c7; border-color: #fde68a; }

/* --------------------------------------------------------------- Guichet du caissier : l'écran le plus utilisé */
.guichet { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 18px; }
@media (max-width: 991.98px) { .guichet { grid-template-columns: 1fr; } }
.guichet-eleve { border-left: 4px solid var(--primaire); }
.guichet-reste { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -.02em; }
.guichet-montant { font-size: 26px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; height: 60px; }
.resultats-recherche { max-height: 340px; overflow-y: auto; }
.resultat-eleve { cursor: pointer; }
.resultat-eleve:hover, .resultat-eleve:focus { background: var(--primaire-clair); }

/* --------------------------------------------------------------- Connexion, portail, pages simples */
.page-connexion { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 15% 10%, #2f7fe0 0%, var(--menu-haut) 35%, var(--menu-bas) 100%); }
.carte-connexion { background: var(--surface); width: 100%; max-width: 410px; border-radius: 14px; padding: 32px; box-shadow: 0 24px 60px rgba(8, 30, 70, .35); }
.carte-connexion h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.carte-connexion h1::before { content: "IS"; width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--menu-haut), var(--primaire)); }

/* --------------------------------------------------------------- En-tête école réutilisé à l'impression d'une page */
.entete { display: flex; gap: 14px; align-items: center; border-bottom: 2px solid var(--encre); padding-bottom: 10px; margin-bottom: 14px; }
.entete img { max-height: 58px; }
.entete-nom { font-size: 1.2rem; font-weight: 700; }
.entete-coord { font-size: .85rem; color: var(--sourdine); }

/* --------------------------------------------------------------- Impression */
@media print {
    .app-menu, .app-barre, .app-pied, .app-entete-droite, .no-print, .toast-container { display: none !important; }
    .app-contenu { padding: 0; max-width: none; }
    body { background: #fff; }
    .bloc { border: none; padding: 0; box-shadow: none; }
    .bloc-titre { margin: 0 0 10px; padding: 0 0 6px; }
}

/* Colonne « # » qui numérote les lignes des listes */
th.col-num, td.col-num { width: 44px; text-align: center !important; color: #94a3b8; font-variant-numeric: tabular-nums; font-weight: 500; padding-left: .4rem !important; padding-right: .4rem !important; }
.table > thead th.col-num { color: #64748b; }
