/* Finance Report Section - Optimized Structure */
.finance-report-section {
    margin: 20px 0;
    position: relative;
}

.finance-report-container {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    position: relative;
}

.finance-report-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: stretch;
}

/* Navigation Controls */
.finance-navigation-controls {
    display: flex;
    width: 385px;
    align-items: center;
    gap: 30px;
    align-self: flex-start;
    position: relative;
    margin-bottom: 20px;
}

.nav-control-btn {
    display: flex;
    padding: 15px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    border: 1px solid #9F9F9F;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-control-btn:hover:not(.disabled) {
    border-color: var(--primary-color);
    background: rgba(45, 19, 234, 0.05);
}

.nav-control-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #E0E0E0;
}

.nav-control-btn.disabled svg path {
    fill: #9F9F9F;
}

.nav-control-btn svg {
    width: 20px;
    height: 20px;
}

/* Content Area */
.finance-content-area {
    display: flex;
    align-items: flex-start;
    align-self: stretch;
    gap: 0;
}

/* Fixed Left Column (Desktop) */
.finance-reports-labels {
    flex: 0 0 auto;
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.reports-label-item {
    display: flex;
    padding: 22px 0;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #EBEBEB;
    min-height: 91px;
}

.report-category-title {
    color: var(--text-default-color);
    font-family: var(--font-type2);
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 34px;
    margin: 0;
}

/* Mobile Report Labels (Hidden on Desktop) */
.mobile-report-label {
    display: none;
}

/* Slider */
.finance-year-slider {
    flex: 1;
    overflow: hidden;
}

.year-slide-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: stretch;
}

/* Year Header */
.year-header {
    display: flex;
    width: 100%;
}

.year-header-item {
    display: flex;
    padding: 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 1 0 0;
    background: var(--primary-color);
    color: var(--white);
    font-family: var(--font-type2);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    text-align: center;
}

/* Reports Content */
.reports-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-self: stretch;
}

.report-row {
    display: flex;
    padding: 22px 0;
    align-items: center;
    align-self: stretch;
    border-bottom: 1px solid #EBEBEB;
    min-height: 91px;
}

.quarters-group {
    display: flex;
    padding: 12px;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex: 1 0 0;
    width: 310.68px;
    height: 45.792px;
    position: relative;
}

.quarter-item {
    width: 63px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 22.135px 22.135px 22.135px 7.609px;
    font-family: var(--font-type2);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-default-color);
    border: none;
    outline: none;
}

.quarter-item.available {
    background: rgba(255, 120, 0, 0.3);
}

.quarter-item.available:hover {
    background: rgba(255, 120, 0, 0.5);
    transform: translateY(-2px);
}

.quarter-item.disabled {
    background: rgba(29, 29, 29, 0.1);
    opacity: 0.4;
    cursor: not-allowed;
}

/* Slick Slider Overrides */
.finance-year-slider .slick-track {
    display: flex;
    align-items: stretch;
}

.finance-year-slider .slick-slide {
    float: none;
    display: flex;
    height: auto;
}

.finance-year-slider .slick-slide > div {
    width: 100%;
}

/* Hide default slick arrows */
.finance-year-slider .slick-prev,
.finance-year-slider .slick-next {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .finance-report-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .finance-navigation-controls {
        width: 300px;
        gap: 20px;
    }
    
    .report-category-title {
        font-size: 20px;
        line-height: 30px;
    }
    
    .quarters-group {
        width: 280px;
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .finance-content-area {
        display: block;
        gap: 20px;
    }
    
    .finance-navigation-controls {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 20px;
        justify-content: center;
        gap: 15px;
    }
    
    /* Hide desktop labels, show mobile labels */
    .finance-reports-labels .reports-label-item {
        display: none;
    }
    
    .mobile-report-label {
        display: flex;
        padding: 12px 0;
        align-items: center;
        gap: 10px;
        flex: 1 0 0;
        justify-content: center;
    }
    
    .report-row {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        padding: 15px 0;
    }
    
    .quarters-group {
        width: 100%;
        justify-content: center;
        min-width: 250px;
        gap: 12px;
    }
    
    .year-header-item {
        padding: 10px 8px;
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 768px) {
    .finance-navigation-controls {
        gap: 10px;
        max-width: 250px;
    }
    
    .nav-control-btn {
        padding: 12px;
    }
    
    .year-header-item {
        padding: 8px 6px;
        font-size: 14px;
        line-height: 20px;
    }
    
    .report-category-title {
        font-size: 18px;
        line-height: 26px;
    }
    
    .quarters-group {
        gap: 10px;
        min-width: 220px;
    }
    
    .quarter-item {
        width: 55px;
        height: 40px;
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 576px) {
    .finance-report-section {
        margin: 15px 0;
    }
    
    .finance-report-wrapper {
        gap: 15px;
    }
    
    .finance-navigation-controls {
        gap: 8px;
        max-width: 200px;
    }
    
    .nav-control-btn {
        padding: 10px;
    }
    
    .nav-control-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .year-header-item {
        padding: 6px 4px;
        font-size: 12px;
        line-height: 18px;
    }
    
    .report-category-title {
        font-size: 16px;
        line-height: 22px;
    }
    
    .quarters-group {
        gap: 8px;
        min-width: 200px;
    }
    
    .quarter-item {
        width: 45px;
        height: 35px;
        font-size: 14px;
        line-height: 20px;
        border-radius: 18px 18px 18px 6px;
    }
}

/* RTL Support */

[dir="rtl"] .finance-navigation-controls {
    /* flex-direction: row-reverse; 
    justify-content: flex-end;*/
}

[dir="rtl"] .quarter-item {
    border-radius: 22.135px 22.135px 7.609px 22.135px;
}

@media (max-width: 992px) {
    [dir="rtl"] .finance-content-area {
        flex-direction: column;
    }
    
    [dir="rtl"] .quarters-group {
        flex-direction: row;
    }
    [dir="rtl"] .finance-navigation-controls {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    [dir="rtl"] .quarter-item {
        border-radius: 18px 18px 6px 18px;
    }
}

/* Accessibility improvements */
.nav-control-btn:focus,
.quarter-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.quarter-item.available:focus {
    outline-color: var(--primary-gold);
}
[dir="rtl"] .nav-control-btn{ rotate: 180deg;}