/* ============================================================
   WAREHOUZE REDESIGN — warehouze-redesign.css
   Drop-in stylesheet for ASP.NET MVC + Bootstrap 4 + DataTables
   Load AFTER bootstrap.min.css and app.min.css
   ============================================================ */

/* ── GOOGLE FONT ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

/* ── DESIGN TOKENS ── */
:root {
    --wz-bg: #f2ede4;
    --wz-white: #ffffff;
    --wz-dark: #1a1a1a;
    --wz-gray-600: #4b4b4b;
    --wz-gray-500: #6b6b6b;
    --wz-gray-400: #999;
    --wz-gray-300: #ccc;
    --wz-gray-200: #e8e8e8;
    --wz-gray-100: #f5f5f5;
    --wz-teal: #1a7a6d;
    --wz-teal-dark: #0d5c52;
    --wz-teal-light: #e6f5f2;
    --wz-yellow: #f5c518;
    --wz-red: #ef4444;
    --wz-red-light: #fee2e2;
    --wz-orange: #f97316;
    --wz-orange-light: #fff7ed;
    --wz-green: #16a34a;
    --wz-green-light: #d1fae5;
    --wz-blue: #3b82f6;
    --wz-blue-light: #dbeafe;
    --wz-radius: 24px;
    --wz-radius-sm: 14px;
    --wz-radius-xs: 10px;
    --wz-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px; /*= --card-shadow !!! */
    --wz-active: #ccc;
}


/* ============================================================
   1. GLOBAL OVERRIDES
   ============================================================ */

body {
    font-family: 'DM Sans', -apple-system, sans-serif !important;
    background-color: var(--wz-bg) !important;
    color: var(--wz-dark);
    min-height: 100vh !important;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', -apple-system, sans-serif;
}

a {
    color: var(--wz-gray-400);
}

.logo {
    line-height: 0px;
}
/* App.css */
.content-page {
    margin-top: 5px;
}
/* navbar */
.navbar-custom .topnav-menu .nav-link {
    color: var(--wz-gray-500);    
}
/* Notification */
.notification-list .noti-icon-badge {
    top: 0px;
    right: -4px;
}
@media (min-width: 1200px) {
    body[data-layout="horizontal"] .container-fluid {
        max-width: 100%;
    }
}
body[data-layout="horizontal"] .content-page {
    margin-left: 0 !important;
    padding-top: 5px;
}
div.ColVis {
    float: right;
    margin-bottom: 1em;
    margin-right: 0px;
}

/* ============================================================
   2. TOP NAVBAR — .navbar-custom
   ============================================================ */

.navbar-custom {
    background: var(--wz-white) !important;
    border-bottom: 1px solid var(--wz-gray-200) !important;
    box-shadow: none !important;
}

/* Logo area */
.logo-box {
    background: transparent !important;
}

/* Nav links in the secondary bar */
.topbar-menu {
    background: var(--wz-white) !important;
    border-bottom: 1px solid var(--wz-gray-200) !important;
}

.navigation-menu > li > a {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--wz-gray-500) !important;
    padding: 7px 14px !important;
    border-radius: 20px !important;
    transition: all 0.2s !important;
}

    .navigation-menu > li > a:hover {
        color: var(--wz-dark) !important;
        background: var(--wz-gray-200) !important;
    }

    .navigation-menu > li.active > a,
    .navigation-menu > li > a.active {
        background: var(--wz-dark) !important;
        color: var(--wz-white) !important;
        font-weight: 600 !important;
    }

    /* Hide original nav icons text, keep icon only */
    .navigation-menu > li > a > i {
        display: none !important; /* Remove Bootstrap icons from nav — use text only */
    }

/* ============================================================
   2.5 NEW TOP NAVBAR — .navbar-custom
   ============================================================ */

/* NAV */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: var(--wz-white);
    border-bottom: 1px solid var(--wz-gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: nowrap !important;
    /*overflow-x: auto !important;*/
    -webkit-overflow-scrolling: touch;
}
    .nav::-webkit-scrollbar {
        display: none;
    }
