/* Responsive overrides - Desktop unchanged (container max-width handled by Bootstrap) */
    @media (max-width: 991.98px) and (min-width: 768px) {
        /* Tablet adjustments */
        .filter-form {
            flex-direction: column !important;
            gap: 1rem;
        }
        .filter-form .input-group,
        .filter-form .dropdown {
            width: 100% !important;
        }
        /* Hide Start Date and End Date on tablet */
        .tablet-hidden {
            display: none !important;
        }
        table thead th.tablet-hidden,
        table tbody td.tablet-hidden {
            display: none !important;
        }
        table td {
            padding: 10px;
            font-size: 0.9rem;
        }
    }

    @media (max-width: 767.98px) {
        /* Mobile adjustments */
        .cards-row .col-sm-6 {
            margin-bottom: 1rem;
        }
        .btn-create {
            width: 100%;
            margin-bottom: 1rem;
        }
        .filter-form {
            flex-direction: column !important;
            gap: 1rem;
        }
        .filter-form .input-group,
        .filter-form .dropdown {
            width: 100% !important;
        }
        /* Hide specified columns on mobile */
        .mobile-hidden {
            display: none !important;
        }
        table thead th.mobile-hidden,
        table tbody td.mobile-hidden {
            display: none !important;
        }
        table {
            font-size: 0.875rem;
        }
        table td {
            padding: 8px 4px;
        }
        .pagination {
            flex-wrap: wrap;
            justify-content: center;
        }
        /* Prevent iOS zoom on inputs */
        input[type="text"],
        select {
            font-size: 16px;
        }
    }

    @media (max-width: 576px) {
        .container {
            padding-left: 5px;
            padding-right: 5px;
        }
        table td {
            padding: 6px 2px;
        }
    }

    /* Ensure table responsive wrapper works */
    .table-responsive {
        border-radius: 0.375rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .select2-container .select2-selection--single {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
}
/* DOCX upload modal */
#uploadDocxModal .modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
}
#uploadDocxModal .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 .2rem rgba(0,123,255,.25);
}