/* tv_vista.css - MODO TV (ESTÉTICA ESTILO LIGHT + CARDS DARK PRO + COMPRESIÓN VERTICAL) */

body.tv-mode {
    background: #f1f5f9 !important;
    /* Fondo claro neutro */
    color: #1e293b !important;
    overflow-y: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ocultar elementos innecesarios */
body.tv-mode .sidebar,
body.tv-mode .top-bar:not(#tv-header-fake),
body.tv-mode .navbar,
body.tv-mode #sidebar,
body.tv-mode .sidebar-overlay,
body.tv-mode #loading-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Contenedor principal */
body.tv-mode .main-content,
body.tv-mode #page-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
}

/* Página de Almacén */
body.tv-mode #almacen-page {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important; /* Forzado a top de viewport */
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow-y: auto !important;
    z-index: 5000 !important;
    background: #f1f5f9 !important;
    padding: 1rem 1.5vw !important; /* Padding ajustado */
    margin: 0 !important;
}

body.tv-mode #almacen-page #almacen-container {
    margin-top: 0 !important; /* Eliminar margen superior en TV */
}

/* Título de Página */
body.tv-mode #almacen-page .page-title h1 {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 2.2rem !important;
    /* Compactado de 3rem */
    font-weight: 800 !important;
    color: #1e293b !important;
    margin-bottom: 2vh !important;
    /* Compactado de 3vh */
}

body.tv-mode #almacen-page .page-title i {
    font-size: 2.5rem !important;
    /* Compactado de 3.5rem */
    color: #4f46e5 !important;
}

/* TARJETAS DARK PRO (Como en la imagen) */
body.tv-mode .almacen-card-pro {
    background: #1e293b !important;
    /* Azul oscuro profundo */
    border: none !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    border-left: 6px solid #f97316 !important;
    /* Borde naranja de estado */
    margin-bottom: 1rem !important;
    /* Compactado de 1.5rem */
    opacity: 1 !important;
    visibility: visible !important;
    overflow: hidden !important;
}

/* Encabezado de Tarjeta en Modo TV */
body.tv-mode .almacen-card-pro>div:first-child {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 8px 15px !important;
    /* Padding reducido */
}

/* ID del pedido */
body.tv-mode .almacen-card-pro .order-id-ref {
    color: #38bdf8 !important;
    /* Sky blue */
    font-size: 1.5rem !important;
    /* Compactado de 1.8rem */
}

/* Cliente */
body.tv-mode .almacen-card-pro .card-title {
    color: #ffffff !important;
    font-size: 1.7rem !important;
    /* Compactado de 2rem */
    font-weight: 700 !important;
}

/* Textos secundarios */
body.tv-mode .almacen-card-pro .text-muted {
    color: #94a3b8 !important;
    /* Slate 400 */
    font-size: 0.95rem !important;
    /* Compactado de 1.1rem */
}

/* Notas/Observaciones (Compactadas) */
body.tv-mode .nota-alistamiento-card {
    font-size: 1rem !important;
    /* Compactado de 1.1rem */
    background-color: rgba(245, 158, 11, 0.1) !important;
    border-left: 4px solid #f59e0b !important;
    color: #fbbf24 !important;
    padding: 8px !important;
    /* Compactado de 12px */
    margin-top: 6px !important;
    /* Compactado de 10px */
    border-radius: 6px !important;
    line-height: 1.3 !important;
}

/* Barras de progreso */
body.tv-mode .progress.progress-modern {
    height: 2.2vh !important;
    /* Compactado de 3vh */
    background: #334155 !important;
    border-radius: 6px !important;
    margin-bottom: 6px !important;
}

body.tv-mode .progress-bar {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
}

/* Asignación (Alistador) */
body.tv-mode .alistador-tv-display {
    display: block !important;
    font-size: 1.4rem !important;
    /* Compactado de 1.6rem */
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-top: 6px !important;
    /* Compactado de 10px */
    text-transform: uppercase !important;
}

/* Sección de delegación compactada */
body.tv-mode .delegation-section {
    padding-top: 10px !important;
    margin-top: 10px !important;
}

/* Botón de salida */
body.tv-mode .btn-exit-tv {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 10000 !important;
    background: #ef4444 !important;
    color: white !important;
    border: none !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    opacity: 0.8;
}

/* Grid */
body.tv-mode .col-md-6.col-lg-4 {
    flex: 0 0 calc(50% - 1rem) !important;
    max-width: 50% !important;
}