* {
    box-sizing: border-box;
}
:root {
    --app-max-width: 1592px;
    --app-max-height: 100%;
    --primary-custom-color: #0070f4;
    --primary-custom-color-deep: #005ac3;
    --secondary-custom-color: #00b63e;
}
/*** All ****/
body,
html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
html,
body,
a,
span,
p,
li,
ul,
ol,
h1,
h2,
h3,
h4,
h5,
h6,
span,
strong {
    font-family: Inter, Arial, Helvetica, sans-serif !important;
}
h1 {
    margin-top: 0 !important;
}
label {
    font-weight: 500 !important;
}
.bg-light-gray {
    background-color: #f0f1f3 !important;
    color: #677484;
}
.bg-light-green {
    background-color: #e6f8ec !important;
    color: #009232 !important;
}
.bg-ligh-orange {
    background-color: #fff9f2 !important;
}
.app-content {
    width: 100%;
    max-width: var(--app-max-width);
    max-height: var(--app-max-height);
    margin: 0 auto;
}
.content {
    min-height: 75vh !important;
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
    padding: 15px 0px 0px !important;
}
.required {
    color: red;
    font-weight: normal;
}
.box-tools .tw-dw-btn,
.pull-right {
    height: 2rem !important;
    min-height: 10px !important;
    border-radius: 8px !important;
    margin: 0.5rem 0 0.5rem 0.5rem;
}
input {
    border-radius: 3px !important;
}
.selection,
.select2-selection,
.select2-container--default .select2-selection--single,
div.dataTables_wrapper div.dataTables_length select,
div.dataTables_wrapper div.dataTables_filter input,
#sell_list_filter_date_range,
select,
textarea,
text,
.form-group input,
.tox-tinymce {
    border-radius: 8px !important;
}
.select2-dropdown,
.daterangepicker {
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    background: #f5f5f5 !important;
}
.input-group input,
.input-group .select2-selection,
.input-group select {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}
.input-group .input-group-addon,
.file-caption-main .file-caption {
    border-top-left-radius: 3px !important;
    border-bottom-left-radius: 3px !important;
}
.tw-dw-btn-lg {
    height: 3rem !important;
    min-height: 3rem !important;
}
.buttons-csv,
.buttons-excel,
.buttons-print,
.buttons-collection,
.buttons-pdf {
    border-radius: 8px !important;
    padding: 0px 13px;
    background-color: #fff;
    color: #3e464f;
}
/* .buttons-csv {
    background-color: #28a745;
    color: white;
}
.buttons-excel {
    background-color: #007bff;
    color: white;
}
.buttons-print {
    background-color: #6c757d;
    color: white;
}
.buttons-collection {
    background-color: #6f42c1;
    color: white;
}
.buttons-pdf {
    background-color: #dc3545;
    color: white;
} */
#mass_delete_form #delete-selected,
#mass_deactivate_form #deactivate-selected {
    border-radius: 0.5em !important;
}
.btn-group .dropdown-toggle,
.btn-hsr {
    color: var(--primary-custom-color) !important;
    border-color: var(--primary-custom-color) !important;
    border-radius: 99px !important;
}
.margin-top-20 {
    margin-top: 0;
}
.swal-overlay {
    background-color: rgba(0, 0, 0, 0.7) !important;
}
.more_btn {
    height: 2rem;
    min-height: 2rem !important;
    background: #636363;
    border-color: unset;
}
.btn-default {
    transition: all 0.3s ease-in-out;
}
.btn-bc {
    background: var(--primary-custom-color) !important;
    border: 1px solid var(--primary-custom-color) !important;
    color: #ffffff !important;
    transition: all 0.3s ease-in-out;
}
.btn-bc:hover {
    background: #ffffff !important;
    border: 1px solid var(--primary-custom-color) !important;
    color: var(--primary-custom-color) !important;
}
.btn-ac,
button[type='submit'],
.btn-sb {
    background: #ffffff !important;
    border: 1px solid var(--primary-custom-color) !important;
    color: var(--primary-custom-color) !important;
    transition: all 0.3s ease-in-out;
}
.btn-ac:hover,
button[type='submit']:hover,
button[type='button']:hover,
.more_btn:hover,
.btn-hsr:hover {
    background: var(--primary-custom-color) !important;
    border-color: var(--primary-custom-color) !important;
    color: #ffffff !important;
}
.dropdown-menu > li > a {
    color: #000 !important;
}
.tw-dw-btn-outline.tw-dw-btn-primary {
    color: var(--primary-custom-color);
}
.tw-dw-btn-outline.tw-dw-btn-primary:hover {
    background-color: var(--primary-custom-color);
    color: #fff;
}
.tw-dw-btn-outline.tw-dw-btn-error:hover {
    background-color: #dc3545;
    color: #fff;
}
.tw-dw-btn-outline.tw-dw-btn-error {
    background-color: #fff;
    border: 1px solid #dc3545;
    color: #dc3545;
}
.pagination > li:first-child > a,
.pagination > li:first-child > span {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}
.pagination > li:last-child > a,
.pagination > li:last-child > span {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}
.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
    background-color: var(--primary-custom-color);
    border-color: var(--primary-custom-color);
    color: #fff;
}
.flt a {
    color: var(--primary-custom-color);
}
.small-view-side-active {
    display: grid;
    z-index: 1000;
    position: absolute;
}

.overlay {
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    z-index: 20;
}
.tw-dw-btn.tw-dw-btn-xs.tw-dw-btn-outline {
    width: max-content;
    margin: 2px;
}
#scrollable-container {
    position: relative;
}
@media print {
    #scrollable-container {
        overflow: visible !important;
        height: auto !important;
    }
}
.csv_input input {
    background: #eef2f6;
    width: 100%;
}
.csv_input button {
    height: 26px;
    min-height: 20px !important;
}
.csv_input a {
    float: right;
}
.csv_input .form-group {
    margin-bottom: 0 !important;
}
.daterangepicker .ranges li.active {
    background-color: var(--secondary-custom-color);
}
.bg-unset {
    background: unset !important;
}
.bg-box {
    background: #fff !important;
    border-radius: 10px !important;
    margin-bottom: 0px !important;
    box-shadow:
        rgba(0, 0, 0, 0.1) 0px 1px 3px 0px,
        rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
}
.main-right .wm-right {
    padding: 0 0 0.75rem 0.75rem !important;
}
.main-right .box-header {
    display: flex;
    padding: 0 !important;
}
.main-right .box-header .box-tools {
    position: absolute;
    right: 0;
}
.label {
    font-size: 90% !important;
}
.bg-green {
    background-color: #e6f8ec !important;
    color: #009232 !important;
}
.bg-yellow {
    background-color: #fdf1e2 !important;
    color: #e78100 !important;
}
.bg-aqua {
    background-color: #e6f7f8 !important;
    color: #007f86 !important;
}
.order-info .tooltips {
    border-radius: 0px 8px 8px 0 !important;
}
.text-right {
    text-align: right !important;
}

