@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    --primary-color: #619062;
    /* --secondary-color: #cf9c1e; */
    --secondary-color: #ffffff;
    --bs-link-color: var(--primary-color);
    --bs-link-color-rgb: 97, 144, 98;
    --bs-link-hover-color: var(--primary-color);
    --bs-link-hover-color-rgb: 97, 144, 98;
    --site-font-family: "Nunito", sans-serif;
    --bs-font-sans-serif: var(--site-font-family);
    --bs-body-font-family: var(--site-font-family);
    --scrollbar-size: 6px;
}

/* Global scrollbar styling (WebKit/Blink).
   Do not set scrollbar-width/scrollbar-color here — they force OS scrollbars
   with rounded thumbs and arrows in Chrome/Edge. */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    -webkit-appearance: none;
    appearance: none;
    width: var(--scrollbar-size) !important;
    height: var(--scrollbar-size) !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--primary-color) 12%, transparent) !important;
    border-radius: 0 !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
    background-color: var(--primary-color) !important;
    border: 0 !important;
    border-radius: 0 !important;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color) !important;
}

html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button,
*::-webkit-scrollbar-button,
*::-webkit-scrollbar-button:start:decrement,
*::-webkit-scrollbar-button:end:increment,
*::-webkit-scrollbar-button:vertical:start:increment,
*::-webkit-scrollbar-button:vertical:end:decrement,
*::-webkit-scrollbar-button:horizontal:start:increment,
*::-webkit-scrollbar-button:horizontal:end:decrement,
*::-webkit-scrollbar-button:single-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
    background: transparent !important;
}

/* Firefox only */
@supports (-moz-appearance: none) {
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) transparent;
    }
}

html,
body,
button,
input,
select,
textarea,
.btn,
.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6,
.sidebar,
.navbar,
.card,
.table,
.form-control,
.form-select,
.dropdown-menu,
.list-group-item,
.pagination,
.alert,
.modal,
.nav,
.nav-link,
.badge,
label,
p,
span,
a,
li,
td,
th {
    font-family: var(--site-font-family) !important;
}

/* Match Wexford Piping form field / button type sizes */
label,
.form-label {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.5;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not(.select2-search__field),
textarea,
select,
.form-control,
.form-select {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
}

.btn:not(.btn-close),
body .btn:not(.btn-close) {
    --bs-btn-font-size: 0.75rem;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
}

@media (min-width: 1200px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 960px !important;
    }
}

.header {
    margin-bottom: 1rem !important;
}

.header-user-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    color: #fff !important;
    font-weight: 300;
}

.header-user-name {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 300;
}

.header-user-toggle.dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

.header-user-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 0.15rem;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: translateY(-1.5px) rotate(45deg);
    flex-shrink: 0;
}

.header-user-menu {
    min-width: 13rem;
    padding: 0.4rem;
    border: 1px solid color-mix(in srgb, var(--primary-color) 12%, #fff);
    border-radius: 0.6rem;
}

.header-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.4rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.2;
}

.header-user-menu .dropdown-item:last-child {
    margin-bottom: 0;
}

