/* =========================================================
   EDULYNK - DESIGN SYSTEM
   LISTES / GRILLES / TABLEAUX
   ========================================================= */


/* =========================================================
   ENTETE DE PAGE DE LISTE
   ========================================================= */

.content .page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}


.content .page-label {
    margin-bottom: 8px;
    color: #8592a6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.35px;
}


.content .page-header h1 {
    margin: 0;
    color: #182438;
    font-size: 36px;
    font-weight: 750;
    letter-spacing: -.5px;
}


.content .page-header p {
    margin: 8px 0 0;
    color: #8490a3;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   CARTES STATISTIQUES
   ========================================================= */

.content .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}


.content .stat-card {
    min-height: 104px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 21px;
    box-sizing: border-box;
    border: 1px solid #e4e9f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 9px rgba(32, 43, 61, .025);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}


    .content .stat-card:hover {
        transform: translateY(-1px);
        border-color: #dce3ec;
        box-shadow: 0 7px 20px rgba(32, 43, 61, .055);
    }


/* =========================================================
   ICONE STATISTIQUE
   ========================================================= */

.content .stat-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #edf5ff;
    color: #397fd0;
    font-size: 18px;
}


.content .stat-icon-success {
    background: #e9f7ef;
    color: #268c52;
}


.content .stat-icon-warning {
    background: #fff3df;
    color: #dd8416;
}


.content .stat-icon-danger {
    background: #fff0f1;
    color: #d6535c;
}


.content .stat-icon-neutral {
    background: #f2f4f7;
    color: #778293;
}


/* =========================================================
   TEXTE STATISTIQUES
   ========================================================= */

.content .stat-label {
    margin-bottom: 3px;
    color: #8b97a9;
    font-size: 11px;
}


.content .stat-value {
    color: #182438;
    font-size: 25px;
    font-weight: 750;
    line-height: 1.15;
}


.content .stat-value-small {
    font-size: 17px;
}


/* =========================================================
   CARTE PRINCIPALE
   ========================================================= */

.content .content-card {
    overflow: hidden;
    border: 1px solid #e3e8ef;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 2px 11px rgba(31, 45, 68, .025);
}


.content .grid-card {
    padding: 0;
}


/* =========================================================
   TOOLBAR LISTE
   ========================================================= */

.content .grid-toolbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 22px;
    border-bottom: 1px solid #edf0f4;
    background: linear-gradient( 180deg, #ffffff 0%, #fcfdff 100% );
}


.content .grid-title {
    color: #253348;
    font-size: 14px;
    font-weight: 700;
}


.content .grid-subtitle {
    margin-top: 3px;
    color: #96a0af;
    font-size: 10px;
}


/* =========================================================
   CODE / IDENTIFIANT
   ========================================================= */

.content .code-badge {
    min-width: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    box-sizing: border-box;
    border-radius: 7px;
    background: #edf5ff;
    color: #3977c3;
    font-size: 10px;
    font-weight: 750;
}


/* =========================================================
   STATUT
   ========================================================= */

.content .status-badge {
    min-width: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    box-sizing: border-box;
    border-radius: 20px;
    font-size: 9.5px;
    font-weight: 700;
    white-space: nowrap;
}


.content .status-dot {
    width: 6px;
    height: 6px;
    display: block;
    flex-shrink: 0;
    border-radius: 50%;
    background: currentColor;
}


.content .status-active {
    background: #e9f7ef;
    color: #268c52;
}


.content .status-inactive {
    background: #f1f3f6;
    color: #818b99;
}


.content .status-warning {
    background: #fff3df;
    color: #d88418;
}


.content .status-danger {
    background: #fff0f1;
    color: #d34e59;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.content .action-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.content .empty-state {
    padding: 58px 30px;
    text-align: center;
}


.content .empty-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #edf5ff;
    color: #397fd0;
    font-size: 20px;
}


.content .empty-state h3 {
    margin: 0 0 8px;
    color: #202c3d;
    font-size: 15px;
}


