@media (max-width: 767px) {
    .custom-responsive-grid thead {
        display: none; /* Скрываем заголовки и фильтры по умолчанию */
    }

    .custom-responsive-grid table,
    .custom-responsive-grid tbody,
    .custom-responsive-grid tr,
    .custom-responsive-grid td {
        display: block;
        width: 100% !important;
    }

    .custom-responsive-grid tr {
        margin-bottom: 20px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        background: #fff;
    }

    .custom-responsive-grid td {
        display: flex;
        flex-direction: column; /* Вертикальный стек: заголовок над текстом */
        align-items: flex-start;
        text-align: left;
        padding: 10px 15px !important;
        border: none;
        border-bottom: 1px solid #f4f4f4;
    }

    .custom-responsive-grid td:last-child {
        border-bottom: none;
    }

    /* Подставляем заголовок из data-label */
    .custom-responsive-grid td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        color: #999;
        margin-bottom: 4px;
    }

    /* Чтобы иконки действий стояли в ряд */
    .custom-responsive-grid td.action-column {
        flex-direction: row;
        gap: 15px;
    }
    .custom-responsive-grid td.action-column::before {
        width: 100%; /* Заголовок "Действия" на отдельной строке сверху */
        margin-bottom: 10px;
    }
}