@import '_content/Medyar.Web.Designers/Medyar.Web.Designers.qi9rsdg3ud.bundle.scp.css';
@import '_content/Medyar.Web.Letters/Medyar.Web.Letters.tcaa1p7wzx.bundle.scp.css';

/* /Clinical/AssessmentFillDialog.razor.rz.scp.css */
/* base.css gives «label» line-height 2: the note label resets both. */
.afd-license[b-dwidvge4by] {
    margin: 0 0 10px;
    font-size: var(--font-small);
    color: var(--muted);
}

.afd-items[b-dwidvge4by] {
    max-height: min(52vh, 520px);
    overflow-y: auto;
}

.afd-item[b-dwidvge4by] {
    padding: 8px 0 4px;
    border-bottom: 1px solid var(--line);
}

.afd-question[b-dwidvge4by] {
    display: flex;
    gap: 8px;
    font-weight: 600;
}

.afd-number[b-dwidvge4by] {
    color: var(--muted);
}

.afd-options[b-dwidvge4by] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding-bottom: 4px;
}

.afd-option[b-dwidvge4by] {
    min-width: 92px;
}

/* Selected answer: filled with the primary colour (desktop OptionStyle). */
.afd-selected[b-dwidvge4by],
.afd-selected:hover[b-dwidvge4by] {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-primary);
}

.afd-footer[b-dwidvge4by] {
    margin-top: 10px;
}

.afd-totalline[b-dwidvge4by] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.afd-total[b-dwidvge4by] {
    font-size: var(--font-card-title);
    font-weight: 700;
}

.afd-muted[b-dwidvge4by] {
    font-size: var(--font-small);
    color: var(--muted);
}

.afd-notelabel[b-dwidvge4by] {
    display: block;
    margin: 8px 0 0;
    line-height: normal;
    font-size: var(--font-label);
    color: var(--muted);
}

.afd-note[b-dwidvge4by] {
    width: 100%;
    min-height: 56px;
    margin-top: 2px;
    resize: vertical;
}

.afd-actions[b-dwidvge4by] {
    margin-top: 12px;
}

.afd-save[b-dwidvge4by] {
    min-width: 150px;
}
/* /Clinical/AssessmentsPanel.razor.rz.scp.css */
.as-toggle[b-p6msg3iszy] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: flex-start;
}

.as-title[b-p6msg3iszy] {
    font-weight: 600;
}

.as-count[b-p6msg3iszy] {
    flex: 1;
    text-align: start;
    font-size: var(--font-small);
    color: var(--muted);
}

.as-chevron[b-p6msg3iszy] {
    font-weight: 600;
    color: var(--muted);
}

.as-body[b-p6msg3iszy] {
    margin-top: 10px;
}

.as-scales[b-p6msg3iszy] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-bottom: 8px;
}

.as-empty[b-p6msg3iszy] {
    margin: 0 0 8px;
    color: var(--muted);
}

.as-group[b-p6msg3iszy] {
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface-alt);
}

.as-head[b-p6msg3iszy] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.as-name[b-p6msg3iszy] {
    font-weight: 600;
}

.as-latest[b-p6msg3iszy] {
    font-size: var(--font-small);
    color: var(--muted);
}

.as-spark[b-p6msg3iszy] {
    flex: none;
    direction: ltr;
}

.as-row[b-p6msg3iszy] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    font-size: var(--font-small);
}

.as-when[b-p6msg3iszy] {
    flex: 1;
    color: var(--muted);
}

.as-band[b-p6msg3iszy] {
    color: var(--muted);
}

.as-total[b-p6msg3iszy] {
    font-weight: 600;
}

.as-caption[b-p6msg3iszy] {
    margin: 0;
    font-size: var(--font-small);
    color: var(--muted);
}
/* /Clinical/BodyMapChart.razor.rz.scp.css */
.bm[b-2hyqs3dskl] {
    display: block;
    direction: ltr;
    max-width: 100%;
    user-select: none;
}

.bm[b-2hyqs3dskl]  .bm-region {
    fill: var(--surface-alt);
    stroke: var(--line-strong);
    stroke-width: 1.5;
    stroke-linejoin: round;
    transition: fill 120ms ease;
}

.bm-live[b-2hyqs3dskl]  .bm-region {
    cursor: pointer;
}

.bm-live[b-2hyqs3dskl]  .bm-region:hover {
    fill: var(--hover);
}

.bm[b-2hyqs3dskl]  .bm-region.bm-selected {
    fill: var(--primary-soft);
    stroke: var(--primary);
    stroke-width: 2.8;
}

.bm[b-2hyqs3dskl]  .bm-top {
    stroke: var(--primary);
    stroke-width: 2.8;
    stroke-linejoin: round;
    pointer-events: none;
}

.bm[b-2hyqs3dskl]  .bm-outline {
    stroke: var(--line-strong);
    stroke-width: 2.4;
    stroke-linejoin: round;
    pointer-events: none;
}

.bm[b-2hyqs3dskl]  .bm-mark {
    outline: none;
}

.bm-live[b-2hyqs3dskl]  .bm-mark {
    cursor: pointer;
}

.bm[b-2hyqs3dskl]  .bm-mark:focus-visible circle,
.bm[b-2hyqs3dskl]  .bm-mark:focus-visible polygon {
    stroke: var(--primary);
}

.bm[b-2hyqs3dskl]  .bm-hoverbox {
    fill: var(--surface);
    stroke: var(--line);
    stroke-width: 1;
    pointer-events: none;
}

.bm[b-2hyqs3dskl]  .cl-svg-text {
    font-family: inherit;
    pointer-events: none;
}

/* Quick view: like the desktop Viewbox (MaxHeight 170) in a framed Surface box, never clickable. */
.bm:not(.bm-live)[b-2hyqs3dskl] {
    width: auto;
    max-height: 170px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
    pointer-events: none;
}
/* /Clinical/BodyMapPanel.razor.rz.scp.css */
/* Desktop grid: chart column (min 320) + side column 360. Narrow widths stack them. */
.bmp[b-z8ygr8fs6s] {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 360px;
    gap: 16px;
    margin-top: 10px;
}

@media (max-width: 820px) {
    .bmp[b-z8ygr8fs6s] {
        grid-template-columns: 1fr;
    }
}

.bmp-chart[b-z8ygr8fs6s] {
    min-width: 0;
}

.bmp-tabs[b-z8ygr8fs6s] {
    margin-bottom: 4px;
}

.bmp-frame[b-z8ygr8fs6s] {
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
    overflow: hidden;
}

.bmp-select[b-z8ygr8fs6s] {
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-control);
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-size: var(--font-label);
}

.bmp-add[b-z8ygr8fs6s] {
    display: block;
    width: 100%;
    margin-top: 8px;
}

.bmp-none[b-z8ygr8fs6s] {
    margin: 4px 2px;
    color: var(--muted);
}

/* One mark: glyph (solid circle = active, hollow diamond = healed), title, status, actions. */
.bmp-mark[b-z8ygr8fs6s] {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    gap: 4px 10px;
    margin-bottom: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface-alt);
    cursor: pointer;
}

.bmp-mark-on[b-z8ygr8fs6s] {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.bmp-glyph[b-z8ygr8fs6s] {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 2px solid var(--surface);
    border-radius: 50%;
    background: var(--danger);
    color: var(--surface);
    font-size: var(--font-label);
    font-style: normal;
    font-weight: 700;
}

.bmp-glyph i[b-z8ygr8fs6s] {
    font-style: normal;
}

.bmp-mark-healed .bmp-glyph[b-z8ygr8fs6s] {
    width: 22px;
    height: 22px;
    margin: 4px;
    border: 2px solid var(--ok);
    border-radius: 0;
    background: var(--ok-soft);
    color: var(--ink);
    transform: rotate(45deg);
}

.bmp-mark-healed .bmp-glyph i[b-z8ygr8fs6s] {
    transform: rotate(-45deg);
}

.bmp-text[b-z8ygr8fs6s] {
    min-width: 0;
}

.bmp-title[b-z8ygr8fs6s] {
    overflow: hidden;
    font-size: var(--font-label);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bmp-subtitle[b-z8ygr8fs6s] {
    overflow: hidden;
    margin-top: 2px;
    color: var(--muted);
    font-size: var(--font-small);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bmp-chip[b-z8ygr8fs6s] {
    align-self: start;
    border-color: var(--danger);
    background: var(--danger-soft);
    color: var(--danger);
}

.bmp-mark-healed .bmp-chip[b-z8ygr8fs6s] {
    border-color: var(--ok);
    background: var(--ok-soft);
    color: var(--ok);
}

.bmp-buttons[b-z8ygr8fs6s] {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.bmp-legend[b-z8ygr8fs6s] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 2px 0;
    color: var(--muted);
    font-size: var(--font-small);
}

.bmp-dot[b-z8ygr8fs6s] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--danger);
}

.bmp-dia[b-z8ygr8fs6s] {
    width: 9px;
    height: 9px;
    margin-inline-start: 10px;
    border: 1.5px solid var(--ok);
    background: var(--ok-soft);
    transform: rotate(45deg);
}
/* /Clinical/BodyMapQuick.razor.rz.scp.css */
.bmq-summary[b-m56k9mzs61] {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: var(--font-small);
    text-align: center;
}
/* /Clinical/CalculatorDialog.razor.rz.scp.css */
/* base.css gives «label» line-height 2: every label here resets both. */
.cd-select[b-ox5fyyhjpc] {
    width: 100%;
    margin-bottom: 10px;
}

.cd-input[b-ox5fyyhjpc] {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cd-label[b-ox5fyyhjpc] {
    margin: 0;
    line-height: normal;
    color: var(--muted);
}

.cd-unit[b-ox5fyyhjpc] {
    color: var(--muted);
}

.cd-result[b-ox5fyyhjpc] {
    margin: 10px 0 6px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface-alt);
    font-size: var(--font-title);
    font-weight: 700;
    text-align: center;
}

.cd-invalid[b-ox5fyyhjpc] {
    color: var(--danger);
}

.cd-muted[b-ox5fyyhjpc],
.cd-caption[b-ox5fyyhjpc] {
    font-size: var(--font-small);
    color: var(--muted);
}

.cd-caption[b-ox5fyyhjpc] {
    margin-top: 6px;
    font-weight: 600;
}

.cd-actions[b-ox5fyyhjpc] {
    margin-top: 12px;
}

.cd-close[b-ox5fyyhjpc] {
    min-width: 120px;
}
/* /Clinical/CarePlanCard.razor.rz.scp.css */
.cpc[b-mdr51hwt3l] {
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface-alt);
}

.cpc-head[b-mdr51hwt3l] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cpc-titles[b-mdr51hwt3l] {
    flex: 1;
    min-width: 0;
}

.cpc-titleline[b-mdr51hwt3l] {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.cpc-title[b-mdr51hwt3l] {
    font-size: var(--font-label);
    font-weight: 600;
}

.cpc-sample[b-mdr51hwt3l],
.cpc-status[b-mdr51hwt3l],
.cpc-anchor[b-mdr51hwt3l] {
    font-size: var(--font-small);
    color: var(--muted);
}

.cpc-anchor[b-mdr51hwt3l] {
    margin-top: 2px;
}

.cpc-progress[b-mdr51hwt3l] {
    padding: 1px 10px;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-chip);
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-size: var(--font-small);
    font-weight: 600;
    white-space: nowrap;
}

.cpc-bar[b-mdr51hwt3l] {
    height: 6px;
    margin: 8px 0;
    border-radius: 3px;
    background: var(--track);
    overflow: hidden;
}

.cpc-fill[b-mdr51hwt3l] {
    height: 100%;
    background: var(--ok);
    transition: width 160ms ease;
}

.cpc-fold[b-mdr51hwt3l] {
    margin: 0 26px 6px;
}

/* ---- timeline row: dot + connector, title/due text, state chip, tick box ---- */
.cpc-step[b-mdr51hwt3l] {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding-inline-start: 26px;
}

.cpc-step[b-mdr51hwt3l]::before {
    content: "";
    position: absolute;
    inset-inline-start: 12px;
    top: 16px;
    bottom: -2px;
    width: 2px;
    background: var(--line);
}

.cpc-last[b-mdr51hwt3l]::before {
    display: none;
}

.cpc-dot[b-mdr51hwt3l] {
    position: absolute;
    inset-inline-start: 6px;
    top: 11px;
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border: 2px solid var(--muted);
    border-radius: 50%;
    background: var(--surface);
}

.cpc-body[b-mdr51hwt3l] {
    flex: 1;
    min-width: 0;
    margin: 6px 14px 12px 4px;
    max-width: 560px;
}

.cpc-steptitle[b-mdr51hwt3l] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cpc-name[b-mdr51hwt3l] {
    font-size: var(--font-label);
    font-weight: 600;
}

.cpc-chip[b-mdr51hwt3l] {
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-chip);
    background: var(--surface-alt);
    color: var(--muted);
    font-size: var(--font-small);
}

.cpc-due[b-mdr51hwt3l],
.cpc-note[b-mdr51hwt3l] {
    margin-top: 2px;
    font-size: var(--font-small);
    color: var(--muted);
}

.cpc-due[b-mdr51hwt3l] {
    display: flex;
    gap: 6px;
}

/* WHY: the old global «input» rule makes inputs full width; a tick box keeps its own size. */
.cpc-tick[b-mdr51hwt3l] {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 10px 0 0;
    padding: 0;
    accent-color: var(--primary);
}

.cpc-st-done .cpc-dot[b-mdr51hwt3l] {
    border-color: var(--ok);
    background: var(--ok);
}

.cpc-st-done .cpc-name[b-mdr51hwt3l] {
    color: var(--muted);
}

.cpc-st-done .cpc-chip[b-mdr51hwt3l] {
    border-color: var(--ok);
    background: var(--ok-soft);
    color: var(--ok);
}

.cpc-st-due .cpc-dot[b-mdr51hwt3l] {
    border-color: var(--warn);
    background: var(--warn-soft);
}

.cpc-st-due .cpc-chip[b-mdr51hwt3l] {
    border-color: var(--warn);
    background: var(--warn-soft);
    color: var(--warn);
}

.cpc-st-overdue .cpc-dot[b-mdr51hwt3l] {
    border-color: var(--danger);
    background: var(--danger-soft);
}

.cpc-st-overdue .cpc-chip[b-mdr51hwt3l] {
    border-color: var(--danger-line);
    background: var(--danger-soft);
    color: var(--danger);
}

.cpc-st-overdue .cpc-rel[b-mdr51hwt3l] {
    color: var(--danger);
}
/* /Clinical/CarePlanPanel.razor.rz.scp.css */
/* base.css gives «label» line-height 2: every label here resets both. */
.cp[b-5bt2tov6b6] {
    margin-top: 10px;
}

.cp-start[b-5bt2tov6b6] {
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-card);
    background: var(--primary-soft);
}

.cp-label[b-5bt2tov6b6] {
    display: block;
    margin: 0;
    line-height: normal;
    font-size: var(--font-small);
    color: var(--muted);
}

.cp-pick[b-5bt2tov6b6] {
    width: min(420px, 100%);
    margin: 3px 0 8px;
}

.cp-anchor[b-5bt2tov6b6] {
    width: 170px;
    margin: 3px 0 10px;
}

.cp-buttons[b-5bt2tov6b6] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cp-startbtn[b-5bt2tov6b6] {
    min-width: 90px;
}

.cp-hint[b-5bt2tov6b6] {
    margin-inline-start: 4px;
    font-size: var(--font-small);
    color: var(--muted);
}

.cp-undo[b-5bt2tov6b6] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding: 6px 12px;
    border: 1px solid var(--ok);
    border-radius: var(--radius-control);
    background: var(--ok-soft);
    color: var(--ok);
}

.cp-empty[b-5bt2tov6b6] {
    margin: 0 0 6px;
    color: var(--muted);
}
/* /Clinical/CarePlanQuick.razor.rz.scp.css */
.cq-undo[b-p1wsb35ft9] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    padding: 4px 10px;
    border: 1px solid var(--ok);
    border-radius: var(--radius-control);
    background: var(--ok-soft);
    color: var(--ok);
    font-size: var(--font-small);
}

.cq-empty[b-p1wsb35ft9] {
    margin: 0;
    font-size: var(--font-label);
    color: var(--muted);
}

.cq-row[b-p1wsb35ft9] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}

.cq-tick[b-p1wsb35ft9] {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    accent-color: var(--primary);
}

.cq-texts[b-p1wsb35ft9] {
    flex: 1;
    min-width: 0;
}

.cq-title[b-p1wsb35ft9] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--font-label);
    font-weight: 600;
}

.cq-plan[b-p1wsb35ft9] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--font-small);
    color: var(--muted);
}

.cq-chip[b-p1wsb35ft9] {
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-chip);
    background: var(--surface-alt);
    color: var(--muted);
    font-size: var(--font-small);
    white-space: nowrap;
}

.cq-due .cq-chip[b-p1wsb35ft9] {
    border-color: var(--warn);
    background: var(--warn-soft);
    color: var(--warn);
}

.cq-overdue .cq-chip[b-p1wsb35ft9] {
    border-color: var(--danger-line);
    background: var(--danger-soft);
    color: var(--danger);
}
/* /Clinical/ClinicalCard.razor.rz.scp.css */
/* WHY: the summary card shell already draws the frame and the title of every level, so the panel is flattened exactly as the desktop
   SummaryViews.Unframe does (frame removed, the title marked PanelTitle hidden); the muted summary line and the action buttons stay. */
.cc[b-0hqdlvsy43] {
    color: var(--ink);
}

.cc-head[b-0hqdlvsy43] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.cc-titles[b-0hqdlvsy43] {
    min-width: 0;
}

/* Hidden visually, still the accessible name of the section. */
.cc-title[b-0hqdlvsy43] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.cc-sub[b-0hqdlvsy43] {
    font-size: var(--font-small);
    color: var(--muted);
}

.cc-actions[b-0hqdlvsy43] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Detail window (V3-1): the panel keeps the desktop Card frame and its title, as SummaryDetailContent shows it un-flattened. */
.cc-framed[b-0hqdlvsy43] {
    padding: var(--card-padding);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
}

.cc-framed .cc-title[b-0hqdlvsy43] {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    font-size: var(--font-card-title);
    font-weight: 700;
}
/* /Clinical/FlowsheetPanel.razor.rz.scp.css */
/* base.css gives «label» line-height 2: every label wrapper here resets both. */
.fs label[b-pz3x8rba3p] {
    margin: 0;
    line-height: normal;
}

.fs[b-pz3x8rba3p] {
    margin-top: 10px;
}

.fs-hint[b-pz3x8rba3p] {
    color: var(--muted);
    font-size: var(--font-small);
}

.fs-empty[b-pz3x8rba3p] {
    margin: 0 0 8px;
    color: var(--muted);
}

/* Quick-entry form: PrimarySoft card, one box per metric. */
.fs-entry[b-pz3x8rba3p] {
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-card);
    background: var(--primary-soft);
}

.fs-at[b-pz3x8rba3p] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.fs-atbox[b-pz3x8rba3p] {
    width: 190px;
}

.fs-link[b-pz3x8rba3p] {
    margin: 0 0 8px;
    color: var(--primary-ink);
    font-size: var(--font-small);
}

.fs-boxes[b-pz3x8rba3p] {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
}

.fs-box[b-pz3x8rba3p] {
    display: block;
    width: 150px;
    margin-bottom: 6px;
}

.fs-boxhead[b-pz3x8rba3p] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
    color: var(--muted);
    font-size: var(--font-small);
}

.fs-boxtitle[b-pz3x8rba3p] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fs-box .input[b-pz3x8rba3p] {
    width: 100%;
    margin-top: 3px;
}

.fs-derived[b-pz3x8rba3p] {
    margin: 0 0 4px;
}

.fs-buttons[b-pz3x8rba3p] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.fs-save[b-pz3x8rba3p] {
    min-width: 90px;
}

/* Tiles: a real button each (168 × min 92), danger tint when abnormal, primary frame when selected. */
.fs-tiles[b-pz3x8rba3p] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.fs-tile[b-pz3x8rba3p] {
    display: block;
    width: 168px;
    min-height: 92px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface-alt);
    color: var(--ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color 120ms ease;
}

.fs-tile:hover[b-pz3x8rba3p] {
    border-color: var(--primary-border);
}

.fs-tile:focus-visible[b-pz3x8rba3p],
.fs-tile.fs-selected[b-pz3x8rba3p] {
    border-color: var(--primary);
    outline: none;
}

.fs-tile.fs-selected[b-pz3x8rba3p] {
    box-shadow: inset 0 0 0 1px var(--primary);
}

.fs-tile.fs-abnormal[b-pz3x8rba3p] {
    border-color: var(--danger-line);
    background: var(--danger-soft);
}

.fs-tilehead[b-pz3x8rba3p] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: var(--muted);
    font-size: var(--font-small);
}

.fs-tiletitle[b-pz3x8rba3p] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fs-marker[b-pz3x8rba3p] {
    padding: 0 8px;
    border: 1px solid var(--danger-line);
    border-radius: var(--radius-chip);
    background: var(--surface);
    color: var(--danger);
    font-weight: 600;
}

.fs-valuerow[b-pz3x8rba3p] {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin: 6px 0 2px;
}

.fs-value[b-pz3x8rba3p] {
    font-size: var(--font-title);
    font-weight: 600;
}

.fs-abnormal .fs-value[b-pz3x8rba3p] {
    color: var(--danger);
}

.fs-unit[b-pz3x8rba3p] {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: var(--font-small);
}

.fs-tilefoot[b-pz3x8rba3p] {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    color: var(--muted);
    font-size: var(--font-small);
}

/* Trend card: SurfaceAlt, chart on the start side, last readings (min 240) on the other. */
.fs-trend[b-pz3x8rba3p] {
    margin-top: 2px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface-alt);
}

.fs-trendhead[b-pz3x8rba3p] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.fs-trendtitle[b-pz3x8rba3p] {
    font-weight: 600;
}

.fs-range[b-pz3x8rba3p] {
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-card);
    background: var(--primary-soft);
}

.fs-rangerow[b-pz3x8rba3p] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fs-rangebox[b-pz3x8rba3p] {
    width: 90px;
}

.fs-rangenote[b-pz3x8rba3p] {
    margin: 6px 0 0;
}

.fs-trendbody[b-pz3x8rba3p] {
    display: grid;
    grid-template-columns: 1fr minmax(240px, auto);
    gap: 16px;
}

@media (max-width: 760px) {
    .fs-trendbody[b-pz3x8rba3p] {
        grid-template-columns: 1fr;
    }
}

.fs-chart[b-pz3x8rba3p] {
    min-width: 0;
}

.fs-band[b-pz3x8rba3p] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--muted);
    font-size: var(--font-small);
}

.fs-bandsw[b-pz3x8rba3p] {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--ok);
    border-radius: 4px;
    background: var(--ok-soft);
}

.fs-readhead[b-pz3x8rba3p] {
    margin-bottom: 4px;
}

.fs-reading[b-pz3x8rba3p] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid var(--line);
}

.fs-readdate[b-pz3x8rba3p] {
    flex: 1;
    color: var(--muted);
    font-size: var(--font-small);
}

.fs-readvalue[b-pz3x8rba3p] {
    font-size: var(--font-label);
    font-weight: 600;
}

.fs-readmarker[b-pz3x8rba3p] {
    padding: 0 8px;
    border: 1px solid var(--danger-line);
    border-radius: var(--radius-chip);
    background: var(--danger-soft);
    color: var(--danger);
    font-size: var(--font-small);
}
/* /Clinical/FlowsheetQuick.razor.rz.scp.css */
.fq2-empty[b-ja8fc6j9a8] {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: var(--font-label);
}

.fq2-tiles[b-ja8fc6j9a8] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

/* Desktop quick tile: 124 wide, padding 10,8, SurfaceAlt, danger tint when abnormal. */
.fq2-tile[b-ja8fc6j9a8] {
    width: 124px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface-alt);
}

.fq2-tile.fq2-abnormal[b-ja8fc6j9a8] {
    border-color: var(--danger-line);
    background: var(--danger-soft);
}

.fq2-head[b-ja8fc6j9a8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    color: var(--muted);
    font-size: var(--font-small);
}

.fq2-title[b-ja8fc6j9a8] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fq2-marker[b-ja8fc6j9a8] {
    padding: 0 6px;
    border: 1px solid var(--danger-line);
    border-radius: var(--radius-chip);
    background: var(--surface);
    color: var(--danger);
    font-weight: 600;
}

.fq2-row[b-ja8fc6j9a8] {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    margin: 4px 0 2px;
}

.fq2-value[b-ja8fc6j9a8] {
    font-size: var(--font-body);
    font-weight: 600;
}

.fq2-abnormal .fq2-value[b-ja8fc6j9a8] {
    color: var(--danger);
}

.fq2-unit[b-ja8fc6j9a8] {
    margin-bottom: 1px;
    color: var(--muted);
    font-size: var(--font-small);
}

.fq2-date[b-ja8fc6j9a8] {
    overflow: hidden;
    color: var(--muted);
    font-size: var(--font-small);
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* /Clinical/ImagingPanel.razor.rz.scp.css */
.img-empty[b-0y58c2kmqt] {
    margin: 0;
    color: var(--muted);
}

/* Desktop request card: SurfaceAlt, Line border, radius 12, padding 12. */
.img-card[b-0y58c2kmqt] {
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-alt);
}

.img-head[b-0y58c2kmqt] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.img-titles[b-0y58c2kmqt] {
    flex: 1;
    min-width: 0;
}

.img-title[b-0y58c2kmqt] {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.img-when[b-0y58c2kmqt] {
    margin-top: 2px;
    color: var(--muted);
    font-size: var(--font-small);
}

.img-status[b-0y58c2kmqt] {
    background: var(--primary-soft);
    color: var(--primary-ink);
}

.img-urgent[b-0y58c2kmqt] {
    border: 1px solid var(--warn);
    background: var(--warn-soft);
    color: var(--ink);
}

.img-info[b-0y58c2kmqt] {
    margin: 0 0 6px;
    font-size: var(--font-small);
}

.img-section[b-0y58c2kmqt] {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.img-line[b-0y58c2kmqt] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.img-caption[b-0y58c2kmqt] {
    color: var(--muted);
    font-size: var(--font-small);
}

.img-chips[b-0y58c2kmqt] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.img-chips:empty[b-0y58c2kmqt] {
    display: none;
}

/* Desktop chip button: Surface, LineStrong border, chip radius, hover = Hover; template chips use PrimarySoft. */
.img-chip[b-0y58c2kmqt] {
    max-width: 220px;
    min-height: var(--control-height-small);
    padding: 3px 10px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-chip);
    background: var(--surface);
    color: var(--primary-ink);
    font: inherit;
    font-size: var(--font-label);
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.img-template[b-0y58c2kmqt] {
    padding: 0 12px;
    background: var(--primary-soft);
}

.img-chip:hover[b-0y58c2kmqt] {
    background: var(--hover);
}

.img-chip:focus-visible[b-0y58c2kmqt] {
    outline: 2px solid var(--primary-border);
}
/* /Clinical/MedicationAssistPanel.razor.rz.scp.css */
/* base.css gives «label» line-height 2: the confirm label resets both. */
.ma[b-062pi0hk5g] {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface-alt);
}

.ma-title[b-062pi0hk5g] {
    margin: 0;
    font-size: var(--font-card-title);
    font-weight: 700;
}

.ma-query[b-062pi0hk5g] {
    width: 100%;
    margin: 8px 0;
}

.ma-suggestions[b-062pi0hk5g] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Desktop SuggestionRow: surface chip, hover = Hover fill + primary border. */
.ma-suggestion[b-062pi0hk5g] {
    display: block;
    min-width: 170px;
    max-width: 260px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    text-align: start;
    cursor: pointer;
}

.ma-suggestion:hover[b-062pi0hk5g] {
    border-color: var(--primary);
    background: var(--hover);
}

.ma-suggestionhead[b-062pi0hk5g] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ma-badge[b-062pi0hk5g] {
    padding: 0 7px;
    border-radius: var(--radius-chip);
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-size: var(--font-small);
}

.ma-suggestiontitle[b-062pi0hk5g] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--font-label);
    font-weight: 600;
}

.ma-suggestiondetail[b-062pi0hk5g] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--font-small);
    color: var(--muted);
}

.ma-cue[b-062pi0hk5g] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 10px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-control);
    background: var(--primary-soft);
    font-size: var(--font-label);
}

