#modalGlobalSearch {
    padding-right: 0 !important;
    top: 30px;
}

/* #modalGlobalSearch .modal-content {
    background-color: rgba(255, 255, 255, 0.8);
} */

#modalGlobalSearch .btn-clean {
    z-index: 100;
    position: absolute;
    background: transparent;
    border: none;
    color: grey;
    outline: none;
    right: 0;
    top: 0;
}


#modalGlobalSearch .modal-dialog {
    width: 100%;
    margin: 0;
}


@media(max-width: 768px) {
    #modalGlobalSearch .body-content {
        padding-left: 15px;
        padding-right: 15px;
        margin: 0;
        padding-top: 5px;
    }
}

@media(min-width: 768px) {
    #modalGlobalSearch .body-content {
        height: calc(100vh - 113px);
        margin: 0;
        padding-top: 5px;
        overflow: auto;
    }

    #modalGlobalSearch .header-title {
        float: right;
    }

    #modalGlobalSearch .modal-content {
        /* background-color: rgba(255, 255, 255, 0.8); */
        border-radius: 0;
    }

    #modalGlobalSearch .order-detail-col-form {
        border-left: 1px solid lightgray;
    }
}


#modalGlobalSearch .body-content::-webkit-scrollbar {
    width: 8px;
}

#modalGlobalSearch .body-content::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.44, rgb(122, 153, 217)), color-stop(0.72, rgb(73, 125, 189)), color-stop(0.86, rgb(28, 58, 148)));
}

#modalGlobalSearch .input-search-group {
    width: 100%;
    height: auto;
    display: flex;
    cursor: text;
}


#modalGlobalSearch .search-tools {
    width: calc(100% - 45px);
    border: 1px solid lightgray;
    background-color: #ffffff;
    border-radius: 4px;
    position: relative;
    margin-bottom: 15px;
}

#modalGlobalSearch button.close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 35px;
}

#modalGlobalSearch .search-tools .input-group-button {
    border: none;
    text-align: center;
    background-color: #eee;
    color: #555;
    font-size: 14px;
    font-weight: 400;
    padding: 6px 12px;
    border-right: 1px inset lightgray;
}

#modalGlobalSearch .search-tools a[name=btnSearch] {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}


#modalGlobalSearch .search-tools .input-group-button:hover {
    color: #48a1bb !important;
}

#modalGlobalSearch .search-pagination {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#modalGlobalSearch .search-pagination .pagination {
    margin: 0;
}

#modalGlobalSearch .input-search-group input[name=txtKeySearch] {
    border: none;
    background-color: transparent;
    -webkit-box-shadow: none;
    box-shadow: none;
    flex: 1;
    min-width: 0;
    cursor: text;
}

#modalGlobalSearch .input-search input:focus {
    border: none;
    background-color: transparent;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

/* Dropdown Content (Hidden by Default) */
#modalGlobalSearch .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    margin-top: 36px;
    margin-left: 75px;
    width: calc(100% - 75px);
    max-height: 450px;
    overflow: auto;
    max-height: calc(100vh - 95px);
    min-height: 100px;
    z-index: 99;
}

/* Links inside the dropdown */
#modalGlobalSearch .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
#modalGlobalSearch .dropdown-content a.hovered {
    background-color: #04AA6D !important;
    color: #ffffff !important;
}

#modalGlobalSearch .checked-icon {
    display: inline-block;
    width: 25px;
    
}

#modalGlobalSearch .checked-icon .fa-check {
    color: green
}

#modalGlobalSearch .checked-icon .fa-check {
    display: none;
}

#modalGlobalSearch a[checked] .checked-icon .fa-check {
    display: block;
}

#modalGlobalSearch .dropdown-content a:hover .checked-icon .fa-check {
    color: white;
}



#modalGlobalSearch .type-tag-item {
    padding: 3px 7px;
    color: white;   
    background-color: #48a1bb;
    border-radius: 3px;
    display: inline-block;
}

#modalGlobalSearch .type-tag-item .btn-remove {
    margin-left: 5px;
    color: #ffb4ba;
}


#modalGlobalSearch .type-tag-item .btn-remove:hover {
    color: #ff6a76;
}


#modalGlobalSearch div.type-tags {
    gap: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
    padding: 3px 5px;
    flex-shrink: 0;
    min-width: 0;
}


#modalGlobalSearch .text-highlight.highlight-enabled {
    font-weight: bold;
    background-color: lemonchiffon;
}


#modalGlobalSearch .search-result p {
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
   -webkit-line-clamp: 2; /* number of lines to show */
           line-clamp: 2;
   -webkit-box-orient: vertical;
    word-wrap: break-word;
    white-space: pre-wrap;
}


#modalGlobalSearch .search-loading-zone {
    width: 100%;
    padding: 30px;
}


#modalGlobalSearch .search-loading-zone .search-loading {
    background-image: url('/static/H2Tech/images/loading_circle.gif');
    background-size: 80px 80px;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 80px;
    display: none;
}

#modalGlobalSearch .hr-line-dashed {
    height: 1px;
    width: 98%;
    margin: 8px;
}

#modalGlobalSearch .search-result .search-result-title {
    margin-bottom: 3px;
    margin-top: 0;
    font-size: 18px;
}

#modalGlobalSearch .search-loading-zone button[name=btnLoadMoreResult] {
    display: none;
}

#modalGlobalSearch .data-level-container {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    display: inline-block;
    padding: 2px;
    margin-left: 8px;
    padding-bottom: 3px;
}

#modalGlobalSearch .data-level-container.data-level-1 {
    background-color: green;
    color: white;
}

#modalGlobalSearch .data-level-container.data-level-2 {
    background-color: greenyellow;
    color: gray;
}

#modalGlobalSearch .data-level-container.data-level-3 {
    background-color: yellow;
    color: gray;
}

#modalGlobalSearch .data-level-container.data-level-4 {
    background-color: gray;
    color: white;
}

#modalGlobalSearch a[name=btnHighlight].highlight-enabled {
    background-color: lightskyblue;
}

/* Ngăn select text trên label-global-search-nav */
.label-global-search-nav {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}