/* ===================== STORAGE MVP STYLES ===================== */
:root {
    --storage-primary: var(--solvix-navy);
    --storage-success: #10b981;
    --storage-warning: #f59e0b;
    --storage-danger: #ef4444;
    --storage-info: var(--solvix-cyan);

    --bg-light: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: var(--solvix-silver);
    --text-sub: rgba(226, 232, 240, 0.7);
}

/* Page Header Estilo Tech Elite Metallic */
#storage-content .page-header {
    background: var(--solvix-metal);
    color: #020c1b;
    padding: 12px 24px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: var(--solvix-metal-shadow);
    border: 2px solid var(--solvix-metal-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#storage-content .page-title {
    color: #020c1b !important;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
}

#storage-content .page-subtitle {
    color: var(--solvix-silver) !important;
    opacity: 0.8;
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Grid Layout mejorado - Panel se expande con su contenido sin comprimir secciones */
#storage-content .storage-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: calc(100vh - 100px);
    height: auto;
    padding: 15px 20px 20px 20px;
}

#storage-content .storage-grid > .panel:first-child {
    flex: 0 0 auto;
    overflow: visible;
}

/* ========== TAB PANELS (idéntico a Recepción) ========== */
#storage-content .storage-tab-panel {
    display: none;
    animation: storageFadeIn 0.3s ease;
}

#storage-content .storage-tab-panel.active {
    display: block;
}

@keyframes storageFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Panel Almacenaje - Glassmorphism */
#storage-content .panel {
    background: var(--solvix-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    color: var(--solvix-silver);
}

#storage-content .storage-tab-panel .panel {
    display: flex;
    flex-direction: column;
    min-height: 75vh;
}

#storage-content .panel-header {
    background: var(--theme-panel-header-bg);
    color: var(--theme-panel-header-text);
    padding: 15px 24px;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--solvix-metal-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#storage-content .panel-body {
    padding: 24px;
    /* Evitar scrolls anidados: el body es contenedor flex, los hijos scrollean si lo necesitan */
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Formulario mejorado */
#storage-content .form-group {
    margin-bottom: 20px;
}

#storage-content .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

#storage-content .form-input {
    width: 100%;
    padding: 12px 15px;
    border: var(--theme-ai-input-border, 1px solid rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: var(--theme-ai-input-bg, rgba(255, 255, 255, 0.05));
    color: var(--theme-ai-text-main, #ffffff) !important;
}

#storage-content .form-input:focus {
    border-color: var(--storage-primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.1);
    outline: none;
}

#storage-content .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

#storage-content .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Botones de escáner inline */
#storage-content .scanner-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

#storage-content .btn-scanner-mini {
    background: rgba(0, 242, 255, 0.2);
    color: var(--solvix-cyan);
    border: 1px solid var(--solvix-cyan);
    border-radius: 6px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    white-space: nowrap;
    backdrop-filter: blur(5px);
}

#storage-content .btn-scanner-mini:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Botón guardar mejorado */
#storage-content .btn-save {
    background: var(--solvix-metal);
    color: #000;
    border: 1px solid var(--solvix-cyan);
    border-radius: 8px;
    padding: 14px;
    font-size: 0.875rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#storage-content .btn-save:hover {
    background: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    color: #fff;
}

/* QR Section */
#storage-content .qr-section {
    display: flex;
    gap: 10px;
    align-items: center;
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

/* === FOOTER DE INVENTARIO (Selección de Fila) === */
#foot-inventory {
    display: none;
    position: sticky;
    bottom: 0;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
}

[data-theme="corporate"] #foot-inventory {
    background: var(--solvix-metal) !important;
    border-top: 1px solid var(--solvix-metal-border) !important;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="corporate"] #foot-inventory * {
    color: var(--solvix-header-text) !important;
}

#foot-inventory .action-buttons {
    flex-shrink: 0;
}

#storage-content .btn-generate-qr {
    background: linear-gradient(135deg, rgba(2, 12, 27, 0.8), rgba(15, 76, 117, 0.6));
    color: var(--solvix-cyan);
    border: 1px solid var(--solvix-cyan);
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}

#storage-content .btn-generate-qr:hover {
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 15px var(--solvix-cyan-glow);
}