.ma-marker[b-062pi0hk5g] {
    order: -1;
    color: var(--primary);
}

.ma-lv-warn[b-062pi0hk5g] {
    border-color: var(--warn);
    background: var(--warn-soft);
}

.ma-lv-warn .ma-marker[b-062pi0hk5g] {
    color: var(--warn);
}

.ma-lv-danger[b-062pi0hk5g] {
    border-color: var(--danger);
    background: var(--danger-soft);
}

.ma-lv-danger .ma-marker[b-062pi0hk5g] {
    color: var(--danger);
}

.ma-coverage[b-062pi0hk5g] {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface-alt);
}

.ma-cov-warn[b-062pi0hk5g] {
    border-color: var(--warn);
    background: var(--warn-soft);
}

.ma-cov-ok[b-062pi0hk5g] {
    border-color: var(--ok);
    background: var(--ok-soft);
}

.ma-covmark[b-062pi0hk5g] {
    display: grid;
    flex: none;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    font-weight: 700;
}

.ma-covtitle[b-062pi0hk5g] {
    font-size: var(--font-label);
    font-weight: 600;
}

.ma-confirm[b-062pi0hk5g] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
    line-height: normal;
    cursor: pointer;
}

.ma-confirm input[b-062pi0hk5g] {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
}

.ma-info[b-062pi0hk5g] {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
}

.ma-infotitle[b-062pi0hk5g] {
    font-size: var(--font-label);
    font-weight: 700;
}

.ma-small[b-062pi0hk5g] {
    font-size: var(--font-small);
    color: var(--muted);
}

.ma-gap[b-062pi0hk5g] {
    margin-bottom: 6px;
}

.ma-label[b-062pi0hk5g] {
    font-size: var(--font-small);
    font-weight: 600;
    color: var(--muted);
}

.ma-use[b-062pi0hk5g] {
    color: var(--primary);
}

.ma-side[b-062pi0hk5g] {
    color: var(--warn);
}

.ma-caution[b-062pi0hk5g] {
    color: var(--danger);
}

.ma-text[b-062pi0hk5g] {
    margin-bottom: 6px;
    font-size: var(--font-label);
}

.ma-latin[b-062pi0hk5g] {
    text-align: right;
}

.ma-insurer[b-062pi0hk5g] {
    display: flex;
    justify-content: flex-end;
    margin: 6px 0;
}
/* /Clinical/PackagesPanel.razor.rz.scp.css */
.pk[b-1jypbmkgkw] {
    margin-top: 4px;
}

.pk-empty[b-1jypbmkgkw] {
    margin: 0 0 6px;
    color: var(--muted);
}

.pk-card[b-1jypbmkgkw] {
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface-alt);
}

.pk-head[b-1jypbmkgkw],
.pk-foot[b-1jypbmkgkw] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.pk-head[b-1jypbmkgkw] {
    align-items: flex-start;
}

.pk-titles[b-1jypbmkgkw] {
    flex: 1;
    min-width: 0;
}

.pk-title[b-1jypbmkgkw] {
    font-size: var(--font-label);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.pk-sub[b-1jypbmkgkw] {
    margin-top: 2px;
    font-size: var(--font-small);
    color: var(--muted);
}

.pk-buttons[b-1jypbmkgkw] {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pk-book[b-1jypbmkgkw] {
    padding-inline: 12px;
}

/* Two layers: the lighter one is used + booked sessions, the solid one is used sessions. */
.pk-bar[b-1jypbmkgkw] {
    position: relative;
    height: 8px;
    margin: 8px 0 6px;
    border-radius: 4px;
    background: var(--track);
    overflow: hidden;
}

.pk-reserved[b-1jypbmkgkw],
.pk-used[b-1jypbmkgkw] {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    transition: width 160ms ease;
}

.pk-reserved[b-1jypbmkgkw] {
    background: var(--primary-border);
}

.pk-used[b-1jypbmkgkw] {
    background: var(--primary);
}

.pk-bar-done .pk-used[b-1jypbmkgkw] {
    background: var(--ok);
}

/* WHY: after the completion rule, so over-use (which also suggests completion) shows the warning colour. */
.pk-bar-warn .pk-used[b-1jypbmkgkw] {
    background: var(--warn);
}

.pk-line[b-1jypbmkgkw] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pk-progress[b-1jypbmkgkw] {
    font-weight: 600;
}

.pk-dot[b-1jypbmkgkw],
.pk-remaining[b-1jypbmkgkw] {
    color: var(--muted);
}

.pk-booked[b-1jypbmkgkw] {
    color: var(--primary);
}

.pk-warning[b-1jypbmkgkw] {
    margin-top: 8px;
    padding: 4px 10px;
    border: 1px solid var(--warn);
    border-radius: var(--radius-control);
    background: var(--warn-soft);
    color: var(--warn);
    font-size: var(--font-small);
}

.pk-previous[b-1jypbmkgkw] {
    margin-top: 6px;
}

.pk-prev[b-1jypbmkgkw] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 2px;
    border-bottom: 1px solid var(--line);
}

.pk-prevtitle[b-1jypbmkgkw] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pk-prevprogress[b-1jypbmkgkw] {
    font-size: var(--font-small);
    color: var(--muted);
}

.pk-prevstatus[b-1jypbmkgkw] {
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-chip);
    background: var(--surface-alt);
    color: var(--muted);
    font-size: var(--font-small);
}
/* /Clinical/PhotoCompareDialog.razor.rz.scp.css */
/* base.css gives «label» line-height 2: reset it on the field wrappers. */
.pcd label[b-t3jgrx74o7] {
    margin: 0;
    line-height: normal;
}

.pcd[b-t3jgrx74o7] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: min(560px, calc(100vh - 140px));
}

/* Toolbar card: Surface, Line border, Radius.Card, padding 14,12. */
.pcd-bar[b-t3jgrx74o7] {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
}

.pcd-top[b-t3jgrx74o7] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pcd-pick[b-t3jgrx74o7] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

@media (max-width: 640px) {
    .pcd-pick[b-t3jgrx74o7] {
        grid-template-columns: 1fr;
    }
}

.pcd-field[b-t3jgrx74o7] {
    display: block;
    min-width: 0;
}

.pcd-field .select[b-t3jgrx74o7] {
    width: 100%;
    margin-top: 4px;
}

.pcd-hint[b-t3jgrx74o7] {
    color: var(--muted);
    font-size: var(--font-small);
}

.pcd-add[b-t3jgrx74o7] {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.pcd-add .input[b-t3jgrx74o7] {
    flex: 1;
    min-width: 0;
}

.pcd-stage[b-t3jgrx74o7] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
}

.pcd-empty[b-t3jgrx74o7] {
    margin: auto;
    color: var(--muted);
    text-align: center;
}

/* Side by side: «before» on the start side (right), «after» on the left, in reading order. */
.pcd-side[b-t3jgrx74o7] {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-height: 0;
}

.pcd-shot[b-t3jgrx74o7] {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    margin: 0;
}

.pcd-shot img[b-t3jgrx74o7] {
    flex: 1;
    min-height: 0;
    max-width: 100%;
    max-height: calc(100vh - 380px);
    object-fit: contain;
}

.pcd-shot figcaption[b-t3jgrx74o7] {
    margin-top: 8px;
    font-weight: 600;
}

/* Slider: LTR canvas; «after» fills it, «before» is clipped to the right of the divider. */
.pcd-over[b-t3jgrx74o7] {
    position: relative;
    flex: 1;
    min-height: 240px;
    cursor: ew-resize;
    touch-action: none;
    user-select: none;
}

.pcd-over img[b-t3jgrx74o7] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 380px);
    object-fit: contain;
    pointer-events: none;
}

.pcd-line[b-t3jgrx74o7] {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    pointer-events: none;
}

.pcd-badge[b-t3jgrx74o7] {
    position: absolute;
    top: 6px;
    padding: 2px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    font-size: var(--font-small);
    pointer-events: none;
}

.pcd-badge-left[b-t3jgrx74o7] {
    left: 6px;
}

.pcd-badge-right[b-t3jgrx74o7] {
    right: 6px;
}

.pcd-range[b-t3jgrx74o7] {
    width: calc(100% - 80px);
    margin: 10px 40px 0;
    accent-color: var(--primary);
}
/* /Clinical/StockUseDialog.razor.rz.scp.css */
/* base.css gives «label» line-height 2: every label here resets both. */
.su-lead[b-bpjoiz46su] {
    margin: 0 0 10px;
    color: var(--muted);
}

.su-card[b-bpjoiz46su] {
    margin-bottom: 8px;
    padding: var(--card-padding);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
}

.su-row[b-bpjoiz46su] {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.su-field[b-bpjoiz46su] {
    min-width: 0;
}

.su-item[b-bpjoiz46su] {
    flex: 1;
}

.su-qty[b-bpjoiz46su] {
    width: 130px;
}

.su-label[b-bpjoiz46su] {
    display: block;
    margin: 0 0 3px;
    line-height: normal;
    color: var(--muted);
}

.su-item .select[b-bpjoiz46su],
.su-qty .input[b-bpjoiz46su] {
    width: 100%;
}

.su-muted[b-bpjoiz46su] {
    margin-top: 6px;
    color: var(--muted);
}

.su-error[b-bpjoiz46su] {
    margin-top: 6px;
    color: var(--danger);
}

.su-lines[b-bpjoiz46su] {
    max-height: 240px;
    overflow-y: auto;
}

.su-line[b-bpjoiz46su] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
}

.su-name[b-bpjoiz46su] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.su-text[b-bpjoiz46su] {
    font-weight: 600;
}

.su-warning[b-bpjoiz46su] {
    margin-top: 8px;
    padding: 4px 10px;
    border: 1px solid var(--warn);
    border-radius: var(--radius-chip);
    background: var(--warn-soft);
    color: var(--warn);
    font-size: var(--font-small);
}

.su-message[b-bpjoiz46su] {
    min-height: 20px;
    margin: 8px 0 12px;
    color: var(--danger);
}

.su-save[b-bpjoiz46su] {
    min-width: 150px;
}
/* /Clinical/SurgeryPanel.razor.rz.scp.css */
/* base.css gives «label» line-height 2: every label wrapper here resets both. */
.sg-empty[b-c7j95ga45c] {
    margin: 0;
    color: var(--muted);
}

.sg-card[b-c7j95ga45c] {
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface-alt);
}

.sg-head[b-c7j95ga45c] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.sg-titles[b-c7j95ga45c] {
    flex: 1;
    min-width: 0;
}

.sg-title[b-c7j95ga45c] {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.sg-when[b-c7j95ga45c] {
    margin-top: 2px;
    font-size: var(--font-small);
    color: var(--muted);
}

.sg-lists[b-c7j95ga45c] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0 20px;
}

.sg-listhead[b-c7j95ga45c] {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: var(--font-small);
}

.sg-phase[b-c7j95ga45c] {
    font-weight: 600;
}

.sg-progress[b-c7j95ga45c] {
    color: var(--muted);
}

.sg-check[b-c7j95ga45c] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 0;
    line-height: normal;
    color: var(--ink);
    cursor: pointer;
}

.sg-check input[b-c7j95ga45c] {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    accent-color: var(--primary);
}

.sg-foot[b-c7j95ga45c] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.sg-notes[b-c7j95ga45c] {
    font-size: var(--font-small);
    color: var(--muted);
}
/* /Clinical/ToothChart.razor.rz.scp.css */
.tc[b-uzvcg03hfu] {
    display: block;
    direction: ltr;
    max-width: 100%;
    user-select: none;
}

.tc[b-uzvcg03hfu]  .tc-tooth {
    outline: none;
}

.tc[b-uzvcg03hfu]  .tc-crown {
    fill: var(--tc-fill);
    transition: fill 120ms ease;
}

.tc-live[b-uzvcg03hfu]  .tc-tooth {
    cursor: pointer;
}

.tc-live[b-uzvcg03hfu]  .tc-tooth:hover .tc-crown {
    fill: var(--tc-hover);
}

.tc-live[b-uzvcg03hfu]  .tc-tooth:focus-visible .tc-crown {
    stroke: var(--primary);
    stroke-width: 2.6;
}

.tc[b-uzvcg03hfu]  .cl-svg-text {
    font-family: inherit;
    pointer-events: none;
}

/* Quick view: scaled like the desktop Viewbox (MaxHeight 150, never clickable). */
.tc:not(.tc-live)[b-uzvcg03hfu] {
    width: 100%;
    max-height: 150px;
    margin: 0 auto;
    pointer-events: none;
}
/* /Clinical/ToothChartPanel.razor.rz.scp.css */
/* base.css gives «label» line-height 2: reset it on the shell-primary toggle. */
.tcp-primary[b-lvje9e6rkt] {
    margin: 0;
    line-height: normal;
}

/* Desktop selection card: SurfaceAlt, Line border, radius 12, padding 12. */
.tcp-sel[b-lvje9e6rkt] {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-alt);
}

.tcp-selhead[b-lvje9e6rkt] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.tcp-seltitle[b-lvje9e6rkt] {
    font-weight: 600;
}

.tcp-empty[b-lvje9e6rkt] {
    margin: 0;
    color: var(--muted);
}

.tcp-row[b-lvje9e6rkt] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
}

.tcp-name[b-lvje9e6rkt] {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.tcp-status[b-lvje9e6rkt] {
    background: var(--primary-soft);
    color: var(--primary-ink);
}

.tcp-price[b-lvje9e6rkt] {
    color: var(--muted);
}
/* /Clinical/ToothLegend.razor.rz.scp.css */
.tl[b-2kl7o61k0x] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    margin: 6px 0 10px;
    font-size: var(--font-small);
    color: var(--muted);
}

.tl-small[b-2kl7o61k0x] {
    gap: 4px 12px;
    margin: 4px 0 8px;
}

.tl-item[b-2kl7o61k0x] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tl-sw[b-2kl7o61k0x] {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--muted);
    border-radius: 4px;
    background: transparent;
}

.tl-small .tl-sw[b-2kl7o61k0x] {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.tl-planned[b-2kl7o61k0x] {
    border-color: var(--warn);
    background: var(--warn-soft);
}

.tl-progress[b-2kl7o61k0x] {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.tl-done[b-2kl7o61k0x] {
    border-color: var(--ok);
    background: var(--ok-soft);
}
/* /Components/Parts/LoginPanel.razor.rz.scp.css */
.lg-page[b-m4q9qx1np6] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: var(--page-background);
    color: var(--ink);
}

.lg-brand[b-m4q9qx1np6] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    text-align: center;
    background: var(--selected-nav);
    color: var(--on-primary);
}

.lg-brand h1[b-m4q9qx1np6] {
    margin: 16px 0 4px;
    font-size: 52px;
    line-height: 1.3;
}

.lg-brand h2[b-m4q9qx1np6] {
    margin: 0 0 8px;
    font-size: var(--font-title, 20px);
    font-weight: 500;
    opacity: .9;
}

.lg-brand p[b-m4q9qx1np6] {
    margin: 0;
    font-size: var(--font-body);
    opacity: .75;
}

.lg-form[b-m4q9qx1np6] {
    align-self: center;
    justify-self: center;
    width: 390px;
    max-width: 90%;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card, 14px);
    background: var(--surface);
    box-shadow: var(--shadow-popup);
}

.lg-form h1[b-m4q9qx1np6] {
    margin: 0 0 6px;
    font-size: 24px;
}

.lg-hint[b-m4q9qx1np6] {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: var(--font-body);
}

.lg-form label[b-m4q9qx1np6] {
    display: block;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: var(--font-label);
}

.lg-submit[b-m4q9qx1np6] {
    width: 100%;
    margin: 20px 0 10px;
}

.lg-form small[b-m4q9qx1np6] {
    display: block;
    text-align: center;
    color: var(--placeholder);
    font-size: var(--font-label);
}

@media (max-width: 800px) {
    .lg-page[b-m4q9qx1np6] {
        grid-template-columns: 1fr;
    }

    .lg-brand[b-m4q9qx1np6] {
        padding: 28px;
    }

    .lg-brand h1[b-m4q9qx1np6] {
        font-size: 36px;
    }
}
/* /Infrastructure/DialogHost.razor.rz.scp.css */
/* Look from the W3 kit (.modal-backdrop, .modal, .btn …, tokens from the desktop palette); only sizes and layout here. */
.dialog[b-r5sziemsvx] {
    width: min(560px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: var(--card-padding);
}

.dialog-wide[b-r5sziemsvx] {
    width: min(1050px, 100%);
}

/* The letter designer: 90 % of the window, its own layout fills the height (desktop LetterDesignerWindow). */
.dialog-full[b-r5sziemsvx] {
    width: 90vw;
    height: 90vh;
    max-height: none;
    min-width: min(900px, calc(100vw - 16px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 960px) {
    .dialog-full[b-r5sziemsvx] {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        min-width: 0;
    }
}

.dialog-small[b-r5sziemsvx] {
    width: min(380px, 100%);
}

.dialog header[b-r5sziemsvx] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
    margin-bottom: var(--space-m);
}

.dialog h3[b-r5sziemsvx] {
    margin: 0;
    font-size: var(--font-card-title);
    font-weight: 700;
}

.dialog[b-r5sziemsvx]  .dialog-text {
    margin: 0 0 var(--space-l);
    white-space: pre-wrap;
    line-height: 1.8;
}

.dialog[b-r5sziemsvx]  .dialog-actions,
.dialog-actions[b-r5sziemsvx] {
    display: flex;
    gap: var(--space-s);
    justify-content: flex-start;
}

.dialog[b-r5sziemsvx]  textarea.dialog-readonly {
    min-height: 320px;
    margin-bottom: var(--space-m);
}

/* WHY fixed: an absolute box after the full-height shell made every page 1px taller than the window (a scroll bar). */
.dialog-file[b-r5sziemsvx] {
    position: fixed;
    bottom: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    opacity: 0;
}

.dialog-toasts[b-r5sziemsvx] {
    position: fixed;
    inset-inline: 0;
    bottom: 20px;
    z-index: 60;
    display: grid;
    justify-items: center;
    gap: var(--space-s);
    pointer-events: none;
}

/* Short self-closing notice: inverted colours (Ink on the page), like a snackbar. */
.dialog-toast[b-r5sziemsvx] {
    padding: 10px 18px;
    border-radius: var(--radius-control);
    background: var(--ink);
    color: var(--surface);
    font-size: var(--font-label);
    box-shadow: var(--shadow-popup);
    animation: kit-rise 150ms ease-out;
}
/* /Kit/Avatar.razor.rz.scp.css */
.kit-avatar[b-v20c8yt41i] {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: var(--avatar-size);
    height: var(--avatar-size);
    overflow: hidden;
    border: 1.5px solid var(--surface);
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-ink);
    user-select: none;
}

.kit-avatar-portrait[b-v20c8yt41i] {
    border-radius: 12px;
}

.kit-avatar img[b-v20c8yt41i] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kit-avatar-letter[b-v20c8yt41i] {
    font-size: clamp(18px, calc(var(--avatar-size) * .4), 52px);
    line-height: 1;
}
/* /Kit/ChartView.razor.rz.scp.css */
.kit-chart[b-htwglzn3sl] {
    display: block;
    direction: ltr;
    max-width: 100%;
    overflow: visible;
    font-family: var(--font-family);
}

.kit-chart-click .kit-chart-hit[b-htwglzn3sl] {
    cursor: pointer;
}

/* WHY: the soft fade under a line is a little stronger in dark schemes, like the desktop (alpha 90/255 against 70/255). */
.kit-chart[b-htwglzn3sl] {
    --chart-area-alpha: .27;
}

[data-mode="dark"] .kit-chart[b-htwglzn3sl] {
    --chart-area-alpha: .35;
}
/* /Kit/EditorDialog.razor.rz.scp.css */
.kit-editor-dialog[b-0f7f2f7uby] {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
    /* header + dialog padding take about 130px of the viewport */
    max-height: calc(100vh - 150px);
}

.kit-editor-scroll[b-0f7f2f7uby] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.kit-editor-error[b-0f7f2f7uby] {
    margin: 0;
    color: var(--danger);
    white-space: pre-wrap;
}

.kit-editor-save[b-0f7f2f7uby] {
    min-width: 150px;
}
/* /Kit/EditorForm.razor.rz.scp.css */
.kit-editor[b-yf9n62irzm] {
    display: grid;
    gap: var(--space-s);
}

.kit-links[b-yf9n62irzm] {
    display: grid;
    gap: 4px;
    margin: 8px;
}

.kit-links-title[b-yf9n62irzm] {
    margin: 0 0 4px;
    font-size: var(--font-body);
}

.kit-links-label[b-yf9n62irzm] {
    display: grid;
    margin-bottom: var(--space-s);
    color: var(--muted);
    font-size: var(--font-label);
}

.kit-links-label .select[b-yf9n62irzm] {
    width: 100%;
    max-width: 420px;
    color: var(--ink);
}

.kit-editor-tools[b-yf9n62irzm] {
    display: flex;
    gap: var(--space-s);
}

.kit-editor-link[b-yf9n62irzm] {
    min-height: 0;
    padding: 1px 8px;
    font-size: var(--font-small);
}

.kit-editor-templates[b-yf9n62irzm] {
    flex-wrap: wrap;
}

.kit-sections[b-yf9n62irzm] {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.kit-section-tab[b-yf9n62irzm] {
    margin: 2px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    background: var(--surface-alt);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
    transition: background-color var(--motion), color var(--motion), border-color var(--motion);
}

.kit-section-tab:hover[b-yf9n62irzm] {
    background: var(--hover);
}

.kit-section-tab[aria-selected="true"][b-yf9n62irzm] {
    background: var(--primary-soft);
    color: var(--primary-ink);
}

.kit-section-tab:focus-visible[b-yf9n62irzm] {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.kit-fields[b-yf9n62irzm] {
    display: flex;
    flex-wrap: wrap;
}

.kit-more[b-yf9n62irzm] {
    margin: 6px 9px 0;
}

.kit-more .kit-fields[b-yf9n62irzm] {
    margin: 0 -9px;
}
/* /Kit/FieldEditor.razor.rz.scp.css */
.kit-field[b-fxl7z0y8ng] {
    box-sizing: border-box;
    width: 300px;
    max-width: 100%;
    margin: 5px 9px;
}

.kit-field-head[b-fxl7z0y8ng] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-s);
}

.kit-field-label[b-fxl7z0y8ng] {
    margin: 3px 0;
    color: var(--muted);
    font-size: var(--font-label);
    font-weight: 500;
}

.kit-field-link[b-fxl7z0y8ng] {
    min-height: 0;
    padding: 1px 8px;
    font-size: var(--font-small);
}

.kit-field-hint[b-fxl7z0y8ng] {
    margin-bottom: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: var(--font-small);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kit-field-body[b-fxl7z0y8ng] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kit-field-body > .input[b-fxl7z0y8ng],
.kit-field-body > .select[b-fxl7z0y8ng],
.kit-field-body > .kit-field-action[b-fxl7z0y8ng],
.kit-field-body > .kit-field-chips[b-fxl7z0y8ng],
.kit-field-body > .kit-field-checks[b-fxl7z0y8ng] {
    flex: 1;
    min-width: 0;
}

.kit-field-body > .input[b-fxl7z0y8ng] {
    width: auto;
}

.kit-field-area[b-fxl7z0y8ng] {
    min-height: 90px;
    vertical-align: top;
}

.kit-field-select[b-fxl7z0y8ng] {
    width: 100%;
}

.kit-field-unit[b-fxl7z0y8ng] {
    flex: none;
    color: var(--muted);
}

.kit-field-chips[b-fxl7z0y8ng] {
    display: flex;
    flex-wrap: wrap;
}

.kit-field-chip[b-fxl7z0y8ng] {
    min-height: var(--control-height-small);
    margin: 0 0 6px 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-chip);
    background: var(--surface-alt);
    color: var(--muted);
    font: inherit;
    cursor: pointer;
    transition: background-color var(--motion), border-color var(--motion), color var(--motion);
}

.kit-field-chip:hover[b-fxl7z0y8ng] {
    background: var(--hover);
}

.kit-field-chip[aria-pressed="true"][b-fxl7z0y8ng] {
    border-color: var(--primary-border);
    background: var(--primary-soft);
    color: var(--primary-ink);
}

.kit-field-chip:focus-visible[b-fxl7z0y8ng] {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.kit-field-checks[b-fxl7z0y8ng] {
    display: grid;
    gap: 6px;
    margin: 3px 0;
}

.kit-field-action[b-fxl7z0y8ng] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kit-field-action .input[b-fxl7z0y8ng] {
    flex: 1;
    width: auto;
}

.kit-field-dots[b-fxl7z0y8ng] {
    min-width: 38px;
}

.kit-field-diagnosis[b-fxl7z0y8ng] {
    margin-top: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
}

.kit-field-diagnosis-title[b-fxl7z0y8ng] {
    margin: 2px 8px 4px;
    color: var(--muted);
    font-size: var(--font-small);
}

.kit-diagnosis-row[b-fxl7z0y8ng] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    padding: 6px 10px;
    border: 0;
    border-radius: var(--radius-chip);
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.kit-diagnosis-row:hover[b-fxl7z0y8ng],
.kit-diagnosis-row:focus-visible[b-fxl7z0y8ng] {
    background: var(--hover);
    outline: 0;
}

.kit-diagnosis-main[b-fxl7z0y8ng] {
    display: grid;
    min-width: 0;
}

.kit-diagnosis-title[b-fxl7z0y8ng],
.kit-diagnosis-latin[b-fxl7z0y8ng] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kit-diagnosis-latin[b-fxl7z0y8ng] {
    color: var(--muted);
    font-size: var(--font-small);
    justify-self: start;
}

.kit-diagnosis-code[b-fxl7z0y8ng] {
    flex: none;
}

.kit-field-action .kit-field-dots[b-fxl7z0y8ng] {
    align-self: stretch;
    min-height: var(--control-height);
    margin: 4px 0 7px;
}
/* /Kit/FileDropZone.razor.rz.scp.css */
.kit-drop[b-9dkhexxztm] {
    position: relative;
    box-sizing: border-box;
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: var(--space-l) var(--space-m);
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-card);
    background: var(--surface-alt);
    color: var(--ink);
    text-align: center;
    transition: border-color var(--motion), background-color var(--motion);
}

.kit-drop:hover[b-9dkhexxztm],
.kit-drop:focus-within[b-9dkhexxztm],
.kit-drop-over[b-9dkhexxztm] {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.kit-drop[b-9dkhexxztm]  .kit-drop-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.kit-drop-hint[b-9dkhexxztm] {
    color: var(--muted);
    font-size: var(--font-small);
}

.kit-drop-error[b-9dkhexxztm] {
    margin: var(--space-s) 0 0;
    color: var(--danger);
}
/* /Kit/KpiTile.razor.rz.scp.css */
.kit-kpi[b-dh9vgjopp1] {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
    width: 100%;
    min-height: 72px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    text-align: start;
}

.kit-kpi-link[b-dh9vgjopp1] {
    cursor: pointer;
    transition: border-color var(--motion), background-color var(--motion);
}

.kit-kpi-link:hover[b-dh9vgjopp1] {
    border-color: var(--primary-border);
    background: var(--hover);
}

.kit-kpi-link:focus-visible[b-dh9vgjopp1] {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.kit-kpi-text[b-dh9vgjopp1] {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.kit-kpi-title[b-dh9vgjopp1] {
    color: var(--muted);
    font-size: var(--font-label);
}

.kit-kpi-value[b-dh9vgjopp1] {
    font-size: var(--font-kpi);
    font-weight: var(--weight-kpi);
    line-height: 1.2;
}

.kit-kpi-detail[b-dh9vgjopp1] {
    color: var(--muted);
    font-size: var(--font-small);
}

.kit-kpi-icon[b-dh9vgjopp1] {
    display: grid;
    flex: none;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 11px;
}

.kit-kpi-tint-primary[b-dh9vgjopp1] { color: var(--primary); background: var(--primary-soft); }
.kit-kpi-tint-ok[b-dh9vgjopp1] { color: var(--ok); background: var(--ok-soft); }
.kit-kpi-tint-warn[b-dh9vgjopp1] { color: var(--warn); background: var(--warn-soft); }
.kit-kpi-tint-danger[b-dh9vgjopp1] { color: var(--danger); background: var(--danger-soft); }
.kit-kpi-tint-violet[b-dh9vgjopp1] { color: var(--violet); background: var(--violet-soft); }
.kit-kpi-tint-teal[b-dh9vgjopp1] { color: var(--teal); background: var(--teal-soft); }

.kit-kpi-detail.kit-kpi-ok[b-dh9vgjopp1] { color: var(--ok); }
.kit-kpi-detail.kit-kpi-warn[b-dh9vgjopp1] { color: var(--warn); }
.kit-kpi-detail.kit-kpi-danger[b-dh9vgjopp1] { color: var(--danger); }
/* /Kit/Menu.razor.rz.scp.css */
.kit-menu-button[b-bt6e7yzfz0] {
    min-width: var(--control-height-small);
    font-size: var(--font-body);
    letter-spacing: 1px;
}

.kit-menu-danger[b-bt6e7yzfz0] {
    color: var(--danger);
}
/* /Kit/MetricCard.razor.rz.scp.css */
.kit-metric[b-2ztvw6l7uj] {
    display: flex;
    gap: 10px;
    align-items: center;
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: 19px 20px;
    border: var(--card-border-thickness-t) solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--card-shadow);
    color: var(--ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color var(--motion), background-color var(--motion);
}

.kit-metric:hover[b-2ztvw6l7uj] {
    border-color: var(--primary-border);
    background: var(--hover);
}

/* WHY a size container: a narrow card (sidebar shell at ~1440 px) cut «۲۷,۶۰۰,۰۰۰» to «…,۶۰۰,۰۰۰», hiding the leading digits;
   the number now shrinks with its column (V4-1) and the ellipsis is only a last resort. */
.kit-metric-text[b-2ztvw6l7uj] {
    container-type: inline-size;
    display: grid;
    flex: 1;
    min-width: 0;
}

.kit-metric-title[b-2ztvw6l7uj] {
    font-size: var(--font-card-title);
    font-weight: 600;
}

.kit-metric-value[b-2ztvw6l7uj] {
    margin: 7px 0 4px;
    overflow: hidden;
    font-size: min(var(--font-metric), 18cqi);
    font-weight: var(--weight-metric);
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kit-metric-hint[b-2ztvw6l7uj] {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.kit-metric-icon[b-2ztvw6l7uj] {
    display: grid;
    flex: none;
    place-items: center;
    width: 92px;
    height: 90px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--tone) 11%, var(--surface));
    color: var(--tone);
}

[data-mode="dark"] .kit-metric-icon[b-2ztvw6l7uj] {
    background: color-mix(in srgb, var(--tone) 20%, var(--surface));
}

.kit-metric-compact[b-2ztvw6l7uj] {
    gap: 6px;
    padding: 12px;
}

.kit-metric-compact .kit-metric-title[b-2ztvw6l7uj] {
    font-size: var(--font-label);
    font-weight: 600;
}

.kit-metric-compact .kit-metric-value[b-2ztvw6l7uj] {
    margin: 9px 0 7px;
    font-size: 21px;
}

.kit-metric-compact .kit-metric-hint[b-2ztvw6l7uj] {
    font-size: 10px;
}

.kit-metric-compact .kit-metric-icon[b-2ztvw6l7uj] {
    width: 50px;
    height: 57px;
    border-radius: 11px;
}
/* /Kit/PersianCalendar.razor.rz.scp.css */
.kit-cal[b-ubi8nuiqqc] {
    display: grid;
    gap: 4px;
    width: 280px;
}

.kit-cal-nav[b-ubi8nuiqqc] {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    height: 38px;
}

.kit-cal-arrow[b-ubi8nuiqqc],
.kit-cal-title[b-ubi8nuiqqc],
.kit-cal-cell[b-ubi8nuiqqc] {
    box-sizing: border-box;
    display: inline-grid;
    place-items: center;
    padding: 3px;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background-color var(--motion), border-color var(--motion), color var(--motion);
}

.kit-cal-arrow[b-ubi8nuiqqc] {
    width: 34px;
    height: 34px;
}

.kit-cal-title[b-ubi8nuiqqc] {
    height: 34px;
    font-size: 16px;
    font-weight: 600;
}

.kit-cal-arrow:hover:not(:disabled)[b-ubi8nuiqqc],
.kit-cal-title:hover[b-ubi8nuiqqc],
.kit-cal-cell:hover:not([aria-pressed="true"])[b-ubi8nuiqqc] {
    background: var(--hover);
}

.kit-cal-arrow:disabled[b-ubi8nuiqqc] {
    opacity: .4;
    cursor: default;
}

.kit-cal-arrow:focus-visible[b-ubi8nuiqqc],
.kit-cal-title:focus-visible[b-ubi8nuiqqc],
.kit-cal-cell:focus-visible[b-ubi8nuiqqc] {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.kit-cal-body[b-ubi8nuiqqc] {
    height: 252px;
    margin: 4px 0;
}

.kit-cal-grid[b-ubi8nuiqqc] {
    display: grid;
    height: 100%;
}

.kit-cal-days[b-ubi8nuiqqc] {
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: 26px repeat(6, 1fr);
}

.kit-cal-weekday[b-ubi8nuiqqc] {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 12px;
}

.kit-cal-friday[b-ubi8nuiqqc] {
    color: var(--danger);
}

.kit-cal-picker[b-ubi8nuiqqc] {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 4px;
}

.kit-cal-wide[b-ubi8nuiqqc] {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
}

.kit-cal-big[b-ubi8nuiqqc] {
    height: auto;
}

.kit-cal-cell[hidden][b-ubi8nuiqqc] {
    visibility: hidden;
    display: inline-grid;
}

.kit-cal-cell[aria-pressed="true"][b-ubi8nuiqqc] {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-primary);
}

.kit-cal-today-cell[b-ubi8nuiqqc] {
    border-color: var(--primary-border);
    font-weight: 600;
}

.kit-cal-today[b-ubi8nuiqqc] {
    justify-self: center;
    height: 32px;
    padding: 2px 18px;
}
/* /Kit/PersianDateInput.razor.rz.scp.css */
/* WHY: the desktop control is a LeftToRight grid date | time | icon, so the icon is on the visual right, next to the text (V2-5). */
.kit-date[b-omkqvwtyvr] {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px;
    text-align: start;
    cursor: pointer;
}

.kit-date:disabled[b-omkqvwtyvr] {
    cursor: default;
}

.kit-date-text[b-omkqvwtyvr] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kit-date-empty[b-omkqvwtyvr] {
    color: var(--placeholder);
}

.kit-date-time[b-omkqvwtyvr] {
    flex: none;
    margin-inline-start: 8px;
    font-size: 13px;
    color: var(--muted);
}

.kit-date-invalid[b-omkqvwtyvr] {
    border-color: var(--danger-line);
}

.kit-date-ro[b-omkqvwtyvr] {
    white-space: nowrap;
}

.kit-date-pop[b-omkqvwtyvr] {
    width: 310px;
    padding: 14px;
    border-radius: 18px;
}

.kit-date-clock[b-omkqvwtyvr] {
    margin: 10px 4px 4px;
}

.kit-date-error[b-omkqvwtyvr] {
    margin: 8px 0 0;
    color: var(--danger);
    font-size: 12px;
}

.kit-date-actions[b-omkqvwtyvr] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-s);
    margin-top: 10px;
}

.kit-date-apply[b-omkqvwtyvr] {
    min-width: 120px;
}
/* /Kit/PersianTimeInput.razor.rz.scp.css */
.kit-time-input[b-cux4lmgsts] {
    min-width: 112px;
    margin: 3px;
}

.kit-pop-time[b-cux4lmgsts] {
    width: 230px;
}

.kit-pop-apply[b-cux4lmgsts] {
    display: flex;
    width: 100%;
    margin-top: 10px;
}
/* /Kit/Popup.razor.rz.scp.css */
/* WHY: the UA popover style centres the box (inset:0; margin:auto); popup.js sets top/left next to the anchor instead. */
.kit-popup[b-m85cueckfd] {
    position: fixed;
    inset: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
}

.kit-popup[b-m85cueckfd]::backdrop {
    background: transparent;
}
/* /Kit/RecordGrid.razor.rz.scp.css */
.kit-grid-scroll[b-0kvxbrrdwy] {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
}

.kit-grid[b-0kvxbrrdwy] {
    table-layout: fixed;
    outline: 0;
}

.kit-grid:focus-visible[b-0kvxbrrdwy] {
    box-shadow: inset 0 0 0 2px var(--primary-border);
}

.kit-grid thead th[b-0kvxbrrdwy] {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0;
}

.kit-grid tbody tr[b-0kvxbrrdwy] {
    cursor: default;
}

.kit-grid td[b-0kvxbrrdwy] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kit-grid-sort[b-0kvxbrrdwy] {
    display: flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-align: start;
    cursor: pointer;
}

.kit-grid-sort:hover[b-0kvxbrrdwy] {
    color: var(--ink);
}

.kit-grid-sort:focus-visible[b-0kvxbrrdwy] {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.kit-grid-arrow[b-0kvxbrrdwy] {
    color: var(--primary);
    font-size: 11px;
}

.kit-grid-actions[b-0kvxbrrdwy] {
    padding: 0 4px;
    text-align: center;
}

.kit-grid-date[b-0kvxbrrdwy] {
    white-space: nowrap;
}

.kit-grid-empty[b-0kvxbrrdwy] {
    margin: 0;
    padding: var(--space-l) var(--space-m);
    color: var(--muted);
    text-align: center;
}

.kit-grid-sr[b-0kvxbrrdwy] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
/* /Kit/SegmentedChoice.razor.rz.scp.css */
.kit-seg[b-e4uz3sg8e3] {
    position: relative;
    box-sizing: border-box;
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(var(--seg-min), 1fr);
    min-height: 40px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-alt);
    transition: border-color var(--motion);
}

.kit-seg:focus-within[b-e4uz3sg8e3] {
    border-color: var(--primary-border);
}

.kit-seg[aria-disabled="true"][b-e4uz3sg8e3] {
    opacity: .55;
}

/* The thumb is as wide as one cell and moves by whole cells; the overshoot (back-out easing) gives the slide its spring.
   RTL: the first cell is at the right, so the thumb moves with a negative translate. */
.kit-seg-thumb[b-e4uz3sg8e3] {
    position: absolute;
    inset-block: 3px;
    inset-inline-start: 3px;
    width: calc((100% - 6px) / var(--n));
    box-sizing: border-box;
    border: 1px solid var(--seg-line);
    border-radius: 9px;
    background: var(--seg-soft);
    transform: translateX(calc(var(--i) * -100%));
    transition: transform 420ms cubic-bezier(.34, 1.35, .64, 1), background-color var(--motion), border-color var(--motion), opacity 160ms;
    pointer-events: none;
}

.kit-seg[data-empty] .kit-seg-thumb[b-e4uz3sg8e3] {
    opacity: 0;
}

.kit-seg-item[b-e4uz3sg8e3] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: var(--seg-min);
    padding: 6px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--motion), color var(--motion);
}

