﻿/* =======================================================
   BASE APPLICATION
======================================================= */

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}


a, .btn-link {
    color: #006bb7;
}


.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}


.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


.content {
    padding-top: 1.1rem;
}


h1:focus {
    outline: none;
}


/* Validation */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}


.invalid {
    outline: 1px solid #e50000;
}


.validation-message {
    color: #e50000;
}


/* Erreur Blazor */

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}


    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }



.darker-border-checkbox.form-check-input {
    border-color: #929292;
}



/* =======================================================
   RADZEN DATAGRID GLOBAL
======================================================= */


.rz-datatable,
.rz-datagrid,
.rz-grid {
    font-size: 12px !important;
}


/* TABLE */

.rz-grid-table {
    table-layout: fixed !important;
    border-collapse: collapse;
}



    /* HEADER */

    .rz-grid-table thead th {
        height: 30px !important;
        min-height: 30px !important;
        padding: 3px 6px !important;
        font-size: 12px !important;
        font-weight: 600;
        line-height: 1.1 !important;
        vertical-align: middle !important;
        background: #f5f5f5;
        border: 1px solid #dcdcdc;
    }



/* TITRE COLONNE */

.rz-column-title {
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* LIGNES */

.rz-grid-table tbody tr {
    height: 26px !important;
}



/* CELLULES */

.rz-grid-table tbody td {
    padding: 2px 6px !important;
    font-size: 12px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #dcdcdc;
}



/* Empêche bug Header Radzen */

.rz-cell-data {
    display: block !important;
}



/* Zebra */

.rz-grid-table tbody tr:nth-child(even) {
    background: #fafafa;
}



/* =======================================================
   BOUTONS RADZEN
======================================================= */


.rz-button {
    height: 24px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
}



/* =======================================================
   INPUTS RADZEN
======================================================= */


.rz-textbox input,
.rz-dropdown,
.rz-datepicker input {
    padding: 4px 8px !important;
    font-size: 13px !important;
}



.rz-inputtext,
.rz-dropdown-label {
    min-height: 32px !important;
}



.rz-dropdown,
.rz-inputtext {
    height: 34px !important;
    min-height: 34px !important;
}



.rz-datepicker {
    height: 34px !important;
}



/* =======================================================
   FORMULAIRES
======================================================= */


.form-label {
    font-size: 0.85rem;
    margin-bottom: 2px;
    font-weight: 600;
}



.filter-box {
    height: 38px;
    font-size: 14px;
}


.form-control-spacing {
    margin-bottom: 15px;
}



/* =======================================================
   GRID CONTAINER
======================================================= */


.grid-container {
    flex: 1;
    min-height: 0;
    overflow: auto;
}


.history-container {
    flex: 1;
    min-height: 250px;
    overflow: hidden;
}



    .history-container .rz-datagrid {
        height: 100%;
    }

/* =======================================================
   LAYOUT APPLICATION
======================================================= */


.page {
    display: flex;
    height: 100vh;
}



main {
    flex: 1;
    min-width: 0;
    overflow: auto;
}



/* =======================================================
   SIDEBAR GENERAL
======================================================= */


.sidebar {
    width: 260px;
    min-width: 260px;
    height: 100vh;
    background: #052767;
    overflow: hidden;
    transition: all .3s ease;
    z-index: 1050;
}



    /* Sidebar fermée desktop */

    .sidebar.sidebar-collapsed {
        width: 0 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }



        .sidebar.sidebar-collapsed > * {
            display: none !important;
        }



    /* =======================================================
   MENU SIDEBAR
======================================================= */


    .sidebar .nav-link,
    .sidebar .menu-button {
        color: white !important;
    }



        .sidebar .nav-link:hover,
        .sidebar .menu-button:hover {
            color: white !important;
            background-color: rgba(255,255,255,0.1);
        }



        .sidebar .nav-link.active {
            color: white !important;
            background-color: rgba(255,255,255,0.15);
        }



/* =======================================================
   TOP BAR
======================================================= */


.top-row {
    height: 55px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    background: white;
    border-bottom: 1px solid #ddd;
}



/* =======================================================
   PAGE PAIEMENT
======================================================= */


.paiement-page {
    height: calc(100vh - 90px);
}



    .paiement-page > .row {
        height: 100%;
    }



    .paiement-page .rz-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }



    .paiement-page .rz-card-content {
        display: flex;
        flex-direction: column;
        height: 100%;
    }



