:root {
    --bs-primary: #0000FF;
}

/* Tenant-uploaded branding logos can be any resolution/aspect ratio —
   constrain them so the sidebar brand slot never overflows/crops. */
.erp-tenant-brand {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.erp-brand-logo-full {
    height: 32px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.erp-brand-logo-abbr {
    height: 32px;
    width: 32px;
    object-fit: contain;
}

.loader-bg {
    align-items: center;
    background: #f3f4f6;
    display: flex;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 9999;
}

.erp-global-search {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    display: flex;
    gap: 10px;
    min-width: 420px;
    padding: 0 14px;
}

.erp-global-search i {
    color: #64748b;
    font-size: 16px;
}

.erp-global-search .form-control {
    background: transparent;
    border: 0;
    box-shadow: none;
    height: 42px;
    padding: 0;
}

.erp-notification-menu {
    min-width: 280px;
}

.erp-module-launcher {
    max-width: min(990px, calc(100vw - 360px));
    min-width: 990px;
    padding: 0;
}

.erp-module-launcher.nxl-mega-menu-sm,
.erp-module-launcher.nxl-mega-menu-md,
.erp-module-launcher.nxl-mega-menu-lg,
.erp-module-launcher.nxl-mega-menu-xl,
.erp-module-launcher.nxl-mega-menu-xxl,
.erp-module-launcher.nxl-mega-menu-full {
    max-width: min(990px, calc(100vw - 360px));
    min-width: 990px;
}

.erp-module-launcher .nxl-mega-menu-tabs {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
}

.erp-module-launcher .nxl-mega-menu-tabs-content {
    height: 390px;
    min-height: 390px;
    padding: 30px;
    width: 100%;
}

.erp-module-launcher .tab-pane {
    height: 100%;
}

.erp-module-launcher .tab-pane.show.active {
    display: flex;
    flex-direction: column;
}

.erp-module-launcher hr {
    margin: 20px 0;
}

.erp-mega-module-grid {
    margin-top: 6px;
}

.erp-module-link {
    align-items: center;
    border: 1px dashed #e5e7eb;
    border-radius: 6px;
    display: flex;
    gap: 12px;
    min-height: 58px;
    padding: 10px 12px;
}

.erp-module-link:hover {
    border-color: #3454d1;
    background-color: #f8faff;
}

.erp-module-link-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.erp-module-link-copy small {
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
}

.erp-module-footer {
    align-items: center;
    background: #fff;
    border-top: 1px dashed #e5e7eb;
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.erp-tenant-button {
    align-items: center;
    display: flex;
    gap: 10px;
    max-width: 270px;
    min-height: 42px;
}

.erp-tenant-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
    text-align: left;
}

.erp-tenant-copy strong,
.erp-tenant-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-tenant-copy small {
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    margin-top: 3px;
}

.erp-tenant-dropdown {
    min-width: 340px;
}

.erp-tenant-dropdown .dropdown-item {
    align-items: center;
    display: flex;
    gap: 12px;
}

.erp-approval-list {
    align-items: stretch;
    padding: 18px 22px;
}

.erp-domain-tile {
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    min-height: 58px;
    padding: 14px 16px;
}

.erp-domain-tile:hover {
    border-color: #3454d1;
    color: #3454d1;
}

@media (max-width: 1199.98px) {
    .erp-global-search {
        min-width: 260px;
    }

    .erp-module-launcher {
        max-width: calc(100vw - 60px);
        min-width: 720px;
    }

    .erp-module-launcher.nxl-mega-menu-sm,
    .erp-module-launcher.nxl-mega-menu-md,
    .erp-module-launcher.nxl-mega-menu-lg,
    .erp-module-launcher.nxl-mega-menu-xl,
    .erp-module-launcher.nxl-mega-menu-xxl,
    .erp-module-launcher.nxl-mega-menu-full {
        max-width: calc(100vw - 60px);
        min-width: 720px;
    }
}

@media (max-width: 767.98px) {
    .erp-global-search {
        display: none;
    }

    .erp-module-launcher,
    .erp-tenant-dropdown {
        min-width: 100%;
    }
}

/* ==========================================
   PREMIUM WARM BUTTONS & BORDER RADIUS
   ========================================== */
.btn {
    border-radius: 8px !important;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: color-mix(in srgb, var(--bs-primary) 80%, transparent) !important;
    border-color: color-mix(in srgb, var(--bs-primary) 80%, transparent) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.25) !important;
}

.btn-success {
    background-color: #81b29a !important;
    border-color: #81b29a !important;
    color: #fff !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #70a189 !important;
    border-color: #70a189 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(129, 178, 154, 0.25) !important;
}

.btn-warning {
    background-color: #f2cc8f !important;
    border-color: #f2cc8f !important;
    color: #3d405b !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    background-color: #e0b97d !important;
    border-color: #e0b97d !important;
    color: #3d405b !important;
    box-shadow: 0 4px 12px rgba(242, 204, 143, 0.25) !important;
}

.btn-danger {
    background-color: #e76f51 !important;
    border-color: #e76f51 !important;
    color: #fff !important;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    background-color: #d95d40 !important;
    border-color: #d95d40 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(231, 111, 81, 0.25) !important;
}

.btn-info {
    background-color: #5f9ea0 !important;
    border-color: #5f9ea0 !important;
    color: #fff !important;
}

.btn-info:hover,
.btn-info:focus,
.btn-info:active {
    background-color: #4e8d8f !important;
    border-color: #4e8d8f !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(95, 158, 160, 0.25) !important;
}

.btn-secondary {
    background-color: #3d405b !important;
    border-color: #3d405b !important;
    color: #fff !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: #2f324a !important;
    border-color: #2f324a !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(61, 64, 91, 0.25) !important;
}

.btn-light-brand {
    background-color: #f4f1de !important;
    border-color: #f4f1de !important;
    color: #3d405b !important;
}

.btn-light-brand:hover,
.btn-light-brand:focus,
.btn-light-brand:active {
    background-color: #eae6cc !important;
    border-color: #eae6cc !important;
    color: #3d405b !important;
}

/* ==========================================
   PREMIUM TABLE CONTAINER STYLES (Leads Listing)
   ========================================== */
.table-responsive-container {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 24px;
    overflow: hidden;
    /* Keep header border-radius clip */
}

.table-responsive-container .table-responsive {
    padding: 10px 0 !important;
    margin: 10px 0 !important;
}

.table-responsive-container .table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table-responsive-container .table thead th {
    background-color: #f8fafc !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    padding: 14px 12px !important;
}

.table-responsive-container .table tbody td {
    padding: 16px 12px !important;
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 13px !important;
}

.table-responsive-container .table thead th:first-child,
.table-responsive-container .table tbody td:first-child {
    padding-left: 24px !important;
}

.table-responsive-container .table thead th:last-child,
.table-responsive-container .table tbody td:last-child {
    padding-right: 24px !important;
}

.table-responsive-container .table-hover tbody tr:hover td {
    background-color: #f8fafc !important;
}

/* Date block utility */
.table-date-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-date-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #f0f2f5;
    border-radius: 6px;
    color: #3454d1;
}

