

/*# sourceMappingURL=style.css.map */

}
#products-list {
    table-layout: fixed;
    width: 100%;
    font-size: 0.85rem;
}

#products-list th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

#products-list tbody tr:hover {
    background-color: #f5f5f5 !important;
}

#products-list td {
    vertical-align: middle;
}

/* Выделение выбранных строк */
#products-list tr.table-primary {
    background-color: #e7f1ff !important;
}

/* Стили для кнопок + и - */
#products-list .js-plus,
#products-list .js-minus {
    padding: 4px 10px;
    font-size: 0.75rem;
}

/* Поле ввода количества */
#products-list .js-count-value {
    font-size: 1rem !important;
    background-color: #fff !important;
}

/* Фиксация шапки таблицы при прокрутке */
#products-list thead {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
}

#products-list th:nth-child(1) { width: 10%; }  /* Артикул */
#products-list th:nth-child(2) { width: 50%; }  /* Наименование */
#products-list th:nth-child(3) { width: 10%; }  /* Цена */
#products-list th:nth-child(4) { width: 7%; }  /* Остаток */
#products-list th:nth-child(5) { width: 12%; }  /* Группа */
#products-list th:nth-child(6) { width: 15%; }  /* Заказ */

#products-list td:nth-child(2) {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

/* Колонка "Группа" (5-й столбец) - заголовок и ячейки */
#products-list th:nth-child(5),
#products-list td:nth-child(5) {

}

/* Если хотите, чтобы заголовок был чуть крупнее данных */
#products-list th:nth-child(5) {
    font-size: 1rem;
    font-weight: 600;
}

#products-list td:nth-child(5) {
    font-size: 0.65rem;
}

/* Стили для правой панели (форма заказа) */
.sticky-order-form {
    position: sticky;
    top: 20px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Кнопка отправки */
#b-main-order {
    font-size: 1rem;
    font-weight: 600;
    padding: 10px;
}

#filter-by-group {
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

#filter-by-group:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

/* Остаток меньше 5 - красный */
#products-list td:nth-child(4) {
    font-weight: 500;
}
#products-list tr[data-stock="1"] td:nth-child(4) { color: #dc3545; font-weight: bold; }
#products-list tr[data-stock="2"] td:nth-child(4) { color: #fd7e14; }
#products-list tr[data-stock="3"] td:nth-child(4) { color: #fd7e14; }

@media (max-width: 768px) {
    #products-list {
        font-size: 0.7rem;
    }
    #products-list th:nth-child(2) { width: 30%; }
    #products-list td:nth-child(2) { min-width: 120px; }
    
    .sticky-order-form {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
}

#sum_total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0d6efd;
    background-color: #e7f1ff;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}

/* Для блока итого */
h4.mt-3:contains("Итого") {
    font-size: 1.1rem;
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
}