/* Formulaire paiement */

.payment-form {
    flex-shrink: 0;
}



/* =======================================================
   RESPONSIVE MOBILE
======================================================= */


.sidebar-overlay {
    display: none;
}



@media(max-width:768px) {


    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        min-width: 260px;
        transform: translateX(0);
    }



        .sidebar.sidebar-collapsed {
            transform: translateX(-100%);
            width: 260px !important;
            min-width: 260px !important;
        }



    main {
        width: 100%;
    }



    .sidebar-overlay.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 1040;
    }



    .paiement-page {
        height: auto;
    }



        .paiement-page > .row {
            height: auto;
        }



    .grid-container,
    .history-container {
        height: 400px;
    }
}



/* =======================================================
   RADZEN GRID MOBILE
======================================================= */


@media(max-width:768px) {


    .rz-datagrid {
        overflow-x: auto !important;
    }



    .rz-grid-table {
        table-layout: fixed !important;
        min-width: 900px;
    }



        .rz-grid-table th,
        .rz-grid-table td {
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            padding: 4px 6px !important;
            font-size: 12px !important;
            height: 28px !important;
        }



    .rz-column-title {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}



/* =======================================================
   GRILLE CAISSE MOBILE
======================================================= */


.caisse-grid {
    width: 100%;
}



@media(max-width:768px) {


    .caisse-grid {
        overflow: auto;
        height: 60vh;
        -webkit-overflow-scrolling: touch;
    }



        .caisse-grid .rz-grid-table {
            min-width: 1200px;
        }
}

/* =======================================================
   RESUME / STATUS
======================================================= */


.grid-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 8px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
}



    .grid-summary > div {
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }



/* =======================================================
   JOURNAL CAISSE STATUS
======================================================= */


.journal-status {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    background: #fafafa;
    border: 1px solid #ddd;
    border-top: none;
    padding: 6px 12px;
    font-size: 13px;
    color: #555;
}



    .journal-status div {
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }



.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}



/* =======================================================
   BILAN INSCRIPTION
======================================================= */


.taux-container {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}



.taux-dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    display: inline-block !important;
}



.dot-success {
    background: #28a745 !important;
}



.dot-warning {
    background: #ffc107 !important;
}



.dot-danger {
    background: #dc3545 !important;
}



.bilan-taux-container {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}



.bilan-taux-dot {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    border-radius: 50% !important;
    display: inline-block !important;
}



.bilan-dot-success {
    background: #28a745 !important;
}



.bilan-dot-warning {
    background: #ffc107 !important;
}



.bilan-dot-danger {
    background: #dc3545 !important;
}



/* =======================================================
   DASHBOARD
======================================================= */


.stat-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    height: 90px;
}



.stat-icon {
    font-size: 32px;
}



.stat-card small {
    color: #777;
}



.stat-card h4 {
    margin: 0;
    font-weight: bold;
}



.progress-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}



.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    border-left: 5px solid #0d6efd;
    height: 100%;
    transition: .25s;
}



    .dashboard-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,.12);
    }



.dashboard-value {
    font-size: 28px;
    font-weight: bold;
    color: #0d6efd;
}



/* =======================================================
   CARTE RESUME CAISSE
======================================================= */


.resume-caisse {
    background: white;
    border-radius: 8px !important;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,.15);
    transition: transform .3s ease, box-shadow .3s ease;
}



    .resume-caisse:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 18px rgba(0,0,0,.25);
    }



    .resume-caisse i {
        transition: transform .3s ease;
    }



    .resume-caisse:hover i {
        transform: scale(1.2);
    }



.resume-paiement {
    border-left: 5px solid #198754 !important;
}



.resume-apport {
    border-left: 5px solid #0d6efd !important;
}



.resume-depense {
    border-left: 5px solid #dc3545 !important;
}



/* =======================================================
   TOTAUX CAISSE
======================================================= */