.kit-seg-item:not([aria-checked="true"]):not(:disabled):hover[b-e4uz3sg8e3] {
    background: var(--hover);
}

.kit-seg-item[aria-checked="true"][b-e4uz3sg8e3] {
    color: var(--seg-ink);
    font-weight: 600;
}

.kit-seg-item:focus-visible[b-e4uz3sg8e3] {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.kit-seg-item:disabled[b-e4uz3sg8e3] {
    cursor: default;
}
/* /Kit/SnippetManagerDialog.razor.rz.scp.css */
.kit-snipman[b-i2cyvzctrp] {
    display: grid;
    gap: var(--space-s);
    width: min(440px, 86vw);
    padding: var(--space-m);
}

.kit-snipman-list[b-i2cyvzctrp] {
    min-height: 200px;
    max-height: 320px;
    overflow-y: auto;
}

.kit-snipman-item[b-i2cyvzctrp] {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    font: inherit;
    text-align: start;
}

.kit-snipman-status[b-i2cyvzctrp] {
    margin: 0;
    color: var(--danger);
}
/* /Kit/SnippetPicker.razor.rz.scp.css */
.kit-snippets[b-78tc882e0x] {
    width: 340px;
    padding: 10px;
    border-radius: var(--radius-control);
}

.kit-snippets-list[b-78tc882e0x] {
    max-height: 240px;
    margin-bottom: 6px;
    overflow-y: auto;
}

.kit-snippets-empty[b-78tc882e0x] {
    margin: 0;
    padding: 8px 6px;
    color: var(--muted);
}

.kit-snippet[b-78tc882e0x] {
    display: grid;
    gap: 1px;
    box-sizing: border-box;
    width: 100%;
    padding: 4px 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.kit-snippet:hover[b-78tc882e0x],
.kit-snippet[aria-selected="true"][b-78tc882e0x] {
    background: var(--hover);
}

.kit-snippet-title[b-78tc882e0x] {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kit-snippet-line[b-78tc882e0x] {
    overflow: hidden;
    color: var(--muted);
    font-size: var(--font-small);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kit-snippets-button[b-78tc882e0x] {
    display: flex;
    width: 100%;
    margin-top: 6px;
}

.kit-snippets-status[b-78tc882e0x] {
    margin: 6px 2px 0;
    color: var(--danger);
    font-size: var(--font-small);
}
/* /Kit/TimeSelector.razor.rz.scp.css */
.kit-time[b-gmoxt09yaj] {
    display: grid;
    grid-template-columns: 1fr 22px 1fr;
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    height: 172px;
}

.kit-time-colon[b-gmoxt09yaj] {
    text-align: center;
    font-size: 22px;
}

.kit-wheel[b-gmoxt09yaj] {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 2px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-alt);
}

.kit-wheel[aria-disabled="true"][b-gmoxt09yaj] {
    opacity: .6;
}

.kit-wheel-title[b-gmoxt09yaj] {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.kit-wheel-list[b-gmoxt09yaj] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    border-radius: 6px;
    scrollbar-width: thin;
    outline: 0;
}

.kit-wheel-list:focus-visible[b-gmoxt09yaj] {
    box-shadow: 0 0 0 2px var(--primary);
}

.kit-wheel-item[b-gmoxt09yaj] {
    display: block;
    width: 100%;
    padding: 3px 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
}

.kit-wheel-item:hover:not([aria-selected="true"]):not(:disabled)[b-gmoxt09yaj] {
    background: var(--hover);
}

.kit-wheel-item[aria-selected="true"][b-gmoxt09yaj] {
    background: var(--primary);
    color: var(--on-primary);
}

.kit-wheel-item:disabled[b-gmoxt09yaj] {
    cursor: default;
}

.kit-wheel-steps[b-gmoxt09yaj] {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.kit-wheel-step[b-gmoxt09yaj] {
    height: 24px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 15px;
    cursor: pointer;
}

.kit-wheel-step:hover:not(:disabled)[b-gmoxt09yaj] {
    background: var(--hover);
}

.kit-wheel-step:disabled[b-gmoxt09yaj] {
    opacity: .4;
    cursor: default;
}
/* /Kit/Tooltip.razor.rz.scp.css */
.kit-tip-host[b-u6dlyhavy0] {
    position: relative;
    display: inline-flex;
}

.kit-tip[b-u6dlyhavy0] {
    position: absolute;
    inset-block-start: calc(100% + 6px);
    inset-inline-start: 50%;
    z-index: 70;
    width: max-content;
    max-width: 280px;
    transform: translateX(50%);
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--motion), visibility var(--motion);
}

.kit-tip-host:hover > .kit-tip[b-u6dlyhavy0],
.kit-tip-host:focus-within > .kit-tip[b-u6dlyhavy0] {
    visibility: visible;
    opacity: 1;
    transition-delay: 350ms;
}
/* /LetterTools/LetterBandDialog.razor.rz.scp.css */
.lbd[b-dkau5at68s] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(580px, 100%);
}

.lbd-hint[b-dkau5at68s] {
    color: var(--muted);
    font-size: var(--font-small);
}

.lbd-frame[b-dkau5at68s] {
    height: 300px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.lbd-actions[b-dkau5at68s] {
    margin-top: 4px;
}
/* /LetterTools/LetterChartDialog.razor.rz.scp.css */
/* Desktop LetterInsertDialogs: captioned fields (muted small caption over the control), hint lines, OK / cancel with the error beside. */
.lid[b-luxddyab8k] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: min(420px, 100%);
}

.lid-field[b-luxddyab8k] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    line-height: 1.5;
}

.lid-field > span[b-luxddyab8k] {
    color: var(--muted);
    font-size: var(--font-small);
}

.lid-grid[b-luxddyab8k] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.lid-number[b-luxddyab8k] {
    width: 90px;
    text-align: center;
}

.lid-hint[b-luxddyab8k] {
    color: var(--muted);
    font-size: var(--font-small);
}

.lid-actions[b-luxddyab8k] {
    margin-top: 6px;
    align-items: center;
}

.lid-error[b-luxddyab8k] {
    color: var(--danger);
}
/* /LetterTools/LetterCheckList.razor.rz.scp.css */
.lcl[b-p5phxzbcdm] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
}

.lcl-frame[b-p5phxzbcdm] {
    min-height: 160px;
    max-height: 300px;
    overflow: auto;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.lcl-row[b-p5phxzbcdm] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 3px 2px;
    line-height: 1.6;
    cursor: pointer;
}

.lcl-box[b-p5phxzbcdm] {
    width: 16px;
    flex: none;
    padding: 0;
    margin: 0;
}

.lcl-title[b-p5phxzbcdm] {
    color: var(--ink);
}

.lcl-sample[b-p5phxzbcdm] {
    min-width: 0;
    max-width: 170px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--muted);
    font-size: var(--font-small);
}

.lcl-count[b-p5phxzbcdm] {
    color: var(--muted);
    font-size: var(--font-small);
}
/* /LetterTools/LetterDataBlockDialog.razor.rz.scp.css */
/* Desktop LetterInsertDialogs: captioned fields (muted small caption over the control), hint lines, OK / cancel with the error beside. */
.lid[b-n35g8bywe4] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: min(420px, 100%);
}

.lid-field[b-n35g8bywe4] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    line-height: 1.5;
}

.lid-field > span[b-n35g8bywe4] {
    color: var(--muted);
    font-size: var(--font-small);
}

.lid-grid[b-n35g8bywe4] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.lid-number[b-n35g8bywe4] {
    width: 90px;
    text-align: center;
}

.lid-hint[b-n35g8bywe4] {
    color: var(--muted);
    font-size: var(--font-small);
}

.lid-actions[b-n35g8bywe4] {
    margin-top: 6px;
    align-items: center;
}

.lid-error[b-n35g8bywe4] {
    color: var(--danger);
}
/* /LetterTools/LetterDataPanel.razor.rz.scp.css */
/* Desktop LetterDataPanel: search on top, collapsible sections (primary title + icon + count), rows of title + muted sample. */
.ldp[b-tv0n5x8osh] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.ldp-search[b-tv0n5x8osh] {
    margin-bottom: 6px;
}

.ldp-scroll[b-tv0n5x8osh] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.ldp-head[b-tv0n5x8osh] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
    padding: 7px 6px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-weight: 600;
    text-align: start;
    cursor: pointer;
}

.ldp-head:hover[b-tv0n5x8osh],
.ldp-row:hover[b-tv0n5x8osh] {
    background: var(--hover);
}

.ldp-title[b-tv0n5x8osh] {
    flex: 1;
    min-width: 0;
}

.ldp-count[b-tv0n5x8osh] {
    color: var(--muted);
    font-size: var(--font-small);
    font-weight: 400;
}

.ldp-row[b-tv0n5x8osh] {
    display: flex;
    flex-direction: column;
    padding: 4px 8px 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    outline-offset: -2px;
}

.ldp-row-title[b-tv0n5x8osh],
.ldp-row-sample[b-tv0n5x8osh] {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ldp-row-title[b-tv0n5x8osh] {
    color: var(--ink);
}

.ldp-row-sample[b-tv0n5x8osh] {
    color: var(--muted);
    font-size: var(--font-small);
}

.ldp-question[b-tv0n5x8osh] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 6px 6px;
}

.ldp-hint[b-tv0n5x8osh] {
    margin: 2px 4px 0;
    color: var(--muted);
    font-size: var(--font-small);
}

.ldp-error[b-tv0n5x8osh] {
    color: var(--danger);
    font-size: var(--font-small);
}

.ldp-menu[b-tv0n5x8osh] {
    min-width: 190px;
}
/* /LetterTools/LetterDesigner.razor.rz.scp.css */
/* Desktop LetterDesignerWindow: top bar, ribbon tabs + panel, workspace (paper frame + data panel at the end side), status bar. */
.lds[b-tocu6zejg0] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
}

.lds-top[b-tocu6zejg0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.lds-heading[b-tocu6zejg0],
.lds-actions[b-tocu6zejg0],
.lds-line[b-tocu6zejg0] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lds-badge[b-tocu6zejg0] {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--surface-alt);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lds-title[b-tocu6zejg0] {
    width: 270px;
}

.lds-group[b-tocu6zejg0] {
    width: 170px;
}

.lds-icon[b-tocu6zejg0] {
    width: 36px;
    padding: 0;
    justify-content: center;
}

.lds-actions .btn[b-tocu6zejg0],
.lds-panel .btn[b-tocu6zejg0],
.lds-preview[b-tocu6zejg0] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lds-ribbon[b-tocu6zejg0] {
    min-height: 62px;
}

.lds-panel[b-tocu6zejg0] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 8px 10px 4px;
}

.lds-cluster[b-tocu6zejg0] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
}

.lds-caption[b-tocu6zejg0],
.lds-panel[b-tocu6zejg0]  .lds-side > span {
    color: var(--muted);
    font-size: var(--font-small);
}

.lds-wrap[b-tocu6zejg0] {
    flex-wrap: wrap;
}

.lds-check[b-tocu6zejg0] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 4px;
    line-height: 1.5;
    white-space: nowrap;
}

.lds-check input[b-tocu6zejg0] {
    width: 16px;
    flex: none;
    padding: 0;
    margin: 0;
}

.lds-panel[b-tocu6zejg0]  .lds-side {
    display: flex;
    flex-direction: column;
    margin: 0;
    line-height: 1.4;
}

.lds-num[b-tocu6zejg0],
.lds-panel[b-tocu6zejg0]  .lds-num {
    width: 52px;
    text-align: center;
}

.lds-paper[b-tocu6zejg0] {
    width: 150px;
}

.lds-letterhead[b-tocu6zejg0] {
    width: 140px;
}

.lds-pos[b-tocu6zejg0] {
    width: 120px;
}

.lds-format[b-tocu6zejg0] {
    width: 112px;
}

.lds-font[b-tocu6zejg0] {
    width: 124px;
}

.lds-small[b-tocu6zejg0] {
    width: 66px;
}

.lds-borders[b-tocu6zejg0] {
    width: 130px;
}

.lds-work[b-tocu6zejg0] {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 10px;
}

.lds-stage[b-tocu6zejg0] {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.lds-data[b-tocu6zejg0] {
    width: 262px;
    flex: none;
    display: flex;
    flex-direction: column;
    padding: 10px;
    min-height: 0;
}

.lds-data-closed[b-tocu6zejg0] {
    width: 52px;
    align-items: center;
}

.lds-data-head[b-tocu6zejg0] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.lds-data-closed .lds-data-head[b-tocu6zejg0] {
    flex-direction: column;
}

.lds-data-title[b-tocu6zejg0] {
    flex: 1;
    font-weight: 600;
}

.lds-collapse[b-tocu6zejg0] {
    padding: 0 6px;
}

.lds-data-body[b-tocu6zejg0] {
    flex: 1;
    min-height: 0;
}

.lds-muted[b-tocu6zejg0] {
    color: var(--muted);
    font-size: var(--font-small);
}

.lds-status[b-tocu6zejg0] {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lds-info[b-tocu6zejg0] {
    color: var(--muted);
    font-size: var(--font-small);
    white-space: nowrap;
}

.lds-message[b-tocu6zejg0] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--muted);
    font-size: var(--font-small);
}

.lds-error[b-tocu6zejg0] {
    color: var(--danger);
}

.lds-zoom[b-tocu6zejg0] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lds-on[b-tocu6zejg0] {
    background: var(--primary-soft);
    border-color: var(--primary-border);
    color: var(--primary-ink);
}

.lds-slider[b-tocu6zejg0] {
    width: 120px;
    padding: 0;
}

.lds-percent[b-tocu6zejg0] {
    min-width: 64px;
    text-align: center;
    color: var(--muted);
}

.lds-token-pop[b-tocu6zejg0] {
    width: 330px;
    height: 420px;
    padding: 8px;
    display: flex;
    flex-direction: column;
}

.lds-shades[b-tocu6zejg0] {
    display: grid;
    grid-template-columns: repeat(5, 32px);
    gap: 4px;
    padding: 6px;
}

.lds-shade[b-tocu6zejg0] {
    width: 30px;
    height: 30px;
    padding: 2px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.lds-shade span[b-tocu6zejg0] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    color: var(--muted);
}
/* /LetterTools/LetterImageDialog.razor.rz.scp.css */
/* Desktop LetterInsertDialogs: captioned fields (muted small caption over the control), hint lines, OK / cancel with the error beside. */
.lid[b-nm90o26mh4] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: min(420px, 100%);
}

.lid-field[b-nm90o26mh4] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    line-height: 1.5;
}

.lid-field > span[b-nm90o26mh4] {
    color: var(--muted);
    font-size: var(--font-small);
}

.lid-grid[b-nm90o26mh4] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.lid-number[b-nm90o26mh4] {
    width: 90px;
    text-align: center;
}

.lid-hint[b-nm90o26mh4] {
    color: var(--muted);
    font-size: var(--font-small);
}

.lid-actions[b-nm90o26mh4] {
    margin-top: 6px;
    align-items: center;
}

.lid-error[b-nm90o26mh4] {
    color: var(--danger);
}
/* /LetterTools/LetterRuler.razor.rz.scp.css */
/* Desktop LetterRuler colours: Surface strip, SurfaceAlt margins, Muted ticks, Primary handles (PrimaryInk while dragged). */
.lru[b-bmrblrpqb9] {
    height: 26px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    user-select: none;
    touch-action: none;
}

.lru svg[b-bmrblrpqb9] {
    display: block;
    overflow: visible;
}

.lru-sheet[b-bmrblrpqb9] {
    fill: var(--surface-alt);
}

.lru-text[b-bmrblrpqb9] {
    fill: var(--surface);
}

.lru-tick[b-bmrblrpqb9] {
    stroke: var(--muted);
    stroke-width: 1;
}

.lru[b-bmrblrpqb9]  .lru-label {
    fill: var(--muted);
    font: 9px Vazirmatn, sans-serif;
}

.lru-handle[b-bmrblrpqb9] {
    fill: var(--primary);
    cursor: ew-resize;
}

.lru-on[b-bmrblrpqb9] {
    fill: var(--primary-ink);
}
/* /LetterTools/LetterTableGrid.razor.rz.scp.css */
.ltg[b-rhtk46gwf9] {
    padding: 4px;
}

.ltg-caption[b-rhtk46gwf9] {
    margin: 0 2px 6px;
    text-align: center;
    color: var(--muted);
    font-size: var(--font-small);
}

.ltg-grid[b-rhtk46gwf9] {
    display: grid;
    grid-template-columns: repeat(8, 24px);
    grid-auto-rows: 24px;
}

.ltg-cell[b-rhtk46gwf9] {
    margin: 1.5px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 3px;
    background: var(--surface);
    cursor: pointer;
}

.ltg-on[b-rhtk46gwf9] {
    border-color: var(--primary);
    background: var(--primary-soft);
}
/* /LetterTools/LetterToolbar.razor.rz.scp.css */
/* Desktop LetterToolbar: one themed card, icon buttons in groups split by a thin line (wraps instead of the desktop's «…» popup). */
.ltb[b-4emr2bxve6] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 0;
    padding: 3px 4px;
    border-radius: var(--radius-control);
}

.ltb-group[b-4emr2bxve6] {
    display: flex;
    align-items: center;
    gap: 1px;
}

.ltb-group + .ltb-group[b-4emr2bxve6]::before {
    content: "";
    width: 1px;
    height: 20px;
    margin: 0 5px;
    background: var(--line);
}