.nav {
    scrollbar-width: none;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo svg {
    height: 22px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .nav-links a {
        text-decoration: none;
        color: var(--wz-gray-500);
        font-size: 14px;
        font-weight: 500;
        padding: 7px 14px;
        border-radius: 20px;
        transition: all 0.2s;
        white-space: nowrap;
    }

        .nav-links a:hover {
            color: var(--wz-dark);
            background: var(--wz-gray-200);
        }

        .nav-links a.active {
            background: var(--wz-dark);
            color: var(--wz-white);
            font-weight: 600;
        }

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--wz-gray-500);
    transition: all 0.2s;
}

    .nav-icon:hover {
        background: var(--wz-gray-100);
        color: var(--wz-dark);
    }

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--wz-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 32px 60px;
}

/* PAGE HEADER */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    animation: fadeUp 0.4s ease both;
}

    .page-header h1 {
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -0.5px;
    }

/* ============================================================
   3. CARDS — .card
   ============================================================ */

.card {
    border: none !important;
    border-radius: var(--wz-radius) !important;
    box-shadow: var(--wz-shadow) !important;
    background: var(--wz-white) !important;
    padding: 0px 7px 7px 7px !important;
}

.card-body {
    padding: 0 !important; /* Let table/toolbar handle their own padding */
}


/* ============================================================
   4. BUTTONS
   ============================================================ */

.btn {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 600 !important;
    border-radius: var(--wz-radius-xs) !important;
    font-size: 13px !important;
    transition: all 0.2s !important;
    padding:8px 18px;
}

.btn-primary {
    background-color: var(--wz-teal) !important;
    border-color: var(--wz-teal) !important;
}

    .btn-primary:hover {
        background-color: var(--wz-teal-dark) !important;
        border-color: var(--wz-teal-dark) !important;
    }

.btn-success {
    background-color: var(--wz-green) !important;
    border-color: var(--wz-green) !important;
}

    .btn-success:not(:disabled):not(.disabled):active, .btn-success:not(:disabled):not(.disabled).active,
    .show > .btn-success.dropdown-toggle {
        color: #fff;
        background-color: var(--wz-gray-600);
        border-color: var(--wz-gray-600);
    }

/* Wizard Buttons */
.wizard > .actions a, .wizard > .actions a:hover, .wizard > .actions a:active {
    background: var(--wz-teal);
    color: #fff;
    display: block;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 600 !important;
    border-radius: var(--wz-radius-xs) !important;
    font-size: 13px !important;
    transition: all 0.2s !important;
    padding: 8px 18px;
}

.wizard > .actions .disabled a, .wizard > .actions .disabled a:hover, .wizard > .actions .disabled a:active {
    background: var(--wz-gray-400);
    color: var(--wz-gray-600);
}

.bootstrap-tagsinput .label-info {
    background-color: var(--wz-teal);    
    border-radius: var(--wz-radius-xs);
}

/* Generate Purchase Orders button */
#GeneratePO,
.btn-generate-po {
    background-color: var(--wz-yellow) !important;
    border-color: var(--wz-yellow) !important;
    color: var(--wz-dark) !important;
}

    #GeneratePO:hover,
    .btn-generate-po:hover {
        background-color: #e6b422 !important;
    }


/* ============================================================
   5. TOOLBAR AREA — .dataTables_toolbar / .datatables_toolbar
   ============================================================ */

.dataTables_wrapper .dataTables_toolbar,
.dataTables_wrapper .datatables_toolbar,
.dataTables_wrapper .SubscriptionTables_toolbar,
.dataTables_wrapper .TeamTables_toolbar,
.dataTables_wrapper .CurrencyDataTables_toolbar,
.dataTables_wrapper .ApiIntegrations_toolbar,
.dataTables_wrapper .ApiTokens_toolbar,
.dataTables_wrapper .WebhookDataTables_toolbar,
.dataTables_wrapper .AppTokens_toolbar,
.dataTables_wrapper .companySubscriptionTables_toolbar,
.dataTables_wrapper .orderDatatables_toolbar,
.dataTables_wrapper .logDataTables_toolbar,
.dataTables_wrapper .groupDatatables_toolbar,
.dataTables_wrapper .groupDataTables_toolbar,
.dataTables_wrapper .unitDatatables_toolbar,
.dataTables_wrapper .warehouseDatatables_toolbar,
.dataTables_wrapper .LocationDataTables_toolbar,
.dataTables_wrapper .LogDatatables_toolbar,
.dataTables_wrapper .variantDatatables_toolbar,
.dataTables_wrapper .poDraftDatatables_toolbar,
.dataTables_wrapper .ReceiveDataTables_toolbar,
.dataTables_wrapper .InvoiceMatchDataTables_toolbar,
.dataTables_wrapper .shopping-datatables_toolbar,
.dataTables_wrapper .po-datatables_toolbar,
.dataTables_wrapper .WebhookTables_toolbar {
    padding: 16px 22px !important;
    /*border-bottom: 1px solid #f0ebe3 !important;*/
}

