body{
    overflow: hidden !important;
}

.wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar-left {
    display: flex;
    flex-direction: column;
    z-index: 1111;    
    min-width: 170px !important;
    width: 20% !important;
    max-width: 200px !important;
    background-color: var(--asi-wp-menu-color-background) !important;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
}

.sidebar-left.show {
    transform: translateX(0);
}

.dashboard-main-container {
    flex: 1;
    background-color: #ffffff;
    margin-left: clamp(170px, 20%, 200px);
    transition: margin-left 0.3s ease;
    padding: 0px !important;
    display: flex;
    flex-direction: column;
}

.toggle-button {
    display: none;
    /* Ẩn nút toggle mặc định */
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    /* Đảm bảo nút toggle luôn ở trên cùng */
}

.main-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 999 !important;
}

.main-overlay.show {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 999 !important;
}



.sidebar-logo {
    padding: 0.5rem 0.2rem;
}

.sidebar-logo a {
    width: 100%;
    height: auto;
    display: block;
    text-align: center;
}

.sidebar-logo a img {
    width: 80%;
    height: auto;
}

.sidebar-nav {
    padding: 0;
}

.sidebar-header {
    color: #e9ecef;
    font-size: .75rem;
    padding: 1.5rem 1.5rem .375rem;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: #e9ecef;
    position: relative;
    display: block;
    font-size: 1rem;
}

.sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

.sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}


.btn-toggler {
    padding: 0.1em 0.3em;
    display: none;

}

.navbar-toggler-icon {
    width: 1.3em;
    height: 1.3em;
    color: #393F4C;
}

.asi-pw-dashboard-logo {
    padding: 0.2em 0.35em !important;
    text-align: center !important;
}

.asi-pw-dashboard-logo>img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
}

.asi-pw-sidebar-divider {
    width: 100% !important;
    border: 0px !important;
    border-top: 1px solid rgba(255, 255, 255, .15) !important;
    margin: 0px !important;
    padding: 0px !important;
}

.asi-pw-dashboard-menu-left ul {
    list-style-type: none !important;
    padding: 0px !important;
    margin: 0px !important;
}

.asi-pw-dashboard-menu-left ul li {
    list-style-type: none !important;
    padding: 0.1em 0.3em 0.1em 0.5em !important;
}

.asi-pw-dashboard-menu-left ul li a {
    font-size: var(--asi-wp-menu-item-size-text);
    color: #ffffff;
    text-decoration: none;
    color: white;
    padding: 0.2em 0.3em;
    margin: 5px 0;
    display: block;
    border-radius: 5px;
}

.asi-pw-dashboard-menu-left ul li a i {
    margin-right: 0.35em !important;
}

.asi-pw-sidebar-divider {
    width: 100% !important;
    border: 0px !important;
    border-top: 1px solid rgba(255, 255, 255, .15) !important;
    margin: 0px !important;
    padding: 0px !important;
}

.asi-pw-sidebar-menu-item-margin-top {
    margin-top: 30px;
}

.asi-pw-sidebar-menu-item-divider-bottom {
    border: 0px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .15) !important;
}

.asi-pw-dashboard-menu-left ul li:hover {
    background-color: var(--asi-wp-menu-item-color-background-hover) !important;
}

.asi-pw-dashboard-menu-left ul li.asi-pw-menu-active {
    background-color: var(--asi-wp-menu-item-color-background-active) !important;
}


.asi-pw-dashboard-menu-left ul li:hover>a {
    color: white !important;
}

.asi-pw-dashboard-menu-left ul li:active {
    background-color: var(--asi-wp-menu-item-color-background-active) !important;
}

.asi-pw-dashboard-menu-left ul li.asi-pw-menu-active {
    background-color: var(--asi-wp-menu-item-color-background-active) !important;
}

#asi_wp_dashboard_sidebar_menu_new_quote i.fa-plus:before {
    background: #0068ad !important;
    padding: 0.2em !important;
    border-radius: 3px !important;
}