.header-user-menu .dropdown-item i {
    width: 1.1rem;
    text-align: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.header-user-menu .dropdown-item:hover,
.header-user-menu .dropdown-item:focus {
    background-color: #e9e9e9 !important;
    color: var(--primary-color) !important;
}

.header-user-menu .dropdown-item:hover i,
.header-user-menu .dropdown-item:focus i {
    color: var(--primary-color) !important;
}

.header-user-menu .dropdown-item.active,
.header-user-menu .dropdown-item.active:hover,
.header-user-menu .dropdown-item.active:focus {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
}

.header-user-menu .dropdown-item.active i,
.header-user-menu .dropdown-item.active:hover i,
.header-user-menu .dropdown-item.active:focus i {
    color: var(--secondary-color) !important;
}

.header-user-menu .dropdown-divider {
    margin: 0 0.45rem 0.35rem;
    border-top-color: color-mix(in srgb, var(--primary-color) 15%, #fff);
}

.border-bottom {
    border-bottom: 1px solid var(--primary-color) !important;
}

.content {
    margin-top: 1rem !important;
}

.wrapper:before {
    height: 10rem !important;
}

/* reset password */
.mb-2-8 {
    margin-bottom: 2.8rem;
}

.title-space {
    padding-bottom: 0.6rem;
}

.btn-accoring-to-text {
    width: revert;
}

/* reset password */

.btn-primary,
.list-group-item.active,
.bg-primary-dark,
.splash .splash-icon {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary,
.list-group-item.active,
.bg-primary-dark {
    border: var(--primary-color) !important;
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
}

a.sidebar-link .fab,
a.sidebar-link .fal,
a.sidebar-link .far,
a.sidebar-link .fas,
a.sidebar-link svg,
.text-primary {
    color: var(--primary-color) !important;
}

.sidebar-item.active>.sidebar-link .fab,
.sidebar-item.active>.sidebar-link .fal,
.sidebar-item.active>.sidebar-link .far,
.sidebar-item.active>.sidebar-link .fas,
.sidebar-item.active>.sidebar-link svg,
.sidebar-item.active>.sidebar-link {
    color: var(--secondary-color) !important;
}

.sidebar-item.active>.sidebar-link {
    background-color: var(--primary-color) !important;
}


.sidebar-link:hover {
    color: var(--primary-color) !important;
    background-color: #e9e9e9 !important;
}

.sidebar-brand,
.sidebar-brand:hover,
.wrapper:before {
    background-color: var(--primary-color) !important;
}

/* .header-title {
    color: #ed1c24 !important;
} */

.dispatch-note {
    display: block;
    /* Ensures the badge behaves like a block element */
    max-width: 100%;
    /* Prevents overflow */
    white-space: normal;
    /* Allows wrapping */
    word-wrap: break-word;
    /* Breaks long words */
    overflow-wrap: break-word;
    /* Ensures text wraps properly */
    text-align: left;
    /* Align text properly */
    padding: 8px;
    /* Adds spacing inside the badge */
}

/* Global status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.35rem;
    padding: 0.15rem 0.55rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
    vertical-align: middle;
}

.status-badge--info {
    color: var(--primary-color, #619062);
    background: color-mix(in srgb, var(--primary-color, #619062) 12%, #fff);
    border-color: color-mix(in srgb, var(--primary-color, #619062) 28%, #fff);
}

.status-badge--success {
    color: #146c43;
    background: #e8f6ee;
    border-color: #b6e2c8;
}

.status-badge--warning {
    color: #9a6700;
    background: #fff6df;
    border-color: #f0d58a;
}

.status-badge--danger {
    color: #b42318;
    background: #fef3f2;
    border-color: #f3c4bf;
}

.status-badge--muted {
    color: #495057;
    background: #f1f3f5;
    border-color: #dee2e6;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not(.select2-search__field),
textarea,
select,
.form-control,
.form-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not(.select2-search__field):hover,
textarea:hover,
select:hover,
.form-control:hover,
.form-select:hover,
.select2-container--default .select2-selection--single:hover,
.select2-container--default .select2-selection--multiple:hover,
.dt-length-toggle:hover {
    outline: none !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: none !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not(.select2-search__field):focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-select:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
    outline: none !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 25%, transparent) !important;
}

button:focus {
    outline: none !important;
}

.sidebar-user {
    padding: 1rem 0rem 0rem !important;
}

/* Keep page content below sidebar stacking context */
.main {
    position: relative;
    z-index: 1;
}

/* Keep sidebar fixed while page content scrolls */
.sidebar .sidebar-content {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex !important;
    flex-direction: column !important;
    width: 250px;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden !important;
    background: #fff !important;
    z-index: 1050;
}

.sidebar .sidebar-user {
    flex-shrink: 0;
}

.sidebar .sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    margin-bottom: 0 !important;
    padding-bottom: 0.5rem;
}

.sidebar .sidebar-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 0.75rem 0.5rem;
    border-top: 1px solid color-mix(in srgb, var(--primary-color) 15%, #e9ecef);
    background: #fff;
}

.sidebar .sidebar-logout {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.sidebar .sidebar-logout:hover {
    background-color: color-mix(in srgb, var(--primary-color) 10%, #fff) !important;
    color: var(--primary-color) !important;
}

.sidebar .sidebar-logout .fas {
    color: var(--primary-color) !important;
}

.sidebar.toggled .sidebar-content {
    left: -250px;
}

.sidebar-backdrop {
    display: none;
}

/* Mobile: overlay sidebar (no page shift).
   .sidebar must be the stacking context above .main — z-index on
   .sidebar-content alone stays trapped under the table. */
@media (max-width: 991.98px) {
    .sidebar {
        position: relative !important;
        z-index: 1060 !important;
        margin-left: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        width: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .sidebar.toggled {
        margin-left: 0 !important;
    }

    .sidebar .sidebar-content {
        left: -260px;
        z-index: 2 !important;
        background: #fff !important;
        box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.25);
        transition: left 0.3s ease-in-out;
    }

    .sidebar.toggled .sidebar-content {
        left: 0;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1050;
        display: none;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .main,
    body.sidebar-open .main {
        position: relative !important;
        z-index: 1 !important;
        width: 100% !important;
        min-width: 100% !important;
        margin-left: 0 !important;
    }
}

.cardscroll {
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    max-height: 20rem;
}

.text-bg-warning,
.bg-warning {
    background-color: var(--secondary-color) !important;
}

.sidebar-user img {
    height: 9rem !important;
    width: auto !important;
}

.logo {
    height: 9rem !important;
}

.center-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nav-tab {
    --bs-nav-link-padding-x: 1rem;
    --bs-nav-link-padding-y: 0.5rem;
    --bs-nav-link-font-weight: ;
    --bs-nav-link-color: var(--bs-link-color);
    --bs-nav-link-hover-color: var(--bs-link-hover-color);
    --bs-nav-link-disabled-color: var(--bs-secondary-color);
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.nav-item-tab {
    padding: 0.5rem !important;
}

.nav-tab .active {
    background-color: #ececec;
}

.sidebar-link,
a.sidebar-link {
    border-radius: .6rem !important;
}

.sidebar-item {
    margin-bottom: 0.3rem !important;
}

/* Main menus aligned with each other */
.sidebar-nav > .sidebar-item > .sidebar-link {
    display: flex !important;
    align-items: center;
    margin: 0 0.5rem !important;
    padding: 0.5rem 2rem 0.5rem 0.75rem !important;
}

.sidebar-nav > .sidebar-item > .sidebar-link > i {
    width: 1.25rem;
    margin-right: 0.75rem !important;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav > .sidebar-item > .sidebar-link > span {
    line-height: 1.2;
}

/* Collapse arrow stays absolute so it doesn't shift menu text */
.sidebar [data-bs-toggle=collapse] {
    position: relative;
}

.sidebar [data-bs-toggle=collapse]:before {
    top: 50% !important;
    right: 0.85rem !important;
    margin-top: -3px;
}

/* Sub menus aligned with each other, indented under mains */
.sidebar-dropdown {
    padding-left: 0 !important;
}

.sidebar-dropdown .sidebar-link,
.sidebar-dropdown a.sidebar-link {
    display: flex !important;
    align-items: center;
    margin: 0 0.5rem !important;
    padding: 0.4rem 0.75rem 0.4rem 2.75rem !important;
}

.sidebar-dropdown .sidebar-link > i,
.sidebar-dropdown a.sidebar-link > i {
    width: 0.9rem;
    margin-right: 0.5rem !important;
    text-align: center;
    flex-shrink: 0;
}

/* Logout matches main menu alignment */
.sidebar-footer .sidebar-link {
    display: flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0.5rem 0.75rem !important;
}

.sidebar-footer .sidebar-link > i {
    width: 1.25rem;
    margin-right: 0.75rem !important;
    text-align: center;
    flex-shrink: 0;
}

.min-height {
    min-height: 85vh !important;
}

.big-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #007bff;
    background-color: #fff;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
}

.avatar-sm {
    height: 32px !important;
    width: 32px !important;
    min-width: 32px;
    min-height: 32px;
}

.avatar-md {
    height: 48px !important;
    width: 48px !important;
    min-width: 48px;
    min-height: 48px;
}

.avatar-lg {
    height: 64px !important;
    width: 64px !important;
    min-width: 64px;
    min-height: 64px;
}

.avatar i {
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-sm i {
    font-size: 12px;
}

.avatar-md i {
    font-size: 16px;
}

.avatar-lg i {
    font-size: 20px;
}

.avatar>* {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.quick-action-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar.d-flex {
    display: flex !important;
}

.stats-card .bg-primary,
.stats-card .bg-info,
.stats-card .bg-warning,
.stats-card .bg-success,
.stats-card .bg-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
}

.stats-card .bg-primary i,
.stats-card .bg-info i,
.stats-card .bg-warning i,
.stats-card .bg-success i,
.stats-card .bg-danger i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.validation-message {
    font-size: 13px !important;
}

/* DataTables zebra rows */
.table.datatables-users tbody tr:nth-child(odd),
.table.datatables-users tbody tr.odd,
.dataTables_wrapper table.dataTable tbody tr:nth-child(odd),
.dataTables_wrapper table.dataTable tbody tr.odd {
    background-color: #fff;
}

.table.datatables-users tbody tr:nth-child(even),
.table.datatables-users tbody tr.even,
.dataTables_wrapper table.dataTable tbody tr:nth-child(even),
.dataTables_wrapper table.dataTable tbody tr.even {
    background-color: #f3f5f7;
}

.table.datatables-users tbody tr:hover,
.dataTables_wrapper table.dataTable tbody tr:hover {
    background-color: color-mix(in srgb, var(--primary-color) 8%, #fff);
}

/* Horizontal scroll: sync header with body, hide header scrollbar only */
.dataTables_wrapper .dataTables_scrollHead {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dataTables_wrapper .dataTables_scrollHead::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.dataTables_wrapper .dataTables_scrollHeadInner {
    overflow: visible !important;
}

.dataTables_wrapper .dataTables_scrollBody {
    overflow-x: auto !important;
    overflow-y: visible !important;
}

/* DataTables centers a table that is narrower than the scroll body.
   The header stays left, so the rows were shifted out from under the headings. */
.dataTables_wrapper .dataTables_scrollBody table.dataTable,
.dataTables_wrapper .dataTables_scrollHead table.dataTable {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.dataTables_wrapper table.dataTable thead th:first-child,
.dataTables_wrapper table.dataTable tbody td:first-child,
.table.datatables-users thead th:first-child,
.table.datatables-users tbody td:first-child {
    position: sticky !important;
    left: 0 !important;
    z-index: 1;
    background-clip: padding-box;
    box-shadow: none;
}

.dataTables_wrapper.dt-scrolled-x table.dataTable thead th:first-child,
.dataTables_wrapper.dt-scrolled-x table.dataTable tbody td:first-child {
    box-shadow: 4px 0 6px -4px rgba(0, 0, 0, 0.15);
}

.dataTables_wrapper .dataTables_scrollHead table.dataTable thead th:first-child,
.dataTables_wrapper table.dataTable thead th:first-child,
.table.datatables-users thead th:first-child {
    z-index: 2 !important;
    background-color: #fff !important;
}

.dataTables_wrapper table.dataTable tbody tr:nth-child(odd) td:first-child,
.dataTables_wrapper table.dataTable tbody tr.odd td:first-child,
.table.datatables-users tbody tr:nth-child(odd) td:first-child,
.table.datatables-users tbody tr.odd td:first-child {
    background-color: #fff !important;
}

.dataTables_wrapper table.dataTable tbody tr:nth-child(even) td:first-child,
.dataTables_wrapper table.dataTable tbody tr.even td:first-child,
.table.datatables-users tbody tr:nth-child(even) td:first-child,
.table.datatables-users tbody tr.even td:first-child {
    background-color: #f3f5f7 !important;
}

.dataTables_wrapper table.dataTable tbody tr:hover td:first-child,
.table.datatables-users tbody tr:hover td:first-child {
    background-color: color-mix(in srgb, var(--primary-color) 8%, #fff) !important;
}

/* DataTables controls */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    font-weight: 600;
    color: #495057;
}

.dataTables_wrapper .dataTables_length select.dt-length-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.dt-length-dropdown {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.dt-length-toggle {
    min-width: 4.5rem;
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 1.75rem 0.25rem 0.7rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--bs-border-radius, 0.2rem);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23174b79' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    background-size: 10px;
    color: #495057;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dt-length-toggle:hover,
.dt-length-dropdown.is-open .dt-length-toggle {
    border-color: var(--primary-color) !important;
    box-shadow: none !important;
}

.dt-length-toggle:focus,
.dt-length-dropdown.is-open .dt-length-toggle:focus {
    outline: none !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 25%, transparent) !important;
}

.dt-length-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 1050;
    min-width: 100%;
    margin: 0;
    padding: 0.25rem;
    list-style: none;
    background: #fff;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--bs-border-radius, 0.2rem);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
}

.dt-length-dropdown.is-open .dt-length-menu {
    display: block;
}

.dt-length-option {
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.15rem;
    border-radius: var(--bs-border-radius, 0.2rem);
    color: #495057;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.3;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dt-length-option:last-child {
    margin-bottom: 0;
}

.dt-length-option:hover,
.dt-length-option.is-selected {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Match Bootstrap col-md-3 filter fields (e.g. Customer) across all tables */
@media (min-width: 768px) {
    .dataTables_wrapper .dataTables_filter {
        float: right !important;
        width: calc(25% - 0.5rem) !important;
        max-width: calc(25% - 0.5rem) !important;
        box-sizing: border-box !important;
        text-align: left !important;
    }

    .dataTables_wrapper .dataTables_filter label {
        display: flex !important;
        align-items: center;
        width: 100% !important;
        margin-bottom: 0;
    }
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dt-search-input {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: calc(1.5em + 0.5rem + 2px) !important;
    margin-left: 0 !important;
    padding: 0.25rem 0.7rem !important;
    border: 1px solid var(--bs-border-color, #dee2e6) !important;
    border-radius: var(--bs-border-radius, 0.2rem) !important;
    background-color: #fff !important;
    color: #495057 !important;
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dataTables_wrapper .dataTables_filter input::placeholder,
.dataTables_wrapper .dt-search-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.dataTables_wrapper .dataTables_filter input:hover,
.dataTables_wrapper .dt-search-input:hover {
    border: 1px solid var(--primary-color) !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dt-search-input:focus {
    outline: none !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 25%, transparent) !important;
}

@media (max-width: 767.98px) {
    div.dataTables_wrapper div.dataTables_length {
        float: none !important;
        width: 100% !important;
        text-align: left !important;
    }

    div.dataTables_wrapper div.dataTables_length label {
        justify-content: flex-start !important;
        width: 100% !important;
    }

    .dataTables_wrapper .dataTables_filter {
        float: none !important;
        width: 100% !important;
        text-align: left !important;
        margin-top: 0.5rem;
    }

    .dataTables_wrapper .dataTables_filter label {
        display: block !important;
        width: 100% !important;
    }

    .dataTables_wrapper .dataTables_filter input,
    .dataTables_wrapper .dt-search-input {
        display: block !important;
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .dataTables_wrapper .dataTables_info {
        font-size: 0.85rem !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button,
    .dataTables_wrapper .dataTables_paginate span.ellipsis {
        width: 1.75rem !important;
        min-width: 1.75rem !important;
        max-width: 1.75rem !important;
        height: 1.75rem !important;
        font-size: 0.85rem !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
    .dataTables_wrapper .dataTables_paginate .paginate_button.next {
        font-size: 0.8rem !important;
    }
}

/* DataTables info + pagination row (desktop/tablet) */
@media (min-width: 768px) {
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        display: inline-flex !important;
        align-items: center;
        vertical-align: middle;
        padding-top: 0.75rem;
        margin: 0 !important;
        height: 2rem;
        line-height: 1 !important;
        box-sizing: border-box;
    }

    .dataTables_wrapper .dataTables_info {
        float: left !important;
    }

    .dataTables_wrapper .dataTables_paginate {
        float: right !important;
    }

    .dataTables_wrapper .dataTables_paginate::after {
        display: none;
    }
}

/* DataTables pagination */
.dataTables_wrapper .dataTables_paginate {
    padding-top: 0.75rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate span.ellipsis {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
    width: 2rem !important;
    min-width: 2rem !important;
    max-width: 2rem !important;
    height: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--primary-color) !important;
    font-weight: 500 !important;
    font-variant-numeric: tabular-nums;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate span.ellipsis {
    cursor: default;
    overflow: hidden;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:focus,
.dataTables_wrapper .dataTables_paginate .paginate_button:active {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:focus {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:focus {
    border: 0 !important;
    background: transparent !important;
    color: color-mix(in srgb, var(--primary-color) 40%, transparent) !important;
    font-weight: 500 !important;
    cursor: default !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    font-size: 0.85rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous i,
.dataTables_wrapper .dataTables_paginate .paginate_button.next i {
    color: inherit !important;
}


/* Bootstrap pagination (Laravel links) */
.pagination .page-link {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--primary-color) !important;
    font-weight: 500;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--primary-color) !important;
    font-weight: 700;
}

.pagination .page-item.active .page-link {
    border: 0 !important;
    background: transparent !important;
    color: var(--primary-color) !important;
    font-weight: 700;
}

.pagination .page-item.disabled .page-link {
    background: transparent !important;
    color: color-mix(in srgb, var(--primary-color) 40%, transparent) !important;
    font-weight: 500;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .site-brand-row > [class*="col-"] {
        flex: 0 0 auto;
        width: 100%;
    }
}

.profile-submit-desktop {
    display: none;
}

@media (max-width: 1199px) {
    .profile-form-row > .profile-fields,
    .profile-form-row > .profile-photo {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .profile-submit-desktop {
        display: block;
    }

    .profile-submit-stacked {
        display: none !important;
    }
}

.site-media-card {
    height: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid #e6e9ef;
    border-radius: 0.6rem;
    background: #f8fafc;
}

.site-media-title {
    margin: 0 0 0.85rem;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 700;
}

.site-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-upload-preview {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    object-fit: contain;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid #e6e9ef;
}

.site-upload-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    min-width: 0;
}

.site-upload-body small {
    color: #6c757d;
    line-height: 1.4;
}

/* Shared Save / Cancel row — same responsiveness as Purchase Order */
.form-actions,
.po-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
    margin-top: 1rem;
    width: 100%;
}

.form-actions > .btn,
.po-form-actions > .btn {
    flex: 1 1 8rem;
    min-height: calc(1.5em + 0.5rem + 2px);
    margin: 0 !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767.98px) {
    form button.btn[type="submit"]:not(.dropdown-item),
    form input.btn[type="submit"] {
        display: block;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    form button.btn[type="submit"]:not(.dropdown-item) + button.btn[type="submit"],
    form input.btn[type="submit"] + button.btn[type="submit"],
    form button.btn[type="submit"]:not(.dropdown-item) + input.btn[type="submit"] {
        margin-top: 0.5rem;
    }

    table form button.btn[type="submit"],
    .dropdown-menu button.btn[type="submit"],
    .dropdown-menu input.btn[type="submit"] {
        display: inline-block;
        width: auto !important;
    }

    /* Keep Save + Cancel equal-width side-by-side like PO form */
    .form-actions > .btn,
    .po-form-actions > .btn {
        display: inline-flex !important;
        width: auto !important;
        margin: 0 !important;
    }
}

/* Themed date picker */
.theme-date {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.theme-date > input[type="date"] {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.theme-date-toggle {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--primary-color) !important;
    border-radius: var(--bs-border-radius, 0.2rem);
    background: #fff !important;
    color: #495057 !important;
    font-family: var(--site-font-family);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    outline: none !important;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.theme-date-toggle.is-placeholder .theme-date-value {
    color: #6c757d;
}

.theme-date-icon {
    width: 1rem;
    height: 1rem;
    color: var(--primary-color) !important;
    flex-shrink: 0;
    pointer-events: none;
}

.theme-date-toggle:hover,
.theme-date.is-open .theme-date-toggle,
.theme-date-toggle:focus,
.theme-date-toggle:focus-visible {
    outline: none !important;
    border-color: var(--primary-color) !important;
}

.theme-date-toggle:focus,
.theme-date-toggle:focus-visible,
.theme-date.is-open .theme-date-toggle {
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 25%, transparent) !important;
}

.theme-date.is-invalid .theme-date-toggle {
    border-color: #dc3545 !important;
}

.theme-date-menu {
    display: none;
    position: fixed;
    z-index: 2200;
    width: min(17.75rem, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1.5rem);
    padding: 0.75rem 0.75rem 0.55rem;
    background: #fff;
    border: 1px solid var(--primary-color) !important;
    border-radius: 0.35rem;
    box-shadow: 0 0.5rem 1.25rem rgba(23, 75, 121, 0.18);
    color: var(--primary-color);
    font-family: var(--site-font-family);
}

@media (max-width: 575.98px) {
    .theme-date-toggle {
        min-height: calc(1.5em + 0.75rem + 2px);
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    .theme-date-icon {
        width: 1.1rem;
        height: 1.1rem;
    }
}

.theme-date-menu.is-open {
    display: block;
}

.theme-date-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}

.theme-date-title {
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 0.95rem;
}

.theme-date-nav,
.theme-date-action,
.theme-date-day {
    border: 0 !important;
    background: transparent !important;
    color: var(--primary-color) !important;
    font-family: var(--site-font-family);
    cursor: pointer;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.theme-date-nav {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.25rem;
    font-size: 1.35rem;
    line-height: 1;
}

.theme-date-weekdays,
.theme-date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.15rem;
    text-align: center;
}

.theme-date-weekdays {
    margin-bottom: 0.2rem;
    color: #6c757d;
    font-size: 0.72rem;
    font-weight: 700;
}

.theme-date-day {
    height: 2rem;
    border-radius: 0.25rem;
    color: #212529 !important;
    font-size: 0.85rem;
    font-weight: 600;
}

.theme-date-day.is-outside {
    color: #adb5bd !important;
}

.theme-date-day.is-today {
    box-shadow: inset 0 0 0 1px var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.theme-date-day.is-selected,
.theme-date-day.is-selected:focus,
.theme-date-day.is-selected:focus-visible,
.theme-date-day:hover,
.theme-date-nav:hover,
.theme-date-nav:focus,
.theme-date-action:hover,
.theme-date-action:focus {
    background: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    box-shadow: none !important;
}

.theme-date-day.is-selected.is-today {
    box-shadow: none !important;
}

.theme-date-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0.45rem;
    padding-top: 0.4rem;
    border-top: 1px solid color-mix(in srgb, var(--primary-color) 16%, #fff);
}

.theme-date-action {
    padding: 0.2rem 0.4rem;
    border-radius: 0.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

/* Multi-image drag & drop upload */
.site-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.15rem 1rem;
    border: 1px dashed color-mix(in srgb, var(--primary-color) 45%, #c5d4e4);
    border-radius: 0.55rem;
    background: color-mix(in srgb, var(--primary-color) 4%, #fff);
    color: var(--primary-color);
    text-align: center;
    cursor: pointer;
    position: relative;
}

.site-dropzone.is-drag {
    background: color-mix(in srgb, var(--primary-color) 12%, #fff);
    border-color: var(--primary-color);
}

.site-dropzone.is-disabled {
    opacity: 0.6;
    cursor: default;
}

.site-dropzone-picker {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.site-dropzone-icon {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, #fff);
    margin-bottom: 0.15rem;
}

.site-dropzone-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.site-dropzone-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.site-dropzone-help,
.site-dropzone-error {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
}

.site-dropzone-error {
    margin: 0.45rem 0 0;
}

.site-dropzone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.site-dropzone-grid:empty {
    display: none;
}

.site-dropzone-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem;
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, #d7e3ee);
    border-radius: 0.45rem;
    background: #fff;
}

.site-dropzone-thumb {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.3rem;
    flex-shrink: 0;
    object-fit: cover;
    background: #f4f7fb;
}

.site-dropzone-meta {
    min-width: 0;
    flex: 1;
}

.site-dropzone-meta strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
}

.site-dropzone-meta span {
    color: #6c757d;
    font-size: 0.75rem;
}

.site-dropzone-remove {
    border: 0;
    background: transparent;
    color: #dc3545;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.2rem;
}
/* Toggle switches — label left, switch right (no Bootstrap negative-margin overflow) */
.site-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    min-height: 2.35rem;
    padding: 0.55rem 0.85rem;
    margin-bottom: 0;
    border: 1px solid #e6e9ef;
    border-radius: 0.4rem;
    background: #fafbfc;
    box-sizing: border-box;
}

.site-toggle-label {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    line-height: 1.3;
}

.site-toggle-control {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding-left: 0 !important;
    margin-bottom: 0;
    min-height: auto;
    min-width: 2.35rem;
}

.site-toggle .form-check-input {
    float: none;
    width: 2.35rem;
    height: 1.25rem;
    margin: 0 !important;
    cursor: pointer;
    background-color: #ced4da;
    border: 1px solid #ced4da;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, background-position 0.15s ease-in-out;
}

.site-toggle .form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.site-toggle .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== Themed Select2 (single + multiple share one look) ===== */
.select2-container {
    width: 100% !important;
    z-index: 1;
}

.select2-container--open {
    z-index: 2100 !important;
}

.select2-container {
    font-size: 0.75rem !important;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.select2-container--bootstrap4 .select2-selection--single,
.select2-container--bootstrap4 .select2-selection--multiple,
.select2-container--bootstrap4 .select2-selection {
    border: 1px solid var(--bs-border-color, #dee2e6) !important;
    border-radius: var(--bs-border-radius, 0.2rem) !important;
    background-color: #fff !important;
    font-size: 0.75rem !important;
    line-height: 1.5 !important;
    min-height: calc(1.5em + 0.5rem + 2px) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select2-container--default .select2-selection--single,
.select2-container--bootstrap4 .select2-selection--single {
    height: calc(1.5em + 0.5rem + 2px) !important;
    padding: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    color: #495057 !important;
    line-height: calc(1.5em + 0.5rem) !important;
    padding-left: 0.7rem !important;
    padding-right: 1.75rem !important;
    font-size: 0.75rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder,
.select2-container--default .select2-selection--multiple .select2-selection__placeholder,
.select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder,
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__placeholder {
    color: #6c757d !important;
    font-size: 0.75rem !important;
    margin: 0 !important;
    line-height: calc(1.5em + 0.5rem) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 0.35rem !important;
}

.select2-container--default .select2-selection--single:hover,
.select2-container--default .select2-selection--multiple:hover,
.select2-container--bootstrap4 .select2-selection:hover {
    border-color: var(--primary-color, #619062) !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 1.5rem !important;
    font-size: 0.85rem !important;
    color: #6c757d !important;
}

/* Multiple: tags in field only (search is in dropdown) */
.select2-container--default .select2-selection--multiple {
    height: auto !important;
    padding: 0.25rem 1.75rem 0.25rem 0.45rem !important;
    position: relative;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.3rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
    overflow: visible !important;
    white-space: normal !important;
    float: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
    margin: 0 !important;
    padding: 0.18rem 0.45rem !important;
    background-color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 0.2rem !important;
    color: #fff !important;
    font-size: 0.7rem !important;
    line-height: 1.3 !important;
    float: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
    margin: 0 0.2rem 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-weight: 700 !important;
    float: none !important;
    position: static !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ffd9d9 !important;
    background: transparent !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
    position: absolute !important;
    right: 0.45rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
    color: #6c757d !important;
}

/* Hide any leftover inline search on multi (search belongs in dropdown) */
.select2-container--default .select2-selection--multiple .select2-search--inline {
    display: none !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 25%, transparent) !important;
}

/* Dropdown panel + search — same for single and multiple */
.select2-dropdown {
    border: 1px solid var(--primary-color) !important;
    border-radius: 0.2rem !important;
    background: #fff !important;
    box-shadow: 0 0.25rem 0.75rem rgba(23, 75, 121, 0.12) !important;
    overflow: hidden !important;
    z-index: 2100 !important;
}

.select2-container--default .select2-search--dropdown {
    padding: 0.45rem !important;
    background: #fff !important;
    display: block !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    width: 100% !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 0.2rem !important;
    font-size: 0.75rem !important;
    line-height: 1.5 !important;
    padding: 0.35rem 0.55rem !important;
    outline: none !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #495057 !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus,
.select2-container--default .select2-search--dropdown .select2-search__field:hover {
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--primary-color) 20%, transparent) !important;
}

.select2-results {
    background: #fff !important;
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 220px !important;
}

.select2-container--default .select2-results__option {
    font-size: 0.75rem !important;
    padding: 0.45rem 0.7rem !important;
    color: #495057 !important;
    background: #fff !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[aria-selected=true],
.select2-container--default .select2-results__option--highlighted[aria-selected=false],
.select2-container--bootstrap4 .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--bootstrap4 .select2-results__option--highlighted,
.select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected],
.select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected=true],
.select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected=false] {
    background-color: var(--primary-color, #619062) !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--bootstrap4 .select2-results__option[aria-selected=true] {
    background-color: color-mix(in srgb, var(--primary-color, #619062) 12%, #fff) !important;
    color: var(--primary-color, #619062) !important;
}

.select2-container--default .select2-results__option[aria-selected=true].select2-results__option--highlighted,
.select2-container--bootstrap4 .select2-results__option[aria-selected=true].select2-results__option--highlighted {
    background-color: var(--primary-color, #619062) !important;
    color: #fff !important;
}

.select2-container--default .select2-results__message {
    font-size: 0.75rem !important;
    color: #6c757d !important;
    padding: 0.5rem 0.7rem !important;
}

/* Product supplier selectable cards */
.supplier-check-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    max-height: 14rem;
    overflow-y: auto;
    padding: 0.15rem;
    border: 0;
    background: transparent;
}

@media (min-width: 992px) {
    .supplier-check-list {
        grid-template-columns: 1fr 1fr;
        max-height: none;
    }
}

.supplier-check-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d7dde5;
    border-radius: 0.35rem;
    background: #fff;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
    user-select: none;
}

.supplier-check-item span {
    flex: 1;
    line-height: 1.35;
}

.supplier-check-item::after {
    content: "";
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    border: 1.5px solid #c5ccd6;
    background: transparent;
    flex-shrink: 0;
}

.supplier-check-item:hover {
    border-color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 5%, #fff);
}

.supplier-check-item.is-checked {
    border-color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 10%, #fff);
    color: var(--primary-color);
    box-shadow: 0 0 0 0.12rem color-mix(in srgb, var(--primary-color) 18%, transparent);
}

.supplier-check-item.is-checked::after {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: inset 0 0 0 2px #fff;
}

.supplier-check-item.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.supplier-check-item.is-disabled:hover {
    border-color: #d7dde5;
    background: #fff;
}

.supplier-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
}

.stat-card-grid {
    padding: 0.15rem 0.1rem 0.85rem;
    overflow: visible;
}

.stat-card-grid > .row,
.stat-card-grid > .row > [class*="col-"] {
    overflow: visible;
}

.stat-card-grid > .row > [class*="col-"] {
    display: flex;
}

.stat-card {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 0.95rem 1.05rem;
    border-radius: 0.5rem;
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, #d7dde5);
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--primary-color) 10%, #fff) 0%,
            #fff 72%
        );
    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.05),
        0 4px 10px rgba(16, 24, 40, 0.08),
        0 10px 20px rgba(16, 24, 40, 0.06);
}

.stat-card__label {
    color: color-mix(in srgb, var(--primary-color) 72%, #6c757d);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0.35rem;
}

.stat-card__value {
    color: var(--primary-color);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.stat-card__meta {
    margin-top: 0.35rem;
    color: #6c757d;
    font-size: 0.75rem;
    line-height: 1.3;
}

.iso-bulk-row .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0;
    flex-shrink: 0;
    border-color: color-mix(in srgb, var(--primary-color) 35%, #ced4da);
}

.iso-bulk-row .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.iso-bulk-row .form-check-label {
    font-size: 0.75rem;
    color: #495057;
    line-height: 1.3;
}

.iso-bulk-row .iso-bulk-qty:disabled {
    background: #f1f3f5;
    cursor: not-allowed;
}
