﻿@import url('./themes/couleurs.css');
@import url('./themes/styles-clair.css');
@import url('./themes/styles-sombre.css');
@import url('ci-element.css');

.ci-popup-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    gap: 20px;
    max-height: 75vh;
    max-width: 80vw;
}

.ci-popup-detail-message {
    font-size: medium;
    overflow-y: scroll;
    overflow-wrap: anywhere;
}

.ci-popup-boutons-group {
    column-gap: 20px;
}

.ci-champ-obligatoire::after {
    content: "*";
    color: red;
    position: absolute;
}

.ci-bouton-action {
    font-size: 20px;
    margin-right: 15px;
    cursor: pointer;
}

.ci-conteneur-central {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
    width: 100%;
}

.ci-centrer-verticalement {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
}

.ci-centrer-horizontalement {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.ci-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.ci-backdrop-sans-retour {
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

@media (prefers-color-scheme: dark) {
    .ci-backdrop {
        background-color: rgba(0, 0, 0, 0.5);
    }

    .ci-backdrop-sans-retour {
        background-color: rgba(0, 0, 0, 0.5);
    }
}

.bouton-action {
    bottom: 0;
    background-color: #212121 !important;
    color: white !important;
    position: absolute;
    right: 0;
    width: 60px;
    margin: 15px;
}

.bouton-action .dx-icon {
    color: white !important;
}

@media (prefers-color-scheme: dark) {
    .bouton-action {
        background-color: #7c7c7c !important;
    }
}

td:has(.calendrier-jour-ferie),
td:has(.calendrier-jour-ferie):hover {
    background-color: var(--jour-ferie) !important;
}

.calendrier-jour-non-ouvrable {
    color: #928989 !important;
}

.ci-bouton {
    width: 60px;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.ci-bouton-rectangle {
    width: initial !important;
}

.pagination-grille .ci-bouton {
    margin-top: 0px;
    margin-bottom: 0px;
}

.pagination-grille {
    width: 100%;
    height: 50px;
    background-color: var(--couleur-theme-secondaire);
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    line-height: 50px;
}

.pagination-grille-nombre-page,
.pagination-grille-navigation {
    margin-left: 10px;
    margin-right: 10px;
    display: flex;
}

.pagination-grille-navigation-numero-page {
    margin-top: 5px;
    margin-bottom: 5px;
    margin-right: 5px;
}

.nombre-element-grille {
    color: var(--couleur-texte);
}

@media (prefers-color-scheme: dark) {
    .dx-datagrid-header-panel {
        border-color: rgb(77, 77, 77);
    }

    .pagination-grille {
        border: none;
    }

    .dx-button-mode-contained {
        color: var(--couleur-texte) !important;
    }

    .dx-button-mode-outlined.dx-button-default {
        color: var(--couleur-texte) !important;
    }

    .dx-button-mode-contained.dx-button-default .dx-icon {
        color: var(--couleur-texte) !important;
    }
}

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: var(--couleur-theme-secondaire);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media only screen and (max-width: 600px) {
    .display-desktop {
        display: none !important;
    }
}

.ci-popup-plein-ecran {
    --dxbl-popup-margin: 0;
}

.ci-popup-plein-ecran > .dxbl-modal-content {
    max-height: unset !important;
}

@media only screen and (min-width: 600px) {
    .ci-popup-article .ci-element {
        width: calc(33% - 10px);
    }
}

.ci-popup-article .ci-liste-elements > div {
    width: 100%
}

.ci-scanner-code-barre > video {
    width: 100vw;
}

.drawingBuffer {
    display: none;
}

.input-group {
    margin-top: 10px;
    margin-bottom: 10px;
}

.dxbl-dropdown-dialog.dxbl-edit-dropdown li {
    height: 40px;
    background-color: var(--md-sys-color-secondary-container);
}

.dxbl-dropdown-dialog.dxbl-edit-dropdown li.dxbl-list-box-item-selected::before {
    background-color: unset !important;
}

.groupe-valeur-information > a {
    line-break: anywhere;
}

.ci-bouton-maj {
    --couleur-du-bouton: var(--md-sys-color-inverse-on-surface);
    font-size: medium !important;
    --dxbl-btn-bg: var(--couleur-du-bouton) !important;
    --dxbl-btn-active-bg: var(--couleur-du-bouton) !important;
    --dxbl-btn-active-border-color: var(--couleur-du-bouton) !important;
    --dxbl-btn-hover-bg: var(--couleur-du-bouton) !important;
    --dxbl-btn-hover-border-color: var(--couleur-du-bouton) !important;
    --dxbl-btn-border-color: var(--couleur-du-bouton) !important;
}

.ci-itineraire {
    display: none;
}

.dxbl-tabs-tablist li {
    width: 33.3333%;
    text-align: center;
}

.dxbl-tabs-tablist li div {
    text-align: center;
}

.dxbl-tabs-tablist ul {
    margin-top: 2%;
}

.dxbl-tabs .dxbl-fl-group.dxbl-fl-gd.dxbl-col.layout-group {
    padding: 0;
}

.formulaire-filtre {
    overflow-y: auto;
    height: calc(100vh - var(--taille-header) - 30px);
}

.layout-group {
    width: 100%;
}

.layout-group:last-of-type {
    margin-bottom: 120px;
}

.layout-group-caption {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-on-background);
}

.ci-page {
    height: calc(100vh - var(--taille-footer) - var(--taille-header));
    width: 100%;
    overflow-y: scroll;
}

@media (max-width : 600px) {
    .ci-page {
        height: calc(100vh - var(--taille-header));
    }
}

.dxbl-drawer-content .ci-menu {
    height: calc(100vh - var(--taille-footer) - var(--taille-header));
}

@keyframes ci-apparition-fiche {
    0% {
        top: calc(100% + var(--taille-footer) + var(--taille-header));
    }

    100% {
        top: var(--taille-header);
    }
}

.detail-element-popup {
    padding-top: 24px;
    position: fixed;
    width: 100%;
    height: calc(100% - var(--taille-header));
    background-color: var(--md-sys-color-background);
    z-index: 2;
    animation-duration: 0.3s;
    animation-name: ci-apparition-fiche;
    overflow-y: scroll;
}

.ci-element-checkbox-jointure {
    height: 50px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.ci-element-checkbox-jointure > label {
    width: 100%;
}