.asi-pw-dashboard-main-content-header {
    width: 100% !important;
    height: var(--asi-wp-header-height) !important;
    min-height: var(--asi-wp-header-height) !important;
    max-height: var(--asi-wp-header-height) !important;
    line-height: var(--asi-wp-header-height) !important;
    background: #fff !important;
    display: inline-block !important;
    z-index: 999 !important;
    position: fixed !important;
    right: 0 !important;
    box-shadow: 0 2px 5px rgb(0 0 0 / 15%) !important;
}

.asi-pw-dashboard-header-user-info {
    display: block !important;
    position: absolute !important;
    right: 1em !important;
    line-height: var(--asi-wp-header-height) !important;
}

.asi-pw-dashboard-menu-toggler {
    display: none ;
    font-size: 1.3em ;
    cursor: pointer ;
    color: #333333 ;
    position: absolute !important;
    top: 0.15em !important;
    left: 0.5em !important;
    line-height: 30px;
}

.asi-pw-dashboard-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 999 !important;
}

.asi-pw-dashboard-overlay.active {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 999 !important;
}

.asi-pw-dashboard-header-user-info {
    display: block !important;
    position: absolute !important;
    right: 1em !important;
    line-height: var(--asi-wp-header-height) !important;
}

.asi-wp-user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.asi-wp-username {
    font-size: 1em;
    color: #202020;
}
.padding-dashboard{
    padding: 0.5em 1em 1em !important;
}

.asi-pw-dashboard-main-content-container {
    margin-top: 34px !important;
    /* padding: 0.5em 1em 1em !important; */
    display: flex !important;
    flex-direction: column;
    overflow: auto !important;
    height: 100vh;
    background: #ecf0f3;
}

.asi-pw-project-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-direction: row;
}

.asi-pw-project-page-header-item-left {
    width: 30%;
    text-align: left;
}

.asi-pw-btn-group {
    display: inline-flex !important;
}


.asi-pw-project-page-header-item-right {
    width: 70%;
    text-align: right;
}

.asi-wp-search-input-container {
    position: relative !important;
    display: inline-block !important;
}

.asi-wp-search-input-container input[type="search"] {
    padding: 0.55em 0.55em 0.55em 2em !important;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 250px;
    color: #000;
}

.asi-wp-search-input-container .search-icon {
    position: absolute;
    top: 0.3em;
    left: 0.35em;
    font-size: 16px;
    color: #b3b3b3;
    pointer-events: none;
}


.asi-pw-project-page-header-button {
    font-family: var(--asi-wp-font-family) !important;
    padding: 0.35em 0.55em !important;
    border: 1px solid var(--asi-wp-button-color-border) !important;
    background-color: var(--asi-wp-button-color-background) !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    color: var(--asi-wp-button-color-text) !important;
    margin: 0.1em 0.2em !important;
    font-size: var(--asi-wp-button-size-text) !important;
    display: inline-block !important;
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Standard */
}

.asi-pw-project-page-header-button:active {
    transform: scale(0.95);
}

button.asi-pw-project-page-header-button {
    padding: 0.55em 0.75em !important;
}

span.asi-pw-project-page-header-button {
    padding: 0.4em 0.6em !important;
}

a.asi-pw-project-page-header-button {
    padding: 0.35em 0.55em !important;
}


.asi-pw-project-page-header-button i.fas {
    color: var(--asi-wp-button-color-text) !important;
}

.asi-pw-project-page-header-button:hover {
    background-color: var(--asi-wp-button-color-background-hover) !important;
    color: var(--asi-wp-button-color-text-hover) !important;
}

.asi-pw-project-page-header-button .fusion-button-text {
    color: var(--asi-wp-button-color-text) !important;
}

.asi-pw-project-page-header-button:hover .fusion-button-text,
.asi-pw-project-page-header-button:hover i.fas {
    color: var(--asi-wp-button-color-text-hover) !important;
}

