/* 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: 100%;
    padding: 16px 10px;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    position: relative;
    background-color: var(--primary-color);
}

.nav-control-btn {
    display: flex;
    width: 20px;
    height: 20px;
    padding: 0px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;

    svg {
        width: 100%;
        height: 100%;

        rect {
            stroke: var(--white);
            stroke-width: 2;
        }

        path {
            fill: var(--white);
        }
    }
}
.nav-control-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #E0E0E0;

    svg {
        rect {
            stroke: #E0E0E0;
        }

        path {
            fill: #9F9F9F;
        }
    }
}

/* 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 202px;
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.reports-label-item {
    display: flex;
    padding: 15px 10px;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 72px;
    background: var(--white);
}
.finance-reports-labels > div:nth-child(2) {
    min-height: 54px;
    padding: 10px;
}
.finance-reports-labels > div:nth-child(3) {
   border-top: 1px solid var(--background-light);
}

.report-category-title {
    color: var(--primary-color);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    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;
    align-self: stretch;
}

/* Year Header */
.year-header {
    display: flex;
    width: 100%;
}

.year-header-item {
    display: flex;
    padding: 18px 10px;
    justify-content: center;
    align-items: center;
    gap: 2px;
    flex: 1 0 0;
    color: var(--white);
    background-color: var(--primary-color);
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

/* Reports Content */
.reports-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-self: stretch;
    border-top: 1px solid var(--background-light);
    background: var(--white);
}
.year-slide-item:nth-child(odd) .reports-content {
    background: var(--background-light);
}
.report-row {
    display: flex;
    padding: 15px 10px;
    align-items: center;
    align-self: stretch;
    min-height: 72px;
}
.report-row:nth-child(1) {
    min-height: 54px;
    padding: 10px;
    background-color: var(--white);
    .quarter-item{
        color: var(--primary-color);
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 22px;
        height: 34px;
    }
}
.report-row:nth-child(2) {
   border-top: 1px solid var(--background-light);
}

.quarters-group {
    display: flex;
    padding: 0;
    justify-content: center;
    align-items: center;
    gap: 45px;
    flex: 1 0 0;
    min-width: 340px;
    position: relative;
}

.quarter-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
}


.quarter-item.disabled {
    svg{
        path{
            fill: rgba(76, 167, 171, 0.25);
        }
    }
    cursor: not-allowed;
}

.annual-report-btn {
    padding: 16px 56px;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    border-radius: 100px;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    text-align: center;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: auto;

    &:hover {
        background: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
        transform: translateY(-2px);
    }
}

/* 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;
}

/* Terms and condition starts  */
.terms-wrapper{
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: end;
    align-items: end;
    margin-top: 40px;
    border-top: 1px solid rgba(15, 63, 71, 0.45);
    padding-top: 20px;
}
/* Terms and condition ends  */


/* Responsive Design */
@media (max-width: 1700px) {
.quarters-group{
    min-width: 300px;
    gap: 30px;
}
}
@media (max-width: 1200px) {
    .finance-report-container {
        max-width: 100%;
        padding: 0 15px;
    }

    .finance-navigation-controls {
        gap: 20px;
    }

    .report-category-title {
        font-size: 20px;
        line-height: 30px;
    }


    .annual-report-btn {
        padding: 14px 48px;
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .finance-content-area {
        display: block;
        gap: 20px;
    }
    
    .finance-navigation-controls {
        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: 300px;
        gap: 25px;
    }

    .annual-report-btn {
        padding: 12px 40px;
        font-size: 16px;
    }

    .year-header-item {
        padding: 10px 8px;
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 768px) {
    .finance-navigation-controls {
        gap: 10px;
    }
    
    .year-header-item {
        padding: 8px 6px;
    }
    
    .report-category-title {
        font-size: 18px;
        line-height: 26px;
    }
    
    .quarters-group {
        gap: 20px;
        min-width: 280px;
    }

    .quarter-item {
        width: 32px;
        height: 32px;
        font-size: 16px;
        line-height: 24px;
    }

    .annual-report-btn {
        padding: 12px 36px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .finance-report-section {
        margin: 15px 0;
    }
    
    .finance-report-wrapper {
        gap: 15px;
    }
    
    .finance-navigation-controls {
        gap: 8px;
    }

   
    .year-header-item {
        padding: 6px 4px;
    }
    
    .report-category-title {
        font-size: 16px;
        line-height: 22px;
    }
    
    .quarters-group {
        gap: 15px;
        min-width: 250px;
    }

    .quarter-item {
        width: 30px;
        height: 30px;
        font-size: 14px;
        line-height: 20px;
    }

    .annual-report-btn {
        padding: 10px 30px;
        font-size: 14px;
    }
}

/* RTL Support */

[dir="rtl"]{
    .nav-control-btn {
        rotate: 180deg;
    }
}

@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;
    }
}

/* Accessibility improvements */
.nav-control-btn:focus,
.quarter-item:focus,
.annual-report-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.quarter-item.available:focus {
    outline-color: var(--secondary-color);
}
