﻿
.fade-effect {
    animation: fadeInOut 0.3s ease-in-out;
}

@keyframes fadeInOut {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}




/* Mặc định (desktop > 768px) */
.main-scrollable {
    margin-top: 68px;
    padding-top: 0px;
    margin-bottom: 0px;
    height: 100dvh;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {

    .main-scrollable {
        margin-top: 60px;
        padding-top: 0px;
        margin-bottom: 85px;
        height: calc(100dvh  - 68px - 85px);
        -webkit-overflow-scrolling: touch;
    }
}

/*.dashboard-container {
    height: 100%;
    overflow-y: auto;*/ /* Cho phép cuộn bên trong dashboard nếu cần */
    /*padding: 16px;
    box-sizing: border-box;
}*/


/*.main-scrollable {
    margin-top: 68px;
    padding-top: 0;
    margin-bottom: 0;
    height: 100dvh;  
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

 
@media (max-width: 768px) {
    .main-scrollable {
        margin-top: 60px;
        margin-bottom: 85px;
        height: calc(100dvh - 120px); 
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}*/

/* --- AppBar dưới cùng --- */
.appbar-bottom {
    position: fixed !important;
    bottom: env(safe-area-inset-bottom, 0);
    left: 0;
    right: 0;
    z-index: 1100;
    height: 85px;
    background-color: var(--mud-palette-surface) !important;
    padding-bottom: env(safe-area-inset-bottom, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}



.appbar-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

/*.appbar-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;    
}*/

/*.appbar-bottom {
    position: fixed !important;
    bottom: env(safe-area-inset-bottom, 0);
    left: 0;
    right: 0;
    z-index: 1100;
    background-color: var(--mud-palette-surface);
    padding-bottom: env(safe-area-inset-bottom, 0);
    height: 85px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
*/


.rounded-search .mud-input-outlined-border {
    border-radius: 50px !important;
}


input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
}



/*.fixed-search {
    position: fixed;
    top: 10;*/ /* hoặc top: 10px; nếu cần cách đỉnh 1 chút */
    /*left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    color: #000000ff;
    background-color: rgba(255, 255, 255, 0.8);
    overflow: hidden;
    backdrop-filter: blur(5px);*/
    /* Tùy chỉnh thêm nếu cần */
    /*padding: 1rem;
    text-align: center;
}*/


/*.mud-dialog {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px);
}*/


.mud-dialog-content {
    padding: 0px !important;
    margin: 0px !important;
}


.mud-dialog .mud-dialog-title {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    padding-left: 4px !important;
}

.custom-dialog-button {
    border-radius: 25px;
    font-size: 1.1rem;
    height: 48px;
}

.mud-button-close {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.selected-row-mobile {
    background-color: rgba(30, 200, 165, 0.07);
}

.noselect {
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none; /* Safari iOS */
    user-select: none; /* Chặn chọn văn bản */
    touch-action: manipulation; /* Hạn chế một số thao tác cảm ứng */
}


@keyframes fadeInOut {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

.fade-logo {
    animation: fadeInOut 6s ease-in-out infinite;
}


.pill-button {
    display: flex;
    justify-content: start; /* This centers the button content within the button */
    align-items: center;
    border-radius: 50px !important;
    margin-bottom: 15px;
    max-width: 350px !important;
    min-width: 200px !important;
    height: 50px;
}

.total-page {
    font-size: 0.5em;
    vertical-align: baseline;
    white-space: nowrap;
}


.shadow-intro {
    color: red;
    text-shadow: 1px 1px 2px pink, 0 0 15px white, 0 0 1px blue;
}

.grey-color {
    color:#9e9e9e;
}

.font-bold {
    font-weight: bold;
}