/*---------------------------- style for group button -----------------------------------------*/
.asi-pw-btn-group {
    display: inline-flex !important;
}

.asi-pw-btn-group:after {
    content: "" !important;
    clear: both !important;
    display: table !important;
}

.asi-pw-btn-group>.asi-pw-btn-group-item {
    font-family: var(--asi-wp-font-family) !important;
    font-size: var(--asi-wp-button-size-text) !important;
    ;
    border: 1px solid var(--asi-wp-grp-button-color-border) !important;
    background-color: var(--asi-wp-grp-button-color-background) !important;
    color: var(--asi-wp-grp-button-color-text) !important;
    cursor: pointer !important;
    float: left !important;
    font-weight: bold !important;
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Standard */
}

.asi-pw-btn-group>.asi-pw-btn-group-item:not(.active):active {
    transform: scale(0.98);
}

.asi-pw-btn-group>button.asi-pw-btn-group-item {
    padding: 0.55em 0.75em !important;
}

.asi-pw-btn-group>a.asi-pw-btn-group-item {
    padding: 0.35em 0.55em !important;
}

.asi-pw-btn-group>span.asi-pw-btn-group-item {
    padding: 0.55em 0.75em !important;
}


.asi-pw-btn-group>button:not(:last-child),
.asi-pw-btn-group>a.asi-pw-btn-group-item:not(:last-child),
.asi-pw-btn-group>span.asi-pw-btn-group-item:not(:last-child) {
    border-right: none !important;
}


.asi-pw-btn-group>button:last-child,
.asi-pw-btn-group>a.asi-pw-btn-group-item:last-child,
.asi-pw-btn-group>span.asi-pw-btn-group-item:last-child {
    border-radius: 0px 5px 5px 0px;
}

.asi-pw-btn-group>button:first-child,
.asi-pw-btn-group>a.asi-pw-btn-group-item:first-child,
.asi-pw-btn-group>span.asi-pw-btn-group-item:first-child {
    border-radius: 5px 0px 0px 5px;
}

.asi-pw-btn-group>button.active,
.asi-pw-btn-group>a.asi-pw-btn-group-item.active,
.asi-pw-btn-group>span.asi-pw-btn-group-item.active {
    color: var(--asi-wp-grp-button-color-text-active) !important;
}

.asi-pw-btn-group>button:not(.active):hover,
.asi-pw-btn-group>a.asi-pw-btn-group-item:not(.active):hover,
.asi-pw-btn-group>span.asi-pw-btn-group-item:not(.active):hover {
    background-color: var(--asi-wp-grp-button-color-background-hover) !important;
    color: var(--asi-wp-grp-button-color-text-hover) !important;
}

/*---------------------------------------------------------------*/

.asi-pw-btn-group .btn-group-item .fusion-button-text {
    color: #202020 !important;
    font-size: 0.9em !important;
}


.asi-pw-btn-group .btn-group-item {
    padding: 0.5em 0.6em !important;
    border: 1px solid #868686 !important;
    background-color: #fff !important;
    color: #202020 !important;
    cursor: pointer !important;
    float: left !important;
    font-weight: bold !important;
    font-size: 0.9em !important;
}

.asi-pw-btn-group .btn-group-item:not(:last-child) {
    border-right: none !important;
}


.asi-pw-btn-group .btn-group-item-last-child {
    border-radius: 0px 5px 5px 0px;
}

.asi-pw-btn-group .btn-group-item-first-child {
    border-radius: 5px 0px 0px 5px;
}


.asi-pw-btn-group:after {
    content: "" !important;
    clear: both !important;
    display: table !important;
}

.asi-pw-btn-group .btn-group-item:hover {
    background-color: #585858 !important;
}

.asi-pw-btn-group .btn-group-item:hover .fusion-button-text {
    color: #FFFFFF !important;
}


.asi-wp-search-input-container {
    position: relative !important;
    display: inline-block !important;
}

