/* Pages liste (reprend le style de la page Catégories d'AppPro) */
.liste-centre .table > thead > tr > th { background-color: #f7f7f7; color: #555; font-weight: 600; text-transform: uppercase; font-size: 12px; border-bottom: 2px solid #2196f3; white-space: nowrap; }
.liste-centre .table > tbody > tr > td { vertical-align: middle; }
.liste-centre .val-forte { font-size: 15px; font-weight: 600; color: #222; }
.liste-centre td.col-actions { white-space: nowrap; width: 1%; }
.liste-centre .art-act { width: 30px; height: 30px; padding: 0; line-height: 30px; border: 0; border-radius: 50%; background: transparent; box-shadow: none; color: #777; font-size: 18px; text-align: center; }
.liste-centre .art-act:hover { background: #eee; }
.liste-centre .art-act-edit:hover, .liste-centre .art-act-membres:hover { color: #2196f3; }
.liste-centre .art-act-del:hover { color: #d32f2f; }
.liste-centre .pager-centre { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 0; }
.liste-centre .pager-centre .pagination { margin: 0; }
.liste-centre .pager-info { color: #777; font-size: 13px; }
.liste-centre .pager-select { margin: 0 8px; padding: 2px 4px; border: 1px solid #ddd; border-radius: 3px; background: #fff; }
.liste-centre .pager-plage { margin-left: 12px; font-weight: 600; color: #444; }
.suppr-nom { font-size: 18px; font-weight: 600; color: #222; margin: 10px 0 2px; }
.badge-groupe { display: inline-block; margin: 0 4px 2px 0; padding: 2px 8px; border-radius: 10px; background: #e3f2fd; color: #1976d2; font-size: 12px; }
/* Calendrier (FullCalendar) */
.cal-filtres { padding: 10px 20px 0; }
.cal-filtres select { margin-bottom: 8px; }
.cal-corps { padding: 10px 20px 20px; }
.fc-event { cursor: pointer; border: 0; font-size: 12px; }
.fc-event .fc-time { font-weight: 700; }
/* Occupation des salles (colonnes = salles, lignes = heures) */
.occ-wrap { overflow: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 4px; }
.occ-tetes { display: flex; position: sticky; top: 0; z-index: 5; background: #f7f7f7; border-bottom: 2px solid #2196f3; min-width: 520px; }
.occ-tetes .t { flex: 1 1 0; padding: 10px; text-align: center; font-weight: 600; border-left: 1px solid #e5e7eb; }
.occ-tetes .axe { width: 56px; flex: 0 0 56px; border-left: 0; }
.occ-corps { display: flex; min-width: 520px; }
.occ-axe { width: 56px; flex: 0 0 56px; position: relative; }
.occ-axe span { position: absolute; right: 6px; font-size: 11px; color: #888; transform: translateY(-50%); }
.occ-axe span:first-child { transform: none; }
.occ-col { flex: 1 1 0; min-width: 0; border-left: 1px solid #e5e7eb; position: relative; cursor: pointer;
  background-image: repeating-linear-gradient(to bottom, #eee 0, #eee 1px, transparent 1px, transparent 48px); }
.occ-col:hover { background-color: #f6faff; }
.occ-seance { position: absolute; left: 2px; right: 2px; border-radius: 4px; padding: 3px 6px; font-size: 12px; color: #fff; overflow: hidden; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.25); line-height: 1.25; }
.occ-seance b { display: block; }
/* En-tetes FullCalendar : le theme rend .fc-widget-header en rouge */
.fc-unthemed .fc-widget-header, .fc .fc-widget-header, .fc th.fc-day-header { background: #f7f7f7 !important; color: #555 !important; }
.fc th.fc-day-header { border-bottom: 2px solid #2196f3; font-weight: 600; padding: 8px 0; }
.fc-today { background: #e8f4fd !important; }
.fc-event { opacity: 1 !important; }
/* Listes : carte réduite et centrée (comme la liste des articles de TBbenNjima) ; .liste-large pour le calendrier */
.liste-centre { max-width: 1100px; margin: 20px auto; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); position: relative; }
.liste-centre.liste-large { max-width: none; margin: 20px 0; }
.liste-centre .card-header { background: #fff !important; padding-bottom: 10px; }
.liste-centre .card-header .btn-float { position: absolute; right: 25px; top: 55px; z-index: 5; }
.liste-centre .card-body { padding: 0 15px 15px; }
.liste-centre .table > thead > tr > th { background-color: #fdf0dc; border-bottom: 0; }
.liste-centre .table > tbody > tr > td { padding: 12px 8px; }
.liste-centre .pager-centre { padding: 10px 0 0; }
/* Gestion des utilisateurs et des rôles : même largeur réduite et centrée */
.container.liste-reduite { width: auto; max-width: 1100px; margin: 20px auto; padding: 0; }
.container.liste-reduite > .card { margin: 0; }
.container.liste-reduite .table > thead > tr > th { background-color: #fdf0dc; border-bottom: 0; }
/* Calendrier : dans la carte réduite, filtres sur 2 par ligne en écran moyen */
.liste-centre .cal-filtres { padding: 10px 15px 0; }
.liste-centre .cal-corps { padding: 10px 15px 15px; }
@media (max-width: 991px) {
  .liste-centre .cal-filtres .col-sm-3 { width: 50%; float: left; }
}
/* États imprimables */
.etat-ecran { max-width: 1100px; margin: 20px auto; }
.etat-page { background: #fff; padding: 25px 30px; margin-top: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.15); color: #222; }
.etat-entete { display: flex; justify-content: space-between; border-bottom: 2px solid #2196f3; padding-bottom: 8px; margin-bottom: 15px; }
.etat-centre { font-size: 18px; font-weight: 700; color: #1976d2; }
.etat-date { color: #777; font-size: 12px; }
.etat-page h3 { margin: 5px 0 4px; font-size: 20px; }
.etat-sous { color: #555; margin: 0 0 12px; }
.etat-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.etat-table th, .etat-table td { border: 1px solid #bbb; padding: 6px 8px; vertical-align: middle; font-size: 13px; }
.etat-table th { background: #f1f1f1; text-align: left; }
.etat-table .etat-centrer, .etat-centrer { text-align: center; }
.etat-jour { background: #fafafa; white-space: nowrap; }
.etat-abs { color: #c62828; font-weight: 700; }
.etat-presence th, .etat-presence td { padding: 4px 5px; }
.etat-signature { margin-top: 40px; text-align: right; }
@media print {
  @page { margin: 12mm; }
  body, #main, #content { background: #fff !important; }
  #header, #sidebar, #footer, #chat, .no-print, .toast-zone, .growl { display: none !important; }
  #main { margin: 0 !important; padding: 0 !important; }
  #content { padding: 0 !important; margin: 0 !important; }
  .etat-ecran { max-width: none; margin: 0; }
  .etat-page { box-shadow: none; padding: 0; margin: 0; }
  .etat-table th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .etat-table tr { page-break-inside: avoid; }
}
/* Registre de classe */
.registre { border-collapse: collapse; min-width: 100%; }
.registre th, .registre td { border: 1px solid #ccc; padding: 5px 7px; text-align: center; font-size: 13px; }
.registre th { background: #fdf0dc; font-weight: 600; white-space: nowrap; }
.registre .reg-nom { text-align: left; white-space: nowrap; min-width: 190px; position: sticky; left: 0; background: #fff; z-index: 1; }
.registre th.reg-nom { background: #fdf0dc; }
.registre .reg-cell { min-width: 46px; font-weight: 700; user-select: none; }
.registre .reg-clic { cursor: pointer; }
.registre .reg-clic:hover { outline: 2px solid #2196f3; outline-offset: -2px; }
.registre .reg-p { background: #e8f5e9; color: #2e7d32; }
.registre .reg-a { background: #ffebee; color: #c62828; }
.registre .reg-tot { background: #fafafa; min-width: 44px; }
.registre .reg-futur { opacity: .55; }
.registre .reg-tous { display: block; font-size: 11px; color: #2e7d32; }
@media print {
  .registre .reg-nom { position: static; }
}
/* Page de connexion */
.login-content .login-marque { position: static; z-index: 1; text-align: center; color: #fff; margin: 0 0 26px; }
.login-content .login-marque .zmdi { font-size: 46px; line-height: 1; }
.login-content .login-marque h1 { margin: 6px 0 4px; font-size: 26px; font-weight: 400; color: #fff; letter-spacing: .3px; }
.login-content .login-marque p { margin: 0; font-size: 13px; color: rgba(255,255,255,.85); }
.login-content .lc-block .fg-line input { font-size: 15px; }
@media (max-width: 767px) {
  .login-content .login-marque h1 { font-size: 20px; }
}
/* Occupation des salles : vues semaine et mois */
.occ-grille { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 760px; }
.occ-grille th, .occ-grille td { border: 1px solid #ddd; vertical-align: top; padding: 4px; }
.occ-grille th { background: #fdf0dc; text-align: center; font-size: 12px; padding: 8px 4px; }
.occ-grille th a { color: inherit; }
.occ-grille .occ-salle { width: 110px; background: #fafafa; vertical-align: middle; }
.occ-grille .occ-total { width: 70px; text-align: center; vertical-align: middle; font-weight: 600; background: #fafafa; }
.occ-case { height: 90px; font-size: 12px; }
.occ-mois .occ-case { height: 105px; }
.occ-clic { cursor: pointer; }
.occ-clic:hover { background: #f6faff; }
.occ-hors { background: #f5f5f5; color: #aaa; }
.occ-auj { background: #e8f4fd; }
.occ-num { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 3px; }
.occ-num a { color: #333; }
.occ-duree { font-weight: 400; font-size: 11px; color: #2e7d32; }
.occ-chip { color: #fff; border-radius: 3px; padding: 2px 5px; margin-bottom: 3px; cursor: pointer; line-height: 1.25; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.occ-hors .occ-chip { opacity: .5; }
/* ---- Occupation des salles : style renforcé (le thème colore les <th> en rouge) ---- */
.occ-grille { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 820px; background: #fff; border: 1px solid #d9dee3; border-radius: 4px; overflow: hidden; }
.occ-grille thead th { background: #fdf0dc !important; color: #444 !important; border: 0 !important; border-bottom: 2px solid #2196f3 !important; border-left: 1px solid #ecd9bd !important; text-transform: uppercase; font-size: 11.5px !important; font-weight: 600 !important; letter-spacing: .3px; text-align: center; padding: 10px 6px !important; }
.occ-grille thead th:first-child { border-left: 0 !important; }
.occ-grille thead th a, .occ-grille thead th a:hover { color: #444 !important; text-decoration: none; }
.occ-grille thead th.occ-auj { background: #e1f0fb !important; color: #0d6efd !important; }
.occ-grille td { border: 0; border-top: 1px solid #e6e9ec; border-left: 1px solid #e6e9ec; vertical-align: top; padding: 6px; background: #fff; }
.occ-grille td:first-child { border-left: 0; }
.occ-grille td.occ-salle { width: 120px; background: #f7f8fa; vertical-align: middle; font-size: 14px; color: #333; }
.occ-grille td.occ-total { width: 80px; background: #f7f8fa; text-align: center; vertical-align: middle; font-weight: 700; color: #2e7d32; }
.occ-grille td.occ-auj { background: #f2f9ff; }
.occ-grille td.occ-hors { background: #f6f6f6; color: #b0b0b0; }
.occ-case { height: 96px; font-size: 12px; }
.occ-mois .occ-case { height: 108px; }
.occ-chip { display: block; color: #fff !important; border-radius: 4px; padding: 3px 6px; margin-bottom: 4px; font-size: 11.5px; line-height: 1.3; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.occ-chip b { font-weight: 700; }
.occ-chip:hover { filter: brightness(1.08); }
.occ-num a { color: #333 !important; font-size: 13px; text-decoration: none; }
.occ-num a:hover { color: #0d6efd !important; }
.occ-impression { display: none; }
.etat-table th, .registre th { background: #f1f1f1 !important; color: #333 !important; }
.registre th { background: #fdf0dc !important; }
@media print {
  .occ-impression { display: block; margin-bottom: 8px; }
  .liste-centre { box-shadow: none; margin: 0; max-width: none; }
  .cal-corps { padding: 0 !important; }
  .occ-wrap, .table-responsive { overflow: visible !important; border: 0 !important; }
  .occ-grille { min-width: 0; font-size: 10px; }
  .occ-case { height: auto; min-height: 60px; }
  .occ-chip, .occ-seance, .occ-grille thead th, .occ-grille td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .occ-tetes { position: static; }
}
@media print {
  a[href]:after, a[href]:before { content: none !important; }
}
/* ---- Calendrier (FullCalendar) : impression ---- */
@media print {
  .fc-toolbar, .fc-button, .cal-filtres { display: none !important; }
  .fc { font-size: 10px; }
  .fc-view-container, .fc-scroller { height: auto !important; overflow: visible !important; }
  .fc-time-grid .fc-slats td { height: 1.2em; }
  .fc-event { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fc th.fc-day-header { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Finance */
.finance thead th { background: #fdf0dc !important; color: #444 !important; font-size: 12px; text-transform: uppercase; }
.finance tfoot th { background: #f1f1f1 !important; color: #222 !important; }
.fin-du { color: #c62828; }
.fin-avoir { color: #2e7d32; }
.fin-prof { color: #1565c0; }
@media print {
  .finance { font-size: 11px; }
  .no-print-lien { display: none; }
  .detail-prof { display: none; }
}
.etat-table tfoot th { background: #e8e8e8 !important; }
/* colonnes financieres masquees sans droit "Finance.Lire" (pas d'attribut ngTable "show" : il pose la classe .show = display:block) */
.fin-masque .col-fin { display: none !important; }
/* tableaux : cellules toujours en table-cell, icone de tri sans chevauchement du titre */
.liste-centre table.table > tbody > tr > td, .liste-centre table.table > thead > tr > th { display: table-cell; }
.liste-centre table.table > thead > tr > th.sortable > div { padding-right: 22px; }
.liste-centre table.table > thead > tr > th.sortable > div:after { right: 4px; }
/* en-têtes triables : au survol (et colonne triée) une teinte plus soutenue de la même couleur beige, plus de jaune du thème */
.liste-centre table.table > thead > tr > th.sortable:hover, .finance thead th.sortable:hover { background-color: #f8dfb8 !important; cursor: pointer; }
.liste-centre table.table > thead > tr > th.sortable.sort-asc, .liste-centre table.table > thead > tr > th.sortable.sort-desc { background-color: #fbe6c8 !important; }
/* Page "États à imprimer" : choix par tuiles + panneau de paramètres */
.etat-cat-titre { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: #888; margin: 4px 0 8px; }
.etat-categorie { margin-bottom: 16px; }
.etat-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.etat-tuile { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid #e0e0e0; border-left: 4px solid #cfd8dc; border-radius: 3px; color: #333; text-decoration: none; transition: box-shadow .15s, border-color .15s, background .15s; }
.etat-tuile:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); text-decoration: none; color: #333; }
.etat-tuile .zmdi { font-size: 26px; color: #90a4ae; flex: 0 0 30px; text-align: center; }
.etat-tuile-texte { display: flex; flex-direction: column; min-width: 0; }
.etat-tuile-texte b { font-size: 13.5px; font-weight: 600; }
.etat-tuile-texte small { color: #888; font-size: 11.5px; line-height: 1.3; margin-top: 2px; }
.etat-params { margin-top: 6px; padding: 14px 16px 6px; background: #fafafa; border: 1px solid #eee; border-radius: 3px; }
.etat-params-titre { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: #333; }
.etat-params-titre .zmdi { color: #2196f3; margin-right: 6px; }
.etat-params-titre small { font-weight: 400; color: #999; }
.etat-params label { font-size: 12px; color: #777; margin-bottom: 0; }
.etat-actions .btn { margin-right: 6px; }
/* ---- Page des paiements (Finance) ---- */
.fin-corps { padding-top: 6px; }
.fin-alerte { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; margin-bottom: 12px; border-radius: 3px; background: #fff8e1; border: 1px solid #ffe082; color: #6d5400; font-size: 13px; }
.fin-alerte .zmdi { font-size: 20px; color: #f9a825; margin-top: 1px; }
.fin-alerte.fin-info { background: #e8f4fd; border-color: #b6dcf7; color: #0d4f80; }
.fin-alerte.fin-info .zmdi { color: #2196f3; }
.fin-onglets { display: flex; gap: 4px; border-bottom: 2px solid #e5e9ec; margin-bottom: 14px; }
.fin-onglets a { padding: 9px 16px; color: #666; text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.fin-onglets a:hover { color: #2196f3; }
.fin-nb { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: #eceff1; color: #607d8b; font-size: 11px; text-align: center; }
.fin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.fin-kpi { padding: 10px 14px; background: #fff; border: 1px solid #e6e9ec; border-left: 4px solid #2196f3; border-radius: 3px; }
.fin-kpi span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: #888; }
.fin-kpi b { font-size: 20px; font-weight: 500; color: #222; }
.fin-kpi.k-vert { border-left-color: #4caf50; }
.fin-kpi.k-rouge { border-left-color: #f44336; }
.fin-kpi.k-cyan { border-left-color: #00bcd4; }
.fin-kpi.k-orange { border-left-color: #ff9800; }
.fin-kpi.k-bleu { border-left-color: #1565c0; }
.fin-barre { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.fin-puces { display: flex; gap: 6px; flex-wrap: wrap; }
.fin-puces a { padding: 5px 12px; border: 1px solid #dfe3e6; border-radius: 16px; background: #fff; color: #555; font-size: 12.5px; text-decoration: none; }
.fin-puces a span { margin-left: 4px; color: #999; font-size: 11.5px; }
.fin-puces a:hover { border-color: #90caf9; }
.fin-recherche { width: 240px; }
.finance { margin-bottom: 4px; }
.finance tbody td { padding: 11px 8px !important; border-top: 1px solid #eef0f2 !important; }
.finance th.paiement, .finance td.paiement { text-align: right; min-width: 120px; }
.fin-sous { font-size: 11.5px; color: #8a949b; margin-top: 1px; }
.fin-montant { font-size: 14px; }
.fin-barre-prog { height: 4px; margin-top: 4px; border-radius: 2px; background: #e8ecef; overflow: hidden; }
.fin-barre-prog i { display: block; height: 100%; background: #4caf50; border-radius: 2px; }
.fin-barre-prog.orange i { background: #ff9800; }
.fin-seances { display: inline-block; min-width: 26px; padding: 1px 8px; border-radius: 10px; background: #e3f2fd; color: #1565c0; font-weight: 600; text-align: center; }
.fin-seances.zero { background: #f1f3f4; color: #aaa; }
.fin-nul { color: #b0b7bc; }
.fin-pastille { display: inline-block; min-width: 82px; padding: 3px 10px; border-radius: 12px; font-weight: 700; text-align: center; }
.fin-pastille.p-du { background: #ffebee; color: #c62828; }
.fin-pastille.p-avoir { background: #e8f5e9; color: #2e7d32; }
.fin-pastille.p-prof { background: #e3f2fd; color: #1565c0; }
.fin-pastille.p-ok { background: #f1f3f4; color: #78858c; }
.fin-actions { white-space: nowrap; text-align: right; }
.fin-actions .btn-sm { margin-right: 4px; }
.fin-deplier { display: inline-block; width: 20px; color: #888; }
.fin-detail { margin: 0 0 0 22px; background: #fafbfc; width: calc(100% - 22px); }
.fin-vide { text-align: center; color: #9aa4aa; padding: 28px 0 !important; }
.fin-vide .zmdi { font-size: 22px; vertical-align: -3px; margin-right: 4px; }
.fin-note { color: #8a949b; font-size: 12px; margin: 8px 0 4px; line-height: 1.5; }
@media (max-width: 767px) {
  .fin-kpis { grid-template-columns: repeat(2, 1fr); }
  .fin-recherche { width: 100%; }
}
@media print {
  .fin-kpi { border: 1px solid #ccc; border-left: 4px solid #2196f3; }
  .fin-pastille, .fin-barre-prog i, .fin-seances { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fin-note { font-size: 10px; }
}
.fin-barre .fin-recherche { flex: 0 0 240px; width: 240px !important; margin: 0; }
/* roles dans la fenetre utilisateur */
.user-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; padding: 6px 0 2px; }
.user-roles .checkbox { margin: 4px 0; }
/* lignes cliquables : tout le tableau s'ouvre en modification */
.liste-centre tr.ligne-cliquable { cursor: pointer; }
.liste-centre tr.ligne-cliquable:hover > td { background: #eef6fd !important; }
/* Profil du professeur */
.profil-prof .pp-entete { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 20px 24px; }
.profil-prof .pp-avatar { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 50%; background: #2196f3; color: #fff; font-size: 28px; font-weight: 500; display: flex; align-items: center; justify-content: center; letter-spacing: 1px; }
.profil-prof .pp-identite { flex: 1 1 260px; }
.profil-prof .pp-identite h2 { margin: 0 0 6px; font-size: 24px; font-weight: 500; color: #222; }
.profil-prof .pp-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: #666; font-size: 13px; }
.profil-prof .pp-meta .zmdi { color: #90a4ae; margin-right: 4px; }
.profil-prof .pp-liens .btn { margin: 2px 4px 2px 0; }
.profil-prof .pp-kpi { background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.15); border-left: 5px solid #2196f3; padding: 12px 16px; margin-bottom: 15px; min-height: 92px; }
.profil-prof .pp-kpi span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: #777; }
.profil-prof .pp-kpi b { display: block; font-size: 28px; font-weight: 500; color: #222; line-height: 1.2; }
.profil-prof .pp-kpi small { color: #888; font-size: 12px; }
.profil-prof .pp-kpi.k-vert { border-left-color: #4caf50; }
.profil-prof .pp-kpi.k-orange { border-left-color: #ff9800; }
.profil-prof .pp-kpi.k-violet { border-left-color: #9c27b0; }
/* exercice (annee scolaire) */
.exercice-cloture { margin: 0 0 0 0; padding: 10px 24px; background: #fff3cd; color: #795548; border-bottom: 1px solid #ffe08a; font-size: 13px; }
.exercice-cloture a { margin-left: 8px; font-weight: 500; }
#header .header-inner > li.exercice-nom { position: absolute; left: 62px; top: 0; height: 50px; line-height: 50px; padding: 0; margin: 0; color: #fff; font-size: 14px; opacity: .95; list-style: none; white-space: nowrap; }
.jo-filtres { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.jo-filtres .form-control { width: auto; min-width: 150px; flex: 1 1 150px; max-width: 320px; }
.lang-switch a { display: inline-block; }
.lang-switch .lang-nom { font-size: 12px; margin: 0 4px; color: #fff; vertical-align: middle; }
.login-langue { position: fixed; top: 14px; right: 18px; z-index: 5; }
@media (min-width: 1200px) {
  body.sw-toggled .exercice-cloture { margin-left: 268px; }
}
.rappel-cloture { margin: 18px 0 0; padding: 12px 18px; background: #fff3cd; color: #6d4c41; border-left: 4px solid #ffb300; border-radius: 2px; font-size: 14px; }
.rappel-cloture .zmdi { font-size: 18px; vertical-align: -2px; margin-right: 6px; }
.rappel-cloture a { margin-left: 10px; font-weight: 500; }
/* en-tete du menu : degrade aux couleurs du theme choisi */
.profile-menu > a { background-image: linear-gradient(135deg, rgba(255,255,255,.16), rgba(0,0,0,.18)) !important; background-repeat: no-repeat !important; background-size: 100% 100% !important; }
.profile-menu > a .profile-pic .avatar-initiale {
    display: inline-block; width: 53px; height: 53px; line-height: 53px; text-align: center; border-radius: 50%;
    background: rgba(255,255,255,.95); color: #1976d2; font-size: 24px; font-weight: 500; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
/* alertes (growl) : carte compacte a droite, sans masquer le contenu */
div[data-growl="container"].alert {
    width: 400px !important; max-width: calc(100vw - 40px); padding: 14px 18px !important; margin: 0 !important;
    background: #fff !important; color: #333 !important; border: 0 !important; border-left: 5px solid #607d8b !important; border-radius: 3px;
    box-shadow: 0 6px 22px rgba(0,0,0,.22); font-size: 14px; line-height: 1.5; text-align: left;
}
div[data-growl="container"].alert-success { border-left-color: #43a047 !important; }
div[data-growl="container"] [data-growl="message"] { display: block; }
div[data-growl="container"] .close { display: none; }
div[data-growl="container"] { z-index: 2100 !important; }
/* barre du haut compacte (50 px au lieu de 70) */
.header-inner { padding: 7px 0 !important; }
#main { padding-top: 80px !important; }
#sidebar { top: 50px !important; height: calc(100% - 50px) !important; }
#menu-trigger { width: 56px !important; }
#menu-trigger:before { top: 3px !important; left: 6px !important; width: 40px !important; height: 40px !important; }
.top-menu > li > a > .tm-icon { line-height: 36px; }
/* choix de la langue : bascule FR | ع */
.lang-pill { display: inline-flex; border: 1px solid rgba(255,255,255,.75); border-radius: 15px; overflow: hidden; margin: 4px 10px 0; vertical-align: top; }
.lang-pill a { display: block; padding: 0 11px; line-height: 26px; font-size: 13px; font-family: inherit; color: #fff; text-decoration: none; }
.lang-pill a.active { background: #fff; color: #0277bd; font-weight: 500; cursor: default; }
.lang-pill a:not(.active):hover { background: rgba(255,255,255,.2); }
.lang-pill.sombre { border-color: #90a4ae; margin: 0; }
.lang-pill.sombre a { color: #546e7a; }
.lang-pill.sombre a.active { background: #0288d1; color: #fff; }
.lang-pill.sombre a:not(.active):hover { background: #eceff1; }
/* identite du centre */
.centre-logo-zone { height: 150px; display: flex; align-items: center; justify-content: center; border: 1px dashed #cfd8dc; border-radius: 4px; background: #fafafa; padding: 8px; }
.centre-logo-zone img { max-width: 100%; max-height: 130px; }
.centre-logo-vide { color: #b0bec5; text-align: center; }
.centre-logo-vide .zmdi { font-size: 44px; display: block; }
.etat-centre .etat-logo { max-height: 42px; max-width: 120px; vertical-align: middle; margin-right: 10px; }
.etat-centre .etat-coord { display: block; font-size: 11.5px; font-weight: 400; color: #666; margin-top: 2px; }
/* en-tete du menu : logo du centre, raison sociale, utilisateur */
.profile-menu > a { height: auto !important; min-height: 118px; position: relative; overflow: hidden; }
.profile-menu > a:before { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; right: -90px; top: -110px; background: rgba(255,255,255,.14); pointer-events: none; }
.profile-menu > a:after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; left: -60px; bottom: 10px; background: rgba(255,255,255,.08); pointer-events: none; }
.profile-menu > a .profile-pic.profil-entete { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; position: relative; z-index: 1; }
.profile-menu > a .avatar-logo, .profile-menu > a .avatar-initiale { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 14px; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.28); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.profile-menu > a .avatar-logo img { max-width: 46px; max-height: 46px; }
.profile-menu > a .avatar-initiale { color: #1976d2; font-size: 26px; font-weight: 500; line-height: 1; border-radius: 14px; }
.profile-menu > a .profil-centre { color: #fff; font-size: 14.5px; font-weight: 500; line-height: 1.3; text-shadow: 0 1px 2px rgba(0,0,0,.3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.profile-menu > a .profile-info { margin-top: 0 !important; background: rgba(0,0,0,.22) !important; position: relative; z-index: 1; }
.profile-menu > a .profile-info .zmdi-account-circle { font-size: 17px; vertical-align: -2px; margin-right: 4px; }
.profile-menu > a .profil-role { opacity: .8; margin-left: 6px; font-size: 11px; }
/* page de connexion : mise en page en colonne (le bloc de marque ne passe plus derriere le formulaire) */
.login-content.m-l-10 { margin-left: 0 !important; }
div.login-content { display: flex !important; flex-direction: column; align-items: center; height: auto !important; min-height: 0; padding: 14px 12px 20px; }
div.login-content:after { display: none !important; }
div.login-content:before { height: 340px !important; }
.login-content .lc-block { margin-top: 0 !important; max-width: 100%; vertical-align: top; }
.login-content .login-marque .login-logo { display: block; margin: 0 auto 8px; max-height: 64px; max-width: 220px; background: #fff; border-radius: 10px; padding: 6px; }
.login-content .login-marque h1 { overflow-wrap: anywhere; }
.login-content .login-marque p:empty { display: none; }
.passage-niveaux { margin: 10px 0; padding: 12px 14px; background: #fafafa; border: 1px solid #eee; border-radius: 3px; }
.passage-liste { max-height: 260px; overflow: auto; background: #fff; border: 1px solid #eee; }
.passage-liste th { position: sticky; top: 0; background: #f4f4f4; }
/* pages calendrier : espaces verticaux reduits pour laisser la place a la grille */
.cal-page { margin-top: 0 !important; }
.cal-page .card-header { padding: 10px 20px 0 !important; }
.cal-page .card-header h2 { margin: 0 !important; font-size: 18px; line-height: 1.25; }
.cal-page .card-header .actions { top: 6px !important; }
.cal-page .cal-filtres { padding: 6px 15px 0 !important; }
.cal-page .cal-filtres select { margin-bottom: 4px; }
.cal-page .cal-corps { padding: 4px 12px 8px !important; }
.cal-page .fc-toolbar { margin-bottom: 6px !important; }
.cal-page .fc-toolbar h2 { font-size: 17px; margin: 0; }
.cal-page .fc-toolbar .fc-button { padding: 2px 10px; height: 30px; }
.cal-page .fc th.fc-day-header { padding: 4px 0 !important; }
.cal-page .fc-time-grid .fc-slats td { height: 1.3em !important; }
/* impression des calendriers (emploi du temps, occupation des salles) : A4 paysage, sans en-tete/pied du navigateur */
@page paysage { size: A4 landscape; margin: 0; }
@media print {
  .cal-page { page: paysage; padding: 9mm 10mm !important; margin: 0 !important; width: 100% !important; max-width: none !important; box-shadow: none !important; }
  .cal-page .cal-corps { padding: 0 !important; }
  /* memes dimensions qu'a l'ecran (FullCalendar positionne les seances en pixels) : la page est ajustee par un zoom */
  .cal-page .fc { font-size: 14px !important; zoom: .85; }
  .cal-page .fc-scroller, .cal-page .fc-time-grid-container, .cal-page .fc-view-container { height: auto !important; overflow: visible !important; }
  .cal-page .fc-time-grid .fc-slats td { height: 1.3em !important; }
  .cal-page .cal-corps, .cal-page .occ-impression { page-break-inside: avoid; break-inside: avoid; }
  .cal-page .fc th.fc-day-header { font-size: 11px; padding: 3px 0 !important; }
  .cal-page .fc-event { font-size: 9px !important; line-height: 1.15 !important; padding: 1px 2px; }
  .cal-page .fc-event .fc-time { font-size: 8.5px; }
  .cal-page .fc-axis { font-size: 9px; }
  .cal-page .occ-grille { min-width: 0; font-size: 10px; }
  .cal-page .occ-impression h3 { margin: 6px 0 2px; font-size: 16px; }
}
@media print {
  .cal-page .occ-wrap { zoom: .68; overflow: visible !important; max-height: none !important; }
}
/* calendriers : affichage integral, sans barre de defilement vertical */
.cal-page .fc-scroller, .cal-page .fc-time-grid-container { overflow-y: visible !important; height: auto !important; }
.occ-wrap { overflow-y: visible; max-height: none; }
@media print {
  #main { padding: 0 !important; }
  .header-inner { padding: 0 !important; }
}
/* registre de classe : etat imprime en A4 paysage */
.reg-impr, .reg-signatures { display: none; }
.registre .reg-n { display: inline-block; min-width: 22px; color: #999; font-weight: 400; margin-right: 6px; text-align: right; }
@media print {
  .reg-page { page: paysage; padding: 9mm 10mm !important; margin: 0 !important; width: 100% !important; max-width: none !important; box-shadow: none !important; }
  .reg-page .card-body { padding: 0 !important; }
  .reg-impr { display: block; }
  .reg-impr h3 { font-size: 17px; margin: 4px 0 8px; }
  .reg-info { display: flex; gap: 6px; margin-bottom: 10px; }
  .reg-info div { flex: 1; border: 1px solid #aaa; border-radius: 3px; padding: 4px 8px; }
  .reg-info small { display: block; font-size: 8.5px; text-transform: uppercase; letter-spacing: .5px; color: #666; }
  .reg-info b { font-size: 12px; }
  .registre { width: 100%; }
  .registre th, .registre td { font-size: 11px; padding: 5px 4px; border: 1px solid #777; }
  .registre tbody td { height: 8.5mm; }
  .registre .reg-nom { min-width: 62mm; }
  .registre .reg-n { color: #555; }
  .registre th { background: #e9e9e9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .registre tfoot td { background: #f2f2f2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .registre .reg-p, .registre .reg-a { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .registre .reg-futur { opacity: 1; }
  .table-responsive { overflow: visible !important; border: 0 !important; }
  .reg-signatures { display: flex; gap: 25mm; margin-top: 14mm; }
  .reg-signatures div { flex: 1; border-top: 1px solid #555; text-align: center; padding-top: 2mm; font-size: 11px; }
  .reg-legende { font-size: 9.5px !important; color: #555 !important; margin-top: 8mm !important; }
}
/* etat des finances : cartes de synthese */
.fin-resume { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0 6px; }
.fin-resume .r-carte { border: 1px solid #dfe3e8; border-top: 3px solid #b0bec5; border-radius: 3px; padding: 8px 10px; background: #fff; }
.fin-resume .r-carte span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .3px; color: #6b7480; line-height: 1.25; min-height: 26px; }
.fin-resume .r-carte b { display: block; font-size: 19px; font-weight: 600; color: #1c1f24; margin-top: 2px; }
.fin-resume .r-carte small { display: block; font-size: 10px; color: #8a949b; margin-top: 1px; }
.fin-resume .r-vert { border-top-color: #43a047; }
.fin-resume .r-rouge { border-top-color: #e53935; }
.fin-resume .r-bleu { border-top-color: #1e88e5; }
.fin-resume .r-accent { border-top-color: #f0f25d; background: #111; }
.fin-resume .r-accent span, .fin-resume .r-accent small { color: #c8ccd2; }
.fin-resume .r-accent b { color: #f0f25d; }
.etat-visas { display: none; }
@media (max-width: 991px) {
  .fin-resume { grid-template-columns: repeat(2, 1fr); }
}
/* impression A4 paysage (etat des finances, page Finance) */
@media print {
  .impr-paysage { page: paysage; padding: 9mm 10mm !important; margin: 0 !important; width: 100% !important; max-width: none !important; box-shadow: none !important; }
  .etat-page.impr-paysage h3 { font-size: 18px; margin: 4px 0 2px; }
  .etat-page.impr-paysage h4 { font-size: 13px; margin: 14px 0 5px !important; padding-left: 8px; border-left: 4px solid #f0f25d; }
  .fin-resume { grid-template-columns: repeat(5, 1fr) !important; gap: 6px; margin: 8px 0 4px; }
  .fin-resume .r-carte { padding: 5px 8px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fin-resume .r-carte span { font-size: 8.5px; min-height: 20px; }
  .fin-resume .r-carte b { font-size: 15px; }
  .fin-resume .r-carte small { font-size: 8px; }
  .etat-page.impr-paysage .etat-table th, .etat-page.impr-paysage .etat-table td { font-size: 10.5px; padding: 3.5px 6px; border: 1px solid #888; }
  .etat-page.impr-paysage .etat-table thead { display: table-header-group; }
  .etat-page.impr-paysage .etat-table tr { page-break-inside: avoid; }
  .etat-page.impr-paysage .etat-sous { font-size: 9px; color: #555; }
  .etat-visas { display: flex; gap: 25mm; margin-top: 12mm; page-break-inside: avoid; }
  .etat-visas div { flex: 1; border-top: 1px solid #555; text-align: center; padding-top: 2mm; font-size: 11px; }
}
/* liste des eleves / profs : une ligne par groupe avec son cycle */
.cycle-ligne { display: flex; align-items: center; gap: 8px; margin: 3px 0; white-space: nowrap; }
.cycle-ligne .cycle-nom { min-width: 56px; font-weight: 500; }
/* cloture par groupe : pastilles des 4 seances du cycle */
.cycle-num { font-weight: 500; }
.cycle-pastilles { display: inline-flex; gap: 4px; }
.cycle-pastilles i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #cfd8dc; background: #fff; display: inline-block; }
.cycle-pastilles i.prevu { border-color: #90caf9; }
.cycle-pastilles i.fait { background: #43a047; border-color: #43a047; }
tr.ligne-aclore > td { background: #fffbeb; }
.fin-sous { font-size: 11px; color: #90a4ae; line-height: 1.35; }
.fin-nb-alerte { background: #ff9800 !important; color: #fff !important; }
.fin-actions { white-space: nowrap; text-align: right; }
/* releve detaille par cycle */
.releve-table td { vertical-align: top; }
.releve-sous { color: #78909c; font-size: 11.5px; font-weight: 400; }
.releve-seances { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px; }
.releve-s { font-size: 11.5px; border: 1px solid #cfd8dc; border-radius: 3px; padding: 1px 6px; background: #fafafa; white-space: nowrap; }
.releve-s i { font-style: normal; font-weight: 700; }
.releve-s.p { border-color: #a5d6a7; background: #f1f8e9; }
.releve-s.p i { color: #2e7d32; }
.releve-s.a { border-color: #ef9a9a; background: #ffebee; }
.releve-s.a i { color: #c62828; }
tr.releve-encours td { background: #fffde7 !important; font-style: italic; }
tr.releve-paiement td { background: #f3f9ff; }
tr.releve-ouverture td { background: #f5f5f5; font-style: italic; }
.releve .fin-resume { grid-template-columns: repeat(4, 1fr); }
/* etats affiches dans une fenetre */
.modal-etat .modal-dialog { width: 1100px; max-width: calc(100vw - 30px); }
.modal-etat .modal-content { border-radius: 4px; overflow: hidden; }
.etat-modal-tete { background: #1976d2; color: #fff; padding: 14px 20px; display: flex; align-items: center; gap: 16px; }
.etat-modal-tete .modal-title { color: #fff; font-size: 17px; font-weight: 500; flex: 1; margin: 0; }
.etat-modal-tete .modal-title .zmdi { font-size: 22px; vertical-align: -3px; margin-right: 8px; opacity: .9; }
.etat-modal-tete .close { order: 3; color: #fff; opacity: .8; font-size: 28px; line-height: 1; text-shadow: none; margin: 0; }
.etat-modal-actions { order: 2; display: flex; gap: 8px; }
.etat-modal-actions .btn-primary { background: #fff; color: #1976d2; }
.etat-modal-actions .btn-default { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); box-shadow: none; }
.etat-modal-corps { background: #eceff1; padding: 18px; max-height: calc(100vh - 150px); overflow-y: auto; }
.etat-modal-corps .etat-page { margin-top: 0; padding: 26px 32px; border-radius: 2px; }
@media print {
  body.etat-impr #main, body.etat-impr .modal-backdrop, body.etat-impr .etat-modal-tete { display: none !important; }
  body.etat-impr { overflow: visible !important; background: #fff !important; }
  body.etat-impr .modal.modal-etat { position: static !important; overflow: visible !important; display: block !important; opacity: 1 !important; }
  body.etat-impr .modal-etat .modal-dialog { width: auto !important; max-width: none !important; margin: 0 !important; transform: none !important; }
  body.etat-impr .modal-etat .modal-content { box-shadow: none !important; border: 0 !important; }
  body.etat-impr .modal-etat .etat-modal-corps { max-height: none !important; overflow: visible !important; padding: 0 !important; background: #fff !important; }
  body.etat-impr .modal-etat .etat-page { padding: 0 !important; }
}
/* listes avec beaucoup de colonnes (groupes, eleves, professeurs) : carte plus large, defilement horizontal en dernier recours */
.liste-centre.liste-etendue { max-width: 1320px; }
.liste-centre .table-responsive { overflow-x: auto; }
@media print {
  .liste-centre .table-responsive { overflow: visible !important; }
}
/* releve detaille : presentation */
.releve { padding: 0 !important; overflow: hidden; }
.releve .etat-entete { margin: 0; padding: 20px 32px 14px; border-bottom: 3px solid #1976d2; }
.releve > :not(.etat-entete) { margin-left: 32px; margin-right: 32px; }
.releve-titre { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 18px; margin-bottom: 14px; }
.releve-genre { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #1976d2; font-weight: 700; }
.releve-titre h3 { margin: 2px 0 6px; font-size: 26px; font-weight: 600; color: #1c2b36; }
.releve-g { display: inline-block; background: #e3f2fd; color: #0d47a1; border-radius: 10px; padding: 2px 11px; font-size: 12px; font-weight: 600; margin: 0 6px 4px 0; }
.releve-periode { text-align: right; font-size: 13px; color: #455a64; font-weight: 600; white-space: nowrap; }
.releve-periode small { font-weight: 400; color: #90a4ae; }
.releve-cartes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.releve-cartes .rc { background: #f7f9fb; border: 1px solid #e3e8ec; border-left: 4px solid #90a4ae; border-radius: 4px; padding: 10px 14px; }
.releve-cartes .rc span { display: block; font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; color: #78909c; font-weight: 600; }
.releve-cartes .rc b { display: block; font-size: 25px; font-weight: 600; color: #263238; line-height: 1.25; margin-top: 2px; font-variant-numeric: tabular-nums; }
.releve-cartes .rc small { color: #90a4ae; font-size: 11px; }
.releve-cartes .rc-vert { border-left-color: #43a047; }
.releve-cartes .rc-vert b { color: #2e7d32; }
.releve-cartes .rc-solde { background: #eef5fc; border-left-color: #1976d2; border-color: #cfe3f7; border-left-width: 6px; }
.releve-cartes .rc-solde b { font-size: 30px; color: #0d47a1; }
.releve-cartes .rc-solde.rc-orange { background: #fff4e5; border-color: #ffd9a0; border-left-color: #fb8c00; }
.releve-cartes .rc-solde.rc-orange b { color: #e65100; }
.releve-cartes .rc-solde.rc-vert2 { background: #eaf6ea; border-color: #bfe0c0; border-left-color: #43a047; }
.releve-cartes .rc-solde.rc-vert2 b { color: #2e7d32; }
.releve-cartes .rc-solde.rc-neutre { background: #f5f5f5; border-color: #e0e0e0; border-left-color: #9e9e9e; }
.releve-cartes .rc-solde.rc-neutre b { color: #616161; }
.releve .releve-table { border: 0; margin-bottom: 14px; }
.releve .releve-table th, .releve .releve-table td { border: 0; border-bottom: 1px solid #e6eaee; padding: 9px 10px; }
.releve .releve-table thead th { background: #263238 !important; color: #fff !important; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; border-bottom: 0; }
.releve .releve-table tbody tr:not(.releve-paiement):not(.releve-encours):not(.releve-ouverture) td:first-child { border-left: 4px solid #1976d2; font-weight: 600; color: #37474f; }
.releve .releve-table tr.releve-paiement td:first-child { border-left: 4px solid #43a047; }
.releve .releve-table tr.releve-encours td:first-child { border-left: 4px solid #fbc02d; }
.releve .releve-table tfoot th { background: #eceff1 !important; color: #263238; font-size: 13px; border-top: 2px solid #263238; border-bottom: 0; }
.releve .releve-s { background: #fff; }
.releve-ouverture td { color: #546e7a; }
.releve .etat-sous { font-size: 12px; color: #607d8b; }
.releve .etat-visas { margin-bottom: 26px; }
@media print {
  .releve .releve-table thead th, .releve-cartes .rc, .releve-g, .releve .releve-s, .releve .releve-table tfoot th, tr.releve-encours td, tr.releve-paiement td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .releve .etat-entete { padding: 0 0 10px; }
  .releve > :not(.etat-entete) { margin-left: 0; margin-right: 0; }
}
.releve > table.releve-table { width: calc(100% - 64px); }
@media print {
  .releve > table.releve-table { width: 100%; }
}
/* releve : couleurs claires (en-tete du tableau et totaux) */
.releve .releve-table thead th { background: #dcebf9 !important; color: #0d47a1 !important; border-bottom: 2px solid #90caf9; }
.releve .releve-table tfoot th { background: #eef5fc !important; color: #0d47a1; border-top: 2px solid #90caf9; }
.btn-releve { color: #1976d2; border: 1px solid #bbdefb; background: #fff; text-transform: none; font-weight: 500; }
.btn-releve .zmdi { font-size: 16px; vertical-align: -2px; margin-right: 3px; }
.btn-releve:hover { background: #e3f2fd; }
.releve-cartes3 { grid-template-columns: repeat(3, 1fr) !important; }
.releve-cartes .rc-jaune { border-left-color: #fbc02d; background: #fffde7; }
.releve-s.v { border-style: dashed; color: #78909c; background: #fafafa; }
.liste-centre .art-act-print:hover { color: #1976d2; }
.btn-releve-cours { color: #6d4c41; border-color: #ffe0b2; }
.btn-releve-cours:hover { background: #fff3e0; }
/* pastille rouge : la seance appartient a un cycle clos de son groupe (verrouillee) */
.pastille-cloture { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e53935; box-shadow: 0 0 0 1.5px rgba(255,255,255,.9); vertical-align: 0; margin: 0 4px 0 1px; }
@media print {
  .pastille-cloture { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.releve-abs { color: #c62828; }
.etat-table tr.etat-provisoire td { background: #fffde7 !important; font-style: italic; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* etat des finances : carte « Solde de caisse » en couleur claire */
.fin-resume .r-accent { background: #eef5fc; border-color: #cfe3f7; border-top-color: #1976d2; color: #0d47a1; }
.fin-resume .r-accent span, .fin-resume .r-accent small { color: #546e7a; }
.fin-resume .r-accent b { color: #0d47a1; }
.fiche-titre { margin: 18px 32px 8px !important; font-size: 15px; font-weight: 700; color: #0d47a1; text-transform: uppercase; letter-spacing: .6px; }
.fiche-p { color: #2e7d32; }
.fiche-groupe .releve-table th small { font-weight: 400; text-transform: none; letter-spacing: 0; color: #607d8b; }
.fiche-groupe .releve-cartes { grid-template-columns: repeat(4, 1fr); }
.releve-cartes .rc-solde.rc-bleu { background: #eef5fc; }
/* reprise de l'existant */
.reprise-aide { margin: 4px 0 14px; }
.reprise-barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; }
.reprise-outils { display: inline-flex; gap: 8px; }
.reprise-saisie input { text-align: right; max-width: 150px; margin-left: auto; }
.reprise-saisie input.reprise-solde { font-weight: 600; background: #f3f9ff; }
.reprise-pied { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e6eaee; }
/* liste imprimee */
.liste-imprimee .etat-num { width: 28px; text-align: right; color: #78909c; }
.liste-imprimee tbody tr:nth-child(even) td { background: #f7f9fb; }
@media print {
  .liste-imprimee tbody tr:nth-child(even) td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* liste des eleves : une pastille par seance du cycle, selon la presence de l'eleve */
.cycle-pastilles i.e-p { background: #43a047; border-color: #43a047; }
/* present */
.cycle-pastilles i.e-a { background: #e53935; border-color: #e53935; }
/* absent */
.cycle-pastilles i.e-n { background: #fff; border-color: #e53935; }
/* pas inscrit a l'epoque (inscrit en retard) */
.cycle-pastilles i.e-x { background: #fff; border-color: #b0bec5; border-style: dashed; }
/* appel non fait */
.cycle-pastilles i.e-v { background: #fff; border-color: #90caf9; }
/* legende des pastilles de cycle sous les listes */
.legende-cycles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 12px 0 4px; padding: 8px 12px; background: #f6f9fc; border: 1px solid #e3e8ec; border-radius: 3px; font-size: 12px; color: #455a64; }
.legende-cycles .lc-titre { font-weight: 600; color: #0d47a1; }
.legende-cycles .lc { display: inline-flex; align-items: center; gap: 6px; }
.legende-cycles .lc .cycle-pastilles { gap: 0; }
.legende-couleur { display: inline-block; width: 22px; height: 10px; border-radius: 2px; background: linear-gradient(90deg, #66bb6a 0 33%, #ec407a 33% 66%, #ffa726 66%); }
/* ===== Menu reduit : quand l'interrupteur « menu fixe » est desactive, le menu reste visible en bande d'icones (64 px).
   Il se deploie au survol ; le bouton hamburger l'ouvre en entier (comme avant). ===== */
@media (min-width: 768px) {
  body:not(.sw-toggled) #sidebar:not(.toggled) {
        -webkit-transform: translate3d(0, 0, 0) !important; transform: translate3d(0, 0, 0) !important;
        opacity: 1 !important; filter: none !important;
        width: 64px; overflow: hidden; z-index: 6;
        -webkit-transition: width .18s ease, box-shadow .18s ease; transition: width .18s ease, box-shadow .18s ease;
    }
  body:not(.sw-toggled) #sidebar:not(.toggled):hover { width: 268px; box-shadow: 0 0 16px rgba(0, 0, 0, .35); }
  /* sous-menus : cachees tant que la bande est reduite */
  body:not(.sw-toggled) #sidebar:not(.toggled):not(:hover) .main-menu ul, body:not(.sw-toggled) #sidebar:not(.toggled):not(:hover) .profile-menu > ul { display: none !important; }
  /* le contenu laisse la place a la bande */
  body:not(.sw-toggled) #content { padding-left: 79px; }
  body:not(.sw-toggled) .exercice-cloture { margin-left: 64px; }
  body:not(.sw-toggled) #footer { padding-left: 64px; }
}
/* interrupteur : explication au survol */
#toggle-width .ts-helper { cursor: pointer; }
@media (min-width: 768px) {
  /* bande reduite : seules les icones sont visibles (libelles masques), puis reapparaissent au survol */
  body:not(.sw-toggled) #sidebar:not(.toggled):not(:hover) .main-menu > li > a { font-size: 0; }
  body:not(.sw-toggled) #sidebar:not(.toggled):not(:hover) .main-menu > li > a > i { font-size: 20px; }
  body:not(.sw-toggled) #sidebar:not(.toggled):not(:hover) .sub-menu > a:after { display: none; }
  body:not(.sw-toggled) #sidebar:not(.toggled):not(:hover) .profile-info, body:not(.sw-toggled) #sidebar:not(.toggled):not(:hover) .profil-centre { display: none; }
  body:not(.sw-toggled) #sidebar:not(.toggled):not(:hover) .profile-menu > a { height: 64px; }
  body:not(.sw-toggled) #sidebar:not(.toggled):not(:hover) .profile-pic { transform: scale(.7); transform-origin: left top; margin: 6px 0 0 4px; }
}
.filtre-statut { background-color: #F4F4F4; border: 0; border-bottom: 1px solid #ddd; height: 34px; }
/* barre de filtres du calendrier : onglets, selecteur et boutons ronds sur une seule ligne */
.cal-barre { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.cal-barre .cal-onglets { flex: 0 0 auto; }
.cal-barre .cal-select { flex: 0 1 300px; min-width: 200px; width: auto; margin: 0; }
.cal-outils { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.btn-rond { width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #eceff1; color: #455a64; font-size: 20px; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: box-shadow .15s, transform .15s; }
.btn-rond:hover { box-shadow: 0 3px 8px rgba(0,0,0,.28); transform: translateY(-1px); }
.btn-rond:focus { outline: none; box-shadow: 0 0 0 3px rgba(33,150,243,.35); }
.btn-rond .zmdi { line-height: 1; }
/* ===== Tableau de bord ===== */
.dash { padding-top: 6px; }
/* couleur du bandeau et des accents : suit le theme choisi dans l'en-tete */
.dash { --sk1: #1565c0; --sk2: #2196f3; --sk3: #64b5f6; }
.dash[data-skin="lightblue"] { --sk1: #0277bd; --sk2: #03a9f4; --sk3: #4fc3f7; }
.dash[data-skin="bluegray"] { --sk1: #37474f; --sk2: #607d8b; --sk3: #90a4ae; }
.dash[data-skin="cyan"] { --sk1: #00838f; --sk2: #00bcd4; --sk3: #4dd0e1; }
.dash[data-skin="teal"] { --sk1: #00695c; --sk2: #009688; --sk3: #4db6ac; }
.dash[data-skin="green"] { --sk1: #2e7d32; --sk2: #4caf50; --sk3: #81c784; }
.dash[data-skin="orange"] { --sk1: #e65100; --sk2: #ff9800; --sk3: #ffb74d; }
.dash[data-skin="blue"] { --sk1: #1565c0; --sk2: #2196f3; --sk3: #64b5f6; }
.dash[data-skin="purple"] { --sk1: #6a1b9a; --sk2: #9c27b0; --sk3: #ba68c8; }
/* bandeau : bonjour + date */
.dash-hero { display: flex; align-items: stretch; justify-content: space-between; gap: 20px; margin: 26px 0 18px; padding: 22px 28px; border-radius: 8px; color: #fff;
    background: linear-gradient(120deg, var(--sk1) 0%, var(--sk2) 55%, var(--sk3) 100%); box-shadow: 0 4px 14px rgba(0, 0, 0, .22); position: relative; overflow: hidden; }
.dash-hero:after { content: ''; position: absolute; right: -50px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.dash-hero-texte { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.dash-bonjour { font-size: 26px; font-weight: 300; line-height: 1.2; }
.dash-bonjour b { font-weight: 600; }
.dash-centre { font-size: 14px; opacity: .85; margin-top: 4px; letter-spacing: .3px; }
.dash-resume { margin-top: 14px; font-size: 14px; background: rgba(255, 255, 255, .16); display: inline-block; align-self: flex-start; padding: 6px 14px; border-radius: 16px; }
.dash-resume .zmdi { margin-right: 6px; vertical-align: -1px; }
.dash-date { flex: 0 0 auto; text-align: center; background: #fff; color: var(--sk1); border-radius: 8px; padding: 10px 26px 12px; min-width: 150px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); position: relative; z-index: 1; }
.dash-date-jour { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #e53935; }
.dash-date-num { font-size: 54px; font-weight: 700; line-height: 1.05; }
.dash-date-mois { font-size: 15px; font-weight: 500; text-transform: capitalize; color: #546e7a; }
/* chiffres cles */
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 0 0 20px; }
.dash-kpi { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); text-decoration: none !important; color: #263238; border-left: 5px solid #1e88e5; transition: transform .15s, box-shadow .15s; cursor: pointer; }
.dash-kpi:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.dash-kpi-icone { flex: 0 0 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; background: #1e88e5; }
.dash-kpi-texte { display: flex; flex-direction: column; min-width: 0; }
.dash-kpi-texte b { font-size: 34px; font-weight: 600; line-height: 1.1; }
.dash-kpi-texte small { font-size: 12.5px; letter-spacing: .6px; text-transform: uppercase; color: #78909c; font-weight: 600; }
.dash-kpi.k-bleu { border-left-color: var(--sk2); }
.dash-kpi.k-bleu .dash-kpi-icone { background: linear-gradient(135deg, var(--sk3), var(--sk1)); }
.dash-kpi.k-violet { border-left-color: #8e24aa; }
.dash-kpi.k-violet .dash-kpi-icone { background: linear-gradient(135deg, #ab47bc, #6a1b9a); }
.dash-kpi.k-orange { border-left-color: #fb8c00; }
.dash-kpi.k-orange .dash-kpi-icone { background: linear-gradient(135deg, #ffa726, #e65100); }
.dash-kpi.k-vert { border-left-color: #00897b; }
.dash-kpi.k-vert .dash-kpi-icone { background: linear-gradient(135deg, #26a69a, #00695c); }
/* carte des seances du jour */
.dash-carte { background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); overflow: hidden; margin-bottom: 20px; }
.dash-carte-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid #eceff1; background: #fafcff; }
.dash-carte-tete h2 { margin: 0; font-size: 19px; font-weight: 600; color: var(--sk1); }
.dash-carte-tete small { color: #90a4ae; font-size: 12.5px; }
.dash-lien { color: var(--sk1); font-weight: 500; white-space: nowrap; }
.dash-lien .zmdi { margin-left: 4px; vertical-align: -1px; }
.dash-vide { text-align: center; padding: 38px 20px 42px; color: #78909c; }
.dash-vide .zmdi { font-size: 54px; color: #b0bec5; display: block; margin-bottom: 8px; }
.dash-vide div { font-size: 17px; font-weight: 500; color: #546e7a; }
.dash-seances { padding: 8px 14px 14px; }
.dash-seance { display: flex; align-items: center; gap: 16px; padding: 12px 14px; margin-top: 8px; border-radius: 8px; border: 1px solid #e6ebef; background: #fff; transition: background .15s; }
.dash-seance:hover { background: #f7f9fa; }
.dash-heure { flex: 0 0 70px; text-align: center; border-left: 4px solid var(--sk2); padding-left: 10px; line-height: 1.25; }
.dash-heure b { display: block; font-size: 19px; color: #263238; font-variant-numeric: tabular-nums; }
.dash-heure small { color: #90a4ae; font-size: 13px; }
.dash-seance-corps { flex: 1; min-width: 0; }
.dash-seance-titre { font-size: 17px; font-weight: 600; color: #1c2b36; }
.dash-seance-titre small { font-weight: 400; color: #90a4ae; margin-left: 6px; }
.dash-puce { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.dash-seance-detail { margin-top: 3px; color: #607d8b; font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.dash-seance-detail .zmdi { color: #90a4ae; margin-right: 4px; font-size: 15px; vertical-align: -1px; }
.dash-seance-etat { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.dash-chip { display: inline-block; padding: 3px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.dash-chip.chip-fait { background: #e8f5e9; color: #2e7d32; }
.dash-chip.chip-afaire { background: #fff3e0; color: #e65100; }
.dash-chip.chip-encours { background: #e3f2fd; color: #1565c0; }
.dash-chip.chip-avenir { background: #eceff1; color: #607d8b; }
.dash-seance.etat-afaire { border-color: #ffcc80; background: #fffaf3; }
.dash-seance.etat-encours { border-color: var(--sk3); background: #fafafa; box-shadow: 0 0 0 2px rgba(0, 0, 0, .06); }
.dash .btn-primary { background: var(--sk2); border-color: var(--sk2); }
.dash .btn-primary:hover, .dash .btn-primary:focus { background: var(--sk1); border-color: var(--sk1); }
.dash-seance.etat-fait .dash-heure b { color: #2e7d32; }
@media (max-width: 767px) {
  .dash-hero { flex-direction: column; padding: 18px; }
  .dash-date { align-self: flex-start; }
  .dash-seance { flex-wrap: wrap; }
  .dash-seance-etat { width: 100%; justify-content: space-between; }
}
@media print {
  .dash-hero, .dash-kpi, .dash-carte { box-shadow: none !important; }
}
.dash .rappel-cloture { margin: 0 0 18px; border-radius: 6px; }
.dash .rappel-cloture a { color: var(--sk1); font-weight: 500; }
/* ===== Page Finance : presentation (suit le theme) ===== */
.fin-page { --sk1: #1565c0; --sk2: #2196f3; --sk3: #64b5f6; }
.fin-page[data-skin="lightblue"] { --sk1: #0277bd; --sk2: #03a9f4; --sk3: #4fc3f7; }
.fin-page[data-skin="bluegray"] { --sk1: #37474f; --sk2: #607d8b; --sk3: #90a4ae; }
.fin-page[data-skin="cyan"] { --sk1: #00838f; --sk2: #00bcd4; --sk3: #4dd0e1; }
.fin-page[data-skin="teal"] { --sk1: #00695c; --sk2: #009688; --sk3: #4db6ac; }
.fin-page[data-skin="green"] { --sk1: #2e7d32; --sk2: #4caf50; --sk3: #81c784; }
.fin-page[data-skin="orange"] { --sk1: #e65100; --sk2: #ff9800; --sk3: #ffb74d; }
.fin-page[data-skin="blue"] { --sk1: #1565c0; --sk2: #2196f3; --sk3: #64b5f6; }
.fin-page[data-skin="purple"] { --sk1: #6a1b9a; --sk2: #9c27b0; --sk3: #ba68c8; }
.fin-page .card-header h2 { font-size: 22px; font-weight: 600; color: var(--sk1); }
.fin-statut { font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.fin-page .fin-onglets { gap: 6px; border-bottom: 1px solid #e5e9ec; }
.fin-page .fin-onglets a { padding: 10px 18px; font-size: 14px; border-radius: 6px 6px 0 0; }
.fin-page .fin-onglets a:hover { color: var(--sk1); background: #f7f9fa; }
.fin-page .fin-kpis { gap: 14px; margin-bottom: 18px; }
.fin-page .fin-kpi { position: relative; padding: 14px 18px 14px 66px; border: 0; border-left: 5px solid var(--sk2); border-radius: 8px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); min-height: 72px; }
.fin-page .fin-kpi b { display: block; font-size: 26px; font-weight: 600; line-height: 1.2; }
.fin-page .fin-kpi span { font-weight: 600; }
.fin-kpi-ic { position: absolute; left: 14px; top: 50%; margin-top: -21px; width: 42px; height: 42px; line-height: 42px; border-radius: 50%; text-align: center; font-size: 22px; color: #fff; background: var(--sk2); }
.fin-page .fin-kpi.k-vert { border-left-color: #43a047; }
.fin-page .fin-kpi.k-vert .fin-kpi-ic { background: #43a047; }
.fin-page .fin-kpi.k-rouge { border-left-color: #e53935; }
.fin-page .fin-kpi.k-rouge .fin-kpi-ic { background: #e53935; }
.fin-page .fin-kpi.k-cyan { border-left-color: #00acc1; }
.fin-page .fin-kpi.k-cyan .fin-kpi-ic { background: #00acc1; }
.fin-page .fin-kpi.k-orange { border-left-color: #fb8c00; }
.fin-page .fin-kpi.k-orange .fin-kpi-ic { background: #fb8c00; }
.fin-page .fin-kpi.k-bleu { border-left-color: var(--sk2); }
.fin-page .fin-puces a:hover { border-color: var(--sk3); }
.fin-page .fin-barre .fg-line input { padding-left: 4px; }
/* tableau */
.fin-page .table-responsive { border: 1px solid #e6ebef; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); overflow-x: auto; overflow-y: hidden; margin-top: 4px; background: #fff; }
.fin-page .finance { margin: 0; }
.fin-page .finance thead th { background: #f5f7f9 !important; color: #607d8b !important; font-size: 11.5px; letter-spacing: .6px; padding: 12px 10px !important; border-bottom: 2px solid #e3e8ec !important; }
.fin-page .finance tbody tr:hover > td { background: #f9fbfc; }
.fin-page .finance tbody td { padding: 12px 10px !important; }
.fin-page .finance tfoot th { background: #f5f7f9 !important; font-size: 14px; padding: 12px 10px !important; border-top: 2px solid #e3e8ec !important; }
.fin-page .finance .val-forte { font-size: 15px; }
.fin-page .fin-actions { min-width: 210px; }
.fin-page .fin-actions .btn-sm { margin-right: 0; }
.fin-page .fin-actions .btn { vertical-align: middle; }
.fin-page .fin-actions .btn-primary { background: var(--sk2); border-color: var(--sk2); }
.fin-page .fin-actions .btn-primary:hover { background: var(--sk1); }
.fin-page .fin-actions .art-act { margin: 0 4px; }
.fin-releve { margin-left: 2px; }
.fin-releve .btn-releve { color: var(--sk1); border-color: var(--sk3); }
.fin-releve .btn-releve:hover, .fin-releve.open .btn-releve { background: #f1f5f8; }
.fin-rel-menu { min-width: 250px; padding: 6px 0; border-radius: 6px; }
.fin-rel-menu li a { padding: 8px 16px; font-size: 13.5px; }
.fin-rel-menu li a .zmdi { width: 22px; font-size: 18px; vertical-align: -2px; color: #78909c; }
.fin-rel-menu li a small { display: block; margin-left: 22px; color: #90a4ae; font-size: 11.5px; }
.fin-page .legende-cycles { margin: 0; padding: 10px 14px; border-top: 1px solid #eceff1; background: #fafbfc; }
.fin-page .fin-note { padding: 0 14px 10px; background: #fafbfc; margin: 0; }
.fin-page .fin-alerte { border-radius: 8px; }
@media (max-width: 767px) {
  .fin-page .fin-kpi b { font-size: 21px; }
}
.fin-page .fin-kpi .fin-kpi-ic { font-size: 22px; line-height: 42px; }
.fin-rel-menu li a { text-align: left; }
.dropdown-menu.fin-rel-menu > li > a { text-align: left !important; white-space: nowrap; }
.dropdown-menu.fin-rel-menu > li > a .zmdi { float: none !important; display: inline-block; }
/* ===== Page Professeurs : presentation (suit le theme) ===== */
.page-skin { --sk1: #1565c0; --sk2: #2196f3; --sk3: #64b5f6; }
.page-skin[data-skin="lightblue"] { --sk1: #0277bd; --sk2: #03a9f4; --sk3: #4fc3f7; }
.page-skin[data-skin="bluegray"] { --sk1: #37474f; --sk2: #607d8b; --sk3: #90a4ae; }
.page-skin[data-skin="cyan"] { --sk1: #00838f; --sk2: #00bcd4; --sk3: #4dd0e1; }
.page-skin[data-skin="teal"] { --sk1: #00695c; --sk2: #009688; --sk3: #4db6ac; }
.page-skin[data-skin="green"] { --sk1: #2e7d32; --sk2: #4caf50; --sk3: #81c784; }
.page-skin[data-skin="orange"] { --sk1: #e65100; --sk2: #ff9800; --sk3: #ffb74d; }
.page-skin[data-skin="blue"] { --sk1: #1565c0; --sk2: #2196f3; --sk3: #64b5f6; }
.page-skin[data-skin="purple"] { --sk1: #6a1b9a; --sk2: #9c27b0; --sk3: #ba68c8; }
.liste-prof .prof-tete { background: #fff; }
.liste-prof .prof-tete h2 { font-size: 22px; font-weight: 600; color: var(--sk1); }
.liste-prof .prof-tete h2 small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: #90a4ae; }
.liste-prof .prof-outil { margin-top: 14px; }
.prof-recherche { position: relative; }
.prof-recherche .zmdi { position: absolute; left: 10px; top: 8px; font-size: 18px; color: #90a4ae; }
.prof-recherche .form-control { padding-left: 34px; }
.liste-prof .filtre-statut { border: 1px solid #dfe3e6; border-radius: 4px; padding-left: 8px; background: #fff; }
.liste-prof .card-body .table-responsive { border: 1px solid #e6ebef; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); overflow-x: auto; }
.liste-prof table.table { margin: 0; }
.liste-prof table.table > thead > tr > th { background: #f5f7f9 !important; color: #607d8b !important; font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase; padding: 12px 10px !important; border-bottom: 2px solid #e3e8ec !important; }
.liste-prof table.table > tbody > tr > td { padding: 12px 10px !important; border-top: 1px solid #eef0f2 !important; }
.liste-prof table.table-striped > tbody > tr:nth-of-type(odd) { background: #fff; }
.liste-prof table.table > tbody > tr:hover > td { background: #f9fbfc; }
.prof-avatar { display: inline-block; width: 36px; height: 36px; line-height: 36px; margin-right: 10px; border-radius: 50%; text-align: center; font-weight: 600; font-size: 16px; color: #fff; background: linear-gradient(135deg, var(--sk3), var(--sk1)); vertical-align: middle; }
.prof-avatar.inactif { background: #b0bec5; }
.liste-prof .val-forte { font-size: 15px; vertical-align: middle; }
.prof-tel { color: #455a64; white-space: nowrap; }
.prof-tel .zmdi { color: var(--sk2); margin-right: 4px; }
.prof-matiere { display: inline-block; padding: 3px 12px; border-radius: 12px; background: #f1f5f8; color: var(--sk1); font-weight: 500; font-size: 13px; }
.prof-compte { color: #607d8b; font-size: 13px; }
.prof-compte .zmdi { color: #90a4ae; font-size: 16px; vertical-align: -2px; }
.liste-prof .cycle-ligne { padding: 3px 0; }
.liste-prof .col-actions .art-act { width: 34px; height: 34px; line-height: 34px; }
.liste-prof .legende-cycles { margin: 0; border-radius: 0 0 8px 8px; }
.liste-prof .card-body { padding-top: 14px; }
.liste-prof table.table > thead > tr > th.sortable.sort-asc, .liste-prof table.table > thead > tr > th.sortable.sort-desc { background: #e8eff4 !important; }
/* barre de chargement : meme epaisseur que l'en-tete (50 px) pour ne pas deborder en dessous */
#loading-bar .bar { height: 50px !important; }
/* emploi du temps : aller a une date (dans la barre du calendrier, a gauche) */
.cal-aller { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; vertical-align: top; }
.cal-aller label { margin: 0; color: #607d8b; font-weight: 500; white-space: nowrap; }
.cal-aller label .zmdi { font-size: 18px; vertical-align: -3px; margin-right: 4px; color: #90a4ae; }
.cal-aller input[type=date] { width: 150px; height: 30px; padding: 2px 8px; border: 1px solid #dfe3e6; border-radius: 4px; background: #fff; }
.cal-page .fc-toolbar { margin-bottom: 8px; }
.cal-page .card-header { padding-bottom: 6px; }
/* ===== Theme : couleurs portees par <body data-skin> (menu, boites de dialogue...) ===== */
body { --sk1: #1565c0; --sk2: #2196f3; --sk3: #64b5f6; --skt: #e3f2fd; }
body[data-skin="lightblue"] { --sk1: #0277bd; --sk2: #03a9f4; --sk3: #4fc3f7; --skt: #e1f5fe; }
body[data-skin="bluegray"] { --sk1: #37474f; --sk2: #607d8b; --sk3: #90a4ae; --skt: #eceff1; }
body[data-skin="cyan"] { --sk1: #00838f; --sk2: #00bcd4; --sk3: #4dd0e1; --skt: #e0f7fa; }
body[data-skin="teal"] { --sk1: #00695c; --sk2: #009688; --sk3: #4db6ac; --skt: #e0f2f1; }
body[data-skin="green"] { --sk1: #2e7d32; --sk2: #4caf50; --sk3: #81c784; --skt: #e8f5e9; }
body[data-skin="orange"] { --sk1: #e65100; --sk2: #ff9800; --sk3: #ffb74d; --skt: #fff3e0; }
body[data-skin="blue"] { --sk1: #1565c0; --sk2: #2196f3; --sk3: #64b5f6; --skt: #e3f2fd; }
body[data-skin="purple"] { --sk1: #6a1b9a; --sk2: #9c27b0; --sk3: #ba68c8; --skt: #f3e5f5; }
/* ===== Menu lateral : carte flottante arrondie, elements en pastilles, icones dans des vignettes ===== */
#sidebar { background: transparent !important; box-shadow: none !important; overflow: visible; }
body:not(.sw-toggled) #sidebar:not(.toggled):hover { box-shadow: none; }
#sidebar .sidebar-inner { margin: 10px 8px 10px 10px; height: calc(100% - 20px) !important; background: #fff; border-radius: 16px; box-shadow: 0 2px 14px rgba(30, 50, 80, .14); overflow-x: hidden; overflow-y: auto; }
#sidebar .profile-menu > a { border-radius: 16px 16px 0 0; }
#sidebar .main-menu { margin-top: 8px; padding-bottom: 8px; }
#sidebar .main-menu > li > a { margin: 2px 10px; padding: 10px 12px 10px 52px; border-radius: 12px; color: #455a64; font-weight: 500; transition: background .15s, color .15s; }
#sidebar .main-menu > li > a:hover { background: #f3f6f8; color: #1c2b36; }
#sidebar .main-menu > li > a > i { left: 12px; top: 50%; margin-top: -16px; width: 32px; height: 32px; padding: 0; line-height: 32px; border-radius: 10px; font-size: 18px; color: #78909c; background: #f1f5f8; transition: background .15s, color .15s; }
#sidebar .main-menu > li > a:hover > i { background: #e6edf2; }
#sidebar .main-menu > li.active > a, #sidebar .main-menu > li > a.active { background: var(--skt); color: var(--sk1); font-weight: 600; }
#sidebar .main-menu > li.active > a > i, #sidebar .main-menu > li > a.active > i { background: linear-gradient(135deg, var(--sk3), var(--sk2)); color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
#sidebar .sub-menu > a:before, #sidebar .sub-menu > a:after { top: 50%; margin-top: -11px; right: 14px; }
#sidebar .sub-menu ul, #sidebar .sub-menu ul > li ul { background: transparent; margin: 2px 10px 6px; padding-left: 0; }
#sidebar .sub-menu ul > li > a { display: block; margin: 1px 0; padding: 8px 12px 8px 44px; border-radius: 10px; color: #607d8b; font-size: 13px; }
#sidebar .sub-menu ul > li > a:hover { background: #f3f6f8; color: #1c2b36; }
#sidebar .sub-menu ul > li.active > a, #sidebar .sub-menu ul > li > a.active { background: var(--skt); color: var(--sk1); font-weight: 600; }
@media (min-width: 768px) {
  /* bande reduite : vignettes d'icones centrees dans la carte */
  body:not(.sw-toggled) #sidebar:not(.toggled):not(:hover) .sidebar-inner { margin: 10px 4px 10px 8px; }
  body:not(.sw-toggled) #sidebar:not(.toggled):not(:hover) .main-menu > li > a { margin: 3px 6px; padding: 0; height: 40px; }
  body:not(.sw-toggled) #sidebar:not(.toggled):not(:hover) .main-menu > li > a > i { left: 4px; margin-top: -16px; font-size: 18px; }
  body:not(.sw-toggled) #sidebar:not(.toggled):hover .sidebar-inner { box-shadow: 0 4px 22px rgba(30, 50, 80, .28); }
}
#sidebar .sidebar-inner { width: 250px; }
@media (min-width: 768px) {
  body:not(.sw-toggled) #sidebar:not(.toggled):not(:hover) .sidebar-inner { width: 52px; overflow-x: hidden; }
  body:not(.sw-toggled) #sidebar:not(.toggled):hover .sidebar-inner { width: 250px; }
}
@media (min-width: 768px) {
  body:not(.sw-toggled) #sidebar:not(.toggled):not(:hover) .profile-pic { transform: scale(.62); margin: 8px 0 0 -2px; }
}
/* ===== En-tete : degrade aux couleurs du theme, pastille d'exercice, boutons ronds, utilisateur ===== */
#header { background: linear-gradient(100deg, var(--sk1) 0%, var(--sk2) 58%, var(--sk3) 135%) !important; box-shadow: 0 2px 12px rgba(0, 0, 0, .2); }
#header .header-inner > li.exercice-nom { left: 66px; top: 10px; height: 30px; line-height: 30px; padding: 0 14px; border-radius: 15px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28); font-size: 13.5px; font-weight: 500; letter-spacing: .3px; }
#header .exercice-nom .zmdi { margin-right: 6px; font-size: 16px; vertical-align: -2px; }
#header .top-menu > li > a { width: 38px; height: 38px; margin: 0 2px; border-radius: 50%; text-align: center; transition: background .15s; }
#header .top-menu > li > a:hover, #header .top-menu > li.open > a { background: rgba(255, 255, 255, .2); }
#header .top-menu > li > a > .tm-icon { line-height: 38px; font-size: 22px; }
#header #menu-trigger { border-radius: 50%; }
#header .lang-pill { border: 0; background: rgba(255, 255, 255, .18); padding: 2px; margin: 3px 10px 0; border-radius: 17px; }
#header .lang-pill a { border-radius: 15px; line-height: 26px; font-weight: 500; }
#header .lang-pill a.active { color: var(--sk1); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.top-menu > li.header-user { display: inline-flex; align-items: center; gap: 9px; height: 38px; margin: 0 8px 0 10px; padding: 0 12px 0 4px; border-radius: 22px; background: rgba(255, 255, 255, .16); vertical-align: top; color: #fff; }
.header-user .hu-avatar { width: 30px; height: 30px; line-height: 30px; border-radius: 50%; text-align: center; background: #fff; color: var(--sk1); font-weight: 700; font-size: 14px; }
.header-user .hu-texte { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.header-user .hu-texte b { font-size: 13px; font-weight: 600; }
.header-user .hu-texte small { font-size: 10.5px; opacity: .85; }
/* ===== Accueil : version plus fine (bandeau, alerte, chiffres et seances compacts) ===== */
.dash-hero { margin: 14px 0 10px; padding: 12px 22px; border-radius: 10px; align-items: center; }
.dash-hero:after { width: 160px; height: 160px; top: -70px; }
.dash-bonjour { font-size: 21px; }
.dash-centre { margin-top: 0; font-size: 12.5px; }
.dash-resume { margin-top: 6px; padding: 3px 12px; font-size: 12.5px; }
.dash .rappel-cloture { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 7px 14px; border-radius: 8px; font-size: 13px; }
.dash .rappel-cloture .rc-texte { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash .rappel-cloture .rc-texte small { color: #9a7b4f; }
.dash .rappel-cloture a { white-space: nowrap; }
.dash-kpis { gap: 10px; margin: 0 0 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.dash-kpi { padding: 9px 14px; gap: 12px; border-left-width: 4px; border-radius: 8px; }
.dash-kpi-icone { flex-basis: 38px; height: 38px; font-size: 20px; }
.dash-kpi-texte { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dash-kpi-texte b { font-size: 24px; }
.dash-kpi-texte small { font-size: 11px; }
.dash-carte { margin-bottom: 14px; border-radius: 10px; }
.dash-carte-tete { padding: 10px 18px; gap: 14px; flex-wrap: wrap; }
.dash-carte-tete h2 { font-size: 17px; }
.ds-nb { display: inline-block; min-width: 24px; padding: 0 8px; margin-left: 6px; border-radius: 11px; background: var(--sk2); color: #fff; font-size: 12px; font-weight: 600; text-align: center; vertical-align: 2px; }
.ds-filtres { display: flex; gap: 4px; margin-left: auto; }
.ds-filtres a { padding: 3px 11px; border-radius: 14px; border: 1px solid #dfe3e6; background: #fff; color: #607d8b; font-size: 12px; text-decoration: none; }
.ds-filtres a span { margin-left: 3px; color: #90a4ae; font-size: 11px; }
.dash-carte-tete .dash-lien { margin-left: 0; }
.ds-liste { max-height: 430px; overflow-y: auto; }
.ds-ligne { display: grid; grid-template-columns: 112px minmax(130px, 1.3fr) minmax(130px, 1.4fr) 100px 120px 76px; align-items: center; gap: 10px; padding: 6px 18px; border-bottom: 1px solid #f0f3f5; font-size: 13px; }
.ds-ligne:hover { background: #f9fbfc; }
.ds-tete { position: sticky; top: 0; z-index: 1; padding-top: 7px; padding-bottom: 7px; background: #f5f7f9; color: #78909c; font-size: 10.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; border-bottom: 1px solid #e3e8ec; }
.ds-tete:hover { background: #f5f7f9; }
.ds-heure { border-left: 3px solid #ccc; padding-left: 8px; color: #78909c; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-heure b { color: #263238; font-weight: 600; }
.ds-groupe b { font-size: 13.5px; color: #1c2b36; }
.ds-groupe small { margin-left: 6px; color: #90a4ae; }
.ds-prof { color: #546e7a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-prof small { color: #90a4ae; }
.ds-salle { color: #607d8b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-action { text-align: right; }
.ds-action .btn { padding: 3px 9px; font-size: 11.5px; }
.ds-ligne .dash-chip { padding: 1px 10px; font-size: 11px; }
.ds-ligne.etat-afaire { background: #fffaf3; }
.ds-ligne.etat-encours { background: #fafafa; box-shadow: inset 3px 0 0 var(--sk2); }
.ds-ligne.etat-fait .ds-heure b { color: #2e7d32; }
.ds-vide { padding: 22px; text-align: center; color: #90a4ae; }
@media (max-width: 767px) {
  .dash-hero { flex-direction: row; flex-wrap: wrap; padding: 12px 14px; gap: 10px; }
  .ds-ligne { grid-template-columns: 1fr auto; row-gap: 2px; }
  .ds-tete { display: none; }
  .ds-prof, .ds-salle { grid-column: 1; }
}
/* ===== Connexion : fond en degrade, carte centree, champs en cadre, bouton pleine largeur ===== */
div.login-content { position: fixed; top: 0; left: 0; right: 0; bottom: 0; overflow: auto; justify-content: center; padding: 24px 14px; background: linear-gradient(135deg, #0d47a1 0%, #1976d2 45%, #29b6f6 100%); }
div.login-content:before { display: none !important; }
div.login-content:after { display: none !important; }
.login-content .login-marque { margin-bottom: 20px; }
.login-content .login-marque .zmdi { font-size: 52px; width: 84px; height: 84px; line-height: 84px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: inline-block; }
.login-content .lc-block { width: 400px; padding: 30px 34px 28px; border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(5, 30, 70, .35); overflow: visible; }
.login-content .lc-block .lc-titre { margin-bottom: 20px; text-align: center; }
.login-content .lc-block .lc-titre h2 { margin: 0; font-size: 22px; font-weight: 600; color: #1c2b36; }
.login-content .lc-block .lc-titre p { margin: 4px 0 0; font-size: 13px; color: #78909c; }
.login-content .lc-block .input-group { display: flex; align-items: center; margin-bottom: 14px !important; border: 1px solid #dfe5ea; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.login-content .lc-block .input-group:focus-within { border-color: #1976d2; box-shadow: 0 0 0 3px rgba(25, 118, 210, .15); }
.login-content .lc-block .input-group-addon { display: flex; align-items: center; justify-content: center; width: 44px; padding: 0; border: 0; background: transparent; color: #90a4ae; font-size: 19px; }
.login-content .lc-block .input-group .fg-line { flex: 1; min-width: 0; }
.login-content .lc-block .fg-line:after, .login-content .lc-block .fg-line:before { display: none !important; }
.login-content .lc-block .fg-line input.form-control { height: 46px; padding: 0 6px; border: 0; background: transparent !important; box-shadow: none; font-size: 15px; }
.login-content .lc-block .checkbox { margin: 4px 0 18px; }
.login-content .lc-block .btn-login { position: static !important; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; margin: 0; padding: 0; border: 0; border-radius: 12px; background: linear-gradient(135deg, #1976d2, #0d47a1); color: #fff; font-size: 14.5px; font-weight: 600; letter-spacing: .4px; box-shadow: 0 6px 16px rgba(13, 71, 161, .35); transform: none !important; transition: filter .15s, box-shadow .15s; }
.login-content .lc-block .btn-login:hover { filter: brightness(1.08); box-shadow: 0 8px 20px rgba(13, 71, 161, .45); }
.login-content .lc-block .btn-login .zmdi { font-size: 20px; position: static; margin: 0; }
.login-content .lc-block .login-navigation { display: none; }
@media (max-width: 480px) {
  .login-content .lc-block { width: 100%; padding: 24px 20px; }
}
/* connexion : la mention de copyright reste en bas de l'ecran, en clair sur le degrade */
body:has(.login-content) #footer { position: fixed !important; top: auto !important; bottom: 8px; left: 0; right: 0; padding: 0 !important; z-index: 6; color: rgba(255, 255, 255, .85); text-align: center; background: transparent; }
body:has(.login-content) #footer * { color: rgba(255, 255, 255, .85) !important; }
/* Page Eleves : parent et groupes */
.el-parent { color: #455a64; white-space: nowrap; }
.el-parent .zmdi { color: #90a4ae; font-size: 16px; vertical-align: -2px; margin-right: 3px; }
.el-parent small { display: block; margin-left: 20px; color: #90a4ae; font-size: 11.5px; }
.liste-eleve .badge-groupe { display: inline-block; margin: 1px 4px 1px 0; padding: 2px 10px; border-radius: 12px; background: #f1f5f8; color: var(--sk1); font-size: 12px; font-weight: 500; }
/* Page Groupes */
.prof-avatar.gr-icone { border-radius: 10px; font-size: 18px; }
.prof-avatar.gr-icone .zmdi { line-height: 36px; }
.gr-nb { display: inline-block; min-width: 54px; padding: 3px 10px; border-radius: 12px; background: #e8f0f7; color: var(--sk1); font-weight: 600; text-align: center; }
.gr-nb .zmdi { margin-right: 4px; font-size: 15px; vertical-align: -2px; }
.liste-groupe td.col-fin { font-variant-numeric: tabular-nums; color: #37474f; }
/* ===== Pages de parametrage : formulaires et tableaux assortis ===== */
.liste-prof .card-body.card-padding { padding-top: 14px; }
.liste-prof form .form-control:not(.fin-recherche) { border: 1px solid #dfe5ea; border-radius: 10px; padding: 6px 12px; height: 38px; background: #fff; box-shadow: none; }
.liste-prof form textarea.form-control { height: auto; }
.liste-prof form .form-control:focus { border-color: var(--sk2); box-shadow: 0 0 0 3px rgba(33, 150, 243, .15); }
.liste-prof form .fg-line:after, .liste-prof form .fg-line:before { display: none; }
.liste-prof form label { color: #546e7a; font-weight: 500; font-size: 12.5px; }
.liste-prof .card-body .btn-primary { background: linear-gradient(135deg, var(--sk2), var(--sk1)); border: 0; border-radius: 10px; box-shadow: 0 3px 8px rgba(0, 0, 0, .18); }
.liste-prof .card-body .btn-primary:hover { filter: brightness(.94); }
.liste-prof .card-body .btn-default { border-radius: 10px; }
.liste-prof .card-body > .table, .liste-prof .card-body .table-responsive .table { margin-bottom: 0; }
.liste-prof table thead th { background: #f5f7f9 !important; color: #607d8b !important; }
.liste-prof .card-body .ex-bloc, .liste-prof .card-body h3 { color: #37474f; }
/* Page Utilisateurs */
.liste-eleve .role-chip.role-admin { background: #fde7ea; color: #b71c1c; }
.liste-eleve .role-chip.role-secretariat { background: #e8f0fe; color: #1a56c4; }
.liste-eleve .role-chip.role-professeur { background: #e6f4ea; color: #1e7a3a; }
.us-statut { display: inline-block; padding: 2px 12px 2px 22px; border-radius: 12px; position: relative; font-size: 12px; font-weight: 600; }
.us-statut:before { content: ''; position: absolute; left: 9px; top: 50%; margin-top: -4px; width: 8px; height: 8px; border-radius: 50%; }
.us-statut.inactif { background: #eceff1; color: #78909c; }
.us-statut.inactif:before { background: #b0bec5; }
.liste-prof .ligne-cliquable { cursor: pointer; }
.rol-list .prof-tete { padding-bottom: 38px; }
/* ===== Profil utilisateur et profil professeur ===== */
.profil-user { max-width: 920px; }
.pu-entete { display: flex; align-items: center; gap: 20px; margin: 26px 0 16px; padding: 22px 26px; border-radius: 14px; color: #fff; background: linear-gradient(120deg, var(--sk1) 0%, var(--sk2) 60%, var(--sk3) 135%); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.pu-avatar { flex: 0 0 76px; width: 76px; height: 76px; line-height: 76px; border-radius: 50%; text-align: center; background: #fff; color: var(--sk1); font-size: 32px; font-weight: 700; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); }
.pu-identite h2 { margin: 0 0 6px; font-size: 24px; font-weight: 500; color: #fff; }
.pu-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13.5px; }
.pu-meta .zmdi { margin-right: 4px; opacity: .85; }
.profil-user .card { border-radius: 14px; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); overflow: hidden; }
.profil-user .tab-nav { background: #f5f7f9; border-bottom: 1px solid #e3e8ec; padding: 8px 14px 0; }
.profil-user .tab-nav > li > a { border-radius: 10px 10px 0 0; font-weight: 600; color: #607d8b; }
.profil-user .tab-nav > li.active > a { color: var(--sk1); background: #fff; }
.profil-user .tab-nav > li > a:after, .profil-user .tab-nav > li.active > a:after { background: var(--sk2); }
.profil-user .pmb-block { margin: 18px 24px; }
.profil-user .pmbb-header h2 { color: var(--sk1); font-size: 17px; font-weight: 600; }
.profil-user .dl-horizontal dt { color: #78909c; font-weight: 500; }
.profil-user .dl-horizontal dd { color: #263238; }
.profil-user .fg-line .form-control { height: 38px; padding: 6px 12px; border: 1px solid #dfe5ea; border-radius: 10px; background: #fff; }
.profil-user .fg-line .form-control:focus { border-color: var(--sk2); box-shadow: 0 0 0 3px rgba(33, 150, 243, .15); }
.profil-user .fg-line:after { display: none; }
.profil-user .btn-primary { background: linear-gradient(135deg, var(--sk2), var(--sk1)); border: 0; border-radius: 10px; box-shadow: 0 3px 8px rgba(0, 0, 0, .18); padding: 7px 18px; }
@media (max-width: 767px) {
  .pu-entete { flex-direction: column; text-align: center; }
}
/* profil professeur */
.profil-prof .pp-entete { border-radius: 14px; color: #fff; background: linear-gradient(120deg, var(--sk1) 0%, var(--sk2) 60%, var(--sk3) 135%); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.profil-prof .pp-avatar { background: #fff; color: var(--sk1); box-shadow: 0 3px 10px rgba(0, 0, 0, .25); font-weight: 700; }
.profil-prof .pp-identite h2 { color: #fff; }
.profil-prof .pp-meta { color: rgba(255, 255, 255, .92); }
.profil-prof .pp-meta .zmdi { color: rgba(255, 255, 255, .8); }
.profil-prof .pp-liens .btn { border: 0; border-radius: 10px; background: rgba(255, 255, 255, .95); color: var(--sk1); font-weight: 600; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.profil-prof .pp-kpi { border-radius: 10px; border-left-color: var(--sk2); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.profil-prof .card { border-radius: 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.profil-prof .card-header h2 { color: var(--sk1); font-weight: 600; }
.profil-prof .btn-primary { background: linear-gradient(135deg, var(--sk2), var(--sk1)); border: 0; border-radius: 10px; box-shadow: 0 3px 8px rgba(0, 0, 0, .18); }
.profil-prof .form-control { border: 1px solid #dfe5ea; border-radius: 10px; padding: 6px 12px; height: 38px; background: #fff; box-shadow: none; }
.profil-prof .form-control:focus { border-color: var(--sk2); box-shadow: 0 0 0 3px rgba(33, 150, 243, .15); }
.profil-prof .card-body table thead th { background: #f5f7f9; color: #607d8b; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; border-bottom: 1px solid #e3e8ec !important; padding: 8px 10px !important; }
.profil-prof .card-body table tbody td { padding: 9px 10px !important; border-top: 1px solid #f0f3f5 !important; }
.profil-prof .card-body table { border-radius: 8px; overflow: hidden; }
/* ===== Accueil : version epuree (moins de couleurs, liste limitee, boutons discrets) ===== */
.dash-hero { padding: 10px 22px; margin: 10px 0 8px; }
.dash-date { padding: 6px 18px 8px; min-width: 128px; }
.dash-date-num { font-size: 40px; }
.dash-date-jour { font-size: 11px; }
.dash-date-mois { font-size: 13px; }
.dash-kpi { box-shadow: none; border: 1px solid #e6ebef; border-left-width: 4px; }
.dash-kpi:hover { transform: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.dash-carte { box-shadow: none; border: 1px solid #e6ebef; }
.ds-ligne { padding: 9px 18px; font-size: 13.5px; }
.ds-ligne.etat-afaire, .ds-ligne.etat-encours { background: #fff; box-shadow: none; }
.ds-heure { border-left: 3px solid #cfd8dc; }
.ds-ligne.etat-fait .ds-heure { border-left-color: #66bb6a; }
.ds-ligne.etat-afaire .ds-heure { border-left-color: #ffa726; }
.ds-ligne.etat-encours .ds-heure { border-left-color: var(--sk2); }
.ds-ligne.etat-fait .ds-heure b { color: #263238; }
.ds-btn { border-radius: 8px; padding: 3px 12px; font-size: 11.5px; font-weight: 600; background: #fff; box-shadow: none; }
.ds-faire { color: var(--sk1); border: 1px solid var(--sk3); }
.ds-faire:hover { background: var(--skt); }
.ds-voir { color: #78909c; border: 1px solid #dfe5ea; }
.ds-voir:hover { background: #f5f7f9; }
.ds-liste { max-height: 560px; }
.ds-plus { text-align: center; padding: 9px; border-top: 1px solid #f0f3f5; background: #fafbfc; }
.ds-plus a { color: var(--sk1); font-weight: 500; font-size: 13px; text-decoration: none; }
/* ===== Calendrier : presentation (barre d'outils, jours, seances arrondies, vue chargee allegee) ===== */
.cal-page .fc-toolbar .fc-button { background: #fff; border: 1px solid #dfe5ea; border-radius: 8px; color: #546e7a; box-shadow: none; text-shadow: none; height: 32px; padding: 0 12px; font-weight: 500; }
.cal-page .fc-toolbar .fc-button:hover { background: var(--skt); border-color: var(--sk3); color: var(--sk1); }
.cal-page .fc-toolbar .fc-button.fc-state-active, .cal-page .fc-toolbar .fc-button:active { background: var(--sk2); border-color: var(--sk2); color: #fff; box-shadow: none; }
.cal-page .fc-toolbar .fc-button.fc-state-disabled { opacity: .55; }
.cal-page .fc-toolbar .fc-button-group > .fc-button { border-radius: 0; margin-left: -1px; }
.cal-page .fc-toolbar .fc-button-group > .fc-button:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
.cal-page .fc-toolbar .fc-button-group > .fc-button:last-child { border-radius: 0 8px 8px 0; }
.cal-page .fc-toolbar h2 { color: var(--sk1); font-weight: 600; text-transform: capitalize; }
.cal-page .fc-view-container { border: 1px solid #e6ebef; border-radius: 10px; overflow: hidden; }
.cal-page .fc th.fc-day-header { background: #f5f7f9 !important; color: #607d8b !important; border-bottom: 1px solid #e3e8ec; font-size: 12px; text-transform: capitalize; }
.cal-page .fc th.fc-today { background: var(--skt) !important; color: var(--sk1) !important; font-weight: 700; border-bottom: 2px solid var(--sk2); }
.cal-page .fc-today { background: rgba(0, 0, 0, .02) !important; }
.cal-page .fc td, .cal-page .fc th { border-color: #eef1f4; }
.cal-page .fc-time-grid .fc-slats td { border-color: #f1f4f6; }
.cal-page .fc-axis { color: #90a4ae; font-size: 11.5px; }
.cal-page .fc-event { border-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); border: 0; }
.cal-page .fc-event .fc-title small { opacity: .85; font-weight: 400; }
.cal-page .fc-more { color: var(--sk1); font-weight: 600; }
.cal-astuce { margin: 6px 15px 0; padding: 7px 14px; border-radius: 8px; background: var(--skt); color: var(--sk1); font-size: 12.5px; }
.cal-astuce .zmdi { font-size: 16px; vertical-align: -2px; margin-right: 4px; }
.cal-page.cal-dense .fc-time-grid-event .fc-time span { display: none; }
.cal-page.cal-dense .fc-time-grid-event { font-size: 10.5px; padding: 1px 2px; }
.cal-page.cal-dense .fc-time-grid-event .fc-title { white-space: normal; word-break: break-word; line-height: 1.15; }
/* ===== Etats a imprimer : ecran de choix (tuiles, parametres) ===== */
.etat-ecran > .card { border-radius: 14px; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); overflow: hidden; }
.etat-ecran > .card > .card-header h2 { color: var(--sk1); font-size: 22px; font-weight: 600; }
.etat-ecran > .card > .card-header h2 small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: #90a4ae; }
.etat-cat-titre { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: #78909c; margin: 6px 0 10px; }
.etat-cat-titre:after { content: ''; flex: 1; height: 1px; background: #e8edf1; }
.etat-categorie { margin-bottom: 20px; }
.etat-tuiles { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.etat-tuile { padding: 12px 14px; border: 1px solid #e6ebef; border-left: 1px solid #e6ebef; border-radius: 12px; background: #fff; transition: box-shadow .15s, border-color .15s, transform .15s; }
.etat-tuile:hover { box-shadow: 0 4px 14px rgba(30, 50, 80, .12); border-color: var(--sk3); transform: translateY(-1px); }
.etat-tuile .zmdi { flex: 0 0 42px; width: 42px; height: 42px; line-height: 42px; border-radius: 12px; background: #f1f5f8; color: #78909c; font-size: 22px; transition: background .15s, color .15s; }
.etat-tuile-texte b { color: #263238; }
.etat-tuile.tuile-finance .zmdi { background: #e8f5e9; color: #43a047; }
.etat-params { margin-top: 14px; padding: 16px 18px 10px; background: #fafbfc; border: 1px solid #e6ebef; border-radius: 12px; }
.etat-params-titre { font-size: 16px; color: #263238; }
.etat-params-titre .zmdi { color: var(--sk2); }
.etat-params label { font-size: 12.5px; font-weight: 500; color: #546e7a; margin: 4px 0; }
.etat-params .form-control { height: 38px; padding: 6px 12px; border: 1px solid #dfe5ea; border-radius: 10px; background: #fff; box-shadow: none; }
.etat-params .form-control:focus { border-color: var(--sk2); box-shadow: 0 0 0 3px rgba(33, 150, 243, .15); }
.etat-ecran .etat-actions .btn-primary { background: linear-gradient(135deg, var(--sk2), var(--sk1)); border: 0; border-radius: 10px; box-shadow: 0 3px 8px rgba(0, 0, 0, .18); padding: 9px 22px; }
.etat-ecran .etat-actions .btn-default { border-radius: 10px; }
/* ===== Registre de classe (ecran) ===== */
@media screen {
  .reg-page .reg-tete h2 { color: var(--sk1); font-size: 22px; font-weight: 600; }
  .reg-page .reg-tete h2 small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: #90a4ae; }
  .reg-page .reg-barre .form-control { height: 38px; border: 1px solid #dfe5ea; border-radius: 10px; background: #fff; padding: 6px 12px; box-shadow: none; }
  .reg-page .reg-barre .btn-group .btn { height: 38px; border-radius: 0; border: 1px solid #dfe5ea; background: #fff; color: #546e7a; box-shadow: none; margin-left: -1px; }
  .reg-page .reg-barre .btn-group .btn:first-child { border-radius: 10px 0 0 10px; margin-left: 0; }
  .reg-page .reg-barre .btn-group .btn:last-child { border-radius: 0 10px 10px 0; }
  .reg-page .reg-barre .btn-group .btn:hover { background: var(--skt); color: var(--sk1); }
  .reg-page .reg-barre .btn-primary { height: 38px; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--sk2), var(--sk1)); box-shadow: 0 3px 8px rgba(0, 0, 0, .18); }
  .reg-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 4px 0 12px; }
  .reg-groupe { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 14px; border-radius: 10px; background: var(--skt); color: var(--sk1); }
  .reg-groupe b { font-size: 16px; }
  .reg-groupe small { color: var(--sk1); opacity: .75; }
  .reg-puce { padding: 5px 12px; border-radius: 16px; background: #f1f5f8; color: #546e7a; font-size: 13px; }
  .reg-puce .zmdi { margin-right: 4px; color: #90a4ae; font-size: 16px; vertical-align: -2px; }
  .reg-page .table-responsive { border: 1px solid #e6ebef; border-radius: 12px; overflow-x: auto; }
  .registre { border-collapse: separate; border-spacing: 0; }
  .registre th, .registre td { border: 0; border-bottom: 1px solid #eef1f4; border-right: 1px solid #f3f5f7; }
  .registre th, .registre th.reg-nom { background: #f5f7f9 !important; color: #607d8b; font-size: 12px; }
  .registre tbody tr:hover td:not(.reg-p):not(.reg-a) { background: #f9fbfc; }
  .registre .reg-cell { font-size: 13.5px; }
  .registre .reg-p { background: #e8f5e9; color: #2e7d32; }
  .registre .reg-a { background: #ffebee; color: #c62828; }
  .registre .reg-clic:hover { outline: 2px solid var(--sk2); }
  .registre tfoot td { background: #f5f7f9; border-bottom: 0; }
  .reg-ex { display: inline-block; min-width: 26px; padding: 1px 6px; border-radius: 6px; text-align: center; min-width: 26px; }
  .reg-vide { border: 1px solid #dfe5ea; background: #fff; }
  .reg-futur-ex { width: 26px; height: 18px; border-radius: 6px; background: #eceff1; vertical-align: middle; }
}
@media screen {
  .legende-cycles .reg-ex.reg-p { background: #e8f5e9; color: #2e7d32; font-weight: 700; }
  .legende-cycles .reg-ex.reg-a { background: #ffebee; color: #c62828; font-weight: 700; }
  .reg-ex.reg-j, .registre .reg-j { background: #fff4e0; color: #e65100; font-weight: 700; }
}
/* ===== Feuille d'appel imprimee ===== */
.etat-appel h3 { margin: 4px 0 10px; }
.ea-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; margin-bottom: 12px; }
.ea-info div { border: 1px solid #b8c2cc; border-radius: 4px; padding: 5px 10px; }
.ea-info small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .5px; color: #607d8b; }
.ea-info b { font-size: 13px; text-transform: capitalize; }
.ea-table th, .ea-table td { border: 1px solid #9aa5b1; }
.ea-table thead th { background: #dcebf9 !important; color: #0d47a1 !important; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
.ea-table tbody tr { height: 34px; }
.ea-table tbody tr:nth-child(even) td { background: #fafbfc; }
.ea-n { width: 38px; text-align: center; color: #607d8b; }
.ea-nom { font-weight: 600; font-size: 14px; }
.ea-case { width: 74px; text-align: center; }
.ea-obs { width: 28%; }
.ea-box { display: inline-block; width: 20px; height: 20px; line-height: 17px; border: 1.8px solid #455a64; border-radius: 3px; text-align: center; font-size: 15px; font-weight: 700; color: #263238; vertical-align: middle; background: #fff; }
.ea-box i { font-style: normal; }
.ea-total { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 4px 0 6px; font-size: 13px; color: #37474f; }
.ea-note { margin-left: auto; font-size: 11.5px; color: #78909c; font-style: italic; }
@media print {
  .ea-info div, .ea-table thead th, .ea-box { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ea-table tbody tr { height: 9mm; page-break-inside: avoid; }
  .ea-table tbody tr:nth-child(even) td { background: #f6f8fa !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ea-table thead { display: table-header-group; }
}
/* ===== Frais du centre ===== */
.pf-grille { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; margin-bottom: 18px; }
.pf-reglage, .pf-apercu { padding: 16px 18px; border: 1px solid #e6ebef; border-radius: 12px; background: #fafbfc; }
.pf-valeur { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; }
.pf-page .pf-valeur .form-control { max-width: 130px; height: 52px; font-size: 26px; font-weight: 700; text-align: center; color: var(--sk1); }
.pf-valeur span { font-size: 24px; font-weight: 600; color: #78909c; }
.pf-curseur { width: 100%; accent-color: var(--sk2); }
.pf-echelle { display: flex; justify-content: space-between; font-size: 11px; color: #90a4ae; }
.pf-titre { font-size: 13.5px; color: #546e7a; margin-bottom: 12px; }
.pf-titre small { color: #90a4ae; }
.pf-barre { display: flex; height: 30px; border-radius: 15px; overflow: hidden; background: #e8ecef; }
.pf-barre i { display: block; height: 100%; transition: width .2s; }
.pf-centre { background: linear-gradient(135deg, var(--sk3), var(--sk2)); }
.pf-prof { background: linear-gradient(135deg, #81c784, #43a047); }
.pf-legende { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 12px; font-size: 14px; color: #455a64; }
.pf-legende b { margin-left: 6px; font-size: 16px; color: #263238; }
.pf-pt { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.pf-pt.c { background: var(--sk2); }
.pf-pt.p { background: #43a047; }
.pf-notes { display: grid; gap: 8px; margin-bottom: 18px; font-size: 13px; color: #607d8b; }
.pf-notes .zmdi { color: var(--sk2); margin-right: 6px; font-size: 16px; vertical-align: -2px; }
@media (max-width: 767px) {
  .pf-grille { grid-template-columns: 1fr; }
}
/* ===== Sauvegardes ===== */
.liste-prof .sv-restaurer { color: var(--sk1); border: 1px solid var(--sk3); background: #fff; border-radius: 8px; }
.liste-prof .sv-restaurer:hover { background: var(--skt); }
/* ===== Gestion Bon Achat : bons, citernes, totaux ===== */
.bon-totaux { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; padding: 12px 16px; border-top: 2px solid var(--sk1, #03a9f4); background: #f8fafb; }
.bon-totaux .bon-total { background: #fff; border: 1px solid #e3e8ec; border-radius: 8px; padding: 6px 14px; text-align: right; }
.bon-totaux .bon-total small { display: block; color: #7b8a99; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
.bon-totaux .bon-total b { font-size: 16px; }
.bon-total-modal { margin-top: 10px; padding: 10px 14px; border-radius: 8px; background: #eef7fd; border: 1px solid #cfe6f6; font-size: 14px; }
.bon-total-modal b { font-size: 18px; margin: 0 4px; }
.kv-table th { width: 55%; font-weight: 500; color: #5b6b7a; }
.citerne-carte { background: #fff; border: 1px solid #e3e8ec; border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.citerne-carte .citerne-nom { font-weight: 700; margin-bottom: 8px; }
.citerne-carte .progress { height: 18px; margin-bottom: 6px; border-radius: 9px; }
.citerne-carte .progress-bar { line-height: 18px; font-size: 11px; }
.citerne-carte .citerne-chiffres { color: #5b6b7a; margin-bottom: 8px; }
.citerne-carte .citerne-chiffres b { color: #263238; font-size: 16px; }
/* connexion : icone pour afficher / masquer le mot de passe */
.login-content .fg-line { position: relative; }
.login-content .mdp-champ { padding-right: 46px !important; }
.login-content .mdp-oeil { z-index: 6; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; line-height: 36px; text-align: center; border-radius: 50%; color: #90a4ae; font-size: 20px; text-decoration: none; }
.login-content .mdp-oeil:hover { background: #eceff1; color: #1565c0; }
/* ===== page d'accueil ===== */
.accueil-banniere { display: flex; align-items: center; gap: 18px; margin: 10px 0 8px; padding: 22px 26px; border-radius: 14px; color: #fff;
    background: linear-gradient(135deg, var(--sk1), var(--sk2)); box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.accueil-banniere > i { font-size: 44px; opacity: .9; }
.accueil-banniere h1 { margin: 0; font-size: 26px; font-weight: 500; color: #fff; }
.accueil-banniere p { margin: 2px 0 0; opacity: .9; font-size: 14px; }
@media (max-width: 600px) {
  .accueil-banniere { padding: 16px 18px; }
}
/* ---- affichage d'une facture ---- */
@media print {
  .fd-imprimer { display: none !important; }
}
/* ---- synthese de la caisse du poste ---- */
.cp-comptage { flex: 1 1 280px; }
.cp-comptage label { font-size: 12px; font-weight: 600; color: #607d8b; }
.cp-comptage .form-control { max-width: 280px; height: 40px; font-size: 18px; border: 1px solid #cfd8dc; border-radius: 10px; }
.cp-ecart { margin-top: 10px; padding: 8px 12px; border-radius: 10px; font-size: 14px; display: inline-block; }
.cp-ecart .zmdi { margin-right: 6px; font-size: 18px; vertical-align: -2px; }
.cp-ecart.ok { background: #e8f5e9; color: #2e7d32; }
/* ---- citernes ---- */
.pl-imprimer { margin-left: auto; margin-right: 8px; border-radius: 8px; }
/* toutes les autres zones de recherche / filtres : même forme ovale */
input.form-control[placeholder^="Rechercher"], input.form-control[placeholder^="Recherche"] {
    height: 40px !important; padding: 0 16px !important; background: #fff !important;
    border: 1px solid #cfd8dc !important; border-radius: 999px !important; box-shadow: none !important;
}
input.form-control[placeholder^="Rechercher"]:focus { border-color: var(--sk1, #1565c0) !important; box-shadow: 0 0 0 3px rgba(33,150,243,.18) !important; }
.ng-table-filters input.form-control, .ng-table th.filter input { border-radius: 999px !important; border: 1px solid #cfd8dc !important; padding: 0 14px !important; height: 34px !important; background:#fff !important; box-shadow:none !important; }
/* bouton Installer l'application (en-tête) */
.header-installer > a { display:inline-flex !important; align-items:center; gap:7px; height:34px; margin:8px 6px 0 0; padding:0 16px !important; border-radius:999px; background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.55); color:#fff !important; font-size:13px; font-weight:600; line-height:1 !important; text-decoration:none; }
.header-installer > a:hover { background:#fff; color:#0277bd !important; }
.header-installer .zmdi { font-size:17px; }
/* ===== Sauvegardes et exercices ===== */
.header-exercice > a, .header-exercice .he-texte { display: inline-block; color: #fff; padding: 0 12px; line-height: 50px; font-size: 13px; opacity: .92; }
.header-exercice > a:hover { opacity: 1; }
/* « Installer l'application » : petit bouton discret en bas à droite (ne gêne plus les icônes de l'en-tête) */
.top-menu > li.header-installer { position: fixed; right: 14px; bottom: 12px; z-index: 1030; float: none; display: block !important; margin: 0; padding: 0; }
.top-menu > li.header-installer > a { height: 24px; margin: 0; padding: 0 11px !important; gap: 5px; font-size: 11px; line-height: 22px; font-weight: 500; background: rgba(255,255,255,.96); border: 1px solid rgba(0,0,0,.14); color: #546e7a !important; box-shadow: 0 1px 4px rgba(0,0,0,.14); }
.top-menu > li.header-installer > a:hover { background: var(--sk1); border-color: var(--sk1); color: #fff !important; }
.header-installer .zmdi { font-size: 13px; }
/* nom de l'exercice dans l'en-tête : même forme que le compte connecté */
.top-menu > li.header-exercice { display: inline-flex; align-items: center; height: 38px; margin: 0 4px; padding: 0; border-radius: 22px; background: rgba(255,255,255,.16); vertical-align: top; }
.header-exercice > a, .header-exercice .he-texte { display: inline-flex; align-items: center; gap: 6px; line-height: 38px; padding: 0 14px; font-size: 12.5px; color: #fff; opacity: 1; }
/* ===== Accueil sobre et professionnel (remplace les blocs précédents) ===== */
.installer-pwa { position: fixed; right: 14px; bottom: 12px; z-index: 1030; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 11px; border-radius: 12px; font-size: 11px; font-weight: 500; color: #546e7a; background: rgba(255,255,255,.96); border: 1px solid rgba(0,0,0,.14); box-shadow: 0 1px 4px rgba(0,0,0,.14); text-decoration: none; }
.installer-pwa:hover { background: var(--sk1); border-color: var(--sk1); color: #fff; text-decoration: none; }
.installer-pwa .zmdi { font-size: 13px; }
.accueil-exercice { font-size: 12.5px; color: #455a64; background: #fff; border: 1px solid #dfe5ea; border-radius: 6px; padding: 6px 12px; white-space: nowrap; }
.accueil-exercice .zmdi { color: var(--sk1); margin-right: 4px; font-size: 15px; vertical-align: -2px; }