.ltb-btn[b-4emr2bxve6] {
    position: relative;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ltb-bar[b-4emr2bxve6] {
    position: absolute;
    bottom: 4px;
    left: 9px;
    width: 14px;
    height: 3px;
    border-radius: 1px;
}

.ltb-select[b-4emr2bxve6] {
    height: 30px;
    min-height: 30px;
    margin: 0 2px;
    padding: 2px 6px;
}

.ltb-size[b-4emr2bxve6] {
    width: 66px;
}

.ltb-font[b-4emr2bxve6] {
    width: 128px;
}

.ltb-style[b-4emr2bxve6] {
    width: 100px;
}

.ltb-pop[b-4emr2bxve6] {
    padding: 8px;
    min-width: 150px;
}

.ltb-swatches[b-4emr2bxve6] {
    display: grid;
    grid-template-columns: repeat(5, 30px);
    gap: 2px;
}

.ltb-swatch[b-4emr2bxve6] {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radius-small, 6px);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ltb-swatch:hover[b-4emr2bxve6] {
    background: var(--hover);
}

/* WHY a fixed frame colour: the swatch shows a paper colour; its outline must read on every skin. */
.ltb-swatch span[b-4emr2bxve6] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--line-strong);
}

.ltb-default[b-4emr2bxve6] {
    margin-top: 6px;
    width: 100%;
}

.ltb-list[b-4emr2bxve6] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 80px;
}

.ltb-caption[b-4emr2bxve6] {
    margin: 4px 4px 2px;
    color: var(--muted);
    font-size: var(--font-small);
}

.ltb-line[b-4emr2bxve6] {
    display: flex;
    gap: 2px;
}

.ltb-line .btn[b-4emr2bxve6] {
    min-width: 40px;
}

.ltb-data[b-4emr2bxve6] {
    width: 330px;
    height: 420px;
    padding: 8px;
    display: flex;
    flex-direction: column;
}
/* /Pages/Appointments/AppointmentBookingDialog.razor.rz.scp.css */
.bk[b-9zgot29f4s] {
    display: grid;
    gap: 8px;
    min-width: min(340px, 80vw);
}

.bk-when[b-9zgot29f4s] {
    margin: 0;
}

.bk-field[b-9zgot29f4s] {
    display: grid;
    gap: 3px;
}

.bk-error[b-9zgot29f4s] {
    margin: 0;
    color: var(--danger);
    font-size: var(--font-small);
}
/* /Pages/Appointments/AppointmentDetails.razor.rz.scp.css */
.ad[b-tfyysi7z86] {
    box-sizing: border-box;
    align-self: stretch;
    max-height: 100%;
    padding: 14px;
    overflow: auto;
}

.ad-name[b-tfyysi7z86] {
    margin: 4px 0 6px;
    font-size: var(--font-card-title);
    font-weight: 600;
}

.ad-facts[b-tfyysi7z86] {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 14px;
    margin: 12px 0 0;
    font-size: var(--font-label);
}

.ad-facts dd[b-tfyysi7z86] {
    margin: 0;
    overflow-wrap: anywhere;
}

.ad-group[b-tfyysi7z86] {
    margin: 14px 0 4px;
    font-weight: 600;
}

.ad-action[b-tfyysi7z86] {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    width: 100%;
    min-height: var(--control-height);
    margin: 3px 0;
    padding: 0 12px;
    font-size: var(--font-control);
}

.ad-pair[b-tfyysi7z86] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.ad-half[b-tfyysi7z86] {
    min-height: var(--control-height-small);
    padding: 0 8px;
    font-size: var(--font-label);
}

.ad-action.btn-outline[b-tfyysi7z86] {
    background: var(--surface);
    color: var(--ink);
}

.ad-action.btn-danger-soft[b-tfyysi7z86] {
    border-color: var(--danger-line);
    background: var(--danger-soft);
    color: var(--danger);
}

.ad-rule[b-tfyysi7z86] {
    margin: 12px 0 8px;
    border: 0;
    border-top: 1px solid var(--line);
}

.ad-none[b-tfyysi7z86] {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 8px;
    text-align: center;
}

.ad-none-title[b-tfyysi7z86] {
    font-size: var(--font-body);
    font-weight: 600;
}

.ad-none p[b-tfyysi7z86] {
    margin: 0;
}
/* /Pages/Appointments/AppointmentsPage.razor.rz.scp.css */
/* Desktop AppointmentsView: a bar card on top, then the view | 320 px details card. */
.ap[b-dri7el1cos] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    min-height: 0;
}

.ap-bar[b-dri7el1cos] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
}

.ap-filters[b-dri7el1cos] {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 12px;
    min-width: 0;
}

.ap-views[b-dri7el1cos] {
    display: flex;
    padding: 2px;
    border-radius: var(--radius-control);
    background: var(--surface-alt);
}

.ap-view[b-dri7el1cos] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: var(--control-height);
    margin: 2px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: var(--font-label);
    transition: background var(--motion), color var(--motion), border-color var(--motion);
}

.ap-view:hover[b-dri7el1cos] {
    background: var(--hover);
}

.ap-view[aria-selected="true"][b-dri7el1cos] {
    border-color: var(--line);
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-weight: 600;
}

/* WHY: two of the fields are <label>s, which base.css gives line-height 2; without
   the reset the date field sat 13px lower than the others (V2-4). */
.ap-field[b-dri7el1cos] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 4px;
    line-height: normal;
}

.ap-date[b-dri7el1cos] {
    width: 190px;
}

/* The desktop toolbar date is the bare PersianDateInput (no TextBox frame). */
.ap-date[b-dri7el1cos]  .kit-date {
    border-color: transparent;
    background: transparent;
    padding-inline: 0;
}

.ap-status[b-dri7el1cos] {
    width: 140px;
}

.ap-search[b-dri7el1cos] {
    width: 220px;
}

.ap-actions[b-dri7el1cos] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 420px;
}

.ap-action[b-dri7el1cos] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: var(--control-height);
    padding: 0 12px;
    font-size: var(--font-control);
}

.ap-action:disabled[b-dri7el1cos] {
    opacity: .5;
    cursor: not-allowed;
}

.ap-body[b-dri7el1cos] {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 10px;
    min-height: 0;
}

.ap-view-host[b-dri7el1cos] {
    min-width: 0;
    overflow: auto;
}

@media (max-width: 900px) {
    .ap-body[b-dri7el1cos] {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* /Pages/Appointments/CalendarView.razor.rz.scp.css */
.cv-heads[b-kppa5b9371],
.cv-grid[b-kppa5b9371] {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cv-heads[b-kppa5b9371] {
    margin: 4px 0 2px;
}

.cv-head[b-kppa5b9371] {
    color: var(--muted);
    font-size: var(--font-label);
    font-weight: 600;
    text-align: center;
}

.cv-card[b-kppa5b9371] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    min-height: 150px;
    margin: 3px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}

.cv-book[b-kppa5b9371] {
    align-self: flex-start;
    max-width: 100%;
    margin-bottom: 4px;
    padding: 0 6px;
    text-align: start;
    white-space: normal;
}

.cv-row[b-kppa5b9371] {
    display: grid;
    gap: 2px;
    width: 100%;
    margin: 0;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface-alt);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-align: start;
    transition: background var(--motion), border-color var(--motion);
}

.cv-row:hover[b-kppa5b9371] {
    background: var(--hover);
}

.cv-row[aria-pressed="true"][b-kppa5b9371] {
    border-color: var(--primary-border);
    background: var(--primary-soft);
}

.cv-row-compact[b-kppa5b9371] {
    min-height: 30px;
    padding: 4px 6px;
    font-size: var(--font-small);
}

.cv-line[b-kppa5b9371] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cv-name[b-kppa5b9371] {
    overflow-wrap: anywhere;
}

.cv-status[b-kppa5b9371] {
    font-size: var(--font-small);
}

.cv-more[b-kppa5b9371] {
    align-self: flex-start;
    padding: 4px 3px;
    border: 0;
    background: transparent;
    color: var(--primary-ink);
    cursor: pointer;
    font: inherit;
    font-size: var(--font-small);
}

.cv-more:hover[b-kppa5b9371] {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .cv-heads[b-kppa5b9371] {
        display: none;
    }

    .cv-grid[b-kppa5b9371] {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .cv-blank[b-kppa5b9371] {
        display: none;
    }
}
/* /Pages/Appointments/DayView.razor.rz.scp.css */
/* Day planner: side card (calendar + free times) | list card. On a narrow area the side card folds away and the free times follow the list. */
.dv[b-fc8h6nmree] {
    container-type: inline-size;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 10px;
    box-sizing: border-box;
    height: 100%;
    min-height: 420px;
    align-items: stretch;
}

/* WHY: on the desktop both cards run to the bottom of the page and only the appointment list scrolls (V2-6). */
.dv-side[b-fc8h6nmree],
.dv-main[b-fc8h6nmree] {
    box-sizing: border-box;
    min-height: 0;
    padding: 14px;
}

.dv-side[b-fc8h6nmree] {
    overflow: auto;
}

.dv-main[b-fc8h6nmree] {
    display: flex;
    flex-direction: column;
}

.dv-h[b-fc8h6nmree] {
    margin: 0 0 6px;
    font-size: var(--font-card-title);
    font-weight: 600;
}

.dv-summary[b-fc8h6nmree] {
    margin-bottom: 8px;
    font-size: var(--font-label);
}

.dv-compact-date[b-fc8h6nmree],
.dv-compact-slots[b-fc8h6nmree] {
    display: none;
}

.dv-week[b-fc8h6nmree] {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    margin: 4px 0 10px;
}

.dv-day[b-fc8h6nmree] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 2px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    transition: background var(--motion), border-color var(--motion);
}

.dv-day:hover[b-fc8h6nmree] {
    background: var(--hover);
}

.dv-day[aria-pressed="true"][b-fc8h6nmree] {
    border-color: var(--primary-border);
    background: var(--primary-soft);
}

.dv-day-name[b-fc8h6nmree] {
    font-size: 11px;
}

.dv-day-number[b-fc8h6nmree] {
    font-size: 15px;
    font-weight: 600;
}

.dv-day-free[b-fc8h6nmree] {
    color: var(--muted);
    font-size: 10px;
}

.dv-pills[b-fc8h6nmree] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.dv-pill[b-fc8h6nmree] {
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface-alt);
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: var(--font-small);
    transition: background var(--motion), color var(--motion), border-color var(--motion);
}

.dv-pill[aria-pressed="true"][b-fc8h6nmree] {
    border-color: var(--primary-border);
    background: var(--primary-soft);
    color: var(--primary-ink);
}

.dv-list[b-fc8h6nmree] {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-height: 120px;
    overflow-y: auto;
}

.dv-row[b-fc8h6nmree] {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    flex: none;
    width: 100%;
    padding: 12px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-align: start;
    transition: background var(--motion), border-color var(--motion);
}

.dv-row:hover[b-fc8h6nmree] {
    background: var(--hover);
}

.dv-row[aria-pressed="true"][b-fc8h6nmree] {
    border-color: var(--primary-border);
    background: var(--primary-soft);
}

.dv-time[b-fc8h6nmree] {
    display: flex;
    flex-direction: column;
    padding-inline-end: 8px;
    border-inline-end: 1px solid var(--line);
}

.dv-start[b-fc8h6nmree] {
    font-size: var(--font-body);
    font-weight: 600;
}

.dv-end[b-fc8h6nmree],
.dv-sub[b-fc8h6nmree] {
    font-size: var(--font-small);
}

