/* ==========================================================================
   RESET & BASE UTILITIES
   ========================================================================== */

/* Masquer les barres de défilement */
.noscrollbar {
    overflow: hidden;
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
}

.noscrollbar::-webkit-scrollbar,
.noscrollbar::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

.noscrollbar::-webkit-scrollbar-thumb,
.noscrollbar::-webkit-scrollbar-track,
.noscrollbar::-webkit-scrollbar-corner {
    background: transparent;
    border: 0 none;
    border-radius: 0;
}

.noscrollbar::-webkit-scrollbar-thumb:hover,
.noscrollbar::-webkit-scrollbar-thumb:active,
.noscrollbar::-webkit-scrollbar-track:hover,
.noscrollbar::-webkit-scrollbar-track:active {
    background: transparent;
}

/* Hauteur minimale de page */
#pagefocus {
    min-height: 100vh !important;
}

/* Désactiver le curseur */
.stop-cursor {
    cursor: not-allowed !important;
}

/* Style pour texte barré */
.barre {
    text-decoration: line-through;
}

/* Effet de grisaille */
.grayhide {
    -webkit-filter: grayscale(80%);
    filter: grayscale(80%);
    transition: filter 1.0s ease;
}

/* ==========================================================================
   COMPOSANTS PERSONNALISÉS (Bubble)
   ========================================================================== */

/* Boîte positionnée */
.poboxtal {
    position: absolute !important;
    top: 57px !important;
    z-index: 9999 !important;
}

/* Images à hauteur contrôlée */
.classimage {
    width: auto !important;
    max-height: 40px !important;
}

.nwimage img {
    width: auto !important;
    left: 0 !important;
}

/* ==========================================================================
   DATEPICKER - STYLES PERSONNALISÉS
   ========================================================================== */

/* Conteneur principal */
.picker {
    color: #1A1A1A !important;
}

.picker__holder {
    position: absolute;
    background: #ffffff;
    border: 0 solid #aaaaaa !important;
    border-top-width: 0;
    border-bottom-width: 0;
    border-radius: 8px !important;
}

.picker--opened .picker__holder {
    max-height: 35em;
}

/* Cadre et en-tête */
.picker__frame {
    padding: 15px 1px !important;
    font-size: 14px !important;
    letter-spacing: 0.25px !important;
    border: none !important;
}

.picker__header {
    margin-top: 1.0em !important;
    letter-spacing: 0.25px !important;
}

/* Sélecteurs mois/année */
.picker__select--month,
.picker__select--year {
    font-family: "DM Sans" !important;
    border-radius: 8px !important;
    border: 1px solid #DCDCDC !important;
    padding: 2px 11px !important;
    height: 32px !important;
    letter-spacing: 0.25px !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    background-size: 12px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #fff !important;
}

.picker__select--month {
    width: 40% !important;
}

.picker__select--year {
    width: 24% !important;
}

.picker__select--month:focus,
.picker__select--year:focus {
    border-color: #0089ec !important;
    border-width: 2px !important;
}

/* Supprimer la pseudo-flèche par défaut */
.picker__select--month::after,
.picker__select--year::after {
    display: none !important;
    content: none !important;
}

/* Tableau des jours */
.picker__table {
    margin-top: 1.8em !important;
    margin-bottom: 1.8em !important;
    border-collapse: separate !important;
    border-spacing: 4px !important;
}

.picker__weekday {
    font-family: "Tp Medium" !important;
    font-size: 11px;
    padding: 9px 0 5px 0 !important;
    border-radius: 8px !important;
    line-height: 1 !important;
    height: 30px !important;
    color: #6c7c90;
    font-weight: 400;
    text-transform: uppercase !important;
}

.picker__day {
    padding: 0.3125em 0;
    font-weight: 200;
    border: 1px solid transparent;
    border-radius: 5px !important;
}

.picker__day--outfocus {
    color: #888888 !important;
}

/* Jours désactivés */
.picker__day--disabled,
.picker__day--disabled:hover {
    background: #f5f5f5;
    border-color: #f5f5f5;
    color: #dddddd;
    cursor: default;
}

.picker--focused .picker__day--disabled {
    background: #F5F5F5;
    border-color: #F5F5F5;
    color: #888888;
    cursor: default;
}

