/*
    Praxo application styles.

    Linked from App.razor through @Assets, after the Classic theme (and its
    recolouring, praxo-classic.css) and after praxo-tokens.css, so it reads
    the --px-* tokens and overrides the theme where it has to.
    praxo-classic-brand.css follows it and wins ties.

    Scope rule, unchanged: layout and controls come from DevExpress components.
    This file styles the handful of app surfaces DevExpress has no component
    for - the navigation sidebar, the page header, cards, KPI tiles, badges,
    detail fields, the sign-in card - and re-points theme variables where a
    component has to look different from its default.

    Not here: accent overrides (generated into praxo-classic.css by
    tools/gen-classic.py), Bootstrap variables (praxo-classic-brand.css),
    design tokens and icons (praxo-tokens.css, shared with the admin).

    Every theme variable overridden below was read out of the served theme
    CSS (path via staticwebassets.build.json), not guessed; some were written
    against Fluent and do nothing under Classic. An override at the wrong
    scope fails silently.
*/

/* ========================================================== app shell == */

/*
    Sidebar left, page right. It was a full-width top bar until 24.10.2026;
    a sidebar shows the whole navigation at once, so "Verwaltung" no longer has
    to be a drop-down, and the list has room for the modules still to come.

    The green moved with it. One coloured surface in the shell, not two: the
    sidebar carries the brand colour, the header above the page is white, and
    everything on the header is therefore drawn in page colours rather than in
    translucent white.
*/
.px-shell {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* ---------------------------------------------------------- the sidebar */

/*
    Green, full height, and its own scroll: the navigation must not scroll away
    with the page, and it must not stop the page scrolling either.

    The surface is NOT the brand green: a whole column of vivid green is a
    slab that shouts, and it spends the brand colour on a background that
    means nothing. --px-side-bg is the same family at half the saturation
    (13.6:1 for white text), which leaves the vivid green free to mean
    "action" - and to mark the current page, which is the one fill here that
    carries the brand.
*/
.px-side {
    position: sticky;
    top: 0;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    width: var(--px-side-w);
    height: 100vh;
    flex: none;
    box-sizing: border-box;
    padding: 0 8px 16px;
    background: var(--px-side-bg);
    color: var(--px-on-primary);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 900;
}

/*
    The brand slot. It holds BrandLogo, which brings its own geometry and takes
    its colour from here - so this rule is the box and the ink, and nothing
    about type. It was the wordmark itself, set in 17px bold.

    The height matches the page header beside it, so the logo and the header
    strip line up across the fold between them.
*/
.px-side__brand {
    display: flex;
    align-items: center;
    height: var(--px-head-h);
    padding: 0 10px;
    color: var(--px-on-primary);
    text-decoration: none;
    overflow: hidden;
    flex: none;
}

.px-side__brand:hover,
.px-side__brand:focus-visible {
    color: var(--px-on-primary);
    text-decoration: none;
    opacity: 0.85;
}

.px-side__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

/*
    An entry. Icon and label on one line, the whole row clickable, 36px high -
    dense enough to be office software, tall enough to hit on a tablet.
*/
.px-side__link {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--px-radius-control);
    color: var(--px-side-ink);
    text-decoration: none;
    font-size: var(--px-text-base);
    white-space: nowrap;
    overflow: hidden;
}

.px-side__link:hover,
.px-side__link:focus-visible {
    background: var(--px-side-fill-hover);
    color: var(--px-on-primary);
    text-decoration: none;
}

/*
    "You are here": a filled row, not an edge marker. The whole row carries it,
    so it reads at a glance down a vertical list.
*/
.px-side__link--active {
    background: var(--px-side-fill-active);
    color: var(--px-on-primary);
    font-weight: var(--px-weight-semibold);
}

/*
    The leaf accent, in the one place the kit permits it: a graphic accent on a
    brand surface, where it is 4.9:1 and legible, rather than text on white,
    where it is 2.2:1 and forbidden.

    It marks the current page a third time - after the darker row and the
    brighter label - and it is set on the CONTEXT, not through an icon colour
    class, so the markup cannot get it wrong. Same rule as .px-bar-item.
*/
.px-side__link--active .px-icon {
    color: var(--px-side-accent);
}

.px-side__label {
    overflow: hidden;
    text-overflow: ellipsis;
}

/*
    A count beside an entry - the user's open tasks. White on a translucent
    white chip, so it reads on the forest surface without adding a colour;
    the danger fill once one of them is overdue, the one state that is meant
    to be noticed from across the room. Pushed to the row's right edge.
*/
.px-side__badge {
    margin-left: auto;
    min-width: 20px;
    padding: 0 6px;
    border-radius: var(--px-radius-badge);
    background: var(--px-side-rule);
    color: var(--px-on-primary);
    font-size: var(--px-text-2xs);
    font-weight: var(--px-weight-semibold);
    line-height: 18px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.px-side__badge--urgent {
    background: var(--px-danger);
}

/*
    A group: a quiet heading with its entries under it. Modules contribute the
    group name (Benutzer from UserAdmin, Standorte from Crm sit under
    "Verwaltung"), and the shell assembles it - no module knows about another.
*/
.px-side__group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--px-side-rule);
}

.px-side__grouplabel {
    padding: 0 10px 4px;
    font-size: var(--px-text-2xs);
    font-weight: var(--px-weight-bold);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--px-side-ink-quiet);
    white-space: nowrap;
    overflow: hidden;
}

/*
    A parent entry: its own row, then its children under it. The chevron is a
    separate control beside the link, so clicking "Einstellungen" goes to the
    page while clicking the chevron only opens the list - one row, two
    gestures. Children are contributed (the settings categories sitting under
    the entry's route), so this is markup the modules fill, not a fixed tree.
*/
.px-side__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.px-side__row {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.px-side__row > .px-side__link {
    flex: 1 1 auto;
    min-width: 0;
}

/*
    Marked, not filled: a parent whose child is the current page. The child
    carries the filled row, and two filled rows in one column read as two
    separate places.
*/
.px-side__link--section {
    color: var(--px-on-primary);
    font-weight: var(--px-weight-semibold);
}

.px-side__expand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: var(--px-radius-control);
    background: transparent;
    color: var(--px-side-ink-quiet);
    cursor: pointer;
    transition: transform 0.15s ease-out;
}

.px-side__expand:hover,
.px-side__expand:focus-visible {
    background: var(--px-side-fill-hover);
    color: var(--px-on-primary);
}

/* Chevron down when shut, up when open: the arrow points the way it moves. */
.px-side__expand--open {
    transform: rotate(180deg);
}

/* A group has no route of its own, so its whole heading row is the toggle. */
.px-side__grouptoggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

/*
    The children. Indented to about the parent's icon width and marked with a
    rule, so the subtree reads as belonging to the row above it.
*/
.px-side__sub {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 2px 0 6px 17px;
    padding-left: 10px;
    border-left: 1px solid var(--px-side-rule);
}

.px-side__sublink {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 8px;
    border-radius: var(--px-radius-control);
    color: var(--px-side-ink-quiet);
    text-decoration: none;
    font-size: var(--px-text-sm);
    white-space: nowrap;
    overflow: hidden;
}

/* A child sits one level down, so its icon does too. */
.px-side__sublink .px-icon {
    width: var(--px-icon-sm);
    height: var(--px-icon-sm);
}

.px-side__sublink:hover,
.px-side__sublink:focus-visible {
    background: var(--px-side-fill-hover);
    color: var(--px-on-primary);
    text-decoration: none;
}

.px-side__sublink--active {
    background: var(--px-side-fill-active);
    color: var(--px-on-primary);
    font-weight: var(--px-weight-semibold);
}

/*
    The narrow-screen toggle and its scrim. Both are hidden until the sidebar
    goes off-canvas; see the media queries at the end of this file.
*/
.px-side-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 1200;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-control);
    background: var(--px-surface);
    color: var(--px-text);
    cursor: pointer;
}

.px-side__scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 890;
    border: 0;
    padding: 0;
    background: var(--px-scrim);
    cursor: pointer;
}

/* ---------------------------------------------------- the page beside it */

.px-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

/*
    The header strip over the page: search, site switcher and help on the left,
    practice and user on the right. White, with a hairline under it, so the
    page below reads as one surface with the sidebar as the only colour.
*/
.px-head {
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--px-head-h);
    padding: 0 var(--px-gutter);
    background: var(--px-surface);
    border-bottom: 1px solid var(--px-border-strong);
    position: sticky;
    top: 0;
    z-index: 800;
    flex: none;
}

.px-head__tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

/* --------------------------------------------- header buttons and boxes */

/*
    One shape for everything in the header: search box, site switcher, help.
    An outlined control on white, which is what the editors on a page look
    like - these were translucent white on a green bar until the sidebar.
    The edge is --px-border-strong, a field's edge, for the same reason: on
    the hairline --px-border the search box and Hilfe all but disappeared
    into the white header (owner, 28.10.2026).
*/
.px-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--px-border-strong);
    border-radius: var(--px-radius-control);
    background: var(--px-surface);
    color: var(--px-text);
    font: inherit;
    font-size: var(--px-text-sm);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    flex: none;
    box-sizing: border-box;
}

.px-bar-item:hover,
.px-bar-item:focus-visible {
    background: var(--px-bg);
    border-color: var(--px-muted);
    color: var(--px-text);
    text-decoration: none;
}

.px-bar-item__text {
    overflow: hidden;
    text-overflow: ellipsis;
}

/*
    An icon beside a label is the quieter half of it. At full text colour a
    16px glyph carries more ink than the 13px word next to it, so a header icon
    takes the muted tone and the green only on hover, where the control is
    already responding.

    The sidebar needs no equivalent rule: an icon there inherits the link's own
    colour through currentColor, which the --px-side-ink tokens already set and
    which clears AA against the green (7.1:1 at rest, 8.0:1 active).
*/
.px-bar-item .px-icon {
    --px-icon-size: var(--px-icon-sm);
    color: var(--px-muted);
}

.px-bar-item:hover .px-icon,
.px-bar-item:focus-visible .px-icon {
    color: var(--px-primary);
}

/*
    The site switcher is a native <select> wrapped in the header shape: the
    browser draws the list, we only have to make the closed state match the
    other things beside it. appearance:none removes the platform chrome, so
    the chevron is ours. The select fills the whole box and the two icons lie
    on top of it without taking clicks, so a click anywhere opens the list.
*/
.px-bar-select {
    position: relative;
    padding: 0;
}

.px-bar-select__input {
    appearance: none;
    -webkit-appearance: none;
    height: 100%;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: var(--px-text);
    font: inherit;
    padding: 0 32px 0 36px;
    max-width: 240px;
    cursor: pointer;
}

.px-bar-select__input:focus {
    outline: none;
}

.px-bar-select:focus-within {
    border-color: var(--px-primary);
}

.px-bar-select__icon,
.px-bar-select__chevron {
    position: absolute;
    top: 50%;
    display: inline-flex;
    transform: translateY(-50%);
    pointer-events: none;
}

.px-bar-select__icon {
    left: 12px;
}

.px-bar-select__chevron {
    right: 10px;
}

.px-bar-select__input option {
    color: var(--px-text);
    background: var(--px-surface);
}

/* The keyboard hint inside the search box. */
.px-kbd {
    display: inline-flex;
    align-items: center;
    padding: 1px 5px;
    border: 1px solid var(--px-border);
    border-radius: 4px;
    background: var(--px-bg);
    font-size: var(--px-text-2xs);
    font-weight: var(--px-weight-semibold);
    letter-spacing: 0.02em;
    color: var(--px-muted);
}

/* -------------------------------------------------------- global search */

.px-search {
    position: relative;
    flex: 0 1 340px;
    min-width: 0;
}

.px-search__trigger {
    width: 100%;
    justify-content: space-between;
}

.px-search__label {
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--px-muted);
}

.px-search__panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: min(420px, calc(100vw - 32px));
    max-height: 60vh;
    overflow-y: auto;
    background: var(--px-surface);
    border: 1px solid var(--px-border-card);
    border-radius: var(--px-radius-card);
    box-shadow: var(--px-shadow-raised);
    padding: 6px;
    z-index: 1100;
}

.px-search__hit {
    display: flex;
    flex-direction: column;
    gap: 1px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: var(--px-radius-control);
    background: transparent;
    text-align: left;
    color: var(--px-text);
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.px-search__hit:hover,
.px-search__hit--current {
    background: var(--px-primary-soft);
    color: var(--px-text);
    text-decoration: none;
}

.px-search__hit-main {
    font-weight: var(--px-weight-semibold);
}

.px-search__hit-sub {
    font-size: var(--px-text-xs);
    color: var(--px-muted);
}

.px-search__group {
    padding: 8px 10px 4px;
    font-size: var(--px-text-2xs);
    font-weight: var(--px-weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--px-muted);
}

.px-search__empty {
    padding: 14px 10px;
    color: var(--px-muted);
}

/* ---------------------------------------------------- practice and user */

.px-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.px-user__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: right;
    min-width: 0;
}

.px-user__name {
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
    color: var(--px-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.px-user__role {
    font-size: var(--px-text-2xs);
    color: var(--px-muted);
}

.px-user__signout {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 10px;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-control);
    background: var(--px-surface);
    color: var(--px-muted);
    font: inherit;
    font-size: var(--px-text-xs);
    cursor: pointer;
    text-decoration: none;
}

.px-user__signout:hover {
    background: var(--px-bg);
    border-color: var(--px-muted);
    color: var(--px-text);
    text-decoration: none;
}

/* The site switcher, pushed to the right beside the user. */
.px-head__site {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex: none;
    min-width: 0;
}


/* ===================================================== page and cards == */

.px-content {
    flex: 1 1 auto;
    width: 100%;
    max-width: var(--px-content-max);
    margin: 0 auto;
    padding: var(--px-gutter);
    box-sizing: border-box;
}

/*
    The card. Everything on a page sits in one of these: the grey-blue page
    colour is deliberately never the background of content.
*/
.px-card {
    background: var(--px-surface);
    border: 1px solid var(--px-border-card);
    border-radius: var(--px-radius-card);
    box-shadow: var(--px-shadow-card);
    padding: var(--px-card-padding);
    box-sizing: border-box;
    min-width: 0;
}

/* A card whose whole body is a grid: the grid draws its own padding. */
.px-card--flush {
    padding: 0;
    overflow: hidden;
}

.px-card--flush .px-card__head {
    padding: 18px var(--px-card-padding) 0;
}

.px-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

/* The title and the quiet line under it, as one block on the left. */
.px-card__heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.px-card__below {
    font-size: var(--px-text-xs);
}

.px-card__title {
    margin: 0;
    font-size: var(--px-text-md);
    font-weight: var(--px-weight-bold);
    color: var(--px-text);
}

/* The help "?" after a card's title: it touched the last letter. */
.px-card__title .px-help-link {
    margin-left: 6px;
}

/*
    A card header's right-hand side. A row, so a switch and a link sit side by
    side (Termine heute: Meine/Alle, then Zum Kalender) instead of stacking.
*/
.px-card__note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 14px;
    font-size: var(--px-text-xs);
    color: var(--px-muted);
}

/*
    The bento grid: three columns on a desktop, one on a phone. auto-fit with
    a minimum rather than a fixed count, so a tablet gets two without a
    breakpoint of its own.
*/
/*
    A masonry, not a grid - and it had to become one.

    CSS Grid was the first attempt, with align-items: start so cards sized to
    their content. That is not enough: a grid ROW is as tall as its tallest
    card, so three unequal cards left the whole right-hand side of the page
    dead until the next row cleared the tallest one. Widening the columns so
    the fields inside go two-up made the cards less unequal and helped, but the
    hole was structural and stayed.

    Multi-column packs instead of aligning: each card drops into the shortest
    column, so there is no row to wait for. column-span: all is what makes this
    usable here - a Wide card (a grid of prescriptions, of treatments) still
    takes the full width, which a multi-column layout could not otherwise do.
    Both detail pages put their wide cards last, which is also where a span
    reads best: the columns balance above it, the full-width card sits under.

    Reading order becomes column-major rather than row-major. For a record -
    groups of fields read by heading, not in sequence - that is the right trade
    for the space it gives back.
*/
.px-bento {
    columns: 430px 3;
    column-gap: var(--px-card-gap);
}

.px-bento > .px-card {
    break-inside: avoid;
    margin-bottom: var(--px-card-gap);
}

/*
    Fixed columns of cards (the dashboard, the Dokumentation start): each
    column a stack, side by side while there is room, one under the other on
    a narrow screen. Unlike .px-bento a card never changes column when
    another card's height changes - the balanced columns moved cards about
    as their data arrived (owner, 07.11.2026).
*/
.px-columns {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--px-card-gap);
}

.px-columns__col {
    flex: 1 1 400px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--px-card-gap);
}

.px-content > .px-card + .px-columns {
    margin-top: var(--px-card-gap);
}

/* A card that should take the full width, below the balanced columns. */
.px-bento__wide {
    column-span: all;
}

/*
    Cards stacked straight on the page, outside a bento: a list page with two
    tables (Zuzahlungen: "anfordern" over "gestellt"), an invoice over its
    payments. Without this the second card sat flush against the first and the
    two edges read as one thick line (owner, 29.10.2026).
*/
.px-content > .px-card + .px-card {
    margin-top: var(--px-card-gap);
}

/* ------------------------------------------------------------ KPI tiles */

.px-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: var(--px-card-gap);
    margin-bottom: var(--px-card-gap);
}

.px-kpi {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--px-surface);
    border: 1px solid var(--px-border-card);
    border-radius: var(--px-radius-card);
    box-shadow: var(--px-shadow-card);
    padding: 11px 14px;
    min-width: 0;
}

.px-kpi__label {
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-semibold);
    letter-spacing: 0.02em;
    color: var(--px-muted);
}

/* Large and tabular: a number to read across tiles, not a headline. */
.px-kpi__value {
    font-size: var(--px-text-display);
    font-weight: var(--px-weight-semibold);
    line-height: 1.15;
    color: var(--px-text);
}

.px-kpi__value--text {
    font-size: var(--px-text-lg);
    font-weight: var(--px-weight-semibold);
    line-height: var(--px-leading-small);
    overflow: hidden;
    text-overflow: ellipsis;
}

.px-kpi__note {
    font-size: var(--px-text-xs);
    color: var(--px-muted);
}

/*
    The change against the comparison period: an arrow and a percentage,
    green when it went the right way, red when not (KpiTile.HigherIsBetter).
    Text colours from the checked pairs, not the leaf accent.
*/
.px-kpi__trend {
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
    color: var(--px-muted);
    font-variant-numeric: tabular-nums;
}

.px-kpi__trend--good {
    color: var(--px-success);
}

.px-kpi__trend--bad {
    color: var(--px-danger);
}

.px-kpi__link {
    margin-top: 8px;
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
    color: var(--px-primary);
    text-decoration: none;
}

.px-kpi__link:hover {
    color: var(--px-primary-hover);
    text-decoration: underline;
}

/*
    The one tile worth acting on today. The number carries it, and the border
    takes the danger hue - not an edge bar and not a red fill: a wall of red
    tiles warns about nothing.
*/
/*
    An overdue figure is told by the figure and its note, in the danger
    colour - not by a red frame round the whole tile, which the owner found
    ugly (28.10.2026) and which shouted louder than the number it was about.
*/
.px-kpi--alert .px-kpi__note {
    color: var(--px-danger);
    font-weight: var(--px-weight-semibold);
}

.px-kpi--alert .px-kpi__value {
    color: var(--px-danger);
}

/* ======================================================= page header == */

.px-page-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.px-page-header__text {
    flex: 1 1 auto;
    min-width: 0;
}

/*
    The back arrow. A plain button so it works whether it navigates or pops a
    drawer, and a pinned box so it cannot inherit the heading's metrics - a
    DxButton inside an <h1> grows to the heading's font size.
*/
.px-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-top: 2px;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-control);
    background: var(--px-surface);
    color: var(--px-muted);
    cursor: pointer;
    flex: none;
    text-decoration: none;
}

.px-back:hover {
    border-color: var(--px-primary);
    color: var(--px-primary);
    background: var(--px-primary-soft);
}

/* FocusOnNavigate (Routes.razor) moves focus to the page's <h1> after every
   navigation, for screen readers; that programmatic focus must not draw a
   ring around the title. Keyboard focus on controls is untouched. */
h1[tabindex="-1"]:focus {
    outline: none;
}

.px-page-header__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: var(--px-text-xl);
    font-weight: var(--px-weight-bold);
    line-height: 1.25;
    color: var(--px-text);
    min-width: 0;
}

.px-page-header__subtitle {
    margin: 4px 0 0;
    font-size: var(--px-text-sm);
    color: var(--px-muted);
}

.px-page-header__commands {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding-top: 2px;
}

/*
    Secondary actions are green text buttons with an icon; the primary action
    is the filled green DxButton, which the theme already paints from the
    accent. Written as a class rather than relying on DxButton's Link style so
    a plain <a> in a header looks the same as a button.
*/
.px-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--px-radius-control);
    background: transparent;
    color: var(--px-primary);
    font: inherit;
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
    cursor: pointer;
    text-decoration: none;
}

.px-action:hover {
    background: var(--px-primary-soft);
    color: var(--px-primary-hover);
    text-decoration: none;
}

.px-action:disabled {
    color: var(--px-muted);
    background: transparent;
    cursor: default;
}

/*
    The edit switch in a page header. It is a command, so it is boxed like
    .px-action rather than left floating at the switch's own metrics - without
    the box it sits a few pixels off the baseline of the links beside it and
    reads as something that fell into the header.

    The label is the green of an action when the switch is off and the plain
    page colour when it is on: off it offers something, on it merely states
    where you are, and the save bar beneath it is what wants the attention.
*/
.px-edit-toggle {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 4px 0 10px;
    border-radius: var(--px-radius-control);
    white-space: nowrap;
}

.px-edit-toggle__switch {
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
    color: var(--px-primary);
}

/*
    .dxbl-checkbox-checked is what lands on the <dxbl-check> root when the
    switch is on - read out of the served theme CSS, which carries exactly the
    pair .dxbl-checkbox-checked / .dxbl-checkbox-unchecked, and confirmed
    against the unchecked markup the page actually rendered. The first version
    of this rule said .dxbl-checked, which matches nothing: a wrong class here
    paints nothing and reports nothing.
*/
.px-edit-toggle__switch.dxbl-checkbox-checked {
    color: var(--px-text);
}

/* ============================================= badges, marks, notices == */

.px-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: var(--px-radius-badge);
    font-size: var(--px-text-2xs);
    font-weight: var(--px-weight-semibold);
    line-height: 1.5;
    white-space: nowrap;
    border: 1px solid transparent;
}

/* A badge in a two-line cell is as wide as its word, not the cell. */
.px-cell .px-badge {
    align-self: flex-start;
}

/*
    Soon, not wrong: a birthday tomorrow. Brand-soft rather than the warning
    colour, which the kit keeps for states that need attention.
*/
.px-badge--soon {
    background: var(--px-primary-soft);
    border-color: var(--px-primary-line);
    color: var(--px-primary);
}

/* "als Nächstes": filled, so it holds on the soft green of its row. */
.px-badge--now {
    background: var(--px-primary);
    color: var(--px-surface);
}

.px-badge--ok {
    background: var(--px-success-soft);
    border-color: var(--px-success-line);
    color: var(--px-success);
}