.caisse-total {
    height: 55px;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,.08);
    transition: all .25s ease;
}



    .caisse-total:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 15px rgba(0,0,0,.18);
    }



.total-icon {
    font-size: 25px;
}



.montant {
    font-size: 16px;
}



.total-entree {
    border-left: 5px solid #198754 !important;
}



.total-sortie {
    border-left: 5px solid #dc3545 !important;
}



.total-solde {
    border-left: 5px solid #0d6efd !important;
}



.total-entree .total-icon {
    color: #198754;
}



.total-sortie .total-icon {
    color: #dc3545;
}



.total-solde .total-icon {
    color: #0d6efd;
}



/* =======================================================
   COULEURS TOTAUX JOURNAL
======================================================= */


.total-caisse {
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,.12);
    transition: transform .25s ease, box-shadow .25s ease;
}



    .total-caisse:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0,0,0,.18);
    }



    .total-caisse.total-entree {
        background: #d1e7dd;
    }



    .total-caisse.total-sortie {
        background: #f8d7da;
    }



    .total-caisse.total-solde {
        background: #cfe2ff;
    }


/* =========================================================
       PAGE Login
       ========================================================= */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f9;
    padding: 20px;
}


/* =========================================================
       CARTE
       ========================================================= */

.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,.10);
}


/* =========================================================
       HEADER
       ========================================================= */

.login-header {
    text-align: center;
    margin-bottom: 30px;
}


.login-logo {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 60%;
/*    background: #0d6efd;*/
    overflow: hidden;
}

.login-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}


.login-header h2 {
    margin: 0;
    font-weight: 600;
    color: #212529;
}


.login-header p {
    margin-top: 5px;
    color: #6c757d;
    font-size: 14px;
}


/* =========================================================
       CHAMPS
       ========================================================= */

.login-field {
    margin-bottom: 20px;
}


    .login-field label {
        display: block;
        margin-bottom: 7px;
        font-weight: 500;
        color: #343a40;
    }


.input-icon {
    position: relative;
}


    .input-icon span {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        font-size: 16px;
    }


    .input-icon input {
        padding-left: 42px;
        height: 45px;
        border-radius: 7px;
        border: 1px solid #ced4da;
    }


        .input-icon input:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 .15rem rgba(13,110,253,.15);
        }


/* =========================================================
       BOUTON
       ========================================================= */

.btn-login {
    width: 100%;
    height: 45px;
    border: none;
    border-radius: 7px;
    background: #0d6efd;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: .2s;
}


    .btn-login:hover {
        background: #0b5ed7;
    }


    .btn-login:disabled {
        opacity: .65;
        cursor: not-allowed;
    }


/* =========================================================
       FOOTER
       ========================================================= */

.login-footer {
    text-align: center;
    margin-top: 25px;
    color: #8a8f98;
    font-size: 12px;
}


/* =========================================================
       MOBILE
       ========================================================= */

@media (max-width: 500px) {

    .login-card {
        padding: 25px;
    }
}

/* =========================================================
   THEMES iSCHOOL
========================================================= */

:root {
    --app-bg: #f4f6f9;
    --app-surface: #ffffff;
    --app-text: #212529;
    --app-border: #dddddd;
    --app-header: #ffffff;
    --app-grid-header: #f5f5f5;
    --app-sidebar: #052767;
}


/* =========================================================
   THEME CLAIR
========================================================= */

.theme-light {
    --app-bg: #f4f6f9;
    --app-surface: #ffffff;
    --app-text: #212529;
    --app-border: #dddddd;
    --app-header: #ffffff;
    --app-grid-header: #f5f5f5;
    --app-sidebar: #052767;
}


/* =========================================================
   THEME SOMBRE
========================================================= */

.theme-dark {
    --app-bg: #1e1e1e;
    --app-surface: #2b2b2b;
    --app-text: #f1f1f1;
    --app-border: #444444;
    --app-header: #252525;
    --app-grid-header: #333333;
    --app-sidebar: #111827;
}


/* =========================================================
   THEME BLEU
========================================================= */

.theme-blue {
    --app-bg: #eef5ff;
    --app-surface: #ffffff;
    --app-text: #1f2937;
    --app-border: #cbd5e1;
    --app-header: #ffffff;
    --app-grid-header: #e7f0ff;
    --app-sidebar: #0b3d91;
}


