/* --- ESTILOS BASE Y GLOBALES (CORE) --- */
:root {
    box-sizing: border-box;
    /* 1. Global Reset Core */
}

*,
*::before,
*::after {
    box-sizing: inherit;
    /* 2. Inherit ensures consistency */
}

:root {
    --vino: #5e1c26;
    --crema: #fffac2;
    --verde: #27ae60;
    --gris: #f4f6f8;
    --rojo: #e74c3c;
    --azul: #2980b9;
    --naranja: #e67e22;
    --morado: #8e44ad;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--gris);
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    /* Critical to prevent whitespace */
    overflow-x: hidden;
    font-size: 16px;
}

/* SCROLLBAR GENERAL */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* --- HEADER --- */
.pos-header {
    background: white;
    padding: 0 30px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #ddd;
    height: 80px;
    flex-shrink: 0;
    z-index: 100;
    /* Increased to be above almost everything */
    gap: 20px;
}

.pos-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 800;
    color: var(--vino);
    font-size: 26px;
    width: auto;
    /* Allow it to shrink to nothing if empty */
}

.pos-nav {
    display: flex;
    gap: 15px;
    height: 100%;
    align-items: center;
    flex: 1;
    /* Allow nav to take remaining space */
    justify-content: flex-end;
    /* All standard buttons to the right */
}

/* Specific group for Home/Logo + CMS to stay left */
.primary-nav {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-right: auto;
    /* This pushes EVERYTHING else to the right */
}

/* NAV CONTAINER GROUPS */
.nav-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* HAMBURGER BUTTON (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--vino);
    cursor: pointer;
    padding: 10px;
}

/* TABLET: ICONS ONLY (< 1100px) */
@media (max-width: 1100px) {
    .nav-tab span {
        display: none !important;
    }

    .nav-tab {
        padding: 0 10px;
        min-width: 50px;
    }

    .pos-logo {
        display: none !important;
    }

    .pos-nav {
        gap: 8px;
    }
}

/* NEW: Desktop Header Redesign Specifics */
@media (min-width: 769px) {

    /* Aligned left items */
    .nav-home span,
    .nav-cms span {
        display: none !important;
        /* Hide 'Inicio' and 'Web CMS' text */
    }

    .nav-logo-img {
        height: 42px !important;
        /* Constrain height strictly */
        width: auto !important;
        max-width: 120px;
        object-fit: contain;
        display: block;
    }

    .nav-home,
    .nav-cms {
        padding: 0 12px;
        min-width: auto;
    }

    .nav-home:not(.active),
    .nav-cms:not(.active) {
        background: transparent;
    }

    .pos-logo {
        display: none !important;
        /* Hide original logo container */
    }

    .nav-group.primary-nav {
        margin-right: auto;
    }
}

/* --- SHARED CHEESY SIDEBAR (Standardized) --- */
.cheesy-sidebar {
    width: 65px;
    /* Fixed compact width */
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 20px 5px;
    align-items: center;
    flex-shrink: 0;
    height: 100%;
}

.cheesy-sidebar-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    width: 100%;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* Hide text in header for compact mode, maybe show a small icon if present */
.cheesy-sidebar-header h3,
.cheesy-sidebar-header p {
    display: none;
}

.cheesy-sidebar-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px !important;
    /* Adjusted to 10px to match CMS Desktop */
    margin-bottom: 10px;
    cursor: pointer;
    color: #718096;
    /* Cool Gray */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: transparent;
    padding: 0;
    position: relative;
    text-decoration: none;
    /* For link items */
}

/* Icon Sizing */
.cheesy-sidebar-item i {
    font-size: 18px;
    transition: transform 0.2s;
}

/* Hide Labels by default (Desktop Icon Only) */
.cheesy-sidebar-item span {
    display: none;
}

/* Tooltip on Hover (Optional, can be added later if requested, simpler for now) */
.cheesy-sidebar-item:hover i {
    transform: scale(1.1);
}

.cheesy-sidebar-item:hover:not(.active) {
    background-color: #f7fafc;
    color: var(--vino);
}

