/* NEW ADDED */
/* Datatable styles overwrite */
tbody>tr:nth-child(odd of :not(.small-chart):not(.small-table)) {
    background: rgb(229 231 235) !important;
}

tbody>tr:nth-child(even of :not(.small-chart):not(.small-table)) {
    background: white !important;
}

#screenerTable_info {
    text-align: center !important;
}

#screenerTable_wrapper>div:nth-child(2) {
    margin-top: 1rem;
    display: flex !important;
    align-items: center !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

#screenerTable_wrapper>div:nth-child(2)>div.col-sm-12.col-md-7 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1rem;
}

#screenerTable_paginate>div {
    margin: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap !important;
}

#screenerTable>thead>tr>th {
    padding-left: 10px !important;
}

/* End Datatable overwrite */

.wrapper {
    max-width: 1280px !important;
}

.details-control,
.view-chart,
.tutorial {
    color: #007bff;
    cursor: pointer;
}

.tutorial {
    text-decoration: underline;
}

.view-chart {
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
    padding: 14px 10px;
}

.spacer {
    margin-bottom: 1rem;
}

.flexbox {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dropdown {
    gap: .5rem;
    flex-direction: row-reverse;
}

select {
    padding: .2rem 1rem !important;
    border-radius: 8px;
    border: 1px solid #ced4da;
    cursor: pointer;
}

#screenerTable_filter {
    width: 100%;
    max-width: 400px;
}

input[type="search"] {
    padding: .3rem 1rem;
    border-radius: 8px;
    border: 1px solid #ced4da;
    width: 100% !important;
    max-width: 300px;
}

#reset {
    padding: .2rem 1rem;
    background: #36304a;
    color: white;
    border-radius: 8px;
    font-weight: 600;
}

.headerInfo {
    margin-top: 0 !important;
}

/* td.view-chart::before {
    content: unset !important;
    margin-top: unset !important;
} */

tr.shown td.view-chart::before {
    content: url('../img/cross-15.png');
}

#screenerTable>tbody>tr:not(.small-table):not(.small-chart):hover {
    background: #aee5ff !important;
}

#screenerTable>tbody>tr.dt-hasChild,
#screenerTable>tbody>tr.dt-hasChild:hover {
    background: #89CFF0 !important;
    color: black;
    text-decoration: none;
}

.btn-close-graph {
    float: right;
    border-radius: 0.375rem;
    --tw-bg-opacity: 1;
    background-color: rgb(239 68 68 / var(--tw-bg-opacity));
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.chart-pic {
    width: 100%;
}

.btn-close-graph {
    margin-bottom: 0.5rem;
}

/*
@media(min-width:1024px) {
    .chart-pic {
        width: 80%;
        }
        } */

.legend {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 10px;
}


@media(min-width:768px) {
    .legend {
        justify-content: center;
        padding: 0 0;
    }
}

iframe {
    height: 400px;
}

.red {
    background-color: #FF6961 !important;
}

.dark-green {
    background-color: rgb(72 171 98) !important;
}

.collapsed-columns {
    display: none !important;
}


@media(min-width:768px) {
    iframe {
        height: 500px;
    }
}

.headerInfo {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    width: unset;
}

.trend-info {
    border: 1px solid black;
    max-width: 300px;
    margin-left: 0px;
}

.trend-info th {
    background-color: #36304a !important;
    color: white !important;
    padding: 4px !important;
}

.trend-info td {
    padding: 0.7rem 0;
}

.span__all {
    width: 100%;
}

td.view-chart {
    position: relative;
}

.small-table>td {
    padding: 0.5rem;
}

#warrantTable>thead>tr>th {
    padding: 1rem 0.2rem;
}

.hidden-col {
    display: none !important;
}

.filter__header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.headerInfo {
    width: 250px;
}

.dropdown {
    display: flex;
    gap: 0.1rem;
    align-items: center;
}

#screenerTable_filter>label,
.legends {
    display: flex;
    gap: 0.2rem;
    align-items: center;
}

#screenerTable_filter>input[type="search"] {
    max-width: 150px;
}

.legends {
    margin-bottom: 0.5rem;
}

.paging__section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media(max-width:768px) {
    .paging__section {
        margin-top: 1rem;
        flex-direction: column;
        justify-content: unset;
    }
}

.chart-pic {
    position: relative;
}

#spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

#loading-gif {
    width: 30px;
    height: 30px;
}