/* ===== EMB TABLE STYLES ===== */
.emb-events-table-container,
.emb-orders-table-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.emb-events-table,
.emb-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.emb-events-table th,
.emb-orders-table th {
    background: #f8fafc;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.emb-events-table td,
.emb-orders-table td {
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.emb-events-table tr:hover td,
.emb-orders-table tr:hover td {
    background: #f9fafb;
}

.emb-actions-cell,
.order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.emb-action-btn,
.order-actions .button {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.emb-edit-btn { background: #3b82f6; color: white; }
.emb-edit-btn:hover { background: #2563eb; }
.emb-publish-btn { background: #10b981; color: white; }
.emb-publish-btn:hover { background: #059669; }
.emb-draft-btn { background: #6b7280; color: white; }
.emb-draft-btn:hover { background: #4b5563; }

.estado-badge { 
    padding: 4px 8px; 
    border-radius: 12px; 
    font-size: 12px; 
    font-weight: 600; 
    display: inline-block; 
}
.estado-publish { background: #d1fae5; color: #065f46; }
.estado-draft { background: #fef3c7; color: #92400e; }
.estado-pending { background: #dbeafe; color: #1e40af; }

/* Botones pequeños de acciones en la tabla de pedidos */
.order-actions .button-small {
    background: #3b82f6;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
}

.order-actions .button-small:hover { background: #2563eb; }

/* Para las tablas de pedidos */
.emb-orders-table,
.emb-orders-table th,
.emb-orders-table td,
.emb-orders-table tr {
    color: #333333;
}

/* Para las estadísticas */
.stats-grid,
.stat-card,
.stat-number,
.stat-label {
    color: #333333;
}

.stat-number {
    color: #2271b1;
}

/* ===== BOTONES ACCIONES ===== */
.order-actions a.button {
    background: #3b82f6;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.order-actions a.button:hover {
    background: #2563eb;
}

/* ===== RESPONSIVE REAL PARA MÓVIL ===== */
@media (max-width: 768px) {
    /* Contenedor con scroll horizontal */
    .emb-events-table-container,
    .emb-orders-table-container { 
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Tablas responsivas */
    .emb-events-table,
    .emb-orders-table { 
        min-width: 600px; /* Forzar ancho mínimo para scroll horizontal */
    }
    
    /* Ajustar padding en móvil */
    .emb-events-table th,
    .emb-orders-table th,
    .emb-events-table td,
    .emb-orders-table td {
        padding: 10px 8px;
        font-size: 14px;
    }
    
    /* Botones en columna en móvil */
    .emb-actions-cell,
    .order-actions { 
        flex-direction: column; 
        gap: 5px; 
        min-width: 120px;
    }
    
    .emb-action-btn,
    .order-actions .button { 
        text-align: center; 
        padding: 8px 10px;
        font-size: 11px;
    }
    
    /* Estadísticas en grid de 2 columnas en móvil */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* Navegación en columna en móvil */
    .emb-vendor-nav {
        flex-direction: column;
        gap: 8px;
    }
    
    .emb-vendor-nav a {
        text-align: center;
        padding: 12px;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .emb-events-table,
    .emb-orders-table { 
        min-width: 500px;
    }
    
    .emb-events-table th,
    .emb-orders-table th,
    .emb-events-table td,
    .emb-orders-table td {
        padding: 8px 6px;
        font-size: 13px;
    }
}