/* Discount Type Popup Styles */
.kv-discount-wrapper {
    position: relative;
}
.kv-discount-popup {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px;
    z-index: 1000;
    min-width: 200px;
    display: none;
}
.kv-discount-popup.show {
    display: block;
}
.kv-discount-popup-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.kv-discount-popup-label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}
.kv-discount-popup-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 14px;
    width: 80px;
    text-align: right;
}
.kv-discount-popup-input:focus {
    outline: none;
    border-color: #0070f4;
}
.kv-discount-type-btns {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.kv-discount-type-btn {
    padding: 6px 12px;
    font-size: 13px;
    background: #fff;
    border: none;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}
.kv-discount-type-btn:first-child {
    border-right: 1px solid #e0e0e0;
}
.kv-discount-type-btn.active {
    background: #0070f4;
    color: #fff;
}
.kv-discount-type-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* Line Price Popup Styles (triggered from unit price input) */
.unit-price-cell {
    position: relative;
}

.line-price-popup {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 12px;
    z-index: 1050;
    min-width: 260px;
    display: none;
}
.line-price-popup.show {
    display: block;
}
.line-price-popup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.line-price-popup-row:last-child {
    border-bottom: none;
}
.line-price-popup-label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    min-width: 60px;
}
.line-price-popup-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: right;
}
.line-discount-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.line-discount-popup-input {
    text-align: right;
    border: none !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    width: 150px;
    padding: 4px 0;
    outline: none;
}
.line-discount-popup-input:focus {
    outline: none;
    border-color: #0070f4;
}
.line-discount-type-btns {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.line-discount-type-btn {
    padding: 5px 10px;
    font-size: 12px;
    background: #fff;
    border: none;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}
.line-discount-type-btn:first-child {
    border-right: 1px solid #e0e0e0;
}
.line-discount-type-btn.active {
    background: #0070f4;
    color: #fff;
}
.line-discount-type-btn:hover:not(.active) {
    background: #f5f5f5;
}
.line-price-popup-total {
    background: #f8f9fa;
    margin: 8px -12px -12px;
    padding: 10px 12px !important;
    border-radius: 0 0 8px 8px;
}
.line-selling-price-display {
    text-align: right;
    border: none !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #0070f4;
    width: 150px;
    padding: 4px 0;
    outline: none;
}
.line-cost-after-discount-display {
    text-align: right;
    border: none !important;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #10b981;
    width: 150px;
    padding: 4px 0;
    outline: none;
}

/*** Header  ***/
.header-business-logo {
    width: 46px;
}
.header-content,
.side-bar .menu {
    padding: 0 10px;
}
.utilities,
.my-profile,
.bells,
.business-settings {
    z-index: 9999 !important;
}
.custom-header {
    background-color: #fff;
    height: 48px !important;
}
.business-name p {
    color: #000;
}
/*** End Header  ***/

/*** AUTH ***/
/* .custom-auth-body {
    background: linear-gradient(
        135deg,
        #1e40af 0%,
        #3b82f6 25%,
        #6366f1 50%,
        #8b5cf6 75%,
        #a855f7 100%
    );
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow-x: hidden;
}

.custom-auth-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
} */
.custom-auth-body,
.custom-auth-login-body {
    width: 100% !important;
    height: 100vh !important;
    background: url('/uploads/media/bg-index.jpg') !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    /* background-position: center center !important; */
    background-position: 20% 55% !important;
}
.custom-auth-login-body {
    width: 100% !important;
    height: 100vh !important;
    background: url('/img/erp-login-2.jpg') !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}
.wizard > .content {
    background-color: white !important;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #5b21b6 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.dashboard-preview {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.floating:nth-child(2) {
    animation-delay: -2s;
}

.floating:nth-child(3) {
    animation-delay: -4s;
}
/*** END AUTH ***/

/*** Top Bar Menu (convert left sidebar to horizontal nav under header) ***/
@media (min-width: 1024px) {
    .thetop {
        flex-direction: column !important;
    }

    main.tw-flex {
        order: 1;
    }

    .btn-collapse {
        display: none;
    }
    .side-bar {
        order: 2;
    }

    .side-bar {
        width: 100% !important;
        height: auto !important;
        border-right: 0 !important;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
        display: block;
        position: relative;
        z-index: 1000;
    }
    .side-bar .menu {
        max-width: var(--app-max-width);
        margin: 0 auto;
        height: 47px;
    }
    #side-bar {
        display: flex;
        gap: 4px;
        padding: 0;
        overflow: visible;
    }
    #menu-sidebar,
    .home {
        margin-top: 6px !important;
        background-color: unset !important;
    }

    .side-bar .parent,
    .side-bar svg {
        color: #fff;
        background-color: unset !important;
        font-size: 16px;
        padding-left: 5px;
        gap: 5px;
    }
    .side-bar .parent:hover,
    .side-bar .parent:hover svg {
        background-color: var(--primary-custom-color-deep) !important;
        transition: 0.5s;
    }
    .side-bar .parent.active,
    .side-bar .parent.active svg {
        background-color: var(--primary-custom-color-deep) !important;
        color: #ffffff;
    }

    .side-bar > a.tw-h-15 {
        height: 3rem !important;
        min-height: 3rem !important;
        border-right: 1px solid #e5e7eb;
    }

    .side-bar .sidebar-menu,
    .side-bar nav > ul,
    .side-bar > ul {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
        margin: 0;
        padding: 0 0.5rem;
        list-style: none;
        white-space: nowrap;
        overflow: visible;
    }

    .side-bar .sidebar-menu > li,
    .side-bar nav > ul > li,
    .side-bar > ul > li {
        position: relative;
    }

    .side-bar .sidebar-menu > li > a,
    .side-bar nav > ul > li > a,
    .side-bar > ul > li > a {
        display: inline-flex;
        align-items: center;
        height: 3rem;
        padding: 0 0.75rem;
        border-radius: 0.5rem;
        color: #374151;
        text-decoration: none;
        white-space: nowrap;
    }

    .side-bar .sidebar-menu > li > a:hover,
    .side-bar nav > ul > li > a:hover,
    .side-bar > ul > li > a:hover {
        background-color: #f3f4f6;
    }

    .side-bar .treeview-menu,
    .side-bar .submenu,
    .side-bar li > ul {
        margin: 0;
        padding: 0 0.75rem;
        border: 1px solid #e5e7eb;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }
    .side-bar .submenu {
        min-width: 250px;
    }
    .side-bar .submenu a {
        font-size: 15px;
        padding: 8px 0px;
    }

    /* Nested submenus flyout to the right */
    .side-bar .treeview-menu .treeview-menu,
    .side-bar .submenu .submenu,
    .side-bar li > ul li > ul {
        top: 0;
        left: 100%;
    }

    .side-bar .treeview-menu li > a,
    .side-bar .submenu li > a,
    .side-bar li > ul li > a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        color: #374151;
        text-decoration: none;
    }

    .side-bar .treeview-menu li > a:hover,
    .side-bar .submenu li > a:hover,
    .side-bar li > ul li > a:hover {
        background: #f9fafb;
    }

    .side-bar li:hover > .treeview-menu,
    .side-bar li:hover > .submenu,
    .side-bar li:hover > ul,
    .side-bar li.menu-open > .treeview-menu,
    .side-bar li.menu-open > .submenu,
    .side-bar li.menu-open > ul,
    .side-bar li.active > .treeview-menu,
    .side-bar li.active > .submenu,
    .side-bar li.active > ul {
        display: block;
    }

    .side-bar li > a > .fa-angle-left,
    .side-bar li > a > .pull-right-container {
        margin-left: 0.25rem;
    }

    main.tw-flex.tw-flex-col.tw-flex-1 {
        width: 100%;
    }

    /* Desktop positioning */
    .side-bar {
        position: absolute !important;
        top: 3rem;
        left: 0;
        right: 0;
    }
    #scrollable-container {
        padding-top: 3rem;
    }
    #wm-shop-button {
        background-color: #fff !important;
        color: var(--primary-custom-color);
        font-weight: 700;
        padding: 0 18px 0 10px;
        margin-left: auto;
    }
    #wm-shop-button svg {
        color: var(--primary-custom-color) !important;
        background-color: #fff !important;
    }
    #wm-shop-button:hover,
    #wm-shop-button:hover svg,
    #wm-shop-button.active {
        background-color: #fff !important;
    }
}
/*** END Top Bar Menu ***/
/*** Dashboard ***/
.overview {
    max-width: var(--app-max-width);
}
.mini-dash-1,
.mini-dash-2 {
    max-width: var(--app-max-width);
    margin: 0 auto;
}
.mini-dash-2 .mini-bg {
    background-color: var(--primary-custom-color);
    padding-bottom: 1.5rem;
}
#dashboard_date_filter:hover {
    background-color: #fff !important;
    color: #000 !important;
}
.dashboard-list {
    width: 100%;
}
/* Recent activities compact list */
/* Recent activities timeline */
#recent_activities_list {
    position: relative;
}
#recent_activities_list .activity-item {
    position: relative;
    padding-left: 34px;
    margin: 16px 0;
}
#recent_activities_list .activity-item .activity-icon {
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e6f0ff;
    color: #1976d2;
    border-radius: 50%;
}
/* Connector line between icons */
#recent_activities_list .activity-item:after {
    content: '';
    position: absolute;
    left: 11px;
    top: 28px;
    bottom: -16px;
    width: 2px;
    background: #e5e7eb;
}
#recent_activities_list .activity-item:last-child:after {
    display: none;
}
#recent_activities_list .fs11 {
    font-size: 11px;
}
#recent_activities_list .fs13 {
    font-size: 13px;
}
#recent_activities_list a.user_name {
    color: #0d6efd;
    font-weight: 600;
}
.dashboard-noPie .activity-icon {
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e6f0ff;
    color: #1976d2;
    border-radius: 50%;
}
.usefulinfo iframe img {
    border-radius: 8px !important;
}
/*** End Dashboard ***/

