/* CSS for hideable tables with checkbox controls */

/* Container for checkbox controls */
.table-controls {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.table-controls h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #495057;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #0d6efd;
}

.checkbox-item label {
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    user-select: none;
    transition: color 0.2s ease;
}

.checkbox-item label:hover {
    color: #212529;
}

.checkbox-item input[type="checkbox"]:checked + label {
    color: #0d6efd;
    font-weight: 500;
}

/* Style for hideable table sections */
.table-section {
    margin: 20px 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.table-section.hidden {
    display: none;
}

.table-section .rubric {
    margin-bottom: 10px;
    font-weight: bold;
    color: #212529;
    font-size: 1.2em;
}

.table-section .table {
    margin-bottom: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .checkbox-item {
        padding: 5px 0;
    }
}