.table-date-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* ==========================================
   PREMIUM MODAL ENTRY & BUTTON ANIMATIONS
   ========================================== */
.modal.fade .modal-dialog {
    transform: scale(0.9) !important;
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease !important;
}

.modal.show .modal-dialog {
    transform: scale(1) !important;
    opacity: 1;
}

.offcanvas {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn:active {
    transform: scale(0.96) !important;
}

/* ==========================================
   PREMIUM TOAST STYLING & POSITIONING
   ========================================== */
.erp-toast-container {
    position: fixed;
    top: 80px !important;
    right: 20px !important;
    z-index: 1080 !important;
    width: 360px;
    max-width: calc(100vw - 40px);
}

@media (max-width: 575.98px) {
    .erp-toast-container {
        top: 72px !important;
        right: 12px !important;
        left: 12px !important;
        width: auto !important;
        max-width: none !important;
    }
}

.erp-premium-toast {
    background: transparent !important;
    overflow: hidden;
    border-radius: 12px !important;
}

/* Toast entrance & exit animations */
.toast.showing {
    animation: toast-slide-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast.showing,
.toast.show {
    opacity: 1 !important;
}

.toast.hide {
    animation: toast-slide-out 0.3s ease-in-out forwards;
}

@keyframes toast-slide-in {
    0% {
        transform: translateY(-20px) scale(0.9);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes toast-slide-out {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-20px) scale(0.9);
        opacity: 0;
    }
}

.erp-premium-toast .btn-close {
    background-size: 8px !important;
    opacity: 0.5;
}

.erp-premium-toast .btn-close:hover {
    opacity: 0.9;
}

/* ==========================================
   PREMIUM FORM CONTROLS (Linked to Theme Primary)
   ========================================== */
.erp-premium-input,
.erp-premium-select {
    border: 1px solid #dcdce0 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: #334155 !important;
    background-color: #fff !important;
    padding: 10px 14px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.erp-premium-input:focus,
.erp-premium-select:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bs-primary) 15%, transparent) !important;
    background-color: #fff !important;
    outline: 0 !important;
    transform: translateY(-1px);
}

