/* Table Container */
.table-container {
    max-height: 80vh;
    overflow-y: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

/* Fixed Header */
thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

th {
    background-color: #ffffff;
    font-weight: 600;
    color: #1a1a1a;
    padding: 16px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Alternating row colors */
tr:nth-child(even) {
    background-color: #ffffff;
}

tr:nth-child(odd) {
    background-color: #fafafa;
}

/* Hover effect */
tbody tr:hover {
    background-color: #f5f7fa;
    transition: background-color 0.2s ease;
}

/* Highlight row with highest discretionary income */
tr.highlight {
    background-color: #fff8e6 !important;
    font-weight: 500;
}

/* Responsive table */
@media screen and (max-width: 600px) {
    .table-container {
        margin: 10px 0;
        border-radius: 6px;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    th, td {
        padding: 12px;
        font-size: 0.9rem;
    }
}
