
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
    background: #F6F6F6;
}

#chart_description{
    text-align: center;
}


@media (min-width: 1025px) {
    html, body {
        overflow: hidden !important; 
        height: 100vh;
    }

    .container {
        height: calc(100vh - 60px); 
        overflow: hidden;
    }

    .main {
        overflow-y: auto !important; 
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }


}


@media (max-width: 1024px) {
    html, body {
        overflow-y: auto !important;
        overflow-x: hidden;
        height: auto;
    }
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #6d6d6d;
    min-height: 100vh;
}






.navbar-logo {
    height: 50px;
    display: flex;
    align-items: center;
}

.navbar-logo svg {
    height: 40px;
    width: auto;
}

.navbar {
    background: #F6F6F6;
    height: 50px;
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100% !important;
    border-bottom: 1px solid #d6d6d6;
    z-index: 1000;
    padding-top: 0px;
}

.navbar-content {
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-links{
    font-size: 14px;
    margin-left: 40px;
}
.nav-link {
    margin-left: 20px;
    color: #6d6d6d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover { 
    color: #4d4d4d;
    text-decoration: underline;
}


@media (max-width: 1024px) {
    .navbar-links {
        display: none !important;
    }

}








@media (min-width: 1025px) {
    .navbar-links-desktop { display: flex; gap: 30px; align-items: center; margin-left: auto; margin-right: 30px; }
    .mobile-menu-right { display: none; }
}


@media (max-width: 1024px) {
    .navbar-links-desktop { display: none; }

    .navbar-content {
        justify-content: space-between; 
    }

    .mobile-menu-right {
        display: flex;
        align-items: center;
        position: relative;
    }

    .dropdown-toggle {
        background: none;
        border: none;
        font-size: 18px;
        font-weight: 500;
        color: #4d4d4d;
        cursor: pointer;
        padding: 8px 12px;
    }

    .mobile-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        background: #F6F6F6;
        border: 1px solid #d6d6d6;
        min-width: auto;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 9999;
        
        
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
    }
    
    
    .mobile-dropdown.open {
        max-height: 300px;     
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-dropdown a {
        display: block;
        padding: 12px 20px;
        color: #4d4d4d;
        text-decoration: none;
        font-size: 15px;
    }

    .mobile-dropdown a:hover {
        background: #e0e0e0;
    }
}













.container {
    display: flex;
    margin-top: 40px;
    min-height: calc(100vh - 60px);
    transition: all 0.3s ease;
}




.main {
    flex-grow: 1;
    padding: 20px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 50px;
    min-width: 0;
    background: #F6F6F6;
}

.main-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.main-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

#chart_title{
    font-size: 1.3em;
}







@media (max-width: 1024px) {

    .container{
        margin-top: 30px;
    }
    
    #right-sidebar{
        display: none;
    }
    #left-sidebar{
        display: none;
    }

}

@media (min-width: 1025px) {
    .container{
        margin-top: 30px;
    }
}




.main footer {
    background: #d6d6d6;
    color: #4d4d4d;
    padding: 40px 20px 60px 20px;
    margin: 60px -30px -30px -30px;   

    font-family: Arial, Helvetica, sans-serif;
}

.main footer .footer-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
}


.main footer font[size="1"],
.main footer .small {
    font-size: 12px;
    line-height: 1.6;
}


.main footer a {
    color: #4d4d4d;
    text-decoration: none;
    transition: opacity 0.2s;
}

.main footer a:hover {
    opacity: 0.7;
    text-decoration: underline;
}


.main footer strong {
    font-weight: 700;
}


.main footer .copyright {
    font-size: 12px;
}


@media (max-width: 1024px) {
    .main footer {
        margin: 40px -20px -30px -20px;
        padding: 35px 20px 50px;
    }

}







.overview-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 60px;
}

.grid-item {
    background: #f6f6f6;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-height: 200px;
}


.full-width {
    grid-column: 1 / -1;
}


@media (min-width: 1025px) {
    .overview-grid {
        grid-template-columns: 1fr 1fr;
    }


    
    .item-1, .item-2 {
        
    }
    
    
    .item-3, .item-4 {
        grid-column: 1 / -1;
    }
}


@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-item {
        min-height: auto;
        padding: 10px;


          
    }


    .main{
        padding: 15px;
        padding-top: 35px;
    }
    
    
    
    .full-width {
        grid-column: 1 / -1;
    }
}



.inner-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.inner-item {
    background: #f6f6f6; 
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    min-height: 150px;
}


@media (min-width: 1025px) {
    .inner-grid {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 1024px) {
    .inner-grid {
        grid-template-columns: 1fr;
    }
    
    .inner-item {
        min-height: auto;
    }

    .section-title {
        margin-top: 10px;
        font-size: 1.1em;
        color: #6d6d6d;
        font-weight: 100;
    }

}


.inner-item h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
    color: #4d4d4d;
}



.section-title {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #6d6d6d;
    font-weight: 100;
}



.section-subtitle {
    margin: 0 0 25px 0;
    font-size: 1.1em;
    color: #6d6d6d;
    font-style: italic;
}



.table-container {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    border-radius: 6px; 
}


.overview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}


.positive {
    color: #28a745;
    font-weight: 600;
}

.negative {
    color: #dc3545;
    font-weight: 600;
}


@media (min-width: 1025px) {
    .table-container {
        overflow: visible; 
    }
    
    .overview-table {
        table-layout: auto;
        white-space: normal;
    }
    
    .overview-table th,
    .overview-table td {
        white-space: normal;
        word-wrap: break-word;
        padding: 8px 5px;

    }
    
    .overview-table {
        font-size: 12px;
    }
}


@media (max-width: 1024px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        
        min-width: 0;

    }
    
    .overview-table {
        min-width: 530px;
        white-space: nowrap;
        table-layout: fixed;
    }
    
    .overview-table th,
    .overview-table td {
        padding: 8px 5px;
        white-space: nowrap;
        overflow: hidden;

    }
    
    .overview-table {
        font-size: 11px;
    }
}


.grid-item {
    min-width: 0;
    overflow: hidden;
}






.inner-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}




.inner-item {
    min-width: 0;
    overflow: hidden;
}


@media (min-width: 1025px) {
    .inner-item .table-container {
        overflow: visible;
    }
    
    .inner-item .overview-table {
        table-layout: auto;
        white-space: normal;
        min-width: auto;
    }
    
    .inner-item .overview-table th,
    .inner-item .overview-table td {
        white-space: normal;
        word-wrap: break-word;
        padding: 10px 8px;
    }
    
    .inner-item .overview-table {
        font-size: 12px;
    }
}


@media (max-width: 1024px) {
    .inner-item .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 0;
        padding-bottom: 5px;
    }
    
    .inner-item .overview-table {
        min-width: 600px;
        white-space: nowrap;
        table-layout: fixed;
    }
    
    .inner-item .overview-table th,
    .inner-item .overview-table td {
        padding: 8px 6px;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}



.overview-table td:empty::before,
.overview-table td:not(.positive):not(.negative) {
    color: #6d6d6d;

}



.overview-table td:first-child a {
    transition: opacity 0.2s ease;
}

.overview-table td:first-child a:hover {
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .overview-table td:first-child a {
        gap: 6px;
    }
    .overview-table td:first-child i {
        font-size: 13px;
    }
}

