/* ========================================
   RTI Page Styles
   W3C Validated - Replaces inline styles
   ======================================== */

/* Override Bootstrap table styles */
.documents-table.table {
    margin-bottom: 0 !important;
}

.documents-table.table td,
.documents-table.table th {
    border: 1px solid #dee2e6 !important;
    padding: 0.75rem !important;
}

/* Action cell styling */
.action-cell {
    text-align: center !important;
    vertical-align: middle !important;
    min-width: 120px !important;
    width: 120px !important;
    padding: 0.75rem !important;
}

.button-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
}

/* Compact buttons in RTI table */
.documents-table .btn-compact {
    margin-bottom: 0 !important;
    white-space: nowrap !important;
    width: 100% !important;
    max-width: 100px !important;
}

/* File info styling */
.file-info {
    font-size: 0.75rem !important;
    color: var(--text-muted, #6c757d) !important;
    text-align: center !important;
    line-height: 1.2 !important;
    margin-top: 0.25rem !important;
}

/* Table layout improvements */
.documents-table {
    table-layout: fixed !important;
    width: 100% !important;
    border-collapse: collapse !important;
}

.documents-table th:nth-child(1) { width: 25% !important; }
.documents-table th:nth-child(2) { width: 40% !important; }
.documents-table th:nth-child(3) { width: 20% !important; }
.documents-table th:nth-child(4) { width: 15% !important; }

/* Prevent text wrapping in table cells */
.documents-table td {
    vertical-align: top !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.documents-table .document-title,
.documents-table .document-desc {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Ensure proper spacing in document cells */
.document-thumb {
    float: left !important;
    margin-right: 10px !important;
    margin-top: 2px !important;
}

.document-title {
    font-weight: 600 !important;
    margin-bottom: 0.25rem !important;
}

.document-desc {
    color: var(--text-muted, #6c757d) !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

.document-date {
    font-weight: 500 !important;
    color: var(--text-muted, #6c757d) !important;
}

/* Sidebar Styling - Simple and Clean */
.rti-sidebar {
    margin-top: 1rem;
}

.sidebar-widget {
    background: var(--bg-light, #f8f9fa);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.sidebar-widget h3 {
    font-size: var(--text-lg, 1.125rem);
    font-weight: 600;
    color: var(--text-primary, #0c1016);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary, #FF6B35);
}

/* Link Groups */
.link-group {
    margin-bottom: 1rem;
}

.link-group:last-child {
    margin-bottom: 0;
}

.link-group h4 {
    font-size: var(--text-base, 1rem);
    font-weight: 600;
    color: var(--text-primary, #0c1016);
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--border-color, #dee2e6);
}

/* Simple Links List - No flicker, no animations */
.simple-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simple-links-list li {
    margin-bottom: 0.25rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.simple-links-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.simple-links-list a {
    color: var(--text-primary, #0c1016);
    text-decoration: none;
    font-size: var(--text-sm, 0.875rem);
    line-height: 1.3;
    display: block;
    padding: 0.125rem 0;
    transition: none;
}

.simple-links-list a:hover {
    color: var(--primary, #FF6B35);
    text-decoration: none;
    background: none;
    transform: none;
}

.simple-links-list a:focus {
    outline: 2px solid var(--primary, #FF6B35);
    outline-offset: 2px;
}

/* Contact info styling */
.simple-links-list li i {
    color: var(--primary, #FF6B35);
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

/* Coming soon styling */
.coming-soon {
    opacity: 0.7;
}

.coming-soon-text {
    color: var(--text-muted, #6c757d);
    font-style: italic;
    font-size: var(--text-sm, 0.875rem);
}

/* No results message */
.no-documents-found {
    display: none;
    text-align: center;
    padding: 2rem;
    color: #666;
}

.no-documents-found.show {
    display: block;
}

.no-documents-found i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

/* Document filtering */
.document-filters {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.document-filters select,
.document-filters input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.document-filters label {
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .document-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .document-filters select,
    .document-filters input {
        width: 100%;
    }
    
    .documents-table .btn-compact {
        font-size: 0.875rem !important;
        padding: 0.375rem 0.75rem !important;
    }
    
    .action-cell {
        min-width: 100px !important;
        width: 100px !important;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
}

/* Document list mobile card view */
@media (max-width: 575px) {
    .documents-table-container {
        overflow-x: visible;
    }
    
    .documents-table {
        min-width: 100%;
        display: block;
        table-layout: auto;
    }
    
    .documents-table thead {
        display: none;
    }
    
    .documents-table tbody {
        display: block;
    }
    
    .documents-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .documents-table td {
        display: block;
        padding: 10px 15px;
        position: relative;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    
    .documents-table td:last-child {
        border-bottom: none;
        text-align: center;
        width: 100%;
    }
    
    .action-cell {
        width: 100% !important;
        min-width: auto !important;
    }
    
    .button-container {
        width: 100%;
    }
    
    .document-thumb {
        float: left;
    }
    
    .documents-table .btn-compact {
        width: 100% !important;
        justify-content: center !important;
        max-width: none !important;
    }
    
    .file-info {
        text-align: center;
        margin-top: 0.5rem;
    }
}

/* RTI Returns specific styles */
.year-cell {
    vertical-align: middle;
    font-weight: bold;
}

.quarter-cell {
    text-align: center;
    font-weight: bold;
} 