/* Global Styles */
:root {
    /* Default Light Theme Variables */
    --bg-body: #f4f6f8;
    --text-main: #343a40;
    --navbar-bg: rgba(255, 255, 255, 0.7);
    /* Revert */
    --sidebar-bg: rgba(255, 255, 255, 0.9);
    --sidebar-border: rgba(0, 0, 0, 0.1);
    --sidebar-link: #495057;
    --sidebar-link-hover-bg: rgba(0, 0, 0, 0.05);
    --sidebar-link-hover-text: #000;
    --sidebar-heading-bg: rgba(0, 0, 0, 0.03);

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: rgba(0, 0, 0, 0.1);

    --input-bg: #ffffff;
    --input-text: #495057;
    --input-placeholder: #adb5bd;
    --input-focus-bg: #fff;
    --input-focus-shadow: rgba(118, 75, 162, 0.15);

    --table-bg: rgba(0, 0, 0, 0.03);
    --table-hover: rgba(0, 0, 0, 0.05);
}

html {
    font-size: 85%;
}

[data-theme="dark"] {
    /* Dark Theme Override */
    --bg-body: #1a1a2e;
    --text-main: #ffffff;
    --sidebar-bg: rgba(0, 0, 0, 0.2);
    --sidebar-border: rgba(255, 255, 255, 0.1);
    --sidebar-link: #ffffff;
    --sidebar-link-hover-bg: rgba(255, 255, 255, 0.1);
    --sidebar-link-hover-text: #fff;
    --sidebar-heading-bg: rgba(255, 255, 255, 0.05);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.37);

    --input-bg: rgba(255, 255, 255, 0.1);
    --input-text: #ffffff;
    --input-placeholder: rgba(255, 255, 255, 0.4);
    --input-focus-bg: rgba(255, 255, 255, 0.1);
    --input-focus-shadow: rgba(118, 75, 162, 0.3);

    --table-bg: rgba(255, 255, 255, 0.05);
    --table-hover: rgba(255, 255, 255, 0.1);
}

/* Global Scroll Lock for Dashboard Layout */
html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    /* Prevent body scroll */
    animation: fadeIn 0.4s ease-out;
    /* Smooth page load */
}

/* Dashboard Wrapper - Container */
#wrapper {
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    display: block;
    /* Ensure block layout */
}

/* Sidebar - Fixed Left */
#sidebar-wrapper {
    position: fixed;
    top: 70px;
    /* Starts below navbar */
    left: 0;
    width: 260px !important;
    height: calc(100vh - 70px);
    margin-left: 0;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    z-index: 1000;
    overflow-y: auto;
    /* transition: left 0.3s ease; REMOVED */
}

#sidebar-wrapper .sidebar-heading {
    display: none;
    /* Hide logo area */
    padding: 1.5rem 1.25rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
    background: var(--sidebar-heading-bg);
    height: 70px;
    display: none;
    /* Double ensure hidden */
    align-items: center;
}

#sidebar-wrapper .list-group {
    width: 100%;
}

/* Page Content - Offset by Sidebar */
#page-content-wrapper {
    width: auto;
    min-height: 250vh;
    /* Increased vertical space significantly */
    margin-left: 260px;
    padding-top: 70px;
    overflow-y: auto;
    position: relative;
    transition: margin-left 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Grow to fill available space */
}



/* Custom Navbar - Fixed Top, Right of Sidebar */
.custom-navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    /* Full width */
    width: 100%;
    /* Fill remaining */
    height: 70px;
    z-index: 1001;
    /* Higher than sidebar */
    transition: left 0.3s ease, width 0.3s ease;
    border-bottom: 1px solid var(--sidebar-border);
}

/* Scrollable Content Area */
/* Scrollable Content Area */
#page-content-wrapper>.container-fluid {
    flex: 1;
    overflow: visible;
    width: 100% !important;
    /* Force full width */
    padding: 20px;
    /* Restore some padding for aesthetics if needed, or keep 0 */
    padding-bottom: 20px;
}

