﻿/* Classwise Fee Management Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

    .filter-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 600;
    }

    .filter-group select {
        width: 100%;
        padding: 6px 10px;
        border-radius: 5px;
        border: 1px solid #ced4da;
    }

.btn-primary, .btn-success, .btn-danger {
    background-color: #2c5e2e;
    border-color: #2c5e2e;
    color: white;
    padding: 6px 16px;
    border-radius: 5px;
}

    .btn-primary:hover {
        background-color: #1e4620;
    }

.card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    padding: 20px;
    background: white;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

#detailsTable, #existingDataTable {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

    #detailsTable th, #detailsTable td,
    #existingDataTable th, #existingDataTable td {
        border: 1px solid #ddd;
        padding: 8px;
        vertical-align: middle;
    }

    #detailsTable th, #existingDataTable th {
        background-color: #2c5e2e;
        color: white;
    }

.action-icons {
    white-space: nowrap;
}

    .action-icons a, .action-icons button {
        background: none;
        border: none;
        font-size: 1.2rem;
        margin: 0 5px;
        cursor: pointer;
    }

.fa-edit {
    color: #2c5e2e;
}

.fa-trash-alt {
    color: #dc3545;
}

.dynamic-row-btn {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .filter-group {
        min-width: 100%;
    }
}
