﻿/* fonts */
.e-control,
.e-contextmenu-container ul.e-ul {
    font-family: var(--mud-typography-default-family);
    font-size: var(--mud-typography-default-size) !important;
    outline-color: darkviolet;
}

/* couleur bouton numéro de page*/
.e-numericitem.e-currentitem.e-active {
    /*box-shadow: var(--mud-elevation-1) !important;*/
    color: var(--mud-palette-primary-text) !important;
    background-color: var(--mud-palette-primary) !important;
}

/* icones filtres */
.e-icon-filter {
    width: 14px;
}

[data-bs-theme="light"] .e-icon-filter:before,
.light .e-icon-filter:before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23616161" class="bi bi-funnel" viewBox="0 0 16 16"> <path d="M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.128.334L10 8.692V13.5a.5.5 0 0 1-.342.474l-3 1A.5.5 0 0 1 6 14.5V8.692L1.628 3.834A.5.5 0 0 1 1.5 3.5v-2zm1 .5v1.308l4.372 4.858A.5.5 0 0 1 7 8.5v5.306l2-.666V8.5a.5.5 0 0 1 .128-.334L13.5 3.308V2h-11z"/> </svg>') !important;
}

[data-bs-theme="dark"] .e-icon-filter:before,
.dark .e-icon-filter:before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23ffffffb2" class="bi bi-funnel" viewBox="0 0 16 16"> <path d="M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.128.334L10 8.692V13.5a.5.5 0 0 1-.342.474l-3 1A.5.5 0 0 1 6 14.5V8.692L1.628 3.834A.5.5 0 0 1 1.5 3.5v-2zm1 .5v1.308l4.372 4.858A.5.5 0 0 1 7 8.5v5.306l2-.666V8.5a.5.5 0 0 1 .128-.334L13.5 3.308V2h-11z"/> </svg>') !important;
}

.e-headercell:focus-visible .e-icon-filter:before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" class="bi bi-funnel" viewBox="0 0 16 16"> <path d="M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.128.334L10 8.692V13.5a.5.5 0 0 1-.342.474l-3 1A.5.5 0 0 1 6 14.5V8.692L1.628 3.834A.5.5 0 0 1 1.5 3.5v-2zm1 .5v1.308l4.372 4.858A.5.5 0 0 1 7 8.5v5.306l2-.666V8.5a.5.5 0 0 1 .128-.334L13.5 3.308V2h-11z"/> </svg>') !important;
}

.e-icon-filter {
    padding-top: 1px !important;
}

.e-filtermenudiv.e-icons.e-icon-filter.e-filtered:before {
    color: red !important;
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="red" class="bi bi-funnel-fill" viewBox="0 0 16 16"> <path d="M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.128.334L10 8.692V13.5a.5.5 0 0 1-.342.474l-3 1A.5.5 0 0 1 6 14.5V8.692L1.628 3.834A.5.5 0 0 1 1.5 3.5v-2z"/> </svg>') !important;
}

/* couelur de fond tableau */
.e-rowcell, .e-headercell, .e-grid .e-pager, .e-pagercontainer, .e-emptyrow, .e-content, .e-gridcontent, .e-emptyrow {
    background-color: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
    /*font-size: var(--mud-typography-default-size);*/
}

    /* fond des icones */
    .e-uncheck,
    .e-footer-content,
    .e-pagercontainer > .e-icons,
    .e-numericitem,
    .e-input-group-icon {
        background-color: var(--mud-palette-surface) !important;
        color: var(--mud-palette-text-primary-darken) !important;
    }

/* fond des sélections dropdowns */
.e-table,
.e-control .e-input-group input.e-input {
    background-color: var(--mud-palette-surface) !important;
}

/* hover lignes tableau */
.e-row .e-active:is([role="gridcell"]),
.e-gridhover .e-gridcontent tr.e-row:hover .e-rowcell:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell) {
    background-color: var(--tableau-contour) !important;
}

/* couleur sélection pages */
.e-dropdownbase .e-list-item {
    background-color: var(--mud-palette-surface);
}

    .e-dropdownbase .e-list-item.e-hover {
        background-color: var(--mud-palette-primary);
    }

    .e-dropdownbase .e-list-item.e-active {
        color: var(--mud-palette-text-primary);
        background-color: var(--mud-palette-primary);
    }

        .e-dropdownbase .e-list-item.e-active:hover {
            color: var(--mud-palette-text-primary);
            background-color: var(--mud-palette-primary);
        }

/* scrollbar */
.e-yscroll, .e-gridheader {
    background-color: var(--mud-palette-surface) !important;
}

/* couleur fond dialog filtre */
.e-dlg-content,
.e-menu-item .e-focused,
.e-dlg-header-content,
.e-control.e-contextmenu.e-lib.e-menu-parent,
.e-menu-parent.e-ul,
.e-valid-input {
    background-color: var(--mud-palette-surface) !important;
}

/* couleur checkbox */
/*.e-footer-content .e-btn.e-primary.e-flat:not([DISABLED]),*/
.e-checkbox-wrapper .e-frame.e-stop,
.e-css.e-checkbox-wrapper .e-frame.e-stop,
.e-checkbox-wrapper .e-frame.e-check,
.e-css.e-checkbox-wrapper .e-frame.e-check,
.e-checkbox-wrapper:hover .e-frame.e-check,
.e-css.e-checkbox-wrapper:hover .e-frame.e-check {
    background-color: var(--mud-palette-primary) !important;
    border-color: var(--mud-palette-primary) !important;
}