.px-badge--warn {
    background: var(--px-warning-soft);
    border-color: var(--px-warning-line);
    color: var(--px-warning);
}

.px-badge--info {
    background: var(--px-primary-soft);
    border-color: var(--px-primary-line);
    color: var(--px-primary-hover);
}

.px-badge--muted {
    background: var(--px-bg);
    border-color: var(--px-border);
    color: var(--px-muted);
}

.px-badge--danger {
    background: var(--px-danger-soft);
    border-color: var(--px-danger-line);
    color: var(--px-danger);
}

/* Status words inside grid cells. Colour only - a badge in every row of every
   column turns a list into confetti. */
.px-ok {
    color: var(--px-success);
    font-weight: var(--px-weight-semibold);
}

.px-closed {
    color: var(--px-muted);
}

.px-due-soon {
    color: var(--px-warning);
    font-weight: var(--px-weight-semibold);
}

.px-urgent {
    color: var(--px-danger);
    font-weight: var(--px-weight-semibold);
}

.px-overdue {
    color: var(--px-danger);
    font-weight: var(--px-weight-bold);
}

.px-muted {
    color: var(--px-muted);
}

/* The matched run inside a search hit. */
.px-mark {
    background: var(--px-highlight);
    border-radius: 2px;
    padding: 0 1px;
    font-weight: var(--px-weight-semibold);
    color: inherit;
}

.px-query {
    font-weight: var(--px-weight-semibold);
}

/*
    A notice is a tinted box with a matching hairline, and nothing else. It
    carried a 3px bar down its left edge until 24.10.2026 - that marker, and
    the same one on KPI tiles and in the settings list, made every box look
    tagged. The tint already says which kind of notice it is.
*/
.px-notice {
    padding: 10px 14px;
    margin-bottom: 14px;
    border: 1px solid var(--px-primary-line);
    border-radius: var(--px-radius-control);
    background: var(--px-primary-soft);
    color: var(--px-text);
    font-size: var(--px-text-sm);
}

.px-notice--warn {
    border-color: var(--px-warning-line);
    background: var(--px-warning-soft);
}

.px-notice--error {
    border-color: var(--px-danger-line);
    background: var(--px-danger-soft);
}

/* The licence's "nothing is saved here" line above every page it applies to. */
.px-license-banner {
    margin-bottom: 12px;
}

/* Lizenz page: base and modules, one per line, the badge at the end. */
.px-license-modules {
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 560px;
}

.px-license-modules > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--px-space-3);
    min-height: 34px;
    border-bottom: 1px solid var(--px-border);
}

.px-license-modules > li:last-child {
    border-bottom: 0;
}

.px-lead {
    margin: 0 0 14px;
    color: var(--px-muted);
    font-size: var(--px-text-sm);
}

.px-hint {
    display: block;
    margin-top: 4px;
    font-size: var(--px-text-xs);
    color: var(--px-muted);
}

/* ====================================== address suggestions == */

/* The street box and its list. Positioned, because the panel hangs under the
   editor - the same shape as .px-search in the shell, for the same reason:
   this is a list we render ourselves, not a component's drop-down. */
.px-suggest-field {
    position: relative;
}

.px-suggest-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--px-surface);
    border: 1px solid var(--px-border-card);
    border-radius: var(--px-radius-card);
    box-shadow: var(--px-shadow-raised);
    padding: 4px;
    z-index: 1100;
}

/* A row: street on top, where it is underneath. Two lines because the editor
   holds the street alone, so the place has to be somewhere it will not be
   typed into the record. */
.px-suggest {
    display: flex;
    flex-direction: column;
    gap: 1px;
    width: 100%;
    padding: 7px 10px;
    border: 0;
    border-radius: var(--px-radius-control);
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
    box-sizing: border-box;
    min-width: 0;
}

.px-suggest:hover,
.px-suggest--current {
    background: var(--px-primary-soft);
}

.px-suggest__name {
    color: var(--px-text);
}

.px-suggest__where {
    color: var(--px-muted);
    font-size: var(--px-text-xs);
}

/* "Keine Adresse gefunden". The component's own text is English, and there is
   no other way to translate it. */
.px-suggest__empty {
    display: block;
    padding: 12px 14px;
    color: var(--px-muted);
    font-size: var(--px-text-sm);
}

/* A hint that says the address data disagrees with what was typed. Warning,
   not danger: the save is not refused, and a postal code the dataset puts in
   another town is occasionally a boundary drawn differently rather than a
   typo - the practice has the letter in its hand. --px-warning on
   --px-surface is pinned by Text_colours_clear_the_contrast_floor. */
.px-hint--check {
    color: var(--px-warning);
    font-weight: var(--px-weight-medium);
}

/* ============================================================ toolbar == */

.px-toolbar {
    margin-bottom: 14px;
    background: transparent;
    border: 0;
}

/* The gap between groups comes from this variable, which the theme sets on
   .dxbl-btn-toolbar itself - setting it on the toolbar root does nothing. */
.px-toolbar.dxbl-btn-toolbar,
.px-toolbar .dxbl-btn-toolbar {
    --dxbl-btn-toolbar-spacing: 12px;
}

.px-toolbar__search {
    width: 280px;
    max-width: 100%;
}

/* ============================================================== grids == */

/*
    "No hard grid lines, ~44px rows."

    Every variable here is declared by the theme on ".dxbl-grid" (specificity
    0,1,0), so these tie and win on load order. Verified against core.min.css
    rather than assumed - there is no --dxbl-grid-row-height, row height comes
    from cell content plus padding, so 44px is
    text-height (20px) + 2 x 12px padding.
*/
.dxbl-grid {
    --dxbl-grid-border-color: transparent;
    --dxbl-grid-v-line-color: transparent;
    --dxbl-grid-h-line-color: var(--px-border-card);
    --dxbl-grid-text-cell-padding-y: 0.75rem;
    --dxbl-grid-text-cell-padding-x: 0.75rem;
    --dxbl-grid-header-bg: transparent;
    --dxbl-grid-hover-bg: var(--px-primary-soft);
    --dxbl-grid-border-radius: 0;
}

/*
    Column headers: quiet and small, on a faint band with a firmer rule under
    them. The row rules are the card edge's colour rather than the kit's light
    line - on the near-white page the light one measured about 1.2:1 and the
    owner saw "no borders in the table" (29.10.2026), the same finding that
    moved the card edge. Still no vertical lines.
*/
.dxbl-grid .dxbl-grid-table > thead > tr > th {
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-semibold);
    letter-spacing: 0.02em;
    color: var(--px-muted);
    background: var(--px-bg);
    border-bottom: 1px solid var(--px-border-card);
}

/* A grid that fills a card: the card already provides the padding. */
.px-grid--flush {
    margin: 0;
}

.px-grid--compact {
    --dxbl-grid-text-cell-padding-y: 0.5rem;
}

/* Two-line cells. This is what actually makes a row tall - there is no cell
   padding knob beyond the variables above. */
.px-cell {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.px-cell__main {
    font-weight: var(--px-weight-semibold);
    color: var(--px-text);
    overflow: hidden;
    text-overflow: ellipsis;
}

/*
    Two parts of one cell on one line - a date and the marker saying the sheet
    continues an earlier one. .px-cell stacks by default, which would make
    every row of the list two lines tall.
*/
.px-cell--inline {
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

/*
    A prescription that continues an earlier one, in the patient's history.
    An indent says "this follows the line above" with no extra column and no
    tree component - the list is already in issue order, so the step is all
    that is missing.
*/
.px-cell--chained {
    padding-left: 14px;
}

.px-cell__sub {
    font-size: var(--px-text-xs);
    color: var(--px-muted);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* A reason beside a badge: one line, cut to the column. */
.px-cell__sub--line {
    min-width: 0;
    white-space: nowrap;
}

/* A figure that needs attention in a sub line, e.g. more planned than prescribed (#140). */
.px-cell__sub--warn {
    color: var(--px-danger);
    font-weight: var(--px-weight-semibold);
}

.px-cell__sub--muted {
    color: var(--px-muted);
    opacity: 0.8;
}

.px-cell__time {
    font-weight: var(--px-weight-semibold);
    font-variant-numeric: tabular-nums;
}

/*
    A link in a table cell. The underline is always there but transparent, and
    fades in on hover with the arrow sliding in after it: a name in a list did
    not look clickable until the pointer had already found it (29.10.2026).
*/
.px-cell__link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    font-weight: var(--px-weight-semibold);
    color: var(--px-primary);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: color 0.12s ease, text-decoration-color 0.12s ease;
}

.px-cell__link::after {
    content: "\203A";
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.px-cell__link:hover {
    color: var(--px-primary-hover);
    text-decoration-color: currentColor;
}

.px-cell__link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* A badge in a stacked cell keeps its own width instead of stretching;
   beside text it keeps its whole width and the text gives way. */
.px-cell > .px-badge {
    align-self: flex-start;
    flex-shrink: 0;
}

.px-cell--inline > .px-badge {
    align-self: center;
}

/*
    A row command: an icon and a verb on one line, the size of a row rather
    than of a toolbar. It sits in the grid's flexible last column, against the
    right edge where the page header and the card keep their commands too
    (owner, 29.10.2026). What was wrong before was the wrapping link text in a
    narrow column, not the side it was on.
*/
.px-row-command {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

.px-row-command .px-action {
    height: 28px;
    padding: 0 8px;
    white-space: nowrap;
}

.px-row-actions,
.px-item-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

/* ====================================================== empty states == */

/*
    A dashed area with the action in it, rather than a line of grey text. An
    empty list is the one place a new user needs to be told what to do next.
*/
.px-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 8px;
    padding: 36px 24px;
    border: 1px dashed var(--px-border);
    border-radius: var(--px-radius-card);
    background: transparent;
    color: var(--px-text);
    text-align: center;
    font-size: var(--px-text-base);
}

.px-empty__hint {
    color: var(--px-muted);
    font-size: var(--px-text-sm);
    max-width: 46ch;
}

/* The green "+ ... anlegen" inside an empty state. */
.px-empty__action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--px-primary-line);
    border-radius: var(--px-radius-control);
    background: var(--px-primary-soft);
    color: var(--px-primary-hover);
    font: inherit;
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
    cursor: pointer;
    text-decoration: none;
}

.px-empty__action:hover {
    background: var(--px-primary);
    border-color: var(--px-primary);
    color: var(--px-on-primary);
    text-decoration: none;
}

/* ================================================== detail: read mode == */

/*
    Detail pages are read-only until "Bearbeiten" is pressed. A read field
    therefore has to look like what it is - a value, not an input - while
    keeping the same rhythm as the editor that replaces it, so switching modes
    does not make the page jump.
*/
.px-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 9px 14px;
}

.px-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.px-field--inline {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

/*
    The editor that replaces a read field in edit mode. It only has to occupy
    the same slot: the control inside brings its own box from the theme, so
    this must not draw a second outline around it.

    min-width: 0 because a DevExpress editor inside a grid cell will otherwise
    refuse to shrink below its content and push the card wider.
*/
.px-field__editor {
    display: block;
    min-width: 0;
    min-height: 32px;
}

/*
    A column of tick boxes standing in for one field, as the Kennzeichen on
    Muster 13 do. A column and not a row: the labels are long sentences
    ("besonderer Verordnungsbedarf"), and wrapped rows put a tick on one line
    and its words on the next.
*/
.px-checks {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 2px 0;
}

.px-field--wide {
    grid-column: 1 / -1;
}

.px-field__label {
    font-size: var(--px-text-2xs);
    font-weight: var(--px-weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--px-muted);
}

/*
    An outlined box with a small grey label above it, matching the editors it
    stands in for. Deliberately NOT a disabled input: a disabled input reads as
    "you may not change this", and this means "you are not editing yet".

    Its edge stays on the LIGHT --px-border while a DevExpress editor draws
    with --px-border-strong (the kit puts field borders there for the 3:1
    floor). Deliberate: read mode is a page of values, and a column of
    strong-edged boxes is the "boxes inside boxes" that cost the border a
    round on 24.10.2026. Edit mode is exactly when the edges should be
    findable. The geometry is identical either way, so nothing moves when the
    switch goes on - only the line gets firmer.
*/
.px-field__value {
    min-height: 32px;
    display: flex;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-control);
    background: var(--px-surface);
    color: var(--px-text);
    font-size: var(--px-text-base);
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.px-field__value--empty {
    color: var(--px-muted);
}

.px-field__value--multiline {
    align-items: flex-start;
    white-space: pre-wrap;
    min-height: 68px;
}

/*
    A value that is a link - the step before or after this one in a series of
    prescriptions. The box stays the box; only its content is clickable, so it
    still reads as a read-only field rather than as a button.
*/
.px-field__link {
    color: var(--px-primary);
    text-decoration: none;
    font-weight: var(--px-weight-semibold);
}

.px-field__link:hover {
    color: var(--px-primary-hover);
    text-decoration: underline;
}

.px-field__input {
    width: 100%;
}

/* --------------------------------------------------- the sticky savebar */

/*
    Sticks to the bottom of the viewport while a detail page is in edit mode,
    so Speichern is reachable without scrolling back up a long form.
*/
.px-savebar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: var(--px-card-gap) calc(var(--px-gutter) * -1) calc(var(--px-gutter) * -1);
    padding: 12px var(--px-gutter);
    background: var(--px-surface);
    border-top: 1px solid var(--px-border-strong);
    box-shadow: var(--px-shadow-bar-up);
}

/*
    The save bar on a detail page, which shows it directly BELOW the page
    header rather than at the end of a form.

    Two things have to change for that position, and the first is the bug the
    screenshot showed: the default bar carries a negative bottom margin so it
    can bleed to the foot of a form, and at the top of a page that margin pulls
    the next section up UNDER the bar, which then sits across the first row of
    KPI tiles and cuts their labels in half.

    The second is the anchor. Sticky to the bottom is right for a footer; here
    the bar pins just under .px-head (hence top: var(--px-head-h), the one
    sticky element above it) so Speichern stays reachable however far down the
    record you have scrolled. The shadow flips to point down, away from the bar
    into the content it now covers.
*/
.px-savebar--top {
    top: var(--px-head-h);
    bottom: auto;
    margin: 0 calc(var(--px-gutter) * -1) var(--px-card-gap);
    box-shadow: var(--px-shadow-bar-down);
}

.px-savebar__note {
    margin-right: auto;
    font-size: var(--px-text-sm);
    color: var(--px-muted);
}

/* Unsaved changes: dark text with a small brand dot, not the warning colour
   (owner, 14.11.2026: "I don't like the yellow"). Nothing is wrong yet. */
.px-savebar__note--dirty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--px-text);
    font-weight: var(--px-weight-semibold);
}

.px-savebar__note--dirty::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--px-primary);
}

/* A licence refusal is a real warning and keeps its colour. */
.px-savebar__note--refused {
    color: var(--px-warning);
    font-weight: var(--px-weight-semibold);
}

/* ============================================================== forms == */

.px-form {
    width: 100%;
}

.px-form-errors {
    margin: 0 0 14px;
    padding: 10px 14px;
    border: 1px solid var(--px-danger-line);
    border-radius: var(--px-radius-control);
    background: var(--px-danger-soft);
    color: var(--px-danger);
    font-size: var(--px-text-sm);
}

/* The box carries a <ul>, which wants neither browser bullets nor the 40px
   indent that comes with them. */
.px-form-errors ul {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.px-form-errors li {
    margin-top: 2px;
}

/*
    A tab of a capture form that still holds a required field with nothing in
    it - marked only once Speichern has been pressed and refused, never while
    the form is being filled in.

    It sets the theme's own source variables on the tab header instead of
    painting a colour. The rule that draws a tab caption reads
    --dxbl-tabs-tab-color, which resolves through the default/active tier, and
    its selector is a seven-class path in core.min.css that would have to be
    copied here to be beaten. Setting the tier on the header needs no such
    path, and no assumption about which element inside it carries the text.
    --dxbl-tabs-tab-active-bg is the underline beneath the open tab, so the
    mark holds while that tab is the one being read.
*/
.px-form .px-tab--gap {
    --dxbl-tabs-tab-default-color: var(--px-danger);
    --dxbl-tabs-tab-default-hover-color: var(--px-danger);
    --dxbl-tabs-tab-active-color: var(--px-danger);
    --dxbl-tabs-tab-active-hover-color: var(--px-danger);
    --dxbl-tabs-tab-active-bg: var(--px-danger);
}

/*
    The same mark on the field itself. A red tab has to lead to something
    visible once it is opened, and Patient, Standort and the Heilmittel rows
    carry no data annotation - the service is what refuses them - so they have
    no ValidationMessage of their own. Same metrics as .px-hint in the danger
    tone, so a field reads the same whichever of the two is speaking.
*/
.px-field-gap {
    display: block;
    margin-top: 4px;
    font-size: var(--px-text-xs);
    color: var(--px-danger);
}

/*
    The Privatrezept form (#40): a missing required field after Speichern.
    Both through the theme's own variables: the caption reads
    --dxbl-fl-caption-color (".dxbl-fl .dxbl-fl-cpt{...color:var(--dxbl-fl-caption-color)}")
    and the editor its border from --dxbl-text-edit-border-color
    ("border-color:var(--dxbl-text-edit-border-color)"), Office White 26.1.
*/
.px-form-gap {
    --dxbl-fl-caption-color: var(--px-danger);
    --dxbl-text-edit-border-color: var(--px-danger);
}

/* An editor with a button beside it ("Neuer Patient …", "Neuer Arzt …"). */
.px-field-with-action {
    display: flex;
    align-items: center;
    gap: var(--px-space-2);
}

.px-field-with-action > :first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.px-field-with-action > .dxbl-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Two short editors in one field (Frequenz von / bis). */
.px-field-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--px-space-2);
}

/* The remove button of a Heilmittel row, level with the editors beside it. */
.px-form-row-command {
    align-self: flex-end;
}

/* The "* Pflichtangabe" legend. The footer is right-aligned, so this takes the
   slack and ends up on the left, opposite the buttons. */
.px-editor-footer__note {
    margin-right: auto;
    font-size: var(--px-text-xs);
    color: var(--px-muted);
}

.px-editor-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 16px;
    margin-top: 4px;
    border-top: 1px solid var(--px-border);
}

/* ============================================================== meter == */

/*
    How much of a prescription is used up. One background under both the track
    and the figures, so the unfilled bar and the strip behind "3 von 10" are
    the same colour and it reads as a single control.

    Nothing is drawn over the fill: the figures sit beside it, always on
    --px-bg, which is a contrast pair Text_colours_clear_the_contrast_floor
    already checks. A label printed over a bar has to stay readable against
    both the filled and the unfilled part, which is a problem this layout
    simply does not have.
*/
.px-meter {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    padding: 3px 8px 3px 3px;
    border-radius: var(--px-radius-badge);
    background: var(--px-meter-bg);
}

.px-meter__track {
    display: flex;
    flex: 1 1 auto;
    min-width: 36px;
    height: 16px;
    border-radius: var(--px-radius-badge);
    overflow: hidden;
}

/*
    Planned, not yet done: the fill's green in stripes, straight after it.
    The track's rounding (overflow: hidden) shapes the far end.
*/
.px-meter__planned {
    display: block;
    flex: none;
    height: 100%;
    background: repeating-linear-gradient(
        135deg,
        var(--px-accent) 0 3px,
        transparent 3px 7px);
    box-shadow: inset 0 0 0 1px var(--px-accent);
}

.px-meter__fill {
    display: block;
    flex: none;
    height: 100%;
    border-radius: var(--px-radius-badge);
    background: var(--px-primary);
}

/*
    Nothing left to deliver. A different shade rather than a different hue:
    there is one green in this application, and a second one competing for the
    same meaning is what --px-success was collapsed into the brand to avoid.
*/
.px-meter--full .px-meter__fill {
    background: var(--px-primary-active);
}

.px-meter__label {
    flex: 0 0 auto;
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-medium);
    color: var(--px-text);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/*
    A birthday today or tomorrow, in the dashboard tile.

    A soft wash plus weight, not a marker on the left edge - the same rule the
    notices and KPI tiles follow. The wash is the brand's own soft tint rather
    than a second colour, so a marked row reads as "this one" and not as a
    status of its own; the badge beside the date says which of the two days it
    is.

    The class comes from the grid's CustomizeElement, so it lands on the <tr>.
    The cell background has to be cleared with it, or the theme's own cell fill
    paints over the row and only the gaps between cells take the wash.
*/
/*
    Birthdays (BirthdayRows): a weekend row is tinted, and the first birthday
    of a new month carries a heavy rule above it. The rule is an inset shadow
    rather than a border: the grid draws its own cell borders, and a border
    here would have to win against them; a shadow paints inside the cell
    whatever the border model. Weekend comes before soon, so today and
    tomorrow keep their green wash when they fall on a weekend.
*/
/*
    A marked row is one band from edge to edge. The grid draws a vertical
    border between cells, and on a coloured row it stayed white - a thin
    white line crossing every marked row. Transparent borders let the row's
    background run underneath them (backgrounds paint under the border).
    The month rule is a background band for the same reason: as an inset
    shadow it stopped short of every cell border and came out broken.
*/
.px-row-weekend > td,
.px-row-soon > td,
.px-row-month > td {
    border-left-color: transparent;
    border-right-color: transparent;
}

/*
    The dashboard's day: the next appointment on the brand's soft green, what
    is over in the muted tone, and struck through when it did not happen.
*/
.px-row-next > td {
    background-color: var(--px-primary-soft);
    border-left-color: transparent;
    border-right-color: transparent;
}

.px-row-past > td,
.px-row-past .px-cell__link {
    color: var(--px-muted);
}

.px-row-struck .px-cell__link,
.px-row-struck .px-cell__main {
    text-decoration: line-through;
}

/* The badge, then the room, on one line under the name. */
.px-today-state {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

/* Urlaubstage per therapist, above the Urlaubsplanung table. */
.px-absence-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin: 0 0 12px;
    font-size: var(--px-text-sm);
}

.px-absence-summary__label {
    color: var(--px-muted);
}

.px-absence-summary__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.px-absence-summary__requested {
    color: var(--px-warning);
    font-size: var(--px-text-xs);
}

/*
    Open Urlaubsanträge over the planner, for whoever decides: one line per
    request with its "Prüfen". Amber like a request's bar, so the card and
    the bars read as the same thing; the frame is the card's own edge.
*/
.px-pending {
    margin: 0 0 16px;
    border: 1px solid var(--px-warning-line);
    border-radius: var(--px-radius-card);
    background: var(--px-warning-soft);
}

.px-pending__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--px-warning-line);
}

.px-pending__icon {
    color: var(--px-warning);
    flex: 0 0 auto;
}

.px-pending__title {
    flex: 1 1 auto;
    margin: 0;
    font-size: var(--px-text-md);
    font-weight: var(--px-weight-semibold);
    color: var(--px-text);
}

.px-pending__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.px-pending__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--px-warning-line);
    font-size: var(--px-text-sm);
}

.px-pending__item:last-child {
    border-bottom: 0;
}

.px-pending__what {
    min-width: 90px;
    font-weight: var(--px-weight-semibold);
}

.px-pending__when {
    min-width: 220px;
    font-variant-numeric: tabular-nums;
}

/* Starting within a week: the dates in the danger colour, no frame. */
.px-pending__when--soon {
    color: var(--px-danger);
    font-weight: var(--px-weight-semibold);
}

.px-pending__days {
    color: var(--px-muted);
    font-variant-numeric: tabular-nums;
}

