/* ERP System Styles */
.erp-dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.erp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2271b1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.erp-header h2 {
    margin: 0;
    color: #1d2327;
    font-size: 28px;
}

.erp-user-info {
    background: #f0f6fc;
    padding: 8px 15px;
    border-radius: 4px;
    color: #2271b1;
    font-weight: 500;
}

.erp-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.erp-metric-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    border-left: 4px solid #2271b1;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.erp-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.metric-icon .dashicons {
    font-size: 32px;
    color: #2271b1;
    width: 32px;
    height: 32px;
}

.metric-content h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #1d2327;
    font-weight: 600;
}

.metric-content p {
    margin: 0;
    color: #646970;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.erp-charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.erp-chart-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 300px;
}

.erp-chart-card h4 {
    margin: 0 0 20px 0;
    color: #1d2327;
    font-size: 18px;
    border-bottom: 1px solid #dcdcde;
    padding-bottom: 10px;
}

.erp-tables-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.erp-tables-section h4 {
    margin: 0 0 20px 0;
    color: #1d2327;
    font-size: 18px;
    border-bottom: 1px solid #dcdcde;
    padding-bottom: 10px;
}

.erp-login-required,
.erp-error {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #d63638;
}

.erp-login-required p,
.erp-error p {
    margin: 0;
    font-size: 16px;
    color: #1d2327;
}

/* Responsive */
@media (max-width: 768px) {
    .erp-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .erp-charts-grid {
        grid-template-columns: 1fr;
    }
    
    .erp-metrics-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== NUEVOS ESTILOS PARA DASHBOARD FUNCIONAL ===== */

/* Navegación Rápida */
.erp-quick-nav {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.erp-quick-nav h3 {
    margin: 0 0 15px 0;
    color: #1d2327;
    font-size: 20px;
}

.erp-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.erp-nav-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #2271b1;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.erp-nav-card:hover {
    border-color: #2271b1;
    background: #f0f6fc;
    transform: translateY(-2px);
    text-decoration: none;
    color: #2271b1;
}

.erp-nav-card .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Tablas organizadas */
.erp-tables-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.erp-table-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.erp-table-card h4 {
    margin: 0 0 15px 0;
    color: #1d2327;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Botones de acción */
.erp-actions {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.erp-actions h4 {
    margin: 0 0 15px 0;
    color: #1d2327;
    font-size: 18px;
}

.erp-action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.erp-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.erp-btn.primary {
    background: #2271b1;
    color: white;
}

.erp-btn.success {
    background: #00a32a;
    color: white;
}

.erp-btn.warning {
    background: #dba617;
    color: white;
}

.erp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .erp-tables-section {
        grid-template-columns: 1fr;
    }
    
    .erp-nav-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .erp-action-buttons {
        flex-direction: column;
    }
    
    .erp-btn {
        width: 100%;
    }
}

/* Mejoras para las tablas de WP Data Access */
.wpda-container {
    margin-top: 10px;
}

.wpda-table {
    width: 100% !important;
}

/* Iconos de dashicons personalizados */
.dashicons-products:before {
    content: "📦";
    font-family: inherit;
}

.dashicons-cart:before {
    content: "💰";
    font-family: inherit;
}

.dashicons-groups:before {
    content: "👥";
    font-family: inherit;
}

.dashicons-chart-bar:before {
    content: "📊";
    font-family: inherit;
}