﻿.desktop-hidden 
{
    display: block;
}
.mobile-hidden {
    display: none;
}
.my-element {
    height: calc(100vh - 76px);
}
.my-elementmain {
    height: calc(100vh - 190px);
}
.my-elementindex {
    height: calc(100vh - 190px);
}
@media (max-width: 768px) {
    .my-element {
        height: calc(100vh - 126px);
    }
    .my-elementmain {
        height: calc(100vh - 210px);
    }
    .my-elementindex {
        height: calc(100vh - 210px);
    }
    .login-bg {
        background-position: top center;
    }
}


/* Hide when width ≥ 768px (desktop) */
@media (min-width: 768px) 
{
    .desktop-hidden {
        display: none;
    }
    .mobile-hidden {
        display: block;
    }
   /* .my-element {
        height: calc(100vh - 126px);
    }*/
}

/*@media only screen and (max-width: 400px) {
    .hide-mobile {
        display: none;
    }
}*/
.did-floating-label-content {
    position: relative;
}
.modal-footer {
    padding-bottom: 5px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
}

.did-floating-label {
    color: #66665d !important;
    font-size: 13px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 10px;
    top: 10px;
    padding: 0 5px;
    background: #fff;
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.did-floating-input,
.did-floating-select {
    font-size: 16px;
    display: block;
    width: 100%;
    height: 36px;
    padding: 3px 5px 1px 5px;
    background: #fff;
    color: #323840!important;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: Tahoma, Helvetica,Open Sans;
}
.did-floating-inputError,
.did-floating-selectError {
    font-size: 16px;
    display: block;
    width: 100%;
    height: 36px;
    padding: 0 10px;
    background-color: yellow !important;
    color: #323840!important;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: Tahoma, Helvetica,Open Sans;
}

    .did-floating-input:focus,
    .did-floating-select:focus {
        outline: none;
    }

        .did-floating-input:focus ~ .did-floating-label,
        .did-floating-select:focus ~ .did-floating-label {
            top: -10px;
            font-size: 11px;
            color: #0c63ce!important;
        }

select.did-floating-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

    select.did-floating-select::-ms-expand {
        display: none;
    }

.did-floating-input:not(:placeholder-shown)~.did-floating-label {
    top: -10px;
    font-size: 11px;
}

.did-floating-select:not([value=""]):valid~.did-floating-label {
    top: -10px;
    font-size: 11px;
}

.did-floating-select[value=""]:focus~.did-floating-label {
    top: 11px;
    font-size: 16px;
}

.did-floating-label:hover {
    color: #0c63ce!important;
}

.did-floating-label:focus-within {
    color: #0c63ce!important;
}

.did-floating-label-content:focus {
    border: 2px solid #0c63ce;
}

did-floating-label-content:focus {
    border: 2px solid #0c63ce;
}

.did-floating-input:hover {
    border: 2px solid #0c63ce;
}

.did-floating-input:focus-within {
    border: 2px solid #0c63ce;
}

.did-floating-select:not([multiple]):not([size]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'%3E%3Cpath id='Path_1' data-name='Path 1' d='M371,294l4,6,4-6Z' transform='translate(-371 -294)' fill='%23003d71'/%3E%3C/svg%3E%0A");
    background-position: right 16px top 50%;
    background-repeat: no-repeat;
}

.did-error-input .did-floating-input,
.did-error-input .did-floating-select {
    border: 1px solid #9d3b3b;
    color: #9d3b3b;
}

.did-error-input .did-floating-label {
    font-weight: 600;
    color: #66665d;
}

.did-error-input .did-floating-select:not([multiple]):not([size]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'%3E%3Cpath id='Path_1' data-name='Path 1' d='M371,294l4,6,4-6Z' transform='translate(-371 -294)' fill='%239d3b3b'/%3E%3C/svg%3E%0A");
}

.input-group {
    display: flex;
}

    .input-group .did-floating-input {
        border-radius: 0 4px 4px 0;
        border-left: 0;
        padding-left: 0;
    }

.input-group-append {
    display: flex;
    align-items: center;
    /*   margin-left:-1px; */
}

.input-group-text {
    display: flex;
    align-items: center;
    font-weight: 400;
    height: 36px;
    color: #323840!important;
    padding: 0 5px 0 10px;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
    border: 2px solid #0c63ce;
    border-radius: 4px 0 0 4px;
    border-right: none;
    font-family: Tahoma, Helvetica,Open Sans;
}
.mud-input > input.mud-input-root, div.mud-input-slot.mud-input-root {
    font-size: 16px !important;
    height: 32px !important;
    padding-bottom: 0px !important;
    padding-top: 2px !important;
    padding-left: 5px !important;
    font-family: Tahoma, Helvetica,Open Sans;
    color: #323840 !important;
}

.mud-input > input.mud-input-root-outlined.mud-input-root-margin-dense, div.mud-input-slot.mud-input-root-outlined.mud-input-root-margin-dense {
    font-size: 16px !important;
    color: #323840 !important;
    font-family: Tahoma, Helvetica,Open Sans;
    padding-top: 4px !important;
    padding-bottom: 0px !important;
}
.mud-input-control > .mud-input-control-input-container > .mud-input-label-outlined.mud-input-label-inputcontrol {
    font-size: 13px !important;
    /* color: #000000 !important;*/
    line-height: 13px !important;
    /*  margin-bottom: -1px !important;*/
    /*margin-top: -1px !important;*/
    color: #66665d !important;
    font-family: Tahoma, Helvetica,Open Sans;
}
.spinner {
    border: 16px solid silver;
    border-top: 16px solid #c1902a;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 700ms linear infinite;
    top: 500px;
    left: 50%;
    position: absolute;
}
.spinner-login {
    border: 16px solid silver;
    border-top: 16px solid #0c63ce;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 700ms linear infinite;
    top: 150px;
    left: 48%;
    position: absolute;
}
.form-select-pagesize{
    font-size:16px!important
}
.blur {
    backdrop-filter: blur(10px);
}

.dialog-background {
    background-color: transparent;
}

.dialog-background-title {
    background: rgb(from var(--mud-palette-info-lighten) r g b / 50%);
    color: var(--mud-palette-white);
}

.dialog-background-surface {
    background: rgb(from var(--mud-palette-surface) r g b / 75%);
}
.dialogContent {
    display: block;
    font-size: 16px;
    word-wrap: break-word;
    text-align: center;
    font-style: italic;
    position: relative;
    top: 16px;
}

.dialogText {
    background-color: #D3D3D3;
    padding-right: 4px;
    color: blue;
    font-family: sans-serif !important;
    font-style: italic;

}
.ErrorLabel {
    color: red;
    font-size: 9px!important;
    padding-left: 10px;
}

.mud-icon-button {
    padding-top: 8px !important;
    padding-bottom: 6px !important;
}
.form-control {
    font-size: 16px !important;
    /* font-weight: 500 !important; */
    color: #323840 !important;
    padding-top: 8px !important;
    padding-left: 5px !important;
    height: 36px !important;
    padding-bottom: 3px !important;
    border-radius: 5px !important;
    border-color: #c9c9c9 !important;
    font-family: Tahoma, Helvetica,Open Sans;
}

.form-control-area {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #323840 !important;
    padding-top: 13px !important;
    padding-left: 13px !important;
    height: 120px !important;
    padding-bottom: 5px !important;
    border-radius: 5px !important;
    font-family: Tahoma, Helvetica,Open Sans;
}

.form-control-error {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #323840 !important;
    background-color: yellow !important;
    padding-top: 13px !important;
    padding-left: 13px !important;
    height: 42px !important;
    padding-bottom: 5px !important;
    border-radius: 5px !important;
    font-family: Tahoma, Helvetica,Open Sans;
}

.select2-selection {
    font-size: 1rem !important;
    font-weight: 450 !important;
    color: #323840 !important;
    padding-top: 13px !important;
    padding-left: 20px !important;
    height: 42px !important;
    padding-bottom: 5px !important;
    border-radius: 5px !important;
    font-family: Tahoma, Helvetica,Open Sans;
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.5); /* Màu nền mờ */
    backdrop-filter: blur(3px); /* Làm mờ giao diện sau */
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: auto; /* Chặn sự kiện bên dưới */
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
