/* Report Library Block Styles */

.report-library {
    padding: 0 0 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.report-library-container {
    display: flex;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Filter Sidebar */
.report-library-filters {
    flex: 0 0 200px;
    align-self: flex-start;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1.5rem;
}

.report-library-filters-toggle {
    display: none;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-direction: row;
}

.report-library-filters-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #333;
}

.report-library-filters-toggle .report-library-filters-title {
    margin: 0;
}

.report-library-filters-chevron {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('../../images/chevron-down.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
    flex-shrink: 0;
}

.report-library-filters.open .report-library-filters-toggle .report-library-filters-chevron {
    transform: rotate(180deg);
}

.report-library-filters-content {
    display: block;
}

.report-library-filter-group {
    margin-bottom: 2rem;
}

.report-library-filter-group:last-child {
    margin-bottom: 0;
}

.report-library-filter-group-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-library-filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.report-library-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: #333;
}

.report-library-filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.report-library-filter-checkbox span {
    user-select: none;
}

/* Content Area */
.report-library-content {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.report-library-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.report-library-table thead {
    border-bottom: 1px solid #e0e0e0;
}

.report-library-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #000;
}

.report-library-table th:nth-child(1) {
    width: 40%;
}

.report-library-table th:nth-child(2) {
    width: 20%;
}

.report-library-table th:nth-child(3) {
    width: 25%;
}

.report-library-table th:nth-child(4) {
    width: 15%;
}

.report-library-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.report-library-table tbody tr:last-child {
    border-bottom: none;
}

.report-library-table td {
    padding: 1rem;
    font-size: 0.9375rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-library-table td.report-library-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.report-library-table td.report-library-pdf {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.report-library-title a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.report-library-title a:hover {
    text-decoration: underline;
}

.report-library-date {
    color: #666;
}

.report-library-type {
    color: #666;
}

.report-library-pdf {
    text-align: right;
}

.report-library-pdf-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.875rem;
}

.report-library-pdf-link:hover {
    text-decoration: underline;
}

.report-library-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
    font-style: italic;
}

/* Hide rows when filtered */
.report-library-row[style*="display: none"] {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .report-library {
        padding: 40px 1rem;
    }
    
    .report-library-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .report-library-filters {
        flex: none;
        width: 100%;
        padding: 0;
    }
    
    .report-library-filters-toggle {
        display: flex;
        width: 100%;
        padding: 1.5rem;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .report-library-filters-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
        padding: 0 1.5rem;
    }
    
    .report-library-filters.open .report-library-filters-content {
        max-height: 5000px;
        padding: 1.5rem;
    }
    
    .report-library-content {
        overflow-x: auto;
    }
    
    .report-library-table {
        min-width: 600px;
    }
    
    .report-library-table th,
    .report-library-table td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

