* {
    box-sizing: border-box;
}
:root {
    --app-max-width: 1580px;
    --primary-custom-color: #0070f4;
    --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;
}
.app-content {
    width: 100%;
    max-width: var(--app-max-width);
    margin: 0 auto;
}
.content {
    min-height: 75vh !important;
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}
.required {
    color: red;
    font-weight: normal;
}
.box-tools .tw-dw-btn,
.pull-right {
    height: 2.5rem !important;
    min-height: 10px !important;
    border-radius: 8px !important;
}
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: 99px !important;
    padding: 0px 13px;
}
.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: 20px;
}
.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-ac,
button[type='submit'],
.btn-sb {
    background: var(--secondary-custom-color) !important;
    border-color: var(--secondary-custom-color) !important;
}
.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: #2e94da;
}
.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 .box-header {
    display: flex;
    padding: 0 !important;
}
.main-right .box-header .box-tools {
    position: absolute;
    right: 0;
}
/*** End All ****/

/*** Header  ***/
.header-business-logo {
    width: 60px;
}
.header-content {
    padding: 0 20px;
}
.utilities,
.my-profile,
.bells {
    z-index: 9999 !important;
}
.custom-header {
    background-color: #fff;
}
.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;
    }
    #side-bar {
        display: flex;
        gap: 4px;
        padding: 0px 10px 10px 10px;
        overflow: visible;
    }
    .side-bar .parent,
    .side-bar svg {
        color: #fff;
        font-size: 16px;
        padding-left: 5px;
        gap: 5px;
    }
    .side-bar .parent:hover,
    .side-bar .parent:hover svg {
        color: #000;
        transition: 0.5s;
    }
    .side-bar .parent.active,
    .side-bar .parent.active svg {
        color: #000;
    }

    .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.08);
    }
    .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: 3.75rem;
        left: 0;
        right: 0;
    }
    #scrollable-container {
        padding-top: 3.7rem;
    }
}
/*** 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;
}
/*** End sells ***/
.custom-form-login form {
    background: unset !important;
}
/*** Modal ***/
.modal-content {
    border-radius: 8px;
}
/*** End Modal ***/

/** Table **/
.dataTables_scrollBody {
    max-height: unset !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 {
    height: 6px;
}
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: #e5f1fe !important;
    border-radius: 10px 10px 0px 0px !important;
}
.dataTables_wrapper table.dataTable {
    border-radius: 10px !important;
}
div.dataTables_scrollBody > table {
    min-height: 400px;
}
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: rgba(149, 157, 165, 0.15) 0px 8px 24px;
    height: 32px;
    font-size: 13px;
    margin-left: 0 !important;
}
.lth {
    text-align: left;
}
.act {
    text-align: right;
}
.find,
.lth,
.act {
    padding: 0;
}

/** 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: auto !important;
}
#side-bar.tw-overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}
/* 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: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}
.invo .product-info .box-solid,
.invo .order-info .box-solidm,
.purchase-invo .product-info .box-solid,
.purchase-invo .order-info .box-solid {
    min-height: 710px;
}
.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: 20%;
        padding-right: 0;
    }
    .col-md-9 {
        width: 80%;
        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;
}
