.workspace-limit {
    max-width: none !important;
}

.container-xl {
    max-width: none !important;
}

/* ── Мобильная адаптация ─────────────────────────────────────── */
@media (max-width: 768px) {

    /* Заголовок страницы */
    .layout-title h1 {
        font-size: 1.3rem;
    }
    .layout-title small {
        font-size: 0.78rem;
    }

    /* Таблицы — горизонтальный скролл + компактные ячейки */
    .table-responsive,
    .orchid-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table > :not(caption) > * > * {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    /* Длинный текст в «факте/сообщении» — оставляем перенос */
    .table td.col-wrap,
    .table td.col-text {
        white-space: normal;
        min-width: 140px;
        max-width: 260px;
        word-break: break-word;
    }

    /* Кнопки command bar — меньше отступы */
    .commandbar .btn,
    [data-controller="platform--action"] .btn {
        padding: 0.25rem 0.55rem;
        font-size: 0.8rem;
    }

    /* Карточки Orchid — меньше отступы */
    .card-body {
        padding: 0.75rem;
    }

    /* Фильтры над таблицей */
    .filter-form .form-control {
        font-size: 0.82rem;
    }

    /* Sidebar скрыт — убрать лишний margin */
    .wrapper .content-wrapper {
        margin-left: 0 !important;
    }
}

@media (max-width: 576px) {
    /* Заголовок страницы ещё компактнее */
    .layout-title h1 {
        font-size: 1.1rem;
    }

    /* Command bar — иконки без текста слишком мелкие, добавим отступ */
    .commandbar {
        gap: 4px;
    }
}