/* ACTIVE STATE - Wine Rounded Square */
.cheesy-sidebar-item.active {
    background-color: var(--vino) !important;
    color: white !important;
    box-shadow: 0 4px 6px rgba(94, 28, 38, 0.2) !important;
    /* Lighter shadow to match original */
}

/* Separator/Divider inside sidebar */
.cheesy-sidebar-divider {
    width: 30px;
    height: 1px;
    background: #e2e8f0;
    margin: 10px 0;
}

/* Mobile Responsive - Keep same style as it is already compact */
@media (max-width: 768px) {
    .cheesy-sidebar {
        width: 60px;
    }
}

/* NEW: Mobile Header Actions Layout */
.header-actions-mobile {
    display: none;
    margin-left: auto;
    gap: 12px;
    align-items: center;
    padding-right: 15px;
    /* Ensure they are not too close to the edge */
}

.nav-tab-mini {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--vino);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-tab-mini:active {
    background: #edf2f7;
    transform: scale(0.95);
}

/* =============================================================================
   PIN & LOCK SCREEN (GLOBAL)
   ============================================================================= */
#modalLockScreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 999999 !important;
    overflow: hidden !important;
}

.pin-modal-content {
    width: 100% !important;
    max-width: 400px !important;
    padding: 40px 20px !important;
    background: white !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

.pin-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
}

.pin-btn-num,
.pin-btn-del,
.pin-btn-submit {
    aspect-ratio: 1.8/1 !important;
    /* Slightly narrower for mobile */
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: inherit !important;
    transition:
        transform 0.1s ease,
        background 0.2s ease !important;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px !important;
}

@media (max-width: 400px) {
    .pin-modal-content {
        padding: 30px 15px !important;
    }

    .pin-grid {
        gap: 10px !important;
    }

    .pin-btn-num,
    .pin-btn-del,
    .pin-btn-submit {
        border-radius: 10px;
    }
}

.pin-input {
    user-select: none !important;
    pointer-events: none !important;
}

/* MOBILE: HAMBURGER MENU (< 768px) */
@media (max-width: 768px) {

    /* Hide Desktop Elements */
    .desktop-only {
        display: none !important;
    }

    /* Show Hamburger */
    .mobile-menu-btn {
        display: block;
    }

    /* Transform Nav to Drawer */
    .pos-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 2000;
        flex-direction: column;
        align-items: stretch;
        padding: 80px 20px 20px 20px;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);

        transform: translateX(-110%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .pos-nav.open {
        transform: translateX(0);
    }

    /* Stack Items in Drawer */
    .nav-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
        margin-bottom: 20px;
    }

    .nav-tab {
        height: 50px;
        width: 100%;
        justify-content: flex-start;
        padding: 0 20px;
        border-radius: 8px;
    }

    .nav-tab span {
        display: inline-block !important;
        /* Force show text in menu */
        font-size: 16px;
    }

    .nav-tab i {
        width: 30px;
        /* Fixed width for align */
        text-align: center;
    }

    /* Overlay */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        backdrop-filter: blur(2px);
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Specific mobile menu logo size fix */
    .nav-home .nav-logo-img {
        height: 60px !important;
        /* Constrain the "giant" logo */
        width: auto !important;
        margin-bottom: 5px;
    }

    /* Specific mobile header items */
    .header-actions-mobile {
        display: flex;
    }

    /* Align system icons in mobile drawer */
    .system-group {
        border-top: 1px solid #eee;
        padding-top: 20px;
        margin-top: auto;
        flex-direction: row !important;
        /* Force side-by-side */
        justify-content: center;
        gap: 15px;
    }

    .system-group .nav-tab {
        padding: 0;
        width: 60px;
        height: 60px;
        justify-content: center;
        flex: none;
        background: #f8fafc;
        border: 1px solid #eee;
    }

    /* Badge fix for mobile */
    .system-group .header-badge {
        right: -5px;
        top: -5px;
    }

    /* Target specific buttons to hide labels */
    .nav-home span,
    .system-group .nav-tab span {
        display: none !important;
    }

    .nav-home {
        justify-content: center !important;
    }

    .system-group .nav-tab {
        justify-content: center !important;
    }
}

.nav-tab {
    padding: 0 25px;
    height: 55px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    color: #888;
    transition: 0.2s;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    position: relative;
}

