/* General Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

thead {
    background-color: #001F54;
    color: #fff;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

/* Responsive Table for Small Screens */
@media (max-width: 768px) {
    table {
        display: block;
        overflow: hidden;
    }

    thead {
        display: none;
    }

    tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        overflow: hidden;
    }

    td {
        display: block;
        text-align: left;
        padding: 10px;
        border: none;
        border-bottom: 1px solid #ddd;
        position: relative;
    }

    td:last-child {
        border-bottom: none;
    }

    td:before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: uppercase;
        display: block;
        margin-bottom: 5px;
        color: #333;
    }
}

/* Table Scroll for Extremely Small Screens */
@media (max-width: 480px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    tbody tr {
        display: inline-block;
        margin-bottom: 10px;
        width: 100%;
    }
}

/* Search Form Styles */
.transaction-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    background-color: #d0ebd1;
    padding: 15px;
    border-radius: 5px;
    color: rgb(77, 82, 97);
}

.transaction-search-form label {
    font-weight: bold;
    flex: 1 1 100%; /* Full width for smaller screens */
    color: rgb(22, 41, 29);
}

/* Adjusting fields to display two in a row */
.transaction-search-form input,
.transaction-search-form select,
.transaction-search-form button {
    flex: 1 1 calc(50% - 10px); /* Two fields in a row */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

/* Style the button */
.transaction-search-form button {
    background-color: #115f2a;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Hover state for the button */
.transaction-search-form button:hover {
    background-color: #2A9D8F;
}

/* Focus state for the input and select fields */
.transaction-search-form input:focus,
.transaction-search-form select:focus {
    border-color: #2A9D8F;
}

/* Responsive Search Form */
@media (max-width: 768px) {
    .transaction-search-form input,
    .transaction-search-form select,
    .transaction-search-form button {
        flex: 1 1 100%; /* Full width for smaller screens */
    }
}


/* Style for View Transaction Button */
.view-transaction-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #FFA500 !important;
    color: white !important;
    text-decoration: none;
    border-radius: 5px !important;
    font-size: 14px;
    transition: background-color 0.3s;
    text-align: center;
}

.view-transaction-btn:hover {
    background-color: #FFD700 !important;
}

.dt-buttons {
    display: inline-block !important;
    visibility: visible !important;
    margin-top: 10px;  /* Just to make sure there's space */
}

