/* src\components\report\report.css */

/* ============================================================
   Page layout
   ============================================================ */

.report-page {
    max-width: var(--width-wide);
    margin: 0 auto;
}

.report-header {
    margin-bottom: 20px;
}

.report-header h1 {
    margin-bottom: 20px;
}

/* ============================================================
   Filters panel
   ============================================================ */

.report-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius-small);
    border: 1px solid #eee;
}

@media (max-width: 1024px) {
    .report-filters {
        flex-direction: column;
        align-items: stretch;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 10px;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 10px;
    border-radius: var(--border-radius-small);
    border: 1px solid var(--color-border);
    background: #fff;
    font-size: 14px;
}

.button-apply {
    padding: 11px 25px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    cursor: pointer;
}

/* ============================================================
   Table
   ============================================================ */

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.report-table th {
    background: #fafafa;
    padding: 15px;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    border-bottom: 2px solid #eee;
    white-space: nowrap;
}

.report-table td {
    padding: 5px 10px;
    vertical-align: middle;
}

/* ============================================================
   Колонки — общие
   ============================================================ */

/* Объединённая ячейка: картинка + название товара/статьи */
.report-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-item img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--img-border-radius-small);
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    display: block;
}

.col-cat,
.col-sub {
    font-size: 12px;
    color: var(--grey);
}

.col-name a {
    font-weight: normal;
}

.col-sku code {
    font-family: monospace;
    font-size: 12px;
    color: #c00;
    background: #fff0f0;
    padding: 2px 4px;
    border-radius: var(--border-radius-small);
}

.col-count {
    text-align: center;
    font-size: 13px;
    color: #444;
}

.col-count.empty {
    color: #ccc;
}

.col-cover-flag {
    text-align: center;
    font-size: 16px;
}

.col-date {
    font-size: 12px;
    color: var(--grey);
    white-space: nowrap;
}

.col-spec {
    font-size: 12px;
    color: #555;
}

.spec-title {
    white-space: nowrap;
}

.col-flag {
    text-align: center;
}

/* ============================================================
   Badges
   ============================================================ */

.badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: var(--border-radius-small);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-link-best {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-link-category {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-link-select {
    background: #f3e5f5;
    color: #6a1b9a;
}

.badge-link-product {
    background: #fff3e0;
    color: #e65100;
}

.badge-none {
    background: #f5f5f5;
    color: #bbb;
}

.badge-draft {
    background: #fff3cd;
    color: #856404;
}

.badge-noindex {
    background: #fdecea;
    color: #b71c1c;
}

/* ============================================================
   Utility
   ============================================================ */

.hidden {
    display: none !important;
}

/* ============================================================
   Responsive
   ============================================================ */

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}