/*** sells ***/
#sell_price_tax .input-group-btn .btn {
    border-top-left-radius: 3px !important;
    border-bottom-left-radius: 3px !important;
}
.cr-sales-header {
    height: 56px;
    background-color: #0070f4;
    padding: 0 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cr-sales-header .search-product {
    width: 448px;
    height: 2.2rem;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}
.cr-sales-header .setting-search {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    height: 2.2rem;
}
.cr-sales-header .header-right {
    width: 400px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.cr-sales-header .header-right .btn {
    color: #fff;
}
/*  */
.product-table-sell,
.product-purchase-table {
    max-height: 690px;
}
.product-table-sell,
.product-purchase-table,
.product-table-sell .table-responsive,
.product-table-sell td {
    border: none !important;
    border-radius: unset !important;
}
.product-table-sell .product_row {
    background-color: #fff !important;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    align-items: center;
    justify-content: space-around;
    box-shadow:
        rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
        rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}
.product-table-sell .product_row .sell-line-note-td {
    order: 999;
}
.product-table-sell .sub_unit_name {
    display: inline-block;
    padding: 4px;
    font-size: 16px;
    color: #0070f4;
    background-color: #e5f0fe;
    border-radius: 5px;
}
.product-table-sell .pos_unit_price,
.product-table-sell .pos_quantity {
    border: unset !important;
    border-bottom: 2px solid #c2c7ce !important;
    border-radius: unset !important;
    text-align: right;
}
.product-table-sell .pos_unit_price:focus,
.product-table-sell .pos_quantity:focus {
    box-shadow: unset !important;
    border-color: var(--primary-custom-color) !important;
}
.product-table-sell .product_row:hover {
    background-color: #fff !important;
}
/* Show sell line note on hover */
.product-table-sell .product_row .sell-line-note-wrapper {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition:
        opacity 0.5s ease,
        max-height 0.5s ease;
}
.product-table-sell .product_row:hover .sell-line-note-wrapper,
.product-table-sell .product_row .sell-line-note-wrapper:focus-within,
.product-table-sell .product_row .sell-line-note-wrapper.has-value {
    display: block !important;
    opacity: 1;
    max-height: 50px;
}
.product-table-sell .quantity-up,
.product-table-sell .quantity-down {
    border-radius: 99px !important;
    padding: 6px !important;
}
.product-table-sell .input-group.input-number .input-group-btn {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}

.product-table-sell .input-group.input-number:hover .input-group-btn,
.product-table-sell .input-group.input-number:focus-within .input-group-btn {
    opacity: 1;
    visibility: visible;
}
.auto-receipt-panel {
    border-radius: 10px;
    overflow: hidden;
}
.auto-receipt-panel .panel-heading {
    background-color: #fff !important;
    border-bottom: unset !important;
}
thead th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
thead th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
.product-table-sell .table-bordered > tbody > tr > td {
    border-bottom: unset !important;
}

.product-purchase-table {
    background-color: #fff !important;
}
.product-purchase-table .input-group {
    margin-bottom: unset !important;
}
.product-purchase-table .purchase_quantity,
.product-purchase-table .quantity-down,
.product-purchase-table .quantity-up {
    height: 30px;
}
.product-purchase-table .purchase_quantity {
    box-shadow: unset !important;
}
.product-purchase-table .purchase_unit_cost_without_discount,
.product-purchase-table .inline_discounts {
    border-radius: 8px !important;
}
.product-purchase-table tbody tr {
    height: 64px;
}
.product-purchase-table .quantity-down {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
.product-purchase-table .quantity-up {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}
/*** End sells ***/

/*** Cash Book***/
.cash-book .summary-statistics,
.cash-book .summary-statistics .box {
    margin-bottom: 0 !important;
}
.cash-book .summary-statistics .box .box-body {
    padding: 5px 20px !important;
}
/*** End Cash Book***/

.custom-form-login form {
    background: unset !important;
}
/*** Modal ***/
.modal-content {
    border-radius: 8px;
}
.wm-modal .table-responsive {
    max-height: 400px;
    overflow-y: auto;
}
.wm-modal .table-responsive .table {
    overflow: auto !important;
}
.wm-modal .table-responsive thead > tr {
    position: sticky;
    top: 0;
}
/*** End Modal ***/

/** Table **/
.dataTables_scrollBody {
    max-height: 500px !important;
    margin-bottom: 0.5rem;
}
/* Enhanced dropdown positioning for DataTables */
.dataTables_scroll .dropdown-menu {
    box-shadow: rgb(0 60 181 / 60%) 0px 3px 8px !important;
    z-index: 1050 !important;
    position: absolute !important;
}
.dataTables_scroll .dropdown-menu.dropdown-menu-up {
    top: auto !important;
    bottom: 100% !important;
    margin-bottom: 2px !important;
}
.dataTables_scroll .dropdown-menu.dropdown-menu-up::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #ccc;
    border-top-color: rgba(0, 0, 0, 0.2);
}
.dataTables_scroll .dropdown-menu.dropdown-menu-up::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 21px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #fff;
}
/* Enhanced dropdown positioning for DataTables */
.dataTables_wrapper table.dataTable,
.table-striped > tbody > tr:nth-of-type(odd) {
    /* background-color: #f7f7f9 !important; */
    background-color: #fff;
}
.dataTables_wrapper .row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
    opacity: 0.8 !important;
}
.table-responsive::-webkit-scrollbar,
.dataTables_scrollBody::-webkit-scrollbar,
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #fff;
}
::-webkit-scrollbar-thumb {
    background: #c2c7ce;
    border-radius: 10px;
}
/* ::-webkit-scrollbar-thumb:hover {} */
div.table-responsive > div.dataTables_wrapper > div.row {
    margin-bottom: 10px !important;
}
.dataTables_processing {
    font-size: 16px;
    font-weight: 500;
    color: #003cb4;
    z-index: 9999;
}
.dataTables_scrollBody table {
    width: 100% !important;
}
.nav-tabs-custom {
    border-radius: 0.75em !important;
    overflow: hidden;
}
.nav-tabs-custom > .tab-content,
.nav-tabs-custom {
    background: unset !important;
}
table {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden !important;
}
.dataTables_scrollHead,
table > thead,
tfoot > .footer-total,
div.dataTables_scrollHead table.table-bordered {
    background-color: #e6f1fe !important;
    border-radius: 10px 10px 0px 0px !important;
}
/* .dataTables_wrapper table.dataTable {
    border-radius: 10px !important;
} */
div.dataTables_scrollBody > table {
    /* min-height: 400px; */
    overflow: visible !important;
}
table.dataTable {
    margin: 0 !important;
}
.cus-table {
    padding: unset !important;
}
table.ajax_view tbody tr:hover,
.table-striped > tbody > tr:hover {
    background-color: #f0f1f3 !important;
}
input[type='checkbox'] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #000;
    border-radius: 4px;
    background: #fff;
}
input[type='checkbox']:checked {
    background: #2563eb;
    border-color: #2563eb;
    position: relative;
}
input[type='checkbox']:checked {
    appearance: auto;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    border: 1px solid #9b9b9b;
    border-radius: 4px;
    color: #fff;
}
table .pull-right {
    height: unset !important;
}
.find {
    text-align: center;
}
.find label {
    width: 100%;
}
.find input[type='search'] {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: rgb(149 157 165 / 12%) 0px 8px 24px;
    border: 1px solid #cdcdcd;
    height: 32px;
    font-size: 13px;
    margin-left: 0 !important;
}
.lth {
    text-align: left;
}
.act {
    text-align: right;
}
.find,
.lth,
.act {
    padding: 0;
}

.table-bordered > tbody > tr > td {
    border: none !important;
    border-bottom: 1px solid #e7dddd !important;
    vertical-align: middle !important;
}
/** End Table **/

/*** Report ***/
.custom-tab > .nav-tabs {
    padding: 12px 8px;
    margin-bottom: 15px;
    overflow-x: auto;
    white-space: nowrap;
}

.custom-tab > .custom-nav > li {
    width: 275px !important;
    border-top: 3px solid transparent;
}

.custom-tab > .nav-tabs > li {
    width: auto;
    border-top: 3px solid transparent;
}

.custom-tab > .custom-tab > .nav-tabs a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.custom-tab > .nav-tabs a i {
    margin-right: 8px;
    font-size: 18px;
}
.custom-tab > .nav-tabs > li.active {
    border-top-color: #003ab0;
}
.custom-tab > .nav-tabs li.active a {
    background: #ffffff;
    color: #003ab0;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    transform: translateY(-2px);
}

.custom-tab > .nav-tabs a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.custom-tab > .nav-tabs li.active a:hover {
    background: #f3f4f6;
    color: #1e3a8a;
}
.nav-tabs-custom > .nav-tabs > li.active {
    border-top-color: var(--primary-custom-color);
}
.radio-group {
    margin-top: 10px;
}

.radio-item {
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.radio-item:hover {
    background-color: #e9ecef;
    border-color: #007bff;
}

.radio-item input[type='radio'] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.radio-item label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: normal;
}

.radio-item input[type='radio']:checked + label {
    font-weight: bold;
    color: #0070f4;
}

.radio-item:has(input[type='radio']:checked) {
    background-color: #e3f2fd;
    border-color: #007bff;
}

.report-section {
    display: none;
}

.report-section.active {
    display: block;
}
/*** END Report ***/

/*** Custom Theme Colors ***/
/* Blue Theme */
.tw-from-blue-light-800 {
    --tw-gradient-from: #0070f4 var(--tw-gradient-from-position);
    --tw-gradient-to: rgba(0, 112, 244, 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.tw-to-blue-light-900 {
    --tw-gradient-to: #0070f4 var(--tw-gradient-to-position);
}
.tw-bg-blue-light-800 {
    --tw-bg-opacity: 1;
    background-color: rgb(0 112 244 / var(--tw-bg-opacity));
}
.hover\:tw-bg-blue-light-700:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(0 112 244 / var(--tw-bg-opacity));
}
.tw-bg-gray-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(247 248 249 / var(--tw-bg-opacity));
}

/* Sidebar */
.side-bar {
    height: 48px !important;
}
#side-bar.tw-overflow-y-auto::-webkit-scrollbar {
    width: 2px;
}
/* Profile */
.profile-user-img {
    height: 100px;
}
/* Stock */
.st-stock-history {
    background-color: #fff;
    border-radius: 10px;
}
.user-status span {
    height: unset !important;
}
/* Settings */
div.pos-tab-menu div.list-group > a.active {
    background: var(--primary-custom-color);
    color: #fff;
}
/* Alert */
.alert-danger {
    background-color: #c82333 !important;
    border-radius: 0.75rem !important;
}
.col-sm-12 .alert .close {
    color: #fff !important;
    opacity: 0.8 !important;
}
/*** Mobile Menu ***/
.mobile-menu-container {
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
    padding-bottom: 80px;
}

.menu-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgb(145 145 145 / 10%);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    min-height: 60px;
}

.menu-item:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #1f2937;
}

.menu-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 8px;
    flex-shrink: 0;
}
.menu-item-icon svg {
    color: #039bf8 !important;
}

.menu-item-icon.blue {
    color: #1d4ed8;
}
.menu-item-icon.green {
    color: #16a34a;
}
.menu-item-icon.purple {
    color: #9333ea;
}
.menu-item-icon.orange {
    color: #ea580c;
}
.menu-item-icon.gray {
    color: #6b7280;
}

