﻿html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}

.logon-viewsite div[data-item-name="PasswordHint"] + .xaf-static-text {
    width: 100%;
    line-height: 1rem;
    font-size: 0.75rem;
    opacity: .5;
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

.xaf-navmenu a .xaf-nav-link {
    text-decoration: revert !important;
}

.dxbl-grid-command-cell .dxbl-btn-link > span {
    text-decoration: revert !important;
}

.dxbl-grid-table td {
    white-space: nowrap;
}

.dxbl-grid.height600 {
    height: 600px;
    max-height: 600px;
}

body {
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #F4F4F3;
}

.header-logo {
    flex-shrink: 0;
    background-image: url(../images/csevisual.svg);
    background-repeat: no-repeat;
    background-origin: initial;
    background-position: left;
    background-size: auto;
    width: 185px;
    height: 32px;
}

.LoginBody {
    background-image: url(../images/csevisual.svg);
    background-repeat: no-repeat;
    background-size: 90% auto; /* ajuste la taille */
    background-position: center 40px; /* centré + décalage vertical */
}

.LoginMargeHaut {
    height: 140px;
}

.image-centree {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.grid-grouprow > td {
    background-color: #CAE0E4;
    color: black;
}

.grid-groupfooterrow div {
    background-color: lightyellow;
    color: black;
}

.grid-footerrow div {
    background-color: #f3ff8b;
    color: black;
}

div.xaf-richedit {
    height: 700px;
}

.dxbrv-clipboard-container {
    display: none;
}

.btn-icon-hide {
    width: 16px;
    height: 16px;
    background-image: url(../images/btn-icon-hide.svg);
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
}

.btn-icon-show {
    width: 16px;
    height: 16px;
    background-image: url(../images/btn-icon-show.svg);
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
}

.xaf-alert-message {
    white-space: pre-line !important;
}

.chart-white {
    background: #fff !important;
}

/*.calibri10-editor .dxbl-htmleditor-content p,
.calibri10-editor .dx-htmleditor-content p {
    margin-block-start: 0;
    margin-block-end: 0;
    margin-top: 0;
    margin-bottom: 2pt;*/ /* ≈ 2/3 pixels */
/*}*/


/* Couleurs de l'indicateur */
.pb-green .dxbl-progressbar-indicator {
    background-color: #22c55e !important;
}

.pb-orange .dxbl-progressbar-indicator {
    background-color: #f59e0b !important;
}

.pb-red .dxbl-progressbar-indicator {
    background-color: #dc2626 !important;
}

.dxbl-progressbar,
.dxbl-progressbar-track,
.dxbl-progressbar-indicator {
    border-radius: 8px;
}

/* Fallback indéterminé (si le paramètre Indeterminate n'existe pas dans ta build)
   -> on ajoute une animation "marquee" via classe CSS appliquée quand Indeterminate=true */
.pb-indeterminate .dxbl-progressbar-indicator {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(255,255,255,.15) 25%, rgba(255,255,255,.35) 37%, rgba(255,255,255,.15) 63%);
    background-size: 400% 100%;
    animation: pb-marquee 1.2s linear infinite;
}

@keyframes pb-marquee {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* ============================================================
   Contact - filtre "Présent au"
   ============================================================ */

/* Largeur du champ date dans le Ribbon */
dxbl-date-edit.xaf-action-contact_filteratdate {
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
}

    /* Saisie centrée */
    dxbl-date-edit.xaf-action-contact_filteratdate .dxbl-text-edit-input {
        text-align: center !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    /* Bouton calendrier un peu plus compact */
    dxbl-date-edit.xaf-action-contact_filteratdate .dxbl-edit-btn-dropdown {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
    }

/* Éviter que le bouton Effacer soit tronqué */
button[data-action-name="Effacer"] {
    white-space: nowrap !important;
}

/* ************************************************************************************************ */

.calculator {
    margin: 4px auto;
    padding: 14px;
}

.calculator-screen {
    height: 82px;
    margin-bottom: 10px;
}

.calculator-grid {
    gap: 7px;
}

.key {
    height: 52px;
}

.calculator-numeric-editor {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.calculator-number-input {
    flex: 1 1 auto;
    min-width: 0;
}

.calculator-editor-button {
    flex: 0 0 38px;
    margin-left: 4px;
}

/* ============================================================
   XAF BLAZOR 26.1.5
   MEMONOTE DETAILVIEW - STYLE POST-IT
   ============================================================

   CustomCSSClassName = memo-note-postit

   COULEUR LIGHT :
   #fff176

   PRINCIPE GENERAL
   ------------------------------------------------------------
   THEME LIGHT :
   - fond Post-it #fff176
   - texte / labels noirs
   - éditeurs laissés à DevExpress
   - grilles laissées lisibles

   THEME DARK :
   - AUCUNE colorisation personnalisée
   - DevExpress reprend entièrement la main

   REGLE IMPORTANTE :
   Ne jamais imposer background-color, color ou border-color
   aux éditeurs standards DevExpress.
   ============================================================ */


/* ============================================================
   1. LAYOUT PRINCIPAL
   ============================================================ */

body:not(.dxbl-theme-dark) .memo-note-postit {
    background-color: #fff176 !important;
    color: #000000 !important;
}


    /* ============================================================
   2. CONTENEURS DE STRUCTURE XAF
   ============================================================ */

    body:not(.dxbl-theme-dark) .memo-note-postit .dxbl-gridlayout,
    body:not(.dxbl-theme-dark) .memo-note-postit .dxbl-grid-layout,
    body:not(.dxbl-theme-dark) .memo-note-postit .xaf-layout-group,
    body:not(.dxbl-theme-dark) .memo-note-postit .dxbl-group,
    body:not(.dxbl-theme-dark) .memo-note-postit .dxbl-group-body,
    body:not(.dxbl-theme-dark) .memo-note-postit .card,
    body:not(.dxbl-theme-dark) .memo-note-postit .card-body {
        background-color: #fff176 !important;
    }


/* ============================================================
   3. POPUP PRINCIPALE EVENTUELLE
   ============================================================ */

body:not(.dxbl-theme-dark)
.dxbl-popup:has(.memo-note-postit) {
    background-color: #fff176 !important;
    color: #000000 !important;
    border: 1px solid #d6c94f !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
}


    /* ============================================================
   4. HEADER DE POPUP
   ============================================================ */

    body:not(.dxbl-theme-dark)
    .dxbl-popup:has(.memo-note-postit) .dxbl-popup-header,
    body:not(.dxbl-theme-dark)
    .dxbl-popup:has(.memo-note-postit) .dxbl-modal-header {
        background-color: #fff176 !important;
        color: #000000 !important;
    }


    /* ============================================================
   5. CORPS DE POPUP
   ============================================================ */

    body:not(.dxbl-theme-dark)
    .dxbl-popup:has(.memo-note-postit) .dxbl-popup-body,
    body:not(.dxbl-theme-dark)
    .dxbl-popup:has(.memo-note-postit) .dxbl-modal-body {
        background-color: #fff176 !important;
        color: #000000 !important;
    }


    /* ============================================================
   6. FOOTER DE POPUP
   ============================================================ */

    body:not(.dxbl-theme-dark)
    .dxbl-popup:has(.memo-note-postit) .dxbl-popup-footer,
    body:not(.dxbl-theme-dark)
    .dxbl-popup:has(.memo-note-postit) .dxbl-modal-footer {
        background-color: #fff176 !important;
    }


/* ============================================================
   7. GROUPES XAF
   ============================================================ */

body:not(.dxbl-theme-dark)
.memo-note-postit .dxbl-group,
body:not(.dxbl-theme-dark)
.memo-note-postit .xaf-group {
    background-color: #fff176 !important;
}


/* ============================================================
   8. EN-TETES DES GROUPES
   ============================================================ */

body:not(.dxbl-theme-dark)
.memo-note-postit .dxbl-group-header,
body:not(.dxbl-theme-dark)
.memo-note-postit .xaf-group-header {
    background-color: transparent !important;
    color: #000000 !important;
}


/* ============================================================
   9. LABELS
   ============================================================ */

body:not(.dxbl-theme-dark)
.memo-note-postit label {
    color: #000000 !important;
}


/* ============================================================
   10. EDITEURS STANDARDS

   AUCUNE REGLE CSS.

   DevExpress gère entièrement :
   - TextBox
   - Memo
   - DateEdit
   - ComboBox
   - Lookup
   - NumericEdit
   - validation
   - warning
   - erreur
   - readonly
   - disabled
   - focus

   NE PAS imposer :
   - background-color
   - color
   - border-color
   ============================================================ */


/* ============================================================
   11. BOUTONS INTEGRES AUX EDITEURS

   AUCUNE REGLE.

   DevExpress gère entièrement :
   - effacer
   - calendrier
   - lookup
   - dropdown
   - édition
   - recherche
   - icônes
   ============================================================ */


/* ============================================================
   12. SWITCHES
   LIGHT UNIQUEMENT
   ============================================================ */

body:not(.dxbl-theme-dark)
.memo-note-postit .dxbl-checkbox {
    background-color: transparent !important;
}


    /* Switch décoché */

    body:not(.dxbl-theme-dark)
    .memo-note-postit
    .dxbl-checkbox:not(.dxbl-checkbox-checked)
    .dxbl-checkbox-check-element {
        background-color: #ffffff !important;
        border: 1px solid #777777 !important;
    }


    /* Switch coché */

    body:not(.dxbl-theme-dark)
    .memo-note-postit
    .dxbl-checkbox.dxbl-checkbox-checked
    .dxbl-checkbox-check-element {
        background-color: #4976cf !important;
        border: 1px solid #4976cf !important;
    }


/* ============================================================
   13. ACCORDIONS / GROUPES DEPLOYABLES
   ============================================================ */

body:not(.dxbl-theme-dark)
.memo-note-postit .dxbl-accordion,
body:not(.dxbl-theme-dark)
.memo-note-postit .dxbl-accordion-item {
    background-color: transparent !important;
}


/* ============================================================
   14. TABS / ONGLETS
   ============================================================ */

body:not(.dxbl-theme-dark)
.memo-note-postit .dxbl-tabs,
body:not(.dxbl-theme-dark)
.memo-note-postit .dxbl-tabs-content,
body:not(.dxbl-theme-dark)
.memo-note-postit .dxbl-tab-page {
    background-color: transparent !important;
}


/* ============================================================
   15. RICH EDIT / HTML EDITOR

   AUCUNE COLORISATION PERSONNALISEE.

   DevExpress conserve la gestion :
   - toolbar
   - boutons
   - contenu
   - texte
   - couleurs utilisateur
   - mise en forme

   Ceci permet également de conserver un comportement
   correct en thème Dark.
   ============================================================ */


/* ============================================================
   16. GRILLES
   ============================================================ */

body:not(.dxbl-theme-dark)
.memo-note-postit .dxbl-grid {
    background-color: #ffffff !important;
}


body:not(.dxbl-theme-dark)
.memo-note-postit .dxbl-grid-table {
    background-color: #ffffff !important;
}


body:not(.dxbl-theme-dark)
.memo-note-postit .dxbl-grid-header {
    background-color: #ffffff !important;
    color: #000000 !important;
}


/* ============================================================
   17. CELLULES DES GRILLES

   AUCUNE REGLE.

   DevExpress / XAF conserve :
   - sélection
   - focus
   - couleurs métier
   - validation
   - totaux
   - formatage conditionnel
   ============================================================ */


/* ============================================================
   18. TOTAUX DE GRILLE

   AUCUNE REGLE.

   Les éventuelles couleurs métier sont conservées.
   ============================================================ */


/* ============================================================
   19. RECHERCHE / FILTRES / TRI

   AUCUNE REGLE.

   DevExpress gère :
   - SearchBox
   - filtres
   - tri
   - menus
   - icônes
   ============================================================ */


/* ============================================================
   20. BOUTONS D'ACTIONS

   AUCUNE REGLE.

   DevExpress conserve :
   - normal
   - primary
   - hover
   - focus
   - disabled
   ============================================================ */


/* ============================================================
   21. THEME DARK

   TRES IMPORTANT

   AUCUNE REGLE CSS DARK N'EST AJOUTEE.

   Toutes les personnalisations utilisent :

       body:not(.dxbl-theme-dark)

   En Dark :

   - aucun #fff176
   - aucun fond Post-it imposé
   - aucune couleur de texte personnalisée
   - aucune grille blanche imposée
   - aucun switch recolorisé
   - aucun groupe recolorisé
   - aucun éditeur recolorisé
   - aucun bouton recolorisé
   - aucun RichEdit recolorisé
   - aucun HtmlEditor recolorisé

   DEVEXPRESS REPREND 100 % LA MAIN.
   ============================================================ */


/* ============================================================
   FIN
   MEMONOTE DETAILVIEW - STYLE POST-IT

   CustomCSSClassName = memo-note-postit
   Couleur Light = #fff176
   ============================================================ */


/* ============================================================
   XAF BLAZOR 26.1.5
   ANNOTATION - ORANGE CLAIR
   ============================================================

   CustomCSSClassName = annotation-orange

   COULEUR LIGHT :
   #F9E2C7

   PRINCIPE GENERAL
   ------------------------------------------------------------
   THEME LIGHT :
   - fond orange clair pastel #F9E2C7
   - texte / labels noirs
   - éditeurs laissés à DevExpress
   - grilles laissées lisibles

   THEME DARK :
   - AUCUNE colorisation personnalisée
   - DevExpress reprend entièrement la main

   REGLE IMPORTANTE :
   Ne jamais imposer background-color, color ou border-color
   aux éditeurs standards DevExpress.
   ============================================================ */


/* ============================================================
   1. LAYOUT PRINCIPAL
   ============================================================ */

body:not(.dxbl-theme-dark) .annotation-orange {
    background-color: #F9E2C7 !important;
    color: #000000 !important;
}


    /* ============================================================
   2. CONTENEURS DE STRUCTURE XAF
   ============================================================ */

    body:not(.dxbl-theme-dark) .annotation-orange .dxbl-gridlayout,
    body:not(.dxbl-theme-dark) .annotation-orange .dxbl-grid-layout,
    body:not(.dxbl-theme-dark) .annotation-orange .xaf-layout-group,
    body:not(.dxbl-theme-dark) .annotation-orange .dxbl-group,
    body:not(.dxbl-theme-dark) .annotation-orange .dxbl-group-body,
    body:not(.dxbl-theme-dark) .annotation-orange .card,
    body:not(.dxbl-theme-dark) .annotation-orange .card-body {
        background-color: #F9E2C7 !important;
    }


/* ============================================================
   3. POPUP PRINCIPALE EVENTUELLE
   ============================================================ */

body:not(.dxbl-theme-dark)
.dxbl-popup:has(.annotation-orange) {
    background-color: #F9E2C7 !important;
    color: #000000 !important;
    border: 1px solid #E6BE91 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
}


    /* ============================================================
   4. HEADER DE POPUP
   ============================================================ */

    body:not(.dxbl-theme-dark)
    .dxbl-popup:has(.annotation-orange) .dxbl-popup-header,
    body:not(.dxbl-theme-dark)
    .dxbl-popup:has(.annotation-orange) .dxbl-modal-header {
        background-color: #F9E2C7 !important;
        color: #000000 !important;
    }


    /* ============================================================
   5. CORPS DE POPUP
   ============================================================ */

    body:not(.dxbl-theme-dark)
    .dxbl-popup:has(.annotation-orange) .dxbl-popup-body,
    body:not(.dxbl-theme-dark)
    .dxbl-popup:has(.annotation-orange) .dxbl-modal-body {
        background-color: #F9E2C7 !important;
        color: #000000 !important;
    }


    /* ============================================================
   6. FOOTER DE POPUP
   ============================================================ */

    body:not(.dxbl-theme-dark)
    .dxbl-popup:has(.annotation-orange) .dxbl-popup-footer,
    body:not(.dxbl-theme-dark)
    .dxbl-popup:has(.annotation-orange) .dxbl-modal-footer {
        background-color: #F9E2C7 !important;
    }


/* ============================================================
   7. GROUPES XAF
   ============================================================ */

body:not(.dxbl-theme-dark)
.annotation-orange .dxbl-group,
body:not(.dxbl-theme-dark)
.annotation-orange .xaf-group {
    background-color: #F9E2C7 !important;
}


/* ============================================================
   8. EN-TETES DES GROUPES
   ============================================================ */

body:not(.dxbl-theme-dark)
.annotation-orange .dxbl-group-header,
body:not(.dxbl-theme-dark)
.annotation-orange .xaf-group-header {
    background-color: transparent !important;
    color: #000000 !important;
}


/* ============================================================
   9. LABELS
   ============================================================ */

body:not(.dxbl-theme-dark)
.annotation-orange label {
    color: #000000 !important;
}


/* ============================================================
   10. EDITEURS STANDARDS

   VOLONTAIREMENT AUCUNE REGLE CSS.

   DevExpress gère entièrement :
   - TextBox
   - Memo
   - NumericEdit
   - DateEdit
   - ComboBox
   - Lookup
   - Search
   - validation
   - warning
   - erreur
   - readonly
   - disabled
   - focus

   NE PAS imposer :
   - background-color
   - color
   - border-color
   ============================================================ */


/* ============================================================
   11. BOUTONS INTEGRES AUX EDITEURS

   VOLONTAIREMENT AUCUNE REGLE.

   DevExpress gère :
   - effacer X
   - calendrier
   - +
   - lookup
   - dropdown
   - édition
   - recherche
   - icônes
   ============================================================ */


/* ============================================================
   12. SWITCHES
   LIGHT UNIQUEMENT
   ============================================================ */

body:not(.dxbl-theme-dark)
.annotation-orange .dxbl-checkbox {
    background-color: transparent !important;
}


    /* Switch décoché */

    body:not(.dxbl-theme-dark)
    .annotation-orange
    .dxbl-checkbox:not(.dxbl-checkbox-checked)
    .dxbl-checkbox-check-element {
        background-color: #ffffff !important;
        border: 1px solid #777777 !important;
    }


    /* Switch coché */

    body:not(.dxbl-theme-dark)
    .annotation-orange
    .dxbl-checkbox.dxbl-checkbox-checked
    .dxbl-checkbox-check-element {
        background-color: #4976cf !important;
        border: 1px solid #4976cf !important;
    }


/* ============================================================
   13. ACCORDIONS / GROUPES DEPLOYABLES
   ============================================================ */

body:not(.dxbl-theme-dark)
.annotation-orange .dxbl-accordion,
body:not(.dxbl-theme-dark)
.annotation-orange .dxbl-accordion-item {
    background-color: transparent !important;
}


/* ============================================================
   14. TABS / ONGLETS
   ============================================================ */

body:not(.dxbl-theme-dark)
.annotation-orange .dxbl-tabs,
body:not(.dxbl-theme-dark)
.annotation-orange .dxbl-tabs-content,
body:not(.dxbl-theme-dark)
.annotation-orange .dxbl-tab-page {
    background-color: transparent !important;
}


/* ============================================================
   15. RICH EDIT / HTML EDITOR

   AUCUNE COLORISATION PERSONNALISEE.

   DevExpress garde entièrement la main :
   - toolbar
   - boutons
   - zone d'édition
   - contenu HTML
   - texte
   - liens
   - tableaux
   - menus
   - listes
   - couleurs utilisateur
   - mise en forme
   ============================================================ */


/* ============================================================
   16. GRILLES

   En LIGHT :
   la grille reste blanche pour conserver une séparation
   nette avec le fond orange #F9E2C7.

   En DARK :
   ces règles ne s'appliquent pas.
   ============================================================ */

body:not(.dxbl-theme-dark)
.annotation-orange .dxbl-grid {
    background-color: #ffffff !important;
}


body:not(.dxbl-theme-dark)
.annotation-orange .dxbl-grid-table {
    background-color: #ffffff !important;
}


body:not(.dxbl-theme-dark)
.annotation-orange .dxbl-grid-header {
    background-color: #ffffff !important;
    color: #000000 !important;
}


/* ============================================================
   17. CELLULES DES GRILLES

   AUCUNE REGLE.

   Cela permet de conserver :
   - couleurs métier
   - sélection
   - focus
   - validation
   - totaux
   - cellules conditionnelles
   ============================================================ */


/* ============================================================
   18. TOTAUX DE GRILLE

   AUCUNE REGLE.

   Les éventuelles couleurs métier sont conservées.
   ============================================================ */


/* ============================================================
   19. RECHERCHE / FILTRES / TRI

   AUCUNE REGLE.

   DevExpress gère :
   - SearchBox
   - filtres
   - tri
   - icônes
   - menus
   - checkbox de sélection
   ============================================================ */


/* ============================================================
   20. BOUTONS D'ACTIONS

   AUCUNE REGLE.

   DevExpress conserve :
   - normal
   - primary
   - hover
   - focus
   - disabled
   ============================================================ */


/* ============================================================
   21. THEME DARK

   TRES IMPORTANT

   AUCUNE REGLE CSS DARK N'EST AJOUTEE.

   Toutes les personnalisations utilisent :

       body:not(.dxbl-theme-dark)

   En thème Dark :

   - aucun #F9E2C7
   - aucun fond orange imposé
   - aucune couleur de texte personnalisée
   - aucune grille blanche imposée
   - aucun switch recolorisé
   - aucun groupe recolorisé
   - aucun éditeur recolorisé
   - aucun bouton recolorisé
   - aucun RichEdit recolorisé
   - aucun HtmlEditor recolorisé

   DEVEXPRESS REPREND 100 % LA MAIN.
   ============================================================ */


/* ============================================================
   FIN
   ANNOTATION - ORANGE CLAIR

   CustomCSSClassName = annotation-orange
   Couleur Light = #F9E2C7
   ============================================================ */


/* ============================================================
   XAF BLAZOR 26.1.5
   PARAMETRAGE - VUES TECHNIQUES
   ============================================================

   CustomCSSClassName = parametrage-technical

   COULEUR LIGHT :
   #eef3f8

   PRINCIPE GENERAL
   ------------------------------------------------------------
   THEME LIGHT :
   - fond technique #eef3f8
   - labels adaptés au fond
   - éditeurs laissés à DevExpress
   - grilles laissées lisibles
   - RichEdit / HtmlEditor laissés à DevExpress

   THEME DARK :
   - AUCUNE colorisation personnalisée
   - DevExpress reprend entièrement la main

   REGLE IMPORTANTE :
   Ne jamais imposer background-color, color ou border-color
   aux éditeurs standards DevExpress.

   Cela permet de conserver :
   - validation
   - warning
   - erreur
   - readonly
   - disabled
   - focus
   - Light / Dark
   ============================================================ */
/* ============================================================
   1. LAYOUT PRINCIPAL
   ============================================================ */
body:not(.dxbl-theme-dark) .parametrage-technical {
    background-color: #eef3f8 !important;
    color: #000000 !important;
}


    /* ============================================================
   2. CONTENEURS DE STRUCTURE XAF

   Le fond technique est propagé aux conteneurs de mise
   en page afin d'éviter les grandes zones blanches.

   IMPORTANT :
   ceci ne cible PAS les éditeurs.
   ============================================================ */

    body:not(.dxbl-theme-dark)
    .parametrage-technical .dxbl-gridlayout,
    body:not(.dxbl-theme-dark)
    .parametrage-technical .dxbl-grid-layout,
    body:not(.dxbl-theme-dark)
    .parametrage-technical .xaf-layout-group,
    body:not(.dxbl-theme-dark)
    .parametrage-technical .dxbl-group,
    body:not(.dxbl-theme-dark)
    .parametrage-technical .dxbl-group-body,
    body:not(.dxbl-theme-dark)
    .parametrage-technical .card,
    body:not(.dxbl-theme-dark)
    .parametrage-technical .card-body {
        background-color: #eef3f8 !important;
    }


/* ============================================================
   3. POPUP PRINCIPALE EVENTUELLE
   ============================================================ */

body:not(.dxbl-theme-dark)
.dxbl-popup:has(.parametrage-technical) {
    background-color: #eef3f8 !important;
    color: #000000 !important;
    border: 1px solid #8f949a !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
}


    /* ============================================================
   4. HEADER DE POPUP
   ============================================================ */

    body:not(.dxbl-theme-dark)
    .dxbl-popup:has(.parametrage-technical) .dxbl-popup-header,
    body:not(.dxbl-theme-dark)
    .dxbl-popup:has(.parametrage-technical) .dxbl-modal-header {
        background-color: #eef3f8 !important;
        color: #000000 !important;
    }


    /* ============================================================
   5. CORPS DE POPUP
   ============================================================ */

    body:not(.dxbl-theme-dark)
    .dxbl-popup:has(.parametrage-technical) .dxbl-popup-body,
    body:not(.dxbl-theme-dark)
    .dxbl-popup:has(.parametrage-technical) .dxbl-modal-body {
        background-color: #eef3f8 !important;
        color: #000000 !important;
    }


    /* ============================================================
   6. FOOTER DE POPUP
   ============================================================ */

    body:not(.dxbl-theme-dark)
    .dxbl-popup:has(.parametrage-technical) .dxbl-popup-footer,
    body:not(.dxbl-theme-dark)
    .dxbl-popup:has(.parametrage-technical) .dxbl-modal-footer {
        background-color: #eef3f8 !important;
    }


/* ============================================================
   7. GROUPES XAF
   ============================================================ */

body:not(.dxbl-theme-dark)
.parametrage-technical .dxbl-group,
body:not(.dxbl-theme-dark)
.parametrage-technical .xaf-group {
    background-color: #eef3f8 !important;
}


/* ============================================================
   8. EN-TETES DES GROUPES
   ============================================================ */

body:not(.dxbl-theme-dark)
.parametrage-technical .dxbl-group-header,
body:not(.dxbl-theme-dark)
.parametrage-technical .xaf-group-header {
    background-color: transparent !important;
    color: #000000 !important;
}


/* ============================================================
   9. LABELS

   Les labels sont les seuls textes métier auxquels on impose
   une couleur.

   On ne touche PAS au texte des éditeurs.
   ============================================================ */

body:not(.dxbl-theme-dark)
.parametrage-technical label {
    color: #000000 !important;
}


/* ============================================================
   10. EDITEURS STANDARDS

   VOLONTAIREMENT AUCUNE REGLE CSS.

   NE PAS AJOUTER de règle sur :

   .dxbl-text-edit
   .dxbl-input-editor
   input
   textarea
   select

   Ne pas imposer :
   - background-color
   - color
   - border-color

   DevExpress doit gérer entièrement :
   - TextBox
   - Memo
   - NumericEdit
   - DateEdit
   - ComboBox
   - Lookup
   - Search
   - validation
   - warning
   - erreur
   - readonly
   - disabled
   - focus
   ============================================================ */


/* ============================================================
   11. BOUTONS INTEGRES AUX EDITEURS

   VOLONTAIREMENT AUCUNE REGLE.

   DevExpress gère :
   - effacer X
   - calendrier
   - +
   - lookup
   - dropdown
   - édition
   - recherche
   - icônes

   Cela garantit également le bon fonctionnement en Dark.
   ============================================================ */


/* ============================================================
   12. SWITCHES

   En Light uniquement.

   En Dark aucune règle ne s'applique.
   ============================================================ */

body:not(.dxbl-theme-dark)
.parametrage-technical .dxbl-checkbox {
    background-color: transparent !important;
}


    /* Switch décoché */

    body:not(.dxbl-theme-dark)
    .parametrage-technical
    .dxbl-checkbox:not(.dxbl-checkbox-checked)
    .dxbl-checkbox-check-element {
        background-color: #ffffff !important;
        border: 1px solid #777777 !important;
    }


    /* Switch coché */

    body:not(.dxbl-theme-dark)
    .parametrage-technical
    .dxbl-checkbox.dxbl-checkbox-checked
    .dxbl-checkbox-check-element {
        background-color: #4976cf !important;
        border: 1px solid #4976cf !important;
    }


/* ============================================================
   13. ACCORDIONS / GROUPES DEPLOYABLES
   ============================================================ */

body:not(.dxbl-theme-dark)
.parametrage-technical .dxbl-accordion,
body:not(.dxbl-theme-dark)
.parametrage-technical .dxbl-accordion-item {
    background-color: transparent !important;
}


/* ============================================================
   14. TABS / ONGLETS

   Le conteneur suit le fond technique.

   Les boutons/onglets eux-mêmes restent gérés par DevExpress.
   ============================================================ */

body:not(.dxbl-theme-dark)
.parametrage-technical .dxbl-tabs,
body:not(.dxbl-theme-dark)
.parametrage-technical .dxbl-tabs-content,
body:not(.dxbl-theme-dark)
.parametrage-technical .dxbl-tab-page {
    background-color: transparent !important;
}


/* ============================================================
   15. RICH EDIT / HTML EDITOR

   AUCUNE COLORISATION PERSONNALISEE.

   Ne pas imposer de couleur à :
   - toolbar
   - boutons
   - zone d'édition
   - contenu HTML
   - texte
   - liens
   - tableaux
   - menus
   - listes
   - combobox de toolbar

   DevExpress garde entièrement la main.

   C'est indispensable pour :
   - Light
   - Dark
   - mise en forme du contenu
   - couleurs utilisateur
   - validation
   ============================================================ */


/* ============================================================
   16. GRILLES

   En LIGHT :
   la grille reste blanche pour conserver une séparation
   nette avec le fond technique #eef3f8.

   En DARK :
   ces règles ne s'appliquent pas.
   ============================================================ */

body:not(.dxbl-theme-dark)
.parametrage-technical .dxbl-grid {
    background-color: #ffffff !important;
}


body:not(.dxbl-theme-dark)
.parametrage-technical .dxbl-grid-table {
    background-color: #ffffff !important;
}


body:not(.dxbl-theme-dark)
.parametrage-technical .dxbl-grid-header {
    background-color: #ffffff !important;
    color: #000000 !important;
}


/* ============================================================
   17. CELLULES DES GRILLES

   VOLONTAIREMENT AUCUNE REGLE.

   Ne pas imposer de background aux cellules.

   Cela permet de conserver :
   - couleurs métier
   - sélection
   - focus
   - validation
   - totaux
   - cellules conditionnelles
   ============================================================ */


/* ============================================================
   18. TOTAUX DE GRILLE

   VOLONTAIREMENT AUCUNE REGLE.

   Les couleurs métier existantes sont conservées :
   - totaux jaunes
   - alertes
   - soldes
   - indicateurs
   ============================================================ */


/* ============================================================
   19. RECHERCHE / FILTRES / TRI

   VOLONTAIREMENT AUCUNE REGLE.

   DevExpress gère :
   - SearchBox
   - filtres
   - tri
   - icônes
   - menus
   - checkbox de sélection
   ============================================================ */


/* ============================================================
   20. BOUTONS D'ACTIONS

   VOLONTAIREMENT AUCUNE REGLE.

   DevExpress conserve :
   - normal
   - primary
   - hover
   - focus
   - disabled

   On ne modifie donc pas les actions XAF.
   ============================================================ */


/* ============================================================
   21. THEME DARK

   TRES IMPORTANT

   AUCUNE REGLE CSS DARK N'EST AJOUTEE.

   Toutes les personnalisations précédentes utilisent :

       body:not(.dxbl-theme-dark)

   Par conséquent, lorsque le thème Dark est actif :

   - aucun #eef3f8
   - aucune couleur de texte personnalisée
   - aucune grille blanche imposée
   - aucun switch recolorisé
   - aucun groupe recolorisé
   - aucun éditeur recolorisé
   - aucun bouton recolorisé
   - aucun RichEdit recolorisé
   - aucun HtmlEditor recolorisé

   DEVEXPRESS REPREND 100 % LA MAIN.
   ============================================================ */


/* ============================================================
   FIN
   PARAMETRAGE - VUES TECHNIQUES
   CustomCSSClassName = parametrage-technical
   Couleur Light = #eef3f8
============================================================ */