.nav-tab i {
    font-size: 18px;
}

.nav-tab.active {
    background: var(--vino);
    color: white;
    box-shadow: 0 4px 12px rgba(94, 28, 38, 0.2);
}

.nav-tab:hover:not(.active) {
    background: #eee;
    color: #555;
}

/* --- NOTIFICACIONES HEADER --- */
.header-badge {
    position: absolute;
    top: 0px;
    right: 5px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
    /* Center text */
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
}

.noti-dropdown {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    /* Align with button edge */
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    z-index: 1000;
    overflow: hidden;
}

/* REMOVED: display managed by events.js toggle-ui action */

.noti-header {
    background: #5e1c26;
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.noti-body {
    max-height: 300px;
    overflow-y: auto;
}

.noti-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.noti-item:hover {
    background: #fff5f5;
}

.noti-item i {
    color: #e74c3c;
    margin-top: 3px;
}

.noti-text {
    font-size: 13px;
    color: #333;
    line-height: 1.3;
}

.noti-time {
    font-size: 10px;
    color: #999;
    margin-top: 3px;
    display: block;
}

.noti-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
    font-style: italic;
}

/* --- LAYOUT GLOBAL --- */
.main-container {
    display: flex;
    flex: 1;
    overflow-y: auto;
    /* Fix: Allow vertical scroll if needed */
    overflow-x: hidden;
    /* Fix: Prevent horizontal scroll globally */
    position: relative;
    width: 100%;
}

/* INTERFERENCE FIX: Disable main scroll on mobile to allow Terminal/POS internal scroll */
@media (max-width: 1100px) {
    .main-container {
        overflow: hidden !important;
        height: calc(100vh - 80px) !important;
        height: calc(100dvh - 80px) !important;
    }
}

.view-section {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
}

.placeholder-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    gap: 20px;
}

.placeholder-view i {
    font-size: 60px;
    color: #ddd;
}

.placeholder-view h2 {
    margin: 0;
    color: var(--vino);
}

/* --- COMPONENTES UI COMPARTIDOS --- */

/* 1. Tablas */
.cheesy-table {
    width: 100%;
    border-collapse: collapse;
}

.cheesy-table th {
    text-align: left;
    padding: 15px;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 2px solid #eee;
    background: white;
}

.cheesy-table td {
    padding: 15px;
    border-bottom: 1px solid #f9f9f9;
    font-size: 14px;
    color: #333;
}

.cheesy-table tr:hover {
    background: #fbfbfb;
}

/* 2. Modales (Estructura Base) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

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

/* 3. Botones y Formularios Base */
.btn-main-action {
    background: var(--vino);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    height: 50px;
    box-shadow: 0 4px 15px rgba(94, 28, 38, 0.2);
}

.btn-secondary {
    background: white;
    border: 1px solid #ddd;
    color: #555;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    height: 50px;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    padding: 12px 15px;
    font-size: 15px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    transition: 0.2s;
    height: 48px;
    /* Estandarizado */
}

.form-control:focus {
    border-color: var(--vino);
    outline: none;
    box-shadow: 0 0 0 3px rgba(94, 28, 38, 0.1);
}

/* 4. Toasts (Notificaciones flotantes) */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    border-left: 5px solid #333;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-color: var(--verde);
    color: #27ae60;
}

.toast-error {
    border-color: var(--rojo);
    color: #c0392b;
}

.toast-info {
    border-color: var(--azul);
    color: #2980b9;
}

/* 5. Componentes Específicos Globales (Usados en múltiples vistas) */
/* Wallet Switch (Caja/Finanzas) */
.wallet-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff8e1;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #ffe0b2;
    margin-bottom: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.wallet-switch.active {
    background: #e8f5e9;
    border-color: #c8e6c9;
}

.wallet-label {
    font-size: 14px;
    font-weight: bold;
    color: #d35400;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-switch.active .wallet-label {
    color: #27ae60;
}

.wallet-balance {
    font-size: 16px;
    font-weight: 800;
    color: #333;
}

.switch-check {
    width: 22px;
    height: 22px;
    accent-color: var(--verde);
    cursor: pointer;
}