.asi-wp-search-input-container input[type="search"] {
    padding: 0.35em 0.5em 0.35em 2em !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    width: 250px;
    color: #000;
}

.asi-wp-search-input-container .search-icon {
    position: absolute;
    top: 0.5em;
    left: 0.35em;
    font-size: 16px;
    color: #b3b3b3;
    pointer-events: none;
}

/*------------------ user menu ----------------*/

.asi-pw-dashboard-container{
    margin-top: 0.2em;
    height: 100%;
    overflow: auto;
}

.asi-wp-user-info {
    display: flex;
    align-items: center;
    cursor: default;
}

.asi-wp-profile-pic {
    width: 30px;
    height: 30px;
    margin-right: 0.3em;
}

@media (max-width: 768px) {
    .asi-pw-quote-detail-page-header-nav .breadcrumb-item,
    .asi-pw-project-page-header-nav .breadcrumb-item{
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #asi-wp-quote-project-table th,td{
        font-size: 14px;
    }
    .sidebar-left {
        transform: translateX(-100%);
        /* Ẩn sidebar ra ngoài màn hình */
        transition: transform 0.3s ease;
        /* Hiệu ứng trượt */
    }

    .dashboard-main-container {
        margin-left: 0;    
        width: 100%;    
    }

    #asi-pw-dashboard-menu-toggler {
        display: block !important;
    }    
}


@media (max-width: 540px) {
    
    .asi-pw-project-page-header {
        display: block !important;
    }

    .asi-pw-project-page-header-item-left,
    .asi-pw-project-page-header-item-right {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        padding: 0.2em 0px !important;
    }
}
#asi_wp_loading_div {
    position: fixed; /* Stay in place */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 999999999; /* Ensure it sits on top of other content */
}
.asi-pw-quote-service-grid{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.asi-option-service-container{
    border: 1px solid #cbced4;
    border-radius: 6px;
    padding: 20px; 
    background: #fff;
    text-align:center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 160px;
    width: 100%;
    height: 150px;
    margin-bottom: 10px;
}
.asi-option-service-container img{
    max-width: 80%;
    max-height: 80%;
    margin-bottom: 10px;
}
.asi-option-service-container .service-label{
    text-align: center;
}
.asi-option-service-container.selected {
    background-color: #337ab7;
    color: #fff;
}
.asi-option-service-container.disable {
    background-color: #fff;
    color: #747474;
    opacity: 0.5;
    pointer-events: none;
    cursor: none;
}
.input-append{
    position: relative;
    width: 100%;
}
.input-append .select-project{
    display: inline-block;
    cursor: pointer;
    overflow: visible;
    margin: 0;
    padding: 1.5em;
    padding-right: 14px;
    border-radius: 3px;
    color: black;
    font-size: 16px;
}
.select-project::placeholder{
    color: black;
}
.ui-autocomplete{
    max-height: 200px;
    overflow-y: auto;
    width: 96%  !important;
}
.ui-menu-item{
    padding: 5px;
}
.ui-menu-item .ui-menu-item-wrapper.ui-state-active {
    background: #e9ecef !important;
    font-weight: bold !important;
    color: #000 !important;
    border: none !important;
} 
.input-append .dropdown-toggle {
    position: absolute;
    top: 1em;
    left: auto;
    bottom: 1px;
    right: 10px;
    pointer-events: none;
}
.input-append .dropdown-toggle::after {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%230F58C5" d="M1.41 0L6 4.58 10.59 0 12 1.41 6 7.41 0 1.41 1.41 0z"/></svg>');
    border: none;
    width: 10px;
    height: auto;
    margin-left: 0.4rem;
    vertical-align: middle;
}
.opacity-muted{
    opacity: 0.5;
}
.project-quote-item{
    cursor: pointer;
}
.asi-quote-list-file-content{
    max-height: 500px;
    overflow: auto;
}
.asi-file-thumbnail{
    width: 100%;
    min-height: 100px;
    max-height: 100%;
}
.asi-quote-file-item{
    cursor: pointer;
}
#material{
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%230F58C5" d="M1.41 0L6 4.58 10.59 0 12 1.41 6 7.41 0 1.41 1.41 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 8px;
    cursor: pointer;
}
#quantity{
    -moz-appearance: textfield;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button
{
  -webkit-appearance: none;
  margin: 0;
}
.asi-quote-file-selected{
    border-color: rgb(13 110 253) !important;
}
.quantity-nav {
    float: right;
    height: 100%;
}
  
