/* FY Financial Table - Public Styles */

.fy-financial-table-container {
    max-width: 100%;
    margin: 20px 0;
    font-family: Arial, sans-serif;
    background: white;
}

.fy-table-header {
    margin-bottom: 15px;
    text-align: left;
}

.fy-table-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: normal;
    color: #333;
    text-align: left;
}

.fy-table-wrapper {
    overflow-x: auto;
}

.fy-financial-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 800px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.fy-financial-table th,
.fy-financial-table td {
    padding: 12px 12px;
    text-align: right;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.4;
}

.fy-financial-table th {
    background: white;
    font-weight: normal;
    color: #333;
    text-align: center;
    padding: 12px 8px;
    border-bottom: 2px solid #e0e0e0;
}

.fy-financial-table .fy-metric-column {
    text-align: left;
    background: #e0eeff;
    font-weight: normal;
    min-width: 250px;
    padding-left: 16px;
    border-right: 2px solid #e0e0e0;
}

.fy-financial-table .fy-year-column {
    min-width: 90px;
    text-align: center;
    background: #e0eeff;
    font-weight: normal;
    padding: 8px 6px;
}

.fy-financial-table .fy-data-cell.fy-highlighted {
    background: #e0eeff;
    position: relative;
}

.fy-financial-table .fy-data-cell.fy-highlighted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.05);
    pointer-events: none;
}

.fy-financial-table .fy-year-column.fy-highlighted th,
.fy-financial-table .fy-year-column.fy-highlighted td {
    background: transparent;
    position: relative;
    z-index: 1;
}

.fy-currency-unit {
    font-size: 12px;
    font-weight: normal;
    color: #666;
    margin-top: 4px;
    display: block;
}

.fy-financial-table .fy-metric-name {
    text-align: left;
    font-weight: normal;
    background: white;
    padding-left: 16px;
    font-size: 14px;
    color: #333;
}

.fy-financial-table .fy-data-cell {
    text-align: center;
    font-family: Arial, sans-serif;
    font-weight: normal;
    font-size: 14px;
    color: #333;
    padding: 8px 12px;
    white-space: nowrap;
}

.fy-financial-table .fy-data-cell:not(:empty) {
    font-variant-numeric: tabular-nums;
}

/* Add percentage symbol for percentage values */
.fy-financial-table .fy-data-cell[data-type="percentage"]:not(:empty):after {
    content: '%';
}

.fy-financial-table .fy-section-header {
    background: #f8f9fa;
    border-top: 2px solid #e0e0e0;
}

.fy-financial-table .fy-section-title {
    text-align: left;
    font-weight: normal;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

/* Clean minimalist design - no hover effects or alternating colors */
.fy-financial-table tbody tr {
    background: white;
}

.fy-financial-table tbody tr .fy-metric-name {
    background: white;
}

/* Currency note */
.fy-currency-note {
    margin-top: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.fy-currency-note p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fy-financial-table {
        font-size: 12px;
    }
    
    .fy-financial-table th,
    .fy-financial-table td {
        padding: 10px 8px;
    }
    
    .fy-financial-table .fy-metric-column {
        min-width: 180px;
        padding-left: 12px;
    }
    
    .fy-financial-table .fy-year-column {
        min-width: 75px;
    }
    
    .fy-currency-unit {
        font-size: 10px;
    }
    
    .fy-table-header h3 {
        font-size: 13px;
    }
    
    .fy-financial-table .fy-metric-name {
        padding-left: 12px;
    }
}

@media (max-width: 480px) {
    .fy-financial-table {
        font-size: 11px;
    }
    
    .fy-financial-table th,
    .fy-financial-table td {
        padding: 6px 6px;
    }
    
    .fy-financial-table .fy-metric-column {
        min-width: 140px;
        padding-left: 8px;
    }
    
    .fy-financial-table .fy-year-column {
        min-width: 60px;
    }
    
    .fy-financial-table .fy-section-title {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .fy-financial-table .fy-metric-name {
        padding-left: 8px;
    }
}

/* Print Styles */
@media print {
    .fy-financial-table-container {
        margin: 0;
    }
    
    .fy-financial-table {
        border: 1px solid #000;
    }
    
    .fy-financial-table th,
    .fy-financial-table td {
        border: 1px solid #000;
        padding: 10px 6px;
    }
    
    .fy-financial-table .fy-section-header {
        background: #000 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .fy-financial-table th {
        background: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .fy-financial-table th,
    .fy-financial-table td {
        border: 2px solid #000;
    }
    
    .fy-financial-table .fy-section-header {
        background: #000;
        color: #fff;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .fy-financial-table-container {
        color: #e0e0e0;
    }
    
    .fy-financial-table {
        color: #e0e0e0;
    }
    
    .fy-financial-table th {
        background: #404040;
        color: #667085;
    }
    
    .fy-financial-table .fy-metric-name {
        background: #ffffff;
    }
    
    .fy-financial-table tbody tr:nth-child(even) {
        background: #ffffff;
    }
    
    .fy-financial-table tbody tr:nth-child(even) .fy-metric-name {
        background: #ffffff;
    }
    
    .fy-financial-table tbody tr:hover {
        background: #ffffff;
    }
    
    .fy-financial-table tbody tr:hover .fy-metric-name {
        background: #ffffff;
    }
    
    .fy-table-wrapper {
        border-color: #ffffff;
    }
}