.content .empty-state p {
    margin: 0;
    color: #8995a8;
    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   DEVEXPRESS GRID
   ========================================================= */

.content .dxbl-grid {
    border: 0 !important;
    background: #ffffff !important;
}


/* =========================================================
   ZONE RECHERCHE
   ========================================================= */

.content .dxbl-grid-search-box {
    width: 290px;
    margin: 16px 20px 16px auto;
    border-radius: 10px !important;
}


/* =========================================================
   ENTETE GRID
   ========================================================= */

.content .dxbl-grid thead {
    background: #f8fafc;
}


.content .dxbl-grid th {
    height: 48px;
    padding-left: 12px !important;
    padding-right: 12px !important;
    border-top-color: #edf0f4 !important;
    border-bottom-color: #edf0f4 !important;
    border-left-color: transparent !important;
    border-right-color: transparent !important;
    background: #f8fafc !important;
    color: #657286;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15px;
    vertical-align: middle;
}


/* =========================================================
   CELLULES GRID
   ========================================================= */

.content .dxbl-grid td {
    min-height: 60px;
    padding-left: 12px !important;
    padding-right: 12px !important;
    border-top-color: #edf0f4 !important;
    border-bottom-color: #edf0f4 !important;
    border-left-color: transparent !important;
    border-right-color: transparent !important;
    background: #ffffff;
    color: #435064;
    font-size: 11px;
    vertical-align: middle;
}


/* =========================================================
   LIGNES
   ========================================================= */

.content .dxbl-grid tbody tr {
    transition: background .12s ease;
}


    .content .dxbl-grid tbody tr:hover td {
        background: #f9fbfe !important;
    }


    /* =========================================================
   SELECTION
   ========================================================= */

    .content .dxbl-grid tbody tr.dxbl-grid-selected-row td {
        background: #f3f8ff !important;
    }


/* =========================================================
   PAGER
   ========================================================= */

.content .dxbl-grid .dxbl-pager {
    min-height: 54px;
    padding: 10px 18px;
    border-top: 1px solid #edf0f4;
    background: #ffffff;
}


/* =========================================================
   BOUTONS DEVEXPRESS DANS LES GRILLES
   ========================================================= */

.content .dxbl-grid .dxbl-btn {
    border-radius: 8px;
}


/* =========================================================
   PETITS ELEMENTS NUMERIQUES
   ========================================================= */

.content .order-value {
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    box-sizing: border-box;
    border-radius: 8px;
    background: #f5f7fa;
    color: #566376;
    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   CELLULE NOM GENERIQUE
   ========================================================= */

.content .entity-cell {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}


.content .entity-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf5ff;
    color: #3d80cf;
    font-size: 15px;
}


.content .entity-info {
    min-width: 0;
}


.content .entity-name {
    color: #263548;
    font-size: 12px;
    font-weight: 700;
}


.content .entity-description {
    max-width: 420px;
    margin-top: 3px;
    overflow: hidden;
    color: #929dac;
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

    .content .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 700px) {

    .content .page-header {
        flex-direction: column;
        align-items: flex-start;
    }


    .content .stats-grid {
        grid-template-columns: 1fr;
    }


    .content .grid-toolbar {
        min-height: 68px;
        padding: 0 17px;
    }


    .content .dxbl-grid-search-box {
        width: calc(100% - 32px);
        margin: 14px 16px;
    }


    .content .entity-description {
        max-width: 180px;
    }
}
/* =========================================================
   EDULYNK
   FORMULAIRES GLOBAUX - VERSION DEFINITIVE
   ========================================================= */


/* =========================================================
   CARTE FORMULAIRE
   ========================================================= */

.form-card {
    width: 100%;
    max-width: 1080px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 16px;
    box-shadow: 0 3px 14px rgba(31, 45, 68, .035);
}


/* =========================================================
   ENTETE FORMULAIRE
   ========================================================= */

.form-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 23px 27px;
    border-bottom: 1px solid #edf0f4;
    background: linear-gradient( 180deg, #ffffff 0%, #fbfcfe 100% );
}


.form-section-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #edf5ff;
    color: #397fd0;
    font-size: 18px;
}


.form-section-title {
    color: #1d2939;
    font-size: 17px;
    font-weight: 700;
}


.form-section-description {
    margin-top: 3px;
    color: #8a96a8;
    font-size: 12px;
}


/* =========================================================
   CORPS FORMULAIRE
   ========================================================= */

.form-body {
    padding: 28px;
}


/* =========================================================
   TITRES DE SECTIONS
   ========================================================= */

.section-title {
    margin-bottom: 18px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .15px;
}


.section-divider {
    margin: 30px 0;
    border-top: 1px solid #edf0f4;
}


/* =========================================================
   GRILLE FORMULAIRE
   ========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
}


/* =========================================================
   GROUPES
   ========================================================= */

.form-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


    .form-group > label {
        color: #344054;
        font-size: 12px;
        font-weight: 650;
    }


.required-star {
    margin-left: 2px;
    color: #e2505b;
}


/* =========================================================
   INPUT / SELECT / TEXTAREA
   ========================================================= */

input.form-control,
select.form-control,
textarea.form-control {
    width: 100%;
    box-sizing: border-box;
    outline: none;
    border: 1px solid #dce3ec;
    border-radius: 11px;
    background: #fbfcfe;
    color: #27364a;
    font-family: inherit;
    font-size: 13px;
    font-weight: 450;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}