/* Select2 drop-downs theme style adjustments */
.select2-container--bootstrap-5 .select2-selection {
    border: 1px solid #dcdce0 !important;
    border-radius: 8px !important;
    min-height: 41px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bs-primary) 15%, transparent) !important;
}

/* Checkbox and Radio styling & micro-animations */
.erp-premium-checkbox .form-check-input,
.erp-premium-radio .form-check-input {
    width: 18px !important;
    height: 18px !important;
    margin-top: 2px !important;
    border: 1.5px solid #cbd5e1 !important;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer;
}

.erp-premium-checkbox .form-check-input:active,
.erp-premium-radio .form-check-input:active {
    transform: scale(0.8) !important;
}

.erp-premium-checkbox .form-check-input:checked,
.erp-premium-radio .form-check-input:checked {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    animation: check-bounce 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.5) forwards;
}

.erp-premium-checkbox .form-check-input:focus,
.erp-premium-radio .form-check-input:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bs-primary) 15%, transparent) !important;
}

.erp-premium-radio .form-check-input {
    border-radius: 50% !important;
}

/* Table row smooth hover transition */
.table-responsive-container .table tbody tr {
    transition: background-color 0.2s ease;
}

/* ==========================================
   MOBILE & TABLET MODAL RESPONSIVENESS OVERRIDES
   ========================================== */
@media (max-width: 1024.98px) {

    body.modal-open,
    body.offcanvas-open {
        padding-right: 0 !important;
        margin-right: 0 !important;
    }

    .modal-open .nxl-header,
    .offcanvas-open .nxl-header {
        padding-right: 0 !important;
        margin-right: 0 !important;
    }

    /* Disable background blur on smaller viewports to prevent browser rendering glitches and layout shifts */
    body.modal-open .nxl-header,
    body.modal-open .nxl-navigation,
    body.modal-open .page-header,
    body.modal-open .nxl-container {
        filter: none !important;
        transition: none !important;
    }

    .modal {
        left: 0 !important;
        margin-left: 0 !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .modal-dialog {
        margin: 16px auto !important;
        max-width: min(500px, calc(100% - 32px)) !important;
        width: auto !important;
    }

    .modal-content {
        border-radius: 12px !important;
        padding: 4px !important;
    }
}

@keyframes check-bounce {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--bs-primary) 40%, transparent) !important;
    }

    50% {
        transform: scale(1.25);
        box-shadow: 0 0 0 8px color-mix(in srgb, var(--bs-primary) 20%, transparent) !important;
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--bs-primary) 0%, transparent) !important;
    }
}

/* Select field UI improvements */
.select2-container--bootstrap-5 .select2-dropdown {
    border-radius: 12px !important;
    border: 1px solid #dcdce0 !important;
    overflow: hidden !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
}

.select2-container--bootstrap-5 .select2-results__option {
    font-size: 12px !important;
    /* Smaller text size */
    padding: 8px 12px !important;
    color: #475569 !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected],
.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected]:hover,
.select2-container--bootstrap-5 .select2-results__option[aria-selected="true"],
.select2-container--bootstrap-5 .select2-results__option:hover {
    background-color: var(--bs-primary) !important;
    color: #ffffff !important;
}

/* Fallbacks for native select field styling */
.erp-premium-select {
    border-radius: 8px !important;
    font-size: 13px !important;
}


.erp-premium-select option {
    font-size: 12px !important;
}

/* ==========================================
   ERP ICON BUTTON (x-ui.icon-btn)
   ========================================== */
.erp-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    border-radius: 8px !important;
    border: 1.5px solid transparent;
    font-size: 14px;
    line-height: 1;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease !important;
    text-decoration: none !important;
    cursor: pointer;
}
.erp-icon-btn.btn-sm { width: 30px; height: 30px; font-size: 13px; }
.erp-icon-btn.btn-lg { width: 40px; height: 40px; font-size: 16px; }
.erp-icon-btn:active { transform: scale(0.9) !important; }
/* Labeled variant: removes fixed square size so icon + text fits naturally */
.erp-icon-btn.erp-icon-btn--labeled { width: auto !important; height: 34px !important; padding: 0 10px !important; gap: 3px; font-size: 13px; font-weight: 500; }
.erp-icon-btn.erp-icon-btn--labeled.btn-sm { width: auto !important; height: 30px !important; padding: 0 10px !important; }
.erp-icon-btn.erp-icon-btn--labeled.btn-lg { width: auto !important; height: 40px !important; padding: 0 18px !important; }