/* Panel derecho - Tabla */
#storage-content .panel:nth-child(2) {
    background: var(--solvix-glass);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Tabla de inventario mejorada */
#storage-content .table-responsive {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 290px; /* Limita la altura a aproximadamente 4 filas para mantener el scroll horizontal visible y accesible sin bajar */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 0;
}

#storage-content .inventario-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #0f172a !important;
}

#storage-content .inventario-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--solvix-metal);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#storage-content .inventario-table th {
    background: transparent;
    color: var(--solvix-navy);
    font-weight: 800;
    padding: 12px 16px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    border-top: none;
    border-bottom: 2px solid var(--solvix-metal-border);
    border-left: none;
    border-right: none;
}

#storage-content .inventario-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--theme-table-border);
    vertical-align: middle;
    color: var(--theme-ai-text-sub);
    font-size: 0.85rem;
}

#storage-content .inventario-table td[colspan] {
    color: #ffffff !important;
    font-weight: 700;
}

#storage-content .inventario-table tr {
    transition: all 0.3s ease;
}

#storage-content .inventario-table tr:hover {
    background: rgba(0, 242, 255, 0.05);
    box-shadow: inset 0 0 15px rgba(0, 242, 255, 0.05);
}

#storage-content .inventario-table tr[data-item-id] {
    cursor: pointer;
}

#storage-content .inventario-table tr[data-item-id]:hover {
    border-left: 4px solid var(--solvix-cyan);
}

#storage-content .inventario-table tr.low-stock {
    background: rgba(239, 68, 68, 0.15);
    /* Transparencia aplicada */
    animation: pulseWarning 2s infinite;
}

@keyframes pulseWarning {

    0%,
    100% {
        background: rgba(239, 68, 68, 0.1);
    }

    50% {
        background: rgba(239, 68, 68, 0.2);
    }
}

/* Badges y estados */
#storage-content .rack-badge {
    background: rgba(0, 242, 255, 0.1);
    color: var(--solvix-cyan);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
    border: 1px solid rgba(0, 242, 255, 0.2);
    text-transform: uppercase;
}

#storage-content .rack-number {
    font-size: 0.9rem;
    color: var(--solvix-silver);
    opacity: 0.9;
    font-weight: 600;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

#storage-content .sku-code {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--solvix-cyan);
    text-shadow: 0 0 5px var(--solvix-cyan-glow);
}

#storage-content .min-stock-warning {
    font-size: 0.75rem;
    color: var(--storage-warning);
    margin-top: 2px;
}

#storage-content .category-tag {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8 !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#storage-content .user-cell {
    font-weight: 700;
    color: #94a3b8 !important;
    font-size: 0.95rem;
}

#storage-content .date-cell {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--solvix-cyan);
    font-size: 0.95rem;
}

#storage-content .quantity-cell {
    min-width: 100px;
}

#storage-content .quantity-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#storage-content .quantity-number {
    font-weight: 800;
    font-size: 1.25rem;
    color: #ffffff !important; /* Blanco para cantidades clave */
}

#storage-content .quantity-number.low-stock {
    color: var(--storage-danger);
}

#storage-content .capacity-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

#storage-content .capacity-fill {
    height: 100%;
    background: var(--storage-success);
    transition: width 0.3s ease;
}

#storage-content .status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

#storage-content .status-available {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

#storage-content .status-low {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

#storage-content .status-critical {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

#storage-content .status-out {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Botones de acción */
#storage-content .action-buttons {
    display: flex;
    gap: 6px;
}

#storage-content .btn-quick-out {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 800;
    transition: all 0.2s;
    min-width: 36px;
}

#storage-content .btn-quick-out:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

#storage-content .btn-move {
    background: rgba(0, 242, 255, 0.1);
    color: var(--solvix-cyan);
    border: 1px solid var(--solvix-cyan);
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 800;
    transition: all 0.2s;
    min-width: 36px;
}

#storage-content .btn-move:hover {
    background: rgba(0, 242, 255, 0.2);
    transform: scale(1.1);
}

#storage-content .btn-details {
    background: rgba(255, 255, 255, 0.05);
    color: var(--solvix-silver);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 36px;
}

#storage-content .btn-details:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Rack Status Cards */
#storage-content .racks-status-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

#storage-content .rack-status-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(5px);
}

