/* AFX Reporting - Responsive Styles */

/* Mobile Navigation */
.mobile-menu-button {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: flex;
    }
    
    .desktop-nav-items {
        display: none;
    }
    
    .mobile-nav-items {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-nav-items {
        display: none;
    }
}

/* Responsive Tables */
@media (max-width: 1024px) {
    .responsive-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .responsive-table {
        display: block;
        width: 100%;
    }
}

/* Mobile Card Adjustments */
@media (max-width: 640px) {
    .stats-card {
        padding: 1rem;
    }
    
    .stats-card .text-3xl {
        font-size: 1.875rem;
    }
    
    .action-card {
        padding: 1rem;
    }
    
    .action-card svg {
        width: 2rem;
        height: 2rem;
    }
}

/* Mobile Form Adjustments */
@media (max-width: 640px) {
    .form-container {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
}

/* Mobile Table Cards (Alternative view for very small screens) */
@media (max-width: 640px) {
    .table-mobile-card {
        display: block;
        background: white;
        border-radius: 0.5rem;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .table-mobile-card-row {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .table-mobile-card-row:last-child {
        border-bottom: none;
    }
    
    .table-mobile-label {
        font-weight: 600;
        color: #6b7280;
        font-size: 0.875rem;
    }
    
    .table-mobile-value {
        color: #111827;
        font-size: 0.875rem;
        text-align: right;
    }
}

/* Utility Classes */
.hide-mobile {
    display: block;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .show-mobile {
        display: block !important;
    }
}

/* Smooth Transitions */
.nav-transition {
    transition: all 0.3s ease-in-out;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 50;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-menu-panel.active {
    right: 0;
}