.menu-item-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    flex: 1;
}
/*** End Mobile Menu ***/

.import-guide,
.import-file {
    background: #fff !important;
    padding: 20px !important;
    border-radius: 15px !important;
    box-shadow: 0 2px 8px rgb(145 145 145 / 10%) !important;
}
.import-file {
    margin-bottom: 20px;
}
/* Contact */
.wm-contact .tab-content {
    background: #fff !important;
}
/**** Form ****/
.wm-form .row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}
.wm-form .card {
    background: #fff !important;
    padding: 20px !important;
    margin-bottom: 30px;
    border-radius: 15px !important;
    box-shadow:
        rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
        rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}
.wm-form .card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 15px;
}
.card-circle-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: #d4e8ff;
    color: var(--primary-custom-color);
    font-weight: 600;
    font-size: 0.875rem;
}
.card-title {
    line-height: 1;
    font-weight: 600;
    font-size: 18px;
    color: #111827;
}
.sub-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}
.card-svg {
    color: var(--primary-custom-color);
}
.wm-form .bg-unset {
    margin-bottom: unset !important;
}

.wm-form .checkbox {
    margin-top: unset !important;
    margin-bottom: 5px !important;
}
.wm-form .checkbox label {
    padding-left: unset !important;
}
.wm-form .card input {
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.wm-form .card input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.4);
}
.wm-form .card .col-md-9 {
    padding-left: 55px !important;
}
.wm-form .card .large-bagde {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 15px;
}
.wm-form .multi-input input {
    margin-right: 10px;
    width: 36% !important;
}
.wm-form .table-responsive {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
}
.wm-form table {
    margin-bottom: 0 !important;
}
.wm-form table th {
    background: #e5f1fe !important;
    color: #000 !important;
}
.wm-form .total-table {
    height: 4rem !important;
    background: #e5f1fe;
}
.wm-form .wm-btn {
    background: #eff6ff !important;
    font-weight: 600;
    color: #1447e6 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 10px !important;
    transition: 0.4s;
}
.wm-form .input-group-addon {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}
/*  */
.invo .card,
.purchase-invo .card {
    background: unset !important;
    padding: unset !important;
    margin-bottom: unset !important;
    border-radius: unset !important;
    box-shadow: unset !important;
}
.invo .box-solid,
.purchase-invo .box-solid {
    background: #fff !important;
    padding: 20px !important;
    margin-bottom: 30px !important;
    margin-right: 15px !important;
    border-radius: 15px !important;
    box-shadow: rgb(161 165 168 / 20%) 0px 8px 24px;
}
.invo .product-info .box-solid,
.invo .order-info .box-solidm,
.purchase-invo .product-info .box-solid {
    min-height: 745px;
}
.invo .customer-due,
.purchase-invo .customer-due {
    background: #ff000012;
    padding: 3px 10px;
    margin-top: 5px;
    border-radius: 6px;
    width: 160px;
}
.invo .payment_row .input-group,
.purchase-invo .input-group {
    margin-bottom: 8px;
}
.purchase-invo .purchase .setting-search {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
.purchase-invo .purchase #search_product {
    border-radius: unset !important;
}
.purchase-invo .purchase .btn-add-product {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}
/**** End Form ****/

/*** Custom ColVis Dropdown ****/
/* Override DataTables colvis styles */
.dt-button-collection {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    top: 103px !important;
    right: 25px !important;
    left: auto !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    max-width: 600px !important;
    min-width: 200px !important;
    padding: 8px !important;
}

.dt-button-collection .dt-button-collection-title {
    display: none !important;
}

.dt-button-collection .dt-button-collection-content {
    display: block !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

.dt-button-collection .dt-button {
    display: block !important;
    padding: 8px 12px !important;
    margin: 0 0 8px 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 4px !important;
    color: #374151 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: left !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.dt-button-collection .dt-button:hover {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
}

.dt-button-collection .dt-button.active {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}
.dt-button-collection a {
    display: block;
    background-color: unset !important;
    color: #000;
    height: 16px;
}
/* Custom ColVis Dropdown - Single column layout */
.custom-colvis-dropdown {
    position: absolute !important;
    z-index: 1000 !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    padding: 16px !important;
    min-width: 300px !important;
    max-width: 400px !important;
}

.custom-colvis-content {
    display: block !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

.custom-colvis-item {
    display: block !important;
    padding: 8px 12px !important;
    margin: 0 0 8px 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 4px !important;
    color: #374151 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: left !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.custom-colvis-item:hover {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
}

.custom-colvis-item.active {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}

.custom-checkbox {
    width: 18px !important;
    height: 18px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    margin-right: 8px !important;
    display: inline-block !important;
    background: #fff !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    position: relative !important;
    vertical-align: middle !important;
}

.column-title {
    display: inline-block !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: calc(100% - 30px) !important;
}

.show-more-info {
    padding: 8px 12px !important;
    font-size: 12px !important;
    color: #6b7280 !important;
    text-align: center !important;
    border-top: 1px solid #e5e7eb !important;
    margin-top: 8px !important;
    background: #f9fafb !important;
    border-radius: 4px !important;
    display: block !important;
}
/* Custom ColVis Dropdown - 2 Column Layout */
.custom-colvis-dropdown {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 12px;
    min-width: 400px;
    max-width: 500px;
    display: flex;
    gap: 16px;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.colvis-column {
    flex: 1;
    min-width: 0;
}

.colvis-column.left-column {
    border-right: 1px solid #e5e7eb;
    padding-right: 12px;
}

.colvis-column.right-column {
    padding-left: 12px;
}

.colvis-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    margin: 2px 0;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.colvis-item:hover {
    background-color: #f3f4f6;
}

.colvis-checkbox {
    margin-right: 8px;
    margin-top: 0;
    cursor: pointer;
}

.colvis-item label {
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.colvis-item label:hover {
    color: #1f2937;
}
.dt-button-collection.custom-styled .colvis-multi-column-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.dt-button-collection.custom-styled .colvis-column {
    flex: 1;
    min-width: 180px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dt-button-collection.custom-styled .colvis-column .dt-button {
    width: 100% !important;
    text-align: left !important;
    padding: 6px 12px !important;
    margin: 5px 0 !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: all 0.2s ease !important;
}

.dt-button-collection.custom-styled .colvis-column .dt-button:hover {
    background: #f8f9fa !important;
    border-color: #0070f4 !important;
    color: #0070f4 !important;
}

.dt-button-collection.custom-styled .colvis-column .dt-button.active {
    background: #e5f1fe !important;
    color: #fff !important;
    border-color: #0070f4 !important;
}
/*** End Custom ColVis Dropdown ****/

/*** Footer ****/
.scroll {
    background: var(--primary-custom-color) !important;
}
.scroll .fas {
    margin: 0 !important;
}
.scroll .fa-angle-up:before {
    color: #fff;
}
.copyright-footer {
    position: absolute;
    bottom: 1%;
    right: 1%;
    margin: 0 auto;
    color: #fff;
}
/* Column */
@media (min-width: 992px) {
    .col-md-3 {
        width: 18%;
        padding-right: 0;
    }
    .col-md-9 {
        width: 82%;
        padding-left: 5px;
    }
}

/* Ẩn input-group file-caption-main */
.input-group.file-caption-main,
.file-preview,
.file-preview-thumbnails,
.file-input .file-preview {
    display: none !important;
}

/* Upload area styling */
.upload-area,
.upload-area-brochure,
.upload-area-document {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    justify-items: center;
    background-color: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover,
.upload-area-brochure:hover,
.upload-area-document:hover {
    border-color: #3b82f6;
    background-color: #f0f9ff;
}

/* ============================================
   WM Style Order Info Section
   ============================================ */
.kv-order-summary {
    padding: 0;
}

.kv-order-summary .kv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f1f3;
}

.kv-order-summary .kv-row:last-child {
    border-bottom: none;
}

.kv-order-summary .kv-label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kv-order-summary .kv-label .kv-qty {
    color: #6b7280;
    font-weight: 400;
    margin-left: 16px;
}

.kv-order-summary .kv-value {
    font-size: 15px;
    color: #111827;
    font-weight: 600;
    text-align: right;
}

.kv-order-summary .kv-value input {
    text-align: right;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    width: 150px;
    padding: 4px 0;
    outline: none;
}

.kv-order-summary .kv-value input:focus {
    border-bottom-color: var(--primary-custom-color);
}

.kv-order-summary .kv-value input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Customer needs to pay - highlight row */
.kv-order-summary .kv-row-highlight {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    margin: 0 -15px;
    padding: 16px 15px;
    border-radius: 8px;
    border: none;
    margin-top: 8px;
    margin-bottom: 8px;
}

.kv-order-summary .kv-row-highlight .kv-label {
    font-size: 15px;
    font-weight: 600;
    color: #1e40af;
}

.kv-order-summary .kv-row-highlight .kv-label .info-icon {
    cursor: pointer;
    color: #60a5fa;
}

.kv-order-summary .kv-row-highlight .kv-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-custom-color);
}

/* Customer payment section */
.kv-payment-section {
    margin-top: 16px;
}

.kv-payment-section .kv-payment-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.kv-payment-section .kv-payment-input {
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    outline: none;
}

.kv-payment-section .kv-payment-input:focus {
    border-color: var(--primary-custom-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 112, 244, 0.1);
}

/* Payment method radio buttons */
.kv-payment-methods {
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.kv-payment-methods label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #4b5563;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.kv-payment-methods label:hover {
    border-color: var(--primary-custom-color);
    background: #f0f9ff;
}

.kv-payment-methods input[type='radio'] {
    accent-color: var(--primary-custom-color);
}

.kv-payment-methods input[type='radio']:checked + span {
    color: var(--primary-custom-color);
    font-weight: 600;
}

/* Quick amount buttons */
.kv-quick-amounts {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.kv-quick-amounts button {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kv-quick-amounts button:hover {
    background: var(--primary-custom-color);
    color: #fff;
    border-color: var(--primary-custom-color);
}

/* Balance due row */
.kv-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 12px 0;
    border-top: 1px dashed #e5e7eb;
}

.kv-balance-row .kv-label {
    color: #6b7280;
    font-weight: 500;
}

.kv-balance-row .kv-value {
    color: #dc2626;
    font-weight: 600;
}

.kv-balance-row .kv-value.positive {
    color: #16a34a;
}

/* Thu khác clickable trigger */
.kv-additional-expense-trigger {
    cursor: pointer;
    background: transparent;
    border: none;
    border-bottom: 1px dashed #9ca3af;
    color: #6b7280;
    font-size: 15px;
    text-align: right;
    width: 150px;
    padding: 4px 0;
}

.kv-additional-expense-trigger:hover {
    border-bottom-color: var(--primary-custom-color);
    color: var(--primary-custom-color);
}

/* Action buttons - WM style */
.kv-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.kv-action-buttons .kv-btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.kv-action-buttons .kv-btn-print {
    background: #22c55e;
    color: #fff;
    border: none;
}

.kv-action-buttons .kv-btn-print:hover {
    background: #16a34a;
}

.kv-action-buttons .kv-btn-primary {
    background: var(--primary-custom-color);
    color: #fff;
    border: none;
    flex: 2;
}

.kv-action-buttons .kv-btn-primary:hover {
    background: var(--primary-custom-color-deep);
}

.kv-action-buttons .kv-btn-save {
    background: #22c55e;
    color: #fff;
    border: none;
}

.kv-action-buttons .kv-btn-save:hover {
    background: #16a34a;
}

/* Additional expenses modal trigger */
.kv-additional-expense-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.kv-additional-expense-modal.show {
    display: flex;
}

.kv-additional-expense-modal .modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Account/Payment type dropdown in WM style */
.kv-order-summary .kv-account-row {
    padding: 8px 0;
}

.kv-order-summary .kv-account-row select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #f9fafb;
}

.kv-order-summary .kv-account-row select:focus {
    border-color: var(--primary-custom-color);
    outline: none;
}

/* WM Style Header Row */
.kv-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
    margin: 0 -15px;
    background: #f9fafb;
}

.kv-header-row .kv-staff-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-weight: 500;
}

.kv-header-row .kv-staff-info i {
    color: var(--primary-custom-color);
}

.kv-header-row .kv-staff-info .select2-container .select2-selection--single {
    border: none;
    background: transparent;
    height: auto;
    padding: 6px 0px !important;
}

.kv-header-row
    .kv-staff-info
    .select2-container
    .select2-selection--single
    .select2-selection__rendered {
    padding-left: 0;
    color: #374151;
    font-weight: 500;
}

.kv-header-row
    .kv-staff-info
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    display: none;
}

