

/* Price Update */
.price-box {
    display: flex;
}
.main-price h1{
    padding: 0;
    margin: 0;
}

.price-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-content: center;
    /* height: 50px; */
    
}

.price-info h2 {
    font-size: 1rem; /* Half the size of the main-price */
    margin: 0;
    text-align: left;
}

.top-info {
    display: flex;
    align-items: flex-end; /* Aligns the text to the bottom of the div */
    height: 50%; /* Occupy half of the height */
}
.bottom-info {
    display: flex;
    align-items: flex-start; /* Aligns the text to the top of the div */
    height: 50%; /* Occupy half of the height */
}









/* TABLES */
/* Display Table */
.content-body.display-table {
    display: flex;
    flex-direction: column;
    padding: 0 1rem;

}

.row-table.display-table {
    border-collapse: collapse;
    padding: 0 var(--inner-space);
    margin: 0;
}
/* Sticky Header */
.row-table.display-table thead {
    position: sticky; /* Keeps the header fixed while scrolling */
    top: 0px;
    z-index: 1; /* Ensure it stays above tbody content */
}
.row-table.display-table th {
    /* padding: var(--inner-space); */
    padding: 0.25rem var(--inner-space);
    /* background-color: rgba(128, 128, 128, 0.425); */
    font-size: larger;
    font-weight: 600;
    border-bottom: var(--border-bs);

}
.row-table.display-table td {
    padding: 0.25rem var(--inner-space);
    margin: 0; /* Remove any unintended margins */
}
/* .row-table.display-table th {
    min-width: fit-content !important;
} */
/* .row-table.display-table tr:nth-child(odd) {
    background-color: var(--section-bg);
} */
.row-table.display-table tr {
    background-color: var(--section-bg);
    border-bottom: var(--border-bs);

}





.display-table-item {
    flex: 1;
    width: 100%;
    min-height: fit-content;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
}
.display-table-item-key {
    flex: 1;
    align-self: flex-end;
    font-weight: bold;
    max-width: 45%;
    font-size: large;
    min-width: fit-content;
}
.display-table-item-value {
    flex: 1;
    align-self: flex-end;
    justify-content: flex-end;
    text-align: right;
    padding-right: var(--inner-space);
}








/* Error */
.error-box {
    display: flex; 
    align-items: center; 
    justify-content: center;
    height: 100%;
    flex-direction: column;
}
.error-box h1 {
    font-size: 3rem;
    color: #e74c3c;
}
.error-box p {
    font-size: 1.5rem;
}



/* Hidden */
.hidden {
    display: none;
}
#graph-load-spinner.active {
    display: block;
    height: 100%;
}


/* Skeleton */
.skeleton {
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: inherit;
}






/* Loading */
#page-load-spinner {
    display: none;
}
#page-load-spinner.active {
    display: block;
    z-index: 3;
    margin: auto;
    padding: 20%;
    height: 10%;
    width: 10%;
    position: fixed;
}



/* New loader */
.target-loader {
    display: none;
}

.target-loader.active {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#target-loader {
    display: none;
}















/* UTILS */
.padding-x {
    padding: 0 1rem;
}

.padding-y {
    padding: 1rem 0;
}
.margin-x {
    margin: 0 1rem;
}

.margin-y {
    margin: 1rem 0;
}

.bottom-grey {
    border-bottom: 2px dashed grey;
}



/* Utils */

.up {
    color: green;
}
.down {
    color: red;
}

.align-right {
    text-align: right;
}

.align-left {
    text-align: left;
}


.border-full {
    border: var(--border-bs);
}
.border-top {
    border-top: var(--border-bs);
}
.border-bottom {
    border-bottom: var(--border-bs);
}
.border-right {
    border-right: var(--border-bs);
}
.border-left {
    border-left: var(--border-bs);
}


