/* Mobile Orders Page Fixes - Collapsible Filter */

/* Mobile only - Max-width 768px */
@media (max-width: 768px) {

    /* Remove gap above filters */
    .main-content {
        padding-top: 118px !important;
    }

    .orders-container {
        padding: 0 !important;
        margin: 0 !important;
    }

    .breadcrumbs {
        margin: 0 !important;
        padding: 12px 16px !important;
        background: white;
    }

    .breadcrumbs .container {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Mobile Filter Button */
    .mobile-orders-actions {
        display: flex;
        gap: 12px;
        padding: 10px 16px;
        background: white;
        border-bottom: 1px solid #e0e0e0;
        position: sticky;
        top: 118px;
        z-index: 100;
        margin-bottom: 12px;
    }

    .mobile-action-btn {
        flex: 1;
        padding: 10px 16px;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 2px;
        font-size: 14px;
        font-weight: 500;
        color: #212121;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.2s;
    }

    .mobile-action-btn:active {
        background: #f5f5f5;
    }

    .mobile-action-btn i {
        font-size: 14px;
    }

    /* Hide filter sidebar by default on mobile */
    .orders-filters-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 20002;
        background: #fff;
        padding: 0;
        margin: 0;
        overflow-y: auto;
        box-shadow: none;
    }

    /* When active (toggled via button) */
    .orders-filters-sidebar.active {
        display: block;
    }

    /* Mobile Filter Header (Back Button) */
    .mobile-filter-header {
        display: flex;
        align-items: center;
        padding: 15px;
        border-bottom: 1px solid #e0e0e0;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 10;
        gap: 15px;
    }

    .mobile-filter-back {
        background: none;
        border: none;
        font-size: 16px;
        color: #2874f0;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        padding: 0;
    }

    .mobile-filter-title {
        font-size: 17px;
        font-weight: 600;
        color: #212121;
    }

    /* Hide desktop-only filter title on mobile */
    .desktop-only {
        display: none !important;
    }

    /* Adjust filters card for mobile */
    .orders-filters-sidebar .filters-card {
        box-shadow: none;
        border-radius: 0;
        margin-bottom: 0;
    }

    /* Adjust orders content wrapper */
    .orders-content-wrapper {
        display: block;
        gap: 0;
    }
}

/* Desktop only - Hide mobile elements */
@media (min-width: 769px) {
    .mobile-orders-actions {
        display: none !important;
    }

    .mobile-filter-header {
        display: none !important;
    }

    .desktop-only {
        display: block !important;
    }
}