﻿/* =======================================================
   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-x: hidden;
    overflow-y: 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;
    position: relative;
}



/* =======================================================
   TOP ROW - GROUPE SECONDAIRE (responsive)
======================================================= */

/* Bouton kebab : caché par défaut (desktop) */
.top-row-kebab {
    display: none;
}

/* Overlay pour fermer au clic en dehors (mobile) */
.top-row-overlay {
    display: none;
}

/* ===================== DESKTOP ===================== */
@media (min-width: 769px) {
    .top-row-extra {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: auto;
    }
}

/* ===================== MOBILE ===================== */
@media (max-width: 768px) {

    .top-row {
        white-space: normal;
        overflow: visible;
    }

    .top-row-kebab {
        display: inline-block;
        margin-left: auto;
    }

    .top-row-extra {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        position: absolute;
        top: 55px;
        left: 0;
        right: 0;
        background: var(--app-surface, white);
        border-bottom: 1px solid var(--app-border, #ddd);
        box-shadow: 0 8px 16px rgba(0,0,0,.15);
        padding: 12px 16px;
        z-index: 1060;
    }

        .top-row-extra.show {
            display: flex;
        }

    .top-row-item {
        width: 100%;
    }

    .top-row-overlay {
        display: block;
        position: fixed;
        inset: 0;
        top: 55px;
        background: rgba(0,0,0,.25);
        z-index: 1055;
    }
}



/* =======================================================
   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: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    font-size: 30px;
    margin-bottom: 15px;
}


.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;
        }

/* =========================================================
   ECRAN DE VERROUILLAGE - CENTRAGE FORCÉ (priorité absolue)
========================================================= */

div.ischool-lock-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important; /* fallback */
    height: 100dvh !important; /* hauteur réelle visible sur mobile */
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.55) !important;
    z-index: 99999 !important;
    overflow-y: auto !important;
    padding: 20px !important;
    padding-top: calc(20px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
}

    div.ischool-lock-overlay div.ischool-lock-card {
        width: 100% !important;
        max-width: 400px !important;
        margin: auto !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        background: var(--app-surface, white) !important;
        color: var(--app-text, #212529) !important;
        border-radius: 12px !important;
        padding: 30px !important;
        box-shadow: 0 15px 40px rgba(0,0,0,.25) !important;
        box-sizing: border-box !important;
    }
/* =========================================================
   FIX DEBORDEMENT HORIZONTAL - PAGE PAIEMENT
========================================================= */

.paiement-page .col-lg-7,
.paiement-page .col-lg-5 {
    min-width: 0;
}

.paiement-page .rz-card,
.paiement-page .grid-container,
.paiement-page .history-container {
    min-width: 0;
}

@media (max-width: 768px) {

    .grid-summary {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px 15px;
    }

        .grid-summary > div {
            white-space: normal;
            flex: 0 0 auto;
        }
}