/* =========================================================
   APPLICATION
========================================================= */

body {
    background: var(--app-bg);
    color: var(--app-text);
}


/* =========================================================
   TOP BAR
========================================================= */

.top-row {
    background: var(--app-header) !important;
    border-bottom: 1px solid var(--app-border) !important;
    color: var(--app-text);
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    background: var(--app-sidebar) !important;
}


/* =========================================================
   CARTES
========================================================= */

.dashboard-card,
.stat-card,
.progress-card,
.resume-caisse,
.caisse-total,
.rz-card {
    background: var(--app-surface);
    color: var(--app-text);
}


/* =========================================================
   DATAGRID
========================================================= */

.rz-grid-table {
    background: var(--app-surface);
    color: var(--app-text);
}


    .rz-grid-table thead th {
        background: var(--app-grid-header) !important;
        color: var(--app-text) !important;
        border-color: var(--app-border) !important;
    }


    .rz-grid-table tbody td {
        border-color: var(--app-border) !important;
        color: var(--app-text);
    }


    .rz-grid-table tbody tr:nth-child(even) {
        background: var(--app-bg);
    }


/* =========================================================
   FORMULAIRES
========================================================= */

.form-control,
.rz-inputtext,
.rz-dropdown,
.rz-datepicker {
    background: var(--app-surface);
    color: var(--app-text);
    border-color: var(--app-border);
}


/* =========================================================
   TITRES
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--app-text);
}

/* ============================
   LOGIN - CHARGEMENT
   ============================ */

.login-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .login-loading .spinner {
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255,255,255,.4);
        border-top-color: white;
        border-radius: 50%;
        animation: login-spin .7s linear infinite;
    }

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}
/* =========================================================
   TABLEAU SAISIE MULTIPLE
   ========================================================= */

.saisie-notes-table {
    width: max-content !important;
    min-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse;
}


    /* =========================================================
   CELLULES GENERALES
   ========================================================= */

    .saisie-notes-table th,
    .saisie-notes-table td {
        vertical-align: middle !important;
        white-space: nowrap !important;
    }


        /* =========================================================
   N°
   ========================================================= */

        .saisie-notes-table th.col-numero,
        .saisie-notes-table td.col-numero {
            width: 45px !important;
            min-width: 45px !important;
            max-width: 45px !important;
        }


        /* =========================================================
   MATRICULE
   ========================================================= */

        .saisie-notes-table th.col-matricule,
        .saisie-notes-table td.col-matricule {
            width: 120px !important;
            min-width: 120px !important;
            max-width: 120px !important;
            text-align: center !important;
            white-space: nowrap !important;
        }


    /* =========================================================
   CONTENU MATRICULE
   ========================================================= */

    .saisie-notes-table .matricule-content {
        width: 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        display: block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }


    /* =========================================================
   ELEVE
   ========================================================= */

    .saisie-notes-table th.col-eleve,
    .saisie-notes-table td.col-eleve {
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
        white-space: nowrap !important;
    }


    /* =========================================================
   CONTENU ELEVE
   ========================================================= */

    .saisie-notes-table .eleve-content {
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
        display: block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }


    /* =========================================================
   MATIERE
   ========================================================= */

    .saisie-notes-table .matiere-header {
        text-align: center !important;
        white-space: nowrap !important;
        font-weight: 600;
    }


    /* =========================================================
   EVALUATION
   ========================================================= */

    .saisie-notes-table .evaluation-header {
        width: 96px !important;
        min-width: 96px !important;
        max-width: 96px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }


    /* =========================================================
   CELLULE NOTE + OBSERVATION
   ========================================================= */

    .saisie-notes-table .note-cell {
        width: 96px !important;
        min-width: 96px !important;
        max-width: 96px !important;
        padding: 1px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }


    /* =========================================================
   CONTENEUR NOTE + OBSERVATION
   ========================================================= */

    .saisie-notes-table .note-cell-content {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
    }


    /* =========================================================
   RADZEN NUMERIC
   ========================================================= */

    .saisie-notes-table .note-cell .rz-numeric {
        width: 80px !important;
        min-width: 80px !important;
        max-width: 80px !important;
        flex: 0 0 80px !important;
    }


    /* =========================================================
   INPUT INTERNE
   ========================================================= */

    .saisie-notes-table .note-cell .saisie-note-input {
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
        height: 26px !important;
        box-sizing: border-box !important;
        padding: 0 1px !important;
        margin: 0 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }


    /* =========================================================
   BOUTON AVEC OBSERVATION
   ========================================================= */

    .saisie-notes-table .note-cell .observation-button.observation-existante {
        width: 24px !important;
        min-width: 24px !important;
        max-width: 24px !important;
        height: 24px !important;
        min-height: 24px !important;
        max-height: 24px !important;
        background-color: #e7f1ff !important;
        border-radius: 4px !important;
        padding: 0 !important;
        margin-left: -2px !important;
        margin-right: 0 !important;
        flex: 0 0 24px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }


        /* =========================================================
   ICONE RADZEN
   ========================================================= */

        .saisie-notes-table .note-cell .observation-button .rz-button-icon {
            font-size: 20px !important;
            line-height: 1 !important;
            color: #6c757d !important;
        }

    /* =========================================================
   OBSERVATION EXISTANTE — BLEU BIEN VISIBLE
   ========================================================= */

    .saisie-notes-table .note-cell .observation-button.observation-existante {
        background-color: #0d6efd !important;
        border: 1px solid #0a58ca !important;
        border-radius: 4px !important;
    }


        /* =========================================================
   ICONE — BLANC SUR BLEU
   ========================================================= */

        .saisie-notes-table .note-cell .observation-button.observation-existante .rz-button-icon {
            color: #ffffff !important;
            font-size: 20px !important;
        }


        /* =========================================================
   SURVOL
   ========================================================= */

        .saisie-notes-table .note-cell .observation-button.observation-existante:hover {
            background-color: #0a58ca !important;
            border-color: #084298 !important;
        }


