/* Staff, admin and login pages (templates/base.html.twig), on top of Bootstrap 5.
   The tenant's colours come from templates/_brand_style.html.twig. */

/* The sidebar stays in view while the page scrolls (from md up; below it is an offcanvas menu). */
@media (min-width: 768px) {
    .staff .sidebar .offcanvas-md {
        position: sticky;
        top: 64px;
        height: calc(100vh - 64px);
        overflow-y: auto;
        scrollbar-width: thin;
    }
}

.staff .sidebar .nav-link {
    color: var(--bs-body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff .sidebar .nav-link .bi {
    margin-right: .25rem;
}

/* Action buttons are inline forms (_actions.html.twig). */
.staff td form {
    margin: 0;
}

/* The tenant's logo in the top bar (public/brands/<account>_weblogo.png, 45px high). */
.staff .navbar-brand img {
    max-height: 45px;
    width: auto;
}

/* Text from questionnaires and evaluations keeps its line breaks. */
.staff pre {
    white-space: pre-wrap;
}

/* Editing answers (evaluate/edit_instance.html.twig): the patient's answers stay marked,
   also after another answer is chosen ([checked] is the state when the page was loaded). */
.patient-answers .form-check-input[checked] + .form-check-label {
    background-color: var(--bs-highlight-bg);
    padding: 0 .25rem;
}

/* The menu button on small screens, in the colour of the top bar's links. */
.staff .menu-button {
    color: var(--bs-navbar-color);
    line-height: 1;
}
