
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    background: #f5f6f8;
    color: #212529;
}

/* LINKS */
a { color: #0d6efd; text-decoration: none; }
a:hover { text-decoration: none; }

/* CONTAINERS */
.container {
    max-width: 1100px;
    margin: 24px auto 32px;
    padding: 24px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 0 1px #e1e5ea;
}
.container.small {
    max-width: 460px;
    margin: 24px auto 32px;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 10px 24px;
    border-bottom: 1px solid #e3e6ea;
}
.nav-link { margin-right: 16px; color: #495057; font-size: 14px; }
.nav-link.active { font-weight: 600; color: #000; }
.nav-user { margin-right: 12px; font-size: 14px; color: #343a40; }
.nav-store {
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f3f5;
    margin-right: 12px;
}

/* FORMS */
label { display: block; margin: 12px 0 6px; font-size: 14px; color: #333; }
input[type="text"], input[type="password"], input[type="number"], select {
    width: 100%; padding: 9px 12px; border-radius: 8px;
    border: 1px solid #ced4da; background: #ffffff; color: #000;
}
input:focus, select:focus {
    outline: none; border-color: #80bdff;
    box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}

/* BUTTONS */
button, .btn {
    display: inline-block; margin-top: 14px; padding: 8px 16px;
    border-radius: 8px; border: none; background: #0d6efd;
    color: #ffffff; font-weight: 600; cursor: pointer; font-size: 14px;
}
.btn-secondary { background: #e9ecef; color: #212529; border: 1px solid #d0d4da; }
.btn-danger { background: #dc3545; color: #fff; border: none; }
.btn-sm {
    display: inline-block; padding: 4px 10px; font-size: 13px;
    border-radius: 6px; background: #f8f9fa; border: 1px solid #ced4da;
    color: #212529; white-space: nowrap;
}
.btn-sm.btn-danger { background: #dc3545; color: #fff; border: none; }

.btn-group-vertical {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}

/* TABLES */
table {
    width: 100%; border-collapse: collapse; margin-top: 16px;
    background: #ffffff; border: 1px solid #dee2e6; border-radius: 8px; overflow: hidden;
    font-size: 13px;
}
th {
    background: #f1f3f5; font-weight: 600; color: #333;
    padding: 10px 8px; border-bottom: 1px solid #dee2e6; text-align: left;
}
td {
    padding: 10px 8px; border-bottom: 1px solid #dee2e6; background: #ffffff;
}
tr:hover td { background: #f8f9fa; }

/* BADGES */
.badge { padding: 4px 7px; border-radius: 8px; font-size: 11px; }
.badge-green { background: #d4edda; color: #155724; }
.badge-yellow { background: #fff3cd; color: #856404; }
.badge-red { background: #f8d7da; color: #721c24; }

/* ALERTS */
.alert { padding: 12px; border-radius: 8px; font-size: 14px; margin-bottom: 12px; }
.alert-error {
    background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb;
}

/* DETAILS BLOCK */
details {
    margin-bottom: 16px; background: #ffffff;
    border-radius: 10px; padding: 10px 12px; border: 1px solid #e1e5ea;
}
summary { cursor: pointer; font-size: 14px; color: #333; }

/* GRID FILTERS */
.filter-form {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    grid-gap: 10px 16px; align-items: flex-start; margin-bottom: 12px;
}
.filter-form button, .filter-form .btn-secondary { width: 100%; }

/* ==== ДОБАВЛЕНО: сетка таблиц + выравнивание заголовков и статуса ==== */

/* Полные границы таблицы — как у Excel */
table, th, td {
    border: 1px solid #dee2e6;
}

/* Заголовки таблиц — по центру, крупнее и жирнее */
table thead th {
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 700;
}

/* Содержимое ячеек — по вертикали по центру */
table td {
    vertical-align: middle;
}

/* Статус-бейдж — крупнее и жирнее, строго по центру */
td .badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    text-align: center;
    margin: 0 auto;
}

/* Центрируем колонку статуса (10-я колонка: "Статус цены") */
table tr td:nth-child(10),
table tr td.status-cell {
    text-align: center;
}

/* Выровнять по высоте и по вертикали "Поиск" и "Статус" */
.filter-form input,
.filter-form select {
    height: 42px !important;     /* одинаковая высота */
    line-height: 42px !important;/* текст строго по центру */
    padding: 0 12px !important;  /* ровные отступы */
    box-sizing: border-box !important;
}

/* Фикс: select сам по себе не центрируется — исправляем */
.filter-form select {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Вертикальный список полей в отчётах внутри раскрывающегося блока */
.report-settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Все поля идут вниз как список */
.report-settings label {
    font-weight: 600;
    margin-bottom: 4px;
}

.report-settings input {
    width: 260px;
    height: 38px;
}

/* Сдвигаем слова "Поиск" и "Статус" вправо + делаем жирными */
.filter-form label {
    display: inline-block;
    margin-left: 166px !important;    /* ближе к полю */
    margin-bottom: 4px !important;
    font-weight: 700 !important;     /* ← ЖИРНЫЕ */
    font-size: 14px !important;      /* чуть крупнее */
    color: #333;                      /* насыщеннее */
}

/* Размещаем кнопку Фильтровать на одном уровне с фильтрами */
.filter-form button {
    margin-top: 0px !important; /* поднимает кнопку вверх */
    height: 43px !important;     /* делаем такой же высоты, как поля */
    align-self: flex-end;        /* выравнивание справа */
}

/* Увеличение и утолщение пунктов навигации */
.nav-link {
    font-size: 16px !important;      /* было примерно 14px → делаем крупнее */
    font-weight: 600 !important;     /* полужирный */
    color: #2c2c2c !important;       /* чуть насыщеннее */
    padding: 4px 10px !important;    /* немного увеличиваем кликабельность */
}

/* Активный раздел — ещё выразительнее */
.nav-link.active {
    font-weight: 700 !important;
    color: #000 !important;
}
