﻿/* =========================================================
   BASE APP
   ========================================================= */

html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}

/* =========================================================
   HEADER / LOGO
   ========================================================= */

.header-logo {
    flex-shrink: 0;
    background-image: url(../images/educatedlogo.svg);
    background-repeat: no-repeat;
    background-position: center left;
    background-size: contain;
    width: 160px;
    height: 32px;
    margin-left: 2px;
}

.header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    z-index: 1030;
    min-height: 3.1rem;
    margin: 10px;
    word-wrap: inherit;
}
/* =========================================================
   BLAZOR ERROR UI
   ========================================================= */

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}
/* =========================================================
   INTER – VARIABLE FONT (LOCAL)
   ========================================================= */

@font-face {
    font-family: 'Inter';
    src: url('fonts/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/InterVariable-Italic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
/* =========================================================
   VARIABLES ERP
   ========================================================= */

:root {
    --erp-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --dxds-neutral-20: rgba(248, 248, 248, 1);
    --dxds-primary-90: var(--dxbl-accent-color-90, #5351FB);
}

.dxbl-text {
    --dxbl-text-font-family: var(--erp-font-family);
}

.dxbl-text-edit {
    --dxbl-text-edit-font-size: var(--dxbl-text-edit-font-size-m);
    --dxbl-text-edit-font-family: var(--erp-font-family);
}

.dxbl-context-menu, .dxbl-context-menu-submenu {
    --dxbl-context-menu-font-family: var(--erp-font-family);
}
/* =========================================================
   BASE TYPOGRAPHIE
   ========================================================= */

html,
body {
    font-family: var(--erp-font-family);
    font-size: 14px; /* Taille globale ERP */
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
    body.dx-theme-fluent-light {
        --dxds-color-surface-neutral-subdued-rest: #F5F7FF; /* ton bleu très clair */
    }
/* =========================================================
   XAF / DEVEXPRESS – RACINE
   ========================================================= */

.dxbl-root,
.dxbl-theme-fluent,
.dxbl-theme-fluent-dark {
    font-family: var(--erp-font-family) !important;
}
:root {
    --educ-surface-neutral: #F5F7FF; /* fallback */
}
.dxbl-theme-fluent-mode-light {
    --educ-surface-neutral: #F5F7FF;
}

.dxbl-theme-fluent-mode-dark {
    --educ-surface-neutral: #1E1F25;
}/* =========================================================
   RIBBON
   ========================================================= */

    .dxbl-ribbon, .dxbl-ribbon * {
        font-family: var(--erp-font-family) !important;
        font-size: 13.5px;
    }
    /* =========================================================
   NAVIGATION
   ========================================================= */
    .xaf-nav-menu, .dxbl-accordion, .dxbl-accordion *, .dxbl-treeview, .dxbl-treeview * {
    font-family: var(--erp-font-family) !important;
    font-size: 13.5px;
}
    /* =========================================================
   TABS (VIEWS / DOCUMENTS / LAYOUT)
   ========================================================= */
    .dxbl-tabs, .dxbl-tabs *, .dxbl-tab, .dxbl-tab *, .xaf-layout-tabs, .xaf-layout-tabs * {
    font-family: var(--erp-font-family) !important;
    font-size: 13.5px;
    font-weight: 500;
} .dxbl-tab-text, .dxbl-tab-caption {
    font-weight: 500;
}
    /* =========================================================
   GRIDS
   ========================================================= */
    .dxbl-grid, .dxbl-grid *, .dxbl-grid-cell {
    font-family: var(--erp-font-family) !important;
    font-size: 13px; /* Plus dense */
} .dxbl-grid-cell {
    padding-top: 6px;
    padding-bottom: 6px;
}
    /* =========================================================
   TOOLBARS / ACTIONS
   ========================================================= */
    .dxbl-toolbar, .dxbl-toolbar * {
    font-family: var(--erp-font-family) !important;
    font-size: 13.5px;
} .dxbl-toolbar-item-text {
    font-weight: 500;
}
    /* =========================================================
   FORMS / EDITORS
   ========================================================= */
    .dxbl-form, .dxbl-form *, .dxbl-editors, .dxbl-editor, .dxbl-input, .dxbl-textbox, .dxbl-dropdown, .dxbl-combobox, .dxbl-date-edit {
    font-family: var(--erp-font-family) !important;
    font-size: 14px;
} .dxbl-form-layout-item {
    margin-bottom: 8px;
}
    /* =========================================================
   POPUPS / DIALOGS
   ========================================================= */
    /*.dxbl-popup,
.dxbl-popup * {
    font-family: var(--erp-font-family) !important;
    font-size: 14px;
}*/
    /* =========================================================
   TYPOGRAPHIE – POIDS
   ========================================================= */
    .xaf-caption, .dxbl-caption {
    font-weight: 500;
} .dxbl-button {
    font-weight: 500;
} .dxbl-hint, .dxbl-placeholder {
    font-weight: 400;
    opacity: 0.85;
} .dx-tile-content {
    width: 100%;
    padding-right: 3px;
    padding-left: 3px;
    padding-bottom: 5px;
    height: 100%;
    border-radius: 0.5rem;
} .contentKpi {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--dxds-color-surface-neutral-default-rest);
    width: 100%;
    white-space: initial;
    border: 1px solid var(--dxds-color-border-neutral-default-rest);
    border-radius: 12px;
} .kpi_caption {
    font-family: 'Inter';
    font-weight: 600;
    color: #717171;
    width: 100%;
    height: 50%;
    font-size: 13px;
    padding-left: 6px;
    top: 6px;
    display: flex;
    position: relative;
    align-items: center;
} .kpi_infocaption {
    /* display: flex; */
    padding-left: 13px;
    width: 100%;
    height: 100%;
} .kpi_image {
    /* margin-left: 5px; */
    /* margin-top: 5px; */
    width: 25%;
    /* display: flex; */
    height: 100%;
    /* bottom: -10px; */
} .kpi_infos {
    width: 100%;
    display: flex;
    /* flex-direction: column; */
    /* position: relative; */
    /* top: 10px; */
    height: 100%;
    /* display: flex; */
} .kpi_icon {
    /* background: #F6F8FA; */
    /* border-radius: 50%; */
    /* padding: 6px; */
    /* margin: 0px; */
    /* width: 100%; */
    /* position: absolute; */
    position: absolute;
    top: 50%;
    /* left: 50%; */
    transform: translate(-50%, -50%);
    top: 50%;
    left: 30px;
    /* transform: translate(-50%, -50%); */
    /* height: 36px; */
} .kpi_counter {
    padding: 6px;
    font-weight: 600;
    font-family: 'Inter';
    width: 100%;
    color: var(--dxds-color-content-neutral-default-rest);
    display: flex;
    align-items: center;
    padding-top: 0px;
    font-size: 14px;
} .kpi_counter:empty {
        display: none;
    } .kpi_infocaption:has(> .kpi_counter:empty) {
    justify-content: center;
    align-items: center;
} .kpi_infocaption:has(> .kpi_counter:empty) .kpi_counter {
        display: none;
    } .kpi_infocaption:has(> .kpi_counter:empty) .kpi_caption {
        height: 100%;
        top: 0px;
    } .contentGallery {
    /* margin-top: 12px; */
    height: 80px;
    display: flex;
    /* flex-direction: column; */
    position: relative;
    background: var(--dxds-color-surface-neutral-default-rest);
    /* padding: 18px; */
    border-radius: 12px;
    border: 1px solid var(--dxds-color-border-neutral-default-rest);
    white-space: initial;
} .dx-gallery-item {
    display: inline-block;
    overflow: hidden;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(90deg, #5351FB, #0705B2); */
    text-align: left;
    color: white;
    /* border-radius: 0.75rem; */
    /* font-family: 'ClashDisplaySB'; */
} .dx-gallery-indicator-item-active, .dx-gallery-indicator-item-selected {
    width: 12px;
    height: 12px;
    background: #FFA800;
    border: 2px solid rgba(255, 255, 255, .8);
    margin: -1px 6px;
} .dx-gallery-indicator {
    text-align: left;
} .gallery_infos {
    /* width: 63%; */
    order: 0;
    width: auto;
    flex: 0 0 auto;
    display: flex;
    top: 0%;
    bottom: 0%;
    /* display: flex; */
    padding-left: 10px;
    align-items: center;
    /* justify-content: flex-end; */
} .gallery_captionBefore {
    font-size: 24px;
    /* margin-top: 6px; */
    /* padding: 4px; */
    /* padding-left: 3px; */
    /* height: 60%; */
    margin-left: 4px;
    font-family: Inter;
    /* font-weight: 600; */
    top: 6px;
    color: var(--dxds-color-content-neutral-default-rest);
    /* background: #112A49; */
} .gallery_caption {
    font-size: 26px;
    padding: 4px;
    font-family: Inter;
    font-weight: 700;
    top: 6px;
    background: linear-gradient(59.02deg, #5351FB 35.5%, #5351FB 35.52%, #0705B3 161.42%), linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* color: rgb(21, 42, 72); */
} .dx-gallery-indicator {
    text-align: left;
} .galleryaction {
    order: 1;
    position: relative;
    /* bottom: 18px; */
    /* left: 400px; */
    width: 170px;
    height: 36px;
    /* border: none; */
    /* display: flex; */
    top: 50%;
    transform: translate(-00%, -50%);
    border-radius: 10px;
    /* margin-top: -89px; */
    /* display: inline-block; */
    background: linear-gradient(90deg, #FFA800 0%, #FF5D25 100%);
    /* background: #5351FB; */
} .gallery_counter-info {
    position: absolute;
    right: 18px;
    /* vertical-align: bottom; */
    height: 100%;
    display: flex;
    align-items: center;
    top: 0%;
    bottom: 0%;
    /* display: flex
; */
    /* align-items: center; */
    /* justify-content: flex-end; */
} .gallery_counter {
    font-size: 14px;
    color: var(--dxds-color-content-neutral-default-rest);
    padding-right: 6px;
    /* padding-top: 10px; */
    /* font-family: 'Poppins-regular'; */
    font-weight: 600;
    height: 100%;
    padding-left: 28px;
    top: 0%;
    bottom: 0%;
    display: flex;
    align-items: center;
    margin-left: auto;
    justify-content: end;
} .dx-button-mode-contained.dx-buttongroup-last-item.dx-button, .dx-button-mode-outlined.dx-buttongroup-last-item.dx-button {
    border-start-end-radius: 4px;
    border-end-end-radius: 4px;
    border: none;
} .dx-button-mode-contained.dx-buttongroup-first-item.dx-button, .dx-button-mode-outlined.dx-buttongroup-first-item.dx-button {
    border-start-start-radius: 4px;
    border-end-start-radius: 4px;
    border: none;
} .imagecounter {
    position: absolute;
    display: flex;
    padding-left: 5px;
    padding-right: 5px;
} .dx-button-has-text .dx-button-content, .dx-button-has-text .dx-button-content .dx-button-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Inter';
    font-size: 13px;
    /*color: white;*/
} .clickable-xaf-nav-item > a .xaf-nav-link, .clickable-xaf-nav-item > div > a .xaf-nav-link {
    text-decoration: unset;
} .dx-accordion-item {
    overflow: hidden;
    border: none;
    /* background: red; */
    background: var(--dxds-color-surface-neutral-subdued-rest);
    border: 1px solid transparent;
} .content {
    height: 100%;
    /* display: flex; */
    position: relative;
    border-radius: 0px;
    padding: 10px;
    /* height: 106px; */
    background: var(--dxds-color-surface-neutral-default-rest);
    border: 1px solid var(--dxds-color-border-neutral-default-rest);
    border-radius: 12px;
    width: 100%;
    white-space: initial;
} .dx-tile {
    position: absolute;
    color: #333;
    background-color: transparent;
    border: 1px solid rgba(221, 221, 221, .6);
    text-align: left;
    border: none;
} .caption {
    font-family: poppins-regular;
    font-weight: 600;
    /* color: black; */
    color: #979797;
    width: 100%;
    text-align: center;
    height: 68%;
    font-size: 13px;
    /* padding-left: 8px; */
    margin: -1px;
    margin-left: 0px;
    /* padding-right: 3px; */
    position: relative;
    /* top: 6px; */
} .counter {
    font-family: Inter;
    width: 100%;
    float: left;
    font-weight: 700;
    color: #5351FB;
    text-align: center;
    /* padding-left: 6px; */
    font-size: 14px;
} .dashboardviewcustom {
    background: var(--dxds-color-surface-neutral-subdued-rest) !important;
} .dx-accordion {
    /* background: #F8F8F8; */
    background-color: var(--dxds-color-surface-neutral-subdued-rest);
    color: #333;
} .dxbl-list-box, .dxbl-list-box-render-container {
    --dxbl-list-box-font-family-m: var(--erp-font-family);
} .dxbl-list-box, .dxbl-list-box-render-container {
    --dxbl-list-box-font-size: var(--dxbl-list-box-font-size-m);
    --dxbl-list-box-font-family: var(--erp-font-family);
} .dxbl-toolbar, .dxbl-toolbar * {
    font-family: var(--erp-font-family) !important;
    font-size: 13px;
    font-weight: 600 !important;
    /*color: #5351FB;*/
} .dxbl-accordion .dxbl-group.dxbl-accordion-group .dxbl-accordion-item:not(.dxbl-accordion-group).dxbl-active > .dxbl-accordion-item-content {
    --dxbl-accordion-group-item-color: #5351FB;
    font-weight: 700;
    --dxbl-accordion-group-item-bg: var(--dxbl-accordion-group-item-selected-bg);
}
    /*.dxbl-theme-fluent .main-ribbon-template.app .detail-view-content > .dxbl-fl:has(dxbl-form-layout-item:not(.dxbl-group *):not(.dxbl-fl-tab-content *)):not(:has(.xaf-single-layout-item)):not(:has(.dxbl-editor)) {
    background-color: #F8F8F8;
}*/
    .dx-dropdownbutton-toggle .dx-icon-spindown {
    width: 18px;
    height: 18px;
    font-family: 'DXIcons' !important;
    color: white;
} .dxbl-theme-fluent .main-ribbon-template.app .detail-view-content > .dxbl-fl:has(dxbl-form-layout-item:not(.dxbl-group *):not(.dxbl-fl-tab-content *)):not(:has(.xaf-single-layout-item)):has(.dashboardviewcustom) {
    background-color: transparent;
} .dx-tile.dx-state-hover, .dx-tile.dx-state-focused {
    background: transparent;
} .school-info {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    padding: 4px 10px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 10px;
    background: var(--dxds-color-surface-neutral-subdued-rest);
} .school-info:hover {
        background: #ECECFF;
    } .school_image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
} .SchoolName {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: #1f2937;
} .SchoolAdress {
    font-size: 11.5px;
    line-height: 1.1;
    margin: 0;
    opacity: .7;
} .action-header-button {
    width: 36px;
    height: 36px;
    /* margin: -5px; */
    /* border-radius: 0px !important; */
    border: none !important;
    /* border-top: 1px solid rgb(231, 231, 231) !important; */
    /* border-bottom: 1px solid rgb(231, 231, 231) !important; */
    /* background: white !important; */
    box-shadow: none !important;
    /* border-left: none; */
    /* border-right: none; */
    color: #5351FB;
    background: #F8F8F8;
    border-radius: 50%;
    opacity: 0.7;
} .account-button {
    padding: 0;
    color: #5351FB;
    background: #F8F8F8;
    border-radius: 50%;
    /*opacity: 0.7;*/
} .dxbl-btn {
    --dxbl-btn-font-family: var(--erp-font-family);
} .ActionLogOn {
    border-radius: 10px;
    font-size: 1.2rem;
    background: linear-gradient(59.02deg, #5351FB 35.5%, #5351FB 35.52%, #0705B3 161.42%), linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
    font-family: 'Poppins-SemiBold';
} .logon-viewsite label, .logon-viewsite .dxbl-fl:not(.dxbl-fl-calc) .dxbl-fl-item > .dxbl-fl-cpt {
    color: black;
    font-family: var(--erp-font-family);
    font-size: 13px;
    font-weight: 600;
} button[data-action-name="Account"] .xaf-image {
    /*  -webkit-mask: url('../images/Cmd_User.svg') no-repeat center !important;
    mask: */ url('../images/Cmd_User.svg') no-repeat center !important;
    -webkit-mask-size: 24px !important;
    mask-size: 24px !important;
    background-color: #596F86 !important;
} .dxbl-theme-fluent .app.main-ribbon-template .header button.theme-button .xaf-image {
    -webkit-mask: url('../images/Cmd_Setting.svg') no-repeat center !important;
    mask: url('../images/Cmd_Setting.svg') no-repeat center !important;
    background-color: #596F86 !important;
} .btn-header {
    /* min-width: 2.25rem; */
    /* min-height: 2.25rem; */
    height: 36px;
    width: 36px;
    border: none;
    background-color: #F8F8F8;
    background-image: none;
    color: inherit;
    border-radius: 10px;
    box-shadow: none;
} .action-header-button .xaf-toolbar-item-icon {
    max-width: unset;
    max-height: unset;
    width: 24px;
    height: 24px;
} .dxbl-theme-fluent.xaf-size-m .xaf-view-caption-sm, .dxbl-theme-fluent.xaf-size-l .xaf-view-caption-sm {
    font-size: 13px;
    line-height: var(--dxds-line-height-base-sm);
    font-weight: var(--dxds-font-weight-base-default);
} .loading-caption {
    font-family: var(--erp-font-family);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
} .galleryaction > * > * > * {
    color: white;
} .dx-blazor-reporting .dx-button-mode-text .dx-icon {
    color: #333;
    font-family: 'DXIcons' !important;
} .dx-blazor-reporting .dx-designer .dx-dropdowneditor .dx-dropdowneditor-icon {
    width: 100%;
    font-family: 'DXIcons' !important;
} .dx-blazor-reporting .dx-ltr.dxrd-designer-wrapper .dxrd-navigation-panel-wrapper .dx-tabs .dx-indent-wrapper .dx-tab .dx-tab-content .dx-icon, .dx-blazor-reporting .dx-ltr.dxrd-designer-wrapper .dxrd-navigation-panel-wrapper .dx-tabs .dx-tabs-wrapper .dx-tab .dx-tab-content .dx-icon {
    float: right;
    margin-left: 11px;
    margin-right: 4px;
    font-family: 'DXIcons' !important;
} .dxbl-progress-bar.dxbl-progress-bar-horizontal {
    --dxbl-progress-bar-track-height: var(--dxbl-progress-bar-thickness);
    --dxbl-progress-bar-track-width: 100%;
    /* --dxbl-progress-bar-indeterminate-animation: dxbl-progress-bar-indeterminate-horizontal var(--dxbl-progress-bar-indeterminate-animation-length) linear infinite; */
    --dxbl-progress-bar-indeterminate-transform-origin: 0 50%;
    width: 100%;
} .dashboardviewcustom {
    background: var(--dxds-color-surface-neutral-subdued-rest) !important;
    padding: 15px;
    padding-top: 5px;
} .contentKpi {
    transition: box-shadow .15s ease, transform .15s ease;
} .contentKpi:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
    } .kpi_caption {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--dxds-color-content-neutral-subdued);
} .kpi_counter {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .3px;
} .contentGallery {
    transition: box-shadow .15s ease;
} .contentGallery:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
    } .galleryaction {
    font-weight: 600;
    letter-spacing: .3px;
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
} .galleryaction:hover {
        filter: brightness(1.05);
    } .dashboard-section {
    margin-top: 28px;
} .dashboard-section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--dxds-color-content-neutral-default);
} .dx-tile, .content {
    transition: box-shadow .15s ease, transform .15s ease;
} .action-header-button, .account-button {
    transition: background-color .15s ease, transform .1s ease;
} .action-header-button:hover, .account-button:hover {
        background-color: #ECECFF;
        transform: scale(1.05);
    } .dxbl-grid-group-row {
    background: var(--dxds-color-surface-neutral-subdued-rest);
    font-weight: 600;
    color: var(--dxds-color-content-neutral-default);
    border-top: 1px solid var(--dxds-color-border-neutral-subtle);
} .dxbl-grid-group-row td {
        padding-top: 10px;
        padding-bottom: 10px;
    } .filterbyschoolyear-action {
    display: flex;
    align-items: center;
    height: 38px; /* hauteur alignée avec info société */
} .filterbyschoolyear-action .dxbl-text-edit {
        min-width: 120px;
        height: 36px;
        /* font-family: 'arial'; */
        border-radius: 10px;
        font-weight: 600;
        font-size: 13px;
        background: var(--dxds-color-surface-neutral-subdued-rest);
        border: 1px solid var(--dxds-color-border-neutral-subtle);
        padding-left: 14px;
        padding-right: 5px;
        color: #1f2937;
    } .filterbyschoolyear-action .dxbl-text-edit .dxbl-text-edit-input {
            cursor: default;
            font-weight: 700;
        } .filterbyschoolyear-action .dxbl-btn.dxbl-edit-btn-dropdown {
        --dxbl-btn-padding-y: 0;
        /* width: 34px; */
        /* height: 34px; */
        min-width: 34px;
        border-radius: 10px;
        background: #F3F5FB;
        color: #5351FB !important;
        border: none;
        margin-left: -34px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    /* Hover / Focus */
    .filterbyschoolyear-action:hover .dxbl-text-edit, .filterbyschoolyear-action:focus-within .dxbl-text-edit {
    background: #ECECFF;
    border-color: #5351FB;
} .filterbyschoolyear-action:hover .dxbl-btn.dxbl-edit-btn-dropdown {
    background: #E0E7FF;
}
    /* Icône dropdown */
    .filterbyschoolyear-action .dx-icon {
    font-size: 14px;
}
.dxbl-theme-fluent-mode-dark {
    --dxds-color-surface-neutral-subdued-rest: red;
}

.dxbl-theme-fluent-mode-light{
    --dxds-color-surface-neutral-subdued-rest: blue;
}
 