/* Variant: primary */
.erp-icon-btn--primary {
    background-color: color-mix(in srgb, var(--bs-primary) 10%, transparent);
    border-color: color-mix(in srgb, var(--bs-primary) 20%, transparent);
    color: var(--bs-primary) !important;
}
.erp-icon-btn--primary:hover, .erp-icon-btn--primary:focus {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--bs-primary) 30%, transparent) !important;
    text-decoration: none !important;
}

/* Variant: success */
.erp-icon-btn--success { background-color: rgba(129,178,154,.12); border-color: rgba(129,178,154,.25); color: #4a8f6f !important; }
.erp-icon-btn--success:hover, .erp-icon-btn--success:focus { background-color: #81b29a !important; border-color: #81b29a !important; color: #fff !important; text-decoration: none !important; }

/* Variant: danger */
.erp-icon-btn--danger { background-color: rgba(231,111,81,.10); border-color: rgba(231,111,81,.20); color: #e76f51 !important; }
.erp-icon-btn--danger:hover, .erp-icon-btn--danger:focus { background-color: #e76f51 !important; border-color: #e76f51 !important; color: #fff !important; text-decoration: none !important; }

/* Variant: warning */
.erp-icon-btn--warning { background-color: rgba(242,204,143,.15); border-color: rgba(242,204,143,.30); color: #b57e20 !important; }
.erp-icon-btn--warning:hover, .erp-icon-btn--warning:focus { background-color: #f2cc8f !important; border-color: #f2cc8f !important; color: #3d405b !important; text-decoration: none !important; }

/* Variant: info */
.erp-icon-btn--info { background-color: rgba(95,158,160,.10); border-color: rgba(95,158,160,.22); color: #4a8d8f !important; }
.erp-icon-btn--info:hover, .erp-icon-btn--info:focus { background-color: #5f9ea0 !important; border-color: #5f9ea0 !important; color: #fff !important; text-decoration: none !important; }

/* Variant: light */
.erp-icon-btn--light { background-color: #f4f1de; border-color: #e8e4c8; color: #3d405b !important; }
.erp-icon-btn--light:hover, .erp-icon-btn--light:focus { background-color: #eae6cc !important; border-color: #d8d4b0 !important; color: #3d405b !important; text-decoration: none !important; }

/* Variant: secondary */
.erp-icon-btn--secondary { background-color: rgba(61,64,91,.08); border-color: rgba(61,64,91,.18); color: #3d405b !important; }
.erp-icon-btn--secondary:hover, .erp-icon-btn--secondary:focus { background-color: #3d405b !important; border-color: #3d405b !important; color: #fff !important; text-decoration: none !important; }

/* ==========================================
   BTN-SOFT-* ALIASES
   ========================================== */
.btn-soft-primary {
    background-color: color-mix(in srgb, var(--bs-primary) 10%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--bs-primary) 20%, transparent) !important;
    color: var(--bs-primary) !important;
    border-radius: 8px !important; font-weight: 500;
    transition: all 0.18s ease !important; text-decoration: none !important;
}
.btn-soft-primary:hover, .btn-soft-primary:focus {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important; text-decoration: none !important;
}

.btn-soft-success {
    background-color: rgba(129,178,154,.12) !important; border: 1px solid rgba(129,178,154,.25) !important;
    color: #4a8f6f !important; border-radius: 8px !important; font-weight: 500;
    transition: all 0.18s ease !important; text-decoration: none !important;
}
.btn-soft-success:hover, .btn-soft-success:focus { background-color: #81b29a !important; border-color: #81b29a !important; color: #fff !important; text-decoration: none !important; }

.btn-soft-danger {
    background-color: rgba(231,111,81,.10) !important; border: 1px solid rgba(231,111,81,.20) !important;
    color: #e76f51 !important; border-radius: 8px !important; font-weight: 500;
    transition: all 0.18s ease !important; text-decoration: none !important;
}
.btn-soft-danger:hover, .btn-soft-danger:focus { background-color: #e76f51 !important; border-color: #e76f51 !important; color: #fff !important; text-decoration: none !important; }

.btn-soft-warning {
    background-color: rgba(242,204,143,.15) !important; border: 1px solid rgba(242,204,143,.30) !important;
    color: #b57e20 !important; border-radius: 8px !important; font-weight: 500;
    transition: all 0.18s ease !important; text-decoration: none !important;
}
.btn-soft-warning:hover, .btn-soft-warning:focus { background-color: #f2cc8f !important; border-color: #f2cc8f !important; color: #3d405b !important; text-decoration: none !important; }

.btn-soft-info {
    background-color: rgba(95,158,160,.10) !important; border: 1px solid rgba(95,158,160,.22) !important;
    color: #4a8d8f !important; border-radius: 8px !important; font-weight: 500;
    transition: all 0.18s ease !important; text-decoration: none !important;
}
.btn-soft-info:hover, .btn-soft-info:focus { background-color: #5f9ea0 !important; border-color: #5f9ea0 !important; color: #fff !important; text-decoration: none !important; }

/* Fix anchor-as-button colour inheritance */
a.btn, a.btn-soft-primary, a.btn-soft-success, a.btn-soft-danger, a.btn-soft-warning, a.btn-soft-info, a.btn-light-brand, a.erp-icon-btn { text-decoration: none !important; }
a.btn:hover, a.btn:focus, a.btn:active { text-decoration: none !important; }

/* Child BOM CTA strip */
.erp-child-bom-cta { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.erp-child-bom-cta a, .erp-child-bom-cta button { font-size: 11px !important; padding: 3px 8px !important; height: auto !important; border-radius: 6px !important; }

/* ==========================================
   ERP SINGLE PANEL FULL-PAGE DESIGN
   ========================================== */
.erp-single-panel {
    background-color: #fff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 24px 32px !important;
    min-height: calc(100vh - 120px);
}

@media (max-width: 768px) {
    .erp-single-panel {
        padding: 8px 12px !important;
    }
}

.erp-form-row {
    margin-bottom: 12px;
}

.erp-form-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.erp-form-label.required {
    color: #b91c1c !important; /* Premium red for required label */
}

.erp-form-input-col {
    position: relative;
    display: flex;
    align-items: center;
}

.erp-form-input-col .form-control,
.erp-form-input-col .form-select {
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    height: 40px !important;
    box-shadow: none !important;
}

.erp-form-input-col textarea.form-control {
    height: auto !important;
    min-height: 80px !important;
}

/* Tab controls */
.erp-tabs-nav {
    border-bottom: 1px solid #e2e8f0;
    margin-top: 32px;
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.erp-tabs-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
}

.erp-tabs-link {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    padding-bottom: 12px;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.erp-tabs-link.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.erp-tabs-link:hover {
    color: #1e293b;
}

/* Thin row table styles */
.erp-thin-table {
    width: 100%;
    border-collapse: collapse;
}

.erp-thin-table th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: 1px solid #e2e8f0 !important;
}

.erp-thin-table td {
    padding: 8px 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 13px !important;
    color: #1e293b !important;
}

.erp-thin-table tr:hover td {
    background-color: #f8fafc !important;
}

.erp-thin-table .form-control,
.erp-thin-table .form-select {
    height: 34px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
}

.erp-thin-table .select2-container--bootstrap-5 .select2-selection {
    min-height: 34px !important;
    height: 34px !important;
    padding: 3px 8px !important;
    font-size: 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
}

.erp-btn-delete {
    color: #ef4444;
    background: none;
    border: none;
    padding: 4px 8px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.erp-btn-delete:hover {
    opacity: 0.7;
}

.erp-badge-active {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    display: inline-block;
    text-transform: uppercase;
}

.erp-badge-draft {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    display: inline-block;
    text-transform: uppercase;
}

.erp-badge-pending {
    background-color: #fef9c3 !important;
    color: #a16207 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    display: inline-block;
    text-transform: uppercase;
}

.erp-single-panel {
    display: flex !important;
    flex-direction: column !important;
    min-height: calc(100vh - 180px) !important;
}
.table-responsive {
    position: relative;
}
.table-responsive:has(.dropdown.show) {
    overflow: visible !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
}

.btn {
    padding: 8px 6px !important;
}

.bom-select2-dropdown {
    z-index: 2055;
}
.bom-select2-dropdown .select2-results__options {
    max-height: 260px;
}