/* The button sits at the end of the line, however long the rest is. */
.px-pending__action {
    margin-left: auto;
}

/* A quiet filter line at the top of a flush card, above its grid. */
.px-card-filter {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--px-border);
    font-size: var(--px-text-sm);
}

/* A row command beside text in the last column: text left, button right. */
.px-row-command__text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    align-self: center;
}

/* A request starting within a week: its dates in the danger colour, no frame. */
.px-row-urgent /*
    The dashboard's Urlaubsanträge card: an amber edge, the same amber that
    marks a request in the planner and the calendar; the icon tile stays the
    cards' own green (owner, 07.11.2026). Doubled
    class to win over the brand sheet's card rule, which is linked last.
*/
.px-card.px-card--pending {
    border-color: var(--px-warning-line);
}

.px-request-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.px-request-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "who action"
        "when action"
        "state action";
    gap: 4px 12px;
    align-items: center;
    padding: 10px 16px;
    border-top: 1px solid var(--px-border);
    font-size: var(--px-text-sm);
}

.px-request-list__who {
    grid-area: who;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    min-width: 0;
}

.px-request-list__kind {
    font-weight: var(--px-weight-semibold);
}

.px-request-list__when {
    grid-area: when;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
}

.px-request-list__period {
    font-variant-numeric: tabular-nums;
}

/* Starting within a week: the dates in the danger colour, no frame. */
.px-request-list__period--soon {
    color: var(--px-danger);
    font-weight: var(--px-weight-semibold);
}

.px-request-list__days {
    color: var(--px-muted);
}

.px-request-list__state {
    grid-area: state;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.px-request-list__action {
    grid-area: action;
}

/* ---------------------------------------------- Mitteilungen an alle -- */

/*
    The form item holding the HTML editor takes its width from the drawer,
    never from its content. The form layout is a grid of 1fr tracks, which
    grow to the min-content of what they hold; the editor's toolbar, laid
    out once before its adaptive pass, reported its full width, the track
    grew to it, and the drawer cut off its right side - the toolbar then
    measured the widened track and never collapsed. inline-size containment
    takes the content out of that sum.
*/
.px-announcement-field {
    min-width: 0;
    contain: inline-size;
}

.px-announcement-field .dxbl-fl-ctrl {
    min-width: 0;
}

/* The editor in the drawer: the input's edge, like every other field. */
.px-announcement-editor {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--px-border-strong);
    border-radius: var(--px-radius-control);
    overflow: hidden;
}

/* The drawer's content, full width. */
.px-announcement-drawer {
    width: 100%;
    min-width: 0;
}

/* Until the editor has started: its frame and height, so nothing jumps. */
.px-announcement-editor--loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 320px;
}

.px-announcement-receipts {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--px-border);
}

.px-announcement-receipts__title {
    margin: 0 0 8px;
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
}

.px-announcement-receipts__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.px-announcement-receipts__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--px-border);
    font-size: var(--px-text-sm);
}

.px-announcement-receipts__item:last-child {
    border-bottom: 0;
}

.px-announcement-receipts__name {
    min-width: 180px;
    font-weight: var(--px-weight-medium);
}

.px-announcement-receipts__when {
    color: var(--px-muted);
    font-variant-numeric: tabular-nums;
}

/* The modal at sign-in: who wrote it and when, then the text as written. */
.px-announcement__meta {
    margin: 0 0 12px;
    color: var(--px-muted);
    font-size: var(--px-text-sm);
}

.px-announcement__body {
    font-size: var(--px-text-base);
    line-height: 1.55;
    color: var(--px-text);
    overflow-wrap: anywhere;
}

.px-announcement__body p {
    margin: 0 0 10px;
}

.px-announcement__body ul,
.px-announcement__body ol {
    margin: 0 0 10px;
    padding-left: 22px;
}

.px-announcement__body table {
    border-collapse: collapse;
    margin: 0 0 10px;
}

.px-announcement__body td,
.px-announcement__body th {
    padding: 4px 8px;
    border: 1px solid var(--px-border);
}

.px-announcement__body a {
    color: var(--px-primary);
}

/* The only way out of the modal: wide enough to be the obvious one. */
.px-announcement__confirm {
    min-width: 140px;
}

/* Two badges side by side in one cell ("abgelehnt" "neu"). */
.px-badge-row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.px-absence-period {
    color: var(--px-danger);
    font-weight: var(--px-weight-semibold);
}

.px-absence-period {
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------- absence drawer (requests) -- */

.px-absence-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0 0 8px;
    font-size: var(--px-text-sm);
}

.px-absence-status__text {
    color: var(--px-muted);
}

.px-absence-status__reason {
    margin: 0 0 12px;
    padding: 8px 12px;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-badge);
    background: var(--px-bg);
    font-size: var(--px-text-sm);
    color: var(--px-text);
}

.px-absence-context {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--px-border);
}

.px-absence-context__title {
    margin: 0 0 8px;
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
}

.px-absence-context__list {
    display: grid;
    grid-template-columns: minmax(140px, auto) 1fr;
    gap: 6px 16px;
    margin: 0;
    font-size: var(--px-text-sm);
}

.px-absence-context__list dt {
    color: var(--px-muted);
}

.px-absence-context__list dd {
    margin: 0;
    color: var(--px-text);
}

/* Planned treatments that would have to move: the figure in the danger colour. */
.px-absence-context__alert {
    color: var(--px-danger);
    font-weight: var(--px-weight-semibold);
}

.px-absence-context__others {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.px-absence-context__muted {
    color: var(--px-muted);
}

.px-absence-reason {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.px-absence-reason__label {
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
}

/* ------------------------------------------------------ Urlaubsplaner -- */

/*
    People down, days across. Each row is its own grid with the same
    columns (set inline: the number of days changes by month); the day
    cells and the bars share row 1, the bars drawn over the cells. The
    scrollport is the card's, never the page's.
*/
/* The planner and its legend sit flush in their card. */
.px-planner {
    min-width: 0;
}

.px-planner__scroll {
    overflow-x: auto;
    overscroll-behavior: contain;
}

/* Wide enough for the name and 31 days at their minimum; wider screens share out the rest. */
.px-planner__grid {
    min-width: 960px;
}

.px-planner__row {
    display: grid;
    align-items: stretch;
    min-height: 36px;
    border-bottom: 1px solid var(--px-border);
}

.px-planner__row:last-child {
    border-bottom: 0;
}

.px-planner__row > * {
    grid-row: 1;
}

.px-planner__row--head {
    min-height: 40px;
    background: var(--px-surface);
}

.px-planner__name {
    position: sticky;
    left: 0;
    z-index: 2;
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 10px 4px 12px;
    background: var(--px-surface);
    border-right: 1px solid var(--px-border);
    font-size: var(--px-text-sm);
    min-width: 0;
}

.px-planner__row--head .px-planner__name {
    color: var(--px-muted);
    font-weight: var(--px-weight-semibold);
}

.px-planner__who {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

/* A clock beside the name: this person has a request waiting. */
.px-planner__pending {
    display: inline-flex;
    color: var(--px-warning);
}

.px-planner__days {
    color: var(--px-muted);
    font-size: var(--px-text-2xs);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.px-planner__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    border-left: 1px solid var(--px-border);
    font-size: var(--px-text-2xs);
    color: var(--px-muted);
}

.px-planner__weekday {
    text-transform: none;
}

.px-planner__date {
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-semibold);
    color: var(--px-text);
    font-variant-numeric: tabular-nums;
}

.px-planner__day--weekend,
.px-planner__cell--weekend {
    background: var(--px-weekend-bg);
}

.px-planner__day--today .px-planner__date {
    color: var(--px-on-primary);
    background: var(--px-primary);
    border-radius: var(--px-radius-badge);
    padding: 0 5px;
}

.px-planner__cell {
    margin: 0;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--px-border);
    background: transparent;
}

.px-planner__cell--today {
    box-shadow: inset 2px 0 0 var(--px-primary-line), inset -2px 0 0 var(--px-primary-line);
}

button.px-planner__cell {
    cursor: pointer;
}

button.px-planner__cell:hover,
button.px-planner__cell:focus-visible {
    background: var(--px-primary-soft);
    outline: none;
}

.px-planner__bar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 5px 2px;
    padding: 0 6px;
    border: 1px solid transparent;
    border-radius: var(--px-radius-badge);
    font: inherit;
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-semibold);
    color: var(--px-text);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}

.px-planner__bar:focus-visible {
    outline: 2px solid var(--px-primary);
    outline-offset: 1px;
}

.px-planner__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.px-planner__bar--vacation {
    background: var(--px-cal-sun-fill);
    border-color: var(--px-cal-sun-head);
}

.px-planner__bar--sick {
    background: var(--px-cal-coral-fill);
    border-color: var(--px-cal-coral-head);
}

.px-planner__bar--training {
    background: var(--px-cal-sky-fill);
    border-color: var(--px-cal-sky-head);
}

.px-planner__bar--other {
    background: var(--px-cal-sage-fill);
    border-color: var(--px-cal-sage-head);
}

/*
    Asked for, not yet approved - whatever its kind, a request reads as a
    request first: amber hatch, a dashed amber edge, a clock and the word
    "beantragt". Approved leave is solid; nothing in between.
*/
.px-planner__bar--requested {
    gap: 4px;
    background:
        repeating-linear-gradient(135deg, var(--px-warning-line) 0 4px, transparent 4px 8px),
        var(--px-warning-soft);
    border: 2px dashed var(--px-warning);
    color: var(--px-warning);
}

.px-planner__bar-icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
}

/* Running on from the previous month, or into the next: no rounded end there. */
.px-planner__bar--cut-start {
    margin-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.px-planner__bar--cut-end {
    margin-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.px-planner__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 10px 16px;
    border-top: 1px solid var(--px-border);
    list-style: none;
    font-size: var(--px-text-xs);
    color: var(--px-muted);
}

.px-planner__legend li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* A legend swatch borrows the bar's colours, nothing of its layout. */
.px-planner__swatch {
    display: inline-block;
    width: 22px;
    height: 12px;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-badge);
}

.px-planner__swatch--weekend {
    background: var(--px-weekend-bg);
}

/* The Zuzahlungsrechnung shown to print (#92): the browser's PDF viewer. */
.px-copay-pdf {
    display: block;
    width: 100%;
    height: min(70vh, 760px);
    border: 1px solid var(--px-border-card);
    border-radius: var(--px-radius-control);
    background: var(--px-surface);
}

/* ------------------------------------------- Zuzahlungsbefreiung (#90) -- */

/* The card on the patient page's side column. */
.px-exempt {
    display: grid;
    gap: 4px;
}

.px-exempt__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.px-exempt__item {
    padding: 8px 0;
    border-top: 1px solid var(--px-border);
    font-size: var(--px-text-sm);
}

.px-exempt__period {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-weight: var(--px-weight-semibold);
    font-variant-numeric: tabular-nums;
}

/* Revoked: struck through, still listed - invoices were taxed with it. */
.px-exempt__item--revoked .px-exempt__period > span:first-child {
    color: var(--px-muted);
    text-decoration: line-through;
}

.px-exempt__meta {
    color: var(--px-muted);
    font-size: var(--px-text-xs);
}

.px-exempt__link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--px-primary);
    font: inherit;
    font-size: var(--px-text-xs);
    text-decoration: underline;
    cursor: pointer;
}

.px-exempt__revoke,
.px-exempt__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.px-exempt__actions {
    justify-content: flex-end;
}

.px-exempt__form {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.px-exempt__label {
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-semibold);
    color: var(--px-muted);
}

/* ------------------------------------------------- Körperschema (#130) -- */

/* The picture and its marks: the SVG lies exactly over the image, in the
   picture's own pixels (viewBox 1672 x 941), so marks stay put at any size. */
.px-bc-figure {
    position: relative;
    width: 100%;
    aspect-ratio: 1672 / 941;
    user-select: none;
}

.px-bc-figure__picture,
.px-bc-figure__marks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.px-bc-figure__picture {
    object-fit: contain;
    pointer-events: none;
}

.px-bc-figure__marks {
    overflow: visible;
}

.px-bc-mark {
    cursor: pointer;
}

.px-bc-mark__disc {
    stroke: var(--px-surface);
    stroke-width: 3;
}

/* The white edge under lines and outlines, so they read on the grey body. */
.px-bc-halo {
    stroke: var(--px-surface);
}

/* The selected mark (the list row it belongs to is marked too): a dark
   edge instead of the white one - quiet, no colour of its own (owner,
   12.11.2026: a green ring made everything look highlighted). */
.px-bc-mark--selected .px-bc-mark__disc {
    stroke: var(--px-text);
}

/* The running number, as in the practice's model: a yellow badge. */
.px-bc-badge {
    fill: var(--px-yellow);
    stroke: var(--px-surface);
    stroke-width: 2;
}

.px-bc-badge__text {
    fill: var(--px-text);
    font-family: var(--px-font);
    font-weight: var(--px-weight-bold);
}

.px-bc-pending,
.px-bc-rubber {
    pointer-events: none;
}

.px-bc-rubber {
    stroke: var(--px-muted);
    stroke-dasharray: 8 6;
}

/* The same number beside a line of text (card, list). */
.px-bc-number {
    display: inline-grid;
    place-items: center;
    flex: none;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 11px;
    background: var(--px-yellow);
    color: var(--px-text);
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-bold);
    font-variant-numeric: tabular-nums;
}

/* "Zur aktuellen Fassung", "Fassung 3 vom …": a quiet link, not a button. */
.px-bc-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--px-primary);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

/* The card on the patient record: the picture, then up to three marks. */
.px-bc-card .px-next {
    margin-top: var(--px-space-1);
}

.px-bc-card__preview {
    display: block;
    margin: 0 0 var(--px-space-2);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-control);
    background: var(--px-surface);
    overflow: hidden;
}

.px-bc-card__list {
    margin: 0 0 var(--px-space-2);
    padding: 0;
    list-style: none;
    font-size: var(--px-text-sm);
}

.px-bc-card__item {
    display: flex;
    align-items: center;
    gap: var(--px-space-2);
    padding: 5px 0;
    border-top: 1px solid var(--px-border);
}

.px-bc-card__item:first-child {
    border-top: 0;
}

/* A DevExpress toast in Praxo's look: no coloured stripe on its left edge
   (the house rule allows one only on calendar cards) and our corner radius.
   The theme draws the stripe as its own element:
   ".dxbl-toast-portal .dxbl-toast .dxbl-toast-accent-line" (0,3,0) in
   office-white.bs5.min.css; this rule is 0,4,0. */
.dxbl-toast-portal .dxbl-toast.px-toast {
    --dxbl-toast-border-radius: var(--px-radius-control);
}

.dxbl-toast-portal .dxbl-toast.px-toast .dxbl-toast-accent-line {
    display: none;
}

/* Saturated, in the brand green rather than the theme's own (owner,
   12.11.2026: "more visible"). The theme's
   ".dxbl-toast-portal .dxbl-toast.dxbl-toast-theme-saturated.dxbl-toast-render-success"
   is 0,4,0; this one matches it and comes later. */
.dxbl-toast-portal .dxbl-toast.dxbl-toast-theme-saturated.px-toast {
    --dxbl-toast-background-color: var(--px-primary);
    --dxbl-toast-front-color: var(--px-surface);
    --dxbl-toast-icon-color: var(--px-surface);
    --dxbl-toast-box-shadow: var(--px-shadow-raised);
    font-weight: var(--px-weight-semibold);
}

/* ---- the clicked mark's flyout and the point handles of "Form ändern" ---- */

.px-bc-stage__inner {
    position: relative;
}

.px-bc-flyout {
    position: absolute;
    z-index: 5;
    min-width: 220px;
    margin: 18px 0 0 18px;
    padding: var(--px-space-3);
    border: 1px solid var(--px-border-card);
    border-radius: var(--px-radius-card);
    background: var(--px-surface);
    box-shadow: var(--px-shadow-raised);
}

/* Near the right edge it opens to the left of the marker, near the bottom above it. */
.px-bc-flyout--left {
    margin-left: -18px;
    transform: translateX(-100%);
}

.px-bc-flyout--up {
    margin-top: -18px;
    translate: 0 -100%;
}

.px-bc-flyout__head {
    display: flex;
    align-items: center;
    gap: var(--px-space-2);
    margin: 0 0 var(--px-space-2);
}

.px-bc-flyout__title {
    display: grid;
    flex: 1 1 auto;
    line-height: 1.3;
}

.px-bc-flyout__region {
    color: var(--px-muted);
    font-size: var(--px-text-sm);
}

.px-bc-flyout__actions {
    display: grid;
    gap: var(--px-space-1);
}

.px-bc-flyout__button {
    display: flex;
    align-items: center;
    gap: var(--px-space-2);
    min-height: 40px;
    padding: 0 var(--px-space-3);
    border: 1px solid var(--px-border-strong);
    border-radius: var(--px-radius-control);
    background: var(--px-surface);
    color: var(--px-text);
    font: inherit;
    cursor: pointer;
}

.px-bc-flyout__button:hover {
    background: var(--px-primary-soft);
}

.px-bc-flyout__button--danger {
    border-color: var(--px-danger-line);
    color: var(--px-danger);
}

.px-bc-flyout__button--danger:hover {
    background: var(--px-danger-soft);
}


.px-bc-handles {
    cursor: move;
}

.px-bc-handle {
    fill: var(--px-surface);
    stroke: var(--px-primary);
}

/* Unsaved marks: the save bar shows only then, as a bright warning-tinted
   banner fixed to the bottom of the window (owner, 12.11.2026). Fixed, not
   sticky: out of the page flow it changes no layout when it appears. Under
   the header it pushed the picture down between the two clicks of a line;
   sticky at the page's end the browser glided the page down as it came in.
   .px-bc-end keeps the last card clear of it. */
.px-bc-unsaved .px-savebar {
    position: fixed;
    left: var(--px-side-w);
    right: 0;
    bottom: 0;
    z-index: 900;
    margin: 0;
    /* White like every bar; no yellow (owner, 14.11.2026). The shadow lifts it off the picture. */
    background: var(--px-surface);
    border-top: 1px solid var(--px-border-card);
    box-shadow: var(--px-shadow-bar-alert);
}

.px-bc-end {
    height: 72px;
}

@media (max-width: 1180px) {
    .px-bc-unsaved .px-savebar {
        left: var(--px-side-w-narrow);
    }
}

@media (max-width: 760px) {
    .px-bc-unsaved .px-savebar {
        left: 0;
    }
}

/* The editor: the picture with the toolbar to its right. Nothing in it is
   text to select: a stray selection was scrolled back into view on every
   redraw (see praxo-bodychart.js). The list of marks below, with its
   fields, is outside and stays selectable. */
.px-bc-editor {
    user-select: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--px-space-4);
    margin: 0 0 var(--px-space-4);
}

.px-bc-stage-wrap,
.px-bc-tools {
    padding: var(--px-space-3);
    border: 1px solid var(--px-border-card);
    border-radius: var(--px-radius-card);
    background: var(--px-surface);
    box-shadow: var(--px-shadow-card);
}

.px-bc-stage-wrap {
    min-width: 0;
}

.px-bc-stagebar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--px-space-2) var(--px-space-4);
    margin: 0 0 var(--px-space-2);
}

.px-bc-hint {
    flex: 1 1 260px;
    color: var(--px-muted);
    font-size: var(--px-text-sm);
}

.px-bc-zoom {
    display: inline-flex;
    align-items: center;
    gap: var(--px-space-1);
}

.px-bc-zoom__step {
    width: 32px;
    height: 32px;
    border: 1px solid var(--px-border-strong);
    border-radius: var(--px-radius-control);
    background: var(--px-surface);
    color: var(--px-text);
    font: inherit;
    font-size: var(--px-text-md);
    cursor: pointer;
}

.px-bc-zoom__step:hover:not(:disabled) {
    background: var(--px-primary-soft);
}

.px-bc-zoom__step:disabled {
    opacity: 0.45;
    cursor: default;
}

.px-bc-zoom__value {
    min-width: 48px;
    text-align: center;
    font-size: var(--px-text-sm);
    font-variant-numeric: tabular-nums;
}

/* Scrolls sideways only once the picture is zoomed past the card's width;
   at 100 % it is as tall as the picture, with no scrollbar (owner, 12.11.2026). */
.px-bc-stage {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
}

.px-bc-stage__inner {
    min-width: 100%;
}

/* A finger on the picture places and drags marks instead of scrolling. */
.px-bc-editor .px-bc-figure__marks {
    touch-action: none;
}

.px-bc-editor .px-bc-mark {
    cursor: grab;
}

/* Ten tools, large enough to hit with a finger (owner, 12.11.2026: the
   first set was too many and too small). */
.px-bc-tools {
    display: grid;
    grid-template-columns: repeat(2, 104px);
    align-content: start;
    gap: var(--px-space-2);
}

.px-bc-tool {
    display: grid;
    justify-items: center;
    gap: var(--px-space-1);
    min-height: 88px;
    padding: var(--px-space-2) var(--px-space-1);
    border: 1px solid transparent;
    border-radius: var(--px-radius-control);
    background: none;
    color: var(--px-text);
    font: inherit;
    font-size: var(--px-text-sm);
    cursor: grab;
    touch-action: none;
}

.px-bc-tool:hover {
    background: var(--px-primary-soft);
}

.px-bc-tool--on {
    border-color: var(--px-primary);
    background: var(--px-primary-soft);
    color: var(--px-text);
}

.px-bc-tool__disc {
    width: 48px;
    height: 48px;
}

.px-bc-tool__label {
    line-height: 1.2;
    text-align: center;
}

/* The tool following the pointer while it is dragged onto the picture. */
.px-bc-ghost {
    position: fixed;
    z-index: 2000;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    pointer-events: none;
    opacity: 0.85;
}

/* The marks below the picture: number, kind, then the fields. */
.px-bc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.px-bc-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--px-space-2) var(--px-space-3);
    padding: var(--px-space-2);
    border-top: 1px solid var(--px-border);
    border-radius: var(--px-radius-control);
}

.px-bc-row:first-child {
    border-top: 0;
}

.px-bc-row--selected {
    background: var(--px-primary-soft);
}

.px-bc-row__kind {
    flex: 0 0 180px;
    font-weight: var(--px-weight-semibold);
}

.px-bc-row__fields {
    display: flex;
    flex: 1 1 420px;
    flex-wrap: wrap;
    gap: var(--px-space-2) var(--px-space-3);
}

.px-bc-row__field {
    display: grid;
    flex: 1 1 180px;
    gap: 2px;
}

.px-bc-row__field--short {
    flex: 0 0 120px;
}

.px-bc-row__field--wide {
    flex: 2 1 260px;
}

.px-bc-row__caption {
    color: var(--px-muted);
    font-size: var(--px-text-xs);
}

.px-bc-row__text {
    flex: 1 1 300px;
}

.px-bc-row__who {
    flex-basis: 100%;
    padding-left: 34px;
    color: var(--px-muted);
    font-size: var(--px-text-xs);
}

/* On a report: the chart as it was sent, with its legend. */
.px-bc-report {
    max-width: 760px;
    margin: 0 0 var(--px-space-2);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-control);
    overflow: hidden;
}

.px-bc-legend {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--px-text-sm);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .px-bc-editor {
        grid-template-columns: minmax(0, 1fr);
    }

    .px-bc-tools {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    }
}

/* ----------------------------------------------------- Dokumentation (#28) -- */

