/* Стили для плагина 1C API Sync */

/* Админка - Dashboard */
.onec-sync-dashboard {
    max-width: 1200px;
}

.onec-sync-actions {
    margin: 20px 0;
    padding: 20px;
    background: #f1f1f1;
    border-radius: 5px;
}

.onec-sync-actions button {
    margin-right: 10px;
}

.onec-sync-status {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    margin: 10px 0;
}

.onec-sync-results {
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin: 10px 0;
}

.onec-sync-logs table {
    width: 100%;
    border-collapse: collapse;
}

.onec-sync-logs th,
.onec-sync-logs td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.onec-sync-logs th {
    background: #f8f9fa;
}

.status-success {
    color: #28a745;
}

.status-error {
    color: #dc3545;
}

/* Админка - Статистика */
.onec-stats-dashboard {
    max-width: 1200px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card.success {
    border-left: 4px solid #28a745;
}

.stat-card.error {
    border-left: 4px solid #dc3545;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.stat-percentage {
    font-size: 14px;
    color: #666;
}

.chart-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.recent-syncs {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.error-details {
    color: #dc3545;
    cursor: help;
}

.onec-stats-overview,
.onec-stats-products,
.onec-stats-performance,
.onec-stats-chart,
.onec-stats-recent {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.onec-stats-overview {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.stat-card.success .stat-number {
    color: #28a745;
}

.stat-card.error .stat-number {
    color: #dc3545;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Фронтенд - Скрытие категорий */
/* Динамические стили для конкретных категорий будут добавлены через add_hide_categories_css */
.woocommerce-breadcrumb a[href*="product-category"] {
    display: none !important;
}

