/**
 * Estilos para Pedidos Futuros
 * 
 * Estilos específicos para la visualización agrupada por fechas y turnos
 * de pedidos futuros. Usa colores planos del diseño original.
 *
 * @package Triviantes_Orders_Manager
 * @since 2.3.0
 */

/* ==========================================
   FILTROS DE FECHAS FUTURAS
   ========================================== */

.triviantes-om-future-filter {
    /* Sin estilos adicionales - usa los del contenedor base */
}

/* ==========================================
   CONTENEDOR DE PEDIDOS FUTUROS
   ========================================== */

.triviantes-om-future-container {
    margin-top: 2rem;
}

.triviantes-om-future-orders-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ==========================================
   GRUPO DE FECHA
   ========================================== */

.triviantes-om-date-group {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.triviantes-om-date-header {
    background: #e9ecef;
    color: #212529;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #dee2e6;
}

.triviantes-om-date-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: capitalize;
    color: #212529;
}

.triviantes-om-date-icon {
    font-size: 1.25rem;
    color: #495057;
}

.triviantes-om-date-count {
    background: #dee2e6;
    color: #212529;
    padding: 0.375rem 0.875rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ==========================================
   CONTENEDOR DE TURNOS
   ========================================== */

.triviantes-om-shifts-container {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8f9fa;
}

/* ==========================================
   GRUPO DE TURNO
   ========================================== */

.triviantes-om-shift-group {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.triviantes-om-shift-header {
    background: #f1f3f5;
    color: #212529;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
}

.triviantes-om-shift-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #212529;
}

.triviantes-om-shift-icon {
    font-size: 1rem;
    color: #495057;
}

.triviantes-om-shift-count {
    background: #dee2e6;
    color: #212529;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.813rem;
    font-weight: 600;
}

/* Turno sin asignar - estilo diferente pero también accesible */
.triviantes-om-no-shift .triviantes-om-shift-header {
    background: #d1ecf1;
    border-bottom: 1px solid #bee5eb;
}

.triviantes-om-no-shift .triviantes-om-shift-title {
    color: #0c5460;
}

.triviantes-om-no-shift .triviantes-om-shift-icon {
    color: #0c5460;
}

.triviantes-om-no-shift .triviantes-om-shift-count {
    background: #bee5eb;
    color: #0c5460;
}

/* ==========================================
   TABLA DE PEDIDOS FUTUROS
   ========================================== */

.triviantes-om-future-table {
    margin: 0;
    border-radius: 0;
}

.triviantes-om-future-table thead {
    background: #f8f9fa;
}

.triviantes-om-future-table thead th {
    color: #212529;
    font-weight: 600;
    font-size: 0.813rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.875rem 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

.triviantes-om-future-table tbody tr {
    transition: background-color 0.2s ease;
}

.triviantes-om-future-table tbody tr:hover {
    background-color: #f8f9fa;
}

.triviantes-om-future-table tbody td {
    padding: 0.875rem 0.75rem;
}

.triviantes-om-future-table tbody td a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.triviantes-om-future-table tbody td a:hover {
    color: #005177;
    text-decoration: underline;
}

/* ==========================================
   BADGE DE ESTADO
   ========================================== */

.triviantes-om-status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.triviantes-om-status-completado,
.triviantes-om-status-completed {
    background: #d1fae5;
    color: #065f46;
}

.triviantes-om-status-procesando,
.triviantes-om-status-processing {
    background: #fef3c7;
    color: #92400e;
}

.triviantes-om-status-pendiente,
.triviantes-om-status-pending {
    background: #dbeafe;
    color: #1e40af;
}

.triviantes-om-status-en-espera,
.triviantes-om-status-on-hold {
    background: #fce7f3;
    color: #9f1239;
}

/* ==========================================
   ESTADOS VACÍOS Y NOTIFICACIONES
   ========================================== */

.triviantes-om-shift-group .triviantes-om-notice {
    margin: 1rem;
    border-radius: 6px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .triviantes-om-date-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .triviantes-om-date-title {
        font-size: 1.25rem;
    }

    .triviantes-om-shift-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .triviantes-om-shift-title {
        font-size: 1rem;
    }

    .triviantes-om-shifts-container {
        padding: 1rem;
        gap: 1rem;
    }

    .triviantes-om-future-orders-wrapper {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .triviantes-om-date-header {
        padding: 1rem 1.5rem;
    }

    .triviantes-om-date-title {
        font-size: 1.125rem;
        gap: 0.5rem;
    }

    .triviantes-om-date-icon {
        font-size: 1.5rem;
    }

    .triviantes-om-shift-header {
        padding: 0.875rem 1rem;
    }

    .triviantes-om-shift-title {
        font-size: 0.95rem;
    }

    .triviantes-om-shift-icon {
        font-size: 1.125rem;
    }
}

/* ==========================================
   MODO OSCURO (OPCIONAL)
   ========================================== */

@media (prefers-color-scheme: dark) {
    .triviantes-om-date-group {
        background: #1e293b;
        border-color: #334155;
    }

    .triviantes-om-date-header {
        background: #334155;
        color: #f1f5f9;
        border-bottom-color: #475569;
    }

    .triviantes-om-date-title {
        color: #f1f5f9;
    }

    .triviantes-om-date-icon {
        color: #cbd5e1;
    }

    .triviantes-om-date-count {
        background: #475569;
        color: #f1f5f9;
    }

    .triviantes-om-shift-group {
        background: #1e293b;
        border-color: #334155;
    }

    .triviantes-om-shift-header {
        background: #334155;
        color: #f1f5f9;
        border-bottom-color: #475569;
    }

    .triviantes-om-shift-title {
        color: #f1f5f9;
    }

    .triviantes-om-shift-icon {
        color: #cbd5e1;
    }

    .triviantes-om-shift-count {
        background: #475569;
        color: #f1f5f9;
    }

    .triviantes-om-no-shift .triviantes-om-shift-header {
        background: #0c4a6e;
        border-bottom-color: #075985;
    }

    .triviantes-om-shifts-container {
        background: #0f172a;
    }

    .triviantes-om-future-table thead {
        background: #1e293b;
    }

    .triviantes-om-future-table thead th {
        color: #f1f5f9;
        border-bottom-color: #334155;
    }

    .triviantes-om-future-table tbody tr:hover {
        background-color: #334155;
    }

    .triviantes-om-future-table tbody td {
        color: #e2e8f0;
    }
}

/* ==========================================
   ANIMACIONES
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.triviantes-om-date-group {
    animation: fadeInUp 0.3s ease-in;
}

.triviantes-om-shift-group {
    animation: fadeInUp 0.2s ease-in;
}