.px-doc-search__label {
    display: block;
    margin: 0 0 6px;
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
}

.px-doc-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.px-doc-list__item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    padding: 7px 0;
    border-top: 1px solid var(--px-border);
    font-size: var(--px-text-sm);
}

.px-doc-list__meta {
    color: var(--px-muted);
}

.px-doc-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 0 0 12px;
}

.px-doc-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.px-doc-filter {
    min-width: 240px;
}

.px-doc-entries {
    margin: 0;
    padding: 0;
    list-style: none;
}

.px-doc-entry {
    padding: 12px 0;
    border-top: 1px solid var(--px-border);
}

.px-doc-entry:first-child {
    border-top: 0;
}

.px-doc-entry__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 6px;
    font-size: var(--px-text-sm);
}

.px-doc-entry__date {
    font-weight: var(--px-weight-semibold);
    font-variant-numeric: tabular-nums;
}

.px-doc-entry__who {
    color: var(--px-muted);
}

/* "korrigiert · frühere Fassungen": a quiet link, not a button. */
.px-doc-entry__toggle {
    padding: 0;
    border: 0;
    background: none;
    color: var(--px-primary);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

/* The text as written: its line breaks kept. */
.px-doc-entry__text {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

/* Struck through, still readable: nothing is deleted. */
.px-doc-entry--struck .px-doc-entry__text {
    color: var(--px-muted);
    text-decoration: line-through;
}

.px-doc-entry__reason {
    margin: 6px 0 0;
    color: var(--px-danger);
    font-size: var(--px-text-sm);
}

.px-doc-entry__commands {
    margin-top: 6px;
}

.px-doc-revisions {
    margin: 8px 0 0;
    padding: 0 0 0 12px;
    border-left: 2px solid var(--px-border);
    list-style: none;
}

.px-doc-revisions__item {
    padding: 6px 0;
}

.px-doc-revisions__meta {
    display: block;
    color: var(--px-muted);
    font-size: var(--px-text-xs);
}

.px-doc-strike {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    margin-top: 8px;
}

/* In the appointment drawer: from the treatment to its documentation. */
.px-appt-doc-link {
    margin-top: 12px;
}

/* Einstellungen → Termine → E-Mail: the test address beside its button (#129). */
.px-mail-test {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--px-space-2);
}

.px-mail-test__to {
    flex: 1 1 260px;
    max-width: 420px;
}

/* In the appointment drawer: Termin- and Zeitbestätigung (#131). */
.px-appt-print {
    display: flex;
    flex-wrap: wrap;
    gap: var(--px-space-2) var(--px-space-4);
    margin-top: 12px;
}

/* -------------------------------------------------- Freie Termine (#24) -- */

.px-slot-filter {
    margin-bottom: 16px;
}

.px-slot-days {
    display: grid;
    gap: 12px;
}

.px-slot-day {
    padding: 14px 18px;
}

.px-slot-day__title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 8px;
    font-size: var(--px-text-md);
    font-weight: var(--px-weight-semibold);
}

.px-slot-day__count {
    color: var(--px-muted);
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-normal);
}

/* One therapist per row: who, then their free start times. */
.px-slot-row {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    gap: 6px 14px;
    align-items: start;
    padding: 8px 0;
    border-top: 1px solid var(--px-border);
}

.px-slot-row__who {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.px-slot-row__times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* A free time: a link into the calendar, sized for a finger as for a mouse. */
.px-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--px-primary-line);
    border-radius: var(--px-radius-badge);
    background: var(--px-primary-soft);
    color: var(--px-primary);
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}

.px-slot:hover,
.px-slot:focus-visible {
    background: var(--px-primary);
    border-color: var(--px-primary);
    color: var(--px-on-primary);
    outline: none;
}

@media (max-width: 640px) {
    .px-slot-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Two links under a card title, set apart. */
.px-card__below-sep {
    margin: 0 6px;
    color: var(--px-muted);
}

/* A row of checkboxes that belong together (Fachrichtung). */
.px-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

/*
    Working hours in the user drawer (#8): one row per weekday, the day's
    switch and four times. A grid, so the columns line up under their heads.
*/
.px-workweek {
    display: grid;
    gap: 6px;
}

.px-workweek__row {
    display: grid;
    grid-template-columns: 70px repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
}

.px-workweek__row--head {
    color: var(--px-muted);
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-semibold);
}

.px-workweek__day {
    font-weight: var(--px-weight-medium);
}

/* A therapist as a label in their calendar colour (px-cal--* sets it). */
.px-person {
    display: inline-block;
    max-width: 100%;
    padding: 2px 8px;
    border-radius: var(--px-radius-badge);
    background: var(--px-appt-head);
    color: var(--px-text);
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-semibold);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* A Pause on the dashboard: the calendar's break yellow, across the row. */
.px-row-break > td {
    background-color: var(--px-break-bg);
    border-left-color: transparent;
    border-right-color: transparent;
}

.px-row-weekend > td {
    background-color: var(--px-weekend-bg);
}

.px-row-month > td {
    background-image: linear-gradient(var(--px-primary), var(--px-primary));
    background-size: 100% 3px;
    background-position: top left;
    background-repeat: no-repeat;
    background-origin: border-box;
}

.px-row-soon > td {
    background-color: var(--px-primary-soft);
    font-weight: var(--px-weight-semibold);
}

.px-row-soon > td .px-cell__sub {
    color: var(--px-text);
}

/* ============================================================= panels == */

/*
    The two-up panel row on the overview. Kept as its own class rather than
    folded into .px-bento because these two panels are a fixed pair, not a
    reflowing set of cards.
*/
.px-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--px-card-gap);
    align-items: start;
}

.px-panel {
    background: var(--px-surface);
    border: 1px solid var(--px-border-card);
    border-radius: var(--px-radius-card);
    box-shadow: var(--px-shadow-card);
    padding: 0 0 8px;
    overflow: hidden;
    min-width: 0;
}

.px-panel__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 10px;
}

.px-panel__title {
    margin: 0;
    font-size: var(--px-text-md);
    font-weight: var(--px-weight-bold);
    color: var(--px-text);
}

.px-panel__note {
    font-size: var(--px-text-xs);
    color: var(--px-muted);
}

/* Tiles: the pre-KPI name, still used where a tile is not a plain number. */
.px-tiles {
    margin-bottom: var(--px-card-gap);
}

.px-tile {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--px-surface);
    border: 1px solid var(--px-border-card);
    border-radius: var(--px-radius-card);
    box-shadow: var(--px-shadow-card);
    padding: 18px 20px;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

.px-tile__label {
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-semibold);
    letter-spacing: 0.02em;
    color: var(--px-muted);
}

.px-tile__value {
    font-size: var(--px-text-display);
    font-weight: var(--px-weight-semibold);
    line-height: 1.15;
    color: var(--px-text);
}

.px-tile__value--text {
    font-size: var(--px-text-lg);
    line-height: var(--px-leading-small);
    overflow: hidden;
    text-overflow: ellipsis;
}

.px-tile__note {
    font-size: var(--px-text-xs);
    color: var(--px-muted);
}

.px-tile__link {
    margin-top: 8px;
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
    color: var(--px-primary);
    text-decoration: none;
}

.px-tile__link:hover {
    color: var(--px-primary-hover);
    text-decoration: underline;
}

.px-tile--alert {
    border-color: var(--px-danger-line);
}

.px-tile--alert .px-tile__value {
    color: var(--px-danger);
}

/* ====================================== dialogs, drawers and backdrops == */

/*
    DxPopup.CssClass goes on "the entire Popup", and which element that is
    cannot be checked here: a popup body never renders server-side. So the
    styling goes through BodyCssClass and HeaderCssClass, which land on the
    body and header elements themselves.

    The theme paints the body padding at
      .dxbl-modal>.dxbl-modal-root>.dxbl-popup>.dxbl-modal-content>.dxbl-modal-body
    - five classes, specificity 0,5,0. A rule written as ".px-dialog-body"
    alone loses silently, which is why dialogs stayed cramped for several
    rounds. App rules carry the theme's own path plus the app class: six
    classes, 0,6,0, which wins.

    DESCENDANT combinators, not the theme's ">" chain. That is the fix for the
    help drawer, which came out with no padding at all while the centred
    dialogs were fine: a popup that is full-height and edge-aligned does not
    nest identically, and one extra wrapper anywhere in that chain makes a
    ">"-path miss the element completely and silently. Descendants tolerate
    the wrapper and keep the specificity, so the rule cannot be broken by a
    DOM detail we are not allowed to see - a popup body never renders
    server-side, so there is no way to check the nesting from here.
*/
.dxbl-modal .dxbl-modal-root .dxbl-popup .dxbl-modal-content .dxbl-modal-body.px-dialog-body {
    padding: 0;
    background: var(--px-surface);
}

/*
    THE PADDING LIVES HERE, not on the body, and this is the fix for content
    sitting flush against the sides of every dialog in the application.

    Every popup here uses <BodyTemplate>, and the DevExpress docs say plainly
    what that does: it "replaces the default render fragment (including
    paddings, scrollbars, etc.)", and BodyCssClass's own page adds that with a
    body template the template's appearance settings take priority. So the six
    classes and the descendant combinators above were never the problem - they
    were aimed at an element that a templated popup does not pad, and no amount
    of specificity reaches an element the component did not render.

    px-dialog-content is OUR div, the single child of every BodyTemplate. A
    rule on an element we render ourselves cannot miss it, cannot be outranked
    and does not depend on knowing DevExpress's internal structure - which
    matters here more than anywhere, because a popup body never renders
    server-side and this is unreachable from a fetched page.

    The body above keeps padding: 0 so that if BodyCssClass DOES land on a
    padded element in some popup variant, the two do not add up.
*/
.px-dialog-content,
.px-drawer-content {
    box-sizing: border-box;
    padding: 18px var(--px-dialog-pad) 16px;
}

/*
    Scrolls itself, for the same reason it pads itself: a templated body is not
    the scrollport DevExpress would have given us. Without this the popup grows
    to its content and the footer - the buttons - leaves the bottom of the
    screen with nothing to scroll back.

    It is the ONLY scrollport, which is the fix for the two Y scrollbars that
    appeared side by side in every dialog and in help. The DevExpress body
    outside it was capped and scrolling as well, so the same content had two
    bars; the rule below hands the height to this element and lets that one
    wrap to it.

    overscroll-behavior: contain stops the scroll from chaining to the page
    once this box reaches its end - which is why scrolling inside help scrolled
    the page underneath it.

    The ceiling is 680px, not 560. At 560 the treatment dialog scrolled while
    visibly fitting on the screen - the content came to roughly 580px and the
    cap, not the viewport, was what it hit. The viewport term still governs on
    a short screen; the ceiling only stops the dialog growing without limit on
    a tall one.
*/
.px-dialog-content--scroll {
    max-height: clamp(260px, calc(100vh - 150px), 680px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.px-drawer-content {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;

    /*
        The drawer body is a flex column with align-items: flex-start (the
        theme's), so without this the content is only as wide as what is in
        it. A form layout always filled it, which hid it; the Mitteilung's
        read view (text, no form) came out half as wide as its drawer.
    */
    align-self: stretch;
    min-width: 0;
}

/*
    A fixed body height so switching tabs never resizes the window under the
    pointer. "flex" has to be pinned too: the theme's same 0,5,0 rule sets
    flex: 1 1 auto on the body, which otherwise overrides an explicit height.

    Fixed, but never taller than the screen. A flat 560px plus the dialog
    header and the modal's own margins is more than a laptop viewport has, so
    the foot of the dialog - which is where the buttons live - fell below the
    fold with nothing to scroll it back.

    The cap and the scrolling now live on px-dialog-content--scroll, the div we
    render inside the template, and this element only has to get out of its
    way: height: auto so it wraps to that div, overflow: hidden so it is not a
    second scrollport. Capping both put two Y scrollbars side by side on the
    same content.
*/
.dxbl-modal .dxbl-modal-root .dxbl-popup .dxbl-modal-content .dxbl-modal-body.px-dialog-body--fixed {
    height: auto;
    flex: 0 0 auto;
    overflow: hidden;
}

.dxbl-modal .dxbl-modal-root .dxbl-popup .dxbl-modal-content .dxbl-modal-header.px-dialog-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--px-border-strong);
    font-size: var(--px-text-md);
    font-weight: var(--px-weight-bold);
    color: var(--px-text);
}

/*
    The popup padding variables are declared on .dxbl-modal (0,1,0), so a
    single-class .px-dialog rule only ties; .dxbl-modal.px-dialog wins.
*/
.dxbl-modal.px-dialog {
    --dxbl-popup-border-radius: var(--px-radius-card);
}

/*
    The footer of a form inside a dialog or a drawer.

    On its own, .px-editor-footer is a divider plus a right-aligned row, which
    is right inside a card on a page. In a dialog it left the buttons sitting
    on the edge: the body scrolls, so the row ends up hard against the bottom
    with nothing under it, and the divider stopped short of both sides.

    So inside a dialog body it becomes a sticky footer bar: a rule above it, a
    solid background so the form scrolls under rather than through it, and
    bottom: 0 so Speichern is reachable without scrolling a long form to its
    end. Sticky bottom: 0 pins it to the body's padding box, which is the
    dialog's own bottom edge, so the bar's padding-bottom is what keeps the
    buttons off that edge.

    The spacing around it is deliberately tight: 28px of margin over 18/20 of
    padding put 66px of air around two buttons, which was most of the gap the
    owner saw between the form and the footer AND a good part of why a dialog
    that visibly fitted still scrolled.

    It used to bleed sideways by the body's padding to reach the dialog edges,
    with negative margins cancelled by equal padding. In the treatment dialog
    that came out with the buttons hard against the right edge - the bleed
    applied and the compensating padding did not - and it cannot be debugged
    from here, because a popup body never renders server-side. The bar now
    stays inside the body's content box, so the buttons line up with the right
    edge of the fields above them and nothing has to cancel out.
*/
.px-dialog-content .px-editor-footer,
.px-drawer-content .px-editor-footer,
.px-dialog-body .px-editor-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    box-sizing: border-box;
    gap: 12px;
    margin: 16px 0 0;
    padding: 12px 0 10px;
    background: var(--px-surface);
    border-top: 1px solid var(--px-border-strong);
}

/*
    And the buttons in it get a size of their own. At the global Medium size
    mode they sat shoulder to shoulder in a thin strip; a dialog footer is
    where the two decisions of the whole form are taken.

    min-width / min-height rather than a theme variable on purpose. A button
    takes its horizontal padding from --dxbl-btn-btn-caption-padding-horizontal
    on an inner .dxbl-btn-caption, selected by the size-mode class, and
    overriding a chain like that is how this application spent rounds being
    orange. The box is a plain property, and .dxbl-btn centres its caption, so
    a minimum size does the same job with nothing guessed.
*/
.px-dialog-content .px-editor-footer .dxbl-btn,
.px-drawer-content .px-editor-footer .dxbl-btn,
.px-dialog-body .px-editor-footer .dxbl-btn {
    min-width: 132px;
    min-height: 42px;
    font-size: var(--px-text-md);
}

/* ============================================================= drawer == */

/*
    Every drawer in the application - help, and the create/edit drawers for
    patient, Standort, Benutzer and Verordnung - is one <Drawer> component, a
    DxDrawer in Overlap mode. These three rules are what make a target-less
    drawer visible at all.

    DxDrawer sizes its panel against its target content area. This one has no
    target - @Body cannot be passed into an interactive island from the
    statically rendered layout - so without a box of its own the drawer is
    zero-height and the panel never appears, which is exactly how the first
    attempt failed. Pinning the ROOT over the viewport gives the component the
    target area it measures against, and the panel inherits the full height
    from it.

    pointer-events is not a detail: a fixed box across the whole viewport would
    otherwise eat every click on the page beneath, whether the drawer is open
    or not.
    The root passes clicks through and the panel takes them back. The shading
    layer is DevExpress's own (ApplyBackgroundShading) and sits inside the
    root, so it needs them back too - a click on the shade is what
    CloseOnTargetContentClick listens for.

    .dxbl-drawer-panel is the panel class DevExpress documents on this
    component (it appears in the Drawer docs' own CSS example), not a guess
    off the rendered DOM.
*/
/*
    z-index 1040: above the sidebar (900, 1000 off-canvas), and BELOW
    DevExpress's popup layer, which places every drop-down list in a
    dxbl-popup-cell at 1050. At 1200 every combo inside a drawer opened
    behind it - the button said aria-expanded and nothing was visible - which
    read as "the drop-downs don't work" across every editor at once.
*/
.px-drawer-shell {
    position: fixed;
    inset: 0;
    z-index: 1040;
    pointer-events: none;
}

.px-drawer-shell .dxbl-drawer-panel,
.px-drawer-shell .dxbl-drawer-shading {
    pointer-events: auto;
}

/* Closed, it is not there at all - nothing to hit, nothing to read out. */
.px-drawer-shell--closed {
    visibility: hidden;
}

/*
    Two things the theme does to .dxbl-drawer-body that have to be undone here,
    both read out of the served core.min.css rather than guessed:

    - it pads the body itself, and px-drawer-content inside it pads again, so
      the two would add up. Zeroed through the theme's own two variables, which
      is the approach the DevExpress Drawer docs use in their mini-mode sample.
    - "align-items: flex-start" on a flex column makes the single child
      shrink-to-fit instead of filling the panel, so the whole help panel would
      have come out as narrow as its longest line.

    min-height: 0 is what lets the inner div actually scroll: a flex item will
    not shrink below its content without it, so the overflow-y on
    px-drawer-content would never engage and the panel would grow instead.
*/
.px-drawer-shell .dxbl-drawer-body {
    --dxbl-drawer-panel-body-padding-x: 0;
    --dxbl-drawer-panel-body-padding-y: 0;
    align-items: stretch;
    min-height: 0;

    /* Not a second scrollport: px-drawer-content inside it is the one. */
    overflow: hidden;
}

/*
    The header is ours, because DxDrawer has no HeaderText/ShowCloseButton the
    way DxPopup does - it has a HeaderTemplate, so the close button is a plain
    <button>, like every other trigger in this shell.
*/
.px-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.px-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: var(--px-radius-control);
    background: transparent;
    color: var(--px-muted);
    cursor: pointer;
}

.px-drawer-close:hover {
    background: var(--px-bg);
    color: var(--px-text);
}

/* ===================================================== help contents == */

/*
    The help panel's body. It is the SAME <div> as px-drawer-content, which
    brings the padding, the height and the one scrollbar; px-help-body adds
    only the column layout. It used to repeat height/overflow here, which is
    half of why help had two scrollbars.

    .px-help-drawer is still passed as the shell's extra class, and the rule
    it carries is this one - the drawer geometry above is shared now.
*/
.px-help-drawer .px-help-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* "Zur Übersicht". Pulled left by the link button's own padding so it lines
   up with the article under it instead of looking indented. */
.px-help-back {
    align-self: flex-start;
    margin-left: -8px;
}

.px-help-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--px-primary-line);
    border-radius: var(--px-radius-control);
    background: var(--px-primary-soft);
    color: var(--px-primary-hover);
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-bold);
    line-height: 1;
    cursor: pointer;
    flex: none;
}

.px-help-link:hover {
    background: var(--px-primary);
    border-color: var(--px-primary);
    color: var(--px-on-primary);
}

.px-help-section {
    margin: 0 0 6px;
    padding: 0;
    font-size: var(--px-text-2xs);
    font-weight: var(--px-weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--px-muted);
}

.px-help-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.px-help-list:last-child {
    margin-bottom: 0;
}

/*
    A topic in the index.

    These rules described markup that no longer exists: .px-help-item carried
    only a border-bottom, and .px-help-item__summary the flex/padding/cursor of
    a <summary> element - left over from a <details>/<summary> version. The
    component renders a <button> with two <span>s, so the button kept every
    browser default: grey face, centred text, outset border, width to fit. The
    index looked like a stack of staggered grey boxes.

    StylesheetTests did not catch it, and could not: it checks that a class HAS
    a rule, not that the rule describes the element the class is on. A rule can
    be perfectly valid CSS for markup that was deleted.
*/
.px-help-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 9px 10px;
    border: 0;
    border-bottom: 1px solid var(--px-border);
    border-radius: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.px-help-item:hover,
.px-help-item:focus-visible {
    background: var(--px-primary-soft);
}

.px-help-item__title {
    font-size: var(--px-text-base);
    font-weight: var(--px-weight-semibold);
    color: var(--px-text);
}

.px-help-item__summary {
    font-size: var(--px-text-xs);
    line-height: 1.45;
    color: var(--px-muted);
}

.px-help-article {
    display: flex;
    flex-direction: column;
    padding: 0 0 24px;
}

.px-help-article__title {
    margin: 0 0 6px;
    font-size: var(--px-text-lg);
    font-weight: var(--px-weight-bold);
    color: var(--px-text);
}

.px-help-article__lead {
    margin: 0 0 18px;
    color: var(--px-muted);
    font-size: var(--px-text-sm);
}

.px-help-body__heading {
    margin: 16px 0 6px;
    font-size: var(--px-text-base);
    font-weight: var(--px-weight-bold);
    color: var(--px-text);
}

.px-help-body__para {
    margin: 0 0 10px;
    font-size: var(--px-text-base);
    line-height: var(--px-leading-body);
    color: var(--px-text);
}

.px-help-body__list {
    margin: 0 0 10px;
    padding-left: 20px;
    font-size: var(--px-text-base);
    line-height: var(--px-leading-body);
}

/* ========================================================== planned == */

/* An area whose module does not exist yet (WorkInProgress). Reads as a short
   text page, not as an empty list: no dashed frame, because nothing is
   missing - the area is announced, not empty. */
.px-wip {
    max-width: 64ch;
    color: var(--px-text);
    font-size: var(--px-text-base);
    line-height: var(--px-leading-body);
}

.px-wip__lead {
    margin: 0 0 16px;
}

.px-wip__heading {
    margin: 0 0 6px;
    font-size: var(--px-text-base);
    font-weight: var(--px-weight-bold);
}

.px-wip__list {
    margin: 0 0 16px;
    padding-left: 20px;
}

.px-wip__note {
    margin: 0;
    color: var(--px-muted);
    font-size: var(--px-text-sm);
}

/* ========================================================= calendar == */

/*
    The scheduler (Praxo.Modules.Scheduling). An appointment is a solid
    fill. What it does decides the colour, not who does it: a treatment is
    filled by its Heilmittel (TreatmentColors), an internal entry is sage, a
    Pause light yellow (--px-break-bg), an all-day entry brand-soft and an
    absence hatched grey. The therapist's colour appears only on their column
    header and on the initials (.px-appt__who) where there are no columns.
    The status ribbon is the one sanctioned left-edge stripe, because it
    carries state (see "No left-edge accent stripes").

    None of this can be checked without a browser: the scheduler builds its
    grid client-side. The rules are written against our own markup
    (AppointmentCard) only, never against DevExpress's appointment wrapper,
    so they cannot miss an element they guessed at.
*/
/*
    Compact rows. DevExpress declares these on .dxbl-scheduler, the same
    element as .px-calendar, so the two-class selector wins without guessing
    at inner elements (values read from the served Fluent core.min.css:
    30px slots, 16px hour labels, 12px minute labels). Slots are 30 minutes
    (the owner's choice, 28.10.2026) at 44px, so an hour is 88px instead of
    120 and a working day fits on a laptop without scrolling past lunch - and
    a 25-minute appointment is 37px tall, which is what the title and its one
    line of details need. Shorter, and the second line is cut off.
*/
.px-calendar.dxbl-scheduler {
    min-height: 640px;
    --dxbl-scheduler-table-time-cell-height: 44px;
    --dxbl-scheduler-table-hour-cell-font-size: var(--px-text-sm);
    --dxbl-scheduler-table-minute-cell-font-size: var(--px-text-2xs);
    --dxbl-scheduler-header-day-color: var(--px-text);
    --dxbl-scheduler-header-weekday-color: var(--px-text);
    --dxbl-scheduler-header-weekday-font-weight: var(--px-weight-semibold);
}