/* =========================================================
   PAGE PRÉPARATION ANNÉE
========================================================= */
.preparation-page {
    padding: 10px;
}

.page-header {
    margin-bottom: 16px;
}

.page-subtitle {
    color: #6c757d;
    font-size: 13px;
    margin-top: 3px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    margin-bottom: 12px;
}

.select-all {
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.option-card {
    border: 1px solid #e2e5e9;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

.option-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.option-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 14px;
}

.option-description {
    color: #6c757d;
    font-size: 12px;
    margin-top: 3px;
}

.option-action {
    margin-top: 10px;
    padding-left: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-help {
    color: #6c757d;
    font-size: 11px;
}


/* =========================================================
   PÉDAGOGIE
========================================================= */

.pedagogie-card {
    border: 1px solid #b8c7e0;
    border-radius: 7px;
    margin-top: 12px;
    overflow: hidden;
}

.pedagogie-header {
    padding: 13px;
    background: #f5f7fb;
}

.pedagogie-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 15px;
}

.pedagogie-content {
    padding: 13px;
    border-top: 1px solid #dfe4ec;
}

.pedagogie-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #5d6875;
    margin-bottom: 12px;
}

.pedagogie-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.pedagogie-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid #e2e5e9;
    border-radius: 5px;
    padding: 9px;
    background: white;
}

    .pedagogie-item b {
        display: block;
        font-size: 12px;
    }

    .pedagogie-item small {
        display: block;
        color: #6c757d;
        font-size: 10px;
        margin-top: 2px;
    }

.pedagogie-exclusion {
    border-style: dashed;
}


/* =========================================================
   RÉSUMÉ
========================================================= */

.summary {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.pedagogie-summary {
    font-weight: 600;
}


/* =========================================================
   RÉSULTATS
========================================================= */

.result-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.result-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: 29px;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-label {
    flex: 1;
    min-width: 0;
    line-height: 18px;
}

.result-line .rz-badge {
    flex-shrink: 0;
    white-space: nowrap;
}

.result-pedagogie-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    padding: 8px 0 5px 0;
    border-bottom: 1px solid #dfe4ec;
    font-weight: 600;
}