/* Table header */
.ColVis_MasterButton,
.dataTables_wrapper .btn.dropdown-toggle,
.dataTables_wrapper .btn.btn-success {
    background: var(--wz-white) !important;
    color: var(--wz-dark) !important;
    border: 1px solid var(--wz-gray-200) !important;
}
    .ColVis_MasterButton:hover,
    .dataTables_wrapper .btn.dropdown-toggle:hover,
    .dataTables_wrapper .btn.btn-success:hover {
        background-color: var(--wz-white) !important;
        border: 1px solid var(--wz-teal-dark) !important;
    }


/* ============================================================
   6. DATATABLES — table styling
   ============================================================ */

/* Remove Bootstrap striping and borders */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: transparent !important;
}

.table-bordered,
.table-bordered th,
.table-bordered td {
    border: none !important;
}

.dataTable thead th,
.table thead th {
    background: #f7f4ef !important;
    padding: 11px 14px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--wz-gray-500) !important;
    border-bottom: 1px solid var(--wz-gray-200) !important;
    border-top: none !important;
    white-space: nowrap !important;
}

/* Search row in header — style the filter inputs */
#searchrow th {
    background: var(--wz-white) !important;
    padding: 8px 14px !important;
    border-bottom: 1px solid #f0ebe3 !important;
}

#searchrow .searchinput,
#searchrow .form-control {
    border: 1px solid var(--wz-gray-200) !important;
    border-radius: var(--wz-radius-xs) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 12px !important;
    padding: 6px 10px !important;
}

/* Table body rows */
.dataTable tbody tr,
.table tbody tr {
    border-bottom: 1px solid #f0ebe3 !important;
    transition: background 0.15s !important;
}

    .dataTable tbody tr:hover,
    .table tbody tr:hover {
        background-color: #faf8f4 !important;
    }

/* Table cells */
.dataTable td,
.table td {
    padding: 12px 14px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    color: var(--wz-gray-600) !important;
    white-space: nowrap !important;
    border: none !important;
    vertical-align: middle !important;
}

    /* Number cells — right-align */
    .dataTable td.tnumber,
    .table td.tnumber {
        text-align: right !important;
        font-variant-numeric: tabular-nums !important;
    }

    /* Bold product name */
    .dataTable td:nth-child(2) {
        font-weight: 600 !important;
        color: var(--wz-dark) !important;
    }


/* Step 2: Completely hide the default ::before elements */
table.dataTable thead th.sorting::before,
table.dataTable thead th.sorting_asc::before,
table.dataTable thead th.sorting_desc::before {
    display: none !important;
    content: "" !important;
}

/* Step 3: Force the new arrows on the ::after elements */

/* Default state (unsorted) */
table.dataTable thead th.sorting::after {
    content: "↕" !important;
    display: inline-block !important; /* Added !important to guarantee visibility */
    padding: 0px 5px !important;
    opacity: 0.3 !important;
    font-family: sans-serif !important; /* Prevents DataTables icon fonts from breaking the symbol */
    position: sticky !important;
}

/* Ascending state */
table.dataTable thead th.sorting_asc::after {
    content: "↑" !important;
    display: inline-block !important;
    padding: 0px 5px !important;
    color: var(--wz-gray-600) !important;
    opacity: 1 !important;
    font-family: sans-serif !important;
    position: sticky !important;
}

/* Descending state */
table.dataTable thead th.sorting_desc::after {
    content: "↓" !important;
    display: inline-block !important;
    padding: 0px 5px !important;
    color: var(--wz-gray-600) !important;
    opacity: 1 !important;
    font-family: sans-serif !important;
    position: sticky !important;
}


/* ============================================================
   7. STATUS BADGES — replace Bootstrap badges
   ============================================================ */

.badge {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 600 !important;
    /*font-size: 12px !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;*/
    border: none !important;
}

    /* None / Danger */
    .badge-danger,
    .badge.border-danger {
        background: var(--wz-red-light) !important;
        color: var(--wz-red) !important;
        border: none !important;
    }

    /* Partial / Warning */
    .badge-warning,
    .badge.border-warning {
        background: var(--wz-orange-light) !important;
        color: var(--wz-orange) !important;
        border: none !important;
    }