/*
    Finer steps (Einstellungen > Termine, #33). Each row gets shorter but not
    in proportion: an hour stays at least 88px, so a 25-minute appointment
    keeps the 37px its title and one line of details need, and a 5-minute row
    is still a target a mouse can hit. Same element and specificity as the
    rule above, later in the file, so these win.
*/
.px-calendar--slot5.dxbl-scheduler {
    --dxbl-scheduler-table-time-cell-height: 18px;
}

.px-calendar--slot10.dxbl-scheduler {
    --dxbl-scheduler-table-time-cell-height: 24px;
}

.px-calendar--slot15.dxbl-scheduler {
    --dxbl-scheduler-table-time-cell-height: 30px;
}

.px-calendar--slot20.dxbl-scheduler {
    --dxbl-scheduler-table-time-cell-height: 36px;
}

.px-calendar--slot25.dxbl-scheduler {
    --dxbl-scheduler-table-time-cell-height: 40px;
}

/*
    The therapist above a column, after the reference: a solid band in the
    therapist's header tone with a dark rule under it, name in bold. Who a
    column belongs to is the first thing read on the Mitarbeiter view.
*/
.px-cal-head {
    display: flex;
    align-items: center;
    margin: -4px -8px;
    padding: 9px 10px;
    background: var(--px-appt-head);
    color: var(--px-text);
}

.px-cal-head__name {
    font-size: var(--px-text-base);
    font-weight: var(--px-weight-bold);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
    The popup a click on an appointment opens. --px-shadow-raised is the
    elevation of something that floats over the page; the theme's own is
    nearly flat, and on a busy day view the tooltip blended into the grid.
*/
.px-calendar-tooltip {
    box-shadow: var(--px-shadow-raised);
    border: 1px solid var(--px-border-card);
}

/*
    Drag to create (praxo-calendar.js): the host stops text being selected
    while a range is drawn, and the slots under the drag take the brand's soft
    wash so the user sees what they are about to book.
*/
.px-calendar-host {
    user-select: none;
}

.px-calendar-host td.px-calendar-drawing {
    background: var(--px-primary-soft);
    box-shadow: inset 2px 0 0 var(--px-primary), inset -2px 0 0 var(--px-primary);
}

/* Wraps on a narrow screen rather than pushing the picker off the edge. */
.px-calendar-toolbar {
    flex-wrap: wrap;
}

/*
    The editors in the calendar bar take the height of its buttons. Measured
    in a browser: Fluent's toolbar buttons are 35px, the tag box 35px, and a
    DxDateEdit in a toolbar template only 32px - the step the owner saw
    between "Heute" and the date. Two classes, above the theme's one.
*/
.px-calendar-toolbar__date {
    width: 132px;
}

.dxbl-text-edit.px-calendar-toolbar__date,
.dxbl-text-edit.px-calendar-toolbar__people {
    height: 35px;
    box-sizing: border-box;
}

.px-calendar-toolbar__people {
    width: 260px;
}

/*
    DxTagBox draws its tags *and* the EditBoxDisplayTemplate, tags first, as
    direct children of the box (read off the rendered markup). Here the
    summary line replaces them, so they go - three classes, above the
    theme's own two-class tag rules.
*/
.dxbl-tag-box.px-calendar-toolbar__people > .dxbl-tag {
    display: none;
}

/* A checkbox in front of each therapist in the picker's list. */
.px-pick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.px-pick__box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid var(--px-border-strong);
    border-radius: var(--px-radius-control);
    background: var(--px-surface);
    color: var(--px-surface);
}

.px-pick__box--on {
    border-color: var(--px-primary);
    background: var(--px-primary);
}

.px-pick__box .px-icon {
    width: 14px;
    height: 14px;
}

.px-calendar-toolbar__people-text {
    padding: 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
    An appointment, after the reference: a solid fill (px-cal--*), the title
    first and the time under it, no outline. A treatment takes the colour of
    its Heilmittel, an internal entry sage, a Pause --px-break-bg yellow and
    an all-day entry its own - never the therapist's colour, which stays on
    the column header and the .px-appt__who initials.
*/
.px-appt {
    --px-appt-bg: var(--px-cal-forest-bg);
    --px-appt-line: var(--px-cal-forest-line);
    --px-appt-fill: var(--px-cal-forest-fill);
    --px-appt-head: var(--px-cal-forest-head);
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 2px 6px 2px 12px;
    border: 1px solid var(--px-appt-fill);
    border-radius: var(--px-radius-control);
    background: var(--px-appt-fill);
    color: var(--px-text);
    font-size: var(--px-text-xs);
    line-height: var(--px-leading-small);
}

/*
    A Pause is time off, not work: a light yellow with a dashed edge, the
    same yellow as its row on the dashboard (owner, 28.10.2026). It was the
    neutral sage, which sat too close to the green treatments to stand out.
*/
.px-appt--break {
    --px-appt-fill: var(--px-break-bg);
    border: 1px dashed var(--px-break-line);
    color: var(--px-text);
}

/*
    "Einfarbig" (#144): every treatment white with the card edge; the status
    ribbon in brand green carries the only colour.
*/
.px-appt--plain {
    --px-appt-fill: var(--px-surface);
    --px-appt-line: var(--px-primary);
    border-color: var(--px-border-strong);
}

.px-appt--allday {
    --px-appt-fill: var(--px-primary-soft);
    font-weight: var(--px-weight-semibold);
}

.px-cal--forest {
    --px-appt-bg: var(--px-cal-forest-bg);
    --px-appt-line: var(--px-cal-forest-line);
    --px-appt-fill: var(--px-cal-forest-fill);
    --px-appt-head: var(--px-cal-forest-head);
}

.px-cal--leaf {
    --px-appt-bg: var(--px-cal-leaf-bg);
    --px-appt-line: var(--px-cal-leaf-line);
    --px-appt-fill: var(--px-cal-leaf-fill);
    --px-appt-head: var(--px-cal-leaf-head);
}

.px-cal--pine {
    --px-appt-bg: var(--px-cal-pine-bg);
    --px-appt-line: var(--px-cal-pine-line);
    --px-appt-fill: var(--px-cal-pine-fill);
    --px-appt-head: var(--px-cal-pine-head);
}

.px-cal--mint {
    --px-appt-bg: var(--px-cal-mint-bg);
    --px-appt-line: var(--px-cal-mint-line);
    --px-appt-fill: var(--px-cal-mint-fill);
    --px-appt-head: var(--px-cal-mint-head);
}

.px-cal--moss {
    --px-appt-bg: var(--px-cal-moss-bg);
    --px-appt-line: var(--px-cal-moss-line);
    --px-appt-fill: var(--px-cal-moss-fill);
    --px-appt-head: var(--px-cal-moss-head);
}

.px-cal--sky {
    --px-appt-bg: var(--px-cal-sky-bg);
    --px-appt-line: var(--px-cal-sky-line);
    --px-appt-fill: var(--px-cal-sky-fill);
    --px-appt-head: var(--px-cal-sky-head);
}

.px-cal--lavender {
    --px-appt-bg: var(--px-cal-lavender-bg);
    --px-appt-line: var(--px-cal-lavender-line);
    --px-appt-fill: var(--px-cal-lavender-fill);
    --px-appt-head: var(--px-cal-lavender-head);
}

.px-cal--sun {
    --px-appt-bg: var(--px-cal-sun-bg);
    --px-appt-line: var(--px-cal-sun-line);
    --px-appt-fill: var(--px-cal-sun-fill);
    --px-appt-head: var(--px-cal-sun-head);
}

.px-cal--coral {
    --px-appt-bg: var(--px-cal-coral-bg);
    --px-appt-line: var(--px-cal-coral-line);
    --px-appt-fill: var(--px-cal-coral-fill);
    --px-appt-head: var(--px-cal-coral-head);
}

.px-cal--berry {
    --px-appt-bg: var(--px-cal-berry-bg);
    --px-appt-line: var(--px-cal-berry-line);
    --px-appt-fill: var(--px-cal-berry-fill);
    --px-appt-head: var(--px-cal-berry-head);
}

.px-cal--turquoise {
    --px-appt-bg: var(--px-cal-turquoise-bg);
    --px-appt-line: var(--px-cal-turquoise-line);
    --px-appt-fill: var(--px-cal-turquoise-fill);
    --px-appt-head: var(--px-cal-turquoise-head);
}

.px-cal--sage {
    --px-appt-bg: var(--px-cal-sage-bg);
    --px-appt-line: var(--px-cal-sage-line);
    --px-appt-fill: var(--px-cal-sage-fill);
    --px-appt-head: var(--px-cal-sage-head);
}

/*
    The lines of a card keep their height. In a fixed-height column flex box
    every child shrinks by default, and with overflow hidden the title
    squeezed itself until the patient's name was cut in half; with
    flex-shrink 0 the lines that do not fit run off the bottom instead,
    where the card's own overflow hides them - the detail goes first, the
    name never.
*/
.px-appt > * {
    flex-shrink: 0;
}

/*
    The repeat arrows of a series or a rule, in the card's bottom-right
    corner as in the reference. Absolute, so it takes no line from a
    25-minute card; the card is the positioned box.
*/
.px-appt {
    position: relative;
}

/* Whose entry it is where there are no therapist columns: initials in their colour. */
.px-appt__who {
    display: inline-block;
    min-width: 22px;
    margin-right: 5px;
    padding: 0 4px;
    border-radius: var(--px-radius-badge);
    background: var(--px-appt-head);
    color: var(--px-text);
    font-size: var(--px-text-2xs);
    font-weight: var(--px-weight-bold);
    line-height: 16px;
    text-align: center;
}

/* Room for the arrows, so the details line ends before them. */
.px-appt--repeats {
    padding-right: 24px;
}

.px-appt__repeat {
    position: absolute;
    right: 4px;
    bottom: 3px;
    display: flex;
    color: var(--px-text);
}

.px-appt__repeat .px-icon {
    width: var(--px-icon-sm);
    height: var(--px-icon-sm);
}

/*
    Row 1 (#143): the name takes what is left and ellipses; "HB" and the
    count keep their width, the count at the row's end.
*/
.px-appt__title {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    font-weight: var(--px-weight-bold);
    white-space: nowrap;
}

.px-appt__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The Hausbesuch house in the card's top-right corner; the title row makes room for it. */
.px-appt--travel {
    overflow: visible;
}

/*
    #7: the travel time around a home visit, hatched outside the card in
    the card's own line colour; its height is rows of the calendar
    (--px-travel) times the row height the scheduler uses.
*/
.px-appt__travel {
    --px-travel: 0; /* set inline per card */
    position: absolute;
    left: 0;
    right: 0;
    height: calc(var(--dxbl-scheduler-table-time-cell-height, 44px) * var(--px-travel));
    background: repeating-linear-gradient(
        135deg,
        var(--px-appt-line) 0 2px,
        transparent 2px 6px);
    border: 1px dashed var(--px-appt-line);
    pointer-events: none;
}

.px-appt__travel--before {
    bottom: 100%;
    border-bottom: 0;
    border-radius: var(--px-radius-control) var(--px-radius-control) 0 0;
}

.px-appt__travel--after {
    top: 100%;
    border-top: 0;
    border-radius: 0 0 var(--px-radius-control) var(--px-radius-control);
}

.px-appt__hb {
    position: absolute;
    top: 3px;
    right: 4px;
    display: flex;
}

.px-appt--homevisit .px-appt__title {
    padding-right: 16px;
}

/*
    HomeVisitMark (PO, 15.11.2026): the red house of a Hausbesuch, in the
    calendar, the prescription list and on the prescription. The icon takes
    its colour from here (house rule: colour the context). --px-danger on
    white and on the calendar's pastels is above the 3:1 a graphic needs.
*/
.px-hb {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--px-hb);
    vertical-align: middle;
}

.px-hb .px-icon {
    width: var(--px-icon-sm);
    height: var(--px-icon-sm);
}

.px-hb--text {
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
}

/* The word beside the house is text: the darker red that clears 4.5:1. */
.px-hb--text > span {
    color: var(--px-danger);
}

.px-appt__count {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    font-weight: var(--px-weight-semibold);
}

.px-appt__time {
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.px-appt__detail {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
    The status ribbon down the left edge, after the DevExpress reference -
    asked for by the owner on 28.10.2026, and the one exception to "no
    left-edge accent stripes": it is not decoration but the appointment's
    state, in a pattern a full day can be scanned by. Hatched while a
    treatment is planned, solid green once attended, cross-hatched when
    cancelled, red when the patient did not come; a solid line for practice
    business, which has no attendance. The legend above the calendar uses the
    same rules on its own sample, hence the second selector on each.
*/
.px-appt__ribbon,
.px-cal-legend__ribbon {
    background: var(--px-appt-line, var(--px-primary));
}

.px-appt__ribbon {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 6px;
}

.px-appt--treatment.px-appt--planned .px-appt__ribbon,
.px-cal-legend__ribbon.px-appt--treatment.px-appt--planned {
    background: repeating-linear-gradient(
        135deg,
        var(--px-appt-line, var(--px-primary)) 0 2px,
        var(--px-surface) 2px 4px);
}

.px-appt--attended .px-appt__ribbon,
.px-cal-legend__ribbon.px-appt--attended {
    background: var(--px-success);
}

.px-appt--cancelled .px-appt__ribbon,
.px-cal-legend__ribbon.px-appt--cancelled {
    background:
        repeating-linear-gradient(45deg, var(--px-muted) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(-45deg, var(--px-muted) 0 1px, transparent 1px 4px),
        var(--px-surface);
}

.px-appt--noshow .px-appt__ribbon,
.px-cal-legend__ribbon.px-appt--noshow {
    background: var(--px-danger);
}

.px-appt--break .px-appt__ribbon {
    background: var(--px-break-line);
}

/* The legend: Heilmittel colours on screen, then the ribbon's states. */
.px-cal-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin: 0 0 10px;
    color: var(--px-muted);
    font-size: var(--px-text-xs);
}

.px-cal-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.px-cal-legend__item--gap {
    margin-left: 12px;
}

.px-cal-legend__swatch {
    width: 14px;
    height: 14px;
    border-radius: var(--px-radius-control);
    background: var(--px-appt-fill);
}

.px-cal-legend__ribbon {
    width: 6px;
    height: 16px;
}

/*
    An absence from the Urlaubsplanung in the all-day row: a hatched grey,
    nothing like a treatment or a Pause, so "away" reads at a glance.
*/
.px-appt--absence {
    --px-appt-line: var(--px-muted);
    background:
        repeating-linear-gradient(135deg, transparent 0 6px, var(--px-border) 6px 8px),
        var(--px-weekend-bg);
    border: 1px solid var(--px-border-strong);
    font-weight: var(--px-weight-semibold);
}

/* Asked for, not yet approved: amber and dashed like the planner's bar; nothing blocked yet. */
.px-appt--requested {
    --px-appt-line: var(--px-warning);
    background:
        repeating-linear-gradient(135deg, var(--px-warning-line) 0 4px, transparent 4px 8px),
        var(--px-warning-soft);
    border: 2px dashed var(--px-warning);
    color: var(--px-warning);
}

/* Abgesagt stays where it was, struck through, so the gap is explained. */
.px-appt--cancelled,
.px-appt--noshow {
    --px-appt-fill: var(--px-surface);
    border-color: var(--px-border-strong);
    color: var(--px-muted);
}

.px-appt--cancelled .px-appt__title,
.px-appt--cancelled .px-appt__time,
.px-appt--noshow .px-appt__title {
    text-decoration: line-through;
}

/* Practice business rather than a patient: the title in regular weight. */
.px-appt--internal .px-appt__title {
    font-weight: var(--px-weight-semibold);
}

/*
    An appointment's history in the drawer: a quiet list under a hairline,
    one entry per change - when, who, what kind, then the changed fields.
*/
.px-appt-history {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--px-border);
}

.px-appt-history__title {
    margin: 0 0 8px;
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
}

.px-appt-history__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.px-appt-history__item {
    padding: 6px 0;
    border-bottom: 1px solid var(--px-border);
    font-size: var(--px-text-sm);
}

.px-appt-history__item:last-child {
    border-bottom: 0;
}

.px-appt-history__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
    color: var(--px-text);
}

.px-appt-history__when,
.px-appt-history__kind {
    color: var(--px-muted);
    font-variant-numeric: tabular-nums;
}

.px-appt-history__line {
    color: var(--px-text);
    padding-left: 12px;
}

/* Aufgaben: the comment box above a task's comments, and a comment's text,
   which keeps the line breaks it was typed with. The list itself reuses the
   appointment history's rows - same shape, one look. */
.px-task-comment-new {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}

.px-task-comment-new > .dxbl-memo {
    align-self: stretch;
}

.px-task-comment__text {
    padding-left: 12px;
    color: var(--px-text);
    white-space: pre-line;
}

/* Aufgabe / Notiz at the top of the create drawer (#91): the status switch
   of the appointment editor, two segments. */
.px-task-kind {
    margin-bottom: var(--px-space-3);
}

/* The appointment drawer. */
.px-appt-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.px-appt-editor__items,
.px-appt-editor__days {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.px-appt-editor__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.px-appt-editor__status {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--px-border);
}

/*
    The status switch: four joined segments, the current one filled -
    green for Erschienen, the danger tone for Nicht erschienen and Abgesagt,
    brand for Geplant. A planned appointment whose time has come outlines
    Erschienen as the expected answer.
*/
.px-seg {
    display: flex;
    flex-wrap: wrap;
}

.px-seg__item {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    margin-left: -1px;
    border: 1px solid var(--px-border-strong);
    background: var(--px-surface);
    color: var(--px-text);
    font: inherit;
    font-size: var(--px-text-sm);
    white-space: nowrap;
    cursor: pointer;
}

.px-seg__item:first-child {
    margin-left: 0;
    border-radius: var(--px-radius-control) 0 0 var(--px-radius-control);
}

.px-seg__item:last-child {
    border-radius: 0 var(--px-radius-control) var(--px-radius-control) 0;
}

.px-seg__item:hover:not(:disabled) {
    background: var(--px-bg);
}

.px-seg__item:disabled {
    cursor: default;
}

.px-seg__item .px-icon {
    width: var(--px-icon-sm);
    height: var(--px-icon-sm);
}

.px-seg__item--on,
.px-seg__item--on:hover:not(:disabled) {
    position: relative;
    z-index: 1;
    border-color: var(--px-primary);
    background: var(--px-primary);
    color: var(--px-surface);
    font-weight: var(--px-weight-semibold);
}

.px-seg__item--done,
.px-seg__item--done:hover:not(:disabled) {
    border-color: var(--px-success);
    background: var(--px-success);
}

.px-seg__item--off,
.px-seg__item--off:hover:not(:disabled) {
    border-color: var(--px-danger);
    background: var(--px-danger);
}

.px-seg__item--suggest {
    position: relative;
    z-index: 1;
    border: 2px solid var(--px-success);
    color: var(--px-success);
    font-weight: var(--px-weight-semibold);
}

/* The compact form, for a card header: shorter, and only as wide as its words. */
.px-seg--sm .px-seg__item {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 10px;
    font-size: var(--px-text-xs);
}

.px-appt-editor__cancel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.px-appt-editor__cancel .dxbl-text-edit {
    flex: 1 1 220px;
}

/*
    Disables everything inside when the user may not edit (see
    AppointmentEditor). A fieldset brings a border, padding and a min-width
    of its own; none of them is wanted.
*/
.px-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

/* A destructive command stands apart from Abbrechen / Speichern. */
.px-editor-footer__left {
    margin-right: auto;
}

/* The series preview: a plain table, one date per row. */
.px-series-preview {
    width: 100%;
    margin-top: 12px;
    border-collapse: collapse;
    font-size: var(--px-text-sm);
}

.px-series-preview th,
.px-series-preview td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--px-border);
    text-align: left;
}

.px-series-preview th {
    color: var(--px-muted);
    font-weight: var(--px-weight-semibold);
}

.px-series-preview__warn td {
    background: var(--px-warning-soft);
}

/* ====================================================== settings area == */

.px-settings-area {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: var(--px-card-gap);
    align-items: start;
}

.px-settings-nav {
    background: var(--px-surface);
    border: 1px solid var(--px-border-card);
    border-radius: var(--px-radius-card);
    box-shadow: var(--px-shadow-card);
    padding: 12px;
    position: sticky;
    top: calc(var(--px-head-h) + var(--px-gutter));
}

.px-settings-nav__heading {
    margin: 10px 10px 4px;
    font-size: var(--px-text-2xs);
    font-weight: var(--px-weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--px-muted);
}

.px-settings-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.px-settings-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--px-radius-control);
    color: var(--px-text);
    text-decoration: none;
    font-size: var(--px-text-base);
}

.px-settings-nav__link:hover {
    background: var(--px-bg);
    color: var(--px-text);
    text-decoration: none;
}

/* The current category: the green wash and weight, no edge bar. */
.px-settings-nav__link--current {
    background: var(--px-primary-soft);
    color: var(--px-primary-hover);
    font-weight: var(--px-weight-semibold);
}

.px-settings-nav__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.px-settings-nav__hint {
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-normal);
    color: var(--px-muted);
}

.px-settings-content {
    min-width: 0;
}

/* The page under the tabs: what praxo-motion.js fades between settings pages. */
.px-settings-page {
    min-width: 0;
}

/* Cards stacked on a settings page keep the gap they have everywhere else. */
.px-settings-page > .px-card + .px-card {
    margin-top: var(--px-card-gap);
}

/* ============================================================== login == */

.px-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(900px 440px at 50% -8%, var(--px-primary-soft) 0%, var(--px-bg) 62%);
}

.px-login__card {
    width: 100%;
    max-width: 400px;
    background: var(--px-surface);
    border: 1px solid var(--px-border-card);
    border-radius: var(--px-radius-card);
    box-shadow: var(--px-shadow-raised);
    padding: 32px;
    box-sizing: border-box;
}

/*
    The Praxo sign-in (owner, 15.11.2026, after a reference): a photo panel on
    the left, the form on the right on plain white, no card around it. The
    photo panel is inset with rounded corners; the season's photo covers it,
    its average colour shows while it loads, the brand green when there is
    none. The admin's sign-in keeps the centred card (no --split).
*/
.px-login--split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(400px, 1fr);
    align-items: stretch;
    padding: 0;
    background: var(--px-surface);
}

/* Edge to edge, the whole height of the window (owner, 15.11.2026: no inset, no rounded corners). */
.px-login__photo {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--px-side-bg);
}

/* No photo (no access key, Unsplash not reachable): the brand, large and white on a green-to-ink wash. */
.px-login__photo--brand {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(155deg, var(--px-primary) 0%, var(--px-side-bg) 70%);
}

.px-login__mark {
    --px-logo-h: 72px;
    --px-logo-word: 48px;
    color: #FFFFFF;
}

