/* Responsive Table Styles for Mobile Devices */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        margin-left: 0 !important;
    }

    .table {
        font-size: 0.9rem;
    }

    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 1rem;
        background-color: #f8f9fa;
    }

    .table tbody td {
        display: block;
        text-align: right;
        padding: 0.5rem;
        border: none;
        position: relative;
        padding-left: 50%;
    }

    .table tbody td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.5rem;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.85rem;
        text-align: left;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    /* Filter forms */
    .row.mb-3 .col-md-6,
    .row.mb-3 .col-md-3,
    .row.mb-3 .col-md-4,
    .row.mb-3 .col-md-8,
    .row.mb-3 .col-md-12 {
        margin-bottom: 0.5rem;
    }

    /* Alert boxes */
    .alert {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}

@media (min-width: 769px) {
    .table tbody tr {
        display: table-row;
    }

    .table tbody td {
        display: table-cell;
        text-align: left;
        padding-left: 0.75rem;
    }

    .table tbody td::before {
        display: none;
    }

    .btn {
        width: auto;
        margin-bottom: 0;
    }
}
