/* src/components/FinancialDataDisplay/FinancialDataDisplay.css */

.main-header {
    display: inline-flex;
    align-items: center;
    border-bottom: 1px solid rgb(232, 234, 237);
    margin: 0 auto;
    padding-bottom: 8px;
    padding-top: 15px;
    max-width: 1024px;
    width: 100%;
    height: auto;
    justify-content: space-between;
    box-sizing: border-box;
    margin-bottom: 16px;
    margin-left: 15px;
}

.main-header-right {
    display: flex;
    align-items: center;
}

.main-header-left {
    margin: 5px; /* Duplicated from below, simplify */
    display: flex; /* Moved here from duplicated block */
    align-items: center; /* Moved here from duplicated block */
}

/* .main-header-left { display: flex; align-items: center; } // REMOVE - Duplicated */

.main-heading-container {
    display: flex;
    flex-direction: column;
    height: auto;
    margin-left: 8px;
}

.heading1 {
    align-items: center;
    color: rgb(32, 33, 36);
    margin: 0;
    font-family: "Google Sans", "Roboto", Arial, sans-serif;
    line-height: 2rem;
    font-size: 2rem;
    letter-spacing: 0;
    font-weight: 400;
}

.heading2 {
    font-family: "Roboto", Arial, sans-serif;
    color: rgb(32, 33, 36);
    line-height: 1rem;
    font-size: .6875rem;
    letter-spacing: .0727272727em;
    font-weight: 500;
    text-transform: uppercase;
    display: flex;
    margin: 0;
}

.heading2 > div,
.heading3 > div {
    margin-right: 2px;
}

.main-price {
    display: block;
    max-width: auto;
    margin: 0;
}

.price-container {
    display: flex;
}

.price {
    font-size: 2.25rem;
    letter-spacing: 0;
    line-height: 2.75rem;
    text-size-adjust: 100%;
    font-weight: 400;
    margin-right: 16px;
} 

.changes {
    align-items: center;
    display: flex;
    height: auto;
    margin-bottom: 8px;
    margin-top: 16px;
    text-size-adjust: 100%;
    font-size: 1rem;
    letter-spacing: .00625rem;
    gap: 4px;
}

.fx-cont {
    display: flex;
    align-items: center;
}

.color-green {
    color: rgb(19,115,51);
    background-color: rgb(230,244,234);
    letter-spacing: .00625em;
    font-size: 1rem;
    line-height: 1.5rem;
    padding: 0 8px;
    border-radius: 8px;
    min-width: 40px;
}

.color-red {
    letter-spacing: .00625em;
    font-size: 1rem;
    line-height: 1.5rem;
    padding: 0 8px;
    border-radius: 8px;
    min-width: 40px;
    color: rgb(165, 14, 14);
    background: rgb(252, 232, 230);
}

.text-green {
    color: rgb(19,115,51);
}
  
.text-red {
    color: rgb(165, 14, 14);
}

.background-changes {
    height: 22px;
}

.fundamental-container {
    margin-top: 15px;
}

.fundamental-value,
.fundamental-cash-flow {
    border: 1px solid rgb(218, 220, 224);
    border-radius: 12px;
    margin-bottom: 15px;
}

.fundamental-data {
    font-family: "Roboto", Arial, sans-serif;
    color: rgb(95, 99, 104);
    align-items: center;
    border-top-color: rgb(218, 220, 224);
    border-top-style: solid;
    border-top-width: 1px;
    box-sizing: border-box;
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    min-height: 43px;
    padding-bottom: 8px;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 8px;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    margin-left: 15px;
    margin-right: 15px;
    font-size: .8rem;
    letter-spacing: .0727272727em;
    text-transform: uppercase;
    font-weight: 400;
    line-height: .6875rem;
}

.fundamental-data-result-number {
    font-family: "Google Sans", "Roboto", Arial, sans-serif;
    line-height: 1.25rem;
    font-size: .875rem;
    letter-spacing: .0178571429em;
    font-weight: 500;
    color: rgb(32, 33, 36);
    text-overflow: ellipsis;
}

.fundamental-data-result-text {
    font-family: "Google Sans", "Roboto", Arial, sans-serif;
    line-height: 1.25rem;
    font-size: .775rem;
    letter-spacing: .0178571429em;
    font-weight: 500;
    color: rgb(32, 33, 36);
    text-overflow: ellipsis;
}

.fundamental-header {
    font-size: 16px;
    margin-left: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 15px;
    cursor: pointer;
}

.two-results {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-space { /* Part of main layout, closely tied to fundamental data */
    min-width: 675px;
}

.aside {
    width: 100%;
    margin-left: 30px;
}

.aside-container {
    border: 1px solid rgb(218, 220, 224);
    border-radius: 12px;
    margin-bottom: 15px;
}

.aside-data {
    align-items: center;
    box-sizing: border-box;
    color: rgba(0, 0, 0, 0.87);
    display: flex;
    justify-content: space-between;
    min-height: 43px;
    padding-bottom: 8px;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 8px;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 8px;
    white-space: normal;
    overflow-wrap: break-word;
    font-size: 14px;
}

.flex-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 15px;
    cursor: pointer;
}

.info-container {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
}

.info-container.expanded {
    display: block;
    max-height: 500px; /* Adjust as needed */
    transition: max-height 0.5s ease-in, opacity 0.5s ease-in;
    opacity: 1;
}

.expand:hover {
    background-color: rgb(0, 0, 0, 0.06);
}

.expand {
    display: flex;
    cursor: pointer;
    min-width: 48px;
    min-height: 30px;
    justify-content: center;
    align-items: center;
}

/* Media Queries for FinancialDataDisplay adjustments */
@media (max-width: 768px) {
    .aside {
        display: block;
        margin-left: 0px;
    }
    .flexbox-main {
        display: block;
        width: 100%;
        margin-right: 15px;
    }
    .fundamental-value,
    .fundamental-cash-flow,
    .fundamental-container {
        border: none;
        border-radius: 0px;
    }
    .main-space {
        min-width: 500px;
        margin-right: 15px;
    }
}