#storage-content .rack-status-card:hover {
    border-color: var(--solvix-cyan);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 242, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

#storage-content .rack-status-card.selected {
    border-color: var(--solvix-cyan);
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

#storage-content .rack-header {
    margin-bottom: 12px;
}

#storage-content .rack-code {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--solvix-cyan);
    text-shadow: 0 0 10px var(--solvix-cyan-glow);
}

#storage-content .rack-location {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-top: 2px;
}

#storage-content .rack-usage {
    margin-bottom: 15px;
}

#storage-content .usage-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

#storage-content .usage-fill {
    height: 100%;
    background: var(--storage-info);
    border-radius: 4px;
    transition: width 0.3s ease;
}

#storage-content .usage-text {
    font-size: 0.85rem;
    color: var(--text-sub);
    text-align: right;
}

#storage-content .rack-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#storage-content .btn-view-items {
    background: var(--storage-primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s;
}

#storage-content .btn-view-items:hover {
    background: #0c3d5c;
}

#storage-content .qr-status {
    background: #dcfce7;
    color: #166534;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: center;
    flex: 1;
}

/* Feedback Messages */
/* Feedback Messages - Global Context */
.storage-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--solvix-glass);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 350px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--storage-info);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--solvix-silver);
}

.storage-feedback.show {
    transform: translateX(0);
}

.storage-feedback-success {
    border-left-color: var(--storage-success);
}

.storage-feedback-error {
    border-left-color: var(--storage-danger);
}

.storage-feedback-warning {
    border-left-color: var(--storage-warning);
}

/* ===================== MODAL DE MOVIMIENTO ESTILOS ===================== */

/* Modal de Movimiento */
.move-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid var(--storage-info);
}

.move-info div {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.move-info div:last-child {
    margin-bottom: 0;
}

.move-info strong {
    color: var(--text-main);
    font-weight: 600;
    min-width: 140px;
}

.move-info span {
    color: var(--text-sub);
    text-align: center;
    flex: 1;
}

/* Select de racks con scroll */
#new-rack-select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300f2ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

#new-rack-select:focus {
    border-color: var(--storage-primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.1);
    outline: none;
}

#new-rack-select option {
    padding: 10px;
    font-size: 0.9rem;
}

#new-rack-select option:disabled {
    color: #94a3b8;
    background: #f1f5f9;
}

/* Input de cantidad con estilo */
#move-quantity {
    width: 100%;
    padding: 12px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--solvix-cyan);
    border-radius: 8px;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    text-shadow: 0 0 10px var(--solvix-cyan-glow);
}

#move-quantity:focus {
    border-color: var(--storage-primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.1);
    outline: none;
}

/* Slider personalizado */
#move-quantity-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
}

#move-quantity-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--storage-primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#move-quantity-range::-moz-range-thumb {
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--storage-primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Alertas dentro del modal */
.modal-alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-alert.warning {
    background: #fef3c7;
    color: #b45309;
    border-left: 4px solid #f59e0b;
}

.modal-alert.info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Botones de acción mejorados */
#storage-content .btn-full {
    flex: 1;
    text-align: center;
}

/* Clases para valores de stock en detalles */
#storage-content .detail-value {
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
}

#storage-content .detail-value.stock-low {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

#storage-content .detail-value.stock-critical {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

#storage-content .detail-value.stock-available {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Historial de movimientos */
.movement-history {
    margin-top: 25px;
    border-top: 2px solid var(--border-color);
    padding-top: 15px;
}

.movement-history h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.movement-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.movement-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.movement-item:last-child {
    border-bottom: none;
}

.movement-info {
    flex: 1;
}

.movement-from-to {
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 5px;
}

.movement-arrow {
    color: var(--storage-info);
    font-weight: bold;
}

.movement-date {
    font-size: 0.8rem;
    color: var(--text-sub);
}

.movement-quantity {
    font-weight: 600;
    color: var(--storage-primary);
    background: #dbeafe;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Botones con iconos */
.btn-primary i,
.btn-secondary i {
    margin-right: 8px;
}

/* Modales */
.storage-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    backdrop-filter: blur(5px);
}

