@media screen and (min-width:901px) and (max-width:1360px) {
  
}

@media screen and (min-width:601px) and (max-width:900px) {
    .offer-group-item {
        padding-right:15px;
        padding-top:50px;
    }    
}


@media screen and (max-width:768px) {
/*    .title {
        font-size:48px;
    }*/
    .offer-group-item {
        padding-right:15px;
        padding-top:50px;
    }

    /* Модальное окно редактирования — на весь экран */
    #editModal .modal-dialog {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    #editModal .modal-content {
        border-radius: 0 !important;
        min-height: 100vh;
    }
    #editModal .modal-body {
        padding: 8px !important;
    }

    /* Модальное окно удаления — небольшое, по центру */
    #deleteModal .modal-dialog {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        width: calc(100% - 32px) !important;
        max-width: 360px !important;
    }
    #deleteModal .modal-content {
        border-radius: 6px !important;
    }

    /* Поля формы — без двух колонок */
    .form-group.row > label[class*="col-md"] {
        padding-bottom: 0;
        font-size: 12px;
        color: #888;
    }
    .modal-body .form-group.row {
        margin-bottom: 6px;
    }

    /* Контейнер страницы */
    .container {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    /* Кнопки управления в таблице */
    .table .btn-sm {
        padding: 6px 10px !important;
        font-size: 14px !important;
        margin-left: 8px !important;
    }
    .table .ui-switch {
        transform: scale(0.9);
        margin-right: 6px !important;
    }

    /* Галерея — 2 колонки на мобиле */
    #gallery-sortable {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Карточки — не вылезать за экран */
    .card, .card-body {
        overflow-x: hidden !important;
    }

    /* Фильтры — стопкой на мобиле (Bootstrap 3 col-sm не коллапсирует) */
    .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4,
    .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8,
    .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
        width: 100% !important;
        float: none !important;
        margin-bottom: 6px;
    }

    /* Таблица проектов — фиксированная раскладка */
    .table {
        table-layout: fixed !important;
        width: 100% !important;
    }
    .table td, .table th {
        padding: 6px 4px !important;
        font-size: 12px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    /* # */
    .table td:nth-child(1), .table th:nth-child(1) { width: 26px; }
    /* Тип */
    .table td:nth-child(2), .table th:nth-child(2) { width: 55px; }
    /* Название — остаток */
    .table td:nth-child(3), .table th:nth-child(3) { width: auto; }
    /* Владелец — скрыть */
    .table td:nth-child(4), .table th:nth-child(4) { display: none !important; }
    /* Управление */
    .table td:nth-child(5), .table th:nth-child(5) { width: 170px; overflow: visible; white-space: nowrap; }
}


