/* Shared page heading contract for every dashboard role and standalone page. */
.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    min-width: 0;
}
.page-header > .page-heading,
.page-header > div:first-child:has(.page-heading) { flex: 1 1 20rem; min-width: 0; }
.page-heading { min-width: 0; text-align: left; }
.page-heading .page-title {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin: 0;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: -.025em;
    text-transform: none;
    overflow-wrap: anywhere;
}
.page-heading .page-title > :is(i, svg) {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    color: #2563eb;
    font-size: 1.25rem;
}
.page-heading .page-subtitle {
    margin: .375rem 0 0;
    color: #64748b;
    font-size: .875rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    letter-spacing: normal;
    text-transform: none;
    overflow-wrap: anywhere;
}
.page-header > :not(.page-heading) { min-width: 0; max-width: 100%; }
.page-header > :is(div, form):not(:has(.page-heading)):not(.page-heading) { flex-wrap: wrap; }
.dark .page-heading .page-title { color: #e2e8f0; }
.dark .page-heading .page-subtitle { color: #94a3b8; }
.dark .page-heading .page-title > :is(i, svg) { color: #60a5fa; }
.page-heading--inverse .page-title,
.dark .page-heading--inverse .page-title { color: #fff; }
.page-heading--inverse .page-subtitle,
.dark .page-heading--inverse .page-subtitle { color: #dbeafe; }
.page-heading--inverse .page-title > :is(i, svg),
.dark .page-heading--inverse .page-title > :is(i, svg) { color: #bfdbfe; }
@media (max-width: 639px) {
    .page-header { flex-direction: column; align-items: stretch; }
    .page-header > .page-heading,
    .page-header > div:first-child:has(.page-heading) { flex-basis: auto; }
    .page-heading .page-title { font-size: 1.25rem; }
    .page-header > :is(button, a, form) { align-self: flex-start; }
    .page-header > form { flex-wrap: wrap; }
}