.storage-modal-card {
    background: var(--solvix-glass);
    border-radius: 16px;
    max-width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    color: var(--solvix-silver);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

.storage-modal-header {
    background: var(--solvix-metal);
    color: var(--solvix-header-text, #020c1b);
    padding: 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.storage-modal-header button {
    background: none;
    border: none;
    color: var(--solvix-header-text, #020c1b);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.storage-modal-header button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.storage-modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: 60vh;
}

.storage-modal-actions {
    padding: 20px;
    background: var(--solvix-metal);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

#storage-content .btn-primary {
    background: var(--storage-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#storage-content .btn-primary:hover {
    background: #0c3d5c;
    transform: translateY(-1px);
}

#storage-content .btn-secondary {
    background: #e2e8f0;
    color: var(--text-main);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#storage-content .btn-secondary:hover {
    background: #cbd5e1;
}

/* ===================== NOTIFICACIONES DE MOVIMIENTOS PENDIENTES ===================== */
#storage-content .pending-movements-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 5px solid var(--storage-info);
    max-width: 300px;
    overflow: hidden;
}

#storage-content .pending-movements-notification.show {
    transform: translateY(0);
    opacity: 1;
}

#storage-content .notification-header {
    background: var(--solvix-blue-G);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#storage-content .notification-header i {
    font-size: 1.2rem;
}

#storage-content .notification-header span {
    font-weight: 600;
    flex: 1;
}

#storage-content .notification-header button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
}

#storage-content .notification-header button:hover {
    background: rgba(255, 255, 255, 0.3);
}

#storage-content .notification-body {
    padding: 15px;
}

#storage-content .notification-body small {
    display: block;
    color: var(--text-sub);
    margin-bottom: 10px;
    font-size: 0.85rem;
}

#storage-content .btn-process {
    background: var(--storage-success);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#storage-content .btn-process:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Animación para notificación */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

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

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100px);
        opacity: 0;
    }
}

/* Custom scrollbar para modales */
#storage-content .storage-modal-body::-webkit-scrollbar {
    width: 6px;
}

#storage-content .storage-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

#storage-content .storage-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

#storage-content .storage-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Estilo para cuando no hay racks disponibles */
#storage-content .no-racks-message {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-sub);
}

#storage-content .no-racks-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #cbd5e1;
}

/* Indicador de carga en modales */
#storage-content .modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 15px;
}

#storage-content .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--storage-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    #storage-content .storage-grid {
        height: auto;
    }

    #storage-content .storage-grid > .panel:first-child {
        max-height: none;
    }
}

@media (max-width: 768px) {
    #storage-content .storage-grid > .panel:first-child {
        max-height: none;
    }
    #storage-content .form-row {
        flex-direction: column;
        gap: 15px;
    }

    #storage-content .action-buttons {
        flex-wrap: wrap;
    }

    #storage-content .racks-status-container {
        grid-template-columns: 1fr;
    }

    #storage-content .storage-modal-card {
        max-width: 95%;
        max-height: 85vh;
        background: var(--solvix-glass);
        color: var(--solvix-silver);
    }

    #storage-content .storage-modal-header {
        padding: 15px;
    }

    #storage-content .storage-modal-body {
        padding: 20px;
    }

    #storage-content .storage-modal-actions {
        padding: 15px;
        flex-direction: column;
    }

    #storage-content .storage-modal-actions button {
        width: 100%;
    }

    #storage-content .move-info div {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    #storage-content .move-info strong,
    #storage-content .move-info span {
        text-align: left;
        width: 100%;
    }
}

/* ===================== ESTILOS GLOBALES PARA MODAL DE MOVIMIENTO ===================== */

/* Overlay del modal */
.storage-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    backdrop-filter: blur(5px);
}

/* Tarjeta del modal */
.storage-modal-card {
    background: var(--solvix-glass);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--solvix-silver);
}

