code {
    text-transform: uppercase;
}

.form-control[readonly] {
    background-color: #f8f9fa;
}

.navbar-user-name {
    color: rgba(255, 255, 255, .55);
}

[data-toggle-password] {
    cursor: pointer;
}

/* Statistics page */
.statistics-page {
    line-height: normal;
}

.chart-card .card-body {
    padding: 1rem 0.5rem 0.5rem;
}

.chart-card .card-title {
    padding: 0 0.5rem;
    margin-bottom: 0.75rem;
}


/* Statistics totals panel */
.stats-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.stats-panel .stats-cell,
.stats-panel .stats-cell-last {
    position: relative;
}

/* Mobile (< md): stack, horizontal short separators */
.stats-panel .stats-cell::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 7.5%;
    width: 85%;
    height: 1px;
    background-color: var(--bs-border-color);
}

.stats-panel .stats-cell-last::after {
    display: none;
}

/* md–xl: 3 + 2 layout */
@media (min-width: 768px) {
    .stats-panel {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .stats-panel .stats-cell,
    .stats-panel .stats-cell-last {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    /* First row: 3 items, each 1/3 */
    .stats-panel .stats-cell:nth-child(-n+3) {
        flex: 0 0 calc(100% / 3);
    }
    /* Second row: 2 items, each 1/2 */
    .stats-panel .stats-cell:nth-child(4),
    .stats-panel .stats-cell-last {
        flex: 0 0 50%;
    }
    /* Vertical separators */
    .stats-panel .stats-cell::after {
        left: auto;
        right: 0;
        top: 15%;
        bottom: auto;
        width: 1px;
        height: 70%;
    }
    /* No right border on last of each row */
    .stats-panel .stats-cell:nth-child(3)::after {
        display: none;
    }
    .stats-panel .stats-cell-last::after {
        display: none;
    }
}

/* xl+: all 5 in one row */
@media (min-width: 1200px) {
    .stats-panel {
        flex-wrap: nowrap;
    }
    .stats-panel .stats-cell,
    .stats-panel .stats-cell-last,
    .stats-panel .stats-cell:nth-child(-n+3),
    .stats-panel .stats-cell:nth-child(4) {
        flex: 1 1 0;
    }
    .stats-panel .stats-cell:nth-child(3)::after {
        display: block;
    }
}