.result-pedagogique {
    padding-left: 18px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 600px) {

    .pedagogie-grid {
        grid-template-columns: 1fr;
    }

    .option-action {
        padding-left: 0;
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================================
   STYLE PAGE REINSCRIPTION
========================================================= */


.page-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.info-text {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 10px;
    padding: 8px;
    font-size: 12px;
    line-height: 1.4;
    background: #f5f5f5;
    border-radius: 4px;
}

.stat-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 13px;
}



.page-container {
    padding: 12px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

    .page-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 7px;
    }

.page-subtitle {
    color: #777;
    font-size: 12px;
    margin-top: 3px;
}

.filter-card {
    padding: 12px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1.3fr 1.5fr;
    gap: 12px;
    align-items: end;
}

.field {
    min-width: 0;
}

.field-wide {
    min-width: 0;
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-card {
    margin-top: 10px;
    padding: 10px 12px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.info-label {
    display: block;
    font-size: 11px;
    color: #777;
    margin-bottom: 2px;
}

.info-grid strong {
    font-size: 13px;
}

.loading-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px;
    justify-content: center;
}

.ready-card {
    margin-top: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .ready-card strong {
        font-size: 13px;
    }

    .ready-card div div {
        font-size: 12px;
        color: #666;
        margin-top: 2px;
    }

@media (max-width: 1000px) {
    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.notes-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 0;
}

.notes-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notes-header-action {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
}

/* ===== Résumé des bulletins Essai Blanc ===== */

.resume-page .resume-header {
    margin-bottom: 12px;
}

.resume-page .resume-title {
    font-size: 18px;
    font-weight: 700;
}

.resume-page .resume-subtitle {
    font-size: 14px;
    font-weight: 600;
}

.resume-page .resume-identification {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
}

.resume-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.resume-page .stat-box {
    border: 1px solid #999;
    padding: 6px;
    text-align: center;
}

.resume-page .stat-label {
    font-size: 11px;
    color: #555;
}

.resume-page .stat-value {
    font-size: 16px;
    font-weight: 700;
}

.resume-page .table-wrapper {
    overflow-x: auto;
}

.resume-page .resume-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

    .resume-page .resume-table th,
    .resume-page .resume-table td {
        border: 1px solid #000;
        padding: 3px 5px;
        text-align: center;
    }

    .resume-page .resume-table th {
        background: #f0f0f0;
    }

    .resume-page .resume-table .nom-cell {
        text-align: left;
        white-space: nowrap;
    }

    .resume-page .resume-table .note-faible {
        color: #c00000;
    }

    .resume-page .resume-table .moyenne-cell {
        font-weight: 700;
    }

    .resume-page .resume-table .total-row td {
        font-weight: 700;
        background: #f0f0f0;
    }

.resume-page .statistiques-matieres {
    margin-top: 16px;
}

.resume-page .statistiques-titre {
    font-weight: 600;
    margin-bottom: 4px;
}

.resume-page .directeur-signature {
    text-align: right;
    margin: 30px 60px 0 0;
}

/* ===== Impression ===== */

@page {
    size: A4 landscape;
    margin: 10mm;
}

@media print {
    .no-print {
        display: none !important;
    }

    .resume-page .resume-table {
        font-size: 10px;
    }
}


/* ===== Dashboard iSchool ===== */
.dashboard-container {
    padding: 16px;
    color: var(--rz-text-color, #263238);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

    .dashboard-header h2 {
        margin: 0 0 5px;
        font-size: 23px;
        font-weight: 650;
    }

    .dashboard-header p {
        margin: 0;
        color: #718096;
        font-size: 13px;
    }

.dashboard-context {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
}

    .dashboard-context > div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

.context-label {
    color: #718096;
    font-size: 11px;
}

.dashboard-context strong {
    font-size: 13px;
}

.dashboard-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

    .dashboard-section-title h3,
    .dashboard-panel h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

    .dashboard-section-title span {
        color: #718096;
        font-size: 12px;
    }

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.dashboard-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
}

.dashboard-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    height: 42px;
    border-radius: 6px;
    font-size: 21px;
}

.icon-eleves {
    background: #e8f2ff;
    color: #2563a6;
}

.icon-classes {
    background: #e7f7ef;
    color: #238353;
}

.icon-bulletins {
    background: #fff3df;
    color: #a96500;
}

.icon-essais {
    background: #f0eaff;
    color: #7044b5;
}

.dashboard-card-title {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
}

.dashboard-card strong {
    display: block;
    font-size: 23px;
    line-height: 1.2;
}

.dashboard-card small {
    display: block;
    margin-top: 4px;
    color: #718096;
    font-size: 11px;
}

.dashboard-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dashboard-panel {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
}

    .dashboard-panel p {
        margin: 12px 0 0;
        color: #64748b;
        font-size: 13px;
        line-height: 1.6;
    }

.dashboard-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

    .dashboard-links button {
        padding: 8px 12px;
        border: 1px solid #d5deea;
        border-radius: 4px;
        background: #fff;
        color: #334155;
        font-size: 12px;
        cursor: pointer;
    }

        .dashboard-links button:hover {
            background: #f1f5f9;
        }

.dashboard-panel small {
    display: block;
    margin-top: 12px;
    color: #718096;
    font-size: 11px;
}

.dashboard-message {
    padding: 24px;
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 1000px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .dashboard-cards,
    .dashboard-bottom {
        grid-template-columns: 1fr;
    }

    .dashboard-context {
        width: 100%;
    }
}


/* Tableau de bord iSchool */
.dashboard-container {
    padding: 16px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

    .dashboard-header h2 {
        margin: 0 0 6px;
        font-size: 23px;
        font-weight: 600;
    }

    .dashboard-header p {
        margin: 0;
        color: #718096;
        font-size: 13px;
    }

.dashboard-context {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: var(--rz-base-background-color, #fff);
}

    .dashboard-context div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .dashboard-context span {
        color: #718096;
        font-size: 11px;
    }

    .dashboard-context strong {
        font-size: 13px;
    }

.dashboard-section-title {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.dashboard-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: var(--rz-base-background-color, #fff);
}

.dashboard-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: #edf3ff;
    font-size: 21px;
}

.dashboard-card span,
.dashboard-card small {
    display: block;
    color: #718096;
    font-size: 12px;
}

.dashboard-card strong {
    display: block;
    margin: 4px 0;
    font-size: 23px;
}

.dashboard-card small {
    font-size: 11px;
}

.dashboard-panel {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: var(--rz-base-background-color, #fff);
}

    .dashboard-panel h4 {
        margin: 0 0 10px;
        font-size: 16px;
    }

    .dashboard-panel p {
        margin: 0;
        color: #718096;
        font-size: 13px;
    }

@media (max-width: 1000px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-context {
        width: 100%;
    }
}

/* Carte effectif inscrit : largeur réduite */
.dashboard-card-effectif {
    width: 100%;
    max-width: 260px;
    min-width: 0;
    height: auto;
    justify-self: start;
    box-sizing: border-box;

}
.dashboard-card-effectif {
    padding: 10px 12px;
    gap: 8px;
}

/* Carte de l'effectif inscrit actif */
.dashboard-card-effectif {
    width: 100%;
    max-width: 260px;
    min-width: 0;
    height: auto;
    justify-self: start;
    box-sizing: border-box;
}

/* Carte de l'effectif inactif */
.dashboard-card-inactif {
    width: 100%;
    max-width: 260px;
    min-width: 0;
    height: auto;
    justify-self: start;
    box-sizing: border-box;
}
/* Conteneur des cartes du Dashboard */
.dashboard-indicateurs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 260px));
    gap: 12px;
    align-items: stretch;
    justify-content: start;
    margin-bottom: 20px;
}

/* Carte effectif inscrit */
.dashboard-card-effectif,
.dashboard-card-inactif {
    width: 100%;
    max-width: 260px;
    min-width: 0;
    height: auto;
    box-sizing: border-box;
    align-self: start;
}

/* Affichage mobile : une carte par ligne */
@media (max-width: 600px) {
    .dashboard-indicateurs {
        grid-template-columns: minmax(0, 260px);
    }
}
/* Conteneur des indicateurs */
.dashboard-indicateurs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 260px));
    gap: 12px;
    align-items: stretch;
    justify-content: start;
    margin-bottom: 20px;
}

