/* Стили для мобильной версии страницы my_searches.html - mobile_my_searches.css */

@media (max-width: 768px) {
    /* Адаптация основного контейнера под высоту мобильных устройств */
    .content-wrapper {
        min-height: 100vh;
        height: 100vh;
        overflow-y: auto;
        padding-top: 0;
        display: flex;
        flex-direction: column;
    }
    
    /* Основные стили для мобильной версии */
    .container {
        padding: 10px !important;
        margin-top: 80px !important; /* Увеличенный отступ сверху чтобы контейнер не перекрывался мобильным хедером */
        flex: 1;
        overflow-y: auto;
    }
    
    .search-container {
        padding: 0 !important;
    }
    

    
    /* Адаптация header.html */
    .top-header {
        padding: 5px 0;
    }
    
    .logo {
        max-width: 120px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .user-menu-toggle {
        padding: 3px 8px !important;
        font-size: 12px !important;
    }
    
    .navbar-toggler {
        padding: 4px 8px;
    }
    
    .navbar-nav {
        margin-top: 5px;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    /* Удалены старые стили расширенного поиска - теперь используются стили из improved_advanced_search.css */
    
    .advanced-filters-panel {
        border-right: none;
        border-bottom: 1px solid #e0e4ec;
        padding: 10px;
        width: 100%;
    }
    
    /* Скрываем панель предпросмотра на мобильных устройствах */
    .preview-panel {
        display: none !important;
    }
    
    /* Добавляем кнопки управления в нижнюю часть секции фильтров */
    .advanced-filters-panel:after {
        content: "";
        display: block;
        height: 1px;
        margin: 15px 0;
        background-color: rgba(0, 0, 0, 0.05);
    }
    
    .advanced-filters-panel .mobile-controls {
        display: flex;
        justify-content: space-between;
        margin-top: 15px;
        gap: 10px;
    }
    
    .advanced-filters-panel .mobile-controls button {
        flex: 1;
        padding: 10px;
        font-size: 14px;
    }
    
    #mobile-advanced-search-submit {
        background-color: #4568dc;
        border-color: #4568dc;
    }
    
    #mobile-clear-button {
        background-color: #f8f9fa;
        border-color: #ddd;
        color: #555;
    }
    
    .preview-header h6 {
        font-size: 14px;
    }
    
    .preview-section {
        margin-bottom: 8px;
    }
    
    .preview-label {
        font-size: 12px;
    }
    
    .preview-value {
        font-size: 13px;
    }
    
    .preview-footer {
        padding: 10px;
    }
    
    .filter-group {
        margin-bottom: 12px;
    }
    
    .filter-group-header {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .filter-group-body {
        padding: 10px;
    }
    
    /* Улучшаем отображение фильтров */
    .filter-chips {
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-bottom: 10px;
        gap: 5px;
    }
    
    .filter-chip {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .filter-tag {
        font-size: 0.7rem;
        padding: 2px 6px;
        margin: 2px;
    }
    
    /* Адаптация модальных окон (modals.html) */
    .modal-dialog {
        margin: 10px;
        max-width: 95% !important;
    }
    
    .modal-header {
        padding: 10px 15px;
    }
    
    .modal-header .modal-title {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .modal-footer {
        padding: 10px 15px;
        gap: 8px;
    }
    
    .search-wrapper {
        margin-bottom: 10px;
    }
    
    .search-wrapper .input-group {
        height: 40px;
    }
    
    .filter-search {
        font-size: 14px;
        height: 40px;
    }
    
    .filter-items-container {
        max-height: 250px;
        padding: 5px;
    }
    
    .form-check {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    /* Улучшаем результаты поиска */
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 10px;
    }
    
    .results-header h4 {
        font-size: 18px;
        margin-bottom: 0;
    }
    
    #results-count {
        font-size: 14px;
    }
    
    .results-container {
        gap: 8px;
        margin-bottom: 0;
    }
    
    .tender-card {
        margin-bottom: 8px !important;
    }
    
    /* Мобильная адаптация карточек */
    .tender-header {
        padding: 4px 8px !important;
        min-height: 28px;
        font-size: 0.75rem;
    }
    
    /* Компактная структура для мобильных карточек */
    .tender-header .header-badges {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .tender-header .badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    .tender-content {
        padding: 8px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .tender-title {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .tender-title a {
        color: #007bff;
        text-decoration: none;
    }
    
    .tender-title a:hover {
        text-decoration: underline;
    }
    
    .tender-organization {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 0.8rem;
        color: #6c757d;
    }
    
    .tender-organization i {
        font-size: 0.75rem;
    }
    
    .tender-organization .fw-medium {
        font-weight: 500;
        color: #495057;
    }
    
    /* Компактные детали */
    .tender-details-compact {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .detail-row {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }
    
    .detail-item {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 0.75rem;
        flex: 1;
    }
    
    .detail-item i {
        font-size: 0.7rem;
        color: #6c757d;
        min-width: 12px;
    }
    
    .detail-item .detail-value {
        font-weight: 500;
        color: #495057;
    }
    
    .tender-region {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 0.75rem;
        color: #6c757d;
        margin-top: 4px;
    }
    
    .tender-region i {
        font-size: 0.7rem;
    }
    
    .tender-content {
        padding: 8px;
        gap: 12px;
        flex-direction: column;
    }
    
    .tender-main-info {
        flex: none;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 8px;
        margin-bottom: 8px;
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .tender-title {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .tender-organization {
        margin-top: 6px;
    }
    
    .tender-organization .text-muted {
        font-size: 0.7rem;
    }
    
    .tender-organization .fw-medium {
        font-size: 0.8rem;
    }
    
    .tender-details {
        flex: none;
        gap: 4px;
        width: 100%;
    }
    
    .tender-detail-item {
        gap: 4px;
        padding: 2px 0;
        min-height: 20px;
    }
    
    .tender-detail-item .detail-icon {
        font-size: 0.75rem;
        width: 12px;
    }
    
    .tender-detail-item .detail-label {
        font-size: 0.7rem;
        min-width: 50px;
    }
    
    .tender-detail-item .detail-value {
        font-size: 0.75rem;
    }
    
    .tender-header .badge {
        padding: 2px 4px;
        font-size: 0.65rem;
    }
    
    /* Мобильные стили для футера */
    .tender-footer {
        padding: 8px 12px;
        justify-content: flex-start;
    }
    
    .tender-region {
        font-size: 0.8rem;
    }
    
    .tender-actions {
        gap: 5px;
    }
    
    .tender-actions .btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    /* Изменяем отображение кнопок */
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* Кнопки прокрутки */
    .scroll-buttons {
        right: 10px;
        bottom: 60px;
    }
    
    .scroll-button {
        width: 36px;
        height: 36px;
    }
    
    /* Кнопка "Показать еще" */
    #load-more-btn {
        width: 100%;
        margin-top: 0;
        margin-bottom: 5px;
        padding: 12px;
        font-size: 16px;
        border-radius: 8px;
        background: linear-gradient(135deg, #4568dc, #b06ab3);
        border: none;
        color: white;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(69, 104, 220, 0.3);
    }
    
    #load-more-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(69, 104, 220, 0.4);
    }
    
    #load-more-btn:active {
        transform: translateY(0);
    }
    

    
    /* Избранное - модальное окно и содержимое */
    #favoritesModal .modal-xl {
        max-width: 100% !important;
        margin: 5px;
    }
    
    #favoritesModal .modal-content {
        height: auto;
        max-height: 90vh;
    }
    
    #favoritesModal .modal-body {
        padding: 10px;
        max-height: calc(90vh - 120px);
        overflow-y: auto;
    }
    
    #favorites-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    #favoritesModal .tender-card {
        margin-bottom: 8px !important;
    }
    
    #favoritesModal .tender-header {
        padding: 4px 8px !important;
        min-height: 28px;
        font-size: 0.75rem;
    }
    
    #favoritesModal .tender-content {
        padding: 8px;
        gap: 12px;
        flex-direction: column;
    }
    
    #favoritesModal .tender-main-info {
        flex: none;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 8px;
        margin-bottom: 8px;
        display: flex;
        flex-direction: column;
    }
    
    #favoritesModal .tender-title {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    #favoritesModal .tender-organization {
        margin-top: 6px;
    }
    
    #favoritesModal .tender-organization .text-muted {
        font-size: 0.7rem;
    }
    
    #favoritesModal .tender-organization .fw-medium {
        font-size: 0.8rem;
    }
    
    #favoritesModal .tender-details {
        flex: none;
        gap: 4px;
    }
    
    #favoritesModal .tender-detail-item {
        gap: 4px;
        padding: 2px 0;
        min-height: 20px;
    }
    
    #favoritesModal .tender-detail-item .detail-icon {
        font-size: 0.75rem;
        width: 12px;
    }
    
    #favoritesModal .tender-detail-item .detail-label {
        font-size: 0.7rem;
        min-width: 50px;
    }
    
    #favoritesModal .tender-detail-item .detail-value {
        font-size: 0.75rem;
    }
    
    #favoritesModal .tender-header .badge {
        padding: 2px 4px;
        font-size: 0.65rem;
    }
    
    /* Элементы формы поиска */
    .form-group {
        margin-bottom: 10px;
    }
    
    .form-control {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    #basic_keywords {
        font-size: 16px;
        min-height: 45px;
        overflow: hidden;
        resize: none;
    }
    
    /* Основные кнопки поиска - теперь обрабатываются через .action-buttons */
    .search-section .d-flex.justify-content-end {
        flex-wrap: nowrap;
        gap: 6px;
        justify-content: center;
        width: 100%;
    }
    
    /* Кнопка расширенного поиска в мобильной версии */
    #advanced-search-button {
        background-color: transparent !important;
        border: none !important;
        color: transparent !important;
    }
    
    #advanced-search-button .search-icon {
        font-size: 20px;
        color: #007bff !important;
    }
    
    #advanced-search-button.active {
        background-color: transparent !important;
        border: none !important;
        color: transparent !important;
    }
    
    #advanced-search-button .advanced-text {
        display: none;
    }
    
    /* Стили для кнопки выбора ключевых слов */
    #keywords-selector-btn {
        background-color: transparent !important;
        border: none !important;
        color: transparent !important;
        box-shadow: none !important;
    }
    
    #keywords-selector-btn .fas.fa-key {
        font-size: 20px;
        color: #FFD700 !important;
    }
    
    #keywords-selector-btn:hover {
        background-color: transparent !important;
        border: none !important;
        color: transparent !important;
        box-shadow: none !important;
    }
    
    /* Стили для кастомных кнопок в мобильной версии */
    .custom-buttons-container {
        flex-direction: row !important;
        gap: 8px !important;
        justify-content: flex-end !important;
        width: 100% !important;
    }
    
    .custom-search-btn,
    .custom-save-btn {
        width: auto !important;
        min-width: auto !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        gap: 5px !important;
    }
    
    .custom-search-btn i,
    .custom-save-btn i {
        font-size: 12px !important;
    }
    
    .custom-search-btn .button-text,
    .custom-save-btn .button-text {
        font-size: 12px !important;
        display: inline !important;
    }
    
    /* Показываем названия кнопок в мобильной версии */
    #search-button .button-text,
    #save-search-button .button-text {
        display: inline !important;
        font-size: 12px !important;
    }
    
    /* Стили для блока кнопок действий */
    .action-buttons {
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 6px !important;
        width: 100% !important;
    }
    
    .action-buttons .btn-icon {
        flex: 1 !important;
        min-width: 0 !important;
        height: 40px !important;
        font-size: 12px !important;
        padding: 6px 4px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .action-buttons .btn-icon i {
        font-size: 14px !important;
    }
    
    .action-buttons .button-text {
        display: none !important;
    }
    
    /* Скрываем только текст кнопки расширенного поиска в мобильной версии */
    #advanced-search-button .button-text {
        display: none !important;
    }
    
    /* Стили для панели действий с результатами */
    .search-actions {
        padding: 8px !important;
    }
    
    .search-actions .d-flex {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    /* Адаптивные размеры кнопок действий в мобильной версии */
    .search-actions .btn {
        flex: 1 !important;
        height: 40px !important;
        font-size: 12px !important;
        padding: 8px 4px !important;
        min-width: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .search-actions .btn i {
        font-size: 14px !important;
    }
    
    /* Скрыть текст "Действия с результатами" в мобильной версии */
    .search-actions .text-muted {
        display: none !important;
    }
    
    /* Отступы для label элементов */
    label {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    /* Улучшение отображения пустого состояния */
    .empty-state {
        padding: 20px 10px;
    }
    
    .empty-state i {
        font-size: 36px;
    }
    
    .empty-state p {
        font-size: 14px;
    }
    
    /* Стили для плавающих полей формы */
    .form-floating > .form-control {
        height: 45px;
        padding-top: 20px;
        font-size: 14px;
    }
    
    .form-floating > label {
        padding: 0.5rem 0.75rem;
        font-size: 13px;
    }
    
    /* Компактная строка с датами */
    .dates-row .col-md-4 {
        margin-bottom: 5px;
    }
    
    /* Улучшение отзывчивости в дополнительных фильтрах */
    .row.g-2 {
        margin-bottom: 0;
    }
    
    .row.g-2 .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 8px;
    }
    
    /* Мобильные стили для переключателя */
    .param-item .form-check.form-switch,
    .param-item .form-check.form-switch *,
    .param-item .form-check.form-switch .form-check-input,
    .param-item .form-check.form-switch .form-check-label,
    .status-control,
    .status-widget,
    .status-label,
    .status-flash {
        display: none !important;
    }

	/* Увеличенные кнопки в блоке custom-buttons-container */
	.custom-buttons-container {
		display: flex;
		gap: 12px;
		margin-top: 12px;
	}
	.custom-buttons-container .custom-search-btn,
	.custom-buttons-container .custom-save-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		padding: 16px 18px; /* примерно x2 от типичных 8-10px */
		font-size: 1.25rem; /* увеличить текст */
		border-radius: 10px;
		border: 1px solid transparent;
	}
	.custom-buttons-container .custom-search-btn i,
	.custom-buttons-container .custom-save-btn i {
		font-size: 1.25rem;
		margin-right: 8px;
	}
	/* Легкий синий фон для Поиск */
	.custom-buttons-container .custom-search-btn {
		background-color: rgba(30, 144, 255, 0.12); /* DodgerBlue с легкой прозрачностью */
		border-color: rgba(30, 144, 255, 0.25);
		color: #0b5ed7; /* акцентный синий, читаемый на светлом фоне */
	}
	.custom-buttons-container .custom-search-btn:active { filter: brightness(0.95); }
	
	/* Легкий зеленый фон для Сохранить */
	.custom-buttons-container .custom-save-btn {
		background-color: rgba(40, 167, 69, 0.12); /* Bootstrap success green с легкой прозрачностью */
		border-color: rgba(40, 167, 69, 0.25);
		color: #198754; /* акцентный зеленый */
	}
	.custom-buttons-container .custom-save-btn:active { filter: brightness(0.95); }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    /* Адаптация основного контейнера для очень маленьких экранов */
    .content-wrapper {
        min-height: 100vh;
        height: 100vh;
        overflow-y: auto;
        padding-top: 0;
        display: flex;
        flex-direction: column;
    }
    
    .container {
        padding: 5px !important;
        margin-top: 70px !important; /* Увеличенный отступ для очень маленьких экранов */
        flex: 1;
        overflow-y: auto;
    }
    
    /* Кастомные кнопки для очень маленьких экранов */
    .custom-buttons-container {
        gap: 6px !important;
    }
    
    .custom-search-btn,
    .custom-save-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
        gap: 4px !important;
    }
    
    .custom-search-btn i,
    .custom-save-btn i {
        font-size: 11px !important;
    }
    
    .custom-search-btn .button-text,
    .custom-save-btn .button-text {
        font-size: 11px !important;
    }
    
    /* Показываем названия кнопок на очень маленьких экранах */
    #search-button .button-text,
    #save-search-button .button-text {
        display: inline !important;
        font-size: 11px !important;
    }
    
    .logo {
        max-width: 100px;
    }
    
    .user-menu-toggle {
        padding: 2px 6px !important;
        font-size: 11px !important;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .tender-card {
        margin-bottom: 6px !important;
    }
    
    .tender-header {
        padding: 3px 6px !important;
        min-height: 24px;
        font-size: 0.7rem;
    }
    
    /* Компактная структура для очень маленьких экранов */
    .tender-header .header-badges {
        gap: 3px;
    }
    
    .tender-header .badge {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
    
    .tender-content {
        padding: 6px;
        gap: 6px;
    }
    
    .tender-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .tender-organization {
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .tender-organization i {
        font-size: 0.7rem;
    }
    
    .detail-row {
        gap: 8px;
    }
    
    .detail-item {
        font-size: 0.7rem;
        gap: 3px;
    }
    
    .detail-item i {
        font-size: 0.65rem;
        min-width: 10px;
    }
    
    .tender-region {
        font-size: 0.7rem;
        gap: 4px;
        margin-top: 3px;
    }
    
    .tender-region i {
        font-size: 0.65rem;
    }
    
    .tender-content {
        padding: 6px;
        gap: 8px;
    }
    
    .tender-main-info {
        padding-bottom: 6px;
        margin-bottom: 6px;
        display: flex;
        flex-direction: column;
    }
    
    .tender-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    
    .tender-organization {
        margin-top: 4px;
    }
    
    .tender-organization .text-muted {
        font-size: 0.65rem;
    }
    
    .tender-organization .fw-medium {
        font-size: 0.75rem;
    }
    
    .tender-detail-item {
        gap: 3px;
        padding: 1px 0;
        min-height: 18px;
    }
    
    .tender-detail-item .detail-icon {
        font-size: 0.7rem;
        width: 10px;
    }
    
    .tender-detail-item .detail-label {
        font-size: 0.65rem;
        min-width: 45px;
    }
    
    .tender-detail-item .detail-value {
        font-size: 0.7rem;
    }
    
    .tender-header .badge {
        padding: 1px 3px;
        font-size: 0.6rem;
    }
    
    /* Стили футера для очень маленьких экранов */
    .tender-footer {
        padding: 6px 8px;
        justify-content: flex-start;
    }
    
    .tender-region {
        font-size: 0.75rem;
    }
    
    .tender-actions {
        gap: 3px;
    }
    
    .tender-actions .btn {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    
    /* Уменьшаем размер заголовков в модальных окнах */
    .modal-header .modal-title {
        font-size: 15px;
    }
    
    /* Уменьшаем высоту контейнеров фильтров */
    .filter-items-container {
        max-height: 200px;
    }
    
    /* Кнопка "Показать еще" более компактная */
    #load-more-btn {
        font-size: 13px;
        padding: 8px;
        max-width: 250px;
        display: block !important;
        margin-top: 0;
        margin-bottom: 5px;
    }
}

/* Мобильные стили для компактного расширенного поиска */
@media (max-width: 767px) {
    .advanced-search-section {
        margin: 10px 0;
        border-radius: 8px;
    }
    
    .advanced-search-header {
        padding: 10px 12px;
    }
    
    .advanced-search-header h4 {
        font-size: 14px;
    }
    
    .advanced-search-body {
        display: block;
        padding: 10px;
    }
    
    .advanced-filters-panel {
        gap: 10px;
        margin-bottom: 10px;
    }
    
    /* Адаптация новых полей ввода */
    .search-inputs {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px;
    }
    
    .field-label {
        font-size: 11px;
        margin-bottom: 3px;
    }
    
    .input-field {
        margin-bottom: 6px;
    }
    
    .input-field .form-control {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .input-field textarea.form-control {
        min-height: 36px;
        height: 36px;
    }
    
    /* Компактные фильтры */
    .filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 8px;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .filter-chips::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .filter-chip {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 11px;
        padding: 5px 8px;
    }
    
    /* Компактные параметры */
    .params-row {
        flex-direction: column;
        gap: 6px;
        padding: 8px;
    }
    
    .param-item {
        width: 100%;
    }
    
    /* Предпросмотр */
    .preview-panel {
        margin-bottom: 10px;
    }
    
    .preview-row {
        flex-direction: column;
        gap: 6px;
    }
    
    /* Кнопки */
    .advanced-search-footer {
        padding: 10px;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .advanced-search-footer .btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
        white-space: nowrap;
    }
    
    /* Адаптация полей параметров для мобильной версии */
    .param-control {
        height: 36px;
    }
    
    .param-control .form-control {
        height: 36px;
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .param-icon {
        padding: 0 8px;
        font-size: 11px;
    }
    
    .status-control {
        padding: 0 8px 0 6px;
        height: 36px;
    }
    
    .param-item .form-check-input {
        height: 20px;
        width: 40px;
    }
    
    .form-check-label-wrapper {
        margin-right: 8px;
    }
    
    .param-item .form-check-label {
        font-size: 12px;
    }
    
    /* Улучшение адаптивности сетки параметров */
    .params-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }
    
    /* Улучшенные стили для тегов фильтров */
    .filter-tag {
        padding: 2px 6px;
        font-size: 10px;
        margin-right: 3px;
        margin-bottom: 3px;
    }
    
    .filter-tag i {
        font-size: 9px;
    }
    
    /* Адаптация активных состояний */
    .active-icon {
        background-color: rgba(69, 104, 220, 0.1) !important;
    }
    
    .status-control.active-status {
        background-color: rgba(69, 104, 220, 0.08);
    }
    
    /* Улучшение отображения предпросмотра на мобильных */
    .preview-value.has-value {
        font-size: 11px;
    }
    
    /* Стили для панели аналитики */
    .analytics-panel {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 15px;
        margin: 15px 0;
        border: 1px solid #e9ecef;
    }
    
    .analytics-panel h6 {
        color: #495057;
        font-weight: 600;
        margin-bottom: 15px;
        font-size: 14px;
    }
    
    .analytics-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .stat-item {
        background: white;
        padding: 10px;
        border-radius: 6px;
        text-align: center;
        border: 1px solid #dee2e6;
    }
    
    .stat-value {
        font-size: 18px;
        font-weight: 700;
        color: #007bff;
        margin-bottom: 5px;
    }
    
    .stat-label {
        font-size: 11px;
        color: #6c757d;
        line-height: 1.2;
    }
    
    .analytics-section {
        margin-bottom: 20px;
    }
    
    .analytics-section:last-child {
        margin-bottom: 0;
    }
    
    .analytics-section h6 {
        font-size: 13px;
        margin-bottom: 10px;
        color: #495057;
    }
    
    .analytics-table {
        background: white;
        border-radius: 6px;
        padding: 10px;
        border: 1px solid #dee2e6;
        font-size: 12px;
    }
    
    .analytics-table table {
        width: 100%;
        font-size: 11px;
    }
    
    .analytics-table th {
        background: #f8f9fa;
        padding: 6px;
        font-weight: 600;
        font-size: 10px;
    }
    
    .analytics-table td {
        padding: 4px 6px;
        border-bottom: 1px solid #f1f3f4;
        font-size: 10px;
    }
    
    .analytics-table tr:hover {
        background: #f8f9fa;
    }
    
    .keywords-cloud {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        padding: 10px;
    }
    
    .keyword-tag {
        background: #e3f2fd;
        color: #1976d2;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 10px;
        border: 1px solid #bbdefb;
    }
}

/* Ориентация смартфона - альбомная */
@media (max-width: 767px) and (orientation: landscape) {
    /* Адаптация основного контейнера для ландшафтной ориентации */
    .content-wrapper {
        min-height: 100vh;
        height: 100vh;
        overflow-y: auto;
        padding-top: 0;
        display: flex;
        flex-direction: column;
    }
    
    .container {
        flex: 1;
        overflow-y: auto;
        margin-top: 60px !important; /* Уменьшенный отступ для ландшафтной ориентации */
    }
    
    .search-inputs {
        grid-template-columns: 1fr 1fr;
    }
    
    .params-row {
        flex-direction: row;
    }
    
    .preview-row {
        flex-direction: row;
    }
    
    /* Адаптация полей ввода в альбомной ориентации */
    .search-inputs {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Адаптация полей параметров для альбомной ориентации */
    .params-row {
        grid-template-columns: 1fr 1fr;
    }
} 