﻿html {
    font-size: 14px;
}

.navbar-nav {
    --bs-nav-link-padding-y: 0 !important;
    text-align: center; /* Canh giữa toàn bộ danh sách menu */
    display: inline-block; /* Đảm bảo danh sách menu nằm ngang */
    float: none; /* Loại bỏ float cho danh sách */
}
    .navbar-nav > li {
        float: none; /* Đảm bảo không sử dụng float */
        display: inline-block; /* Hiển thị các mục li trên cùng một dòng */
        vertical-align: middle; /* Canh giữa theo chiều dọc */
        position: relative; /* Định vị cha của dropdown menu */
    }
.navbar-collapse {
    text-align: center; /* Canh giữa menu */
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.toast-container {
    z-index: 9999999999999;
}

[auto-hidden=True] {
    display: none;
}

.context-menu {
    background-color: white;
    position: fixed;
    visibility: hidden;
    border: dotted 1px
}

    .context-menu.active {
        visibility: visible;
        z-index: 999999999999;
    }

    .context-menu .item {
        padding: 10px 15px 10px 10px;
        background-color: white;
        min-width: 300px;
        white-space: nowrap;
    }

        .context-menu .item:hover {
            cursor: pointer;
            background-color: #0d6efd !important;
            color: white !important;
        }

            .context-menu .item:hover i {
                color: white !important;
            }

.table-scroll-top {
    transform: rotateX(180deg);
    scrollbar-color: green;
}

    .table-scroll-top table {
        transform: rotateX(180deg);
    }

.table-fixed {
    table-layout: fixed !important;
}

.datepicker.datepicker-dropdown.dropdown-menu {
    z-index: 999999999 !important;
}

.container-loading {
    z-index: 9999999999 !important;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-align: center;
    opacity: 0.8;
    background: black;
}

    .container-loading div.center {
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }

        .container-loading div.center div.loader {
            display: flex;
            justify-content: space-between;
            width: 500px;
        }

        .container-loading div.center div.loader {
            height: 40px;
            width: 800px;
        }

.loader--dot {
    animation-name: loader;
    animation-timing-function: ease-in-out;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    height: 40px;
    width: 40px;
    border-radius: 100%;
    background-color: black;
    position: absolute;
    border: 2px solid white;
}

    .loader--dot:first-child {
        background-color: #0d6efd;
        animation-delay: 2s;
    }

    .loader--dot:nth-child(2) {
        background-color: #198754;
        animation-delay: 1.6s;
    }

    .loader--dot:nth-child(3) {
        background-color: #0dcaf0;
        animation-delay: 1.2s;
    }

    .loader--dot:nth-child(4) {
        background-color: #ffc107;
        animation-delay: 0.8s;
    }

    .loader--dot:nth-child(5) {
        background-color: #dc3545;
        animation-delay: 0.4s;
    }

    .loader--dot:nth-child(6) {
        background-color: #212529;
        animation-delay: 0s;
    }

@keyframes loader {
    15% {
        transform: translateX(0);
    }

    45% {
        transform: translateX(760px);
    }

    65% {
        transform: translateX(760px);
    }

    95% {
        transform: translateX(0);
    }
}

.context-menu
.item-context-menu {
    display: block;
}

.item-context-menu {
    display: none;
}

.current-modal .modal-dialog:has(.canvas-content ),
.current-modal .modal-dialog:has(iframe) {
    width: auto !important;
    max-width: fit-content !important;
}

.current-modal .modal-dialog:has(iframe) {
    min-width: 796px;
}

.current-modal .modal-dialog iframe {
    width: 100%;
    min-width: 100%;
    min-height: calc(100vh - 50px);
}

.current-modal .modal-dialog .canvas-content {
    position: relative;
}

.current-modal .modal-dialog .canvas-content {
    position: relative
}

    .current-modal .modal-dialog .canvas-content .canvas-pdf {
        position: relative
    }

    .current-modal .modal-dialog .canvas-content .canvas-pdf-paint {
        position: absolute;
        top: 0;
        left: 0;
    }

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered .select2-selection__placeholder {
    color: var(--bs-body-color);
}

.date-time-picker,
.date-picker {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L64 64C28.7 64 0 92.7 0 128l0 16 0 48L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-256 0-48 0-16c0-35.3-28.7-64-64-64l-40 0 0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L152 64l0-40zM48 192l352 0 0 256c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256z' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 15px 15px
}

.date-container .calendar-header {
    padding-top: 10px;
}

.bottom-horizontal-scroll {
    position: fixed;
    bottom: 0px;
    overflow-x: auto;
}

.button-sm {
    font-size: 16px;
    padding: 0.25rem 0.5rem;
}

table.select-data tbody tr.active td:first-child {
    border-left-color: var(--bs-primary);
}

table.select-data tbody tr.active td:last-child {
    border-right-color: var(--bs-primary);
}

table.select-data tbody tr.prev-active td {
    border-bottom-color: var(--bs-primary);
}

table.select-data tbody tr.prev-active {
    border-bottom-color: var(--bs-primary);
}

table.select-data:has(tbody tr.active:first-child) thead {
    border-bottom-color: var(--bs-primary);
}

table.select-data tbody tr.active {
    border-bottom-color: var(--bs-primary);
}

table.select-data tbody tr.remove-prev-active {
    border-bottom-color: var(--bs-transparent);
}

table.select-data tbody tr.active td:last-child {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%230d6efd' d='M342.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 178.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l80 80c12.5 12.5 32.8 12.5 45.3 0l160-160zm96 128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 402.7 54.6 297.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l256-256z' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 7px top 7px;
    background-size: 25px 25px;
}

th.d-none,
td.d-none {
    position: unset !important
}

.area-drag-drop {
    min-height: 150px;
    border-style: dashed !important;
}

input[type='file'].support-drag-drop {
    display: none !important;
}

.area-drag-drop.dragover,
.area-drag-drop.dragleave {
    border-style: dotted !important;
}


.form-switch.default .form-check-input {
    height: 1.75rem;
    width: calc(2.5rem + 0.75rem);
    margin-left: -1.5em;
    border-radius: 4rem;
    box-shadow: none;
}

    .form-switch.default .form-switch.default.form-check-input:focus,
    .form-switch.default .form-check-input:checked,
    .form-switch.default .form-check-input {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important
    }

        .form-switch.default .form-check-input:checked {
            background-color: var(--bs-primary);
            border-color: var(--bs-primary);
        }

        .form-switch.default .form-check-input:not(:checked),
        .form-switch.default .form-check-input {
            background-color: var(--bs-danger);
            border-color: var(--bs-danger);
        }

.invoice-search-button {
    font-weight: 500;
    font-family: Montserrat;
    border-radius: 20px;
    background-color: rgb(255, 195, 8);
    color: black;
    border-color: white;
}

.background-color-pvcb {
    background-color: rgb(255, 195, 8) !important;
}

.specialUl {
    position: relative !important;
    z-index: 9999;
}
.dropdown {
    position: relative; /* Thiết lập cha để làm mốc cho menu */
}

.dropdown-menu {
    position: absolute;
    top: 100%; /* Hiển thị ngay dưới dropdown-toggle */
    left: 0;
    z-index: 1050; /* Hiển thị trên các lớp khác */
    display: none; /* Ẩn menu mặc định */
    display: none; /* Ẩn menu mặc định */
    transform: translate3d(0, 0, 0); /* Tối ưu hiệu suất hiển thị */
}

.dropdown:hover .dropdown-menu {
    display: block; /* Hiển thị menu khi hover vào dropdown */
}
.dropdown-menu {
    min-width: 200px;
}

    .dropdown-menu.columns-2 {
        min-width: 400px;
    }

    .dropdown-menu.columns-3 {
        min-width: 600px;
    }

    .dropdown-menu li a {
        padding: 5px 15px;
        font-weight: 300;
    }

.multi-column-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center; /* Căn giữa các phần tử trong cột */
    justify-content: center;
    gap: 50px; /* Khoảng cách giữa các `<li>` */
    list-style: none; /* Loại bỏ dấu đầu dòng */
    padding: 15px; /* Xóa khoảng cách thừa */
    margin: 0; /* Xóa khoảng cách thừa */
}
    .multi-column-dropdown li {
        display: flex;
        flex-direction: column; /* Chia thành 2 hàng */
        align-items: center; /* Căn giữa hình ảnh và văn bản theo chiều ngang */
        gap: 20px; /* Khoảng cách giữa hình ảnh và văn bản */
        text-align: center; /* Căn giữa văn bản */
    }

        .multi-column-dropdown li img {
            height: 70px; /* Điều chỉnh kích thước biểu tượng */
            width: 70px; /* Điều chỉnh kích thước biểu tượng */
        }

        .multi-column-dropdown li a {
            display: block;
            clear: both;
            line-height: 1.428571429;
            color: #333;
            white-space: normal;
            text-decoration: none; /* Loại bỏ gạch chân */
            font-weight: bold; /* In đậm văn bản */
        }

        .multi-column-dropdown li a:hover {
            text-decoration: none;
            color: #262626;
            background-color: #999;
        }

@media (max-width: 767px) {
    .dropdown-menu.multi-column {
        min-width: 240px !important;
        overflow-x: hidden;
    }
}
.navbar-nav .dropdown-menu {
    position: absolute;
}
.onhover-btn :hover {
    color: #009999;
}
.a-not-underlined {
    text-decoration: auto !important;
}