:root{
    --mud-zindex-popover:1400!important;
}

.slide-init {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.scrollbar::-webkit-scrollbar {
    width: 16px;
    cursor: pointer
}

.scrollbar::-webkit-scrollbar-track {
    background: transparent;
    border: 3px solid transparent
}

.scrollbar::-webkit-scrollbar-thumb {
    background: rgba(59,69,78,.1);
    border-radius: 100vh;
    background-clip: padding-box;
    border: 5px solid transparent;
    box-shadow: inset 0 0 15px 15px transparent;
    -webkit-transition: box-shadow .5s;
    transition: box-shadow .5s
}

.scrollbar::-webkit-scrollbar-thumb:hover {
    box-shadow: inset 0 0 15px 15px rgba(59,69,78,.4)
}

.scrollbar:hover::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 15px 15px rgba(59,69,78,.2)
}

/*KGridDisplay*/

.kgrid {
    background-color: white;
}

.kgrid > .row {

    display: flex;
    flex-direction: row;
    width: 100%;
    border-bottom: 1px solid lightgray;
}

.row > .column {
    flex: 1;
    border-right: 1px solid lightgray;
}

.row:last-child {
    border-bottom: none;
}

.row > .column:last-child {
    border-right: none;
}

/* slide.css */
.slide-hidden {
    overflow: hidden;
    animation-name: bounceOutDown, heighOut;
    animation-duration: 0.5s, 0.2s;
    animation-timing-function: ease-in-out, ease-in-out;
    animation-fill-mode: forwards, forwards;
    animation-delay: 0s, 0.2s;
}

.slide-visible {
    overflow: hidden;
    animation-name: heighIn, bounceInUp;
    animation-duration: 0.2s, 1s;
    animation-timing-function: ease-in-out, ease-in-out;
    animation-fill-mode: forwards, forwards;
    animation-delay: 0.4s, 0s;
}

.table-line-error * {
    color: red !important;
    font-weight: 600;
}

@keyframes heighIn {
    from {
        max-height: 0;
    }
    to {
        max-height: 100vh;
    }
}

@keyframes heighOut {
    from {
        max-height: 100vh;
    }
    to {
        max-height: 0;
    }
}

@keyframes bounceInUp {
    from,
    60%,
    75%,
    90%,
    to {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }

    from {
        opacity: 0;
        transform: translate3d(0, 3000px, 0) scaleY(5);
    }

    60% {
        opacity: 1;
        transform: translate3d(0, -20px, 0) scaleY(0.9);
    }

    75% {
        transform: translate3d(0, 10px, 0) scaleY(0.95);
    }

    90% {
        transform: translate3d(0, -5px, 0) scaleY(0.985);
    }

    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes bounceOutDown {
    20% {
        transform: translate3d(0, 10px, 0) scaleY(0.985);
    }

    40%,
    45% {
        opacity: 1;
        transform: translate3d(0, -20px, 0) scaleY(0.9);
    }

    to {
        opacity: 0;
        transform: translate3d(0, 2000px, 0) scaleY(3);
    }
}

/*CardView css*/

.kCardContainer {

}

.kCardView {
    display: grid;
}

.k-card {
    transition: box-shadow 0.3s ease-in-out, transform 0.1s linear;
}

.k-card:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

/*KListManagement*/

.delete_column {
    width: 60px;
}

/*.mud-table-container*/
/*{*/
/*    overflow-y: hidden!important;*/
/*}*/

.mud-table-dense * .mud-table-row .mud-table-cell {
    padding: 6px 24px 11px 16px;
    padding-inline-start: 16px;
    padding-inline-end: 24px;
}

.detailed-table tr:nth-child(odd) .mud-table-cell:not(th)
{
    border-bottom: none transparent 0 !important;

}

/*KSelectGroup*/
/*noinspection ALL*/
.k-radio-group .mud-radio, .k-check-group .mud-checkbox {
    /* Enlever le style par défaut de MudBlazor pour les boutons radio */
    padding: 5px;
    width: 100%;
    margin-bottom: 5px;
    border: 1px solid var(--mud-palette-lines-default);
    transition: box-shadow 0.3s;
    margin-left: 0;
}

.k-check-group {
}

/*noinspection ALL*/
.k-radio-group .mud-radio:has(>span>span>input[type=radio]:checked),
.k-check-group .mud-checkbox:has(>span>input[type=checkbox]:checked) {
    /* Style lorsqu'un bouton radio est sélectionné */
    border-color: rgba(var(--mud-palette-info-rgb)); /* Bleu, ou la couleur de votre choix */
    background-color: rgba(var(--mud-palette-info-rgb), 0.06);
}

.k-radio-group .mud-radio:hover,
.k-check-group .mud-checkbox:hover {
    /* Effet de survol sur le label */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.k-hdisplay {
    position: relative;
}

.k-hdisplay .k-hover-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
    pointer-events: none;
}

.k-hdisplay:hover .k-hover-content {
    opacity: 1;
}

/*Carousel*/

.media-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 20px;
}

.media-container .media-scroller{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 5px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.media-container .previous, .media-container .next {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    bottom: 20px;
    width: 40px;
    opacity: 0;
    transition: opacity 100ms;
    background-color: rgba(0,0,0,0.3);
    color: white;
    cursor: pointer;
}

.media-container .previous {
    left: 0;
}

.media-container .next {
    right: 0;
}

.media-container .navigators {
    position: absolute;
    display: flex;
    flex-direction: row;
    gap: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.media-container .navigators > * {
    width: 20px;
    height: 3px;
    background-color: black;
    cursor: pointer;
}

.media-container .navigators .selected {
    /*noinspection CssUnresolvedCustomProperty*/
    background-color: var(--mud-palette-info);
}

.media-container:hover .previous, .media-container:hover .next {
    opacity: 1;   
}

.media-container .media-scroller img {
    width:100%;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
}

.media-container .media-scroller .media-group {
    display: grid;
    gap: 5px;
}

.preview {
    height: 100dvh;
    width: 100%;
    display: flex;
    justify-content: center;
}

.preview .a4-page {
    width: 210mm;
    height: 297mm;
    page-break-after: always;
}

.preview .a4-page div:first-of-type{
    max-height: 100vh!important;
    width: 100%;
}

@media print {
    .preview .a4-page {
        /* Styles pour l'impression */
    }
    
    .preview .noprinter {
        display: none;
    }
}

/*Style pour le Drawer Inside Box To SLide*/

.kdrawer-slide {
    position: absolute;
    right: 0;
    bottom: 0;
    top:0;
    animation: kopendialogright .3s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

/*Style pour le dialog slide*/

.kedit-dialog {
    position: absolute;
    right: 0;
    bottom: 0;
    top:0;
    width: 100%;
    max-height: 100vh;
    animation: kopendialogright .3s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

.kedit-header-border {
    border-bottom: 1px solid rgba(0,0,0,.15);
}

.kedit-dialog-background {
    backdrop-filter: blur(10px);
}

@keyframes kopendialogright {
    0% {
       opacity: 0;
        transform: translateX(120%);
    }
    1% {
        opacity: 1;
        transform: translateX(100%);
    }
    100%{
        transform: translateX(0%);
    }
}

.hide-on {
    opacity: 0;
    display: none;
    
    transition: opacity 0.5s, display 0.5s;
}