/* TEXT */

input.form-control {
    height: 46px;
    padding: 0 14px;
}


/* SELECT */

select.form-control {
    height: 46px;
    padding: 0 40px 0 14px;
    cursor: pointer;
}


/* TEXTAREA */

textarea.form-control {
    min-height: 115px;
    padding: 13px 14px;
    line-height: 1.5;
    resize: vertical;
}


/* =========================================================
   PLACEHOLDERS
   ========================================================= */

.form-control::placeholder {
    color: #a1adbd;
    opacity: 1;
}


/* =========================================================
   HOVER
   ========================================================= */

input.form-control:hover,
select.form-control:hover,
textarea.form-control:hover {
    border-color: #c9d4e1;
    background: #ffffff;
}


/* =========================================================
   FOCUS
   ========================================================= */

input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    border-color: #6fa4e4;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(62, 141, 245, .10);
}


/* =========================================================
   INVALID
   ========================================================= */

input.form-control.invalid,
select.form-control.invalid,
textarea.form-control.invalid {
    border-color: #e48b92;
    background: #fffafb;
}


/* =========================================================
   DISABLED
   ========================================================= */

.form-control:disabled {
    background: #f2f4f7;
    color: #98a2b3;
    cursor: not-allowed;
}


/* =========================================================
   AIDE
   ========================================================= */

.field-hint {
    margin-top: 1px;
    color: #98a2b3;
    font-size: 10.5px;
    line-height: 1.4;
}


/* =========================================================
   VALIDATION
   ========================================================= */

.validation-message {
    margin-top: 1px;
    color: #d44550;
    font-size: 10.5px;
}


/* =========================================================
   ETABLISSEMENT
   ========================================================= */

.school-context {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 17px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
}


.school-context-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eaf3ff;
    color: #347bc9;
    font-size: 13px;
    font-weight: 750;
}


.school-context-name {
    color: #29374a;
    font-size: 13px;
    font-weight: 700;
}


.school-context-code {
    margin-top: 2px;
    color: #919dad;
    font-size: 10px;
}


/* =========================================================
   CHAMP PLEINE LARGEUR
   ========================================================= */

.full-width-field {
    margin-top: 22px;
}


/* =========================================================
   INFORMATION
   ========================================================= */

.information-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px 18px;
    border: 1px solid #dde7f3;
    border-radius: 11px;
    background: #f7faff;
}


.information-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e9f3ff;
    color: #397fd0;
    font-size: 16px;
}


.information-title {
    color: #2d4058;
    font-size: 12px;
    font-weight: 700;
}


.information-description {
    max-width: 650px;
    margin-top: 4px;
    color: #8290a4;
    font-size: 10.5px;
    line-height: 1.5;
}


/* =========================================================
   STATUT
   ========================================================= */

.status-card {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid #e3e8ef;
    border-radius: 11px;
    background: #f8fafc;
}


.status-title {
    color: #29374a;
    font-size: 13px;
    font-weight: 700;
}


.status-description {
    margin-top: 4px;
    max-width: 620px;
    color: #909bad;
    font-size: 11px;
    line-height: 1.45;
}


.status-checkbox {
    width: 19px;
    height: 19px;
    accent-color: #397fd0;
    cursor: pointer;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.form-actions {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid #edf0f4;
}


/* =========================================================
   BOUTON ENREGISTRER
   ========================================================= */

.save-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border: 0;
    border-radius: 9px;
    background: #347fcf;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(52, 127, 207, .15);
    transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
}


    .save-button:hover:not(:disabled) {
        background: #2f72ba;
        box-shadow: 0 6px 14px rgba(52, 127, 207, .20);
    }


    .save-button:active:not(:disabled) {
        transform: translateY(1px);
    }


    .save-button:disabled {
        opacity: .55;
        cursor: default;
        box-shadow: none;
    }


/* =========================================================
   ERREURS
   ========================================================= */

.alert-error {
    margin-bottom: 22px;
    padding: 13px 16px;
    border: 1px solid #f3d2d5;
    border-radius: 10px;
    background: #fff5f6;
    color: #b63d47;
    font-size: 11.5px;
    line-height: 1.5;
}


.message-container {
    padding: 28px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .form-grid {
        grid-template-columns: 1fr;
    }


    .form-body {
        padding: 20px;
    }


    .form-section-header {
        padding: 20px;
    }


    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }


    .save-button {
        width: 100%;
    }


    .status-card {
        align-items: flex-start;
    }


    .information-card {
        padding: 15px;
    }
}