/* Toggled State */
#wrapper.toggled #sidebar-wrapper {
    left: -260px;
    /* Hide sidebar */
}

#wrapper.toggled #page-content-wrapper {
    margin-left: 0;
    /* Full width content */
}

#wrapper.toggled .custom-navbar {
    left: 0;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar-wrapper {
        left: -260px;
    }

    #page-content-wrapper {
        margin-left: 0;
    }

    .custom-navbar {
        left: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        left: 0;
        /* Show sidebar */
    }

    /* Simple overlay for mobile could be added here */
}

/* Desktop override (preserve previous logic if needed, but fixed logic usually supersedes) */
@media (min-width: 768px) {
    /* Rules are already desktop-first above */
}

/* Glassmorphism Card (Updated for Dashboard) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    width: 100%;
    animation: fadeIn 1s ease-out;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.glass-card-modal {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    width: 100%;
    animation: fadeIn 1s ease-out;
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .glass-card-modal {
    background: rgba(33, 37, 41, 0.95) !important;
    color: #fff !important;
}

.glass-card .close,
.glass-card-modal .close {
    color: var(--text-main) !important;
    text-shadow: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.glass-card .close:hover,
.glass-card-modal .close:hover {
    opacity: 1;
    color: var(--text-main) !important;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search Input Styling */
.search-input {
    height: 60px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background-color: var(--input-bg);
    color: var(--input-text);
}

.search-input:focus {
    background-color: var(--input-focus-bg) !important;
    box-shadow: 0 0 20px var(--input-focus-shadow) !important;
    color: var(--input-text) !important;
}

.search-input::placeholder {
    color: var(--input-placeholder);
}

/* Global Form Control Styling */
.form-control,
.custom-select {
    background-color: var(--input-bg) !important;
    color: var(--input-text) !important;
    border: 1px solid var(--sidebar-border);
}

.form-control:focus,
.custom-select:focus {
    background-color: var(--input-focus-bg) !important;
    color: var(--input-text) !important;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem var(--input-focus-shadow);
}

.form-control::placeholder {
    color: var(--input-placeholder);
}

.form-control:disabled,
.form-control[readonly] {
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 0.6;
}

