#dashboard-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: .45rem;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
    color: var(--text-light);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: none;
}

#dashboard-back-button:hover,
#dashboard-back-button:active {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: none;
}

#dashboard-back-button:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

/* Keep patient navigation and page actions together, including on mobile. */
.patient-page-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.patient-page-header h2 {
    margin-bottom: .5rem;
    overflow-wrap: anywhere;
}

.patient-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.patient-page-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 36px;
    padding: .45rem .75rem;
    font-size: .875rem;
    line-height: 1.25;
    margin: 0;
}

.patient-page-actions .btn:hover {
    transform: none;
}

.patient-page-actions .form-check {
    margin: 0;
}