.kv-header-row .kv-datetime {
    font-size: 13px;
    color: #6b7280;
}

.kv-header-row .kv-datetime .kv-date-input {
    border: none;
    background: transparent;
    font-size: 13px;
    color: #374151;
    text-align: right;
    padding: 0;
    width: 115px;
    cursor: pointer;
}

/* WM Style Customer Row */
.kv-customer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #eff6ff;
    border-bottom: 1px solid #dbeafe;
    margin: 0 -15px;
}

.kv-customer-row .kv-customer-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-custom-color);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
}

.kv-customer-row .kv-customer-select {
    flex: 1;
}

.kv-customer-row .kv-customer-select .kv-customer-input {
    border: none;
    background: transparent;
    font-weight: 600;
    color: #1e3a5f;
    padding: 0;
}

.kv-customer-row .kv-customer-select .kv-customer-input::placeholder {
    color: #64748b;
    font-weight: 400;
}

.kv-customer-row .kv-customer-actions button {
    padding: 4px 8px;
    color: var(--primary-custom-color);
}

/* Customer Due Display */
.kv-customer-due {
    padding: 8px 15px;
    margin: 0 -15px;
    background: #fef2f2;
    border-bottom: 1px solid #fecaca;
}

.kv-customer-due .kv-due-label {
    color: #dc2626;
    font-weight: 500;
}

.kv-customer-due .kv-due-amount {
    font-weight: 700;
    font-size: 16px;
}

/* Payment Methods Radio Buttons - WM Style Active State */
.kv-payment-methods label.active {
    border-color: var(--primary-custom-color);
    background: #eff6ff;
}

.kv-payment-methods label.active span {
    color: var(--primary-custom-color);
    font-weight: 600;
}

/* Order info adjustments */
.order-info .card-header {
    display: none;
}

.order-info .box-solid {
    padding: 0;
}

/* Header Right Section - Date + Status (horizontal layout) */
.kv-header-row .kv-header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.kv-header-row .kv-datetime {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
}

.kv-header-row .kv-datetime i {
    color: #6b7280;
}

.kv-header-row .kv-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kv-header-row .kv-status-label {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.kv-header-row .kv-status-select {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    background: #fff;
    min-width: 110px;
}

.kv-header-row .kv-status-select:focus {
    border-color: var(--primary-custom-color);
    outline: none;
}

/* Khách thanh toán - WM style (value display, no input) */
.kv-payment-section .kv-payment-value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.kv-payment-section .kv-payment-value-row .kv-label {
    font-size: 14px;
    color: #374151;
    font-weight: 600;
}

.kv-payment-section .kv-payment-value-row .kv-value {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

/* ============================================
   WM Invoice Modal - Optimized Design
   Prefix: wm- (WoodMart Modal)
   ============================================ */
.modal-dialog {
    margin: 10px auto !important;
}
/* Modal Container */
.wm-invoice-modal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Modal Header */
.wm-invoice-modal .modal-header {
    background: linear-gradient(
        135deg,
        var(--primary-custom-color) 0%,
        var(--primary-custom-color-deep) 100%
    );
    border-bottom: none;
    padding: 10px 24px;
    position: relative;
}

.wm-invoice-modal .modal-header .modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wm-invoice-modal .modal-header .close {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
    font-size: 28px;
    font-weight: 300;
    transition: opacity 0.2s ease;
}

.wm-invoice-modal .modal-header .close:hover {
    opacity: 1;
}

/* Header Meta Info */
.wm-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.wm-header-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.wm-header-meta-item i {
    font-size: 14px;
    opacity: 0.8;
}

/* Modal Body */
.wm-invoice-modal .modal-body {
    padding: 24px;
    background: #f9fafb;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Info Grid - 2 Column Layout */
.wm-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.wm-info-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
/* Info Card */
.wm-info-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease;
}

.wm-info-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wm-info-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f1f3;
}

.wm-info-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 8px;
    color: var(--primary-custom-color);
    font-size: 16px;
}

.wm-info-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wm-info-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Info Items */
.wm-info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
}

.wm-info-item-stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.wm-info-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    min-width: 100px;
}

.wm-info-value {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.wm-info-value.wm-full-width {
    text-align: left;
}

/* Section Wrapper */
.wm-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.wm-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.wm-section-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 8px;
    color: var(--primary-custom-color);
    font-size: 14px;
}

.wm-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

/* Products Table Section */
.wm-products-section {
    background: #fff;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.wm-products-section .wm-section-header {
    padding: 16px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}

.wm-products-section .table-responsive {
    max-height: 350px;
    overflow-y: auto;
    margin: 0;
}

.wm-products-table {
    margin-bottom: 0 !important;
    border-radius: 0 !important;
}

.wm-products-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.wm-products-table thead th {
    background: #f3f4f6 !important;
    color: #374151 !important;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 10px;
    border-bottom: 2px solid #e5e7eb !important;
    white-space: nowrap;
}

.wm-products-table tbody tr {
    transition: background-color 0.15s ease;
}

.wm-products-table tbody tr:nth-child(odd) {
    background: #fff;
}

.wm-products-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.wm-products-table tbody tr:hover {
    background: #f0f9ff !important;
}

.wm-products-table tbody td {
    padding: 12px 10px;
    font-size: 13px;
    color: #374151;
    vertical-align: middle !important;
    border-bottom: 1px solid #f0f1f3 !important;
}

.wm-products-table .product-name {
    font-weight: 500;
    color: #111827;
}

.wm-products-table .product-note {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    margin-top: 4px;
}

/* Payment Section Grid */
.wm-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Payment Lines */
.wm-payment-lines {
    background: #fff;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.wm-payment-lines .wm-section-header {
    padding: 16px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}

.wm-payment-lines .table-responsive {
    max-height: 250px;
    overflow-y: auto;
    margin: 0;
}

.wm-payment-lines .table {
    margin-bottom: 0 !important;
}

.wm-payment-lines .table thead th {
    background: #f9fafb !important;
    color: #374151 !important;
    font-weight: 600;
    font-size: 12px;
    padding: 10px 12px;
    position: sticky;
    top: 0;
}