.px-login__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The photographer's credit, bottom left on the photo, as Unsplash asks. */
.px-login__credit {
    position: absolute;
    left: 16px;
    bottom: 14px;
    margin: 0;
    padding: 4px 10px;
    border-radius: var(--px-radius-badge);
    background: rgba(0, 0, 0, 0.45);
    color: #FFFFFF;
    font-size: var(--px-text-xs);
}

.px-login__credit a {
    color: #FFFFFF;
    font-weight: var(--px-weight-semibold);
    text-decoration: none;
}

.px-login__credit a:hover,
.px-login__credit a:focus-visible {
    text-decoration: underline;
}

.px-login__pane {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.px-login--split .px-login__card {
    max-width: 360px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

/* A phone or a narrow window: the form alone. */
@media (max-width: 900px) {
    .px-login--split {
        grid-template-columns: minmax(0, 1fr);
    }

    .px-login__photo {
        display: none;
    }
}

/*
    The primary logo on the card, in the brand colour - the modules and the
    word take it from here, the leaf keeps its own. This was .px-login__title,
    the product name set as an <h1>.
*/
.px-login__logo {
    color: var(--px-primary);
}

.px-login__lead {
    margin: 4px 0 24px;
    font-size: var(--px-text-sm);
    color: var(--px-muted);
}

/*
    The sign-in page is statically rendered, so these are plain HTML inputs,
    not DevExpress editors. The Classic theme used to supply Bootstrap's
    form-control; Fluent ships no Bootstrap, so the inputs are styled here to
    match the editors everywhere else.
*/
.px-login__input {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-control);
    background: var(--px-surface);
    color: var(--px-text);
    font: inherit;
    font-size: var(--px-text-base);
    box-sizing: border-box;
}

.px-login__input:focus {
    outline: none;
    border-color: var(--px-primary);
    box-shadow: 0 0 0 3px var(--px-focus-ring);
}

.px-login__submit {
    width: 100%;
    height: 38px;
    margin-top: 8px;
    border: 1px solid var(--px-primary);
    border-radius: var(--px-radius-control);
    background: var(--px-primary);
    color: var(--px-on-primary);
    font: inherit;
    font-size: var(--px-text-base);
    font-weight: var(--px-weight-semibold);
    cursor: pointer;
}

.px-login__submit:hover {
    background: var(--px-primary-hover);
    border-color: var(--px-primary-hover);
}

.px-login__hint {
    margin: 18px 0 0;
    font-size: var(--px-text-xs);
    color: var(--px-muted);
    text-align: center;
}

/*
    "Mit Passkey anmelden" (a demo for now): the reference's dark full-width
    button above the form, in the sidebar's ink, then a ruled "oder".
*/
.px-login__passkey {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: var(--px-radius-control);
    background: var(--px-side-bg);
    color: #FFFFFF;
    font-weight: var(--px-weight-semibold);
    text-decoration: none;
}

.px-login__passkey:hover,
.px-login__passkey:focus-visible {
    background: var(--px-text);
    color: #FFFFFF;
}

.px-login__passkey .px-icon {
    width: var(--px-icon-sm);
    height: var(--px-icon-sm);
}

.px-login__or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--px-muted);
    font-size: var(--px-text-xs);
}

.px-login__or::before,
.px-login__or::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--px-border);
}

/* Version and build under the sign-in card's hint, for support. */
.px-login__version {
    margin: 10px 0 0;
    font-size: var(--px-text-2xs);
    color: var(--px-muted);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/*
    Version and build at the foot of the sidebar (owner, 15.11.2026: version
    and build inside the app). Under the last entry rather than pinned to
    the bottom: the sidebar is 100vh tall, so anything above the page (the
    DevExpress evaluation banner) pushed a pinned line out of the window. In
    the quiet sidebar ink; hidden in the narrow rail, back in the open overlay.
*/
.px-side__version {
    /* auto: pushed to the foot of the column, however short the menu (owner, 15.11.2026). */
    margin: auto 0 0;
    padding: 12px 8px 0;
    border-top: 1px solid var(--px-side-rule);
    font-size: var(--px-text-2xs);
    color: var(--px-side-ink-quiet);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Validation messages from Blazor's own components on the sign-in page. */
.px-login .validation-message {
    display: block;
    margin-top: 4px;
    font-size: var(--px-text-xs);
    color: var(--px-danger);
}

/* ========================================================= styleguide == */

.px-guide__section {
    margin-bottom: 28px;
}

.px-guide__swatches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.px-guide__swatch {
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-control);
    overflow: hidden;
    font-size: var(--px-text-xs);
}

.px-guide__chip {
    height: 56px;
}

.px-guide__meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 8px 10px;
    background: var(--px-surface);
}

.px-guide__name {
    font-weight: var(--px-weight-semibold);
    color: var(--px-text);
}

.px-guide__value {
    color: var(--px-muted);
    font-variant-numeric: tabular-nums;
}

.px-guide__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.px-guide__note {
    margin: 0 0 12px;
    font-size: var(--px-text-sm);
    color: var(--px-muted);
    max-width: 80ch;
}

.px-guide__note--flush {
    margin: 0;
}

.px-guide__gap {
    margin-top: 16px;
}

.px-guide__icon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-control);
    font-size: var(--px-text-xs);
}

/* Shown beside .px-num so the difference tabular figures make is visible. */
.px-guide__proportional {
    font-variant-numeric: normal;
    font-feature-settings: normal;
}

/* ================================================== tablet and phone == */

/*
    Tablet: the sidebar keeps its place but drops to icons only. The labels go,
    not the sidebar - navigation that is still visible beats navigation behind
    a button as long as there is room for a 60px column.
*/
@media (max-width: 1180px) {
    .px-side {
        width: var(--px-side-w-narrow);
        padding: 0 8px 16px;
        align-items: stretch;
    }

    .px-side__label,
    .px-side__badge,
    .px-side__grouplabel,
    .px-side__expand,
    .px-side__sub,
    .px-side__version,
    .px-side .px-brand__word {
        display: none;
    }

    /* The mark stands on its own - the kit's minimum for it is 16px and this
       is 28px. Only the wordmark goes, because a 60px column cannot hold it. */
    .px-side__brand {
        justify-content: center;
        padding: 0;
    }

    .px-side__link {
        justify-content: center;
        padding: 0;
    }

    .px-side__group {
        margin-top: 10px;
        padding-top: 8px;
    }
}

@media (max-width: 1024px) {
    .px-settings-area {
        grid-template-columns: minmax(0, 1fr);
    }

    .px-settings-nav {
        position: static;
    }

    .px-bento {
        columns: 1;
    }
}

@media (max-width: 760px) {
    :root {
        --px-gutter: 14px;
        --px-card-padding: 18px;
    }

    /*
        Phone: the sidebar goes off-canvas and the toggle appears. The header
        makes room for the toggle on the left, because the two would otherwise
        overlap.
    */
    .px-side {
        position: fixed;
        top: 0;
        left: 0;
        width: var(--px-side-w);
        padding: 0 10px 16px;
        transform: translateX(-100%);
        transition: transform 0.18s ease-out;
        box-shadow: var(--px-shadow-raised);
        z-index: 1000;
    }

    .px-side--open {
        transform: translateX(0);
    }

    /* The labels come back: off-canvas there is room for them again, and so
       the logo is whole again too. */
    .px-side--open .px-side__label,
    .px-side--open .px-side__badge,
    .px-side--open .px-side__grouplabel,
    .px-side--open .px-side__version {
        display: block;
    }

    .px-side--open .px-brand__word {
        display: inline;
    }

    .px-side--open .px-side__expand,
    .px-side--open .px-side__sub {
        display: flex;
    }

    .px-side--open .px-side__link,
    .px-side--open .px-side__brand {
        justify-content: flex-start;
        padding: 0 10px;
    }

    .px-side-toggle,
    .px-side__scrim {
        display: flex;
    }

    .px-head {
        gap: 8px;
        padding: 0 14px 0 60px;
    }

    /* The name and role line are the first things to go: search and
       sign-out have to stay reachable. */
    .px-user__text {
        display: none;
    }

    .px-search {
        flex: 0 0 auto;
    }

    .px-search__label,
    .px-bar-item__text,
    .px-kbd {
        display: none;
    }

    .px-bar-select__input {
        max-width: 132px;
    }

    .px-search__trigger {
        width: 34px;
        padding: 0;
        justify-content: center;
    }

    .px-bento,
    .px-panels,
    .px-kpis {
        grid-template-columns: minmax(0, 1fr);
    }

    .px-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .px-page-header {
        flex-wrap: wrap;
    }

    .px-page-header__commands {
        width: 100%;
        justify-content: flex-start;
        /* Three commands are wider than a phone (the patient record's
           Verordnungen, Dokumentation, Bearbeiten pushed the page to 462px). */
        flex-wrap: wrap;
    }

    .px-page-header__title {
        font-size: var(--px-text-lg);
    }

    .px-savebar {
        margin-left: -14px;
        margin-right: -14px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .px-savebar__note {
        display: none;
    }
}

/* ===================================================== blazor error ui == */

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    padding: 12px 20px;
    background: var(--px-warning-soft);
    border-top: 1px solid var(--px-warning);
    color: var(--px-text);
    font-size: var(--px-text-base);
    box-shadow: var(--px-shadow-bar-alert);
}

#blazor-error-ui .reload {
    color: var(--px-primary-hover);
    font-weight: var(--px-weight-semibold);
    margin-left: 8px;
}

#blazor-error-ui .dismiss {
    float: right;
    cursor: pointer;
    padding: 0 6px;
    color: var(--px-muted);
}

/* The styleguide's logo panel: the mark on white beside the mark on the brand
   surface, which is the only place both fassungen can be seen at once. */
.px-guide__brand {
    display: flex;
    flex-wrap: wrap;
    gap: var(--px-space-4);
}

.px-guide__brandbox {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: var(--px-space-6);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-card);
    background: var(--px-surface);
}

.px-guide__brandbox--dark {
    border-color: var(--px-side-bg);
    background: var(--px-side-bg);
    color: var(--px-on-primary);
}

.px-guide__logo {
    color: var(--px-primary);
}

/* Parked Verordnungen on the list page (#25): one line per draft, commands right. */
.px-draft-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.px-draft-list__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--px-space-3);
    padding: var(--px-space-2) var(--px-space-4);
    border-top: 1px solid var(--px-border);
}

.px-draft-list__row:first-child {
    border-top: 0;
}

/* A therapist's name in the day view's column header opens their own plan (#34): a button that still reads as the heading. */
.px-cal-head__pick {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.px-cal-head__pick:hover,
.px-cal-head__pick:focus-visible {
    text-decoration: underline;
}

/* ===================================================================
   Verordnung erfassen: a replica of Muster 13 (10.2020)
   Light blue sheet, red print, white boxes, the fields where the paper
   has them. Desktop only; below 1100px the sheet gives way to a note.
   =================================================================== */

.px-m13-mobile {
    display: none;
    padding: var(--px-space-4);
    color: var(--px-text);
}

.px-m13-layout {
    display: grid;
    grid-template-columns: minmax(820px, 980px) 260px;
    gap: var(--px-space-6);
    align-items: start;
    justify-content: center;
}

.px-m13-sheet {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 26px 30px 18px;
    background: var(--px-m13-paper);
    color: var(--px-text);
    font-family: Arial, var(--px-font);
    font-size: var(--px-text-sm);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

/* Print: red captions in the frames, bold red headings between them. */
.px-m13-cap {
    display: block;
    color: var(--px-m13-red);
    font-size: var(--px-text-2xs);
    line-height: 1.2;
}

.px-m13-heading {
    color: var(--px-m13-red);
    font-size: var(--px-text-base);
    font-weight: var(--px-weight-bold);
    line-height: 1.1;
}

.px-m13-heading--two {
    display: inline-block;
    font-size: var(--px-text-sm);
}

.px-m13-heading--small {
    display: inline-block;
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-normal);
    text-align: right;
}

.px-m13-sub {
    color: var(--px-m13-red);
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-normal);
}

.px-m13-sub--red em {
    font-weight: var(--px-weight-bold);
}

.px-m13-plain {
    color: var(--px-m13-red);
    font-size: var(--px-text-base);
}

/* The writing: a borderless input on a white box, like ink on the sheet. */
.px-m13-in {
    width: 100%;
    box-sizing: border-box;
    padding: 3px 6px;
    border: 0;
    border-radius: 0;
    background: var(--px-m13-box);
    color: var(--px-text);
    font-family: var(--px-font);
    font-size: var(--px-text-md);
}

.px-m13-in:focus,
.px-m13-in:focus-within {
    outline: 2px solid var(--px-primary);
    outline-offset: 0;
}

.px-m13-in--lg {
    font-size: var(--px-text-lg);
}

.px-m13-in[type=number] {
    appearance: textfield;
}

.px-m13-box {
    border-bottom: 1px solid var(--px-m13-red);
}

.px-m13-text {
    resize: none;
    line-height: 1.45;
}

/* Fields of the practice, not of the paper: dashed. */
.px-m13-praxis {
    border: 1px dashed var(--px-muted);
    background: transparent;
    font-size: var(--px-text-sm);
}

/* What is missing after Speichern was refused. */
.px-m13-gap,
.px-m13-in.px-m13-gap {
    outline: 2px solid var(--px-danger);
    outline-offset: -2px;
}

/* ---------- head ---------- */
.px-m13-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 330px;
    gap: 0 2px;
}

.px-m13-flags {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 4px;
}

.px-m13-flag {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border: 1px solid var(--px-m13-red);
    color: var(--px-m13-red);
    font-size: var(--px-text-2xs);
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
}

/* The checkbox covers its whole little field; ticked, the field shows the cross. */
.px-m13-flag input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.px-m13-flag:has(input:checked) {
    background:
        linear-gradient(to top right, transparent calc(50% - 1px), var(--px-text) calc(50% - 1px), var(--px-text) calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(to top left, transparent calc(50% - 1px), var(--px-text) calc(50% - 1px), var(--px-text) calc(50% + 1px), transparent calc(50% + 1px));
}

.px-m13-flag:has(input:focus-visible) {
    outline: 2px solid var(--px-primary);
}

.px-m13-person {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--px-m13-red);
    background: var(--px-m13-box);
}

.px-m13-cell {
    position: relative;
    padding: 3px 6px 4px;
    border-bottom: 1px solid var(--px-m13-red);
}

.px-m13-cell:last-child {
    border-bottom: 0;
}

.px-m13-cell .px-m13-in {
    padding: 2px 0;
}

.px-m13-cell--name {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 0 12px;
    min-height: 112px;
}

.px-m13-cell--name > .px-m13-cap:first-child {
    grid-column: 1;
    grid-row: 1;
}

.px-m13-cell--name .px-m13-cap--born {
    grid-column: 2;
    grid-row: 1;
    text-align: center;
}

.px-m13-born {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    font-size: var(--px-text-lg);
    text-align: center;
}

.px-m13-address {
    grid-column: 1;
    font-size: var(--px-text-lg);
    line-height: 1.35;
}

.px-m13-cells3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--px-m13-red);
}

.px-m13-cells3:last-child {
    border-bottom: 0;
}

.px-m13-cells3 .px-m13-cell {
    border-bottom: 0;
    border-left: 1px solid var(--px-m13-red);
}

.px-m13-cells3 .px-m13-cell:first-child {
    border-left: 0;
}

.px-m13-areas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 24px;
}

/* The lower sheet: indented to the name box, the flags' column stays empty. */
.px-m13-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 50px;
}

.px-m13-title {
    margin: 0 0 8px;
    color: var(--px-m13-red);
    font-family: Arial, var(--px-font);
    font-size: var(--px-text-xl);
    font-weight: var(--px-weight-bold);
}

/* Square ticks drawn like the printed boxes: white, red frame, a cross when ticked. */
.px-m13-area input,
.px-m13-lead input,
.px-m13-mark input {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    margin: 0;
    border: 1px solid var(--px-m13-red);
    background: var(--px-m13-box);
    appearance: none;
    cursor: pointer;
}

.px-m13-area input:checked,
.px-m13-lead input:checked,
.px-m13-mark input:checked {
    background:
        linear-gradient(to top right, transparent calc(50% - 1px), var(--px-text) calc(50% - 1px), var(--px-text) calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(to top left, transparent calc(50% - 1px), var(--px-text) calc(50% - 1px), var(--px-text) calc(50% + 1px), transparent calc(50% + 1px)),
        var(--px-m13-box);
}

.px-m13-area input:focus-visible,
.px-m13-lead input:focus-visible,
.px-m13-mark input:focus-visible {
    outline: 2px solid var(--px-primary);
}

.px-m13-area {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--px-m13-red);
    font-size: var(--px-text-md);
    cursor: pointer;
}

.px-m13-area--off,
.px-m13-area--off input {
    cursor: not-allowed;
}

/* ---------- diagnosis ---------- */
.px-m13-section {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.px-m13-section--split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
}

.px-m13-diagnosis {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 16px;
}

.px-m13-icd {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.px-m13-group-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.px-m13-group {
    width: 64px;
}

.px-m13-lead {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.px-m13-lead--p {
    margin-left: auto;
}

.px-m13-caption-row {
    margin-top: 4px;
}

/* ---------- Heilmittel ---------- */
.px-m13-items {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--px-m13-red);
}

.px-m13-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px 150px;
    border-bottom: 1px solid var(--px-m13-red);
    background: var(--px-m13-box);
}

/* The Heilmittel itself, in the ink of the sheet. */
.px-m13-item .px-m13-item__name {
    font-size: var(--px-text-lg);
}

.px-m13-item .px-m13-in {
    min-height: 40px;
}

.px-m13-item .px-m13-item__position {
    align-self: center;
    width: auto;
    min-height: 30px;
    margin: 0 6px;
}

.px-m13-item__units {
    border-left: 1px solid var(--px-m13-red);
    text-align: center;
}

/* ---------- marks ---------- */
.px-m13-marks {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}

.px-m13-mark {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.px-m13-frequency {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 6px;
    min-height: 36px;
}

.px-m13-frequency input {
    width: 48px;
    padding: 2px 4px;
    border: 0;
    background: transparent;
    font-family: var(--px-font);
    font-size: var(--px-text-md);
    text-align: center;
    appearance: textfield;
}

.px-m13-frequency span {
    color: var(--px-muted);
}

.px-m13-urgent {
    margin-top: 10px;
}

/* ---------- bottom ---------- */
.px-m13-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
}

.px-m13-goals {
    min-height: 190px;
}

.px-m13-stamp {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    padding: 12px;
    border: 1px solid var(--px-m13-red);
    background: var(--px-m13-box);
    text-align: center;
}

.px-m13-stamp .px-m13-stamp__name {
    border: 1px dashed var(--px-muted);
    text-align: center;
}

.px-m13-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}

.px-m13-ik-label {
    color: var(--px-m13-red);
    font-size: var(--px-text-md);
}

.px-m13-ik {
    display: inline-flex;
    border: 1px solid var(--px-m13-red);
    background: var(--px-m13-box);
}

.px-m13-ik__digit {
    width: 30px;
    height: 32px;
    border-left: 1px solid var(--px-m13-red);
    font-size: var(--px-text-md);
    line-height: 32px;
    text-align: center;
}

.px-m13-ik__digit:first-child {
    border-left: 0;
}

.px-m13-version {
    margin-left: auto;
    color: var(--px-m13-red);
    font-size: var(--px-text-2xs);
}

/* ---------- practice panel ---------- */
.px-m13-panel {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: var(--px-space-3);
    padding: var(--px-space-4);
    border: 1px dashed var(--px-border-strong);
    background: var(--px-surface);
}

.px-m13-panel__title {
    margin: 0;
    font-size: var(--px-text-md);
    font-weight: var(--px-weight-semibold);
}

.px-m13-panel__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: var(--px-text-sm);
}

/* Two short fields side by side in the practice panel (PLZ + Ort, Datum + Aktenzeichen; #40). */
.px-m13-panel__pair {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--px-space-2);
}

.px-m13-panel__pair .px-m13-select {
    min-width: 0;
}

/* The doctor record behind the stamp (#41), in the practice panel. */
.px-m13-doctor {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.px-m13-select {
    min-height: 32px;
    padding: 4px 6px;
    border: 1px solid var(--px-border-strong);
    border-radius: var(--px-radius-control);
    background: var(--px-surface);
    color: var(--px-text);
    font-family: var(--px-font);
    font-size: var(--px-text-sm);
}

.px-m13-panel__checks {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: var(--px-text-sm);
}

.px-m13-deadline {
    margin: 0;
    font-size: var(--px-text-sm);
}

/*
    The capture dialog takes the window's full height. The theme puts
    --dxbl-popup-margin around every popup and makes the modal root a
    scroll container (core.min.css: .dxbl-modal>.dxbl-modal-root
    {overflow:auto}), so a tall popup plus its margin scrolled the whole
    window. With the margin gone and the height 100vh, header, sheet and
    buttons fill the window exactly; only the sheet scrolls.
*/
.dxbl-modal .dxbl-modal-root .dxbl-popup.px-dialog--full {
    --dxbl-popup-margin: 0;
    height: 100vh;
    max-height: 100vh;
}

.dxbl-modal .dxbl-modal-root .dxbl-popup.px-dialog--full .dxbl-modal-content {
    height: 100%;
    max-height: none;
}

.dxbl-modal .dxbl-modal-root .dxbl-popup .dxbl-modal-content .dxbl-modal-body.px-dialog-body--m13 {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: hidden;
}

.px-dialog-content--m13 {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: var(--px-bg);
}

/* One scrollport, the sheet; the buttons stay in view beneath it. */
.px-m13-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.px-m13-form .px-m13-layout {
    flex: 1 1 auto;
    min-height: 0;
    padding: var(--px-space-2) 0 var(--px-space-4);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.px-dialog-content--m13 .px-m13-form .px-editor-footer {
    position: static;
    flex: 0 0 auto;
}

@media (max-width: 1099px) {
    .px-m13-mobile {
        display: block;
    }

    .px-m13-form {
        display: none;
    }

    .px-desktop-only {
        display: none !important;
    }
}

/* Suggestion list of the capture sheets (SheetSuggest): square, the app's
   borders and type, not the browser's datalist popup. Not .px-suggest:
   that is a row of the address list, and its padding and hover green
   landed on every sheet box (14.11.2026). */
.px-sheet-suggest {
    position: relative;
    width: 100%;
}

.px-suggest__list {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    z-index: 20;
    min-width: 100%;
    max-width: 520px;
    max-height: 320px;
    margin: 0;
    padding: 4px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    border: 1px solid var(--px-border-strong);
    border-radius: var(--px-radius-control);
    background: var(--px-surface);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    font-family: var(--px-font);
}

.px-suggest__item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 6px 12px;
    color: var(--px-text);
    cursor: pointer;
    white-space: nowrap;
}

.px-suggest__item:hover,
.px-suggest__item--active {
    background: var(--px-primary-soft);
}

.px-suggest__main {
    font-size: var(--px-text-base);
    font-weight: var(--px-weight-medium);
    overflow: hidden;
    text-overflow: ellipsis;
}

.px-suggest__detail {
    color: var(--px-muted);
    font-size: var(--px-text-xs);
}

/* The position box sits inside its Heilmittel line, a little lower than the line. */
.px-m13-item .px-m13-item__position .px-m13-in {
    min-height: 30px;
}

/* A code with a long title: the list is wider than the narrow ICD box. */
.px-sheet-suggest .px-suggest__list--wide {
    min-width: 520px;
    max-width: 640px;
}

.px-suggest__list--wide .px-suggest__item {
    white-space: normal;
}

/* A box with a small "+" beside it (Neuer Patient, Neuer Arzt) instead of a button in the panel. */
.px-m13-with-add {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.px-m13-with-add .px-sheet-suggest {
    flex: 1 1 auto;
    min-width: 0;
}

.px-m13-add {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--px-border-strong);
    border-radius: var(--px-radius-control);
    background: var(--px-surface);
    color: var(--px-primary);
    cursor: pointer;
}

.px-m13-add:hover {
    background: var(--px-primary-soft);
}

.px-m13-add:focus-visible {
    outline: 2px solid var(--px-primary);
    outline-offset: 1px;
}

/* The stamp centres its name; its suggestion list reads from the left like every other. */
.px-m13-stamp .px-suggest__list {
    text-align: left;
}

/* The next step in a table row: a small filled button with its words
   (Abrechnung → Offene Beträge; owner 14.11.2026: a bare icon said nothing). */
.px-rowcta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--px-primary);
    border-radius: var(--px-radius-control);
    background: var(--px-primary);
    color: var(--px-surface);
    font: inherit;
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
    white-space: nowrap;
    cursor: pointer;
}

