/* =============================================================
   MOBILE RESPONSIVE CSS - Оптимизация за мобилни устройства
   Всички стилове тук са само за мобилни (max-width: 768px)
   Не засягат desktop изгледа
   ============================================================= */

/* ---------------------------------------------------------------
   ГЛОБАЛНИ МОБИЛНИ НАСТРОЙКИ
--------------------------------------------------------------- */
@media (max-width: 768px) {

    /* Предотвратяване на хоризонтален скрол */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* ---------------------------------------------------------------
       НАВИГАЦИЯ / SIDEBAR
    --------------------------------------------------------------- */

    /* Бутон за мобилно меню */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 22px;
        flex-shrink: 0;
    }

    /* Sidebar - скрит по подразбиране на мобилни */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 280px;
        z-index: 1050;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease;
        box-shadow: 3px 0 15px rgba(0, 0, 0, 0.3);
    }

    .sidebar.mobile-open {
        transform: translateX(0) !important;
    }

    /* Overlay при отворен sidebar */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1049;
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.active {
        display: block;
    }

    /* Main content - цяла ширина */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw;
    }

    /* ---------------------------------------------------------------
       HEADER
    --------------------------------------------------------------- */
    .header {
        padding: 8px 12px;
        gap: 8px;
        position: sticky;
        top: 0;
        z-index: 200;
    }

    .header-left h1 {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }

    .header-right {
        gap: 8px;
    }

    /* 2FA бадж - скрий текста на малки екрани */
    .header-right .badge span {
        display: none;
    }

    .user-info > div > div {
        font-size: 13px;
        max-width: 90px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-info small {
        display: none;
    }

    /* User dropdown */
    .user-dropdown {
        right: 0;
        min-width: 180px;
    }

    /* ---------------------------------------------------------------
       CONTENT AREA
    --------------------------------------------------------------- */
    .content {
        padding: 10px;
    }

    /* ---------------------------------------------------------------
       PAGE HEADER (заглавен ред с бутон)
    --------------------------------------------------------------- */
    .page-header {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    .page-header h1 {
        font-size: 20px;
        margin: 0;
    }

    .page-header .btn {
        width: 100%;
        justify-content: center;
    }

    /* ---------------------------------------------------------------
       CARDS
    --------------------------------------------------------------- */
    .card {
        margin-bottom: 12px;
        padding: 12px;
        border-radius: 8px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .card-header .btn,
    .card-header button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .card-title {
        font-size: 17px;
    }

    /* ---------------------------------------------------------------
       БУТОНИ
    --------------------------------------------------------------- */
    .btn {
        padding: 9px 14px;
        font-size: 14px;
        touch-action: manipulation;
    }

    .btn-sm {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* ---------------------------------------------------------------
       ФОРМИ
    --------------------------------------------------------------- */
    .form-control,
    .form-select,
    select,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="date"],
    input[type="month"],
    textarea {
        font-size: 16px !important; /* предотвратява zoom на iOS */
        padding: 10px 12px;
        border-radius: 6px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .filters {
        flex-direction: column;
        gap: 10px;
    }

    .filter-group {
        width: 100%;
        min-width: unset;
    }

    /* ---------------------------------------------------------------
       ТАБЛИЦИ - адаптивни за мобилни
    --------------------------------------------------------------- */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 6px;
        margin: 0 -2px;
    }

    /* Card-style таблици за мобилни */
    .table-mobile-cards thead {
        display: none;
    }

    .table-mobile-cards tbody tr {
        display: block;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        margin-bottom: 10px;
        padding: 10px;
        background: white;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }

    .table-mobile-cards tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 5px 4px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        font-size: 13px;
        gap: 8px;
    }

    .table-mobile-cards tbody td:last-child {
        border-bottom: none;
        padding-top: 8px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .table-mobile-cards tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        min-width: 100px;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        flex-shrink: 0;
    }

    /* Стандартни таблици - скролируеми */
    .table th,
    .table td {
        padding: 8px 6px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* ---------------------------------------------------------------
       МОДАЛНИ ПРОЗОРЦИ
    --------------------------------------------------------------- */
    .modal-content {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        margin: 8px auto;
        border-radius: 10px;
        max-height: calc(100vh - 16px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal.show {
        align-items: flex-end;
        padding: 0;
    }

    .modal-content {
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 92vh;
        width: 100% !important;
        max-width: 100% !important;
        animation: slideUpModal 0.3s ease-out;
    }

    @keyframes slideUpModal {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 14px 16px;
    }

    .modal-header {
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        border-bottom: 1px solid var(--border-color);
    }

    .modal-footer {
        position: sticky;
        bottom: 0;
        background: white;
        z-index: 10;
        display: flex;
        gap: 8px;
    }

    .modal-footer .btn {
        flex: 1;
    }

    .modal-title {
        font-size: 17px;
    }

    /* Confirm modal */
    .confirm-modal.show {
        align-items: flex-end;
    }

    .confirm-modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        margin: 0;
    }

    /* ---------------------------------------------------------------
       =====================  КАЛЕНДАРИ =====================
       Критичната секция - перфектен изглед на всички календари
    --------------------------------------------------------------- */

    /* === ОСНОВНА CALENDAR GRID (schedule.php, office_schedule.php) === */
    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
        width: 100%;
        overflow: hidden;
    }

    .calendar-day-header {
        text-align: center;
        font-weight: 700;
        padding: 6px 1px;
        background: var(--primary-color);
        color: white;
        border-radius: 4px;
        font-size: 9px;
        letter-spacing: 0;
    }

    /* Клетка на ден в schedule.php (редактируем) */
    .calendar-day {
        min-height: 52px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        padding: 2px;
        cursor: pointer;
        background: white;
        box-sizing: border-box;
        overflow: hidden;
        transition: border-color 0.2s;
        position: relative;
    }

    .calendar-day:active {
        background: #f0f4ff;
        border-color: var(--primary-color);
    }

    .calendar-day-number {
        font-weight: 700;
        font-size: 10px;
        line-height: 1.2;
        padding: 1px 2px;
    }

    /* Служители вътре в клетката на деня */
    .calendar-employee {
        background: #5b9bd5;
        color: white;
        padding: 1px 3px;
        border-radius: 3px;
        font-size: 8px;
        margin-bottom: 1px;
        line-height: 1.3;
        overflow: hidden;
    }

    .employee-name {
        font-size: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .remove-employee {
        display: none; /* скрий X бутона в малките клетки - ще има отделен модал */
    }

    /* Vacation badge в клетка */
    .calendar-vacation {
        background: #ffc966;
        color: white;
        padding: 1px 3px;
        border-radius: 3px;
        font-size: 8px;
        margin-bottom: 1px;
        line-height: 1.3;
    }

    .vacation-name {
        font-size: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* === CALENDAR-DAY-VIEW (office_schedule.php, employee_schedule.php) === */
    .calendar-day-view {
        min-height: 70px;
        border: 1px solid #e0e0e0;
        padding: 3px 2px;
        background: white;
        box-sizing: border-box;
        overflow: hidden;
        position: relative;
    }

    .calendar-day-view.weekend {
        background: #fff5f5;
    }

    .calendar-day-view.has-shift {
        background: #f0f7ff;
        border-color: #bfdbfe;
    }

    .calendar-day-view .day-number {
        font-weight: 700;
        font-size: 10px;
        margin-bottom: 3px;
        line-height: 1.2;
    }

    .calendar-day-view.weekend .day-number {
        color: var(--danger-color);
    }

    /* Shift badge в calendar-day-view */
    .shift-badge {
        padding: 2px 4px;
        border-radius: 3px;
        font-size: 8px;
        font-weight: 600;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.3;
        margin-bottom: 2px;
        display: block;
    }

    .colleague-badge {
        padding: 2px 4px;
        background: #5b9bd5;
        color: white;
        border-radius: 3px;
        font-size: 7px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        margin-bottom: 1px;
    }

    /* Calendar header навигация */
    .calendar-header {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 10px;
        justify-content: space-between;
    }

    .calendar-header button,
    .calendar-header a {
        font-size: 12px;
        padding: 7px 10px;
        flex: 1;
        min-width: 0;
        text-align: center;
        white-space: nowrap;
    }

    /* === VACATION CALENDAR (vacations.php) === */
    .vacation-calendar {
        padding: 8px;
        border-radius: 6px;
    }

    .calendar-header-month {
        font-size: 16px;
        margin-bottom: 10px;
        font-weight: 700;
    }

    .vacation-calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 3px;
    }

    .calendar-day-name {
        font-size: 9px;
        padding: 5px 2px;
        text-align: center;
        font-weight: 700;
        border-radius: 3px;
    }

    .calendar-day-empty {
        padding: 4px;
    }

    .calendar-day-checkbox {
        padding: 0;
        border-radius: 4px;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .calendar-day-checkbox label {
        font-size: 12px;
        padding: 6px 2px;
        width: 100%;
        text-align: center;
    }

    /* Manual business trips calendar */
    #vacationCalendar .vacation-calendar-grid {
        gap: 3px;
    }

    /* ---------------------------------------------------------------
       SCHEDULE PAGE СПЕЦИФИЧНО
    --------------------------------------------------------------- */

    /* Toolbar */
    .schedule-toolbar {
        flex-direction: column;
        padding: 10px;
        gap: 8px;
        margin-bottom: 12px;
    }

    .toolbar-filters {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .toolbar-filters .form-control,
    .toolbar-filters select {
        width: 100%;
        min-width: unset !important;
    }

    .toolbar-title {
        font-size: 18px;
        font-weight: 700;
        text-align: center;
        order: -1;
        width: 100%;
        margin: 0;
    }

    #toggleSidebarBtn {
        display: none; /* desktop sidebar toggle не е нужен на mobile */
    }

    /* Schedule container - вертикален на mobile */
    .schedule-container {
        flex-direction: column;
        gap: 10px;
    }

    .calendar-wrapper {
        padding: 8px;
        max-height: none;
        overflow: visible;
        order: 1;
    }

    /* Employees sidebar - отива под календара */
    .employees-sidebar {
        width: 100%;
        min-width: unset;
        max-height: 250px;
        order: 2;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .employees-sidebar-header {
        padding: 10px;
        padding-right: 10px;
    }

    .employees-sidebar-header h3 {
        font-size: 13px;
    }

    .employees-sidebar-body {
        padding: 6px;
    }

    .employee-item {
        padding: 7px 8px;
        margin-bottom: 4px;
        font-size: 12px;
    }

    .employee-name {
        font-size: 13px;
    }

    .employee-shifts {
        font-size: 11px;
    }

    /* ---------------------------------------------------------------
       SCHEDULE VIEW PAGES (office_schedule.php, employee_schedule.php)
    --------------------------------------------------------------- */

    .schedule-view-header {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 12px;
    }

    .schedule-view-header h1 {
        font-size: 17px;
        margin: 0;
    }

    .schedule-view-header p {
        font-size: 13px;
        margin: 0;
    }

    .schedule-view-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
    }

    .schedule-view-actions .btn {
        font-size: 12px;
        padding: 8px 6px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .schedule-calendar-view {
        padding: 8px 4px;
    }

    /* Export header скрий при mobile (само за PNG) */
    .schedule-export-header {
        display: none;
    }

    /* ---------------------------------------------------------------
       EMPLOYEE SCHEDULE STATS
    --------------------------------------------------------------- */
    .legend-stats-inline {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
        align-items: flex-start;
    }

    .stat-item {
        font-size: 13px;
    }

    .stat-separator {
        display: none;
    }

    .schedule-legend {
        margin-top: 15px;
        padding-top: 15px;
    }

    /* ---------------------------------------------------------------
       DASHBOARD
    --------------------------------------------------------------- */

    /* Бързи действия - 2 колони на мобилни */
    .card > div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    /* Dashboard двуколонен grid -> едноколонен */
    div[style*="grid-template-columns: 2fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Списъчни редове в dashboard */
    div[style*="display: flex; justify-content: space-between; align-items: center; padding: 12px 20px"] {
        padding: 10px 12px !important;
    }

    /* ---------------------------------------------------------------
       REPORTS PAGE
    --------------------------------------------------------------- */

    /* Филтри формата */
    .card form,
    .card > div > form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* Справки - таблицата с данни */
    #reportResults table {
        font-size: 11px;
    }

    #reportResults table th,
    #reportResults table td {
        padding: 6px 4px;
        white-space: nowrap;
    }

    /* ---------------------------------------------------------------
       EMPLOYEES PAGE
    --------------------------------------------------------------- */

    /* Актион бутони в таблицата */
    .table .btn-sm {
        padding: 5px 7px;
        font-size: 11px;
    }

    /* Checkboxes в списъка с градове */
    .employee-checkbox-item {
        padding: 8px 10px;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .employee-checkbox-item label {
        gap: 8px;
    }

    .employee-checkbox-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .btn-remove-shift {
        width: auto !important;
        margin-top: 0 !important;
    }

    /* ---------------------------------------------------------------
       VACATIONS PAGE
    --------------------------------------------------------------- */

    /* Филтри */
    .card-header .filters {
        flex-direction: column;
        gap: 8px;
    }

    /* ---------------------------------------------------------------
       GRID / ROW СИСТЕМА
    --------------------------------------------------------------- */
    .row {
        margin: 0 -5px;
    }

    .col-md-6,
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 5px;
        margin-bottom: 10px;
    }

    /* ---------------------------------------------------------------
       LOGIN СТРАНИЦА
    --------------------------------------------------------------- */
    .login-box {
        padding: 24px 20px;
        border-radius: 10px;
    }

    .login-box h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    /* ---------------------------------------------------------------
       STATS GRID
    --------------------------------------------------------------- */
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }

    /* ---------------------------------------------------------------
       ALERTS
    --------------------------------------------------------------- */
    .alert {
        padding: 10px 14px;
        font-size: 13px;
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    /* ---------------------------------------------------------------
       BADGES
    --------------------------------------------------------------- */
    .badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    /* ---------------------------------------------------------------
       NAV TABS
    --------------------------------------------------------------- */
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 13px;
    }

    /* ---------------------------------------------------------------
       BUSINESS TRIPS / MANUAL TRIPS
    --------------------------------------------------------------- */

    /* Trips list cards */
    .trip-card,
    .trips-list-item {
        font-size: 13px;
    }

    /* ---------------------------------------------------------------
       SETTINGS PAGE (settings.php, system_settings.php)
    --------------------------------------------------------------- */
    .logo-preview {
        padding: 15px;
        min-height: 100px;
    }

    .logo-preview img {
        max-width: 200px;
        max-height: 80px;
    }

    /* Settings nav-tabs - скролируеми хоризонтално */
    .settings-page .nav-tabs,
    .system-settings-page .nav-tabs {
        padding: 0 8px;
        gap: 0;
    }

    .settings-page .nav-tabs .nav-link,
    .system-settings-page .nav-tabs .nav-link {
        padding: 10px 14px;
        font-size: 12px;
    }

    .settings-page .tab-content {
        padding: 16px;
    }

    /* ---------------------------------------------------------------
       PROFILE PAGE
    --------------------------------------------------------------- */

    /* Двуколонният grid в profile.php -> едноколонен */
    div[style*="grid-template-columns: 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Профил активност секция */
    div[style*="display: flex; align-items: center; gap: 20px"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    /* ---------------------------------------------------------------
       BUSINESS TRIPS REPORT (business_trips_report.php)
    --------------------------------------------------------------- */

    /* Summary cards - вертикален стак */
    .summary-cards {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .summary-card .value {
        font-size: 24px;
    }

    /* Filters layout */
    .filters-card .row {
        gap: 0;
    }

    .filters-card .col-md-4,
    .filters-card .col-md-3,
    .filters-card .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }

    /* Export button */
    .export-btn {
        margin-left: 0;
        width: 100%;
    }

    /* Card header flex -> column */
    .card-header.d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
    }

    /* ---------------------------------------------------------------
       BUSINESS TRIPS SETTINGS (business_trips.php)
    --------------------------------------------------------------- */

    .rate-row {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .currency-input-group {
        width: 100%;
        flex-wrap: wrap;
    }

    .rate-input {
        width: 100%;
        max-width: 120px;
    }

    /* From city select */
    #fromCitySelect {
        max-width: 100% !important;
    }

}

/* ---------------------------------------------------------------
   EXTRA SMALL (смартфони по-малки от 480px)
--------------------------------------------------------------- */
@media (max-width: 480px) {

    .header-left h1 {
        max-width: 110px;
        font-size: 14px;
    }

    .content {
        padding: 8px;
    }

    /* Календар - малки телефони */
    .calendar-day-header {
        font-size: 8px;
        padding: 4px 0;
    }

    .calendar-day {
        min-height: 44px;
        padding: 1px;
    }

    .calendar-day-number {
        font-size: 9px;
    }

    .calendar-employee,
    .calendar-vacation {
        font-size: 7px;
        padding: 1px 2px;
    }

    .employee-name {
        font-size: 7px;
    }

    .calendar-day-view {
        min-height: 58px;
        padding: 2px 1px;
    }

    .calendar-day-view .day-number {
        font-size: 9px;
    }

    .shift-badge {
        font-size: 7px;
        padding: 1px 3px;
    }

    .colleague-badge {
        font-size: 6px;
        padding: 1px 2px;
    }

    /* Vacation calendar - много малки */
    .calendar-day-checkbox {
        min-height: 32px;
    }

    .calendar-day-checkbox label {
        font-size: 11px;
        padding: 5px 1px;
    }

    .calendar-day-name {
        font-size: 8px;
    }

    /* Schedule view actions - 1 колона */
    .schedule-view-actions {
        grid-template-columns: 1fr;
    }

    /* Dashboard бързи действия - 1 колона */
    .card > div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    /* Stats grid - 1 колона */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .btn {
        font-size: 13px;
        padding: 8px 10px;
    }

    .card {
        padding: 10px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 12px;
    }

    .modal-title {
        font-size: 15px;
    }
}

/* ---------------------------------------------------------------
   LANDSCAPE ориентация на мобилни
--------------------------------------------------------------- */
@media (max-width: 768px) and (orientation: landscape) {

    .modal-content {
        max-height: 95vh;
        border-radius: 8px;
        margin: 8px auto;
        width: calc(100vw - 40px) !important;
        max-width: 600px !important;
    }

    .modal.show {
        align-items: center;
        padding: 8px;
    }

    .employees-sidebar {
        max-height: 180px;
    }

    .calendar-day {
        min-height: 40px;
    }

    .calendar-day-view {
        min-height: 55px;
    }
}

/* ---------------------------------------------------------------
   TOUCH FRIENDLY IMPROVEMENTS
   (валидни за всички мобилни, независимо от size)
--------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {

    /* По-големи touch targets */
    .menu-item {
        padding: 14px 20px;
        min-height: 48px;
    }

    .btn {
        min-height: 44px;
    }

    .btn-sm {
        min-height: 36px;
    }

    .dropdown-item {
        padding: 14px 16px;
        min-height: 48px;
    }

    /* Checkbox-ове по-добре кликаеми */
    .calendar-day-checkbox {
        min-height: 40px;
    }

    /* Клетки на календара по-лесни за tap */
    .calendar-day {
        cursor: pointer;
    }

    /* Scroll indicator за таблици */
    .table-responsive::after {
        content: '';
        display: block;
        height: 2px;
        background: linear-gradient(to right, transparent, var(--primary-color), transparent);
        opacity: 0.3;
        margin-top: 2px;
    }
}