.dv-who[b-fc8h6nmree] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dv-name[b-fc8h6nmree] {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dv-empty[b-fc8h6nmree] {
    margin: 28px 3px;
    text-align: center;
    font-size: var(--font-label);
}

.dv-slots[b-fc8h6nmree] {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.dv-slots-title[b-fc8h6nmree] {
    font-size: var(--font-body);
    font-weight: 600;
}

.dv-slots-hint[b-fc8h6nmree] {
    margin: 4px 0;
    font-size: var(--font-small);
}

.dv-slot-grid[b-fc8h6nmree] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 4px 0;
}

.dv-slot[b-fc8h6nmree] {
    padding: 0 4px;
    color: var(--primary-ink);
}

.dv-hours[b-fc8h6nmree] {
    color: var(--muted);
}

@container (max-width: 700px) {
    .dv[b-fc8h6nmree] {
        grid-template-columns: minmax(0, 1fr);
    }

    .dv-side[b-fc8h6nmree] {
        display: none;
    }

    .dv-compact-date[b-fc8h6nmree] {
        display: block;
        margin-bottom: 8px;
    }

    .dv-compact-slots[b-fc8h6nmree] {
        display: block;
    }

    .dv-slot-grid[b-fc8h6nmree] {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
/* /Pages/Dashboard/DashboardCardView.razor.rz.scp.css */
/* Card chrome and the card kit (desktop DashboardView.xaml card template, Controls/Cards/*, Cards.*.xaml). Every body component renders under
   .dc, so the body styles live here with ::deep. Colours, sizes and fonts are tokens only; the three skins differ in the KPI tiles, the status
   chip and the hero, like the desktop's Cards.Clinical / Night / Paper. */
.dc[b-1n8g1luvg1] {
    position: relative;
    min-width: 0;
    min-height: 0;
}

/* The frame is the one rectangle the body is laid out in and the edit outline is drawn on (the grid cell minus Card.Margin). */
.dc-frame[b-1n8g1luvg1] {
    position: absolute;
    inset: 0;
    margin: var(--card-margin);
}

.dc-chrome[b-1n8g1luvg1] {
    box-sizing: border-box;
    height: 100%;
}

.dc-chrome.card[b-1n8g1luvg1] {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    transition: border-color var(--motion), box-shadow var(--motion);
}

.dc-bare .dc-body[b-1n8g1luvg1] {
    height: 100%;
    overflow: visible;
}

.dc-header[b-1n8g1luvg1] {
    display: flex;
    flex: none;
    gap: var(--space-s);
    align-items: center;
}

.dc-title[b-1n8g1luvg1] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: var(--font-card-title);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-count[b-1n8g1luvg1] {
    flex: none;
    padding: 2px 10px;
    border-radius: var(--radius-chip);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: var(--font-small);
    font-weight: 600;
    white-space: nowrap;
}

.dc-body[b-1n8g1luvg1] {
    position: relative;
    flex: none;
    min-height: 0;
    overflow: hidden;
}

.dc-skeleton[b-1n8g1luvg1] {
    flex: 1;
}

/* Tier S: one number and its label (desktop "Compact"). */
.dc-compact.card[b-1n8g1luvg1] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 100%;
    margin: 0;
    overflow: hidden;
    text-align: center;
}

.dc-compact-value[b-1n8g1luvg1] {
    font-size: var(--font-kpi);
    font-weight: var(--weight-kpi);
    line-height: 1.2;
    white-space: nowrap;
}

.dc-compact-small[b-1n8g1luvg1] {
    font-size: var(--font-metric);
}

.dc-compact-title[b-1n8g1luvg1] {
    max-width: 100%;
    overflow: hidden;
    color: var(--muted);
    font-size: var(--font-label);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- bodies ---- */
.dc[b-1n8g1luvg1]  .dc-empty {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--muted);
    font-size: var(--font-body);
    text-align: center;
}

.dc[b-1n8g1luvg1]  .dc-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
    text-align: center;
}

.dc[b-1n8g1luvg1]  .dc-value {
    font-size: var(--font-metric);
    font-weight: var(--weight-metric);
    line-height: 1.2;
    white-space: nowrap;
}

.dc[b-1n8g1luvg1]  .dc-value-small {
    font-size: var(--font-body);
}

.dc[b-1n8g1luvg1]  .dc-label {
    max-width: 100%;
    overflow: hidden;
    color: var(--muted);
    font-size: var(--font-label);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc[b-1n8g1luvg1]  .dc-delta {
    font-size: var(--font-small);
    font-weight: 600;
    white-space: nowrap;
}

.dc[b-1n8g1luvg1]  .dc-ok { color: var(--ok); }
.dc[b-1n8g1luvg1]  .dc-danger { color: var(--danger); }
.dc[b-1n8g1luvg1]  .dc-warn { color: var(--warn); }
.dc[b-1n8g1luvg1]  .dc-muted { color: var(--muted); }

.dc[b-1n8g1luvg1]  .dc-spark {
    width: 80%;
    min-width: 80px;
    height: 36px;
    margin-top: 8px;
    direction: ltr;
}

/* Lists, alerts, agenda rows. */
.dc[b-1n8g1luvg1]  .dc-rows {
    display: flex;
    flex-direction: column;
}

.dc[b-1n8g1luvg1]  .dc-row {
    display: flex;
    box-sizing: border-box;
    gap: var(--space-s);
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.dc[b-1n8g1luvg1]  .dc-row-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.dc[b-1n8g1luvg1]  .dc-row-title,
.dc[b-1n8g1luvg1]  .dc-row-sub {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc[b-1n8g1luvg1]  .dc-row-title {
    font-size: var(--font-body);
    font-weight: 600;
}

.dc[b-1n8g1luvg1]  .dc-row-sub {
    color: var(--muted);
    font-size: var(--font-small);
}

.dc[b-1n8g1luvg1]  .dc-row-chip {
    flex: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc[b-1n8g1luvg1]  .dc-row-time {
    flex: none;
    color: var(--muted);
    font-size: var(--font-small);
    white-space: nowrap;
}

.dc[b-1n8g1luvg1]  .dc-footer {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-size: var(--font-label);
    font-weight: 600;
    cursor: pointer;
}

.dc[b-1n8g1luvg1]  .dc-footer:disabled {
    cursor: default;
}

.dc[b-1n8g1luvg1]  .dc-alert-count {
    margin-bottom: 4px;
}

/* Status counts and actions. */
.dc[b-1n8g1luvg1]  .dc-chips,
.dc[b-1n8g1luvg1]  .dc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-content: flex-start;
    overflow: hidden;
}

.dc[b-1n8g1luvg1]  .dc-chip {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc[b-1n8g1luvg1]  .dc-action {
    margin: 0;
}

/* First pass of FitBody: every item is laid out so it can be measured, but not shown yet (no flash of clipped items). */
.dc[b-1n8g1luvg1]  .dc-measuring {
    visibility: hidden;
}

.dc[b-1n8g1luvg1]  .dc-chip-more {
    color: var(--muted);
}

/* Progress. */
.dc[b-1n8g1luvg1]  .dc-ring {
    position: relative;
    display: grid;
    place-items: center;
}

.dc[b-1n8g1luvg1]  .dc-ring svg {
    position: absolute;
    inset: 0;
    direction: ltr;
}

.dc[b-1n8g1luvg1]  .dc-ring-text {
    z-index: 1;
    font-size: var(--font-label);
    font-weight: 700;
    white-space: nowrap;
}

.dc[b-1n8g1luvg1]  .dc-ring-small {
    font-size: var(--font-small);
}

.dc[b-1n8g1luvg1]  .dc-progress {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.dc[b-1n8g1luvg1]  .dc-progress-text {
    font-size: var(--font-label);
    font-weight: 600;
}

.dc[b-1n8g1luvg1]  .dc-bar {
    height: 8px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--line);
}

.dc[b-1n8g1luvg1]  .dc-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--primary);
}

/* Agenda. */
.dc[b-1n8g1luvg1]  .dc-next {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    height: 100%;
}

.dc[b-1n8g1luvg1]  .dc-next-top {
    display: flex;
    gap: var(--space-s);
    align-items: center;
    justify-content: space-between;
}

.dc[b-1n8g1luvg1]  .dc-agenda-time {
    flex: none;
    font-size: var(--font-body);
    font-weight: 700;
    margin-inline-end: 10px;
}

.dc[b-1n8g1luvg1]  .dc-agenda-status {
    flex: none;
    overflow: hidden;
}

.dc[b-1n8g1luvg1]  .dc-dot {
    display: inline-block;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dc[b-1n8g1luvg1]  .dc-dot-primary {
    margin-inline-end: 10px;
    background: var(--primary);
}

/* Status chip (Card.Status): soft chip in the clinical skin, outlined in night, dot + text in paper. */
.dc[b-1n8g1luvg1]  .dc-status {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    max-width: 100%;
    font-size: var(--font-small);
    font-weight: 600;
    white-space: nowrap;
}

.dc[b-1n8g1luvg1]  .dc-status-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.dc[b-1n8g1luvg1]  .dc-tone-ok { --fg: var(--ok); --bg: var(--ok-soft); }
.dc[b-1n8g1luvg1]  .dc-tone-danger { --fg: var(--danger); --bg: var(--danger-soft); }
.dc[b-1n8g1luvg1]  .dc-tone-warn { --fg: var(--warn); --bg: var(--warn-soft); }
.dc[b-1n8g1luvg1]  .dc-tone-primary { --fg: var(--primary-ink); --bg: var(--primary-soft); }

.dc[b-1n8g1luvg1]  .dc-status-clinical,
.dc[b-1n8g1luvg1]  .dc-status-night {
    padding: 4px 11px;
    border-radius: var(--radius-chip);
    background: var(--bg);
    color: var(--fg);
}

.dc[b-1n8g1luvg1]  .dc-status-night {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 40%, transparent);
}

.dc[b-1n8g1luvg1]  .dc-status-paper {
    color: var(--ink);
    font-size: var(--font-label);
    font-weight: 400;
}

.dc[b-1n8g1luvg1]  .dc-status-paper .dc-dot {
    background: var(--fg);
}

/* Charts and distribution. */
.dc[b-1n8g1luvg1]  .dc-legend {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: var(--font-label);
}

.dc[b-1n8g1luvg1]  .dc-legend-item {
    display: inline-flex;
    gap: 7px;
    align-items: center;
}

.dc[b-1n8g1luvg1]  .dc-legend .dc-dot {
    width: 10px;
    height: 10px;
}

.dc[b-1n8g1luvg1]  .dc-dist {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dc[b-1n8g1luvg1]  .dc-tabs {
    align-self: flex-start;
    width: min(170px, 100%);
    margin: 0 0 8px;
    font-size: var(--font-label);
}

.dc[b-1n8g1luvg1]  .dc-bars {
    cursor: pointer;
}

.dc[b-1n8g1luvg1]  .dc-bar-row {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}

.dc[b-1n8g1luvg1]  .dc-bar-top {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-label);
}

.dc[b-1n8g1luvg1]  .dc-bar-value {
    margin-inline-start: 8px;
    color: var(--muted);
    font-weight: 600;
}

.dc[b-1n8g1luvg1]  .dc-bar-row .dc-bar {
    margin-top: 4px;
}

/* Hero (night skin). */
.dc[b-1n8g1luvg1]  .dc-hero.card,
.dc[b-1n8g1luvg1]  .dc-hero-empty.card {
    box-sizing: border-box;
    height: 100%;
    margin: 0;
}

.dc[b-1n8g1luvg1]  .dc-hero {
    display: flex;
    gap: var(--space-l);
    align-items: center;
    justify-content: space-between;
    background: var(--primary-soft);
}

.dc[b-1n8g1luvg1]  .dc-hero-text {
    min-width: 0;
}

.dc[b-1n8g1luvg1]  .dc-hero-kicker {
    color: var(--accent-ink);
    font-size: var(--font-label);
    font-weight: 600;
}

.dc[b-1n8g1luvg1]  .dc-hero-name {
    margin: 4px 0 2px;
    overflow: hidden;
    font-size: var(--font-page-title);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc[b-1n8g1luvg1]  .dc-hero-type {
    color: var(--muted);
    font-size: var(--font-body);
}

.dc[b-1n8g1luvg1]  .dc-hero-side {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.dc[b-1n8g1luvg1]  .dc-hero-time {
    color: var(--accent);
    font-size: var(--font-kpi);
    font-weight: 800;
}

.dc[b-1n8g1luvg1]  .dc-hero-empty {
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--muted);
    font-size: var(--font-body);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* KPI group (Card.Kpi.List / Card.Kpi). The group fills the whole grid cell: the tiles carry Card.Margin themselves. */
.dc[b-1n8g1luvg1]  .dc-kpis {
    position: absolute;
    inset: var(--card-margin-inverse-t) var(--card-margin-inverse-r) var(--card-margin-inverse-b) var(--card-margin-inverse-l);
    display: flex;
    flex-direction: column;
}

.dc[b-1n8g1luvg1]  .dc-kpi-row {
    display: flex;
    flex: 1;
    min-height: 0;
}

.dc[b-1n8g1luvg1]  .dc-kpi {
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
    color: var(--ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color var(--motion), background-color var(--motion);
}

.dc[b-1n8g1luvg1]  .dc-kpi:focus-visible {
    outline-offset: -3px;
}

.dc[b-1n8g1luvg1]  .dc-kpi-title,
.dc[b-1n8g1luvg1]  .dc-kpi-hint {
    display: block;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc[b-1n8g1luvg1]  .dc-kpi-title {
    font-size: var(--font-label);
    font-weight: 500;
}

.dc[b-1n8g1luvg1]  .dc-kpi-hint {
    font-size: var(--font-small);
}

.dc[b-1n8g1luvg1]  .dc-kpi-value {
    display: block;
    color: var(--ink);
    font-size: var(--font-kpi);
    font-weight: var(--weight-kpi);
    line-height: 1.15;
    white-space: nowrap;
}

/* clinical: card tiles with a tinted icon square */
.dc[b-1n8g1luvg1]  .dc-kpis-clinical .dc-kpi,
.dc[b-1n8g1luvg1]  .dc-kpis-night .dc-kpi {
    margin: var(--card-margin);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--card-shadow);
}

.dc[b-1n8g1luvg1]  .dc-kpis-clinical .dc-kpi:hover,
.dc[b-1n8g1luvg1]  .dc-kpis-night .dc-kpi:hover {
    border-color: var(--primary-border);
    background: var(--hover);
}

.dc[b-1n8g1luvg1]  .dc-kpis-clinical .dc-kpi {
    display: flex;
    gap: 14px;
    align-items: center;
    min-height: 84px;
    padding: 0 var(--space-l);
}

.dc[b-1n8g1luvg1]  .dc-kpi-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 17px;
    background: color-mix(in srgb, var(--tone, var(--primary)) 11%, var(--surface));
    color: var(--tone, var(--primary));
}

[data-mode="dark"] .dc[b-1n8g1luvg1]  .dc-kpi-icon {
    background: color-mix(in srgb, var(--tone, var(--primary)) 20%, var(--surface));
}

.dc[b-1n8g1luvg1]  .dc-kpi-text {
    display: grid;
    gap: 1px;
    min-width: 0;
}

/* night: bordered tile, accent value, icon at the end of the title row */
.dc[b-1n8g1luvg1]  .dc-kpis-night .dc-kpi {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 84px;
    padding: var(--space-m) var(--space-l);
}

.dc[b-1n8g1luvg1]  .dc-kpi-top {
    display: flex;
    gap: var(--space-s);
    align-items: center;
    justify-content: space-between;
    color: var(--accent-ink);
}

.dc[b-1n8g1luvg1]  .dc-kpis-night .dc-kpi-value {
    margin: 10px 0 6px;
    color: var(--accent-ink);
}

/* paper: one strip with dividers */
.dc[b-1n8g1luvg1]  .dc-kpis-paper {
    inset: 0;
    overflow: hidden;
    border: var(--card-border-thickness) solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
}

.dc[b-1n8g1luvg1]  .dc-kpis-paper .dc-kpi {
    margin: 0;
    padding: 14px 28px;
    border: 0;
    border-inline-start: 1px solid var(--line);
    background: transparent;
}

.dc[b-1n8g1luvg1]  .dc-kpis-paper .dc-kpi:first-child {
    border-inline-start: 0;
}

.dc[b-1n8g1luvg1]  .dc-kpis-paper .dc-kpi:hover {
    background: var(--primary-soft);
}

.dc[b-1n8g1luvg1]  .dc-kpis-paper .dc-kpi-value {
    margin: 4px 0 2px;
    line-height: 1.5;
}

/* edit mode: the cards stay still; the Designers layer draws the handles; drag state set by js. */
.dc.de-dragging[b-1n8g1luvg1] {
    opacity: .85;
}
/* /Pages/Dashboard/DashboardPage.razor.rz.scp.css */
/* The card board (desktop DashboardView + DashboardGrid): a CSS grid of 12 / 8 / 4 columns, the column count and card sizes decided in .NET. */
.dash[b-fkcj3m4c6o] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.dash-editbar[b-fkcj3m4c6o] {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
    margin: var(--card-margin);
}

.dash-hint[b-fkcj3m4c6o] {
    color: var(--muted);
    font-size: var(--font-label);
}

.dash-hint-error[b-fkcj3m4c6o] {
    color: var(--danger);
}

.dash-edit-actions[b-fkcj3m4c6o] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.dash-scroll[b-fkcj3m4c6o] {
    flex: 1;
    min-height: 0;
    overflow: hidden auto;
}

.dash-grid[b-fkcj3m4c6o] {
    position: relative;
    display: grid;
    width: 100%;
}
/* /Pages/Dashboard/PresetNoticeBar.razor.rz.scp.css */
/* Preset-update banner (desktop PresetNotice: PrimarySoft fill, Primary border, radius 8, padding 14/10). */
.pn[b-ss3piy6g66] {
    box-sizing: border-box;
    margin-bottom: var(--space-m);
    padding: 10px 14px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-control);
    background: var(--primary-soft);
    color: var(--ink);
    font-size: var(--font-body);
}

.pn-row[b-ss3piy6g66] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin-top: 4px;
}

.pn-line[b-ss3piy6g66] {
    margin-inline-end: 8px;
}

.pn-heading[b-ss3piy6g66] {
    font-weight: 600;
}

.pn-chosen[b-ss3piy6g66] {
    font-weight: 700;
}

.pn-ok[b-ss3piy6g66] {
    margin-top: 8px;
}
/* /Pages/Finance/FinancePage.razor.rz.scp.css */
/* Desktop FinanceView rows: top (buttons 270 | three numbers), charts 275 (donut 1* | months 1.45*), the rest (details 270 | list). */
/* WHY height 100% + own scrolling: like the desktop the transaction list takes what is left of the window and scrolls inside its
   card; a taller tab panel scrolls here, so the shell's message bar below never lies over the page. */
.fin[b-3xs9kjxg7j] {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    overflow-y: auto;
}

.fin-top[b-3xs9kjxg7j] {
    display: grid;
    flex: none;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 10px;
    min-height: 170px;
}

.fin-new[b-3xs9kjxg7j] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 8px;
}

.fin-new .btn[b-3xs9kjxg7j] {
    margin: 0;
}

.fin-metrics[b-3xs9kjxg7j] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.fin-charts[b-3xs9kjxg7j] {
    display: grid;
    flex: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    gap: 10px;
    min-height: 275px;
}

.fin-charts .fin-card[b-3xs9kjxg7j],
.fin-bottom .card[b-3xs9kjxg7j] {
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
}

.fin-heading[b-3xs9kjxg7j] {
    margin: 4px 0 12px;
    font-size: var(--font-card-title);
    font-weight: 700;
}

.fin-legend[b-3xs9kjxg7j] {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: var(--font-label);
    white-space: pre-wrap;
}

.fin-bottom[b-3xs9kjxg7j] {
    display: grid;
    flex: 1 0 330px;
    grid-template-columns: 270px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 10px;
    height: 330px;
}

.fin-bottom .card[b-3xs9kjxg7j] {
    min-height: 0;
}

.fin-detail[b-3xs9kjxg7j] {
    display: flex;
    flex-direction: column;
}

.fin-detail-body[b-3xs9kjxg7j] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.fin-type[b-3xs9kjxg7j] {
    margin: 12px 0;
    color: var(--ok);
}

.fin-line[b-3xs9kjxg7j] {
    margin: 9px 0;
    overflow-wrap: anywhere;
}

.fin-date[b-3xs9kjxg7j] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fin-amount[b-3xs9kjxg7j] {
    font-size: 21px;
    font-weight: 700;
}

.fin-note[b-3xs9kjxg7j] {
    line-height: 1.8;
    white-space: pre-line;
}

.fin-detail-actions[b-3xs9kjxg7j] {
    display: flex;
    flex-wrap: wrap;
}

.fin-list[b-3xs9kjxg7j] {
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.fin-bottom .fin-list[b-3xs9kjxg7j] {
    padding: 10px;
}

.fin-list-head[b-3xs9kjxg7j] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.fin-list-title[b-3xs9kjxg7j] {
    margin: 0;
}

.fin-search[b-3xs9kjxg7j] {
    width: 210px;
}

.fin-filters[b-3xs9kjxg7j] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.fin-date-box[b-3xs9kjxg7j] {
    width: 190px;
    margin: 4px;
}

.fin-list[b-3xs9kjxg7j]  .fin-grid {
    flex: 1 0 150px;
    height: 150px;
    overflow: auto;
}

@container (max-width: 900px) {
    .fin-top[b-3xs9kjxg7j],
    .fin-bottom[b-3xs9kjxg7j],
    .fin-charts[b-3xs9kjxg7j] {
        grid-template-columns: minmax(0, 1fr);
    }

    .fin-bottom[b-3xs9kjxg7j] {
        flex: none;
        grid-template-rows: none;
        height: auto;
    }

    .fin-bottom .fin-list[b-3xs9kjxg7j] {
        height: 480px;
    }
}

/* WHY: a number is never trimmed; on a narrower page the icon squares leave first. */
@container (max-width: 980px) {
    .fin-metrics[b-3xs9kjxg7j]  .kit-metric-icon {
        display: none;
    }
}

@container (max-width: 640px) {
    .fin-metrics[b-3xs9kjxg7j] {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* /Pages/Finance/FinanceStat.razor.rz.scp.css */
.fst[b-81cp9n72fg] {
    flex: 1 1 180px;
    min-width: 0;
    margin: 0;
}

.fst-value[b-81cp9n72fg] {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: var(--font-metric);
    font-weight: var(--weight-metric);
    line-height: 1.4;
}

.fst-warn[b-81cp9n72fg] {
    color: var(--warn);
}
/* /Pages/Finance/InstallmentsTab.razor.rz.scp.css */
.fi[b-05c9lriw14] {
    container-type: inline-size;
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 8px;
}

.fi-totals[b-05c9lriw14] {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.fi-new[b-05c9lriw14] {
    align-self: center;
}

.fi-overdue[b-05c9lriw14] {
    color: var(--danger);
    font-size: var(--font-body);
    font-weight: 400;
}

.fi-plan[b-05c9lriw14] {
    margin: 0;
}

.fi-head[b-05c9lriw14] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fi-names[b-05c9lriw14] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
    font-size: var(--font-card-title);
}

.fi-patient[b-05c9lriw14] {
    font-weight: 700;
}

.fi-title[b-05c9lriw14] {
    color: var(--muted);
}

.fi-tools[b-05c9lriw14] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.fi-bar[b-05c9lriw14] {
    height: 6px;
    margin: 10px 0;
    border-radius: 3px;
    background: var(--track);
}

.fi-bar span[b-05c9lriw14] {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: var(--primary);
}

.fi-parts[b-05c9lriw14] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}

.fi-part[b-05c9lriw14] {
    display: grid;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-chip);
    background: var(--surface-alt);
}

.fi-part strong[b-05c9lriw14] {
    font-weight: 600;
}

.fi-covered[b-05c9lriw14] {
    border-color: var(--ok);
    background: var(--ok-soft);
}

.fi-none[b-05c9lriw14] {
    margin-top: 4px;
}

/* Desktop cheque grid: 110 | * | 130 | 140 | 110 | actions. */
.fi-cheque[b-05c9lriw14] {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 130px 140px 110px minmax(0, auto);
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 8px 0 2px;
    border-top: 1px solid var(--line);
}

.fi-late[b-05c9lriw14] {
    color: var(--danger);
}

.fi-moves[b-05c9lriw14] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@container (max-width: 760px) {
    .fi-cheque[b-05c9lriw14] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
/* /Pages/Finance/InventoryTab.razor.rz.scp.css */
.fv[b-xlvdzksmte] {
    container-type: inline-size;
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 8px;
}

.fv-totals[b-xlvdzksmte] {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.fv-new[b-xlvdzksmte] {
    align-self: center;
}

.fv-filters[b-xlvdzksmte] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fv-category[b-xlvdzksmte] {
    width: auto;
    min-width: 170px;
    margin: 0;
}

.fv-form[b-xlvdzksmte],
.fv-history[b-xlvdzksmte] {
    margin: 0;
}

.fv-form-title[b-xlvdzksmte] {
    font-size: var(--font-card-title);
    font-weight: 700;
}

.fv-fields[b-xlvdzksmte] {
    display: flex;
    flex-wrap: wrap;
    gap: 0 14px;
    margin-top: 8px;
}

/* WHY margin/line-height: base.css gives every <label> line-height 2. */
.fv-field[b-xlvdzksmte] {
    display: grid;
    gap: 3px;
    width: 190px;
    margin: 0 0 6px;
    line-height: 1.6;
}

.fv-field-note[b-xlvdzksmte] {
    width: 260px;
}

.fv-field .input[b-xlvdzksmte] {
    margin: 0;
}

.fv-expense[b-xlvdzksmte] {
    display: flex;
    margin: 2px 0 8px;
    line-height: 1.6;
}

.fv-warning[b-xlvdzksmte] {
    width: fit-content;
    margin-bottom: 6px;
    padding: 4px 10px;
    border: 1px solid var(--warn);
    border-radius: var(--radius-chip);
    background: var(--warn-soft);
    color: var(--warn);
    font-size: var(--font-small);
}

.fv-error[b-xlvdzksmte] {
    margin-bottom: 6px;
    color: var(--danger);
}

.fv-form-actions[b-xlvdzksmte] {
    display: flex;
    gap: 8px;
}

.fv-form-actions .btn[b-xlvdzksmte] {
    margin: 0;
}

.fv-confirm[b-xlvdzksmte] {
    min-width: 120px;
}

.fv-history-head[b-xlvdzksmte] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.fv-move[b-xlvdzksmte] {
    display: grid;
    grid-template-columns: 110px 130px 90px minmax(0, 1fr);
    align-items: center;
    padding: 3px 0;
}

.fv-move strong[b-xlvdzksmte] {
    font-weight: 600;
    text-align: left;
}

.fv-move-detail[b-xlvdzksmte] {
    margin-inline-start: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fv-in[b-xlvdzksmte] {
    color: var(--ok);
}

.fv-out[b-xlvdzksmte] {
    color: var(--danger);
}

.fv-empty[b-xlvdzksmte] {
    margin: 2px 8px;
}

/* Desktop stock card columns: * | auto (at least 150) | auto (at least 150) | actions (at most 230). */
.fv-row[b-xlvdzksmte] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, auto) minmax(150px, auto) minmax(0, 230px);
    align-items: center;
    gap: 14px;
    margin: 0;
}

.fv-who[b-xlvdzksmte] {
    min-width: 0;
}

.fv-name[b-xlvdzksmte],
.fv-sub[b-xlvdzksmte] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fv-name[b-xlvdzksmte] {
    font-size: var(--font-card-title);
    font-weight: 700;
}

.fv-sub[b-xlvdzksmte] {
    margin-top: 3px;
}

.fv-number[b-xlvdzksmte] {
    font-size: var(--font-metric);
    font-weight: var(--weight-metric);
}

.fv-state[b-xlvdzksmte] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.fv-chip[b-xlvdzksmte] {
    padding: 1px 10px;
    border: 1px solid var(--ok);
    border-radius: var(--radius-chip);
    background: var(--ok-soft);
    color: var(--ok);
    font-size: var(--font-small);
}

.fv-chip[data-state="Low"][b-xlvdzksmte],
.fv-chip[data-state="Expiring"][b-xlvdzksmte] {
    border-color: var(--warn);
    background: var(--warn-soft);
    color: var(--warn);
}

.fv-chip[data-state="Out"][b-xlvdzksmte] {
    border-color: var(--danger);
    background: var(--danger-soft);
    color: var(--danger);
}

.fv-actions[b-xlvdzksmte] {
    display: flex;
    flex-wrap: wrap;
}

@container (max-width: 760px) {
    .fv-row[b-xlvdzksmte] {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .fv-move[b-xlvdzksmte] {
        grid-template-columns: 100px minmax(0, 1fr) 70px;
    }

    .fv-move-detail[b-xlvdzksmte] {
        grid-column: 1 / -1;
        margin: 0;
    }
}
/* /Pages/Finance/PackagesTab.razor.rz.scp.css */
.fp[b-keqj9tw39k] {
    container-type: inline-size;
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 8px;
}

.fp-totals[b-keqj9tw39k] {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.fp-new[b-keqj9tw39k] {
    align-self: center;
}

.fp-empty[b-keqj9tw39k] {
    margin: 2px 8px;
}

/* Desktop package card columns: * | 1.2* | auto (at least 170). */
.fp-row[b-keqj9tw39k] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(170px, auto);
    align-items: center;
    gap: 14px;
    margin: 0;
}

.fp-who[b-keqj9tw39k] {
    min-width: 0;
}

.fp-patient[b-keqj9tw39k],
.fp-title[b-keqj9tw39k] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fp-patient[b-keqj9tw39k] {
    font-size: var(--font-card-title);
    font-weight: 700;
}

.fp-title[b-keqj9tw39k] {
    margin-top: 3px;
}

.fp-counts[b-keqj9tw39k] {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.fp-counts strong[b-keqj9tw39k] {
    font-weight: 600;
}

.fp-bar[b-keqj9tw39k] {
    position: relative;
    height: 8px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--track);
}

.fp-bar span[b-keqj9tw39k] {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    border-radius: 4px;
}

.fp-booked[b-keqj9tw39k] {
    background: var(--primary-border);
}

.fp-used[b-keqj9tw39k] {
    background: var(--primary);
}

.fp-over .fp-used[b-keqj9tw39k] {
    background: var(--warn);
}

.fp-money[b-keqj9tw39k] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.fp-money strong[b-keqj9tw39k] {
    font-weight: 600;
}

.fp-money .btn[b-keqj9tw39k] {
    margin: 2px 0 0;
}

.fp-pay[b-keqj9tw39k] {
    padding: 1px 10px;
    border: 1px solid var(--warn);
    border-radius: var(--radius-chip);
    background: var(--warn-soft);
    font-size: var(--font-small);
}

.fp-settled[b-keqj9tw39k] {
    border-color: var(--ok);
    background: var(--ok-soft);
}

@container (max-width: 640px) {
    .fp-row[b-keqj9tw39k] {
        grid-template-columns: minmax(0, 1fr);
    }

    .fp-money[b-keqj9tw39k] {
        align-items: flex-start;
    }
}
/* /Pages/Patients/DuplicateReviewDialog.razor.rz.scp.css */
.dr-intro[b-yrjh1bvedu] {
    margin: 0 0 var(--space-m);
    line-height: 1.8;
}

.dr-empty[b-yrjh1bvedu] {
    margin: 50px 0;
    font-size: 15px;
    text-align: center;
}

.dr-card[b-yrjh1bvedu] {
    margin: 0 0 14px;
    padding: 18px;
}

.dr-head[b-yrjh1bvedu] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
}

.dr-title[b-yrjh1bvedu] {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.dr-table[b-yrjh1bvedu] {
    width: 100%;
    margin-top: 12px;
    border-collapse: collapse;
    white-space: normal;
}

/* WHY: base.css styles bare table cells and rows; reset what this table needs. */
.dr-table th[b-yrjh1bvedu],
.dr-table td[b-yrjh1bvedu] {
    padding: 7px 0 7px 10px;
    border-top: 1px solid var(--line);
    background: transparent;
    font-size: var(--font-body);
    text-align: start;
    vertical-align: top;
}

.dr-table tr:hover[b-yrjh1bvedu] {
    background: transparent;
}

.dr-table thead th[b-yrjh1bvedu] {
    border-top: 0;
    color: var(--primary-ink);
    font-weight: 600;
}

.dr-table tbody th[b-yrjh1bvedu] {
    width: 150px;
    font-weight: 400;
}

.dr-actions[b-yrjh1bvedu] {
    display: flex;
    gap: var(--space-s);
    margin-top: 14px;
}

.dr-actions .btn[b-yrjh1bvedu] {
    margin: 0;
}
/* /Pages/Patients/PatientList.razor.rz.scp.css */
.pl[b-knnppi6w5j] {
    display: flex;
    flex: none;
    flex-direction: column;
    box-sizing: border-box;
    width: clamp(300px, 29cqw, 420px);
    margin: 0;
    padding: 8px;
    overflow: hidden;
    direction: rtl;
    transition: width 240ms cubic-bezier(.2, 0, 0, 1);
}

.pl[data-open="0"][b-knnppi6w5j] {
    width: 52px;
    padding: 4px;
}

.pl-body[b-knnppi6w5j] {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.pl-rail[b-knnppi6w5j] {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 12px 0;
    border: 0;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    transition: background var(--motion), color var(--motion);
}

.pl-rail:hover[b-knnppi6w5j] {
    background: var(--primary-soft);
    color: var(--primary-ink);
}

.pl-rail-text[b-knnppi6w5j] {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.pl-head[b-knnppi6w5j] {
    display: flex;
    flex: none;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pl-title[b-knnppi6w5j] {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
}

.pl-collapse[b-knnppi6w5j] {
    width: 34px;
    height: 34px;
    color: var(--muted);
}

.pl-dup[b-knnppi6w5j] {
    display: block;
    flex: none;
    width: 100%;
    margin-bottom: 8px;
    padding: 0;
    cursor: pointer;
    text-align: start;
}

.pl-dup-text[b-knnppi6w5j] {
    display: block;
    padding: 7px 10px;
    border: 1px solid var(--warn);
    border-radius: 8px;
    background: var(--warn-soft);
    color: var(--ink);
    font-size: var(--font-label);
    line-height: 1.6;
}

.pl-search[b-knnppi6w5j] {
    flex: none;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 10px;
}

.pl-sortrow[b-knnppi6w5j] {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 2px 5px;
}

.pl-sort[b-knnppi6w5j] {
    width: 135px;
    margin: 0;
}

.pl-count[b-knnppi6w5j] {
    white-space: nowrap;
}

.pl-filters[b-knnppi6w5j] {
    flex: none;
    margin: 0 3px 5px;
    font-size: var(--font-label);
}

.pl-filter-grid[b-knnppi6w5j] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    padding: 4px 0;
}

.pl-field[b-knnppi6w5j] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    margin: 0;
    line-height: 1.5;
}

/* Status takes a full row; the two age fields share the next one. */
.pl-field.pl-wide[b-knnppi6w5j] {
    grid-column: 1 / -1;
}

.pl-field .input[b-knnppi6w5j],
.pl-field .select[b-knnppi6w5j] {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}

.pl-actions[b-knnppi6w5j] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0;
}

.pl-actions .btn[b-knnppi6w5j] {
    margin: 0;
}

.pl-list[b-knnppi6w5j] {
    flex: 1;
    min-height: 0;
    padding: 2px;
    overflow-x: hidden;
    overflow-y: auto;
    outline-offset: -2px;
}

.pl-none[b-knnppi6w5j] {
    margin: 24px 8px;
    color: var(--muted);
    text-align: center;
}

/* Outer frame = kit .list-item (desktop ListBoxItem: margin 2, padding 6, radius 12); total pitch 80px (Virtualize ItemSize). */
.pl-row[b-knnppi6w5j] {
    box-sizing: border-box;
    height: 76px;
}

.pl-card[b-knnppi6w5j] {
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    height: 62px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    direction: ltr;
}

.pl-who[b-knnppi6w5j] {
    flex: 1;
    min-width: 0;
    direction: rtl;
}

.pl-name[b-knnppi6w5j] {
    overflow: hidden;
    margin: 1px 0 3px;
    font-size: var(--font-body);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pl-age-line[b-knnppi6w5j] {
    overflow: hidden;
    color: var(--muted);
    font-size: var(--font-label);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pl-meta[b-knnppi6w5j] {
    flex: none;
    width: 65px;
    direction: rtl;
    text-align: start;
}

.pl-code[b-knnppi6w5j] {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

@media (prefers-reduced-motion: reduce) {
    .pl[b-knnppi6w5j] {
        transition: none;
    }
}
/* /Pages/Patients/PatientsPage.razor.rz.scp.css */
/* The desktop grid is LeftToRight: list column on the left, files on the right; the content of each side is RTL again. */
.pg[b-ru7jw4mp4e] {
    container-type: inline-size;
    display: flex;
    gap: 10px;
    height: 100%;
    min-height: 480px;
    direction: ltr;
}

.pg-work[b-ru7jw4mp4e] {
    display: flex;
    flex: 1;
    flex-direction: column;
    position: relative;
    min-width: 0;
    direction: rtl;
}

/* WHY: on the desktop the card shares the grid cell with the whole TabControl (margin 20,70,20,20, centred), not just the
   room under the strip. */
.pg-empty-area[b-ru7jw4mp4e] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 70px 20px 20px;
    pointer-events: none;
}

.pg-empty-area > *[b-ru7jw4mp4e] {
    pointer-events: auto;
}

.pg-empty[b-ru7jw4mp4e] {
    box-sizing: border-box;
    width: min(460px, 100%);
    margin: 0;
    padding: 32px;
    text-align: center;
    border-radius: 20px;
}

.pg-empty-icon[b-ru7jw4mp4e] {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 22px;
    border-radius: 22px;
    background: var(--primary-soft);
}

.pg-empty h2[b-ru7jw4mp4e] {
    margin: 0 0 12px;
    font-size: 23px;
    font-weight: 600;
}

.pg-empty p[b-ru7jw4mp4e] {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.8;
}

@media (max-width: 760px) {
    .pg[b-ru7jw4mp4e] {
        flex-direction: column;
    }
}
/* /Pages/Patients/PatientTab.razor.rz.scp.css */
.pt-tab[b-kf1obr22yk] {
    position: relative;
    display: flex;
    flex: 0 1 auto;
    min-width: 96px;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    min-height: 44px;
    margin: 0 3px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    direction: ltr;
    transition: background var(--motion), color var(--motion), border-color var(--motion);
}

.pt-tab:hover[b-kf1obr22yk] {
    background: var(--hover);
}

.pt-tab[aria-selected="true"][b-kf1obr22yk] {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
}

.pt-tab[aria-selected="true"][b-kf1obr22yk]::after {
    content: "";
    position: absolute;
    inset: auto 16px 1px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary);
}

.pt-tab:focus-visible[b-kf1obr22yk] {
    border-color: var(--primary-border);
}

/* The temporary tab is always last (far left in RTL); a gap and a divider separate it from the permanent tabs. */
.pt-tab-preview[b-kf1obr22yk] {
    margin-inline-end: 3px;
    margin-inline-start: 22px;
}

.pt-tab-preview[b-kf1obr22yk]::before {
    content: "";
    position: absolute;
    inset: 8px auto 8px -12px;
    width: 1px;
    background: var(--line);
}

.pt-tab-preview .pt-title[b-kf1obr22yk] {
    font-style: italic;
}

.pt-title[b-kf1obr22yk] {
    min-width: 0;
    max-width: 200px;
    overflow: hidden;
    direction: rtl;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pt-act[b-kf1obr22yk] {
    display: grid;
    flex: none;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background var(--motion), color var(--motion);
}

.pt-act:hover[b-kf1obr22yk] {
    background: var(--primary-soft);
    color: var(--primary-ink);
    filter: none;
}
/* /Pages/Patients/PatientTabStrip.razor.rz.scp.css */
.pts[b-5lu048sdz0] {
    display: flex;
    flex: none;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    margin: 0 0 12px;
    padding: 5px;
    border-radius: 13px;
    background: var(--surface-alt);
}

/* WHY: the desktop docks «＋» and «⋯» Left inside a RightToLeft DockPanel, i.e. on the visual right = start of the RTL row
   (V2-2: it used to sit on the left). */
.pts-tools[b-5lu048sdz0] {
    display: flex;
    flex: none;
    align-items: center;
}

.pts-tabs[b-5lu048sdz0] {
    display: flex;
    flex: 1;
    align-items: stretch;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

/* Size, colour and hover come from kit .btn-nav (desktop PatientNavAction). */
.pts-tools[b-5lu048sdz0]  .pts-more {
    font-size: 18px;
}
/* /Pages/Patients/RemotePatientDialog.razor.rz.scp.css */
.rp-note[b-taf9as1z2j] {
    margin: 0 0 var(--space-m);
    line-height: 1.8;
}

.rp-tools[b-taf9as1z2j] {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-s);
}

.rp-tools .btn[b-taf9as1z2j] {
    margin: 0;
}

.rp-scroll[b-taf9as1z2j] {
    max-height: 340px;
    margin: 15px 0;
    overflow: auto;
}

.rp-grid[b-taf9as1z2j] {
    width: 100%;
    border-collapse: collapse;
}

.rp-grid th[b-taf9as1z2j],
.rp-grid td[b-taf9as1z2j] {
    padding: 8px 10px;
    font-size: var(--font-body);
    text-align: start;
    white-space: normal;
}

.rp-grid tbody tr[b-taf9as1z2j] {
    cursor: pointer;
}

.rp-empty[b-taf9as1z2j] {
    margin: 24px 0;
    text-align: center;
}

.rp-reply[b-taf9as1z2j] {
    margin: 0;
}

.rp-status[b-taf9as1z2j] {
    margin: 0 0 12px;
}

.rp-label[b-taf9as1z2j] {
    display: block;
    margin: 0 0 10px;
    line-height: 1.8;
    font-weight: 700;
}

.rp-text[b-taf9as1z2j] {
    box-sizing: border-box;
    width: 100%;
    margin-top: 6px;
    resize: vertical;
}
/* /Pages/Reports/ReportPrintDialog.razor.rz.scp.css */
/* The preview is paper: black on white in every skin (js/print.js styles the printed copy the same way). */
.rpd[b-xet4aamkdk] {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    min-width: min(720px, 86vw);
}

.rpd-status[b-xet4aamkdk] {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.rpd-preview[b-xet4aamkdk] {
    max-height: min(60vh, 560px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}

.rpd-sheet[b-xet4aamkdk] {
    padding: 24px;
    background: white;
    color: black;
    font-size: 12px;
}

.rpd-sheet h1[b-xet4aamkdk] {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 400;
}

.rpd-sheet p[b-xet4aamkdk] {
    margin: 0 0 12px;
}

.rpd-sheet table[b-xet4aamkdk] {
    width: 100%;
    border-collapse: collapse;
}

.rpd-sheet th[b-xet4aamkdk],
.rpd-sheet td[b-xet4aamkdk] {
    padding: 6px;
    border: 1px solid lightgray;
    background: white;
    color: black;
    font-weight: 400;
    text-align: start;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.rpd-actions[b-xet4aamkdk] {
    display: flex;
    justify-content: flex-end;
}
/* /Pages/Reports/ReportsPage.razor.rz.scp.css */
/* Desktop ReportsView: a bar that stays on top, then six compact numbers, 3 + 3 chart cards, 4 list cards and the output expander,
   scrolling under it. */
.rep[b-v4828d2o1m] {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    overflow-y: auto;
}

.rep > *[b-v4828d2o1m] {
    flex: none;
}

.rep .card[b-v4828d2o1m] {
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
}

.rep .rep-bar[b-v4828d2o1m] {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px;
}

.rep-range[b-v4828d2o1m] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.rep-date[b-v4828d2o1m] {
    width: 190px;
    margin: 4px;
}

/* The desktop bar date is the bare PersianDateInput (no TextBox frame), as on the appointments toolbar (V4-2). */
.rep-date[b-v4828d2o1m]  .kit-date {
    border-color: transparent;
    background: transparent;
    padding-inline: 0;
}

.rep-metrics[b-v4828d2o1m] {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.rep-charts[b-v4828d2o1m] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.rep-lists[b-v4828d2o1m] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.rep-count[b-v4828d2o1m] {
    margin: 12px 0;
}

.rep-full[b-v4828d2o1m] {
    display: flex;
    width: calc(100% - 6px);
    margin-top: 12px;
}

.rep-line[b-v4828d2o1m] {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin: 10px 0;
}

.rep-text[b-v4828d2o1m] {
    min-width: 0;
    overflow: hidden;
    font-size: var(--font-label);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rep-ok[b-v4828d2o1m] {
    color: var(--ok);
}

.rep-number[b-v4828d2o1m] {
    color: var(--primary-ink);
}

.rep-when[b-v4828d2o1m] {
    flex: none;
    min-width: 120px;
}

.rep-more[b-v4828d2o1m] {
    margin: 0 8px;
}

@container (max-width: 1100px) {
    .rep-metrics[b-v4828d2o1m] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rep-lists[b-v4828d2o1m] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (max-width: 760px) {
    .rep-charts[b-v4828d2o1m] {
        grid-template-columns: minmax(0, 1fr);
    }

    /* WHY: wrapped on a narrow page the bar is too tall to stay on top. */
    .rep .rep-bar[b-v4828d2o1m] {
        position: static;
    }
}

@container (max-width: 520px) {
    .rep-metrics[b-v4828d2o1m],
    .rep-lists[b-v4828d2o1m] {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* /Pages/Visits/VisitList.razor.rz.scp.css */
.vl-tools[b-kce5u9illu] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.vl-search[b-kce5u9illu] {
    flex: 1;
}
/* /Pages/Visits/VisitsPage.razor.rz.scp.css */
.vp[b-ckdt1ci0fj] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    min-height: 0;
}

.vp-tabs[b-ckdt1ci0fj] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px;
}

.vp-tab[b-ckdt1ci0fj] {
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--surface-alt);
    color: var(--muted);
}

.vp-tab[aria-selected="true"][b-ckdt1ci0fj] {
    border-color: var(--primary-border);
    background: var(--primary-soft);
    color: var(--primary-ink);
}

.vp-pick[b-ckdt1ci0fj],
.vp-close[b-ckdt1ci0fj] {
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.vp-close[b-ckdt1ci0fj] {
    padding-inline: 8px;
    color: var(--danger);
}
/* /Pages/Workboard/WorkboardPage.razor.rz.scp.css */
/* Columns share the width equally but never get narrower than 250 px; then the board scrolls sideways (desktop BoardView.MinColumnWidth). */
.wb[b-l5sdkumi67] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.wb-head[b-l5sdkumi67] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.wb-titles[b-l5sdkumi67] {
    min-width: 0;
}

.wb-title[b-l5sdkumi67] {
    margin: 2px 0;
}

.wb-hint[b-l5sdkumi67] {
    margin: 6px 4px 0;
    font-size: var(--font-small);
}

.wb-lanes[b-l5sdkumi67] {
    display: grid;
    flex: 1;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 1fr);
    min-height: 0;
    overflow-x: auto;
}

.wb-lane[b-l5sdkumi67] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-inline-end: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface-alt);
    transition: border-color var(--motion);
}

.wb-lane[data-over="1"][b-l5sdkumi67] {
    border-color: var(--primary);
}

.wb-lane-head[b-l5sdkumi67] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 4px 10px;
}

.wb-lane-title[b-l5sdkumi67] {
    margin: 0;
    overflow: hidden;
    font-size: var(--font-body);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wb-count[b-l5sdkumi67] {
    padding: 1px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-chip);
    background: var(--surface);
    font-size: var(--font-small);
    font-weight: 600;
}

.wb-cards[b-l5sdkumi67] {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
}

.wb-card[b-l5sdkumi67] {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
    cursor: grab;
    transition: border-color var(--motion), box-shadow var(--motion);
}

.wb-card:hover[b-l5sdkumi67] {
    box-shadow: var(--shadow-popup);
}

.wb-card:focus-visible[b-l5sdkumi67] {
    border-color: var(--primary);
    outline: none;
}

.wb-card[data-overdue="1"][b-l5sdkumi67] {
    border-color: var(--danger-line);
}

.wb-line[b-l5sdkumi67] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wb-name[b-l5sdkumi67] {
    overflow: hidden;
    font-size: var(--font-label);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wb-time[b-l5sdkumi67],
.wb-sub[b-l5sdkumi67] {
    font-size: var(--font-small);
}

.wb-sub[b-l5sdkumi67] {
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wb-foot[b-l5sdkumi67] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.wb-spacer[b-l5sdkumi67] {
    flex: 1;
}

.wb-overdue[b-l5sdkumi67] {
    padding: 1px 8px;
    border-radius: var(--radius-chip);
    background: var(--danger-soft);
    color: var(--danger);
    font-size: var(--font-small);
}

.wb-none[b-l5sdkumi67] {
    margin: 18px 0 0;
    text-align: center;
    font-size: var(--font-small);
}

.wb-empty[b-l5sdkumi67] {
    padding: 14px;
}
/* /Panels/PanelCardBody.razor.rz.scp.css */
/* View switcher of a panel's Full level (Desktop SummaryKit PanelViewBar / PanelViewTab): a row of pills, the shown view filled. */
.pn-viewbar[b-ekzmqrx8fe] {
    display: inline-flex;
    gap: 2px;
    margin-bottom: 12px;
    padding: 3px;
    border-radius: var(--radius-chip);
    background: var(--surface-alt);
}

.pn-viewtab[b-ekzmqrx8fe] {
    padding: 5px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-chip);
    background: transparent;
    color: var(--muted);
    font-size: var(--font-label);
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.pn-viewtab:hover[b-ekzmqrx8fe] {
    background: var(--hover);
}

.pn-viewtab:focus-visible[b-ekzmqrx8fe] {
    outline: none;
    border-color: var(--primary);
}

.pn-viewtab-on[b-ekzmqrx8fe],
.pn-viewtab-on:hover[b-ekzmqrx8fe] {
    background: var(--primary);
    color: var(--on-primary);
}

.pn-more[b-ekzmqrx8fe] {
    margin: 0;
    font-size: var(--font-small);
    color: var(--muted);
}
/* /Panels/PanelHost.razor.rz.scp.css */
/* Panel renderer styles (Web W11). Twin of Desktop SummaryKit.xaml "Panel*" styles: tokens only (--surface-alt, --line, --primary-soft ...),
   so every skin, scheme and accent works. Every rule is under the host's scope with ::deep because the nodes are child components. */
.pn[b-davj9liy36] { animation: pn-in-b-davj9liy36 120ms ease-out; }
@keyframes pn-in-b-davj9liy36 { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pn[b-davj9liy36] { animation: none; } }

/* layout nodes: 12-column grid / column / row; the box gives up its columns under 300 px (Desktop PanelGridPanel.NarrowWidth) */
.pn[b-davj9liy36]  .pn-layout { container-type: inline-size; gap: var(--pn-gap, var(--space-m)); }
.pn[b-davj9liy36]  .pn-column { display: flex; flex-direction: column; }
.pn[b-davj9liy36]  .pn-row { display: flex; }
.pn[b-davj9liy36]  .pn-row > .pn-cell { flex: var(--pn-span, 12) 1 0; }
.pn[b-davj9liy36]  .pn-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.pn[b-davj9liy36]  .pn-wrap > .pn-cell { grid-column: span var(--pn-span, 12); }
@container (max-width: 299.98px) { .pn[b-davj9liy36]  .pn-wrap > .pn-cell { grid-column: 1 / -1; } }
/* WHY: every child of a row gets the row height, so boxes side by side start and end together (the first child grows to the cell) */
.pn[b-davj9liy36]  .pn-cell { min-width: 0; display: flex; flex-direction: column; }
.pn[b-davj9liy36]  .pn-cell > :first-child { flex: 1 1 auto; min-width: 0; }
.pn[b-davj9liy36]  .pn-cell > .pn-button { flex: none; margin-right: auto; }

.pn[b-davj9liy36]  .pn-note { margin: 0; font-size: var(--font-small); color: var(--muted); }
.pn[b-davj9liy36]  .pn-more { margin: 0; font-size: var(--font-small); color: var(--muted); }
.pn[b-davj9liy36]  .pn-title { font-size: var(--font-body); font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn[b-davj9liy36]  .pn-caption { margin-bottom: 4px; font-size: var(--font-small); color: var(--muted); overflow-wrap: anywhere; }
.pn[b-davj9liy36]  .pn-rule { height: 1px; background: var(--line); }
.pn[b-davj9liy36]  .pn-spacer { min-height: 4px; }

/* card / section */
.pn[b-davj9liy36]  .pn-card { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface-alt); }
.pn[b-davj9liy36]  .pn-card-primary { background: var(--primary-soft); border-color: var(--primary-border); }
.pn[b-davj9liy36]  .pn-card-ok { background: var(--ok-soft); border-color: var(--ok); }
.pn[b-davj9liy36]  .pn-card-warn { background: var(--warn-soft); border-color: var(--warn); }
.pn[b-davj9liy36]  .pn-card-danger { background: var(--danger-soft); border-color: var(--danger-line); }
.pn[b-davj9liy36]  .pn-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-s); min-width: 0; }
.pn[b-davj9liy36]  .pn-section > summary { cursor: pointer; font-size: var(--font-body); margin-bottom: var(--space-s); }
.pn[b-davj9liy36]  .pn-section-title { margin-bottom: 4px; font-size: var(--font-card-title); }
.pn[b-davj9liy36]  .pn-section-rule { margin-bottom: var(--space-m); }
.pn[b-davj9liy36]  .pn-placeholder { display: flex; align-items: center; gap: 10px; }

/* text */
.pn[b-davj9liy36]  .pn-label { margin: 0; overflow-wrap: anywhere; }
.pn[b-davj9liy36]  .pn-label-body { font-size: var(--font-body); color: var(--ink); }
.pn[b-davj9liy36]  .pn-label-title { font-size: var(--font-card-title); font-weight: 600; color: var(--ink); }
.pn[b-davj9liy36]  .pn-label-muted { font-size: var(--font-label); color: var(--muted); }
.pn[b-davj9liy36]  .pn-label-small { font-size: var(--font-small); color: var(--muted); }
.pn[b-davj9liy36]  .pn-value { margin: 0; font-size: var(--font-body); color: var(--ink); overflow-wrap: anywhere; }
.pn[b-davj9liy36]  .pn-value-empty { color: var(--muted); }

/* inputs */
.pn[b-davj9liy36]  .pn-input { width: 100%; box-sizing: border-box; }
.pn[b-davj9liy36]  .pn-multiline { min-height: 76px; resize: vertical; }
.pn[b-davj9liy36]  .pn-other { margin-top: 6px; }
.pn[b-davj9liy36]  .pn-number { display: flex; align-items: center; gap: 8px; }
.pn[b-davj9liy36]  .pn-invalid { color: var(--danger); border-color: var(--danger-line); }
.pn[b-davj9liy36]  .pn-choices { display: flex; flex-direction: column; gap: 6px; }
.pn[b-davj9liy36]  .pn-choices-h { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
/* the old global `label` rule (margin, line height) must not reach these */
.pn[b-davj9liy36]  .pn-choice { display: flex; align-items: center; gap: 8px; margin: 0; line-height: 1.5; font-size: var(--font-body); color: var(--ink); cursor: pointer; }
.pn[b-davj9liy36]  .pn-choice input { margin: 0; accent-color: var(--primary); }
.pn[b-davj9liy36]  .pn-check { padding: 2px 0; }

/* measured values */
.pn[b-davj9liy36]  .pn-tile { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface-alt); transition: border-color 150ms ease; }
.pn[b-davj9liy36]  .pn-tile:hover { border-color: var(--primary-border); }
.pn[b-davj9liy36]  .pn-tile-alert { background: var(--danger-soft); border-color: var(--danger-line); }
.pn[b-davj9liy36]  .pn-tile-name { font-size: var(--font-small); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn[b-davj9liy36]  .pn-vrow { display: flex; align-items: baseline; gap: 5px; }
.pn[b-davj9liy36]  .pn-vnum { font-weight: 600; color: var(--ink); }
.pn[b-davj9liy36]  .pn-bad { color: var(--danger); }
.pn[b-davj9liy36]  .pn-unit { font-size: var(--font-small); color: var(--muted); }
.pn[b-davj9liy36]  .pn-marker { font-size: var(--font-small); font-weight: 600; color: var(--danger); }
.pn[b-davj9liy36]  .pn-tile .pn-more { margin-top: 2px; }
.pn[b-davj9liy36]  .pn-delta { font-size: var(--font-label); }
.pn[b-davj9liy36]  .pn-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-top: 6px; }
.pn[b-davj9liy36]  .pn-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.pn[b-davj9liy36]  .pn-tile-fixed { width: 132px; }
.pn[b-davj9liy36]  .pn-tile-add { margin-top: 6px; }
.pn[b-davj9liy36]  .pn-lab-title { margin-bottom: var(--space-s); }

.pn[b-davj9liy36]  .pn-labrow { display: grid; grid-template-columns: 2fr 1.4fr 1.2fr 1fr; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.pn[b-davj9liy36]  .pn-labtable-entry .pn-labrow { grid-template-columns: 2fr 1.4fr 1.2fr 1fr 1.3fr; }
.pn[b-davj9liy36]  .pn-labrow > span { min-width: 0; }
.pn[b-davj9liy36]  .pn-labhead { border-bottom-color: var(--line); font-size: var(--font-small); font-weight: 600; color: var(--muted); }
.pn[b-davj9liy36]  .pn-labname { font-size: var(--font-label); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn[b-davj9liy36]  .pn-lab-input { min-height: 30px; padding: 2px 8px; }

.pn[b-davj9liy36]  .pn-histrow { display: grid; grid-template-columns: 1.3fr repeat(var(--pn-cols, 1), minmax(40px, 1fr)); gap: 0 8px; padding: 4px 0; }
.pn[b-davj9liy36]  .pn-histrow > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn[b-davj9liy36]  .pn-histhead { padding-bottom: 6px; font-size: var(--font-small); font-weight: 600; color: var(--muted); }
.pn[b-davj9liy36]  .pn-histdate { font-size: var(--font-label); color: var(--ink); }
.pn[b-davj9liy36]  .pn-histcell { font-size: var(--font-label); color: var(--ink); }
.pn[b-davj9liy36]  .pn-histcell.pn-bad { color: var(--danger); }
.pn[b-davj9liy36]  .pn-histcell-empty { color: var(--muted); }

.pn[b-davj9liy36]  .pn-chart + .pn-chart { margin-top: 10px; }
.pn[b-davj9liy36]  .pn-chart .pn-caption { margin-bottom: 2px; }
.pn[b-davj9liy36]  .pn-measure { width: 100%; min-width: 0; }
.pn[b-davj9liy36]  .pn-measure svg { display: block; max-width: 100%; }

/* images and files */
.pn[b-davj9liy36]  .pn-files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pn[b-davj9liy36]  .pn-thumbbox { position: relative; width: 88px; height: 88px; }
.pn[b-davj9liy36]  .pn-thumb { width: 100%; height: 100%; padding: 0; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-alt); cursor: pointer; transition: border-color 150ms ease; }
.pn[b-davj9liy36]  .pn-thumb:hover,
.pn[b-davj9liy36]  .pn-thumb:focus-visible { border-color: var(--primary); outline: none; }
.pn[b-davj9liy36]  .pn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pn[b-davj9liy36]  .pn-remove { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); cursor: pointer; }
.pn[b-davj9liy36]  .pn-remove-inline { position: static; flex: none; background: transparent; }
.pn[b-davj9liy36]  .pn-chipbox { display: inline-flex; align-items: center; gap: 4px; }
.pn[b-davj9liy36]  .pn-filechip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface-alt); color: var(--ink); font-size: var(--font-label); cursor: pointer; transition: border-color 150ms ease; }
.pn[b-davj9liy36]  .pn-filechip:hover,
.pn[b-davj9liy36]  .pn-filechip:focus-visible { border-color: var(--primary-border); outline: none; }
.pn[b-davj9liy36]  .pn-filename { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn[b-davj9liy36]  .pn-add { align-self: center; }

.pn[b-davj9liy36]  .pn-button { display: inline-flex; align-items: center; gap: 8px; }
.pn[b-davj9liy36]  .pn-open { cursor: pointer; border-radius: var(--radius-control); outline: none; }
.pn[b-davj9liy36]  .pn-open:focus-visible { box-shadow: 0 0 0 2px var(--primary-border); }
/* /Panels/PanelIconArt.razor.rz.scp.css */
.pn-icon-art[b-l29ltz7clv] {
    flex: none;
    display: block;
    object-fit: contain;
}
/* /PatientFile/LetterPrintDialog.razor.rz.scp.css */
.lpd[b-vvtfc5n84o] {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    min-width: min(720px, 86vw);
}

.lpd-status[b-vvtfc5n84o] {
    margin: 0;
    line-height: 1.6;
    color: var(--muted);
    font-size: var(--font-body);
}

.lpd-pages[b-vvtfc5n84o] {
    height: min(60vh, 560px);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.lpd-actions[b-vvtfc5n84o] {
    display: flex;
    justify-content: flex-end;
}
/* /PatientFile/LettersWorkspace.razor.rz.scp.css */
/* Letters tab (desktop LettersWorkspace): start card 270 | gap 16 | centre (≥ 320) | rail; each area scrolls on its own. */
.lw[b-3nh4da6if9] {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 270px minmax(320px, 1fr) auto;
    gap: 0 16px;
    margin: 0 5px 6px;
}

.lw .card[b-3nh4da6if9] {
    margin: 0;
}

/* ---- start card */
.lw-start[b-3nh4da6if9] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 12px 14px;
}

.lw-start[b-3nh4da6if9]  .kit-seg {
    width: 100%;
    margin-bottom: 10px;
}

.lw-head[b-3nh4da6if9] {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.lw-search[b-3nh4da6if9] {
    flex: 1;
    min-width: 0;
}

.lw-new[b-3nh4da6if9] {
    flex: none;
    white-space: nowrap;
}

.lw-list[b-3nh4da6if9] {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding-inline-end: 2px;
}

.lw-group[b-3nh4da6if9] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 2px 5px;
    color: var(--muted);
    font-size: var(--font-label);
    font-weight: 600;
}

.lw-tile-line[b-3nh4da6if9] {
    display: flex;
    gap: 6px;
    margin-bottom: 5px;
}

/* Tile / history row = desktop OutlineButton, Primary style when chosen. */
.lw-tile[b-3nh4da6if9],
.lw-row[b-3nh4da6if9] {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: var(--control-height);
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--ink);
    font-size: var(--font-body);
    font-weight: 600;
    text-align: start;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.lw-row[b-3nh4da6if9] {
    margin-bottom: 5px;
    font-weight: 400;
}

.lw-tile:hover[b-3nh4da6if9],
.lw-row:hover[b-3nh4da6if9] {
    border-color: var(--primary-border);
    background: var(--primary-soft);
}

.lw-tile.lw-chosen[b-3nh4da6if9],
.lw-row.lw-chosen[b-3nh4da6if9] {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-primary);
}

.lw-tile:focus-visible[b-3nh4da6if9],
.lw-row:focus-visible[b-3nh4da6if9] {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* WHY plaintext + right: an English name («Medical Certificate (English)») is cut at its own end like the desktop
   («Medical Certi…»), not at its start, and still sits next to the icon (V4-4). */
.lw-tile-title[b-3nh4da6if9] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    unicode-bidi: plaintext;
    white-space: nowrap;
}

.lw-row-text[b-3nh4da6if9] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lw-row-title[b-3nh4da6if9] {
    text-align: right;
    unicode-bidi: plaintext;
}

.lw-row-title[b-3nh4da6if9],
.lw-row-meta[b-3nh4da6if9] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lw-row-meta[b-3nh4da6if9] {
    font-size: var(--font-small);
    opacity: 0.75;
}

.lw-pencil[b-3nh4da6if9] {
    flex: none;
    align-self: stretch;
}

.lw-chip[b-3nh4da6if9] {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 8px;
    border-radius: var(--radius-chip);
    font-size: var(--font-small);
    font-weight: 400;
}

.lw-chip-primary[b-3nh4da6if9] {
    background: var(--primary-soft);
    color: var(--primary-ink);
}

.lw-chip-muted[b-3nh4da6if9] {
    background: var(--surface-alt);
    color: var(--muted);
}

.lw-chip-ok[b-3nh4da6if9] {
    background: var(--ok-soft);
    color: var(--ok);
}

.lw-empty[b-3nh4da6if9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 300px;
    margin: 22px auto;
    padding: 0 8px;
    color: var(--muted);
    font-size: var(--font-body);
    line-height: 1.8;
    text-align: center;
}

/* ---- centre */
.lw-placeholder[b-3nh4da6if9] {
    grid-column: 2 / 4;
    align-self: start;
    padding: 16px 18px;
}

.lw-center[b-3nh4da6if9] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.lw-title-row[b-3nh4da6if9] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-bottom: 6px;
}

.lw-title[b-3nh4da6if9] {
    flex: 1;
    min-width: 140px;
    font-weight: 600;
}

.lw-status[b-3nh4da6if9] {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-chip);
    background: var(--surface-alt);
    color: var(--muted);
    font-size: var(--font-small);
    font-weight: 600;
}

.lw-status-primary[b-3nh4da6if9] {
    border-color: var(--primary-border);
    background: var(--primary-soft);
    color: var(--primary-ink);
}

.lw-status-ok[b-3nh4da6if9] {
    border-color: var(--ok);
    background: var(--ok-soft);
    color: var(--ok);
}

.lw-head-btn[b-3nh4da6if9] {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.lw-head-btn.lw-on[b-3nh4da6if9] {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--on-primary);
}

.lw-banner[b-3nh4da6if9] {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    padding: 8px 12px;
    border: 1px solid var(--warn);
    border-radius: var(--radius-control);
    background: var(--warn-soft);
}

.lw-banner-text[b-3nh4da6if9] {
    flex: 1;
    color: var(--ink);
    font-weight: 600;
}

.lw-inputs[b-3nh4da6if9] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    max-height: 104px;
    overflow: auto;
    margin-bottom: 6px !important;
    padding: 6px 12px;
}

.lw-input[b-3nh4da6if9] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lw-input-label[b-3nh4da6if9] {
    color: var(--muted);
    font-size: var(--font-label);
    white-space: nowrap;
}

.lw-input-box[b-3nh4da6if9] {
    width: 180px;
}

.lw-tools[b-3nh4da6if9] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
}

.lw-tools .btn[b-3nh4da6if9] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lw-text[b-3nh4da6if9] {
    width: 100%;
    min-height: 140px;
    max-height: 40vh;
    resize: vertical;
    line-height: 1.8;
}

.lw-paper[b-3nh4da6if9] {
    position: relative;
    flex: 1;
    min-height: 320px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface-alt);
    overflow: hidden;
}

.lw-paper-skeleton[b-3nh4da6if9] {
    display: flex;
    justify-content: center;
    padding: 24px;
}

.lw-sheet-skeleton[b-3nh4da6if9] {
    width: min(100%, 560px);
    aspect-ratio: 210 / 297;
}

.lw-notice[b-3nh4da6if9] {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(420px, 90%);
    padding: 5px 12px;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-chip);
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-size: var(--font-small);
    pointer-events: none;
    animation: lw-fade-b-3nh4da6if9 160ms ease-out;
}

@keyframes lw-fade-b-3nh4da6if9 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Desktop LetterPagesView zoom bar: bottom-left card over the paper. */
.lw-zoombar[b-3nh4da6if9] {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
    box-shadow: var(--shadow-popup);
}

.lw-zoom-btn[b-3nh4da6if9] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
}

