/* Page layout */
.financial-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}
.table-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}
/* ============================================
   Modern Financial Table Styles
   Applies to all tables with .financial-table class
   ============================================ */

.financial-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Base cell styles - shared by all cells */
.financial-table th,
.financial-table td {
    padding: 6px 16px;
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
    font-size: 0.95em;
    vertical-align: top;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.15s ease;
}

/* Remove border from last row */
.financial-table tbody tr:last-child td {
    border-bottom: none;
}

/* Header row styling - plain and readable */
.financial-table tr:first-child td,
.financial-table thead th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95em;
    text-align: center;
    padding: 8px 16px;
    border-bottom: 2px solid #cbd5e1;
}

/* Data rows - alternating zebra striping for readability */
.financial-table tbody tr {
    background: white;
}

.financial-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

/* Subtle hover effect on data rows */
.financial-table tbody tr:hover {
    background: #f1f5f9;
}

/* Cell type classes - semantic styling */
.financial-table .hover-help-cell {
    text-align: center;
    width: 4px;
    min-width: 4px;
    padding-left: 0;
    padding-right: 0;
    color: transparent;
    cursor: default;
    transition: color 0.2s ease;
    position: relative;
}

.financial-popup-text {
    position: fixed;
    background: #1e293b;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: 350px;
    z-index: 10000;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.financial-popup-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.financial-popup-content {
    color: rgba(255, 255, 255, 0.9);
}

.financial-popup-text a {
    color: #93c5fd;
    text-decoration: underline;
}

.financial-popup-text a:hover {
    color: #dbeafe;
}

.financial-popup-text p {
    margin: 0 0 8px 0;
}

.financial-popup-text p:last-child {
    margin-bottom: 0;
}

.financial-popup-text strong,
.financial-popup-text b {
    font-weight: 600;
}

.financial-popup-text em,
.financial-popup-text i {
    font-style: italic;
}

.financial-table .label-cell {
    text-align: left;
    font-weight: 500;
    color: #1e293b;
    min-width: 200px;
    padding-left: 0;
}

.financial-table .ttm-cell,
.financial-table .numeric-cell {
    text-align: right;
    color: #334155;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

/* Date cells now use numeric-cell class and inherit TTM formatting */

/* Responsive adjustments */
@media (max-width: 768px) {
    .financial-table th,
    .financial-table td {
        padding: 10px 12px;
        font-size: 0.85em;
    }
    
    .financial-table .label-cell {
        min-width: 150px;
    }
}
.nav-links {
    text-align: center;
    margin-top: 30px;
}
.nav-links a {
    color: #667eea;
    text-decoration: none;
    margin: 0 15px;
}
.nav-links a:hover {
    text-decoration: underline;
}
/* Collapsible UI */
.collapsible-header { cursor: pointer; user-select: none; }
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.collapsible-section { padding: 12px; margin-bottom: 18px; }
/* show a preview on hover when closed */
.collapsible-section:not(.open):hover .collapsible-content { max-height: 320px; }
/* when opened, let JS set an exact height; provide a generous fallback */
.collapsible-section.open .collapsible-content { max-height: 2000px; overflow: visible; }
.paren-small { font-size: 0.85em; color: #666; }
.section-break {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2d3748;
    margin: 24px 0 12px;
    padding: 6px 10px 6px 12px;
    border-left: 6px solid #667eea;
    background: linear-gradient(90deg, rgba(102,126,234,0.12), rgba(102,126,234,0.04) 40%, rgba(0,0,0,0) 80%);
    border-radius: 4px;
}
/* Page header subtitle left align */
.page-header .section-break { text-align: left; margin-left: 0; margin-right: 0; }

/* Header layout (search on top-right) */
.page-header { position: relative; }
.symbol-search {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.symbol-input {
    height: 30px;
    padding: 0 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    outline: none;
    font-size: 13px;
    color: #2d3748;
    background: #fff;
}
.symbol-input:focus {
    border-color: #c3d0ff;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}
.symbol-button {
    height: 30px;
    padding: 0 10px;
    border: none;
    border-radius: 6px;
    background: #667eea;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.symbol-button:hover { background: #556eea; }

/* Hide debug block by default - only show when debug mode is enabled */
#sankey-debug-block {
    display: none;
}


