.login-form {
    border-radius: 10px;
}
.page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar .nav-menu .dropdown ul.nav-submenu li a.active {
    background: rgba(36, 105, 92, .3);
    border-radius: 10px;
}
.page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar .nav-menu .dropdown ul.nav-submenu li {
    margin: 2px 0;
}
#blah.hide {
    display: none;
}
#blah:not(.hide) {
    position: relative;
    display: inline-block;
    margin: 0.5em;
    padding: 0;
    border: none;
    background-color: #eeeeee;
    width: 120px;
    height: 120px;
    -webkit-box-shadow: 0px 0px 3px #24695c;
    box-shadow: 0px 0px 3px #24695c;
    object-fit: contain;
}
table tr td,
table tr th {
    vertical-align: middle;
}

/* Ô chọn ngày/tháng: chỉ rộng vừa nội dung, không kéo dài full cột (override BS width:100%) */
input.form-control[type="date"],
input.form-control[type="datetime-local"],
input.form-control[type="month"],
input.form-control-sm[type="date"],
input.form-control-sm[type="datetime-local"],
input.form-control-sm[type="month"] {
    display: inline-block;
    width: auto;
    max-width: 12rem;
    min-width: 9.25rem;
    vertical-align: middle;
    flex: 0 0 auto;
}

/* Form filter thống kê: nút sát ô nhập (tránh col rộng đẩy nút ra xa) */
.statistic-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}
.statistic-filter-row .statistic-filter-field {
    flex: 0 0 auto;
    margin-bottom: 0 !important;
}
.statistic-filter-row .statistic-filter-field label.form-label {
    margin-bottom: 0.35rem;
}
select.form-control.statistic-filter-year-select {
    width: auto;
    max-width: 6.5rem;
    min-width: 5.25rem;
    display: inline-block;
}
.img-item-product {
    min-height: 60px;
}
.button-between {
    display: flex;
    justify-content: space-between;
}
p {
    text-align: inherit;
}
.modal-body {
    text-align: left;
}
.mode,
.toggle-full {
    cursor: pointer;
}
.page-main-header .main-header-right .toggle-sidebar {
    padding: 0!important;
}
/* Title + breadcrumb trên thanh header — một hàng ngang (tránh .row BS5 làm mỗi cột width:100%) */
.page-main-header .main-header-right {
    flex-wrap: nowrap !important;
    align-items: center !important;
}
.page-main-header .main-header-center {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
}
.page-main-header .main-header-right .nav-right-toolbar {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}
.header-breadcrumb-title h3,
.header-breadcrumb-title h4,
.header-breadcrumb-title h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.1rem 0;
    line-height: 1.2;
    color: #24695c;
}
.header-breadcrumb-nav {
    padding: 0;
    font-size: 0.78rem;
    background: transparent !important;
}
.header-breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}
@media (max-width: 767.98px) {
    .header-breadcrumb-title h3,
    .header-breadcrumb-title h4,
    .header-breadcrumb-title h5 {
        font-size: 0.9rem;
    }
    .header-breadcrumb-nav {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}

.page-main-header .main-header-right .toggle-sidebar svg {
    padding: 5px 8px;
    width: 35px;
    height: 30px;
    border: 1px solid;
    border-radius: 4px;
}
/* Phân trang + “Số dòng hiển thị” cùng một hàng */
.list-pagination-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 10px;
}
.list-pagination-bar .list-pagination {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: 0;
}
.list-pagination-bar .list-pagination-page-size {
    flex: 0 0 auto;
}
.list-pagination-page-size-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.list-pagination-page-size-label {
    white-space: nowrap;
    margin: 0;
}
.list-pagination-bar .list-pagination-page-size .form-select {
    width: auto;
    min-width: 4.5rem;
}
.list-pagination {
    display: flex;
    justify-content: center;
    padding: 10px;
}
/* Lọc khoảng ngày Từ–Đến cùng một hàng */
.debt-filter-date-range {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
}
.debt-filter-date-range .form-control {
    min-width: 0;
    flex: 1 1 auto;
}
#blah,
.card,
.table-bordered,
.card-header:first-child,
.modal-content {
    border-radius: 10px!important;
}
.btn svg {
    width: 16px;
    margin-right: 10px;
    vertical-align: bottom;
    float: none;
    stroke-width: 2.5px;
}
.btn.delete_item svg {
    width: 16px;
     margin-right: 0px!important;
}
.btn.copy_item svg {
    width: 16px;
    margin-right: 0px!important;
}
.btn-with-svg svg {
    vertical-align: bottom;
    margin-right: 0px!important;
}
label.pay-back-field {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: 5px;
    border-radius: 5px;
}
label.pay-back-field:hover {
    background: rgba(35, 213, 229, 0.26);
}
.btn-group a.btn {
    display: flex;
    align-items: center;
}
.edit-row {
    display: none;
}
.edit-row.active {
    display: contents!important;
}
.table-sort td:hover {
    cursor: move;
}
.select2-results__options::-webkit-scrollbar-track
{
    -webkit-box-shadow: inset 0 0 6px rgba(35, 213, 229, 0.26);
    background-color: #F5F5F5;
}

.select2-results__options::-webkit-scrollbar
{
    width: 5px;
    background-color: #F5F5F5;
}