.px-rowcta:hover {
    background: var(--px-primary-hover);
    border-color: var(--px-primary-hover);
}

.px-rowcta:disabled {
    opacity: 0.6;
    cursor: default;
}

.px-rowcta:focus-visible {
    outline: 2px solid var(--px-primary);
    outline-offset: 2px;
}

/* The last step of a Kassen run (Einreichen): a short checklist for the chosen route. */
.px-submit {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--px-space-3) var(--px-space-4);
    border-top: 1px solid var(--px-border);
}

.px-submit__title {
    margin: 0;
    font-size: var(--px-text-base);
    font-weight: var(--px-weight-semibold);
}

.px-submit__steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding-left: 20px;
    font-size: var(--px-text-sm);
}

/* The row a running search shows instead of a list. */
.px-suggest__searching {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    color: var(--px-muted);
    font-size: var(--px-text-sm);
}

/* What the ICD-10-GM says about a typed code: a remark under the boxes, red as a warning. */
.px-m13-icd-note {
    color: var(--px-danger);
    font-size: var(--px-text-xs);
    line-height: 1.3;
}

/* ---------- Privat and BG sheets: Muster 13's boxes on their own paper ---------- */
.px-m13-sheet--private {
    --px-m13-paper: var(--px-sheet-private-paper);
    --px-m13-red: var(--px-sheet-private-print);
}

.px-m13-sheet--accident {
    --px-m13-paper: var(--px-sheet-accident-paper);
    --px-m13-red: var(--px-sheet-accident-print);
}

/* No flag column on these sheets: the person block starts at the edge. */
.px-m13-head--plain {
    grid-template-columns: minmax(0, 1fr) 300px;
}

.px-m13-body--plain {
    margin-left: 0;
}

/* Unfalltag beside the Unfallbetrieb: a short date, a long name. */
.px-m13-cells3--wide {
    grid-template-columns: 1fr 2fr;
}

/* The sheet's kind under its title. */
.px-m13-sheet-kind {
    margin: -6px 0 6px;
    color: var(--px-m13-red);
    font-size: var(--px-text-sm);
}

/* LANR and BSNR inside the stamp box. */
.px-m13-stamp__numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    text-align: left;
}

.px-m13-stamp__numbers label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* A Blankoverordnung's other lines: off, as the paper leaves them empty. */
.px-m13-item--locked {
    background: var(--px-m13-paper);
}

.px-m13-item .px-m13-in[readonly],
.px-m13-item .px-m13-in:disabled {
    background: transparent;
    color: var(--px-text);
    cursor: not-allowed;
}

/* What Blanko means for the lines below, in the sheet's print. */
.px-m13-blanko {
    margin: 2px 0;
    color: var(--px-m13-red);
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
}

/*
    A Blankoverordnung's PD and BD (#49): the practice's entries under the
    Heilmittel lines, dashed like the position numbers - not lines of the paper.
*/
.px-m13-diagnostics {
    display: grid;
    gap: 4px;
    margin: 8px 0 4px;
    padding: 8px 10px;
    border: 1px dashed var(--px-muted);
    font-size: var(--px-text-sm);
}

.px-m13-diagnostics__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==================================================== permission matrix == */
/* PermissionMatrix (UserAdmin): the permissions by area, one row per tick.
   Native checkboxes because the matrix sits inside the editor's EditForm and
   validates nothing (CLAUDE.md, editors and binding). */
.px-perm {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--px-space-2) var(--px-space-3);
    align-items: start;
}

.px-perm__summary {
    grid-column: 1 / -1;
    margin: 0;
    font-weight: var(--px-weight-semibold);
}

.px-perm__area {
    margin: 0;
    min-width: 0;
    padding: var(--px-space-1) var(--px-space-2) var(--px-space-2);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-control);
}

.px-perm__legend {
    padding: 0 var(--px-space-1);
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
    color: var(--px-muted);
}

.px-perm__row {
    display: flex;
    align-items: center;
    gap: var(--px-space-2);
    min-height: 26px;
    font-size: var(--px-text-sm);
    cursor: pointer;
}

.px-perm__row input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--px-primary);
}

.px-perm__row--locked {
    cursor: default;
    color: var(--px-muted);
}

.px-perm__label {
    flex: 1 1 auto;
    min-width: 0;
}

/*
    A drawer with a sticky footer must not pad below it: sticky bottom: 0
    stops at the padding edge, so the form showed through a 16px strip under
    Speichern. The footer carries that space itself.
*/
.px-drawer-content:has(.px-editor-footer) {
    padding-bottom: 0;
}

/* The same in a scrolling form dialog (Privatrezept, #40): the sticky bar
   stopped 16px short of the bottom and the next section showed under it. */
.px-dialog-content--form {
    padding-bottom: 0;
}

.px-dialog-content--form .px-editor-footer {
    padding-bottom: 16px;
}

.px-drawer-content .px-editor-footer {
    padding-bottom: 16px;
}

/* ======================================================= calendar menu == */
/* The right-click menu on an appointment card (Calendar.razor). A menu is a
   list of verbs; the theme's default min-width cut "Behandlungsserie planen". */
.px-calendar-menu {
    min-width: 230px;
}

/*
    The theme draws the menu with no border at all and its separators in the
    subdued hairline (owner: too light to see). The menu's edge takes the
    input edge, the separators too. Variables from Fluent's
    core.min.css: .dxbl-context-menu sets border-style none and
    --dxbl-context-menu-separator-color subdued; the dropdown reads them at
    0,2,0, so these sit at 0,3,0 on the same element.
*/
.dxbl-context-menu.dxbl-context-menu-dropdown.px-calendar-menu {
    --dxbl-context-menu-border-width: 1px;
    --dxbl-context-menu-border-style: solid;
    --dxbl-context-menu-border-color: var(--px-border-strong);
    --dxbl-context-menu-separator-color: var(--px-border-strong);
    --dxbl-dropdown-border-width: 1px;
    --dxbl-dropdown-border-style: solid;
    --dxbl-dropdown-border-color: var(--px-border-strong);
}

/* =================================================== settings sub-tabs == */
/* Two pages of one settings category, e.g. Benutzer | Rollen: plain links,
   the current one underlined in brand green. */
.px-subtabs {
    display: flex;
    gap: var(--px-space-4);
    margin: 0 0 var(--px-space-3);
    border-bottom: 1px solid var(--px-border-card);
}

.px-subtabs__link {
    padding: var(--px-space-2) 0;
    margin-bottom: -1px;
    color: var(--px-muted);
    font-weight: var(--px-weight-semibold);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.px-subtabs__link:hover {
    color: var(--px-text);
}

.px-subtabs__link--current {
    color: var(--px-text);
    border-bottom-color: var(--px-primary);
}

/*
    Statistik (PLAN-Statistik.md). The basis switch sits between the toolbar
    and the tiles; the notes say what a reader must know to read the figures
    right, quietly, above the cards; the chart keeps a fixed height and its
    table follows under it.
*/
.px-stats-basis {
    margin: var(--px-space-3) 0;
    max-width: 420px;
}

.px-stats-notes {
    margin: 0 0 var(--px-space-3);
    padding-left: var(--px-space-4);
    color: var(--px-muted);
    font-size: var(--px-text-sm);
}

.px-stats-chart {
    margin-top: var(--px-space-2);
}

/*
    The report pages lay their cards on a grid, not on .px-bento: a column
    layout loses the margins around a full-width card (column-span), and the
    cards ran into each other (owner, 04.11.2026). A real gap on both axes.
*/
.px-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: var(--px-card-gap);
    align-items: start;
}

.px-stats-grid__wide {
    grid-column: 1 / -1;
}

/* Donut beside its figures; the donut above them on a narrow card. */
.px-stats-split {
    display: grid;
    grid-template-columns: minmax(180px, 220px) 1fr;
    gap: var(--px-space-4);
    align-items: center;
}

@media (max-width: 640px) {
    .px-stats-split {
        grid-template-columns: 1fr;
    }
}

.px-stats-donut-box {
    min-width: 0;
}

.px-stats-donut {
    min-width: 0;
}

/* A short table beside a chart: label, figure, share - read in one line. */
.px-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--px-text-sm);
}

.px-stats-table td {
    padding: var(--px-space-2) var(--px-space-2);
    border-bottom: 1px solid var(--px-border);
    color: var(--px-text);
}

.px-stats-table tfoot td {
    border-bottom: 0;
    border-top: 1px solid var(--px-border-strong);
    font-weight: var(--px-weight-semibold);
}

.px-stats-table__num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.px-stats-table__share {
    color: var(--px-muted);
}

/* The colour of a donut segment, beside its row. Same values as the palette in Revenue.razor. */
.px-stats-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: var(--px-space-2);
    border-radius: 2px;
    vertical-align: baseline;
}

.px-stats-swatch--forest {
    background: var(--px-primary);
}

.px-stats-swatch--sky {
    background: var(--px-cal-sky-line);
}

.px-stats-swatch--gold {
    background: var(--px-break-line);
}

.px-stats-swatch--coral {
    background: var(--px-cal-coral-line);
}

.px-stats-swatch--grey {
    background: var(--px-border-strong);
}

/* A figure worth a second look: the danger text colour, never a red frame. */
.px-stats-cell--alert {
    color: var(--px-danger);
    font-weight: var(--px-weight-semibold);
}

/* The best row of a ranking, picked out without colour. */
.px-stats-row--top td {
    font-weight: var(--px-weight-semibold);
}

/*
    Failures by hour and weekday: a shaded table rather than a chart, so the
    figure stays readable in every cell. Four steps of the forest-soft scale
    up to the forest itself; the darkest two carry white text.
*/
.px-stats-heat-wrap {
    overflow-x: auto;
}

.px-stats-heat {
    border-collapse: separate;
    border-spacing: 3px;
    font-size: var(--px-text-sm);
    font-variant-numeric: tabular-nums;
}

.px-stats-heat th {
    padding: var(--px-space-1) var(--px-space-2);
    color: var(--px-muted);
    font-weight: var(--px-weight-semibold);
    text-align: center;
    white-space: nowrap;
}

.px-stats-heat tbody th {
    text-align: right;
}

.px-stats-heat__cell {
    min-width: 56px;
    height: 28px;
    padding: 0 var(--px-space-2);
    border-radius: 2px;
    background: var(--px-weekend-bg);
    color: var(--px-text);
    text-align: center;
}

.px-stats-heat__cell--1 {
    background: var(--px-primary-line);
}

.px-stats-heat__cell--2 {
    background: var(--px-cal-forest-head);
}

.px-stats-heat__cell--3 {
    background: var(--px-cal-pine-line);
    color: var(--px-on-primary);
}

.px-stats-heat__cell--4 {
    background: var(--px-primary);
    color: var(--px-on-primary);
}

.px-stats-gauge {
    min-width: 0;
}

.px-stats-tooltip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--px-space-2) var(--px-space-3);
    font-size: var(--px-text-sm);
    color: var(--px-text);
}

/*
    A short list of radio choices in a dialog (merging doctors, #111): each
    choice a row with a two-line label, the whole row clickable.
*/
.px-choice-list {
    margin: var(--px-space-3) 0 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: var(--px-space-1);
}

/* Bootstrap (shipped with Classic) sizes a legend like a heading. */
.px-choice-list legend {
    float: none;
    width: auto;
    margin-bottom: var(--px-space-2);
    font-size: var(--px-text-base);
    font-weight: var(--px-weight-semibold);
}

.px-choice-list__item {
    display: flex;
    align-items: flex-start;
    gap: var(--px-space-2);
    padding: var(--px-space-2) var(--px-space-3);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-control);
    cursor: pointer;
}

.px-choice-list__item > span {
    display: flex;
    flex-direction: column;
}

.px-choice-list__item input {
    margin-top: 3px;
    accent-color: var(--px-primary);
}

.px-choice-list__item:has(input:checked) {
    border-color: var(--px-primary);
}

/*
    The Therapiebericht form (#30): the form on the left, the practice's
    Textbausteine on the right, kept in view while the form scrolls. One
    column below 1100px, the snippets then under the form.
*/
.px-report {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--px-space-4);
    align-items: start;
}

.px-report__form {
    display: flex;
    flex-direction: column;
    gap: var(--px-space-4);
    min-width: 0;
}

.px-report__snippets {
    position: sticky;
    top: var(--px-space-4);
}

.px-report__targets {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--px-space-2);
    margin-bottom: var(--px-space-3);
}

.px-report__targets-label {
    color: var(--px-muted);
    font-size: var(--px-text-sm);
}

.px-report__snippet-list {
    list-style: none;
    margin: var(--px-space-3) 0 0;
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: var(--px-space-1);
}

.px-report__snippet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--px-space-1) var(--px-space-2);
    width: 100%;
    padding: var(--px-space-2) var(--px-space-3);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-control);
    background: var(--px-surface);
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.px-report__snippet:hover,
.px-report__snippet:focus-visible {
    border-color: var(--px-primary);
}

.px-report__snippet-text {
    flex-basis: 100%;
    color: var(--px-muted);
    font-size: var(--px-text-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

/* A snippet's text in the settings list: two lines, then cut. */
.px-snippet-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

@media (max-width: 1100px) {
    .px-report {
        grid-template-columns: minmax(0, 1fr);
    }

    .px-report__snippets {
        position: static;
    }
}

/* A saved report, read: label and text in two columns, as printed. */
.px-report-view {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: var(--px-space-2) var(--px-space-4);
    margin: 0;
}

.px-report-view dt {
    font-weight: var(--px-weight-semibold);
}

.px-report-view dd {
    margin: 0;
    white-space: pre-line;
}

@media (max-width: 700px) {
    .px-report-view {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* "Bericht schreiben" on a patient's documentation: the prescription, then the button. */
.px-report-new {
    display: flex;
    align-items: center;
    gap: var(--px-space-2);
}

/*
    The template library (Dokumentvorlagen): styles side by side, each a
    preview of page one, its name, what it is like, and one "Übernehmen".
*/
.px-library {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
    gap: var(--px-space-4);
    margin: var(--px-space-3) 0 0;
    padding: 0;
    list-style: none;
}

.px-library__item {
    display: flex;
    flex-direction: column;
    gap: var(--px-space-2);
    min-width: 0;
}

/* The upper part of page one, large enough to read the letterhead and table. */
.px-library__preview {
    display: block;
    aspect-ratio: 210 / 160;
    overflow: hidden;
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-control);
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(36, 50, 46, 0.12);
}

.px-library__preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.px-library__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Inside a padded card the strip needs no gutter of its own. */
.px-tabs.px-library__documents {
    flex-wrap: wrap;
    margin-top: var(--px-space-2);
    padding: 0;
}

.px-library__apply {
    align-self: flex-start;
    margin-top: auto;
}


/* ======================================================== timeline ===== */
/*
    The Verlauf of a prescription and of a patient (owner's references,
    09.11.2026): a dot per step and a line between them. The line is the
    item's ::before, from below its dot to the next dot; it is dashed where
    it leads into what is still ahead. Colours carry the state, and the
    text says it too (Timeline.razor), so none is read by colour alone.
*/
.px-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.px-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: var(--px-space-3);
    padding-bottom: var(--px-space-4);
}

.px-timeline__item::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 22px;
    bottom: 2px;
    border-left: 2px solid var(--px-primary);
}

.px-timeline__item--ahead::before {
    border-left-style: dashed;
    border-left-color: var(--px-border-strong);
}

.px-timeline__item--last {
    padding-bottom: 0;
}

.px-timeline__item--last::before {
    display: none;
}

.px-timeline__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    margin-top: 1px;
    border-radius: 50%;
    border: 2px solid var(--px-border-strong);
    background: var(--px-surface);
    color: var(--px-surface);
}

.px-timeline__dot .px-icon {
    --px-icon-size: 12px;
}

.px-timeline__item--done .px-timeline__dot {
    border-color: var(--px-primary);
    background: var(--px-primary);
}

.px-timeline__item--current .px-timeline__dot {
    border-color: var(--px-primary);
    box-shadow: inset 0 0 0 3px var(--px-surface), inset 0 0 0 10px var(--px-primary);
}

.px-timeline__item--upcoming .px-timeline__dot {
    background: var(--px-bg);
}

.px-timeline__item--warning .px-timeline__dot {
    border-color: var(--px-danger);
    background: var(--px-surface);
    color: var(--px-danger);
}

.px-timeline__mark {
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-semibold);
    line-height: 1;
}

.px-timeline__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.px-timeline__title {
    font-weight: var(--px-weight-semibold);
}

.px-timeline__item--upcoming .px-timeline__title {
    color: var(--px-muted);
    font-weight: var(--px-weight-medium);
}

.px-timeline__item--warning .px-timeline__title {
    color: var(--px-danger);
}

.px-timeline__when {
    color: var(--px-muted);
    font-size: var(--px-text-sm);
    font-style: italic;
}

.px-timeline__detail {
    color: var(--px-text);
    font-size: var(--px-text-sm);
}


/* ------------------------------------------------------------------
   Classic Übersicht (/klassisch, owner 11.11.2026): one card per area with
   its few most used pages. Praxo's own look, not the reference image's:
   white cards as everywhere, the icon in brand green, the links as rows
   with hairlines like the sidebar and the settings lists, a grey chevron
   that turns green with its row. Per-area colours were tried and taken
   back the same day ("looks too much like AI"). Larger than the rest of
   the app on the owner's word ("for old people"): 16px rows of 48px.
   ------------------------------------------------------------------ */
/* Even rows (owner, 11.11.2026): tiles of one size, two or three to a row
   (ClassicDashboard.GridClass picks by count), a short last row centred
   rather than left hanging. */
.px-start {
    --px-start-cols: 3;
    --px-start-gap: var(--px-space-4);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: var(--px-start-gap);
    max-width: 1080px;
    /* The work area below the page header: the whole height but the shell's
       header, the page header and the paddings around them. */
    min-height: calc(100dvh - var(--px-head-h) - 160px);
    margin: 0 auto;
}

.px-start--threes {
    --px-start-cols: 3;
}

.px-start--pairs {
    --px-start-cols: 2;
    max-width: 720px;
}

@media (max-width: 900px) {
    .px-start--threes {
        --px-start-cols: 2;
    }
}

@media (max-width: 560px) {
    .px-start--threes,
    .px-start--pairs {
        --px-start-cols: 1;
    }
}

.px-start-tile {
    flex: 0 0 calc((100% - (var(--px-start-cols) - 1) * var(--px-start-gap)) / var(--px-start-cols));
    box-sizing: border-box;
    background: var(--px-surface);
    border: 1px solid var(--px-border-card);
    border-radius: var(--px-radius-card);
    box-shadow: var(--px-shadow-card);
    min-width: 0;
    overflow: hidden;
}

.px-start-tile__head {
    display: flex;
    align-items: center;
    gap: var(--px-space-3);
    padding: var(--px-space-4) var(--px-space-4) var(--px-space-3);
}

.px-start-tile__icon {
    --px-icon-size: 24px;
    display: inline-flex;
    flex: none;
    color: var(--px-primary);
}

.px-start-tile__title {
    min-width: 0;
    margin: 0;
    font-size: var(--px-text-lg);
    font-weight: var(--px-weight-bold);
    line-height: 1.3;
    color: var(--px-text);
}

.px-start-tile__title a {
    color: inherit;
    text-decoration: none;
}

.px-start-tile__title a:hover,
.px-start-tile__title a:focus-visible {
    color: var(--px-primary);
    text-decoration: underline;
}

/* Room for three rows in every tile, so a tile with two is as tall as
   the others. */
.px-start-tile__links {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: calc(3 * 48px);
}

/* The whole row is the target and lights up as a whole. */
.px-start-tile__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--px-space-2);
    min-height: 48px;
    padding: var(--px-space-2) var(--px-space-4);
    box-sizing: border-box;
    /* A hairline above every row, the first one under the title too. */
    border-top: 1px solid var(--px-border);
    font-size: var(--px-text-md);
    color: var(--px-text);
    text-decoration: none;
    transition: background-color 120ms ease, color 120ms ease;
}

.px-start-tile__links a:hover,
.px-start-tile__links a:focus-visible {
    background: var(--px-primary-soft);
    color: var(--px-primary);
}

.px-start-tile__links a:focus-visible {
    outline: 2px solid var(--px-primary);
    outline-offset: -2px;
}

.px-start-tile__go {
    --px-icon-size: var(--px-icon-sm);
    display: inline-flex;
    flex: none;
    color: var(--px-muted);
}

.px-start-tile__links a:hover .px-start-tile__go,
.px-start-tile__links a:focus-visible .px-start-tile__go {
    color: var(--px-primary);
}

@media (prefers-reduced-motion: reduce) {
    .px-start-tile__links a {
        transition: none;
    }
}

/*
    The Blanko-Ampel (#145; PO, 15.11.2026): one light for the prescription at
    the header's bottom right - a two-lamp housing, red on top, the lit lamp
    filled - with the state in words beside it and the details behind "?".
    Red is the lamp and the word in --px-danger: no frame, no stripe. The
    lamps use --px-primary / --px-danger, not --px-accent (2.9:1 on white).
*/
/* Not .px-profile__aside: that is the page's side column (15.11.2026: the name clash shrank its cards). */
.px-profile__corner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    align-self: stretch;
    gap: var(--px-space-3);
    margin-left: auto;
}

.px-profile__flags {
    display: flex;
    align-items: center;
    gap: var(--px-space-3);
}

.px-ampel {
    display: flex;
    align-items: center;
    gap: var(--px-space-2);
    padding: var(--px-space-1) var(--px-space-2);
    border: 1px solid var(--px-border-card);
    border-radius: var(--px-radius-control);
    background: var(--px-surface);
}

.px-ampel__lamp {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--px-border-strong);
    border-radius: var(--px-radius-badge);
}

.px-ampel__bulb {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--px-border); /* off */
}

.px-ampel__bulb--red,
.px-ampel__bulb--green {
    flex: none;
}

.px-ampel--green .px-ampel__bulb--green {
    background: var(--px-primary);
}

.px-ampel--red .px-ampel__bulb--red {
    background: var(--px-danger);
}