.lw-zoom-percent[b-3nh4da6if9] {
    min-width: 44px;
    color: var(--muted);
    font-size: var(--font-small);
    text-align: center;
}

/* ---- rail */
.lw-rail[b-3nh4da6if9] {
    align-self: start;
    display: flex;
    flex-direction: column;
    width: calc(132px + 2 * 12px);
    max-height: 100%;
    overflow: auto;
    padding: 12px;
}

.lw-rail-btn[b-3nh4da6if9] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 6px;
    white-space: nowrap;
}

.lw-rail[b-3nh4da6if9]  .lw-more {
    width: 100%;
    margin-bottom: 6px;
}

.lw-divider[b-3nh4da6if9] {
    height: 1px;
    margin: 4px 0 10px;
    background: var(--line);
}

.lw-label[b-3nh4da6if9] {
    display: block;
    margin: 0 2px 4px;
    line-height: 1.6;
    color: var(--muted);
    font-size: var(--font-label);
}

.lw-size[b-3nh4da6if9] {
    margin-bottom: 8px;
}

.lw-rail[b-3nh4da6if9]  .kit-seg {
    width: 100%;
    margin-bottom: 10px;
}

.lw-info[b-3nh4da6if9] {
    margin-bottom: 10px;
    padding: 4px 8px;
    border-radius: var(--radius-chip);
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-size: var(--font-small);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.lw-zoom-row[b-3nh4da6if9] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 6px;
}

.lw-zoom-row .btn-toolbar[b-3nh4da6if9] {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Narrow screens: the areas stack (start card, letter, rail) instead of squeezing the paper. */
@media (max-width: 960px) {
    .lw[b-3nh4da6if9] {
        grid-template-columns: 1fr;
        gap: 12px;
        overflow: auto;
    }

    .lw-placeholder[b-3nh4da6if9] {
        grid-column: auto;
    }

    .lw-start[b-3nh4da6if9] {
        max-height: 320px;
    }

    .lw-paper[b-3nh4da6if9] {
        min-height: 520px;
    }

    .lw-rail[b-3nh4da6if9] {
        width: auto;
    }
}
/* /PatientFile/PatientFieldGroups.razor.rz.scp.css */
/* Desktop PatientFieldGroups.xaml: card = Surface, Line border, radius 12, padding 12, 8 below; label column 150px. */
.pfg-card[b-upx5x9u0gg] {
    box-sizing: border-box;
    margin: 0 0 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    container-type: inline-size;
}

.pfg-title[b-upx5x9u0gg] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: var(--font-body);
    font-weight: 600;
}

/* WHY 850px: the desktop PatientFieldsPanel switches to two columns at that width (rows keep the taller cell's height). */
.pfg-fields[b-upx5x9u0gg] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