.wm-payment-lines .table tbody td {
    padding: 10px 12px;
    font-size: 13px;
    vertical-align: middle;
}

/* Payment Summary */
.wm-payment-summary {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.wm-payment-summary .wm-section-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f1f3;
}

.wm-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
}

.wm-payment-row .wm-label {
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wm-payment-row .wm-label .wm-operator {
    font-weight: 600;
    color: #9ca3af;
    min-width: 24px;
}

.wm-payment-row .wm-value {
    font-weight: 500;
    color: #374151;
}

.wm-payment-row.wm-divider {
    border-top: 1px dashed #e5e7eb;
    margin-top: 8px;
    padding-top: 12px;
}

.wm-payment-row.wm-total {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    /* margin: 12px -20px -20px -20px; */
    padding: 16px 20px;
    border-radius: 0 0 10px 10px;
}

.wm-payment-row.wm-total .wm-label {
    font-size: 15px;
    font-weight: 600;
    color: #1e40af;
}

.wm-payment-row.wm-total .wm-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-custom-color);
}

.wm-payment-row.wm-paid .wm-value {
    color: #16a34a;
    font-weight: 600;
}

.wm-payment-row.wm-remaining .wm-value {
    color: #dc2626;
    font-weight: 600;
}

/* Notes Section */
.wm-notes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.wm-note-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.wm-note-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wm-note-label i {
    color: var(--primary-custom-color);
}

.wm-note-content {
    background: #f9fafb;
    border-radius: 6px;
    padding: 12px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    min-height: 60px;
    border: 1px solid #f0f1f3;
}

.wm-note-content.wm-empty {
    color: #9ca3af;
    font-style: italic;
}

/* Activities Section */
.wm-activities-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

/* Status Badges */
.wm-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.wm-status-paid,
.wm-status-completed {
    background: #dcfce7;
    color: #16a34a;
}

.wm-status-partial {
    background: #fef3c7;
    color: #d97706;
}

.wm-status-due,
.wm-status-pending {
    background: #fef2f2;
    color: #dc2626;
}

.wm-status-draft {
    background: #f3f4f6;
    color: #6b7280;
}

.wm-status-shipping {
    background: #dbeafe;
    color: #2563eb;
}

/* Modal Footer */
.wm-invoice-modal .modal-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.wm-invoice-modal .modal-footer .tw-dw-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.wm-invoice-modal .modal-footer .tw-dw-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Custom Fields Section */
.wm-custom-fields {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}

.wm-custom-field-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
}

/* Download Button */
.wm-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f0f9ff;
    color: var(--primary-custom-color);
    border: 1px solid #dbeafe;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
    transition: all 0.2s ease;
}

.wm-download-btn:hover {
    background: var(--primary-custom-color);
    color: #fff;
    text-decoration: none;
}

/* Sales Orders Mini Table */
.wm-sales-orders-table {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}

.wm-sales-orders-table .table {
    margin-bottom: 0;
    font-size: 12px;
}

.wm-sales-orders-table .table th,
.wm-sales-orders-table .table td {
    padding: 6px 8px;
}

/* ============================================
   Responsive Styles
   ============================================ */

/* Tablet */
@media (max-width: 991px) {
    .wm-info-grid {
        grid-template-columns: 1fr;
    }

    .wm-info-grid-3col {
        grid-template-columns: 1fr;
    }

    .wm-payment-grid {
        grid-template-columns: 1fr;
    }

    .wm-notes-grid {
        grid-template-columns: 1fr;
    }

    .wm-invoice-modal .modal-body {
        padding: 16px;
    }

    .wm-header-meta {
        gap: 8px;
    }

    .wm-header-meta-item {
        font-size: 12px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .wm-invoice-modal .modal-header {
        padding: 16px 20px;
    }

    .wm-invoice-modal .modal-header .modal-title {
        font-size: 16px;
    }

    .wm-invoice-modal .modal-body {
        padding: 12px;
        max-height: calc(100vh - 180px);
    }

    .wm-info-card {
        padding: 16px;
    }

    .wm-info-card-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .wm-info-card-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .wm-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .wm-info-value {
        text-align: left;
    }

    .wm-section {
        padding: 16px;
    }

    .wm-products-section .wm-section-header {
        padding: 12px 16px;
    }

    .wm-products-table thead th {
        font-size: 11px;
        padding: 10px 8px;
    }

    .wm-products-table tbody td {
        font-size: 12px;
        padding: 10px 8px;
    }

    .wm-payment-summary {
        padding: 16px;
    }

    .wm-payment-row.wm-total {
        /* margin: 12px -16px -16px -16px; */
        padding: 14px 16px;
    }

    .wm-payment-row.wm-total .wm-value {
        font-size: 16px;
    }

    .wm-note-card {
        padding: 12px;
    }

    .wm-invoice-modal .modal-footer {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .wm-invoice-modal .modal-footer .tw-dw-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }

    .wm-header-meta {
        flex-direction: column;
        gap: 6px;
    }
}

/* Print Styles */
@media print {
    .wm-invoice-modal .modal-body {
        max-height: none;
        overflow: visible;
    }

    .wm-products-section .table-responsive {
        max-height: none;
        overflow: visible;
    }

    .wm-payment-lines .table-responsive {
        max-height: none;
        overflow: visible;
    }
}

/* ============================================
   WM Product Modal - Optimized Design
   ============================================ */

/* Product Modal Container */
.wm-product-modal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Product Modal Header */
.wm-product-modal .modal-header {
    background: linear-gradient(
        135deg,
        var(--primary-custom-color) 0%,
        var(--primary-custom-color-deep) 100%
    );
    border-bottom: none;
    padding: 20px 24px;
}

.wm-product-modal .modal-header .modal-title {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wm-product-modal .modal-header .close {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
    font-size: 28px;
    font-weight: 300;
    transition: opacity 0.2s ease;
}

.wm-product-modal .modal-header .close:hover {
    opacity: 1;
}

/* Product Modal Body */
.wm-product-modal .modal-body {
    padding: 24px;
    background: #f9fafb;
}
.modal-body thead th:first-child,
.modal-body thead th:last-child {
    border-radius: 0 !important;
}

/* Product Layout Grid */
.wm-product-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
}

/* Product Image Section */
.wm-product-image-section {
    order: 2;
}

.wm-product-image-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 24px;
}

.wm-product-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wm-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.wm-product-image img:hover {
    transform: scale(1.05);
}

/* Product Details Section */
.wm-product-details-section {
    order: 1;
}

/* Product Info Grid */
.wm-product-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

/* Product Info Card */
.wm-product-info-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.wm-product-info-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f1f3;
}

.wm-product-info-card-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 6px;
    color: var(--primary-custom-color);
    font-size: 12px;
}

.wm-product-info-card-title {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wm-product-info-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Product Info Item */
.wm-product-info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 13px;
    padding: 4px 0;
}

.wm-product-info-item .wm-label {
    color: #6b7280;
    font-weight: 500;
}

.wm-product-info-item .wm-value {
    color: #111827;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
    max-width: 60%;
}

/* Product Description */
.wm-product-description {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.wm-product-description-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f1f3;
}

.wm-product-description-content {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

.wm-product-description-content:empty::before {
    content: '--';
    color: #9ca3af;
}

/* Product Locations Badge */
.wm-product-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.wm-location-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Product Brochure Download */
.wm-product-brochure {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}

.wm-brochure-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f0f9ff;
    color: var(--primary-custom-color);
    border: 1px solid #dbeafe;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.wm-brochure-link:hover {
    background: var(--primary-custom-color);
    color: #fff;
    text-decoration: none;
}

/* Rack Details Table */
.wm-rack-section {
    background: #fff;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.wm-rack-section .wm-section-header {
    padding: 14px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}

.wm-rack-table {
    margin-bottom: 0 !important;
}

.wm-rack-table thead th {
    background: #f3f4f6 !important;
    color: #374151 !important;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    padding: 10px 14px;
}

.wm-rack-table tbody td {
    padding: 10px 14px;
    font-size: 13px;
    color: #374151;
}

.wm-rack-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Product Stock Section */
.wm-stock-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

/* Product Variations/Pricing Section */
.wm-pricing-section {
    background: #fff;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.wm-pricing-section .wm-section-header {
    padding: 14px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}

/* Product Modal Footer */
.wm-product-modal .modal-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Custom Fields Section */
.wm-custom-fields-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}

.wm-custom-fields-section .wm-product-info-item {
    padding: 3px 0;
}

/* Product Modal Responsive */
@media (max-width: 991px) {
    .wm-product-layout {
        grid-template-columns: 1fr;
    }

    .wm-product-image-section {
        order: 1;
    }

    .wm-product-details-section {
        order: 2;
    }

    .wm-product-image-card {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }

    .wm-product-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .wm-product-modal .modal-header {
        padding: 16px 20px;
    }

    .wm-product-modal .modal-header .modal-title {
        font-size: 18px;
    }

    .wm-product-modal .modal-body {
        padding: 16px;
    }

    .wm-product-info-card {
        padding: 14px;
    }

    .wm-product-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .wm-product-info-item .wm-value {
        text-align: left;
        max-width: 100%;
    }

    .wm-product-modal .modal-footer {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .wm-product-modal .modal-footer .tw-dw-btn {
        flex: 1;
        justify-content: center;
        min-width: 100px;
    }
}

/* ============================================
   WM Form Modal - Edit Forms (Shipping, etc.)
   ============================================ */

/* Form Modal Container */
.wm-form-modal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Form Modal Header */
.wm-form-modal .modal-header {
    background: linear-gradient(
        135deg,
        var(--primary-custom-color) 0%,
        var(--primary-custom-color-deep) 100%
    );
    border-bottom: none;
    padding: 18px 24px;
}

.wm-form-modal .modal-header .modal-title {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wm-form-modal .modal-header .close {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
    font-size: 26px;
    font-weight: 300;
    transition: opacity 0.2s ease;
}

.wm-form-modal .modal-header .close:hover {
    opacity: 1;
}

/* Form Modal Body */
.wm-form-modal .modal-body {
    padding: 24px;
    background: #f9fafb;
}

/* Form Section */
.wm-form-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.wm-form-section:last-child {
    margin-bottom: 0;
}

.wm-form-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f1f3;
}

.wm-form-section-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 8px;
    color: var(--primary-custom-color);
    font-size: 14px;
}

