﻿.Investock-center-text {
    text-align: center !important;
}

/* Scanner
/*/
/* Mobile devices (less than 768px) */
@media (max-width: 767.98px) {
    .carousel-responsive {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
        aspect-ratio: 1/1 !important;
        max-width: 100% !important;
    }

    .carousel-responsive .mud-carousel-item {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }

    .carousel-responsive .mud-carousel-container {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }

    .carousel-responsive .mud-image {
        height: 300px !important;
        max-height: 300px !important;
        width: auto !important;
        max-width: 100% !important;
    }
    .img{
        height: 300px !important;-
        max-height: 300px !important;
        width:100%;
        object-position:  center !important;
    }
}

/* Desktop devices (768px and above) */
@media (min-width: 768px) {
    .carousel-responsive {
        max-height:50vh;
        width:100%;
        object-fit:contain;
        height: auto;
        aspect-ratio: 4/5 !important;
        max-width: 525px !important;
    }
    .img{
        max-height:50vh;
        width:100%;
        object-fit:contain;
        height: auto;
        border-radius:16px;
        aspect-ratio: 4/5 !important;
        max-width: 525px !important;
    }
}


/**
**********snackbar
 */
@media (max-width: 768px) {
    div#mud-snackbar-container.mud-snackbar-location-bottom-left {
        bottom: 7px !important;
        left: 17px !important;
        max-width: 90% !important;
    }

    div#mud-snackbar-container.mud-snackbar-location-bottom-left .mud-snackbar {
        max-width: 350px !important;
        font-size: 13px !important;
        padding: 8px !important;
        margin-bottom: 8px !important;
    }
}

.mud-button-filled {
    box-shadow: 0 3px 1px -2px rgb(0 0 0 / 30%), 0 2px 2px 0 rgb(0 0 0 / 0), 0 1px 5px 0 rgb(0 0 0 / 10%) !important;
}

.mud-dialog {
    box-shadow: 0 3px 1px -2px rgb(0 0 0 / 10%), 0 2px 2px 0 rgb(0 0 0 / 0), 0 10px 10px 0 rgb(0 0 0 / 5%) !important;
}

.mud-nav-link {
    white-space: normal !important;
    padding: 12px 16px 12px 38px;
}

    .mud-nav-link.active:not(.mud-nav-link-disabled) {
        border-right: 3px solid var(--mud-palette-primary);
        background-color: rgba(var(--mud-palette-primary-rgb), 0.1);
    }

.mud-table {
    padding: 20px !important;
    margin-bottom: 20px !important;
}

.mud-card {
    margin-bottom: 20px !important;
}

#blazor-error-ui {
    color: var(--mud-palette-drawer-text);
    background: var(--mud-palette-drawer-background);
}

.mud-overlay-dark {
    backdrop-filter: blur(2px);
}

.mud-card-header .mud-card-header-avatar {
    margin-inline-end: 10px !important;
}

.mud-nav-link {
    padding: 12px 16px 12px 15px !important;
}

.mud-dialog-content {
    max-height: 75vh !important;
    overflow: auto !important;
    overflow-x: hidden !important;
}

.mud-grid-spacing-xs-3 {
    margin: 0px !important;
    margin-left: -12px !important;
}

.mud-table-toolbar
{
    flex-wrap:wrap;
    margin-bottom:20px!important;
}

::-webkit-scrollbar {
    width: 2px!important;
    height: 6px!important;
}
.Investock-nav-child {
    padding-left: 10px !important;
}

.customSwitch .mud-switch {
    margin-top: 19px;
}

/* Applique uniquement au conteneur, pas aux sous-éléments */
.touch-chart {
    touch-action: pan-y !important;
}

html { font-size: 90%; }
body { -webkit-text-size-adjust: 100%; }