.quantity-button {
    position: relative;
    cursor: pointer;
    width: 20px;
    text-align: center;
    color: #1876b4;
    font-size: 20px;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    padding-right: 10px;
}
  
.quantity-button.quantity-up {
    position: absolute;
    height: 50%;
    top: 0;
}

.quantity-button.quantity-down {
    position: absolute;
    bottom: -1px;
    height: 50%;
}
.text-overflow-quote{
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.text-overflow{
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.asi-form-upload,
.asi-pw-dashboard-content{
    display: flex;
    width: 100%;    
    flex-direction: column;
}
.asi-form-upload form{
    width: 100%;
}
#asi-quote-upload-drop-area{
    border: 2px dashed #ccc;
    padding: 20px;
    cursor: pointer;
    background-color: #f9f9f9;
}
#asi-quote-upload-drop-area.dragover{
    background-color: #e9ecef;
    border-color: #007bff;
}
.asi-quote-file-exist{
    max-height: 400px;
    overflow: auto;
}
.asi-quote-file-item-upload:nth-child(even){
    background: #dee2e6;
}
.asi-quote-file-item-upload:nth-child(odd){
    background: #fff;
}
.quote-remove-file{
    cursor: pointer;
    margin-left: 10px;    
}
#asi-quote-upload-file-list{
    margin-top: 15px;
}
.asi-quote-tab .btn{
    border: 1px solid #ccc;
    background: white;
}
.asi-quote-tab .btn.active{
    border: 1px solid #ccc;
    background: white;
    color: #0f58c5;
}
.asi-quote-action-button{
    z-index: 6;
}
#loadingModal{
    display: none;
    position: fixed;
    z-index: 999999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
#loadingModal .modal-content{
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 10%;
}
#loadingModal .spinner-border{
    width: 3rem;
    height: 3rem;
    margin: auto;
}
.asi-pw-quote-detail-page-header-nav .breadcrumb,
.asi-pw-project-page-header-nav .breadcrumb{
    padding: 0;
    margin: 0;
}
.asi-pw-quote-detail-page-header-nav .breadcrumb-item,
.asi-pw-project-page-header-nav .breadcrumb-item{
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#asi-wp-quote-project-table{
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse;
    -webkit-overflow-scrolling: touch;
    table-layout: fixed;
}
#asi-wp-quote-project-table th,td{
    word-wrap: break-word;
    white-space: normal;
}


.asi-wp-user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.asi-wp-user-info {
    display: flex;
    align-items: center;
    cursor: default;
}

.asi-wp-profile-pic {
    width: 30px;
    height: 30px;
    margin-right: 0.3em;
}

.asi-wp-username {
    font-size: 1em;
    color: #202020;
}

.asi-wp-dropdown-menu {
    display: none;
    position: absolute;
    top: 30px;
    right: 0px;
    background-color: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.asi-wp-dropdown-menu li {
    border-bottom: 1px solid #ddd;
}

.asi-wp-dropdown-menu li:last-child {
    border-bottom: none;
}

.asi-wp-dropdown-menu a {
    color: #333;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
}

.asi-wp-dropdown-menu a:hover {
    background-color: #f0f0f0;
    color:#023ab7;
}

.asi-wp-user-info:hover + .asi-wp-dropdown-menu,
.asi-wp-dropdown-menu:hover {
    display: block;
}
