/* 
 * MOBILE WORKER STYLES
 * Этот файл делает интерфейс сотрудника компактным, стильным и удобным на смартфонах,
 * не затрагивая десктопную версию.
 */

@media (max-width: 767.98px) {
    /* 1. Общее уменьшение шрифтов для компактности */
    body {
        font-size: 0.9rem;
    }

    /* 2. Уменьшение заголовков и иконок */
    h4, .h4 { font-size: 1.25rem !important; }
    h5, .h5 { font-size: 1.1rem !important; }
    .fs-1 { font-size: 2rem !important; }
    .fs-2 { font-size: 1.75rem !important; }
    .fs-3 { font-size: 1.5rem !important; }
    .fs-4 { font-size: 1.25rem !important; }
    .fs-5 { font-size: 1.1rem !important; }

    /* 3. Компактные карточки и отступы */
    .card {
        margin-bottom: 15px !important;
        border-radius: 12px !important;
    }
    .card-body {
        padding: 1.25rem !important;
    }
    
    /* 4. Компактные списки (расписание, статус) */
    .list-group-item {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    /* 5. Уменьшение кнопок и полей ввода */
    .btn-lg {
        padding: 0.6rem 1rem !important;
        font-size: 1rem !important;
    }
    .form-control-lg {
        font-size: 1.1rem !important;
        padding: 0.6rem 1rem !important;
    }

    /* 6. ПЕРЕРАБОТКА ПРОФИЛЯ (Из вертикального в горизонтальный) */
    .profile-card-body {
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
        padding: 1rem !important;
    }
    .profile-avatar {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 0 !important;
        margin-right: 1rem !important;
        border-width: 2px !important;
    }
    .profile-info-wrapper {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .profile-name {
        font-size: 1.1rem !important;
        margin-bottom: 0.1rem !important;
    }
    .profile-phone {
        font-size: 0.85rem !important;
        margin-bottom: 0.3rem !important;
    }
    .profile-badges {
        margin-bottom: 0 !important;
    }
    .profile-logout-btn {
        margin-top: 0 !important;
        padding: 0.3rem 0.8rem !important;
        font-size: 0.8rem !important;
        margin-left: auto;
    }

    /* 7. Компактное мобильное меню навигации */
    #mobileMenuDropdown {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
    }
    .dropdown-item {
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem !important;
    }
    
    /* 8. Компактный алерт баланса */
    .balance-alert {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 1rem !important;
    }
    .balance-alert .fs-2 {
        font-size: 1.8rem !important;
        margin-top: 0.5rem;
    }

    /* ИСПРАВЛЕНИЕ: Класс для "заморозки" мобильного меню при скролле */
    /* Применяется только на мобильных экранах */
    .mobile-sticky-container {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1020;
        background-color: #f4f6f9; /* Цвет фона страницы, чтобы контент не просвечивал */
        padding-top: 10px;
        padding-bottom: 10px;
        margin-top: -10px;
        margin-bottom: 10px !important;
    }
}