@container (min-width: 850px) {
    .pfg-fields[b-upx5x9u0gg] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pfg-row[b-upx5x9u0gg] {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: start;
    min-height: 34px;
    margin: 0 3px 2px 10px;
}

.pfg-label[b-upx5x9u0gg] {
    margin: 4px 0 2px 8px;
    color: var(--muted);
    font-size: var(--font-label);
    line-height: 28px;
    overflow-wrap: anywhere;
}
/* /PatientFile/PatientFileView.razor.rz.scp.css */
/* Desktop Views/PatientFileView.xaml (+ Resources/PatientNavigation.xaml PatientSectionItem). The literal sizes (header 94/200 columns,
   112px photo, 21px name, 12/15px radii, 44px tabs) are literals on the desktop too. */
.pf[b-6i9kh4kya9] {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

/* ---- Big header: folds away (rows 1fr → 0fr) when the content is scrolled (PatientHeaderMotion decides) ---- */
.pf-header-host[b-6i9kh4kya9] {
    display: grid;
    flex: none;
    grid-template-rows: 1fr;
    transition: grid-template-rows 260ms cubic-bezier(.2, .8, .2, 1), opacity 260ms ease;
}

.pf[data-compact="1"] .pf-header-host[b-6i9kh4kya9] {
    grid-template-rows: 0fr;
    opacity: 0;
}

.pf-header-clip[b-6i9kh4kya9] {
    min-height: 0;
    overflow: hidden;
    container-type: inline-size;
}

.pf-header[b-6i9kh4kya9] {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr) 200px;
    align-items: start;
    padding: 12px;
    border-radius: 15px;
}

@container (max-width: 660px) {
    .pf-header[b-6i9kh4kya9] {
        grid-template-columns: 80px minmax(0, 1fr) 180px;
    }
}

.pf-photo[b-6i9kh4kya9] {
    box-sizing: border-box;
    height: 112px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 13px;
    cursor: pointer;
    transition: border-color 140ms ease;
}

.pf-photo:hover[b-6i9kh4kya9],
.pf-photo:focus-visible[b-6i9kh4kya9] {
    border-color: var(--primary-border);
    outline: none;
}

.pf-photo[b-6i9kh4kya9]  .kit-avatar {
    width: 100%;
    height: 100%;
}

.pf-info[b-6i9kh4kya9] {
    min-width: 0;
    margin: 6px 0 0;
    margin-inline-start: 18px;
}

.pf-name[b-6i9kh4kya9] {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.pf-line[b-6i9kh4kya9] {
    margin: 4px 0;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.pf-muted[b-6i9kh4kya9] {
    color: var(--muted);
}

.pf-facts[b-6i9kh4kya9] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-inline-start: 12px;
    padding: 8px;
    border-radius: 11px;
    background: var(--surface-alt);
}

.pf-note[b-6i9kh4kya9] {
    margin: 0 0 6px;
}

.pf-fact[b-6i9kh4kya9] {
    margin: 2px 0;
    font-size: var(--font-label);
    overflow-wrap: anywhere;
}

.pf-fact-last[b-6i9kh4kya9] {
    margin-bottom: 8px;
}

.pf-book[b-6i9kh4kya9] {
    justify-content: center;
    width: 100%;
    margin: 2px 0;
}

/* ---- Tab bar (identity chip + four tabs + letters sub-sections) ---- */
.pf-tabbar[b-6i9kh4kya9] {
    display: grid;
    flex: none;
    grid-template-areas: "id tabs sec";
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    margin: 4px 5px 10px;
    padding: 4px 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

/* WHY sec only on the first row: spanning both rows, the letters sub-strip (~360 px) left the four tabs too little room and
   «نامه‌ها و توصیه‌ها» dropped to a third line at 1440 px with the patients list open (V4-3). */
.pf[data-narrow="1"] .pf-tabbar[b-6i9kh4kya9] {
    grid-template-areas: "id id sec" "tabs tabs tabs";
}

.pf-identity[b-6i9kh4kya9] {
    display: flex;
    grid-area: id;
    align-items: center;
    max-width: 0;
    min-height: 44px;
    margin: 0 4px 0 8px;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: max-width 260ms cubic-bezier(.2, .8, .2, 1), max-height 260ms cubic-bezier(.2, .8, .2, 1), opacity 260ms ease;
}

.pf[data-compact="1"] .pf-identity[b-6i9kh4kya9] {
    max-width: 60vw;
    opacity: 1;
}

.pf[data-narrow="1"] .pf-identity[b-6i9kh4kya9] {
    max-width: none;
    max-height: 0;
    min-height: 0;
}

.pf[data-narrow="1"][data-compact="1"] .pf-identity[b-6i9kh4kya9] {
    max-height: 46px;
    min-height: 44px;
}

.pf-identity-photo[b-6i9kh4kya9] {
    display: inline-flex;
    border-radius: 50%;
    cursor: pointer;
}

.pf-identity-photo:focus-visible[b-6i9kh4kya9] {
    outline: 2px solid var(--primary-border);
    outline-offset: 1px;
}

.pf-identity-name[b-6i9kh4kya9] {
    margin: 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.pf-identity-code[b-6i9kh4kya9] {
    margin-inline-end: 10px;
    color: var(--muted);
    font-size: 13px;
}

.pf-identity-line[b-6i9kh4kya9] {
    align-self: stretch;
    width: 1px;
    margin: 8px 0;
    background: var(--line);
}

.pf-tabs[b-6i9kh4kya9] {
    display: flex;
    flex-wrap: wrap;
    grid-area: tabs;
    min-width: 0;
}

.pf-tab[b-6i9kh4kya9] {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    margin: 2px;
    padding: 10px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    line-height: 26px;
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease;
}

.pf-tab[b-6i9kh4kya9]::after {
    content: "";
    position: absolute;
    inset: auto 12px 0;
    height: 2px;
    border-radius: 1px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 140ms ease;
}

.pf-tab:hover[b-6i9kh4kya9] {
    background: var(--hover);
}

.pf-tab[aria-selected="true"][b-6i9kh4kya9] {
    background: var(--surface-alt);
    color: var(--primary-ink);
}

.pf-tab[aria-selected="true"][b-6i9kh4kya9]::after {
    opacity: 1;
}

.pf-tab:focus-visible[b-6i9kh4kya9] {
    border-color: var(--primary-border);
    outline: none;
}

.pf-sections[b-6i9kh4kya9] {
    grid-area: sec;
    margin: 0 8px 0 2px;
}

/* ---- Content ---- */
.pf-scroll[b-6i9kh4kya9] {
    flex: 1;
    min-height: 0;
    margin: 0 5px;
    overflow: auto;
}

.pf-scroll[hidden][b-6i9kh4kya9] {
    display: none;
}

.pf-content[b-6i9kh4kya9] {
    display: flow-root;
}

.pf-visit[b-6i9kh4kya9] {
    box-sizing: border-box;
    margin: 0 0 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.pf-visit-title[b-6i9kh4kya9] {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    font-size: var(--font-body);
    font-weight: 600;
}

.pf-history-banner[b-6i9kh4kya9] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: 9px;
    background: var(--primary-soft);
}

.pf-history-caption[b-6i9kh4kya9] {
    color: var(--primary-ink);
    font-weight: 600;
}

.pf-visit-empty[b-6i9kh4kya9] {
    margin: 10px 0;
}

.pf-actions[b-6i9kh4kya9] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 10px;
}

/* ---- Parts that arrive in later phases (W10 board, W14 letters): a skeleton, never a blank area ---- */
.pf-later[b-6i9kh4kya9] {
    flex: none;
    margin: 0 5px 8px;
}

.pf-scroll .pf-later[b-6i9kh4kya9] {
    margin: 0 0 8px;
}

.pf-later-line[b-6i9kh4kya9] {
    height: 14px;
    margin: 0 0 10px;
    border-radius: 7px;
}

.pf-later-short[b-6i9kh4kya9] {
    width: 60%;
}
/* /PatientFile/PatientInlineValue.razor.rz.scp.css */
/* Desktop Controls/PatientInlineValue.xaml: fixed 14px value text / 26px lines and the 24px pen are literals there too. */
.piv[b-a6uidgi5g6] {
    min-width: 0;
}

.piv-display[b-a6uidgi5g6] {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 32px;
    box-sizing: border-box;
    padding: 2px 4px;
    border-radius: 6px;
}

.piv-text[b-a6uidgi5g6] {
    font-size: 14px;
    line-height: 26px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.piv-pen[b-a6uidgi5g6] {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin: 0 4px 0 0;
    padding: 4px;
    border: 0;
    border-radius: var(--radius-control);
    background: transparent;
    cursor: pointer;
    opacity: 0;
    transition: opacity 140ms ease, background-color 140ms ease;
}

.piv:hover .piv-pen[b-a6uidgi5g6],
.piv-pen:focus-visible[b-a6uidgi5g6] {
    opacity: 1;
}

.piv-pen:hover[b-a6uidgi5g6] {
    background: var(--hover);
}

.piv-pen:focus-visible[b-a6uidgi5g6] {
    outline: 2px solid var(--primary-border);
    outline-offset: 1px;
}

.piv-editor[b-a6uidgi5g6] {
    min-height: 32px;
}

/* Desktop: a text box with only a bottom line in PrimaryBorder. */
.piv-input[b-a6uidgi5g6] {
    display: block;
    width: 100%;
    min-height: 34px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 4px;
    border: 0;
    border-bottom: 1px solid var(--primary-border);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    line-height: 26px;
}

.piv-input:focus[b-a6uidgi5g6] {
    outline: none;
    border-bottom-color: var(--primary);
}

.piv-area[b-a6uidgi5g6] {
    resize: vertical;
    padding-top: 4px;
}

.piv-select[b-a6uidgi5g6] {
    width: 100%;
}

.piv-feedback[b-a6uidgi5g6] {
    color: var(--danger);
    font-size: 11px;
    line-height: 22px;
}

/* The header note: red text on DangerSoft, two lines at most (the popup shows all of it). */
.piv-important .piv-display[b-a6uidgi5g6] {
    display: flex;
    width: 100%;
    background: var(--danger-soft);
    color: var(--danger);
    cursor: pointer;
}

.piv-important .piv-text[b-a6uidgi5g6] {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 52px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.piv-note[b-a6uidgi5g6] {
    box-sizing: border-box;
    width: 360px;
    max-width: calc(100vw - 32px);
    padding: 16px;
    border: 1px solid var(--danger-line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-popup);
}

.piv-note-title[b-a6uidgi5g6] {
    margin-bottom: 8px;
    color: var(--danger);
    font-weight: 600;
}

.piv-note-text[b-a6uidgi5g6] {
    display: block;
    width: 100%;
    min-height: 80px;
    max-height: 260px;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--danger);
    font: inherit;
    resize: vertical;
}

.piv-note-hint[b-a6uidgi5g6] {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}
/* /PatientFile/RecordListPanel.razor.rz.scp.css */
/* Desktop RecordListPanel.xaml: SurfaceAlt card, Line border, radius 12, padding 12, 6 below; caption at the start, buttons at the end. */
.rlp-card[b-znj90cjwzi] {
    box-sizing: border-box;
    margin: 0 0 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-alt);
}

.rlp-head[b-znj90cjwzi] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 2px 10px;
}

.rlp-caption[b-znj90cjwzi] {
    font-size: var(--font-body);
    font-weight: 600;
}

.rlp-actions[b-znj90cjwzi] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
/* /PatientFile/VisitHistoryStrip.razor.rz.scp.css */
/* Desktop PatientFileView history Expander: 5px side margins, 8 below; table in a Surface/Line card (radius 12, padding 4), max 210px. */
.vhs[b-iwr8mugkbb] {
    flex: none;
    margin: 0 5px 8px;
}

.vhs-head[b-iwr8mugkbb] {
    font-size: var(--font-body);
}

.vhs-body[b-iwr8mugkbb] {
    box-sizing: border-box;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.vhs-scroll[b-iwr8mugkbb] {
    max-height: 210px;
    overflow: auto;
}

/* WHY explicit th/td styles: base.css styles bare table cells and rows. */
.vhs-table[b-iwr8mugkbb] {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: var(--font-body);
}

.vhs-table th[b-iwr8mugkbb],
.vhs-table td[b-iwr8mugkbb] {
    height: auto;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-align: start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vhs-table th[b-iwr8mugkbb] {
    position: sticky;
    top: 0;
    z-index: 1;
    height: 40px;
    background: var(--surface-alt);
    color: var(--muted);
    font-size: var(--font-label);
    font-weight: 600;
}

.vhs-table td[b-iwr8mugkbb] {
    height: 50px;
    border-bottom: 1px solid var(--line);
}

.vhs-table tbody tr[b-iwr8mugkbb] {
    cursor: pointer;
    transition: background-color 140ms ease;
}

.vhs-table tbody tr:hover td[b-iwr8mugkbb] {
    background: var(--hover);
}

.vhs-table tbody tr.vhs-on td[b-iwr8mugkbb] {
    background: var(--primary-soft);
}

.vhs-table tbody tr:focus-visible[b-iwr8mugkbb] {
    outline: 2px solid var(--primary-border);
    outline-offset: -2px;
}

.vhs-date[b-iwr8mugkbb] { width: 22%; }
.vhs-kind[b-iwr8mugkbb] { width: 12%; }
.vhs-reason[b-iwr8mugkbb] { width: 30%; }
.vhs-dx[b-iwr8mugkbb] { width: 26%; }
.vhs-status[b-iwr8mugkbb] { width: 105px; }
/* /Settings/InsurerDialog.razor.rz.scp.css */
.set-insurer[b-a91jehek7r] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.set-insurer-warning[b-a91jehek7r] {
    padding: 10px 12px;
    border: 1px solid var(--warn);
    border-radius: var(--radius-control);
    background: var(--warn-soft);
    color: var(--warn);
}

.set-insurer-lines[b-a91jehek7r] {
    margin: 0;
    padding: 0;
    list-style: none;
}

.set-insurer-lines li[b-a91jehek7r] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.set-insurer-address[b-a91jehek7r] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.set-insurer-address .input[b-a91jehek7r] {
    flex: 1;
    min-width: 0;
}

.set-note[b-a91jehek7r] {
    color: var(--muted);
    font-size: var(--font-small);
}

.set-bad[b-a91jehek7r] {
    color: var(--danger);
}
/* /Settings/SettingsPage.razor.rz.scp.css */
/* Desktop SettingsView: a 232px side navigation card (a 60px icon rail when the page is narrower than 1000px), a 48px section header,
   one section below. Section components use the same set-* classes, so their rules live here behind ::deep. */
.set[b-krknkg4ev5] {
    container-type: inline-size;
    height: 100%;
    min-height: 0;
}

.set-split[b-krknkg4ev5] {
    display: flex;
    gap: 12px;
    height: 100%;
    min-height: 0;
}

.set-nav[b-krknkg4ev5] {
    display: flex;
    flex: none;
    flex-direction: column;
    box-sizing: border-box;
    width: 232px;
    margin: 0;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--ink);
}

.set-nav-group[b-krknkg4ev5] {
    margin: 16px 12px 4px;
    color: var(--muted);
    font-size: var(--font-small);
}

.set-nav-item[b-krknkg4ev5] {
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    text-align: start;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--motion), color var(--motion);
}

.set-nav-item:hover[b-krknkg4ev5] {
    background: var(--surface-alt);
}

.set-nav-item[aria-current="page"][b-krknkg4ev5] {
    background: var(--surface-alt);
    color: var(--ink);
}

.set-nav-item[aria-current="page"][b-krknkg4ev5]::before {
    content: "";
    position: absolute;
    inset-block: 8px;
    inset-inline-start: 0;
    width: 3px;
    border-radius: 2px;
    background: var(--primary);
}

.set-main[b-krknkg4ev5] {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    min-height: 0;
}

.set-head[b-krknkg4ev5] {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}

.set-head-icon[b-krknkg4ev5],
.set[b-krknkg4ev5]  .set-head-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--surface-alt);
}

.set-head-title[b-krknkg4ev5] {
    margin: 0;
    font-size: var(--font-card-title);
    white-space: nowrap;
}

.set-head-hint[b-krknkg4ev5] {
    flex: 1;
    min-width: 80px;
    overflow: hidden;
    color: var(--muted);
    font-size: var(--font-small);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.set-head-actions[b-krknkg4ev5] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.set-search[b-krknkg4ev5],
.set[b-krknkg4ev5]  .set-search {
    width: 220px;
}

.set-body[b-krknkg4ev5] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.set[b-krknkg4ev5]  .set-card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 2px 0 12px;
    font-size: var(--font-card-title);
}

.set[b-krknkg4ev5]  .set-note {
    margin: 4px 6px 8px;
    color: var(--muted);
    font-size: var(--font-small);
}

.set[b-krknkg4ev5]  .set-center {
    text-align: center;
}

.set[b-krknkg4ev5]  .set-gap {
    margin-top: 18px;
}

.set[b-krknkg4ev5]  .set-bad {
    color: var(--danger);
}

.set[b-krknkg4ev5]  .set-good {
    color: var(--ok);
}

.set[b-krknkg4ev5]  .set-loading {
    height: 200px;
    border-radius: var(--radius-card);
}

/* ---- record fields (desktop FieldTemplate: full width, no hint line, no snippet button) ---- */
.set[b-krknkg4ev5]  .set-card .kit-field,
.set[b-krknkg4ev5]  .set-profile-info .kit-field {
    width: auto;
    margin: 3px 5px;
}

.set[b-krknkg4ev5]  .set-card .kit-field-link,
.set[b-krknkg4ev5]  .set-card .kit-field-hint,
.set[b-krknkg4ev5]  .set-profile-info .kit-field-link,
.set[b-krknkg4ev5]  .set-profile-info .kit-field-hint {
    display: none;
}

/* ---- profile ---- */
.set[b-krknkg4ev5]  .set-profile {
    display: flex;
    align-items: flex-start;
}

.set[b-krknkg4ev5]  .set-profile-photo {
    display: flex;
    flex: none;
    flex-direction: column;
    box-sizing: border-box;
    width: 280px;
}

.set[b-krknkg4ev5]  .set-profile-info {
    flex: 1;
    min-width: 0;
    max-width: 784px;
}

.set[b-krknkg4ev5]  .set-portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    margin: 10px 0;
    overflow: hidden;
    border-radius: 9px;
    background: var(--surface-alt);
}

.set[b-krknkg4ev5]  .set-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.set[b-krknkg4ev5]  .set-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    align-items: start;
}

/* ---- form cards (clinic, general) ---- */
.set[b-krknkg4ev5]  .set-cards {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.set[b-krknkg4ev5]  .set-card {
    box-sizing: border-box;
    flex: 1 1 380px;
    min-width: min(320px, 100%);
    max-width: 520px;
}

/* ---- users / audit ---- */
.set[b-krknkg4ev5]  .set-grid-card {
    margin: 0;
}

.set[b-krknkg4ev5]  .set-empty {
    text-align: center;
}

/* ---- backup ---- */
.set[b-krknkg4ev5]  .set-backup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    min-width: min(380px, 100%);
    max-width: 560px;
    padding: 24px;
}

.set[b-krknkg4ev5]  .set-backup .input {
    align-self: stretch;
}

.set[b-krknkg4ev5]  .set-backup-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

/* ---- visit hours ---- */
.set[b-krknkg4ev5]  .set-hours {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 8px;
    height: 100%;
}

.set[b-krknkg4ev5]  .set-hours-side {
    margin: 0;
    padding: 14px;
    overflow-y: auto;
}

.set[b-krknkg4ev5]  .set-hours-title {
    margin: 0 0 8px;
    font-size: var(--font-body);
}

.set[b-krknkg4ev5]  .set-hours-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    padding: 14px;
}

.set[b-krknkg4ev5]  .set-hours-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.set[b-krknkg4ev5]  .set-hours-scroll > .btn {
    margin: 3px;
}

.set[b-krknkg4ev5]  .set-hours-day {
    max-width: 240px;
    margin: 0 3px 8px;
}

.set[b-krknkg4ev5]  .set-hours-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 4px 3px;
}

.set[b-krknkg4ev5]  .set-hours-line label {
    margin: 0;
}

.set[b-krknkg4ev5]  .set-hours-duration {
    width: 86px;
}

.set[b-krknkg4ev5]  .set-hours-scope {
    display: block;
    max-width: 420px;
    margin: 6px 3px 10px;
}

.set[b-krknkg4ev5]  .set-hours-caption {
    margin: 10px 6px 2px;
    font-size: var(--font-label);
}

.set[b-krknkg4ev5]  .set-hours-actions {
    flex: none;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.set[b-krknkg4ev5]  .set-hours-message {
    flex: none;
    margin: 8px 4px 0;
    font-size: var(--font-label);
}

.set[b-krknkg4ev5]  .set-check,
.set[b-krknkg4ev5]  .set-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 6px;
    cursor: pointer;
}

/* WHY: old global input{width:100%;padding:11px} stretches tick boxes. */
.set[b-krknkg4ev5]  .set-check input,
.set[b-krknkg4ev5]  .set-radio input {
    flex: none;
    width: 17px;
    height: 17px;
    margin: 0;
    padding: 0;
    accent-color: var(--primary);
}

/* ---- display ---- */
.set[b-krknkg4ev5]  .set-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.set[b-krknkg4ev5]  .set-swatch {
    display: flex;
    flex-direction: column;
    width: 190px;
    padding: 0;
    overflow: hidden;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: var(--surface-alt);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

.set[b-krknkg4ev5]  .set-swatch[aria-pressed="true"] {
    border-color: var(--primary);
    font-weight: 700;
}

.set[b-krknkg4ev5]  .set-swatch-page {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 86px;
    padding: 12px 10px;
    background: var(--page-background);
}

.set[b-krknkg4ev5]  .set-swatch-sheet {
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-sizing: border-box;
    height: 100%;
    padding: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
}

.set[b-krknkg4ev5]  .set-swatch-ink {
    width: 60px;
    height: 8px;
    border-radius: 3px;
    background: var(--ink);
}

.set[b-krknkg4ev5]  .set-swatch-track {
    height: 6px;
    border-radius: 3px;
    background: var(--track);
}

.set[b-krknkg4ev5]  .set-swatch-primary {
    width: 46px;
    height: 14px;
    flex: none;
    border-radius: 5px;
    background: var(--primary);
}

.set[b-krknkg4ev5]  .set-swatch-label {
    padding: 8px 10px;
    text-align: center;
}

.set[b-krknkg4ev5]  .set-accent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 132px;
    padding: 10px 10px 8px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: var(--surface-alt);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

.set[b-krknkg4ev5]  .set-accent[aria-pressed="true"] {
    border-color: var(--primary);
    font-weight: 700;
}

.set[b-krknkg4ev5]  .set-accent-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
}

.set[b-krknkg4ev5]  .set-font {
    margin-bottom: 14px;
}

.set[b-krknkg4ev5]  .set-font .btn {
    min-width: 56px;
}

/* ---- summary templates ---- */
.set[b-krknkg4ev5]  .set-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 4px 6px;
}

.set[b-krknkg4ev5]  .set-row-title,
.set[b-krknkg4ev5]  .set-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.set[b-krknkg4ev5]  .set-dim {
    opacity: .6;
}

/* ---- letter templates ---- */
.set[b-krknkg4ev5]  .set-letters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.set[b-krknkg4ev5]  .set-letter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.set[b-krknkg4ev5]  .set-letter-group {
    width: 190px;
}

.set[b-krknkg4ev5]  .set-letter-space {
    flex: 1;
}

.set[b-krknkg4ev5]  .set-popup-list {
    min-width: 240px;
    max-height: 340px;
    overflow-y: auto;
}

.set[b-krknkg4ev5]  .set-letter-images {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
}

.set[b-krknkg4ev5]  .set-letter-image {
    display: flex;
    align-items: center;
    gap: 10px;
}

.set[b-krknkg4ev5]  .set-letter-image > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.set[b-krknkg4ev5]  .set-letter-image-actions {
    display: flex;
    gap: 4px;
}

/* WHY white: a picture goes on paper, which is never themed. */
.set[b-krknkg4ev5]  .set-letter-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 64px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
}

.set[b-krknkg4ev5]  .set-letter-frame img {
    max-width: 88px;
    max-height: 56px;
}

.set[b-krknkg4ev5]  .set-letter-gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
}

.set[b-krknkg4ev5]  .set-letter-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
    width: 252px;
    margin: 0;
    padding: 10px;
}

.set[b-krknkg4ev5]  .set-letter-sheet {
    display: flex;
    justify-content: center;
    height: 284px;
    margin: 0 0 6px;
    padding: 9px 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-alt);
    cursor: pointer;
}

.set[b-krknkg4ev5]  .set-letter-sheet:disabled {
    cursor: default;
}

.set[b-krknkg4ev5]  .set-letter-title {
    overflow: hidden;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.set[b-krknkg4ev5]  .set-letter-chips,
.set[b-krknkg4ev5]  .set-letter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ---- narrow: icon rail, photo above the form, stacked hours ---- */
@container (max-width: 999px) {
    .set-nav[b-krknkg4ev5] {
        width: 60px;
        padding: 8px 6px;
    }

    .set-nav-title[b-krknkg4ev5],
    .set-nav-group[b-krknkg4ev5] {
        display: none;
    }

    .set-nav-item[b-krknkg4ev5] {
        justify-content: center;
        padding: 0;
    }

    .set[b-krknkg4ev5]  .set-profile {
        flex-direction: column;
    }

    .set[b-krknkg4ev5]  .set-profile-info {
        align-self: stretch;
    }

    .set[b-krknkg4ev5]  .set-hours {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        height: auto;
    }
}
/* /Shell/NavButton.razor.rz.scp.css */
/* NavButton / NavItemButton (Templates.xaml): sizes from the skin's Nav.* tokens. Overrides the base.css `button` rule. */
.nav-item[b-9kpiev3a47] {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    min-height: var(--nav-item-height);
    margin: 3px 0;
    padding: 0 14px;
    border: 0;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: var(--font-body);
    font-weight: 500;
    text-align: start;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--motion), color var(--motion);
}

.nav-item:hover[b-9kpiev3a47] {
    background: var(--hover);
    filter: none;
}

.nav-item[aria-current="page"][b-9kpiev3a47],
.nav-item[aria-current="page"]:hover[b-9kpiev3a47] {
    background: var(--selected-nav);
    color: var(--on-primary);
    font-weight: 600;
}

.nav-item:focus-visible[b-9kpiev3a47] {
    outline: 2px solid var(--primary-border);
    outline-offset: -2px;
}

.label[b-9kpiev3a47] {
    transition: opacity 180ms ease-in-out, transform 180ms ease-in-out;
}

.nav-item.collapsed .label[b-9kpiev3a47] {
    opacity: 0;
    transform: translateX(16px);
}

/* Rail: icon with the label under it (Height Auto, MinHeight 64, Padding 2,6). */
.nav-item.rail[b-9kpiev3a47] {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 64px;
    padding: 6px 2px;
    white-space: normal;
    text-align: center;
}

.nav-item.rail .label[b-9kpiev3a47] {
    font-size: var(--font-small);
    line-height: 1.3;
}

/* Top tabs: text only (Height 44, Padding 16,0). */
.nav-item.tab[b-9kpiev3a47] {
    flex: none;
    justify-content: center;
    width: auto;
    min-height: 44px;
    margin: 0 2px;
    padding: 0 16px;
}
/* /Shell/PinPanel.razor.rz.scp.css */
.backdrop[b-kus50egvao] {
    position: fixed;
    inset: 0;
    z-index: 40;
}

/* Popup: 340 wide, Surface + Line, Radius.Card, padding 16, popup shadow. */
.panel[b-kus50egvao] {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-end: 0;
    z-index: 41;
    box-sizing: border-box;
    width: 340px;
    max-height: 70vh;
    margin-top: 6px;
    padding: 16px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-popup);
    animation: pin-pop-b-kus50egvao var(--motion);
}

.panel-title[b-kus50egvao] {
    font-size: var(--font-card-title);
    font-weight: 600;
}

.muted[b-kus50egvao] {
    color: var(--muted);
}

.panel-hint[b-kus50egvao] {
    margin: 3px 0 12px;
    line-height: 1.7;
}

.section[b-kus50egvao] {
    margin: 0 0 6px;
    font-weight: 600;
}

.section.add[b-kus50egvao] {
    margin-top: 10px;
}

.panel-empty[b-kus50egvao] {
    margin-bottom: 6px;
}

.pinned[b-kus50egvao] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-control);
    background: var(--primary-soft);
}

.text[b-kus50egvao] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tiny[b-kus50egvao] {
    display: grid;
    flex: none;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-control);
    background: transparent;
    cursor: pointer;
}

.tiny:hover[b-kus50egvao] {
    background: var(--overlay-hover);
    filter: none;
}

.row[b-kus50egvao] {
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 6px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: background-color var(--motion);
}

.row:hover[b-kus50egvao] {
    background: var(--hover);
    filter: none;
}

.group[b-kus50egvao] {
    font-size: var(--font-small);
    margin-inline-end: 2px;
}

@keyframes pin-pop-b-kus50egvao {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
}
/* /Shell/RailShell.razor.rz.scp.css */
.shell[b-mx4cfbwd2l] {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Rail: Width Nav.RailWidth, radius 22, margin 16 on the page side and top/bottom (Margin 16,16,0,16). */
.rail[b-mx4cfbwd2l] {
    display: flex;
    flex: none;
    flex-direction: column;
    box-sizing: border-box;
    width: var(--nav-rail-width);
    margin-block: 16px;
    margin-inline: 16px 0;
    padding: 16px 8px 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
}

.mark[b-mx4cfbwd2l] {
    display: grid;
    flex: none;
    place-items: center;
    align-self: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--primary-gradient);
}

.items[b-mx4cfbwd2l] {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.foot[b-mx4cfbwd2l] {
    margin-top: 10px;
}

.logout[b-mx4cfbwd2l] {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    margin-top: 8px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--danger);
    cursor: pointer;
    transition: background-color var(--motion);
}

.logout:hover[b-mx4cfbwd2l] {
    background: var(--danger-soft);
    filter: none;
}
/* /Shell/ShellPageArea.razor.rz.scp.css */
/* Page.Padding is the padding of the whole page area (header + page + message bar); the margins inside it are the same in every skin. */
.area[b-5dk1rpwl5s] {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    padding: var(--page-padding);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Busy: indeterminate line on top of the page area (instead of a full-screen overlay). */
.busy[b-5dk1rpwl5s] {
    position: absolute;
    inset: 0 0 auto;
    z-index: 5;
    height: 3px;
    overflow: hidden;
    background: var(--primary-soft);
}

.busy[b-5dk1rpwl5s]::after {
    content: "";
    display: block;
    width: 35%;
    height: 100%;
    background: var(--primary);
    animation: area-busy-b-5dk1rpwl5s 1.1s ease-in-out infinite;
}

.head-row[b-5dk1rpwl5s] {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--space-m);
    min-height: 56px;
    margin: 6px 0 8px;
}

.head-text[b-5dk1rpwl5s] {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
}

.photo[b-5dk1rpwl5s] {
    display: grid;
    flex: none;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-inline-end: 12px;
    overflow: hidden;
    border: 2px solid var(--surface);
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-size: 22px;
    font-weight: 700;
}

.photo img[b-5dk1rpwl5s] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.titles[b-5dk1rpwl5s] {
    min-width: 0;
}

.page-title[b-5dk1rpwl5s] {
    overflow: hidden;
    font-size: var(--font-page-title);
    font-weight: var(--weight-page-title);
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subtitle[b-5dk1rpwl5s] {
    color: var(--muted);
    font-size: 14px;
}

.tools[b-5dk1rpwl5s] {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
}

.tools .btn[b-5dk1rpwl5s] {
    margin: 0;
}

.pin-host[b-5dk1rpwl5s] {
    position: relative;
}

.host[b-5dk1rpwl5s] {
    flex: 1;
    min-height: 0;
    margin: 10px 0 4px;
}

.host.flush[b-5dk1rpwl5s] {
    margin-top: 0;
}

.skeletons[b-5dk1rpwl5s] {
    display: grid;
    gap: 10px;
}

.skeleton-row[b-5dk1rpwl5s] {
    height: 44px;
}

.message[b-5dk1rpwl5s] {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--space-m);
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--primary-soft);
}