/* Full / Success */
.badge-success {
    background: var(--wz-green-light) !important;
    color: var(--wz-green) !important;
}

/* Draft / Info */
.badge-info {
    background: var(--wz-blue-light) !important;
    color: var(--wz-blue) !important;
}


/* ============================================================
   8. IN-STOCK VALUES — color-code by value
   ============================================================ */

/* Negative stock — apply class .wz-stock-negative */
.wz-stock-negative {
    background: var(--wz-red-light);
    color: var(--wz-red);
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
}

/* Zero stock */
.wz-stock-zero {
    background: var(--wz-gray-100);
    color: var(--wz-gray-400);
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
}

/* Positive stock */
.wz-stock-ok {
    background: var(--wz-green-light);
    color: var(--wz-green);
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
}


/* ============================================================
   9. PAGINATION — DataTables paging
   ============================================================ */

.dataTables_paginate {
    padding: 14px 22px !important;
}

    .dataTables_paginate .page-item .page-link {
        font-family: 'DM Sans', sans-serif !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        color: var(--wz-gray-500) !important;
        border: 1px solid var(--wz-gray-200) !important;
        border-radius: 8px !important;
        padding: 6px 12px !important;
        margin: 0 2px !important;
        background: var(--wz-white) !important;
    }

    .dataTables_paginate .page-item.active .page-link {
        background: var(--wz-dark) !important;
        color: var(--wz-white) !important;
        border-color: var(--wz-dark) !important;
    }

    .dataTables_paginate .page-item .page-link:hover {
        background: var(--wz-bg) !important;
    }

.dataTables_info {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    color: var(--wz-gray-500) !important;
    padding: 14px 22px !important;
}
.col-sm-7:has(.dataTables_paginate) {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}
/*Alternatively, if :has() is not supported, you can use the following approach to target the pagination and info elements separately:
    .dataTables_paginate {
    float: right;
    align-items: center;
}
.showEntries {
    float: right;
    margin-right: 15px;
    align-items: center;
}*/


/* ============================================================
   10. SELECT2 DROPDOWNS
   ============================================================ */

.select2-container--default .select2-selection--single {
    border: 1px solid var(--wz-gray-200) !important;
    border-radius: var(--wz-radius-xs) !important;
    height: 38px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
}

.select2-dropdown {
    border: 1px solid var(--wz-gray-200) !important;
    border-radius: var(--wz-radius-xs) !important;
    box-shadow: var(--wz-shadow) !important;
    font-family: 'DM Sans', sans-serif !important;
}

select.custom-select.form-control {
    padding: 5px 24px 5px 10px !important;
}

/* 1. The selected text (what shows when the box is closed) */
.select2-container .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
    color: var(--wz-dark) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: bold;
}

/* 2. The placeholder text (if you are using one) */
/*.select2-container .select2-selection--single .select2-selection__placeholder {
    color: #999999 !important;
}
*/

/* 3. The options in the dropdown list (when opened) */
.select2-container .select2-results__option {
    color: var(--wz-gray-400) !important;
}

/* 4. The highlighted/hovered option in the dropdown list */
.select2-container .select2-results__option--highlighted[aria-selected] {
    color: var(--wz-dark) !important; /* Text color when hovering */
    background-color: var(--wz-gray-300) !important; /* Background color when hovering */
}

/* ============================================================
   11. TABS — .nav-tabs (Purchase Orders)
   ============================================================ */
.nav-tabs.nav-bordered {
    border-bottom: 2px solid var(--wz-gray-200) !important;
    padding: 0 22px !important;
    background: var(--wz-white) !important;
}

    .nav-tabs.nav-bordered .nav-link {
        font-family: 'DM Sans', sans-serif !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: var(--wz-gray-400) !important;
        border: none !important;
        border-bottom: 2px solid transparent !important;
        margin-bottom: -2px !important;
        padding: 14px 20px !important;
        transition: all 0.2s !important;
    }

        .nav-tabs.nav-bordered .nav-link:hover {
            color: var(--wz-dark) !important;
        }

        .nav-tabs.nav-bordered .nav-link.active {
            color: var(--wz-dark) !important;
            border-bottom-color: var(--wz-teal) !important;
            background: transparent !important;
        }


/* ============================================================
   12. MODALS
   ============================================================ */

.modal-content {
    border-radius: var(--wz-radius) !important;
    border: none !important;
    box-shadow: var(--wz-shadow) !important;
}