/* Cash Grid (Caja) */
.cash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.btn-money {
    padding: 15px;
    border: 2px solid #eee;
    background: white;
    font-weight: bold;
    font-size: 18px;
    border-radius: 12px;
    cursor: pointer;
    color: #555;
    transition: 0.1s;
}

.btn-money:active {
    transform: scale(0.95);
    background: #eee;
}

.change-display {
    background: #333;
    color: #0f0;
    font-family: 'Courier New', monospace;
    padding: 20px;
    text-align: center;
    font-size: 32px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: bold;
}

/* --- UTILIDADES DE DISEÑO (Reemplazo de estilos en línea) --- */

/* Loaders del Sistema */
#app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f4f6f8;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

#tab-loader {
    position: fixed;
    top: 80px;
    /* Altura header */
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* Divisores Verticales (Header) */
.nav-divider {
    width: 1px;
    height: 30px;
    background: #ddd;
    margin: 0 10px;
}

/* --- UTILIDADES DE VISTAS (NUEVAS) --- */

/* Contenedores de Vistas */
.view-container-col {
    display: flex;
    flex-direction: column;
    background: var(--gris);
    height: 100%;
    overflow: hidden;
}

/* --- TERMINAL POS --- */
.pos-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-wrapper-pos {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-icon-pos {
    position: absolute;
    left: 15px;
    color: #999;
    pointer-events: none;
}

.pos-search-input {
    height: 50px;
    font-size: 16px;
    flex: 1;
    font-family: 'Montserrat', sans-serif !important;
    padding-left: 45px !important;
    font-weight: 600;
    color: #333;
}

.btn-moto-toggle {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    cursor: pointer;
    transition: 0.2s;
}

.btn-moto-toggle.active {
    background: var(--naranja);
    color: white;
    border-color: var(--naranja);
}

.kanban-loading {
    text-align: center;
    color: #999;
    margin-top: 50px;
}

/* Ticket States */
.ticket-empty-state {
    text-align: center;
    color: #ccc;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ticket-empty-state.fade-in-state {
    animation: fadeInState 0.5s ease forwards;
}

.ticket-empty-state.fade-out-state {
    animation: fadeOutState 0.3s ease forwards;
    pointer-events: none;
}

@keyframes fadeInState {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes fadeOutState {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.scanned-user-info {
    display: none;
    background: #e8f5e9;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #27ae60;
    border: 1px solid #c8e6c9;
}

.ticket-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

.ticket-savings {
    text-align: right;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: bold;
    color: #27ae60;
    display: none;
}

.ticket-buttons-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-action-sm {
    flex: 1;
    margin: 0;
    font-size: 13px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* --- INVENTARIO --- */
.inventory-toolbar {
    margin: 20px 30px 0 30px;
}

.inventory-tabs {
    display: flex;
    background: #e0e0e0;
    padding: 4px;
    border-radius: 12px;
}

.inventory-content {
    flex: 1;
    padding: 20px 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.inventory-panel {
    height: 100%;
    display: none;
    /* JS toggles this */
    flex-direction: column;
}

.inventory-panel.active {
    display: flex;
}

.inventory-actions {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.inventory-info {
    font-size: 12px;
    color: #999;
    margin-right: auto;
}

/* --- BOTONES DEL HEADER NOTIFICACIONES --- */
.clock-btn {
    padding: 0 15px;
    margin-right: 15px;
    min-width: 55px;
    justify-content: center;
}

.clock-icon-wrapper {
    position: relative;
    line-height: 0;
}

.clock-status-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 9px;
    height: 9px;
    background-color: var(--rojo);
    border-radius: 50%;
    display: none;
}

/* --- MOBILE GLOBAL FIXES --- */
@media (max-width: 600px) {
    .inventory-toolbar {
        margin: 15px 15px 0 15px;
        /* Reducir margen externo */
    }

    .inventory-content {
        padding: 15px;
        /* Reducir padding interno */
    }

    .main-container {
        overflow-x: hidden;
        /* Doble seguro */
    }
}

/* Utility: Mobile Only Item (Sidebar) */
.mobile-only-item {
    display: none !important;
}

@media (max-width: 1024px) {
    .mobile-only-item {
        display: flex !important;
    }
}