.wm-form-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Form Grid */
.wm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.wm-form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wm-form-grid .col-full {
    grid-column: 1 / -1;
}

/* Enhanced Form Group */
.wm-form-modal .form-group {
    margin-bottom: 16px;
}

.wm-form-modal .form-group:last-child {
    margin-bottom: 0;
}

.wm-form-modal .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.wm-form-modal .form-group .form-control {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    background: #fff;
}

.wm-form-modal .form-group .form-control:focus {
    border-color: var(--primary-custom-color);
    box-shadow: 0 0 0 3px rgba(0, 112, 244, 0.15);
    outline: none;
}

.wm-form-modal .form-group textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.wm-form-modal .form-group select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* File Upload Area - Dropzone */
.wm-form-modal .dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    background: #fafafa;
    min-height: 120px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.wm-form-modal .dropzone:hover {
    border-color: var(--primary-custom-color);
    background: #f0f9ff;
}

.wm-form-modal .dropzone .dz-message {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Activities Section in Form Modal */
.wm-form-modal .wm-activities-section {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

/* Form Modal Footer */
.wm-form-modal .modal-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.wm-form-modal .modal-footer .tw-dw-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.wm-form-modal .modal-footer .tw-dw-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Form Modal Responsive */
@media (max-width: 767px) {
    .wm-form-modal .modal-header {
        padding: 14px 16px;
    }

    .wm-form-modal .modal-header .modal-title {
        font-size: 15px;
    }

    .wm-form-modal .modal-body {
        padding: 16px;
    }

    .wm-form-section {
        padding: 16px;
    }

    .wm-form-grid,
    .wm-form-grid-3 {
        grid-template-columns: 1fr;
    }

    .wm-form-modal .modal-footer {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .wm-form-modal .modal-footer .tw-dw-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================
   Global Select2 Enhancement Styles
   ============================================ */

/* Select2 Container */
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #9ca3af;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary-custom-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

/* Selected text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #374151;
    font-size: 14px;
    line-height: 36px;
    margin-top: 0 !important;
}

/* Placeholder text */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af;
}

/* Arrow/Dropdown indicator */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    width: 30px;
    top: 0;
    right: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent;
    border-width: 5px 4px 0 4px;
    margin-top: -2px;
}

.select2-container--default.select2-container--open
    .select2-selection--single
    .select2-selection__arrow
    b {
    border-color: transparent transparent #6b7280 transparent;
    border-width: 0 4px 5px 4px;
}

/* Clear button */
.select2-container--default .select2-selection--single .select2-selection__clear {
    font-size: 16px;
    color: #9ca3af;
    margin-right: 8px;
    cursor: pointer;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #ef4444;
}

/* Dropdown Panel */
.select2-container--default .select2-dropdown {
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    overflow: hidden;
}

.select2-container--default .select2-dropdown--above {
    margin-top: 0;
    margin-bottom: 4px;
    border-radius: 8px;
}

/* Search Box */
.select2-container--default .select2-search--dropdown {
    padding: 10px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary-custom-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Results List */
.select2-container--default .select2-results__options {
    max-height: 280px;
    overflow-y: auto;
}

.select2-container--default .select2-results__option {
    padding: 10px 14px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option:hover {
    background-color: #eff6ff;
    color: var(--primary-custom-color, #3b82f6);
}

.select2-container--default .select2-results__option[aria-selected='true'] {
    background-color: var(--primary-custom-color, #3b82f6);
    color: #fff;
}

.select2-container--default .select2-results__option[aria-selected='true']:hover {
    background-color: var(--primary-custom-color-deep, #2563eb);
    color: #fff;
}

/* Disabled option */
.select2-container--default .select2-results__option[aria-disabled='true'] {
    color: #9ca3af;
    cursor: not-allowed;
    background: #f3f4f6;
}

/* No results message */
.select2-container--default .select2-results__message {
    padding: 12px 14px;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

/* Loading indicator */
.select2-container--default .select2-results__option--load-more,
.select2-container--default
    .select2-results__option[aria-selected='true'].select2-results__option--load-more {
    background: #f9fafb;
    color: #6b7280;
    font-size: 13px;
    text-align: center;
}

/* Multiple Select */
.select2-container--default .select2-selection--multiple {
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    min-height: 38px;
    padding: 4px 8px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: var(--primary-custom-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    color: var(--primary-custom-color, #3b82f6);
    font-size: 13px;
    padding: 4px 8px;
    margin: 2px 4px 2px 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--primary-custom-color, #3b82f6);
    margin-right: 4px;
    font-size: 14px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ef4444;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
    font-size: 14px;
    margin-top: 4px;
}

/* Input Group compatibility */
.input-group .select2-container--default .select2-selection--single {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

.input-group .select2-container--default.select2-container--focus .select2-selection--single,
.input-group .select2-container--default.select2-container--open .select2-selection--single {
    border-left: none;
}

/* Scrollbar styling for dropdown */
.select2-results__options::-webkit-scrollbar {
    width: 6px;
}

.select2-results__options::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.select2-results__options::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ====================================
 * Customer Accordion Styles
 * Used on Customer List page
 * ==================================== */

/* Accordion Row */
.customer-accordion-row {
    background-color: #f8f9fa !important;
}

.customer-accordion-row > td {
    padding: 0 !important;
    border-top: none !important;
}

.customer-accordion-content {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px solid var(--primary-custom-color);
}

/* Row highlight when accordion is open */
.accordion-open {
    background-color: #e8f4fc !important;
}

.accordion-open > td {
    background-color: #e8f4fc !important;
}

/* Accordion Tabs */
.customer-accordion-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px !important;
    padding-bottom: 0;
}

.customer-accordion-tabs > li {
    margin-bottom: -1px;
}

.customer-accordion-tabs > li > a {
    padding: 10px 16px;
    color: #495057;
    border: none !important;
    background: transparent !important;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.customer-accordion-tabs > li > a:hover {
    color: var(--primary-custom-color);
    background: #f8f9fa !important;
    border-radius: 4px 4px 0 0;
}

.customer-accordion-tabs > li.active > a {
    color: var(--primary-custom-color);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-custom-color) !important;
    background: transparent !important;
}

.customer-accordion-tabs > li > a > i {
    font-size: 12px;
}

/* Tab Content Area */
.customer-accordion-tab-content {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Loading Indicator */
.customer-accordion-tab-content .loading-indicator {
    padding: 40px 20px;
    color: #6c757d;
}

.customer-accordion-tab-content .loading-indicator i {
    color: var(--primary-custom-color);
}

/* Info Tab Styles */
.customer-info-tab .info-section {
    padding: 10px 0;
}

.customer-info-tab .customer-header {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.customer-info-tab .customer-title h4 {
    font-size: 18px;
    color: #333;
}

.customer-info-tab .info-table {
    margin-bottom: 0;
}

.customer-info-tab .info-table td {
    padding: 8px 10px;
    border: none;
    vertical-align: top;
}

.customer-info-tab .info-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.customer-info-tab .info-table tr:hover {
    background-color: #f0f7ff;
}

.customer-info-tab .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Table in tabs */
.customer-accordion-tab-content .table {
    margin-bottom: 0;
}

.customer-accordion-tab-content .table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.customer-accordion-tab-content .table td {
    vertical-align: middle;
    font-size: 13px;
}

/* Empty state styling */
.customer-accordion-tab-content .text-center.text-muted {
    padding: 40px 20px;
}

.customer-accordion-tab-content .text-center.text-muted i {
    opacity: 0.5;
}

/* Debt tab specific */
.customer-debt-tab .text-danger {
    font-weight: 600;
}

.customer-debt-tab tfoot tr {
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .customer-accordion-content {
        padding: 15px 10px;
    }

    .customer-accordion-tabs > li > a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .customer-accordion-tabs > li > a > i {
        display: none;
    }

    .customer-info-tab .customer-header .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .customer-info-tab .customer-avatar {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
}

/* ====================================
 * Sell Accordion Styles
 * Used on Sell List page (/sells)
 * ==================================== */

/* Accordion Row */
.sell-accordion-row {
    background-color: #f8f9fa !important;
}

.sell-accordion-row > td {
    padding: 0 !important;
    border-top: none !important;
}

.sell-accordion-content {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px solid var(--primary-custom-color);
}

/* Accordion Tabs */
.sell-accordion-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 5px !important;
    padding-bottom: 0;
}

.sell-accordion-tabs > li {
    margin-bottom: -1px;
}

.sell-accordion-tabs > li > a {
    padding: 10px 16px;
    color: #495057;
    border: none !important;
    background: transparent !important;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sell-accordion-tabs > li > a:hover {
    color: var(--primary-custom-color);
    background: #f8f9fa !important;
    border-radius: 4px 4px 0 0;
}

.sell-accordion-tabs > li.active > a {
    color: var(--primary-custom-color);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-custom-color) !important;
    background: transparent !important;
}

.sell-accordion-tabs > li > a > i {
    font-size: 12px;
}

/* Tab Content Area */
.sell-accordion-tab-content {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Loading Indicator */
.sell-accordion-tab-content .loading-indicator {
    padding: 40px 20px;
    color: #6c757d;
}

.sell-accordion-tab-content .loading-indicator i {
    color: var(--primary-custom-color);
}

/* Sell Info Tab Styles */
.sell-info-tab .panel {
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sell-info-tab .panel-heading {
    padding: 10px 15px;
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px 8px 0 0;
}

.sell-info-tab .panel-heading i {
    margin-right: 6px;
}

.sell-info-tab .panel-body {
    padding: 0;
}

.sell-info-tab .info-table {
    margin-bottom: 0;
}

.sell-info-tab .info-table td {
    padding: 8px 12px;
    border: none;
    vertical-align: top;
    font-size: 13px;
}

.sell-info-tab .info-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.sell-info-tab .info-table tr:hover {
    background-color: #f0f7ff;
}

/* Sell Payment History Tab */
.sell-payment-history-tab .bg-light-gray {
    background-color: #f8f9fa;
    border-radius: 8px;
}

.sell-payment-history-tab .h4 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 8px;
}

/* Table in tabs */
.sell-accordion-tab-content .table {
    margin-bottom: 0;
}

.sell-accordion-tab-content .table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.sell-accordion-tab-content .table td {
    vertical-align: middle;
    font-size: 13px;
}

/* Empty state styling */
.sell-accordion-tab-content .text-center.text-muted {
    padding: 40px 20px;
}

.sell-accordion-tab-content .text-center.text-muted i {
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sell-accordion-content {
        padding: 15px 10px;
    }

    .sell-accordion-tabs > li > a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .sell-accordion-tabs > li > a > i {
        display: none;
    }

    .sell-info-tab .row .col-md-4 {
        margin-bottom: 15px;
    }
}

/* Sell Products Scroll Wrapper - max-height with scroll */
.sell-products-scroll-wrapper {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sell-products-scroll-wrapper table {
    margin-bottom: 0;
}

.sell-products-scroll-wrapper thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f9f9f9;
}

.sell-products-scroll-wrapper thead th {
    background: #f9f9f9;
    border-bottom: 2px solid #ddd;
}

/* Custom scrollbar for products list */
.sell-products-scroll-wrapper::-webkit-scrollbar {
    width: 6px;
}

.sell-products-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sell-products-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sell-products-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ====================================
 * Purchase Accordion Styles
 * Used on Purchase List page (/purchases)
 * ==================================== */

/* Accordion Row */
.purchase-accordion-row {
    background-color: #f8f9fa !important;
}

.purchase-accordion-row > td {
    padding: 0 !important;
    border-top: none !important;
}

.purchase-accordion-content {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px solid var(--primary-custom-color);
}

/* Accordion Tabs */
.purchase-accordion-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 5px !important;
    padding-bottom: 0;
}

.purchase-accordion-tabs > li {
    margin-bottom: -1px;
}

.purchase-accordion-tabs > li > a {
    padding: 10px 16px;
    color: #495057;
    border: none !important;
    background: transparent !important;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.purchase-accordion-tabs > li > a:hover {
    color: var(--primary-custom-color);
    background: #f8f9fa !important;
    border-radius: 4px 4px 0 0;
}

.purchase-accordion-tabs > li.active > a {
    color: var(--primary-custom-color);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-custom-color) !important;
    background: transparent !important;
}

.purchase-accordion-tabs > li > a > i {
    font-size: 12px;
}

/* Tab Content Area */
.purchase-accordion-tab-content {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Loading Indicator */
.purchase-accordion-tab-content .loading-indicator {
    padding: 40px 20px;
    color: #6c757d;
}

.purchase-accordion-tab-content .loading-indicator i {
    color: var(--primary-custom-color);
}

/* Purchase Info Tab Styles */
.purchase-info-tab .panel {
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.purchase-info-tab .panel-heading {
    padding: 10px 15px;
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px 8px 0 0;
}

.purchase-info-tab .panel-heading i {
    margin-right: 6px;
}

.purchase-info-tab .panel-body {
    padding: 0;
}

.purchase-info-tab .info-table {
    margin-bottom: 0;
}

.purchase-info-tab .info-table td {
    padding: 8px 12px;
    border: none;
    vertical-align: top;
    font-size: 13px;
}

.purchase-info-tab .info-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.purchase-info-tab .info-table tr:hover {
    background-color: #f0f7ff;
}

/* Purchase Payment History Tab */
.purchase-payment-history-tab .bg-light-gray {
    background-color: #f8f9fa;
    border-radius: 8px;
}

.purchase-payment-history-tab .h4 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 8px;
}

/* Table in tabs */
.purchase-accordion-tab-content .table {
    margin-bottom: 0;
}

.purchase-accordion-tab-content .table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.purchase-accordion-tab-content .table td {
    vertical-align: middle;
    font-size: 13px;
}

/* Empty state styling */
.purchase-accordion-tab-content .text-center.text-muted {
    padding: 40px 20px;
}

.purchase-accordion-tab-content .text-center.text-muted i {
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .purchase-accordion-content {
        padding: 15px 10px;
    }

    .purchase-accordion-tabs > li > a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .purchase-accordion-tabs > li > a > i {
        display: none;
    }

    .purchase-info-tab .row .col-md-4 {
        margin-bottom: 15px;
    }
}

/* Purchase Products Scroll Wrapper - max-height with scroll */
.purchase-products-scroll-wrapper {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.purchase-products-scroll-wrapper table {
    margin-bottom: 0;
}

.purchase-products-scroll-wrapper thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f9f9f9;
}

.purchase-products-scroll-wrapper thead th {
    background: #f9f9f9;
    border-bottom: 2px solid #ddd;
}

/* Custom scrollbar for products list */
.purchase-products-scroll-wrapper::-webkit-scrollbar {
    width: 6px;
}

.purchase-products-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.purchase-products-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.purchase-products-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ====================================
 * Cash Book Accordion Styles
 * Used on Cash Book page (/cash-book)
 * ==================================== */

/* Accordion Row */
.cashbook-accordion-row {
    background-color: #f8f9fa !important;
}

.cashbook-accordion-row > td {
    padding: 0 !important;
    border-top: none !important;
}

.cashbook-accordion-content {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px solid var(--primary-custom-color);
}

/* Info Tab Styles */
.cashbook-info-tab .info-table {
    margin-bottom: 0;
}

.cashbook-info-tab .info-table td {
    padding: 8px 10px;
    border: none;
    vertical-align: top;
}

.cashbook-info-tab .info-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.cashbook-info-tab .info-table tr:hover {
    background-color: #f0f7ff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cashbook-accordion-content {
        padding: 15px 10px;
    }
}

/* ====================================
 * Product Accordion Styles
 * Used on Product List page (/products)
 * ==================================== */

/* Accordion Row */
.product-accordion-row {
    background-color: #f8f9fa !important;
}

.product-accordion-row > td {
    padding: 0 !important;
    border-top: none !important;
}

.product-accordion-content {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px solid var(--primary-custom-color);
}

/* Accordion Tabs */
.product-accordion-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 5px !important;
    padding-bottom: 0;
}

.product-accordion-tabs > li {
    margin-bottom: -1px;
}

.product-accordion-tabs > li > a {
    padding: 10px 16px;
    color: #495057;
    border: none !important;
    background: transparent !important;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-accordion-tabs > li > a:hover {
    color: var(--primary-custom-color);
    background: #f8f9fa !important;
    border-radius: 4px 4px 0 0;
}

.product-accordion-tabs > li.active > a {
    color: var(--primary-custom-color);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-custom-color) !important;
    background: transparent !important;
}

.product-accordion-tabs > li > a > i {
    font-size: 12px;
}

/* Tab Content Area */
.product-accordion-tab-content {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Loading Indicator */
.product-accordion-tab-content .loading-indicator {
    padding: 40px 20px;
    color: #6c757d;
}

.product-accordion-tab-content .loading-indicator i {
    color: var(--primary-custom-color);
}

/* Product Info Tab Styles */
.product-info-tab .info-section {
    padding: 10px 0;
}

.product-info-tab .info-table {
    margin-bottom: 0;
}

.product-info-tab .info-table td {
    padding: 8px 10px;
    border: none;
    vertical-align: top;
    font-size: 13px;
}

.product-info-tab .info-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.product-info-tab .info-table tr:hover {
    background-color: #f0f7ff;
}

/* Table in tabs */
.product-accordion-tab-content .table {
    margin-bottom: 0;
}

.product-accordion-tab-content .table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.product-accordion-tab-content .table td {
    vertical-align: middle;
    font-size: 13px;
}

/* Empty state styling */
.product-accordion-tab-content .text-center.text-muted {
    padding: 40px 20px;
}

.product-accordion-tab-content .text-center.text-muted i {
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-accordion-content {
        padding: 15px 10px;
    }

    .product-accordion-tabs > li > a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .product-accordion-tabs > li > a > i {
        display: none;
    }
}
