/* ============================================
   Стили только для десктопной версии
   Подключается с media="(min-width: 768px)"
   ============================================ */

/* Десктоп: контейнер и основной контент на всю ширину (как раньше) */
.container-fluid:has(> .row.g-0) {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.container-fluid:has(> .row.g-0) > .row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

#mainContent.main-content {
    flex: 1 1 0%;
    min-width: 0;
    max-width: none;
    width: 100%;
}

.sidebar-hidden #mainContent.main-content {
    flex: 1 1 0% !important;
    max-width: none !important;
}

/* Сводка результатов — в ряд */
.results-summary-mobile-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.results-summary-info {
    flex: 0 0 auto;
}

.results-summary-controls {
    flex: 0 0 auto;
    justify-content: flex-end;
}

/* Заголовок страницы — в ряд */
.page-header-mobile-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.page-header-title {
    display: flex;
    align-items: center;
}

.page-header-title h1 {
    margin-bottom: 0;
}

.page-header-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
    align-items: flex-end;
}

/* Утилиты: показывать на десктопе то, что скрыто на мобильных */
.mobile-hide {
    display: block !important;
}

.desktop-hide {
    display: none !important;
}

/* Утилиты: отмена мобильной ширины на десктопе */
.mobile-w-100 {
    width: auto !important;
}

/* Утилиты: элементы в ряд на десктопе */
.mobile-stack {
    flex-direction: row;
    align-items: center;
}