.px-ampel__state {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.px-ampel__state strong {
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
    color: var(--px-primary);
}

.px-ampel--red .px-ampel__state strong {
    color: var(--px-danger);
}

.px-ampel__note {
    font-size: var(--px-text-xs);
    color: var(--px-muted);
    white-space: nowrap;
}

.px-ampel__help {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--px-border-strong);
    border-radius: 50%;
    background: var(--px-surface);
    color: var(--px-text);
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-semibold);
    cursor: pointer;
}

.px-ampel__help:hover,
.px-ampel__help:focus-visible {
    border-color: var(--px-primary);
    color: var(--px-primary);
}

/* The flyout's body (DxFlyout BodyCssClass). */
.px-ampel-flyout {
    font-size: var(--px-text-sm);
}

.px-ampel-flyout__size {
    margin: 0 0 var(--px-space-2);
    color: var(--px-muted);
    font-size: var(--px-text-xs);
}

.px-ampel-flyout__lights {
    margin: 0;
    padding: 0;
    list-style: none;
}

.px-ampel-flyout__light {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px var(--px-space-3);
    padding: var(--px-space-2) 0;
    border-bottom: 1px solid var(--px-border);
}

.px-ampel-flyout__status {
    grid-column: 1 / -1;
    color: var(--px-primary);
    font-size: var(--px-text-xs);
}

.px-ampel-flyout__light--red strong,
.px-ampel-flyout__light--red .px-ampel-flyout__status {
    color: var(--px-danger);
}

.px-ampel-flyout__hint {
    margin: var(--px-space-2) 0 0;
    color: var(--px-muted);
    font-size: var(--px-text-xs);
}

/* Windows high contrast: the lamps would vanish without this. */
@media (forced-colors: active) {
    .px-ampel__bulb {
        border: 1px solid CanvasText;
        background: Canvas;
    }

    .px-ampel--green .px-ampel__bulb--green,
    .px-ampel--red .px-ampel__bulb--red {
        background: CanvasText;
    }
}


/* ============================================ prescription: Termine tab == */
/*
    The calendar's tab on a prescription (PO, 15.11.2026): one line of
    counts, the course by calendar week and the list. Calm office surfaces; a state is told by a
    fill or a word, never by colour alone (the legend and each day's title
    name it).
*/
.px-appt-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--px-space-1) var(--px-space-4);
    margin: 0 0 var(--px-space-3);
    color: var(--px-muted);
}

.px-appt-summary strong {
    color: var(--px-text);
    font-weight: var(--px-weight-semibold);
    font-variant-numeric: tabular-nums;
}

.px-appt-summary__off strong {
    color: var(--px-danger);
}

.px-appt-summary__next {
    margin-left: auto;
}

/* The course by calendar week: columns side by side, wrapping onto a new row when long, so every week stays in view. */
.px-weekstrip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--px-space-2);
}

.px-weekstrip__week {
    display: flex;
    flex: 0 0 88px;
    flex-direction: column;
    gap: 6px;
    padding: var(--px-space-2);
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius-control);
    background: var(--px-surface);
}

/* This week: the brand's soft fill, like a hovered row. */
.px-weekstrip__week--now {
    border-color: var(--px-primary);
    background: var(--px-primary-soft);
}

.px-weekstrip__head {
    display: flex;
    flex-direction: column;
    margin-bottom: 2px;
}

.px-weekstrip__kw {
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-semibold);
}

.px-weekstrip__date {
    color: var(--px-muted);
    font-size: var(--px-text-2xs);
}

.px-weekstrip__gap {
    display: flex;
    flex: 0 0 72px;
    align-items: center;
    justify-content: center;
    padding: var(--px-space-2);
    border: 1px dashed var(--px-border-strong);
    border-radius: var(--px-radius-control);
    color: var(--px-muted);
    font-size: var(--px-text-2xs);
    text-align: center;
}

.px-weekstrip__chip {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    padding: 3px 6px;
    border-radius: var(--px-radius-badge);
    color: var(--px-text);
    font-size: var(--px-text-xs);
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}

.px-weekstrip__day {
    font-weight: var(--px-weight-semibold);
}

/* Stattgefunden: the brand fill; geplant: the brand outline; ausgefallen: struck through on the danger tint. */
.px-weekstrip__chip--attended {
    background: var(--px-primary);
    color: var(--px-surface);
}

.px-weekstrip__chip--planned {
    box-shadow: inset 0 0 0 1.5px var(--px-primary);
    background: var(--px-surface);
}

.px-weekstrip__chip--off {
    background: var(--px-danger-soft);
    text-decoration: line-through;
}

a.px-weekstrip__chip:hover,
a.px-weekstrip__chip:focus-visible {
    outline: 2px solid var(--px-primary);
    outline-offset: 1px;
}

.px-weekstrip-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--px-space-3);
    margin: var(--px-space-1) 0 var(--px-space-4);
    color: var(--px-muted);
    font-size: var(--px-text-xs);
}

.px-weekstrip-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.px-weekstrip__key {
    display: inline-block;
    width: 14px;
    height: 14px;
    padding: 0;
}

.px-appt-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--px-border);
}

.px-appt-list__row {
    display: grid;
    grid-template-columns: 120px 110px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: var(--px-space-3);
    padding: 8px 4px;
    border-bottom: 1px solid var(--px-border);
    font-variant-numeric: tabular-nums;
}

.px-appt-list__row--off .px-appt-list__date,
.px-appt-list__row--off .px-appt-list__time {
    color: var(--px-muted);
    text-decoration: line-through;
}

.px-appt-list__date {
    font-weight: var(--px-weight-semibold);
}

.px-appt-list__who {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ======================================================= week plan print == */
/*
    The printed week plan (#5, owner 08.11.2026): one sheet per employee,
    Monday to Sunday. Landscape puts the days side by side, portrait stacks
    them. Black on white, hairlines, no fills a printer has to lay down: a
    cancelled entry is struck through, an internal one in italics.
*/
@page weekplan-landscape {
    size: A4 landscape;
    margin: 10mm;
}

@page weekplan-portrait {
    size: A4 portrait;
    margin: 10mm;
}

.px-print {
    min-height: 100vh;
    padding: var(--px-space-4);
    background: var(--px-bg);
    color: var(--px-text);
}

.px-print__bar {
    display: flex;
    align-items: center;
    gap: var(--px-space-3);
    max-width: 277mm;
    margin: 0 auto var(--px-space-4);
    color: var(--px-muted);
    font-size: var(--px-text-sm);
}

.px-print__button {
    min-height: 36px;
    padding: 0 var(--px-space-4);
    border: 1px solid var(--px-primary);
    border-radius: var(--px-radius-control);
    background: var(--px-primary);
    color: var(--px-surface);
    font: inherit;
    font-weight: var(--px-weight-semibold);
    cursor: pointer;
}

.px-print__button:hover {
    background: var(--px-primary-hover);
}

.px-print__note {
    max-width: 277mm;
    margin: 0 auto;
}

/* In the calendar's print dialog: the link that opens the page, sized like its buttons. */
.px-print-open {
    height: auto;
    min-height: 36px;
    padding: 0 var(--px-space-4);
}

.px-weekplan {
    box-sizing: border-box;
    margin: 0 auto var(--px-space-6);
    padding: 10mm;
    background: var(--px-surface);
    box-shadow: var(--px-shadow-card);
    font-size: var(--px-text-xs);
    break-after: page;
}

.px-weekplan:last-of-type {
    break-after: auto;
}

.px-weekplan--landscape {
    width: 297mm;
    min-height: 210mm;
    page: weekplan-landscape;
}

.px-weekplan--portrait {
    width: 210mm;
    min-height: 297mm;
    page: weekplan-portrait;
}

.px-weekplan__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--px-space-3);
    margin-bottom: var(--px-space-3);
    padding-bottom: var(--px-space-2);
    border-bottom: 2px solid var(--px-text);
}

.px-weekplan__name {
    margin: 0;
    font-size: var(--px-text-lg);
    font-weight: var(--px-weight-semibold);
}

.px-weekplan__week {
    font-size: var(--px-text-sm);
}

.px-weekplan__days {
    display: grid;
    border: 1px solid var(--px-border-strong);
}

.px-weekplan--landscape .px-weekplan__days {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.px-weekplan--portrait .px-weekplan__days {
    grid-template-columns: 1fr;
}

.px-weekplan__day {
    min-width: 0;
    border-right: 1px solid var(--px-border-strong);
}

.px-weekplan--landscape .px-weekplan__day:last-child {
    border-right: 0;
}

.px-weekplan--portrait .px-weekplan__day {
    display: grid;
    grid-template-columns: 28mm minmax(0, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--px-border-strong);
    break-inside: avoid;
}

.px-weekplan--portrait .px-weekplan__day:last-child {
    border-bottom: 0;
}

.px-weekplan__dayhead {
    padding: 4px 6px;
    border-bottom: 1px solid var(--px-border-strong);
    background: var(--px-bg);
    font-weight: var(--px-weight-semibold);
}

.px-weekplan--portrait .px-weekplan__dayhead {
    border-bottom: 0;
    border-right: 1px solid var(--px-border-strong);
}

.px-weekplan__day--weekend .px-weekplan__dayhead {
    color: var(--px-muted);
}

.px-weekplan__entries {
    display: flex;
    flex-direction: column;
    min-height: 120mm;
}

.px-weekplan--portrait .px-weekplan__entries {
    min-height: 26mm;
}

.px-weekplan__entry {
    display: flex;
    flex-direction: column;
    padding: 3px 6px;
    border-bottom: 1px solid var(--px-border);
    break-inside: avoid;
}

.px-weekplan--portrait .px-weekplan__entry {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 var(--px-space-2);
}

.px-weekplan__time {
    font-variant-numeric: tabular-nums;
    font-weight: var(--px-weight-semibold);
}

.px-weekplan__title {
    overflow-wrap: anywhere;
}

.px-weekplan__detail {
    color: var(--px-muted);
}

.px-weekplan__entry--internal .px-weekplan__title {
    font-style: italic;
}

.px-weekplan__entry--off .px-weekplan__time,
.px-weekplan__entry--off .px-weekplan__title {
    text-decoration: line-through;
}

.px-weekplan__absent {
    padding: 3px 6px;
    border-bottom: 1px solid var(--px-border);
    font-weight: var(--px-weight-semibold);
}

.px-weekplan__empty {
    padding: 3px 6px;
    color: var(--px-muted);
}

.px-weekplan__total {
    display: flex;
    align-items: baseline;
    gap: var(--px-space-3);
    margin-top: var(--px-space-3);
    font-size: var(--px-text-sm);
}

.px-weekplan__printed {
    margin-left: auto;
    color: var(--px-muted);
    font-size: var(--px-text-xs);
}

@media print {
    /* No box of its own: the first sheet starts the document, not a blank default page. */
    .px-print {
        display: contents;
    }

    /* Nothing but the sheets: the framework's error bar, reconnect dialog and
       the like would each start a page of the browser's default size. */
    body:has(.px-weekplan) > :not(.px-print) {
        display: none !important;
    }

    /* Portrait: a busy day's entries in two columns, so a full week fits one sheet. */
    .px-weekplan--portrait .px-weekplan__entries {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 2mm;
    }

    /* Tighter on paper, so a full week fits one sheet. */
    .px-weekplan {
        font-size: var(--px-text-2xs);
    }

    .px-weekplan__entry,
    .px-weekplan__absent,
    .px-weekplan__empty {
        padding: 1px 4px;
    }

    .px-weekplan__entries {
        min-height: 0;
    }

    .px-weekplan--portrait .px-weekplan__entries {
        min-height: 0;
    }

    .px-weekplan__dayhead {
        padding: 2px 4px;
    }

    .px-weekplan__head {
        margin-bottom: 2mm;
        padding-bottom: 1mm;
    }

    .px-weekplan__name {
        font-size: var(--px-text-base);
    }

    .px-weekplan__week,
    .px-weekplan__total {
        font-size: var(--px-text-2xs);
    }

    .px-print__bar {
        display: none;
    }

    .px-weekplan {
        width: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
}

/* ------------------------------------------------------------------
   Inside the phone app (AppShell, owner 17.11.2026): no sidebar, so the
   header keeps its normal padding at every width (the narrow-screen rule
   leaves room for the sidebar toggle) and starts with a "Start" link.
   ------------------------------------------------------------------ */
.px-shell--app .px-head {
    padding-left: var(--px-gutter);
}

.px-app-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--px-border-strong);
    border-radius: var(--px-radius-control);
    background: var(--px-surface);
    color: var(--px-text);
    font-weight: var(--px-weight-semibold);
    text-decoration: none;
}

.px-app-home:hover,
.px-app-home:focus-visible {
    background: var(--px-primary-soft);
    color: var(--px-primary);
}

.px-app-home:focus-visible {
    outline: 2px solid var(--px-primary);
    outline-offset: 2px;
}

/* Verordnung scannen (placeholder, PLAN-Scan.md): one large camera button. */
.px-scan {
    display: flex;
    flex-direction: column;
    gap: var(--px-space-4);
    max-width: 560px;
}

.px-scan__text,
.px-scan__hint {
    margin: 0;
    font-size: var(--px-text-md);
}

.px-scan__hint {
    color: var(--px-muted);
}

/* The label is the button; the file input inside it stays reachable but unseen. */
.px-scan__take {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--px-space-2);
    min-height: 56px;
    padding: 0 var(--px-space-4);
    border-radius: var(--px-radius-control);
    background: var(--px-primary);
    color: var(--px-surface);
    font-size: var(--px-text-md);
    font-weight: var(--px-weight-semibold);
    cursor: pointer;
}

.px-scan__take:hover {
    background: var(--px-primary-hover);
}

.px-scan__take:focus-within {
    outline: 2px solid var(--px-primary);
    outline-offset: 2px;
}

.px-scan__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* The list's search on its own line at phone width (PhoneWidth): the
   toolbar would fold it into its "..." menu. */
.px-phone-search {
    margin: 0 0 var(--px-space-3);
}

/* A phone number in a narrow column stays on one line. */
.px-cell__nowrap {
    white-space: nowrap;
}

/*
    The connection banner at phone width (ReconnectModal, owner 17.11.2026):
    it sits across the top, so the page and the sticky header move down by
    its height, published by ReconnectModal.razor.js; 0 while it is closed.
*/
:root {
    --px-offline-h: 0px;
}

@media (max-width: 759px) {
    body:has(#components-reconnect-modal[open]) {
        padding-top: var(--px-offline-h);
    }

    body:has(#components-reconnect-modal[open]) .px-head {
        top: var(--px-offline-h);
    }

    body:has(#components-reconnect-modal[open]) .px-side-toggle {
        top: calc(var(--px-offline-h) + 10px);
    }
}

/* ------------------------------------------------------------------
   Notes and tasks as cards on paper (StickyNote; owner 17.11.2026, after a
   reference of coloured note cards). The title is the link and covers the
   card; chips and round actions lie above it as their own targets. The
   paper comes from the id (NoteColors) and means nothing.
   ------------------------------------------------------------------ */
.px-notes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--px-space-4);
}

.px-notes--compact {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--px-space-3);
}

.px-note {
    --px-note-bg: var(--px-note-yellow);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--px-space-2);
    box-sizing: border-box;
    min-width: 0;
    min-height: 200px;
    padding: var(--px-space-4);
    border-radius: var(--px-radius-card);
    background: var(--px-note-bg);
    color: var(--px-text);
    box-shadow: var(--px-shadow-card);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.px-note:hover {
    transform: translateY(-2px);
    box-shadow: var(--px-shadow-raised);
}

.px-note:focus-within {
    outline: 2px solid var(--px-primary);
    outline-offset: 2px;
}

.px-note--yellow { --px-note-bg: var(--px-note-yellow); }
.px-note--coral { --px-note-bg: var(--px-note-coral); }
.px-note--lime { --px-note-bg: var(--px-note-lime); }
.px-note--lilac { --px-note-bg: var(--px-note-lilac); }
.px-note--sky { --px-note-bg: var(--px-note-sky); }
.px-note--mint { --px-note-bg: var(--px-note-mint); }

/* Done or discarded: a paler paper. Never opacity - it would take the text
   below its contrast floor; a lighter paper only raises it. */
.px-note--faded {
    background: color-mix(in srgb, var(--px-note-bg) 40%, var(--px-surface));
    box-shadow: none;
}

.px-note--compact {
    min-height: 128px;
    padding: var(--px-space-3);
}

.px-note__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    padding-right: 26px;
    overflow-wrap: anywhere;
    font-size: var(--px-text-md);
    font-weight: var(--px-weight-semibold);
    line-height: 1.35;
    color: inherit;
    text-decoration: none;
}

.px-note--compact .px-note__title {
    -webkit-line-clamp: 3;
    font-size: var(--px-text-base);
}

/* The whole card is the link. */
a.px-note__title::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

a.px-note__title:focus-visible {
    outline: none;
}

.px-note__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: var(--px-text-sm);
    color: var(--px-muted);
}

.px-note--compact .px-note__text {
    -webkit-line-clamp: 2;
}

/* Chips and the foot lie above the card's link; only their own links and
   buttons take the pointer, the rest still opens the card. */
.px-note__chips,
.px-note__foot {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.px-note__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.px-note__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 2px 8px;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--px-surface);
    font-size: var(--px-text-xs);
    color: var(--px-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

a.px-note__chip {
    pointer-events: auto;
}

a.px-note__chip:hover,
a.px-note__chip:focus-visible {
    text-decoration: underline;
}

.px-note__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--px-space-2);
    margin-top: auto;
}

.px-note__date {
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-medium);
    color: var(--px-text);
}

.px-note__actions {
    display: inline-flex;
    gap: 6px;
    pointer-events: auto;
}

/* The round dark buttons of the reference. */
.px-note__action {
    --px-icon-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--px-text);
    color: var(--px-surface);
    cursor: pointer;
}

.px-note__action:hover {
    background: var(--px-primary);
}

.px-note__action:focus-visible {
    outline: 2px solid var(--px-primary);
    outline-offset: 2px;
}

.px-note__action:disabled {
    opacity: 0.5;
    cursor: default;
}

.px-note__marker {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--px-text);
    color: var(--px-surface);
    font-size: var(--px-text-xs);
    font-weight: var(--px-weight-bold);
}

/* More cards than shown at once. */
.px-notes-more {
    display: flex;
    justify-content: center;
    margin-top: var(--px-space-4);
}

@media (max-width: 759px) {
    .px-notes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--px-space-3);
    }

    .px-note {
        min-height: 150px;
        padding: var(--px-space-3);
    }

    .px-note__title {
        font-size: var(--px-text-base);
    }
}

@media (max-width: 339px) {
    .px-notes {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .px-note {
        transition: none;
    }
}

/* A status pill inside a chip: the chip is the pill. */
.px-note__chip .px-badge {
    padding: 0;
    border: 0;
    background: none;
}

/* The quick task form (TaskCreateDrawer): the deadline as one row of chips
   and the rest behind "Mehr Angaben". */
.px-quick-due {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--px-space-2) var(--px-space-3);
    margin: var(--px-space-3) 0;
}

.px-quick-due__label {
    font-size: var(--px-text-sm);
    font-weight: var(--px-weight-semibold);
    color: var(--px-text);
}

.px-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    margin: var(--px-space-2) 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--px-primary);
    font: inherit;
    font-weight: var(--px-weight-semibold);
    cursor: pointer;
}

.px-more-toggle:focus-visible {
    outline: 2px solid var(--px-primary);
    outline-offset: 2px;
}

.px-more-toggle__chevron {
    --px-icon-size: 16px;
    display: inline-flex;
    transition: transform 150ms ease;
}

.px-more-toggle__chevron--open {
    transform: rotate(180deg);
}

/*
    Drawers at phone width (Drawer.razor; owner 17.11.2026): a sheet sliding
    up from the bottom, as tall as its content, rounded on top with a grab
    handle; praxo-sheet.js marks one that would leave only a small gap above
    it (data-px-full), and it is then full screen. The theme positions the
    panel absolutely with top/bottom 0 and sets its width inline (read off
    the rendered panel), hence the !important on width.
*/
@media (max-width: 759px) {
    .px-drawer-shell .dxbl-drawer-panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        height: auto;
        max-height: 100dvh;
        border-radius: 16px 16px 0 0;
        transform: translateY(0);
        transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .px-drawer-shell--closed .dxbl-drawer-panel {
        transform: translateY(100%);
    }

    .px-drawer-shell .dxbl-drawer-panel[data-px-full] {
        height: 100dvh;
        border-radius: 0;
    }

    .px-drawer-shell .px-drawer-head {
        position: relative;
        padding-top: 18px;
    }

    /* The grab handle: says "this slides", not a control of its own. */
    .px-drawer-shell .px-drawer-head::before {
        content: "";
        position: absolute;
        top: 6px;
        left: 50%;
        width: 40px;
        height: 4px;
        border-radius: 2px;
        background: var(--px-border-strong);
        transform: translateX(-50%);
    }

    .px-drawer-shell .dxbl-drawer-panel[data-px-full] .px-drawer-head::before {
        display: none;
    }
}

@media (max-width: 759px) and (prefers-reduced-motion: reduce) {
    .px-drawer-shell .dxbl-drawer-panel {
        transition: none;
    }
}

/* The card foot on a narrow card: the date keeps its line, the round
   buttons move to the right of the next one. */
.px-note__foot {
    flex-wrap: wrap;
}

.px-note__date {
    white-space: nowrap;
}

.px-note__actions {
    margin-left: auto;
}

/*
    Dialogs at phone width (every DxPopup carries px-dialog; owner
    17.11.2026): a sheet along the bottom edge over the full width, sliding
    up, full screen when praxo-sheet.js finds only a small gap above it.
    Structure read off the rendered dialog: dxbl-modal-root (fixed, full
    screen) > dxbl-modal-dialog.dxbl-popup.px-dialog (width inline, hence
    !important) > dxbl-modal-content. A popup never renders server-side, so
    the slide-in plays once (the "never animate on insertion" rule is about
    page content rendered twice).
*/
@media (max-width: 759px) {
    .dxbl-modal .dxbl-modal-root .dxbl-popup.dxbl-popup-adaptivity.px-dialog {
        position: fixed;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100% !important;
        max-width: 100%;
        max-height: 100dvh;
        margin: 0;
        border-radius: 16px 16px 0 0;
        animation: px-sheet-up 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .dxbl-modal .dxbl-modal-root .dxbl-popup.dxbl-popup-adaptivity.px-dialog .dxbl-modal-content {
        border-radius: 16px 16px 0 0;
    }

    .dxbl-modal .dxbl-modal-root .dxbl-popup.dxbl-popup-adaptivity.px-dialog[data-px-full] {
        top: 0;
        height: 100dvh;
        border-radius: 0;
    }

    .dxbl-modal .dxbl-modal-root .dxbl-popup.dxbl-popup-adaptivity.px-dialog[data-px-full] .dxbl-modal-content {
        height: 100%;
        border-radius: 0;
    }

    .dxbl-modal .dxbl-modal-root .dxbl-popup.dxbl-popup-adaptivity.px-dialog[data-px-full] .px-dialog-content--scroll {
        max-height: calc(100dvh - 140px);
    }
}

@keyframes px-sheet-up {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@media (max-width: 759px) and (prefers-reduced-motion: reduce) {
    .dxbl-modal .dxbl-modal-root .dxbl-popup.dxbl-popup-adaptivity.px-dialog {
        animation: none;
    }
}
