/* Custom Document Library Styles */

/* Main container width matching Maserati page elements */
[id*="ccm-block-document-library-wrapper-"],
.ccm-block-document-library-table {
    width: calc(100% - 2rem);
    max-width: 1115px;
    margin: 0 auto 20px auto;
}

.ccm-block-document-library-table {
    border: 1px solid #dee2e6;
}

.ccm-block-document-library-table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    padding: 12px 8px;
    vertical-align: middle;
}

.ccm-block-document-library-table tbody td {
    padding: 12px 8px;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

/* Department Column */
.department-column, .download-column {
    width: 120px;
    text-align: center;
}

.department-cell {
    font-weight: 500;
    color: #666;
    text-align: center;
}

/* Download Column */
.download-cell {
    text-align: center;
}

.download-icon {
    color: #007bff;
    text-decoration: none;
    font-size: 18px;
    padding: 8px;
    display: inline-block;
    transition: color 0.2s ease;
}

.download-icon:hover {
    color: #0056b3;
    text-decoration: none;
}

.download-cell .fas {
    font-size: 16px;
}

/* File titles */
.ccm-block-document-library-table a[href*="/download_file/"] {
    color: #007bff;
    text-decoration: none;
}

.ccm-block-document-library-table a[href*="/download_file/"]:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .ccm-block-document-library-table {
        font-size: 0.9rem;
    }
    
    .department-column, .download-column {
        width: 80px;
    }
    
    .ccm-block-document-library-table thead th,
    .ccm-block-document-library-table tbody td {
        padding: 8px 4px;
    }
}

/* Search form styling */
.ccm-block-document-library .form-inline {
    margin-bottom: 20px;
}

.ccm-block-document-library .form-inline .form-group {
    margin-right: 15px;
}

/* Advanced search */
.ccm-block-document-library-advanced-search-fields {
    background-color: #f8f9fa;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-top: 10px;
    display: none;
}

.ccm-block-document-library-advanced-search-fields h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    margin-top: 15px;
}

.ccm-block-document-library-advanced-search-fields h4:first-child {
    margin-top: 0;
}

/* Breadcrumbs */
.ccm-block-document-library-breadcrumbs {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.ccm-block-document-library-breadcrumbs a {
    color: #007bff;
    text-decoration: none;
    margin: 0 5px;
}

.ccm-block-document-library-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Upload area */
.ccm-block-document-library-add-files-uploader {
    border: 2px dashed #dee2e6;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.ccm-block-document-library-add-files-uploader:hover {
    border-color: #007bff;
    background-color: #e7f1ff;
}

/* Pagination */
.ccm-pagination {
    margin-top: 20px;
}

/* Icon styling */
.ccm-block-document-library-icon-folder {
    color: #ffc107;
    margin-right: 5px;
}

.ccm-block-document-library-icon {
    color: #6c757d;
}

.ccm-block-document-library-icon:hover {
    color: #007bff;
} 