/* Button Styling */
.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    /* Ensure text is white on gradient */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-btn:hover {
    transform: translate(0, -50%) scale(1.05);
    /* Account for translate-middle-y logic */
    box-shadow: 0 0 15px rgba(118, 75, 162, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}

/* Sidebar Links */
.list-group-item-action {
    transition: background-color 0.2s, color 0.2s;
    color: var(--sidebar-link-hover-text) !important;
}

.list-group-item-action:hover {
    background: var(--sidebar-link-hover-bg) !important;
    color: var(--sidebar-link-hover-text) !important;
    /* padding-left: 25px; Removed slide effect */
}

.list-group-item.active {
    background: transparent !important;
    color: #667eea !important;
    /* Theme Color */
    font-weight: bold;
    border-left: 4px solid #667eea !important;
    padding-left: 1.25rem;
    /* Adjust for border */
}

/* Product Card & Table */

/* Custom Navbar - Fixed Top via Flex Layout */
.custom-navbar {
    background: var(--navbar-bg);
    transition: background 0.3s ease;
    flex-shrink: 0;
    /* Prevents shrinking */
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.custom-navbar .nav-link {
    color: var(--text-main) !important;
}

.custom-navbar .nav-link:hover {
    color: var(--input-focus-shadow) !important;
}

/* System Footer */
.system-footer {
    flex-shrink: 0;
    /* Prevents shrinking */
    margin-top: auto;
    background: var(--glass-bg);
    border-top: 1px solid var(--sidebar-border);
    padding: 1rem 0;
    color: var(--text-main);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Theme Button Generic */
.btn-theme {
    color: var(--text-main);
    border: 1px solid var(--sidebar-border);
    transition: all 0.3s ease;
}

.btn-theme:hover {
    background: var(--sidebar-link-hover-bg);
    color: var(--text-main);
}

.custom-table {
    background: var(--table-bg) !important;
    border-radius: 12px;
    overflow: hidden;
    color: var(--text-main) !important;
}

.custom-table tr {
    transition: background-color 0.2s;
    color: var(--text-main);
}

.custom-table tbody tr:hover {
    background-color: var(--table-hover) !important;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Helpers */
.pointer-cursor {
    cursor: pointer;
}

.vh-100 {
    height: 100vh;
}

.min-vh-100 {
    min-height: 100vh;
}

/* Navbar Theme Toggle */
.theme-toggle-btn {
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: rotate(20deg);
}

/* Resize Controls overlay on form groups */
.form-group {
    position: relative;
    /* For absolute positioning of controls */
}

/* Resize Controls */
.resize-controls {
    position: absolute;
    top: -10px;
    right: 5px;
    background: var(--glass-bg);
    border: 1px solid var(--sidebar-border);
    border-radius: 20px;
    padding: 2px 5px;
    display: none !important;
    /* Force hidden by default */
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    align-items: center;
    gap: 0;
}

/* Only show when parent form has .form-layout-editable class */
.form-layout-editable .form-group:hover .resize-controls {
    display: flex !important;
    /* Force visible on hover */
}

/* Cursor and border for editable mode */
.form-layout-editable .form-group {
    cursor: move;
    border: 1px dashed transparent;
}

.form-layout-editable .form-group:hover {
    border-color: rgba(102, 126, 234, 0.3);
    border-radius: 5px;
}

.resize-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 12px;
    cursor: pointer;
    padding: 0 5px;
    font-weight: bold;
    display: inline-block;
    width: auto;
    height: auto;
}

.resize-btn:hover {
    color: #667eea;
    transform: scale(1.2);
    background-color: transparent;
}

/* Modern Clear Filter Button */
.btn-reset-filter {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background-color: #fff;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-reset-filter:hover {
    color: #dc3545;
    /* Red */
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.2);
    transform: rotate(-180deg) scale(1.1);
    background-color: #fff;
}

/* Fix Select2 dropdown z-index in modal */
.select2-container {
    z-index: 2000 !important;
}

.select2-dropdown {
    z-index: 2000 !important;
}

/* Ensure Select2 dropdown appears above modal */
.select2-container--open {
    z-index: 2000 !important;
}

/* Mercado Livre Search Style */
.ml-search-box {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    border: none !important;
    background-color: #fff;
    border-radius: 4px;
    /* Classic ML slightly rounded look */
    display: flex;
    align-items: center;
    padding: 0;
    transition: box-shadow 0.3s ease;
}

/* Hover effect for better interactivity */
.ml-search-box:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 2px 3px rgba(0, 0, 0, 0.3);
}

.ml-search-box .input-group-prepend {
    background: transparent;
    border: none;
}

.ml-search-box .input-group-text {
    background-color: transparent !important;
    border: none !important;
    color: #bfbfbf;
    /* Muted icon color */
    padding-left: 15px;
}

.ml-search-box input.form-control {
    border: none !important;
    box-shadow: none !important;
    /* Remove Bootstrap focus shadow */
    background-color: transparent !important;
    padding-left: 10px;
    font-size: 16px;
    /* Legible size */
    color: #333;
}

.ml-search-box input.form-control::placeholder {
    color: #bfbfbf;
}

/* Separator line between search and filters if needed */
.ml-vertical-separator {
    width: 1px;
    height: 24px;
    background-color: #e6e6e6;
    margin: 0 10px;
}

/* --- HYBRID MENU LAYOUT (Added for Structure) --- */

/* 1. Layout Adjustments */
body {
    overflow: hidden;
    /* Prevent double scrollbars */
}

#wrapper {
    margin-top: 60px;
    /* Space for Top Bar */
    height: calc(100vh - 60px);
    /* Full height minus top bar */
}