.message .text[b-5dk1rpwl5s] {
    flex: 1;
    color: var(--danger);
    line-height: 1.7;
}

.message .connection[b-5dk1rpwl5s] {
    color: var(--muted);
    font-size: 11px;
}

.dismiss[b-5dk1rpwl5s] {
    display: grid;
    flex: none;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.dismiss:hover[b-5dk1rpwl5s] {
    background: var(--overlay-hover);
    filter: none;
}

@keyframes area-busy-b-5dk1rpwl5s {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(290%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .busy[b-5dk1rpwl5s]::after {
        animation: none;
        width: 100%;
        opacity: .6;
    }
}
/* /Shell/SidebarShell.razor.rz.scp.css */
.shell[b-vb5c6yl6lk] {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar: Border Width Nav.Width (84 when collapsed), radius 22, margin 16 on the page side and top/bottom, Surface + Line. */
.sidebar[b-vb5c6yl6lk] {
    display: flex;
    flex: none;
    flex-direction: column;
    box-sizing: border-box;
    width: var(--nav-width);
    margin-block: 16px;
    margin-inline: 16px 0;
    padding: 18px 14px 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    transition: width 200ms ease-in-out;
}

.sidebar.collapsed[b-vb5c6yl6lk] {
    width: 84px;
}

.head[b-vb5c6yl6lk] {
    display: flex;
    align-items: center;
    height: 48px;
    margin-bottom: 20px;
}

.logo[b-vb5c6yl6lk] {
    display: grid;
    flex: none;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-control);
    background: var(--primary-gradient);
    cursor: pointer;
}

.profile[b-vb5c6yl6lk] {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    margin-inline-start: 12px;
    white-space: nowrap;
    transition: opacity 180ms ease-in-out;
}

.profile strong[b-vb5c6yl6lk] {
    font-size: 22px;
    font-weight: 800;
    line-height: 26px;
}

.profile span[b-vb5c6yl6lk] {
    color: var(--muted);
    font-size: var(--font-small);
}

.collapse[b-vb5c6yl6lk] {
    display: grid;
    flex: none;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-control);
    background: transparent;
    cursor: pointer;
    transition: opacity 180ms ease-in-out, background-color var(--motion);
}

.collapse:hover[b-vb5c6yl6lk] {
    background: var(--hover);
    filter: none;
}

.collapsed .profile[b-vb5c6yl6lk],
.collapsed .collapse[b-vb5c6yl6lk] {
    opacity: 0;
    pointer-events: none;
}

.items[b-vb5c6yl6lk] {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.foot[b-vb5c6yl6lk] {
    margin-top: 10px;
}

.logout[b-vb5c6yl6lk] {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    margin-top: 8px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--danger);
    font: inherit;
    font-size: var(--font-body);
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--motion);
}

.logout:hover[b-vb5c6yl6lk] {
    background: var(--danger-soft);
    filter: none;
}

.logout .label[b-vb5c6yl6lk] {
    transition: opacity 180ms ease-in-out, transform 180ms ease-in-out;
}

.collapsed .logout .label[b-vb5c6yl6lk] {
    opacity: 0;
    transform: translateX(16px);
}
/* /Shell/TopTabsShell.razor.rz.scp.css */
.shell[b-515enfvm7g] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Tab bar: Height Nav.BarHeight, radius 22, margin 16,16,16,0, Surface + Line. */
.tabbar[b-515enfvm7g] {
    display: flex;
    flex: none;
    align-items: center;
    box-sizing: border-box;
    height: var(--nav-bar-height);
    margin: 16px 16px 0;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
}

.logout[b-515enfvm7g] {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--danger);
    cursor: pointer;
    transition: background-color var(--motion);
}

.logout:hover[b-515enfvm7g] {
    background: var(--danger-soft);
    filter: none;
}

.strip[b-515enfvm7g] {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    margin: 0 12px;
}

.more[b-515enfvm7g] {
    position: relative;
    flex: none;
}

.more-button[b-515enfvm7g] {
    min-height: 44px;
    margin: 0 2px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: var(--font-body);
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--motion);
}

.more-button:hover[b-515enfvm7g] {
    background: var(--hover);
    filter: none;
}

.backdrop[b-515enfvm7g] {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.menu[b-515enfvm7g] {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-start: 0;
    z-index: 41;
    margin-top: 6px;
}

.mark[b-515enfvm7g] {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-gradient);
}
/* /Summary/ClinicalBlockView.razor.rz.scp.css */
.cb[b-lvtonxh3xb] {
    margin: 6px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    transition: opacity 150ms ease;
}

.cb-dimmed[b-lvtonxh3xb] {
    opacity: 0.5;
    background: var(--surface-alt);
}

.cb-head[b-lvtonxh3xb] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.cb-title[b-lvtonxh3xb] {
    font-size: var(--font-body);
    font-weight: 600;
    color: var(--ink);
}

.cb-name[b-lvtonxh3xb] {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    padding: 2px 6px;
}

.cb-tools[b-lvtonxh3xb] {
    display: flex;
    gap: 4px;
}

.cb-value[b-lvtonxh3xb] {
    width: 100%;
    min-height: 56px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    background: var(--surface-alt);
    font-size: 14px;
    resize: vertical;
    field-sizing: content;
}

.cb-chips[b-lvtonxh3xb] {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Desktop QuickChip: pill, SurfaceAlt, PrimaryInk text; active = Primary filled. */
.cb-chip[b-lvtonxh3xb] {
    display: inline-flex;
    align-items: center;
    min-height: var(--control-height-small);
    margin: 0 0 6px 6px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    background: var(--surface-alt);
    color: var(--primary-ink);
    font: inherit;
    font-size: var(--font-label);
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

button.cb-chip:hover:not(:disabled)[b-lvtonxh3xb] {
    background: var(--hover);
}

.cb-chip-on[b-lvtonxh3xb],
button.cb-chip-on:hover:not(:disabled)[b-lvtonxh3xb] {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
}

button.cb-chip:disabled[b-lvtonxh3xb] {
    cursor: default;
}

.cb-chip-edit[b-lvtonxh3xb] {
    padding: 2px 12px 2px 4px;
    cursor: default;
}

.cb-chip-x[b-lvtonxh3xb] {
    margin-inline-start: 4px;
    padding: 0 6px;
}

.cb-editor[b-lvtonxh3xb] {
    margin-top: 10px;
}

.cb-note[b-lvtonxh3xb] {
    margin: 0 0 6px;
    font-size: var(--font-small);
    color: var(--muted);
}

.cb-add[b-lvtonxh3xb] {
    display: flex;
    gap: 6px;
}

.cb-add .input[b-lvtonxh3xb] {
    flex: 1;
    min-width: 0;
    padding: 4px 8px;
}

.cb-error[b-lvtonxh3xb] {
    margin: 8px 0 0;
    font-size: var(--font-small);
    color: var(--danger);
}
/* /Summary/ClinicalSummaryView.razor.rz.scp.css */
.cs-head[b-0mgj334ofp] {
    margin-bottom: 6px;
}

.cs-head-row[b-0mgj334ofp] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.cs-progress-text[b-0mgj334ofp] {
    font-size: 12.5px;
    color: var(--muted);
}

.cs-head-actions[b-0mgj334ofp] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cs-progress[b-0mgj334ofp] {
    height: 5px;
    margin-top: 10px;
    border-radius: 3px;
    background: var(--surface-alt);
    overflow: hidden;
}

.cs-progress-fill[b-0mgj334ofp] {
    height: 100%;
    background: var(--primary-ink);
    transition: width 180ms ease;
}

.cs-hint[b-0mgj334ofp],
.cs-status[b-0mgj334ofp] {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--primary-ink);
}

.cs-status[b-0mgj334ofp] {
    margin-top: 8px;
    color: var(--ink);
}

/* Desktop ClinicalCardsPanel: 1 column, 2 from 880 px, 3 from 1500 px (of the panel width). */
.cs[b-0mgj334ofp] {
    container: cs / inline-size;
}

.cs-blocks[b-0mgj334ofp] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    margin: 0 -6px;
}

@container cs (min-width: 880px) {
    .cs-blocks[b-0mgj334ofp] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container cs (min-width: 1500px) {
    .cs-blocks[b-0mgj334ofp] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
/* /Summary/CompositeView.razor.rz.scp.css */
/* Desktop SpanPanel: 12 columns, 20 px column gap, 14 px row gap; under 520 px every part takes the row. */
.cv[b-ednqgay504] {
    container: cv / inline-size;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px 20px;
}

.cv-part[b-ednqgay504] {
    grid-column: span var(--cv-span, 12);
    min-width: 0;
}

@container cv (max-width: 519.98px) {
    .cv-part[b-ednqgay504] {
        grid-column: 1 / -1;
    }
}

.cv-title[b-ednqgay504] {
    margin-bottom: 6px;
    font-size: var(--font-small);
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cv-more[b-ednqgay504] {
    margin: 0;
    font-size: var(--font-small);
    color: var(--muted);
}

.cv-none[b-ednqgay504] {
    margin-bottom: 8px;
}

.cv-open[b-ednqgay504] {
    cursor: pointer;
    border-radius: var(--radius-control);
    outline: none;
}

.cv-open:focus-visible[b-ednqgay504] {
    box-shadow: 0 0 0 2px var(--primary-border);
}

.cv-tiles[b-ednqgay504] {
    display: flex;
    flex-wrap: wrap;
}

/* Desktop SummaryTile / SummaryTileAlert (124 px wide). */
.cv-tile[b-ednqgay504] {
    width: 124px;
    margin: 0 0 8px 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface-alt);
    transition: border-color 150ms ease;
}

.cv-tile:hover[b-ednqgay504] {
    border-color: var(--primary-border);
}

.cv-tile-alert[b-ednqgay504] {
    background: var(--danger-soft);
    border-color: var(--danger-line);
}

.cv-tile-name[b-ednqgay504] {
    font-size: var(--font-small);
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cv-tile-row[b-ednqgay504] {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 3px 0 1px;
}

.cv-tile-value[b-ednqgay504] {
    font-size: var(--font-body);
    font-weight: 600;
    color: var(--ink);
}

.cv-tile-alert .cv-tile-value[b-ednqgay504],
.cv-tile-marker[b-ednqgay504] {
    color: var(--danger);
}

.cv-tile-marker[b-ednqgay504] {
    font-size: var(--font-small);
    font-weight: 600;
}

.cv-tile-date[b-ednqgay504] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* /Summary/FilesPanel.razor.rz.scp.css */
.rp-actions[b-abko6ortcp] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
/* /Summary/FilesQuick.razor.rz.scp.css */
.fq[b-2caaavq3me] {
    display: flex;
    flex-wrap: wrap;
}

/* Desktop SummaryLinkTile. */
.fq-chip[b-2caaavq3me] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px 8px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface-alt);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.fq-chip:hover[b-2caaavq3me] {
    background: var(--primary-soft);
    border-color: var(--primary-border);
}

.fq-chip:focus-visible[b-2caaavq3me] {
    outline: none;
    border-color: var(--primary);
}

.fq-name[b-2caaavq3me] {
    max-width: 180px;
    font-size: var(--font-label);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fq-more[b-2caaavq3me] {
    margin: 0;
    font-size: var(--font-small);
    color: var(--muted);
}
/* /Summary/GroupView.razor.rz.scp.css */
.gv[b-w1hr47lja2] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Desktop: each stacked panel keeps the SummaryCard frame. */
.gv-item[b-w1hr47lja2] {
    padding: 14px 16px;
    border-style: solid;
    border-width: var(--card-border-thickness);
    border-color: var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
}

.gv-title[b-w1hr47lja2] {
    margin-bottom: 8px;
    font-size: var(--font-body);
    font-weight: 600;
    color: var(--ink);
}
/* /Summary/MedicationsPanel.razor.rz.scp.css */
.rp-actions[b-n1xv9c08uw],
.rp-chips[b-n1xv9c08uw] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.rp-note[b-n1xv9c08uw] {
    margin: 0 2px 4px 0;
    font-size: var(--font-small);
    color: var(--muted);
}

/* Desktop: frequent-drug chip (PrimarySoft, LineStrong border, chip radius, hover = Hover). */
.rp-drug[b-n1xv9c08uw] {
    min-height: var(--control-height-small);
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-chip);
    background: var(--primary-soft);
    color: var(--primary-ink);
    font: inherit;
    font-size: var(--font-label);
    cursor: pointer;
    transition: background-color 150ms ease;
}

.rp-drug:hover[b-n1xv9c08uw] {
    background: var(--hover);
}

.rp-drug:focus-visible[b-n1xv9c08uw] {
    outline: 2px solid var(--primary-border);
}
/* /Summary/SummaryBoard.razor.rz.scp.css */
/* Desktop SummaryBoard: bar card (padding 12,8, margin 6,0,6,12), then the cards with the grid gap; two half cards per row
   from 720 px (Application SummaryFlow.TwoColumnWidth), else one per row. */
.sb[b-y0nc1qtskz] {
    margin-top: 6px;
}

.sb-bar[b-y0nc1qtskz] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 6px 12px;
    padding: 8px 12px;
}

.sb-bar-start[b-y0nc1qtskz],
.sb-bar-end[b-y0nc1qtskz] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sb-bar-end[b-y0nc1qtskz] {
    margin-inline-start: auto;
}

.sb-template[b-y0nc1qtskz] {
    width: 260px;
    max-width: 100%;
}

.sb-square[b-y0nc1qtskz] {
    width: 34px;
    height: 34px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

.sb-status[b-y0nc1qtskz] {
    flex: 1 1 160px;
    min-width: 0;
    font-size: var(--font-small);
    color: var(--muted);
}

/* Desktop SummaryChip with the reset button. */
.sb-chip[b-y0nc1qtskz] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: 4px;
    padding: 1px 2px 1px 10px;
    border-radius: var(--radius-chip);
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-size: var(--font-small);
}

.sb-chip-x[b-y0nc1qtskz] {
    width: 24px;
    height: 24px;
}

.sb-cards[b-y0nc1qtskz] {
    container: sb / inline-size;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
    margin: 0 6px;
}

.sb-drop-line[b-y0nc1qtskz] {
    position: absolute;
    z-index: 20;
    border-radius: 1.5px;
    background: var(--primary);
    pointer-events: none;
}

.sb-more[b-y0nc1qtskz] {
    font-size: var(--font-small);
    color: var(--muted);
}

.sb-empty[b-y0nc1qtskz] {
    margin: 8px 12px;
}

/* Shared by the bar and the cards: desktop SummaryTool (26 px, transparent, hover PrimarySoft, disabled 35 %). */
.sb[b-y0nc1qtskz]  .sb-tool {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    margin: 0;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background-color 150ms ease, opacity 140ms ease;
}

.sb[b-y0nc1qtskz]  .sb-tool:hover:not(:disabled) {
    background: var(--primary-soft);
}

.sb[b-y0nc1qtskz]  .sb-tool:focus-visible {
    outline: none;
    border-color: var(--primary-border);
}

.sb[b-y0nc1qtskz]  .sb-tool:disabled {
    cursor: default;
    opacity: 0.35;
}
/* /Summary/SummaryCardView.razor.rz.scp.css */
/* Desktop SummaryCard (Surface, Line, card radius, padding 16,14; hover LineStrong) and SummaryCardLifted (Primary border, 0.9). */
.sb-card[b-f9v30popdi] {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 14px 16px;
    border-style: solid;
    border-width: var(--card-border-thickness);
    border-color: var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    overflow: hidden;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
    animation: sb-card-in-b-f9v30popdi 160ms ease-out;
}

@container sb (min-width: 720px) {
    .sb-half[b-f9v30popdi] {
        grid-column: auto;
    }
}

.sb-card:hover[b-f9v30popdi] {
    border-color: var(--line-strong);
}

.sb-card:focus-visible[b-f9v30popdi] {
    border-color: var(--primary-border);
    box-shadow: 0 0 0 2px var(--primary-soft);
}

.sb-lifted[b-f9v30popdi],
.sb-lifted:hover[b-f9v30popdi] {
    position: relative;
    z-index: 10;
    border-color: var(--primary);
    opacity: 0.9;
    box-shadow: var(--shadow-popup);
    transition: none;
}

@keyframes sb-card-in-b-f9v30popdi {
    from {
        opacity: 0;
    }
}

/* Header: grip | icon + title | «موقت» | level pill | open | remove. */
.sb-head[b-f9v30popdi] {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 26px;
    touch-action: none;
}

.sb-arrange .sb-head[b-f9v30popdi] {
    cursor: default;
}

.sb-title-row[b-f9v30popdi] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    user-select: none;
}

.sb-title[b-f9v30popdi] {
    font-size: var(--font-body);
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-temp[b-f9v30popdi] {
    margin-inline-start: 8px;
}

.sb-more[b-f9v30popdi] {
    font-size: var(--font-small);
    color: var(--muted);
}

/* Desktop SummaryGrip: 18 × 26, six 3 px dots, hover PrimarySoft, move cursor. */
.sb-grip[b-f9v30popdi] {
    display: grid;
    grid-template-columns: repeat(2, 3px);
    grid-auto-rows: 3px;
    gap: 3px;
    place-content: center;
    flex: none;
    width: 18px;
    height: 26px;
    margin-inline: -8px 4px;
    border-radius: var(--radius-chip);
    cursor: move;
    transition: background-color 150ms ease, opacity 140ms ease;
}

.sb-grip:hover[b-f9v30popdi] {
    background: var(--primary-soft);
}

.sb-grip-dot[b-f9v30popdi] {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--muted);
}

/* Desktop SummaryLevelBar + SummaryLevelPip. */
.sb-levelbar[b-f9v30popdi] {
    display: flex;
    align-items: center;
    height: 26px;
    margin-inline: 6px 2px;
    border-radius: 13px;
    background: var(--surface-alt);
}

.sb-pips[b-f9v30popdi] {
    display: flex;
    align-items: center;
    opacity: 0.55;
    transition: opacity 140ms ease;
}

.sb-pip[b-f9v30popdi] {
    display: grid;
    place-items: center;
    width: 12px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.sb-pip-current[b-f9v30popdi] {
    width: 20px;
}

.sb-pip-dot[b-f9v30popdi] {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--line-strong);
    transition: width 140ms ease, background-color 140ms ease;
}

.sb-pip:hover .sb-pip-dot[b-f9v30popdi] {
    background: var(--primary-border);
}

.sb-pip-current .sb-pip-dot[b-f9v30popdi],
.sb-pip-current:hover .sb-pip-dot[b-f9v30popdi] {
    width: 14px;
    background: var(--primary);
}

.sb-pip:focus-visible[b-f9v30popdi] {
    outline: none;
}

.sb-pip:focus-visible .sb-pip-dot[b-f9v30popdi] {
    background: var(--primary-ink);
}

/* The tools fade in on hover or keyboard focus; the pips stay readable (dimmed) so the size shows without hovering. */
.sb-fade[b-f9v30popdi] {
    opacity: 0;
    transition: opacity 140ms ease;
}

.sb-card:hover .sb-fade[b-f9v30popdi],
.sb-card:focus-within .sb-fade[b-f9v30popdi],
.sb-lifted .sb-fade[b-f9v30popdi] {
    opacity: 1;
}

.sb-card:hover .sb-fade:disabled[b-f9v30popdi],
.sb-card:focus-within .sb-fade:disabled[b-f9v30popdi] {
    opacity: 0.35;
}

.sb-card:hover .sb-pips[b-f9v30popdi],
.sb-card:focus-within .sb-pips[b-f9v30popdi],
.sb-lifted .sb-pips[b-f9v30popdi] {
    opacity: 1;
}

@media (hover: none) {
    .sb-fade[b-f9v30popdi],
    .sb-pips[b-f9v30popdi] {
        opacity: 1;
    }
}

/* Body: replaced on a level change with a short slide + fade (desktop 200 ms). */
.sb-body[b-f9v30popdi] {
    margin-top: 10px;
    animation: sb-body-in-b-f9v30popdi 200ms cubic-bezier(0.33, 1, 0.68, 1);
}

@keyframes sb-body-in-b-f9v30popdi {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sb-card[b-f9v30popdi],
    .sb-body[b-f9v30popdi] {
        animation: none;
    }
}

.sb-body[b-f9v30popdi]  .sb-quick {
    cursor: pointer;
}

.sb-body[b-f9v30popdi]  .sb-later {
    margin: 8px 0 0;
}
/* /Summary/SummaryDetailDialog.razor.rz.scp.css */
/* Desktop detail window: 980 × 720 (min 640 × 420), title in the card-title size, the Full view scrolls. */
.sdd[b-p79tqgaihv] {
    display: flex;
    flex-direction: column;
    /* V3-1: the desktop window is a fixed 980 x 720, so a short panel still gets the tall window (720 minus title and buttons). */
    min-height: min(600px, calc(100vh - 120px));
    max-height: calc(100vh - 120px);
}

.sdd-title[b-p79tqgaihv] {
    margin-bottom: 8px;
    font-size: var(--font-card-title);
    font-weight: 600;
    color: var(--ink);
}

.sdd-body[b-p79tqgaihv] {
    flex: 1;
    min-height: 0;
    margin-bottom: var(--space-m);
    overflow-y: auto;
}
/* /Summary/SummaryGallery.razor.rz.scp.css */
/* Desktop SummaryGallery: a Card (padding 14) 300–520 px wide, list up to 440 px high. */
.sg[b-tol2ba1msf] {
    width: min(520px, calc(100vw - 48px));
    margin-top: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-popup);
}

.sg-search[b-tol2ba1msf] {
    width: 100%;
}

.sg-note[b-tol2ba1msf] {
    margin: 2px 0 4px;
    font-size: var(--font-small);
    color: var(--muted);
}

.sg-list[b-tol2ba1msf] {
    max-height: 440px;
    margin-top: 10px;
    overflow-y: auto;
}

.sg-heading[b-tol2ba1msf] {
    margin: 10px 0 2px;
    font-size: var(--font-body);
    font-weight: 600;
    color: var(--ink);
}

.sg-tile[b-tol2ba1msf] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 3px 0;
    padding: 8px 12px;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.sg-tile:hover[b-tol2ba1msf] {
    background: var(--primary-soft);
}

.sg-tile:focus-visible[b-tol2ba1msf] {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-soft);
}

.sg-tile:active[b-tol2ba1msf] {
    cursor: grabbing;
}

.sg-texts[b-tol2ba1msf] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sg-title[b-tol2ba1msf] {
    font-size: var(--font-body);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sg-summary[b-tol2ba1msf] {
    font-size: var(--font-small);
    color: var(--muted);
}

/* Desktop SummaryChip. */
.sg-chip[b-tol2ba1msf] {
    padding: 1px 9px;
    border-radius: var(--radius-chip);
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-size: var(--font-small);
    white-space: nowrap;
}
/* /Summary/SummaryLibraryDialog.razor.rz.scp.css */
.sld[b-tp1bcvyio4] {
    display: flex;
    flex-direction: column;
    min-height: min(420px, calc(100vh - 120px));
}

.sld-tabs[b-tp1bcvyio4] {
    margin-top: 0;
}

.sld-more[b-tp1bcvyio4] {
    margin: 0;
    font-size: var(--font-small);
    color: var(--muted);
}

.sld-hint[b-tp1bcvyio4] {
    margin: 4px 0 12px;
}

.sld-list[b-tp1bcvyio4] {
    max-height: 460px;
    overflow-y: auto;
}

.sld-muted[b-tp1bcvyio4] {
    margin: 8px 0;
}

/* Desktop: each template is a SummaryCard tile (padding 12). */
.sld-tile[b-tp1bcvyio4] {
    margin-bottom: 8px;
    padding: 12px;
    border-style: solid;
    border-width: var(--card-border-thickness);
    border-color: var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    transition: border-color 150ms ease;
}

.sld-tile:hover[b-tp1bcvyio4] {
    border-color: var(--line-strong);
}

.sld-name[b-tp1bcvyio4] {
    font-size: var(--font-body);
    color: var(--ink);
}

.sld-by[b-tp1bcvyio4] {
    margin: 2px 0 6px;
}

.sld-lines[b-tp1bcvyio4] {
    font-size: var(--font-small);
    color: var(--muted);
    white-space: pre-line;
}

.sld-action[b-tp1bcvyio4] {
    margin-top: 10px;
}

.sld-buttons[b-tp1bcvyio4] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.sld-search[b-tp1bcvyio4] {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.sld-search .input[b-tp1bcvyio4] {
    flex: 1;
    min-width: 220px;
}

.sld-heading[b-tp1bcvyio4] {
    margin: 12px 0 6px;
    font-size: var(--font-body);
    color: var(--ink);
}

.sld-publish[b-tp1bcvyio4] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0;
}

.sld-publish-name[b-tp1bcvyio4] {
    flex: 1;
    min-width: 0;
    font-size: var(--font-small);
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sld-notice[b-tp1bcvyio4] {
    min-height: 20px;
    margin: 8px 0 12px;
}

.sld-close[b-tp1bcvyio4] {
    min-width: 100px;
}
/* /Summary/SummaryPublishDialog.razor.rz.scp.css */
.spd-title[b-1g19wg8e05] {
    margin: 0;
    font-size: var(--font-body);
    color: var(--ink);
}

.spd-what[b-1g19wg8e05] {
    margin: 8px 0 6px;
    font-size: var(--font-small);
    color: var(--muted);
}

.spd-warning[b-1g19wg8e05] {
    margin: 0 0 4px;
    color: var(--danger);
}

.spd-check[b-1g19wg8e05] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    line-height: normal;
    color: var(--ink);
    cursor: pointer;
}

.spd-button[b-1g19wg8e05] {
    min-width: 100px;
}
/* /Summary/SummaryTemplateNameDialog.razor.rz.scp.css */
.snd-label[b-4o8njwoh1t] {
    display: block;
    margin: 0 0 6px;
    line-height: normal;
    font-size: var(--font-small);
    color: var(--muted);
}

.snd-name[b-4o8njwoh1t] {
    width: 100%;
}

.snd-check[b-4o8njwoh1t] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    line-height: normal;
    color: var(--ink);
    cursor: pointer;
}

.snd-message[b-4o8njwoh1t] {
    min-height: 20px;
    margin: 8px 0 16px;
    font-size: var(--font-small);
    color: var(--danger);
}

.snd-save[b-4o8njwoh1t] {
    min-width: 120px;
}
/* /Summary/SummaryTextView.razor.rz.scp.css */
/* Desktop SummaryKit: SummaryHeadline / SummaryLabel / SummaryValue / SummaryMore / SummaryToneDot. */
.stv-headline[b-yhgj8c2bqq] {
    margin: 0 0 6px;
    font-size: var(--font-body);
    color: var(--ink);
    overflow-wrap: anywhere;
}

.stv-lines[b-yhgj8c2bqq] {
    display: grid;
    /* WHY: the label column may take at most 35 % so a long label cannot squeeze the value (desktop LabelShare). */
    grid-template-columns: minmax(40px, max-content) minmax(0, 1fr);
    grid-template-columns: fit-content(35%) minmax(0, 1fr);
    column-gap: 12px;
}

.stv-label[b-yhgj8c2bqq] {
    padding: 3px 0;
    font-size: var(--font-small);
    color: var(--muted);
    overflow-wrap: anywhere;
}

.stv-value[b-yhgj8c2bqq] {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 3px 0;
    min-width: 0;
}

.stv-text[b-yhgj8c2bqq] {
    font-size: var(--font-label);
    color: var(--ink);
    overflow-wrap: anywhere;
    min-width: 0;
}

.stv-brief .stv-text[b-yhgj8c2bqq] {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stv-muted .stv-text[b-yhgj8c2bqq] {
    color: var(--muted);
}

.stv-dot[b-yhgj8c2bqq] {
    flex: none;
    width: 6px;
    height: 6px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--muted);
}

.stv-ok .stv-dot[b-yhgj8c2bqq] {
    background: var(--ok);
}

.stv-warn .stv-dot[b-yhgj8c2bqq] {
    background: var(--warn);
}

.stv-danger .stv-dot[b-yhgj8c2bqq] {
    background: var(--danger);
}

/* WHY: a danger value (e.g. an allergy) must stand out from the other lines, not only by its dot. */
.stv-danger .stv-text[b-yhgj8c2bqq] {
    padding: 0 8px;
    border-radius: var(--radius-chip);
    background: var(--danger-soft);
}

.stv-more[b-yhgj8c2bqq] {
    margin: 0;
    font-size: var(--font-small);
    color: var(--muted);
}

.stv-count[b-yhgj8c2bqq] {
    margin-top: 6px;
}
