/***
Special styles for the statistics view.
***/

.stat-boxes-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.value-box {
    background-color: #eef3ff;
    border: 1px solid #c5d3ee;
    border-radius: 10px;
    padding: 16px;
    margin: 0;
}

.vert-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    vertical-align: top;
}

.title-highlight {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    color: var(--brand-dark-blue);
}

.number-highlight {
    font-size: 2.35rem;
    font-weight: 700;
    color: var(--brand-dark-blue);
}

.title-std {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 10px;
    text-align: center;
    color: var(--brand-dark-blue);
}

.number-std {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #1e2f47;
}

.range-box {
    position: relative;
}

.range-box .stat-number {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    margin-left: -8px;
}

.range-box::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #9fb3d8;
    position: absolute;
    top: 50%;
    margin-top: 5px;
    left: 0;
    transform: translateY(-50%);
}

.graph-menu {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    vertical-align: top;
    margin: 10px 0;
}

#lengthDistributionChart {
    width: 100% !important;
    max-height: 420px;
}

.operator {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 5px 0;
    color: #1e2f47;
}

.delta-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e2f47;
}

.title-min {
    margin-bottom: -10px;
}

.value-min {
    margin-bottom: 0;
}

.title-max {
    margin-bottom: 0.5em;
}

.value-max {
    margin-top: 0;
    margin-bottom: 10px;
}

#help-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border: 1px solid #c5d3ee;
    padding: 20px;
    width: min(90vw, 420px);
    z-index: 1;
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
}

.popup-content {
    padding: 0;
}

#close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 14px;
    font-size: 0.95rem;
}