/* Cabecera del modal */
.storage-modal-header {
    background: var(--solvix-metal);
    color: var(--solvix-header-text, #020c1b);
    padding: 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.storage-modal-header button {
    background: none;
    border: none;
    color: var(--solvix-header-text, #020c1b);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.storage-modal-header button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Cuerpo del modal */
.storage-modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: 60vh;
}

/* Acciones del modal */
.storage-modal-actions {
    padding: 20px;
    background: var(--solvix-metal);
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.move-info {
    background: var(--modal-bg, rgba(255, 255, 255, 0.05));
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid var(--solvix-cyan, #3b82f6);
}

.move-info div {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.move-info div:last-child {
    margin-bottom: 0;
}

.move-info strong {
    color: var(--modal-text, var(--solvix-silver, #e2e8f0));
    font-weight: 600;
    min-width: 140px;
}

.move-info span {
    color: var(--modal-text, var(--solvix-silver, #e2e8f0));
    text-align: right;
    flex: 1;
    opacity: 0.85;
}

/* Clases utilitarias para modales */
.modal-text-dim {
    color: var(--solvix-silver-dark, #94a3b8) !important;
    opacity: 0.8;
}

.modal-divider {
    margin: 10px 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-sub-row {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.9em;
    color: var(--solvix-silver-dark, #94a3b8);
}

.modal-meta {
    font-size: 0.8rem;
    color: var(--solvix-silver-dark, #94a3b8);
}

.sku-badge {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--modal-text, var(--solvix-silver));
}

.qr-img {
    width: 100px;
    height: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px;
    border-radius: 8px;
    background: white;
}

/* Alertas */
.modal-alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-alert.warning {
    background: #fef3c7;
    color: #b45309;
    border-left: 4px solid #f59e0b;
}

.modal-alert.info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Botones */
.btn-primary {
    background: #0f4c75;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #0c3d5c;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #e2e8f0;
    color: #0f172a;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.btn-full {
    flex: 1;
    text-align: center;
}

/* Badge de rack (importante que esté global) */
.rack-badge {
    color: #1e40af;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
}

/* Inputs del formulario en el modal */
.form-input {
    width: 100%;
    padding: 12px;
    border: var(--theme-ai-input-border, 1px solid rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: var(--theme-ai-input-bg, rgba(255, 255, 255, 0.05));
    color: var(--theme-ai-text-main, #ffffff) !important;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--solvix-cyan);
    box-shadow: 0 0 15px var(--solvix-cyan-glow);
    outline: none;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--solvix-silver);
    font-size: 0.9rem;
}

/* Slider personalizado */
#move-quantity-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
}

#move-quantity-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0f4c75;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Animaciones */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

/* Scrollbar personalizado */
.storage-modal-body::-webkit-scrollbar {
    width: 6px;
}

.storage-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.storage-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.storage-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .storage-modal-card {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        background: var(--solvix-glass);
        color: var(--solvix-silver);
    }

    .storage-modal-body {
        padding: 20px;
    }

    .storage-modal-actions {
        padding: 15px;
        flex-direction: column;
    }

    .storage-modal-actions button {
        width: 100%;
    }

    .move-info div {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .move-info strong,
    .move-info span {
        text-align: left;
        width: 100%;
    }
}

/* Incremento de tamaño para iconos del módulo Almacenaje (Excepto Configuración) */
#storage-content .nav-icon-img:not([alt="Config"]) {
    height: 32px;
    /* Aumentado visualmente */
}

/* Ajustar el tamaño del icono de escanear en los mini botones para que encaje mejor */
#storage-content .form-group .btn-scanner-mini .nav-icon-img:not([alt="Config"]) {
    height: 22px;
}

/* ===================== CSS INVENTARIO METODOS ===================== */
.inv-method-btn {
    background: var(--solvix-metal);
    border: 1px solid rgba(0, 242, 255, 0.2);
    color: #000000;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inv-method-btn:hover {
    background: rgba(0, 242, 255, 0.15);
    color: var(--solvix-cyan);
    border-color: var(--solvix-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 242, 255, 0.2);
}

.inv-method-btn:active {
    transform: scale(0.96);
}

.inv-method-btn.active {
    background: rgba(0, 242, 255, 0.2);
    border-color: var(--solvix-cyan);
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.3);
}

/* ===================== OVERRIDES MODALES POR TEMA ===================== */

/* TEMA CORPORATIVO (solvix-corp) — Modales claros */
[data-theme="solvix-corp"] .storage-modal-card {
    background: #ffffff;
    color: #333333;
    border: 1px solid #e1e5e9;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

[data-theme="solvix-corp"] .storage-modal-body {
    color: #333333;
}

[data-theme="solvix-corp"] .move-info {
    background: #f8fafc;
    border-left-color: var(--solvix-cyan, #007bff);
}

[data-theme="solvix-corp"] .move-info strong {
    color: #0f172a;
}

[data-theme="solvix-corp"] .move-info span {
    color: #333333;
}

[data-theme="solvix-corp"] .modal-text-dim {
    color: #6c757d !important;
}

[data-theme="solvix-corp"] .modal-divider {
    border-top-color: #e1e5e9;
}

[data-theme="solvix-corp"] .modal-sub-row {
    color: #6c757d;
}

[data-theme="solvix-corp"] .modal-meta {
    color: #6c757d;
}

[data-theme="solvix-corp"] .sku-badge {
    background: #f1f5f9;
    color: #333;
}

[data-theme="solvix-corp"] .rack-badge {
    background: #dbeafe;
    color: #1e40af;
}

[data-theme="solvix-corp"] .qr-img {
    border-color: #e1e5e9;
}

[data-theme="solvix-corp"] .btn-secondary {
    background: #e2e8f0;
    color: #0f172a;
}

[data-theme="solvix-corp"] .storage-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

[data-theme="solvix-corp"] .storage-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

[data-theme="solvix-corp"] .storage-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

[data-theme="solvix-corp"] .modal-alert.warning {
    background: #fef3c7;
    color: #b45309;
}

[data-theme="solvix-corp"] .modal-alert.info {
    background: #dbeafe;
    color: #1e40af;
}

[data-theme="solvix-corp"] .storage-modal-actions {
    border-top-color: #e1e5e9;
}

/* ========== TABS SYSTEM (ALMACENAJE) ========== */
#storage-content .storage-tabs {
    display: flex;
    gap: 4px;
    margin-left: 20px;
}

#storage-content .storage-tab-btn {
    padding: 8px 22px;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, 0.05);
    color: var(--solvix-silver-dark, #94a3b8);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

#storage-content .storage-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--solvix-silver, #e2e8f0);
}

#storage-content .storage-tab-btn.active {
    background: var(--solvix-cyan, #00D9FF);
    color: #020c1b;
    border-color: var(--solvix-cyan, #00D9FF);
    box-shadow: 0 -2px 10px rgba(0, 217, 255, 0.3);
}

#storage-content .storage-tab-btn.active i {
    color: #020c1b;
}

/* ── GEMELO DIGITAL DE RACK ── */
#storage-rack-twin-grid {
    display: grid;
    margin: 0 auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.rack-cell {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    aspect-ratio: 1.5 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px;
    min-height: 48px;
}

.rack-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 242, 255, 0.15);
    border-color: rgba(0, 242, 255, 0.4);
}

/* Celda seleccionada en filtro */
.rack-cell.active-filter {
    border-color: var(--solvix-cyan, #00f2ff) !important;
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.4);
    background: rgba(0, 242, 255, 0.08) !important;
}

/* Modo Traslado - Celdas destino válidas */
.rack-cell.valid-move-target {
    border: 1px dashed var(--solvix-cyan, #00f2ff);
    animation: cell-target-glow 1.5s infinite alternate;
}

.rack-cell.valid-move-target:hover {
    border-style: solid;
    background: rgba(0, 242, 255, 0.15) !important;
}

@keyframes cell-target-glow {
    from {
        box-shadow: 0 0 2px rgba(0, 242, 255, 0.2);
    }
    to {
        box-shadow: 0 0 8px rgba(0, 242, 255, 0.6);
    }
}

/* Contenido de la Celda */
.rack-cell-label {
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--solvix-silver-dark, #94a3b8);
    pointer-events: none;
}

.rack-cell-occupancy {
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 2px;
    pointer-events: none;
}

.rack-cell-qty {
    font-size: 0.6rem;
    opacity: 0.75;
    pointer-events: none;
}

/* Colores de Ocupación */
.cell-empty {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}
.cell-empty .rack-cell-occupancy {
    color: #475569;
}

.cell-low {
    background: rgba(0, 242, 255, 0.08);
    border-color: rgba(0, 242, 255, 0.15);
}
.cell-low .rack-cell-occupancy {
    color: var(--solvix-cyan, #00f2ff);
}

.cell-medium {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
}
.cell-medium .rack-cell-occupancy {
    color: #f59e0b;
}

.cell-critical {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}
.cell-critical .rack-cell-occupancy {
    color: #ef4444;
}

/* Tooltip nativo personalizado */
.rack-cell .cell-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(2, 12, 27, 0.95);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    color: white;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.rack-cell:hover .cell-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-3px);
}

/* Estilos de Flujo Visual para Gemelo Digital (Almacenaje y Picking) */
.cell-free {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}
.cell-free .rack-cell-occupancy {
    color: #10b981 !important;
}

.cell-occupied {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    cursor: not-allowed !important;
}
.cell-occupied .rack-cell-occupancy {
    color: #ef4444 !important;
}

.cell-recommended {
    background: rgba(0, 242, 255, 0.15) !important;
    border-color: var(--solvix-cyan, #00f2ff) !important;
    animation: recommended-pulse-cyan 1.5s infinite alternate !important;
}
.cell-recommended .rack-cell-occupancy {
    color: var(--solvix-cyan, #00f2ff) !important;
}

@keyframes recommended-pulse-cyan {
    from {
        box-shadow: 0 0 4px rgba(0, 242, 255, 0.4);
    }
    to {
        box-shadow: 0 0 16px rgba(0, 242, 255, 0.8), inset 0 0 8px rgba(0, 242, 255, 0.3);
        transform: scale(1.02);
    }
}

/* Colores de estados en RackView */
.RackView .cell-occupied, .pk-mini-rack-grid .cell-occupied, .cell-occupied {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #ef4444 !important;
}
.RackView .cell-free, .pk-mini-rack-grid .cell-free, .cell-free {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #10b981 !important;
}
.RackView .cell-reserved, .pk-mini-rack-grid .cell-reserved, .cell-reserved {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #f59e0b !important;
    animation: reserved-pulse-yellow 1.5s infinite alternate !important;
}

@keyframes reserved-pulse-yellow {
    from {
        box-shadow: 0 0 4px rgba(245, 158, 11, 0.4);
    }
    to {
        box-shadow: 0 0 16px rgba(245, 158, 11, 0.8), inset 0 0 8px rgba(245, 158, 11, 0.3);
        transform: scale(1.02);
    }
}

#storage-content .status-transit {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.RackView .cell-picking, .pk-mini-rack-grid .cell-picking, .cell-picking {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    color: #3b82f6 !important;
}
.RackView .cell-pending-inventory, .pk-mini-rack-grid .cell-pending-inventory, .cell-pending-inventory {
    background: rgba(168, 85, 247, 0.15) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
    color: #a855f7 !important;
}
.RackView .cell-pending-replenishment, .pk-mini-rack-grid .cell-pending-replenishment, .cell-pending-replenishment {
    background: rgba(249, 115, 22, 0.15) !important;
    border-color: rgba(249, 115, 22, 0.4) !important;
    color: #f97316 !important;
}


.RackView .cell-unsupported, .pk-mini-rack-grid .cell-unsupported, .cell-unsupported {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px dashed rgba(255, 255, 255, 0.25) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    opacity: 0.55 !important;
    cursor: not-allowed !important;
}
.RackView .cell-unsupported .rack-cell-occupancy, .cell-unsupported .rack-cell-occupancy {
    color: rgba(255, 255, 255, 0.3) !important;
    text-shadow: none !important;
}

.rack-cell.selected-twin-cell {
    border-color: var(--solvix-cyan, #00f2ff) !important;
    box-shadow: 0 0 12px var(--solvix-cyan, #00f2ff) !important;
    background: rgba(0, 242, 255, 0.15) !important;
}

/* Selector de Profundidades */
.depth-selector-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.depth-selector-label {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--solvix-silver-dark, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.depth-btn-group {
    display: flex;
    gap: 8px;
}

.depth-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--solvix-silver, #e2e8f0);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
    font-size: 0.9rem;
}

.depth-btn:hover {
    border-color: var(--solvix-cyan, #00f2ff);
    background: rgba(0, 242, 255, 0.1);
}

.depth-btn.selected {
    background: var(--solvix-cyan, #00f2ff) !important;
    color: #020c1b !important;
    border-color: var(--solvix-cyan, #00f2ff) !important;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

/* Modal de Doble Panel */
.dual-panel-modal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.modal-panel-left {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-panel-right {
    flex: 1.5;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(0, 0, 0, 0.15);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    align-items: center;
}