/* Cartes du Dashboard */
.dashboard-card-effectif,
.dashboard-card-inactif,
.dashboard-card-classes {
    width: 100%;
    max-width: 260px;
    min-width: 0;
    height: auto;
    box-sizing: border-box;
    align-self: start;
}

/* Téléphones : une carte par ligne */
@media (max-width: 600px) {
    .dashboard-indicateurs {
        grid-template-columns: minmax(0, 260px);
    }
}

/* Écrans intermédiaires : deux cartes par ligne */
@media (min-width: 601px) and (max-width: 900px) {
    .dashboard-indicateurs {
        grid-template-columns: repeat(2, minmax(0, 260px));
    }
}

/* =====================================================
   BILAN ÉCOLAGE : CORRECTION DU DÉBORDEMENT DES CARTES
   ===================================================== */
.bilan-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Empêche les lignes flexibles de dépasser la carte */
.bilan-card .d-flex {
    min-width: 0;
    max-width: 100%;
    gap: 8px;
}

    /* Les libellés peuvent se réduire si nécessaire */
    .bilan-card .d-flex > span,
    .bilan-card .d-flex > h6 {
        min-width: 0;
        overflow-wrap: anywhere;
    }

/* Les montants restent dans les limites de la carte */
.bilan-card strong,
.bilan-card .badge {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: right;
}