.select2-results__options::-webkit-scrollbar-thumb
{
    background-color: rgba(35, 213, 229, 0.26);
    border: 1px solid rgba(142, 205, 232, 0.62);
}
.selectize-control {
    padding: 0!important;
}
.selectize-dropdown {
    padding: 2px!important;
}
@media print {
    body * {
        visibility: hidden;
    }
    #print-area, #print-area * {
        visibility: visible;
    }
    #print-area {
        position: fixed;
        top: 0;
        left: 0;
    }
}
.loader-status {
    width: 15px;
    height: 15px;
    border: 1px solid transparent;
    border-left-color: #ffffff;
    border-right-color: #ffffff;
    border-radius: 50%;
    -webkit-animation: 1s loader-02 linear infinite;
    animation: 1s loader-02 linear infinite;
}
.btn-change {
    padding: 0.375rem 0.6rem!important;
}
#ListCustomerDebt .row {
    padding: 10px 0;
    margin: 0;
}
#ListCustomerDebt > .row {
    border-bottom: 1px solid #dddddd;
}

/* Selectize remove_button: × đứng trước mũi tên dropdown, nền tròn (override plugin mặc định right:0) */
.selectize-control.plugin-remove_button.single .selectize-input.has-items,
.selectize-control.plugin-remove_button.single.selectize-no-match-filter .selectize-input {
    padding-right: 3.5rem;
}
.selectize-control.plugin-remove_button .remove-single {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(36, 105, 92, 0.14);
    color: #24695c !important;
    text-decoration: none !important;
    border: none;
    box-sizing: border-box;
    z-index: 2;
}
.selectize-control.plugin-remove_button .remove-single:hover {
    background: rgba(36, 105, 92, 0.28);
    color: #1a4d44 !important;
}
.selectize-control.rtl.plugin-remove_button.single .selectize-input.has-items,
.selectize-control.rtl.plugin-remove_button.single.selectize-no-match-filter .selectize-input {
    padding-right: 8px;
    padding-left: 3.5rem;
}
.selectize-control.rtl.plugin-remove_button .remove-single {
    right: auto;
    left: 2rem;
}

/* Selectize: dòng thông báo khi lọc không trùng option nào */
.selectize-dropdown .option.selectize-no-match-msg {
    cursor: default;
    color: #6c757d;
    font-size: 0.875rem;
    white-space: normal;
    line-height: 1.35;
}

/* Sidebar: badge thông báo chồng góc icon (chuông), không rơi xuống dưới */
.page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar .nav-menu > li a .sidebar-nav-icon-badge-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 15px;
    vertical-align: middle;
}
.page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar .nav-menu > li a .sidebar-nav-icon-badge-wrap svg {
    margin-right: 0;
    vertical-align: middle;
}
.page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar .nav-menu > li a .sidebar-nav-icon-badge {
    position: absolute;
    top: -7px;
    right: -8px;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 4px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 0 2px #fff;
}

/* Phiếu điều chỉnh đơn — nút chờ duyệt (cam, kiểu outline) */
a.btn-sale-adj-pending {
    color: #e65100;
    border: 1px solid #e65100;
    background-color: #fff;
}
a.btn-sale-adj-pending:hover {
    color: #fff;
    background-color: #e65100;
    border-color: #e65100;
}

/* Phiếu điều chỉnh — bảng snapshot: nhóm cột tiêu đề theo ngữ cảnh */
.sale-adj-snap-table thead th.sale-adj-th-product {
    background-color: #eceff1;
    color: #263238;
    vertical-align: middle;
}
.sale-adj-snap-table thead th.sale-adj-th-before {
    background-color: #e3f2fd;
    color: #0d47a1;
}
.sale-adj-snap-table thead th.sale-adj-th-delta {
    background-color: #fff8e1;
    color: #e65100;
}
.sale-adj-snap-table thead th.sale-adj-th-after {
    background-color: #e8f5e9;
    color: #1b5e20;
}

/* Phiếu điều chỉnh — bảng "Toàn đơn" (Hiện tại → Δ → Sau): viền đậm + nền nhóm cột */
.sale-adj-overview-table {
    --adj-border: #cbd5e1;
}
.sale-adj-overview-table th,
.sale-adj-overview-table td {
    border-color: var(--adj-border) !important;
    border-width: 2px !important;
}
.sale-adj-overview-table thead th.adj-ov-h {
    font-weight: 700;
    letter-spacing: .2px;
}
.sale-adj-overview-table thead th.adj-ov-sub {
    font-weight: 600;
}
.sale-adj-overview-table thead th.adj-ov-before {
    color: #0d47a1; /* match "before" tone */
}
.sale-adj-overview-table thead th.adj-ov-delta {
    color: #e65100; /* match "delta" tone */
}
.sale-adj-overview-table thead th.adj-ov-after {
    color: #1b5e20; /* match "after" tone */
}
.sale-adj-overview-table thead th.adj-ov-before {
    background: #dbeafe; /* blue-100 */
}
.sale-adj-overview-table thead th.adj-ov-delta {
    background: #ffedd5; /* orange-100 */
}
.sale-adj-overview-table thead th.adj-ov-after {
    background: #dcfce7; /* green-100 */
}

/* Bảng mặt hàng trong đơn (mở rộng list + modal): tránh chữ trắng trên nền trắng (theme .table / .text-light trong modal) */
.sale-expand-items-table {
    --bs-table-color: #212529;
    --bs-table-bg: #fff;
    font-size: 1rem;
    line-height: 1.45;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    margin-bottom: 0;
}
.sale-expand-items-table tbody {
    color: #212529;
}
.sale-expand-items-table thead tr.bg-primary th {
    background-color: #24695c !important;
    background-image: none !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    vertical-align: middle;
}
.sale-expand-items-table tbody td {
    color: #212529 !important;
    background-color: #fff !important;
}
.sale-expand-items-table tbody td a {
    color: #24695c !important;
}
.sale-expand-items-table tbody td a:hover {
    color: #1b4c43 !important;
}
.sale-expand-items-table tbody td.text-secondary {
    color: #6c757d !important;
}