.modal-header {
    border-bottom: 1px solid #f0ebe3 !important;
    padding: 20px 24px !important;
}

    .modal-header .modal-title {
        font-family: 'DM Sans', sans-serif !important;
        font-weight: 700 !important;
    }

.modal-body {
    padding: 24px !important;
}


/* ============================================================
   13. FORMS
   ============================================================ */

.form-control {
    border: 1px solid var(--wz-gray-200) !important;
    border-radius: var(--wz-radius-xs) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    padding: 9px 14px !important;
    transition: border-color 0.2s !important;
}

    .form-control:focus {
        border-color: var(--wz-teal) !important;
        box-shadow: 0 0 0 2px rgba(26, 122, 109, 0.1) !important;
    }


/* ============================================================
   14. DROPDOWNS (Bootstrap)
   ============================================================ */

.dropdown-menu {
    border: 1px solid var(--wz-gray-200) !important;
    border-radius: var(--wz-radius-xs) !important;
    box-shadow: var(--wz-shadow) !important;
    padding: 4px 0 !important;
}

.dropdown-item {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    padding: 10px 16px !important;
    transition: background 0.15s !important;
}

    .dropdown-item:hover {
        background: var(--wz-bg) !important;
    }


/* ============================================================
   15. FOOTER
   ============================================================ */

.footer {
    font-family: 'DM Sans', sans-serif !important;
    background: transparent !important;
    border-top: 1px solid #e9e4db !important;
    color: var(--wz-gray-400) !important;
}


/* ============================================================
   16. EDIT BUTTONS (pencil icon in table)
   ============================================================ */

.dataTable .btn-xxs {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    border: 1px solid var(--wz-gray-200) !important;
    background: var(--wz-white) !important;
    color: var(--wz-gray-500) !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
}

    .dataTable .btn-xxs:hover {
        background: var(--wz-teal) !important;
        color: white !important;
        border-color: var(--wz-teal) !important;
    }


/* ============================================================
   17. SWEET ALERT overrides
   ============================================================ */

.swal2-popup {
    border-radius: var(--wz-radius) !important;
    font-family: 'DM Sans', sans-serif !important;
}

.swal2-confirm {
    background-color: var(--wz-teal) !important;
    border-radius: var(--wz-radius-xs) !important;
}


/* ============================================================
   18. CHECKBOX overrides
   ============================================================ */

.checkbox-primary input[type="checkbox"]:checked + label::before {
    background-color: var(--wz-teal) !important;
    border-color: var(--wz-teal) !important;
}


/* ============================================================
   19. WIZARD STEPS (Shopping List, Create PO)
   ============================================================ */

.wizard > .steps > ul > li.current > a {
    background: var(--wz-teal) !important;
    border-radius: var(--wz-radius-xs) !important;
}

.wizard > .steps > ul > li > a {
    font-family: 'DM Sans', sans-serif !important;
    border-radius: var(--wz-radius-xs) !important;
}

/* ============================================================
   20. Table Tabs (PO details page) — if using Bootstrap tabs, otherwise ignore
   ============================================================ */

/* TABS */
.tab-bar {
    display: flex;
    gap: 0;
    background: var(--wz-white);
    border-radius: var(--wz-radius) var(--wz-radius) 0 0;
    padding: 0 22px;
    box-shadow: var(--wz-shadow);
    animation: fadeUp 0.48s ease both;
    border-bottom: 2px solid var(--wz-gray-200);
}

.tab-btn {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--wz-gray-400);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

    .tab-btn:hover {
        color: var(--wz-dark);
    }

    .tab-btn.active {
        color: var(--wz-dark);
        border-bottom-color: var(--wz-teal);
    }


.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

.empty-state {
    padding: 48px;
    text-align: center;
    color: var(--wz-gray-400);
}

    .empty-state svg {
        margin: 0 auto 12px;
        display: block;
        opacity: 0.3;
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   21. MISSING STYLES IMPORTED FROM PO.CSS
   ============================================================ */

/* --- Custom Buttons --- */
.btn-primary-w {
    background: var(--wz-teal);
    color: white;
}

    .btn-primary-w:hover {
        background: var(--wz-teal-dark);
    }

.btn-secondary-w {
    background: var(--wz-white);
    color: var(--wz-dark);
    border: 1px solid var(--wz-gray-200);
}

    .btn-secondary-w:hover {
        background: var(--wz-gray-100);
    }

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 8px;
    background: var(--wz-green);
    color: white;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
}

    .btn-icon:hover {
        opacity: 0.85;
    }