#sidebar-wrapper {
    top: 60px;
    /* Push sidebar down */
    height: calc(100vh - 60px);
    z-index: 1000;
    box-shadow: none;
    /* Clean look */
    border-right: 1px solid #dee2e6;
    /* Standard border */
}

#page-content-wrapper {
    height: calc(100vh - 60px);
    overflow-y: auto;
    /* Allow content scrolling */
    padding: 20px;
}

/* 2. Top Navbar Structure (Clean White) */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1050;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.top-navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: #333;
    display: flex;
    align-items: center;
    margin-right: 40px;
    text-decoration: none;
}

.top-navbar-brand:hover {
    color: #333;
    text-decoration: none;
}

/* 3. Top Menu Items */
.top-nav-menu {
    display: flex;
    align-items: center;
    height: 100%;
}

.top-nav-item {
    height: 100%;
    display: flex;
    align-items: center;
    margin-right: 5px;
    position: relative;
}

.top-nav-link {
    color: #333;
    font-weight: 500;
    padding: 0 15px;
    height: 40px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background-color 0.2s;
    font-size: 0.95rem;
}

.top-nav-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
    /* Standard Blue */
}

.top-nav-link i {
    margin-right: 6px;
    font-size: 1.1rem;
    color: #6c757d;
}

.top-nav-link:hover i {
    color: #007bff;
}

/* 4. Dropdowns (Clean) */
.top-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0 0 4px 4px;
    min-width: 220px;
    padding: 8px 0;
    display: none;
    z-index: 1100;
}

.top-nav-item:hover .top-dropdown-menu {
    display: block;
}

.top-dropdown-item {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.1s;
}

.top-dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

.top-dropdown-header {
    padding: 8px 20px;
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 5. Right Actions */
.top-nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-action-btn {
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.top-action-btn:hover {
    color: #007bff;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    background-color: #f8f9fa;
    border-radius: 30px;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

/* --- AGGRESSIVE SELECT2 OVERRIDE FOR FIXING WEIGHT DISPLAY --- */
/* Target specifically inside the form to beat other styles */

/* 1. The main/* Container and Input Box Styling */
/* Reset background color and height to match adjacent inputs */
#formCadastroLP #lp_shipping_rule_select+.select2-container .select2-selection--single {
    height: 38px !important;
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

/* Fix Select2 Clear Button (x) Appearance to right edge full height */
#formCadastroLP #lp_shipping_rule_select+.select2-container .select2-selection__clear {
    width: 38px !important;
    height: 36px !important;
    line-height: 36px !important;
    background-color: transparent !important;
    color: #495057 !important;
    font-size: 24px !important;
    text-align: center !important;
    font-weight: bold !important;
    position: absolute !important;
    right: 0px !important;
    top: 0px !important;
    margin: 0 !important;
    z-index: 10 !important;
}

/* Hide the default dropdown arrow completely */
#formCadastroLP #lp_shipping_rule_select+.select2-container .select2-selection__arrow {
    display: none !important;
}

/* Sticky Header inside Glass Card */
/* Sticky Header inside Glass Card - EXACT MATCH TO PEDIDOS.HTML */
.standard-sticky-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 3rem;
    margin: -3rem -3rem 1rem -3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}


/* Ensure glass card allows sticky */
.glass-card {
    overflow: visible !important;
    /* Crucial for sticky children */
}