/* override couleur checkbox pour le thème sombre */
.e-checkbox-wrapper .e-frame.e-check, .e-css.e-checkbox-wrapper .e-frame.e-check {
    color: #fff !important;
}

/* header checkbox */
.e-headercelldiv .e-headerchkcelldiv {
    margin: 0;
}

/*Pour centrage des cases à cocher dans tableau*/
.e-headerchkcelldiv .e-css,
.e-gridchkbox .e-css {
    width: 20px !important;
}

.e-gridchkbox,
.checkbox-header {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* taille lignes */
.e-grid:not(.e-row-responsive) td.e-rowcell.e-templatecell {
    /*pour éviter de définir un RowHeight sur chaque tableau */
    padding: 2px 8px !important;
    height: auto;
    line-height: 35px;
}

@media screen and (max-width: 960px) {
    .e-toolbar {
        min-height: 0 !important;
        height: 35px !important;
    }

    .sf-grid {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* placement texte "éléments par page" */
.e-pagerconstant {
    margin: 0 0 6px 12px !important;
}

/* boutons */
.e-btn {
    text-transform: none !important;
}

    .e-btn.e-flat.e-primary {
        color: var(--mud-palette-primary-text) !important;
        background-color: var(--mud-palette-primary) !important;
    }

        .e-btn.e-flat.e-primary:hover,
        .e-btn.e-flat:hover {
            background-color: var(--mud-palette-primary-darken) !important;
        }

/* menu */
.e-menu-item:hover,
.e-menu-item .e-focused,
.e-menu-item.e-menu-caret-icon.e-selected {
    background-color: var(--mud-palette-primary) !important;
}

/* couleur barre de recherche filtre */
.e-input-focus:before,
.e-input-focus:after {
    background: var(--mud-palette-primary) !important;
}

/* accessibility composant caché pour ARC Toolkit */
.e-pagenomsg {
    background-color: var(--mud-palette-surface);
    /*background-color: white;*/
}

/* simili outline */
.e-grid.sf-grid :is(.e-groupdroparea, .e-groupdroparea .e-groupsort, .e-groupdroparea .e-ungroupbutton, .e-headercontent th.e-headercell:not(.e-menu-item):not(.e-editedbatchcell), .e-headercontent td.e-rowcell:not(.e-menu-item):not(.e-editedbatchcell), .e-content td.e-rowcell:not(.e-menu-item):not(.e-editedbatchcell), .e-content td.e-groupcaption:not(.e-menu-item):not(.e-editedbatchcell), .e-content td.e-recordplusexpand:not(.e-menu-item):not(.e-editedbatchcell), .e-content td.e-recordpluscollapse:not(.e-menu-item):not(.e-editedbatchcell), .e-content td.e-detailrowcollapse:not(.e-menu-item):not(.e-editedbatchcell), .e-content td.e-detailrowexpand:not(.e-menu-item):not(.e-editedbatchcell), .e-content th.e-detailcell:not(.e-menu-item):not(.e-editedbatchcell)):is(:focus) {
    box-shadow: unset !important;
}

.e-grid.sf-grid :is(.e-groupdroparea, .e-groupdroparea .e-groupsort, .e-groupdroparea .e-ungroupbutton, .e-headercontent th.e-headercell:not(.e-menu-item):not(.e-editedbatchcell), .e-headercontent td.e-rowcell:not(.e-menu-item):not(.e-editedbatchcell), .e-content td.e-rowcell:not(.e-menu-item):not(.e-editedbatchcell), .e-content td.e-groupcaption:not(.e-menu-item):not(.e-editedbatchcell), .e-content td.e-recordplusexpand:not(.e-menu-item):not(.e-editedbatchcell), .e-content td.e-recordpluscollapse:not(.e-menu-item):not(.e-editedbatchcell), .e-content td.e-detailrowcollapse:not(.e-menu-item):not(.e-editedbatchcell), .e-content td.e-detailrowexpand:not(.e-menu-item):not(.e-editedbatchcell), .e-content th.e-detailcell:not(.e-menu-item):not(.e-editedbatchcell)):is(:focus-visible) {
    box-shadow: 0 0 0 1px var(--mud-palette-primary) inset;
    background-color: var(--mud-palette-primary) !important;
}

/* SRCI-2408 pour pallier problème de barre resize qui disparaît */
.e-grid.e-resize-lines .e-headercell .e-rhandler {
    border-right: 1px solid var(--rhandler-color) !important;
}

/* PdfViewer */

/* champ numérique */
.e-numerictextbox {
    padding: 0 !important;
}

/* Dialog Visualisation mobile */
.apercu-document-dialog-mobile {
    overflow-y: hidden;
    overflow-x: auto;
    height: 100% !important;
    padding: 0 !important;
}

    .apercu-document-dialog-mobile .e-pdfviewer {
        height: 100% !important;
        width: 100% !important;
    }

/* Pour masquer la rotation des annotations */
#rotateThumb,
#pivotLine {
    display: none !important;
    pointer-events: none !important;
}