/* --- Custom Toolbar Layout --- */
.toolbar {
    background: var(--wz-white);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #f0ebe3;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-select {
    padding: 9px 14px;
    border-radius: var(--wz-radius-xs);
    border: 1px solid var(--wz-gray-200);
    background: white;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--wz-dark);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* --- Table Wrappers & Specific Cells --- */
.table-container {
    background: var(--wz-white);
    border-radius: 0 0 var(--wz-radius) var(--wz-radius);
    box-shadow: var(--wz-shadow);
    overflow: hidden;
    animation: fadeUp 0.55s ease both;
}

.table-scroll {
    overflow-x: auto;
}

td.product-name {
    font-weight: 600;
    color: var(--wz-dark);
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Custom Badges & Tags --- */
.status-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
}

    .status-badge.none {
        background: var(--wz-red-light);
        color: var(--wz-red);
    }

    .status-badge.partial {
        background: var(--wz-orange-light);
        color: var(--wz-orange);
    }

    .status-badge.full {
        background: var(--wz-green-light);
        color: var(--wz-green);
    }

.supplier-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: var(--wz-teal-light);
    color: var(--wz-teal-dark);
}

.po-number {
    font-weight: 700;
    color: var(--wz-dark);
    background: var(--wz-bg);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
}

/* --- Form Inputs for Table --- */
.chk-box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid var(--wz-gray-300);
    cursor: pointer;
    accent-color: var(--wz-teal);
}

.receive-input {
    width: 60px;
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid var(--wz-gray-200);
    font-family: inherit;
    font-size: 13px;
    text-align: right;
    font-weight: 600;
    color: var(--wz-dark);
}

    .receive-input:focus {
        outline: none;
        border-color: var(--wz-teal);
    }

/* --- Custom Footer Layout --- */
.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-top: 1px solid #f0ebe3;
    font-size: 13px;
    color: var(--wz-gray-500);
}

.entries-select {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .entries-select select {
        padding: 6px 10px;
        border-radius: 6px;
        border: 1px solid var(--wz-gray-200);
        font-family: inherit;
        font-size: 13px;
        background: white;
    }

/* Note: This targets the custom .pagination block from po.css. 
  If Bootstrap's default .pagination causes conflicts, you might 
  need to rename this class in your HTML to .custom-pagination 
*/
/*.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .pagination button {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        border: 1px solid var(--wz-gray-200);
        background: white;
        cursor: pointer;
        font-family: inherit;
        font-size: 13px;
        font-weight: 500;
        color: var(--wz-gray-500);
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .pagination button.active {
            background: var(--wz-dark);
            color: white;
            border-color: var(--wz-dark);
        }*/

/* ============================================================
   22. DASHBOARD WIDGETS & STATS (Imported from dashboard.css)
   ============================================================ */

/* PAGE HEADER SUBTITLE */
.page-header p {
    font-size: 14px;
    color: var(--wz-gray-400);
    margin-top: 4px;
}

/* SECTION */
.section {
    margin-bottom: 32px;
    animation: fadeUp 0.5s ease both;
}

    .section:nth-child(3) {
        animation-delay: 0.06s;
    }

    .section:nth-child(4) {
        animation-delay: 0.12s;
    }

    .section:nth-child(5) {
        animation-delay: 0.18s;
    }

.section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wz-gray-400);
    margin-bottom: 12px;
}

/* STAT CARDS ROW */
.stat-grid {
    display: grid;
    gap: 0;
    background: var(--wz-white);
    border-radius: var(--wz-radius);
    box-shadow: var(--wz-shadow);
    overflow: hidden;
}

    .stat-grid.cols-5 {
        grid-template-columns: repeat(5, 1fr);
    }

    .stat-grid.cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