/* Navigation (précédent / suivant) */
.picker__nav--prev,
.picker__nav--next {
    position: absolute;
    padding: 2px 0 0 0 !important;
    width: 32px !important;
    height: 29px !important;
    box-sizing: content-box;
    top: -6px !important;
    border-radius: 8px !important;
}

.picker__nav--prev {
    left: 4px;
}

.picker__nav--next {
    right: 4px;
}

.picker__nav--prev:hover,
.picker__nav--next:hover {
    cursor: pointer;
    color: #000000;
    background: #b1dcfb !important;
}

.picker__nav--prev:before,
.picker__nav--next:before {
    content: "" !important;
    display: block !important;
    width: 20px !important;
    height: 26px !important;
    margin: 0 auto !important;
    border: none !important;
    background-size: 50% 50% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.picker__nav--prev:before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="black" viewBox="0 0 16 16"><path d="M11 1 L5 8 L11 15" stroke="black" stroke-width="2" fill="none"/></svg>') !important;
}

.picker__nav--next:before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="black" viewBox="0 0 16 16"><path d="M5 1 L11 8 L5 15" stroke="black" stroke-width="2" fill="none"/></svg>') !important;
}

/* Navigation désactivée */
.picker__nav--disabled:hover {
    cursor: not-allowed !important;
    opacity: 0.4 !important;
    background-color: #F5F5F5 !important;
}

.picker__nav--disabled:before {
    opacity: 0.4 !important;
    background-color: transparent !important;
}

/* Pied de page (boutons) */
.picker__footer {
    text-align: center;
    display: flex !important;
    justify-content: center !important;
    gap: 6px !important;
    letter-spacing: 0.25px !important;
}

.picker__button--today,
.picker__button--clear,
.picker__button--close {
    border: 0 solid #ffffff;
    background: #F5F5F5;
    font-size: 13px !important;
    border-radius: 8px !important;
    padding: 0.66em 0;
    font-weight: 500 !important;
    width: 32% !important;
    display: inline-block;
    vertical-align: bottom;
}

.picker__button--clear:before {
    top: -0.25em;
    width: 0.66em;
    border-top: 2px solid #6c7c90 !important;
}

.picker__button--close:before {
    content: "×";
    top: -5px !important;
    vertical-align: top;
    font-size: 20px !important;
    font-weight: 400 !important;
    margin-right: 0.15em;
    color: #6c7c90 !important;
}

/* Ajustements responsive */
@media (min-width: 0em) {
    .picker__select--month,
    .picker__select--year {
        margin-top: -0.5em !important;
    }
}

/* ==========================================================================
   DROPDOWN (CHEVRON PERSONNALISÉ)
   ========================================================================== */

.dropdown-chevron {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiICB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiAgIDxwYXRoIGZpbGw9IiM2QzdDOTAiIGQ9Ik03LjQxLDguNThMMTIsMTMuMTdMMTYuNTksOC41OEwxOCwxMEwxMiwxNkw2LDEwTDcuNDEsOC41OFoiIC8+Cjwvc3ZnPgo=);
    background-repeat: no-repeat, repeat;
    background-position: right 10px top 50%, 0 0 !important;
    background-size: 1.0em auto, 100%;
}

/* ==========================================================================
   SCROLLBARS PERSONNALISÉES
   ========================================================================== */

/* Scrollbar pour .tableMat */
.tableMat::-webkit-scrollbar {
    width: 16px !important;
}

.tableMat::-webkit-scrollbar-thumb {
    background-color: #DCDCDC !important;
    border-radius: 10px !important;
    border: 4px solid transparent !important;
    background-clip: padding-box !important;
}

.tableMat::-webkit-scrollbar-track {
    background: rgba(169, 171, 179, 0.0) !important;
    border-radius: 10px !important;
    padding-top: 20px !important;
}

/* Scrollbar pour .tablesearch */
.tablesearch::-webkit-scrollbar {
    width: 16px !important;
}

.tablesearch::-webkit-scrollbar-thumb {
    background-color: #A9ADB2 !important;
    border-radius: 20px !important;
    border: 4px solid transparent !important;
    background-clip: padding-box !important;
}

.tablesearch::-webkit-scrollbar-track {
    background: #F0F1F5 !important;
    border-radius: 0 !important;
    padding-top: 20px !important;
}