/* Les titres longs peuvent revenir à la ligne */
.bilan-card h6 {
    overflow-wrap: anywhere;
}

/* Les montants restent lisibles sur écran étroit */
@media (max-width: 576px) {
    .bilan-card {
        height: auto;
    }

        .bilan-card .d-flex {
            flex-wrap: wrap;
        }
}


/* Cartes du bilan : isoler la mise en page des styles globaux */
.dashboard-card.bilan-card {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 170px;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
}

.bilan-card .bilan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

    .bilan-card .bilan-card-header h6 {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .bilan-card .bilan-card-header .badge {
        flex: 0 0 auto;
        white-space: nowrap;
    }

.bilan-card .bilan-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    width: 100%;
    margin-bottom: 10px;
}

    .bilan-card .bilan-line > span {
        min-width: 0;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .bilan-card .bilan-line .bilan-value {
        display: block;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        text-align: right;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
        font-variant-numeric: tabular-nums;
    }

.bilan-card hr {
    margin: 12px 0;
}

@media (max-width: 767px) {
    .dashboard-card.bilan-card {
        min-height: auto;
    }
}
/* ===== Tableau de bord : titres de section ===== */

.fin-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 22px 0 10px;
}

/* ===== Grille automatique : s'adapte au nombre de cartes ===== */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

/* ===== Carte compacte ===== */

.kpi-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.kpi-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .kpi-icon .rzi {
        font-size: 20px;
    }

.kpi-primary {
    background: #e7f0ff;
    color: #0d6efd;
}

.kpi-info {
    background: #e0f7fc;
    color: #0a8ea8;
}

.kpi-success {
    background: #e6f4ec;
    color: #198754;
}

.kpi-danger {
    background: #fde8ea;
    color: #dc3545;
}

.kpi-warning {
    background: #fff4d6;
    color: #b58100;
}

.kpi-neutral {
    background: #f1f5f9;
    color: #475569;
}

.kpi-body {
    min-width: 0;
    flex: 1 1 auto;
}

.kpi-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-value {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.kpi-unit {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 3px;
}

.kpi-sub {
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chargement : barre grise animée */
.kpi-skeleton {
    height: 20px;
    width: 70%;
    border-radius: 5px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
    background-size: 400% 100%;
    animation: kpi-shimmer 1.4s ease infinite;
}

@keyframes kpi-shimmer {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kpi-skeleton {
        animation: none;
    }
}

/* ===== Taux de recouvrement (version compacte) ===== */

.fin-recouvrement {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.fin-rec-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.fin-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.fin-rec-value {
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fin-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.fin-rec-legend {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: #475569;
}

    .fin-rec-legend strong {
        color: #0f172a;
        font-variant-numeric: tabular-nums;
    }

    .fin-rec-legend .dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        margin-right: 6px;
    }
.login-logo-img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}