.stat-cell {
    padding: 22px 24px;
    text-decoration: none;
    color: inherit;
    display: block;
    border-right: 1px solid #f0ebe3;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

    .stat-cell:last-child {
        border-right: none;
    }

    .stat-cell:hover {
        background: #faf8f4;
    }

    /* Attention tints */
    .stat-cell.tint-red {
        background: #fef2f2;
    }

        .stat-cell.tint-red:hover {
            background: #fde8e8;
        }

    .stat-cell.tint-yellow {
        background: #fefce8;
    }

        .stat-cell.tint-yellow:hover {
            background: #fef9c3;
        }

    .stat-cell .cell-label {
        font-size: 13px;
        font-weight: 500;
        color: var(--wz-gray-500);
        margin-bottom: 8px;
    }

    .stat-cell .cell-val {
        font-size: 32px;
        font-weight: 800;
        letter-spacing: -1px;
        color: var(--wz-dark);
        line-height: 1;
    }

        .stat-cell .cell-val.red {
            color: var(--wz-red);
        }

        .stat-cell .cell-val.orange {
            color: var(--wz-orange);
        }

    .stat-cell .cell-sub {
        font-size: 11px;
        color: var(--wz-gray-400);
        margin-top: 4px;
    }

/* WIDGET GRID */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.widget-card {
    background: var(--wz-white);
    border-radius: var(--wz-radius);
    box-shadow: var(--wz-shadow);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s;
    animation: fadeUp 0.5s ease both;
}

    .widget-card.clickable {
        cursor: pointer;
    }

        .widget-card.clickable:hover {
            transform: translateY(-2px);
        }

    .widget-card:nth-child(1) {
        animation-delay: 0.24s;
    }

    .widget-card:nth-child(2) {
        animation-delay: 0.28s;
    }

    .widget-card:nth-child(3) {
        animation-delay: 0.32s;
    }

    .widget-card:nth-child(4) {
        animation-delay: 0.36s;
    }

    .widget-card:nth-child(5) {
        animation-delay: 0.40s;
    }

    .widget-card:nth-child(6) {
        animation-delay: 0.44s;
    }

.widget-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--wz-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--wz-gray-500);
}

.widget-info {
    flex: 1;
}

    .widget-info .w-label {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        color: var(--wz-gray-400);
        margin-bottom: 4px;
    }

    .widget-info .w-val {
        font-size: 24px;
        font-weight: 800;
        color: var(--wz-dark);
        letter-spacing: -0.5px;
    }



/* ============================================================
   23. ACCOUNT SETTINGS CARDS (Imported from acc.css)
   ============================================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.account-card {
    background: var(--wz-white);
    border-radius: var(--wz-radius);
    box-shadow: var(--wz-shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeUp 0.5s ease both;
}

    .account-card:hover {
        transform: translateY(-2px);
        box-shadow: rgba(149, 157, 165, 0.3) 0px 12px 32px;
    }

    .account-card.disabled {
        opacity: 0.55;
        cursor: default;
    }

        .account-card.disabled:hover {
            transform: none;
            box-shadow: var(--wz-shadow);
        }

    .account-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .account-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .account-card:nth-child(3) {
        animation-delay: 0.15s;
    }

    .account-card:nth-child(4) {
        animation-delay: 0.2s;
    }

    .account-card:nth-child(5) {
        animation-delay: 0.25s;
    }

    .account-card:nth-child(6) {
        animation-delay: 0.3s;
    }

    .account-card:nth-child(7) {
        animation-delay: 0.35s;
    }

.card-head {
    background: var(--wz-dark);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .card-head h3 {
        font-size: 16px;
        font-weight: 700;
        color: var(--wz-white);
        margin: 0;
    }

.card-head-icon {
    color: rgba(255, 255, 255, 0.5);
}

.card-content {
    padding: 20px 22px;
}

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 12px;
}

    .field-row + .field-row {
        border-top: 1px solid #f0ebe3;
    }

.field-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--wz-gray-500);
    flex-shrink: 0;
}

.field-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--wz-dark);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

    .field-value.muted {
        color: var(--wz-gray-400);
        font-weight: 400;
    }

.card-action {
    padding: 0 22px 18px;
}

.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--wz-radius-xs);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--wz-gray-200);
    background: var(--wz-white);
    color: var(--wz-dark);
    font-family: inherit;
    transition: all 0.2s;
}

    .btn-card:hover {
        background: var(--wz-gray-100);
    }

    .btn-card.btn-disabled {
        opacity: 0.4;
        cursor: default;
    }

        .btn-card.btn-disabled:hover {
            background: var(--wz-white);
        }

    .btn-card.primary {
        background: var(--wz-teal);
        color: white;
        border-color: var(--wz-teal);
    }

        .btn-card.primary:hover {
            background: var(--wz-teal-dark);
        }

/*.modal-dialog {
    max-width: 800px;
    margin: 1.75rem auto;
}*/