/* Modern Table Style matching User Request */
.modern-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.modern-table thead th {
    background-color: #f8f9fa !important;
    /* Light Gray */
    color: #495057 !important;
    /* Dark Gray Text */
    font-weight: 600;
    font-weight: 600;
    /* text-transform: lowercase; match image style - REMOVED to fix user complaint */
    /* Match image style */
    font-size: 0.9rem;
    border: none !important;
    padding: 12px 15px;
    white-space: nowrap;

    /* Sticky Table Header (Standardized from Pedidos) */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

/* Rounded Corners for Header */
.modern-table thead th:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.modern-table thead th:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.modern-table tbody td {
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 15px;
    color: #333;
}

/* Right Side Modal (Drawer) */
.modal.right .modal-dialog {
    position: fixed;
    margin: auto;
    width: 60%;
    /* Adjusted for better wide form fit */
    max-width: 900px;
    height: 100%;
    right: 0;
    top: 0;
    transform: translate3d(100%, 0, 0);
    /* Use Transform for smoother animation */
    transition: transform 0.3s ease-out;
}

/* Open State */
.modal.right.show .modal-dialog {
    transform: translate3d(0, 0, 0);
}

/* Animation Fix for Bootstrap 4 */
.modal.right.fade .modal-dialog {
    right: 0;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.3s ease-out;
}

.modal.right.fade.show .modal-dialog {
    transform: translate3d(0, 0, 0);
}

/* Modal Content Styles for Sidebar */
.modal.right .modal-content {
    height: 100%;
    overflow-y: auto;
    border-radius: 0 !important;
    /* Systematically remove radius */
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.modal.right .modal-body {
    padding: 30px;
}

/* Mobile Fallback */
@media (max-width: 768px) {
    .modal.right .modal-dialog {
        width: 100%;
        max-width: 100%;
    }
}

/* Draggable Columns Styles - Sticky Header */
.draggable-header {
    cursor: grab;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #f8f9fa;
    /* Light bg to indicate interactive */
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

.draggable-header:active {
    cursor: grabbing;
}

.draggable-header.drag-over {
    background-color: #e2e6ea;
    border-left: 2px solid #007bff;
}

.draggable-header.drag-start {
    opacity: 0.4;
}

/* --- MOBILE OPTIMIZATION (Added by Agent) --- */
@media (max-width: 768px) {

    /* 1. Layout & Spacing */
    #page-content-wrapper {
        padding: 5px !important;
        padding-top: 65px !important;
    }

    .container-fluid {
        padding: 5px !important;
    }

    .glass-card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

    /* 2. Scan Inputs */
    .scan-input,
    #productScanInput {
        height: 50px !important;
        font-size: 1.2rem !important;
    }

    /* 3. Typography */
    h2 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    /* 4. Buttons */
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        width: 100%;
        /* Full width buttons on mobile usually better */
        margin-top: 10px;
    }

    /* 5. Mobile Navbar Brand */
    .top-navbar-brand {
        font-size: 1.1rem;
        margin-right: 10px;
    }

    /* 6. Adjust Top Menu Items - HIDE ON MOBILE TO STOP OVERFLOW */
    .top-nav-menu {
        display: none !important;
    }

    /* 7. Product Scan Area */
    #productScanArea {
        padding: 1rem !important;
    }

    /* 8. Fix Input Group for Camera Button */
    .input-group-append .btn {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* 9. Table Font Size */
    .table {
        font-size: 0.85rem;
    }
}
/* Remove border from Select2 that replaces a border-0 select */
select.border-0 + .select2-container .select2-selection,
select.border-0 + .select2-container--bootstrap4 .select2-selection {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

select.border-0 + .select2-container .select2-selection__rendered {
    color: #6c757d !important;
    font-weight: 700 !important;
    padding-left: 0 !important;
    line-height: normal !important;
}

select.border-0 + .select2-container .select2-selection__arrow {
    position: relative !important;
    height: auto !important;
    top: auto !important;
    right: auto !important;
    display: flex !important;
    align-items: center !important;
}

select.border-0 + .select2-container .select2-selection__arrow b {
    position: static !important;
    margin-top: 0 !important;
}

/* Ensure regular select with border-0 has no outline */
select.border-0:focus {
    box-shadow: none !important;
    outline: none !important;
}
