/* На десктопе сохраняем поведение, которое раньше задавалось inline-стилем у .item-title */
.table-cards-mobile .item-title {
    min-width: 400px;
    margin-left: 70px;
}

@media (max-width: 767px) {
    html, body {
        overflow-x: hidden;
    }
    .table-responsive.table-cards-mobile {
        border: 0 !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        margin-bottom: 0;
        width: 100%;
    }
    .table-cards-mobile > .table {
        margin-bottom: 0;
        display: block;
        width: 100%;
    }
    .table-cards-mobile > .table > tbody {
        display: block;
        width: 100%;
    }
    .table-cards-mobile thead {
        display: none;
    }
    .table-cards-mobile tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background: #fff;
        padding: 8px 10px;
        width: 100%;
        box-sizing: border-box;
    }
    .table-cards-mobile tbody td {
        display: block;
        width: 100%;
        padding: 6px 0 !important;
        text-align: left !important;
        border: 0 !important;
        border-bottom: 1px solid #f5f5f5 !important;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .table-cards-mobile tbody tr td:last-child {
        border-bottom: 0 !important;
    }
    .table-cards-mobile tbody td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        color: #888;
        font-size: 0.85em;
        margin-bottom: 2px;
    }
    .table-cards-mobile tbody td.col-name {
        padding-bottom: 10px !important;
        overflow: hidden;
    }
    .table-cards-mobile .item-title {
        min-width: 0 !important;
        margin-left: 0 !important;
        word-break: break-word;
        overflow-wrap: break-word;
        clear: none;
        padding-top: 4px;
    }
    .table-cards-mobile tbody td.col-name img.pull-left {
        max-width: 48px !important;
        margin-right: 10px !important;
        margin-bottom: 4px;
    }
    .table-cards-mobile .price-range {
        display: inline-block;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    /* Поле "Интервал" (две даты): остаются в одну строку, но сжимаются по ширине */
    .interval-row {
        margin-left: -5px;
        margin-right: -5px;
    }
    .interval-row > [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }
    .interval-row input[type="date"] {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding-left: 6px;
        padding-right: 6px;
        font-size: 14px;
    }
}
