/* Portal frame — components from docs/workscope-ui-konzept.html.
   Class names deliberately as in the template, so that a comparison stays
   possible. Colors, radii and spacings come from tokens.css. */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ===== Basic structure ===== */
.screen {
    display: grid;
    grid-template-columns: minmax(13rem, 226px) minmax(0, 1fr);
    min-height: 100vh;
}

.side {
    background: var(--surface);
    border-right: 1px solid var(--stroke);
    display: flex;
    flex-direction: column;
    padding: 16px 12px 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 8px 18px;
}

.brand .logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #7DB2C1, #116799);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex: none;
}

.brand b {
    font-size: 14px;
    color: var(--ink);
    display: block;
    line-height: 1.2;
}

.brand span {
    font-size: 11.5px;
    color: var(--ink-3);
}

/* ===== Department selection — at the very top, before everything else ===== */
.scopebox {
    margin-bottom: 6px;
}

.scopelab {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--ink-3);
    padding: 0 10px 5px;
}

.scopebtn {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    text-align: left;
    padding: 9px 11px;
    border: 1.5px solid transparent;
    background: var(--brand-soft);
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    color: var(--ink);
}

.scopebtn:hover {
    border-color: var(--accent);
}

.scopebtn .scdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    flex: none;
}

.scopebtn .scdot.off {
    background: var(--ink-3);
}

.scopebtn b {
    font-size: 13.5px;
    color: var(--brand);
    display: block;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scopebtn span.scsub {
    font-size: 10.5px;
    color: var(--ink-2);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scopelist {
    margin-top: 4px;
    border: 1px solid var(--stroke);
    border-radius: var(--r-ctrl);
    background: var(--surface);
    box-shadow: var(--sh);
    overflow: hidden;
}

.scopelist button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 8px 11px;
    font: 600 12.5px var(--font);
    color: var(--ink-2);
    cursor: pointer;
}

.scopelist button:hover {
    background: var(--fill);
}

.scopelist button.on {
    color: var(--brand);
    background: var(--brand-soft);
}

/* ===== Navigation ===== */
.nav {
    display: flex;
    flex-direction: column;
}

.grp2 {
    padding: 16px 11px 6px;
}

.grp2 .gt {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--ink-3);
    display: block;
}

.grp2 .gs {
    font-size: 11px;
    color: var(--ink-3);
    display: block;
    margin-top: 2px;
    line-height: 1.35;
}

.grp2 .gt {
    color: var(--ink-2);
}

/* The line on the left ties the group together — as in the template. */
.ngroup {
    border-left: 2px solid var(--stroke);
    margin-left: 13px;
    padding-left: 5px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ngroup a {
    font-size: 13px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
    text-decoration: none;
    cursor: pointer;
}

.nav a svg {
    width: 17px;
    height: 17px;
    flex: none;
}

.nav a:hover {
    background: var(--fill);
}

.nav a.on {
    background: var(--brand-soft);
    color: var(--brand);
}

.nav a .badge {
    margin-left: auto;
    background: var(--amber-soft);
    color: var(--amber);
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 7px;
}

.sidefoot {
    margin-top: auto;
    border-top: 1px solid var(--stroke);
    padding: 11px 11px 2px;
    font-size: 11.5px;
    color: var(--ink-3);
    line-height: 1.6;
}

.sidefoot .ok {
    color: var(--green);
    font-weight: 600;
}

.sidefoot .warn {
    color: var(--amber);
    font-weight: 600;
}

/* The build number sits below the run times and stays quieter than they are — it is
   looked up, not read along. */
.sidefoot .ver {
    margin-top: 4px;
    padding-bottom: 4px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    opacity: .72;
}

/* ===== Toolbar ===== */
.main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px 14px;
    flex: none;
    border-bottom: 1px solid var(--stroke);
    background: var(--surface);
    flex-wrap: wrap;
}

/* Only the page title stands in the primary color, every other heading in the text color
   (carelogic style guide, 2026-10-22). */
.title h1 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--brand);
    margin: 0;
}

.title .sub {
    font-size: 12.5px;
    color: var(--ink-2);
    margin-top: 2px;
}

.spacer {
    flex: 1;
}

.zdiv {
    width: 1px;
    height: 24px;
    background: var(--stroke-2);
    flex: none;
    margin: 0 3px;
}

.icobtn {
    width: 36px;
    height: 36px;
    border-radius: var(--r-ctrl);
    background: var(--surface);
    border: 1px solid var(--stroke);
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--ink-2);
    flex: none;
}

.icobtn:hover {
    background: var(--fill);
}

.icobtn svg {
    width: 16px;
    height: 16px;
}

/* Initials of the user, as .cl-av in the carelogic style guide. The gradient
   is the guide's deliberate exception to "no gradients". */
.prof {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3BAAEA, #0D6599);
    color: #fff;
    font: 700 11.5px var(--font);
    letter-spacing: .02em;
    display: grid;
    place-items: center;
    flex: none;
    cursor: pointer;
    border: 0;
}

.content {
    flex: 1;
    padding: 20px 22px 40px;
    min-width: 0;
}

/* ===== Buttons ===== */
.btn {
    border: 0;
    border-radius: var(--r-ctrl);
    padding: 0 15px;
    height: 36px;
    font: 600 13.5px var(--font);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
    white-space: nowrap;
}

.btn.primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 2px 8px rgba(13, 101, 153, .28);
}

.btn.primary:hover {
    background: var(--brand-pressed);
}

.btn.primary:disabled {
    background: var(--stroke-2);
    box-shadow: none;
    cursor: default;
    color: #fff;
}

.btn.ghost {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--stroke);
}

.btn.ghost:hover {
    background: var(--fill);
}

.btn.ghost:disabled {
    color: var(--ink-3);
    cursor: default;
}

.btn.danger {
    background: transparent;
    color: var(--red);
    border: 1px solid var(--red-soft);
}

.btn.sm {
    height: 30px;
    padding: 0 11px;
    font-size: 12.5px;
}

/* ===== Cards and sections ===== */
.card {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--r-card);
    box-shadow: var(--sh);
    margin-bottom: 14px;
}

.card-h {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 10px;
}

.card-h h2 {
    font-size: 14.5px;
    font-weight: 700;
    flex: 1;
    color: var(--ink);
    margin: 0;
}

.card-h .note {
    font-size: 12px;
    color: var(--ink-3);
    font-weight: 500;
}

.card-b {
    padding: 2px 16px 16px;
}

/* Card without its own header — content directly, with the same inner area. */
.card.pad {
    padding: 14px 16px 16px;
}

.card.pad > h2 {
    font-size: 14.5px;
    font-weight: 700;
    margin: 0 0 8px;
}

.hint {
    font-size: 12.5px;
    color: var(--ink-2);
    line-height: 1.55;
}

.button-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.form-field {
    display: block;
    margin-bottom: 14px;
    max-width: 26rem;
}

.form-field > span {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
    margin: 0 0 5px 2px;
    display: block;
}

.ic {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    flex: none;
}

.ic svg {
    width: 15px;
    height: 15px;
}

.ic.am {
    background: var(--amber-soft);
    color: var(--amber);
}

.ic.gr {
    background: var(--green-soft);
    color: var(--green);
}

.ic.rd {
    background: var(--red-soft);
    color: var(--red);
}

.sec {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .85px;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 24px 0 10px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.sec:first-child {
    margin-top: 0;
}

.sec .ln {
    flex: 1;
    height: 1px;
    background: var(--stroke);
}

/* ===== Phosphor-Duotone-Icons (14.08.2026) — Größe kommt vom Umfeld, Farbe über
   currentColor; die 20-%-Ebene der Duotone-Pfade bringt die zweite Tönung mit. */
.ph {
    width: 16px;
    height: 16px;
    flex: none;
    display: inline-block;
    vertical-align: -3px;
}

.sec .ph {
    width: 14px;
    height: 14px;
    color: var(--brand);
}

.ic .ph {
    width: 17px;
    height: 17px;
}

.kpi .l .ph {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    color: var(--brand);
}

/* ===== Alterspyramide: Eimer als anklickbare Zeilen (Prototyp, 14.08.2026) */
.pyrow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 9px;
    margin: 0 -9px 3px;
    border-radius: 9px;
    cursor: pointer;
    border: 1.5px solid transparent;
    background: none;
    width: calc(100% + 18px);
    text-align: left;
    font: inherit;
    color: inherit;
}

.pyrow:hover {
    background: var(--fill);
}

.pyrow[aria-pressed="true"] {
    background: var(--brand-soft);
    border-color: var(--brand);
}

.pyrow:disabled {
    cursor: default;
    opacity: .55;
}

.pyrow:disabled:hover {
    background: transparent;
}

.pyrow .pyl {
    width: 132px;
    font-size: 12.5px;
    color: var(--ink-2);
    flex: none;
}

.pyrow .pybar {
    flex: 1;
    height: 14px;
    background: var(--fill-2);
    border-radius: 5px;
    overflow: hidden;
}

.pyrow .pybar i {
    display: block;
    height: 100%;
}

.pyrow .pyn {
    width: 34px;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    flex: none;
}

.pyrow .pych {
    width: 14px;
    text-align: center;
    font-size: 11px;
    color: var(--ink-3);
    flex: none;
}

@media (max-width: 768px) {
    .pyrow .pyl {
        width: 96px;
        font-size: 11.5px;
    }
}

/* ===== Pills, badges, chips, segments ===== */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    flex: none;
    white-space: nowrap;
}

.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.purple { background: var(--purple-soft); color: var(--purple); }
.pill.grey { background: var(--fill-2); color: var(--ink-2); }

.pill .d {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.mk {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
    margin: 0 3px 2px 0;
    white-space: nowrap;
}

.mk.red { background: var(--red-soft); color: var(--red); }
.mk.amber { background: var(--amber-soft); color: var(--amber); }
.mk.green { background: var(--green-soft); color: var(--green); }
.mk.blue { background: var(--blue-soft); color: var(--blue); }
.mk.grey { background: var(--fill-2); color: var(--ink-2); }
.mk.purple { background: var(--purple-soft); color: var(--purple); }

.chip {
    border: 1px solid var(--stroke);
    background: var(--surface);
    border-radius: 999px;
    padding: 6px 13px;
    font: 600 12.5px var(--font);
    color: var(--ink-2);
    cursor: pointer;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
    flex: none;
}

.chip:hover {
    background: var(--fill);
}

.chip.on,
.chip[aria-pressed="true"] {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.chip .n {
    background: var(--fill-2);
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 11px;
}

.chip.on .n,
.chip[aria-pressed="true"] .n {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.seg {
    display: inline-flex;
    background: var(--fill-2);
    border-radius: 10px;
    padding: 3px;
    flex: none;
}

.seg button {
    border: 0;
    background: transparent;
    font: 600 12.5px var(--font);
    color: var(--ink-2);
    padding: 6px 13px;
    border-radius: 8px;
    cursor: pointer;
}

.seg button.on,
.seg button[aria-pressed="true"] {
    background: var(--surface);
    color: var(--brand);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

/* ===== Auswahlleiste über einem Bildschirm (Zeitfenster auf „Lage") =====
   Stand in der Vorlage, war aber nie in dieses Stylesheet übernommen — die Leiste hatte
   damit gar keine Auszeichnung und klebte am folgenden Block. */
.fassungbar {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
    margin: 0 0 20px;
}

.fassunglab {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .85px;
    text-transform: uppercase;
    color: var(--ink-3);
}

.fassunghint {
    font-size: 11.5px;
    color: var(--ink-3);
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    .fassungbar {
        gap: 9px;
    }

    /* Der Hinweis bricht auf eine eigene Zeile, statt die Knöpfe zu quetschen. */
    .fassunghint {
        flex-basis: 100%;
        min-width: 0;
    }
}

/* ===== Metric tiles ===== */
.kpis {
    display: grid;
    gap: 12px;
}

.kpis.c4 { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.kpis.c3 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.kpis.c2 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

.kpi {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--r-tile);
    padding: 13px 15px 12px;
    box-shadow: var(--sh);
    display: flex;
    flex-direction: column;
}

.kpi .l {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--ink-3);
}

.kpi .v {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--ink);
    margin-top: 5px;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.kpi .v small {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
}

.kpi .s {
    font-size: 12px;
    color: var(--ink-2);
    margin-top: 4px;
    line-height: 1.45;
}

.kpi.warn { border-color: #F0D6AC; }
.kpi.warn .v { color: var(--amber); }
.kpi.bad .v { color: var(--red); }
.kpi.good .v { color: var(--green); }

/* ===== Expandable evidence in tiles ===== */
.dd {
    margin-top: 11px;
    border-top: 1px solid var(--stroke);
    padding-top: 9px;
}

.dd > summary {
    list-style: none;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand);
    display: flex;
    align-items: center;
    gap: 7px;
    user-select: none;
}

.dd > summary::-webkit-details-marker {
    display: none;
}

.dd > summary::before {
    content: '▸';
    font-size: 11px;
    transition: transform .15s;
    display: inline-block;
}

.dd[open] > summary::before {
    transform: rotate(90deg);
}

.dd > summary:hover {
    color: var(--brand-pressed);
}

.dd-b {
    margin-top: 9px;
    border: 1px solid var(--stroke);
    border-radius: 11px;
    overflow: hidden;
    background: var(--bg);
}

.dd-b .cap {
    font-size: 11.5px;
    color: var(--ink-2);
    padding: 9px 12px;
    background: var(--fill);
    border-bottom: 1px solid var(--stroke);
    line-height: 1.5;
}

/* ===== Tables ===== */
.tblwrap {
    overflow-x: auto;
    border: 1px solid var(--stroke);
    border-radius: 11px;
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
    background: var(--surface);
}

.tbl th {
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--ink-3);
    padding: 9px 11px;
    border-bottom: 1px solid var(--stroke);
    white-space: nowrap;
    background: var(--surface);
}

.tbl td {
    padding: 9px 11px;
    border-bottom: 1px solid var(--stroke);
    color: var(--ink);
    vertical-align: middle;
}

.tbl tbody tr:hover {
    background: var(--fill);
}

.tbl tbody tr:last-child td {
    border-bottom: 0;
}

.tbl .num {
    text-align: right;
    white-space: nowrap;
}

.tbl .mut {
    color: var(--ink-2);
}

.tbl tfoot td {
    font-weight: 700;
    border-bottom: 0;
    border-top: 1.5px solid var(--stroke-2);
    background: var(--fill);
}

.tid {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-3);
}

/* ===== Notice banners ===== */
.banner {
    display: flex;
    gap: 11px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.55;
    align-items: flex-start;
    margin-bottom: 14px;
}

.banner.amber { background: var(--amber-soft); color: #7a4c0d; }
.banner.green { background: var(--green-soft); color: #0b5c41; }
.banner.red { background: var(--red-soft); color: #8f2723; }
.banner.blue { background: var(--blue-soft); color: #0b4d73; }

.banner b {
    display: block;
    margin-bottom: 2px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="hell"]) .banner.amber { color: #F0A23E; }
    :root:not([data-theme="hell"]) .banner.green { color: #2BB585; }
    :root:not([data-theme="hell"]) .banner.red { color: #F0605B; }
    :root:not([data-theme="hell"]) .banner.blue { color: #3BAAEA; }
}

:root[data-theme="dunkel"] .banner.amber { color: #F0A23E; }
:root[data-theme="dunkel"] .banner.green { color: #2BB585; }
:root[data-theme="dunkel"] .banner.red { color: #F0605B; }
:root[data-theme="dunkel"] .banner.blue { color: #3BAAEA; }

/* ===== User tile with drop-down menu =====
   Values from .cl-usermenu in the carelogic style guide
   (web/carelogic-controls.css): header, separators, entries, the theme as a
   segmented control and the sign-out in red. */
.profwrap {
    position: relative;
    flex: none;
}

.profmenu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 120;
    min-width: 260px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--r-card);
    box-shadow: var(--sh-pop, 0 12px 24px rgba(15, 25, 35, .16), 0 34px 80px rgba(15, 25, 35, .24));
    padding: 6px;
}

.profmenu .header {
    padding: 8px 10px 6px;
    line-height: 1.35;
}

.profmenu .header b {
    display: block;
    font: 700 13px var(--font);
    color: var(--ink);
}

.profmenu .header span {
    display: block;
    font: 400 11.5px var(--font);
    color: var(--ink-3);
}

.profmenu .entry {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    text-decoration: none;
    border: 0;
    background: transparent;
    border-radius: 8px;
    padding: 8px 10px;
    font: 600 13px var(--font);
    color: var(--ink-2);
    cursor: pointer;
}

.profmenu .entry:hover {
    background: var(--fill);
}

.profmenu .entry.danger-link {
    color: var(--red);
}

.profmenu .entry svg {
    width: 18px;
    height: 18px;
    flex: none;
    opacity: .8;
}

.profmenu .divider {
    height: 1px;
    background: var(--stroke);
    margin: 5px 4px;
}

.profmenu .theme {
    padding: 6px 10px 8px;
}

.profmenu .theme > span:first-of-type {
    display: block;
    margin-bottom: 6px;
    font: 700 10.5px var(--font);
    color: var(--ink-3);
    letter-spacing: .9px;
    text-transform: uppercase;
}

.profmenu .theme .seg {
    display: flex;
}

.profmenu .theme .seg button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 7px;
    font: 600 12px var(--font);
}

.profmenu .theme .seg button svg {
    width: 14px;
    height: 14px;
    flex: none;
}

/* ===== Empty state ===== */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 34px 16px 30px;
    gap: 3px;
}

.empty .eic {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--fill);
    color: var(--ink-3);
    display: grid;
    place-items: center;
    margin-bottom: 12px;
}

.empty .eic svg {
    width: 26px;
    height: 26px;
}

.empty b {
    font-size: 14.5px;
    color: var(--ink);
}

.empty span {
    font-size: 12.5px;
    color: var(--ink-2);
    line-height: 1.55;
    max-width: 330px;
    margin-top: 3px;
}

.empty .acts {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

/* ===== Form fields ===== */
.flabel {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
    margin: 0 0 5px 2px;
    display: block;
}

.fhelp {
    font-size: 11.5px;
    color: var(--ink-3);
    margin: 5px 0 0 2px;
    line-height: 1.5;
}

.fgroup {
    margin-bottom: 17px;
}

.grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 14px;
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 14px;
}

/* All input fields — deliberately via the exclusion, because a Blazor field
   without an explicit type renders no type attribute at all and a selector on
   input[type=text] would then not catch it. */
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]),
select,
textarea {
    width: 100%;
    max-width: 100%;
    background: var(--fill);
    border: 1.5px solid transparent;
    border-radius: var(--r-ctrl);
    padding: 8px 12px;
    font: 14px var(--font);
    color: var(--ink);
    transition: .14s;
}

input:not([type=checkbox]):not([type=radio]):focus,
select:focus,
textarea:focus {
    outline: 0;
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

input::placeholder,
textarea::placeholder {
    color: var(--ink-3);
}

input:disabled,
select:disabled,
textarea:disabled {
    color: var(--ink-3);
    cursor: default;
}

/* Select field with its own arrow, otherwise it stays system grey. */
select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
        linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
    background-position: calc(100% - 15px) calc(50% + 1px), calc(100% - 10px) calc(50% + 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 30px;
}

/* Checkbox: brand color instead of system blue, larger hit area. */
input[type=checkbox],
input[type=radio] {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
    cursor: pointer;
    flex: none;
}

/* In tables and toolbars, fields should not take the full width. */
.tbl input,
.tbl select,
.toolbar select {
    width: auto;
    min-width: 6rem;
    padding: 6px 10px;
    font-size: 12.5px;
}

.toolbar select {
    padding-right: 28px;
}

/* ===== Progress and switches ===== */
.prog {
    height: 7px;
    border-radius: 999px;
    background: var(--fill-2);
    overflow: hidden;
}

.prog i {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
    /* Der Balken des initialen Abgleichs wächst in Schritten; ohne Übergang springt er. */
    transition: width .3s ease;
}

/* Abgeschlossen — grün statt Betonfarbe, damit „fertig" auf einen Blick von „läuft" zu
   unterscheiden ist. */
.prog i.ok {
    background: var(--green);
}

.prog i.am {
    background: var(--amber);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    flex: none;
    display: grid;
    place-items: center;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7DB2C1, #116799);
}

/* ===== Sign-in / wizard (own frame) ===== */
.signin-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--bg);
    padding: 20px;
}

.signin-card {
    width: min(24rem, 94vw);
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--r-card);
    box-shadow: var(--sh);
    padding: 26px;
}

.error-text {
    color: var(--red);
    font-size: 12.5px;
    line-height: 1.5;
}

/* ===== Time grid ===== */
.time-grid .grid-header {
    display: flex;
    gap: .4rem;
    margin-bottom: .6rem;
}

.time-grid td.cell {
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    cursor: pointer;
    min-width: 1.7rem;
}

.time-grid td.cell.booked { background: var(--green-soft); }

.time-grid td.cell.gap {
    background: repeating-linear-gradient(45deg, var(--amber-soft), var(--amber-soft) 3px, transparent 3px, transparent 6px);
}

.time-grid td.cell.absent { background: var(--blue-soft); }

.time-grid td.cell.weekend,
.time-grid td.cell.closure {
    background: var(--fill);
    color: var(--ink-3);
}

.time-grid .cell-detail {
    margin-top: .75rem;
    border: 1px solid var(--stroke);
    border-radius: var(--r-ctrl);
    padding: .75rem .9rem;
    background: var(--surface);
}

.time-grid .badge.late-entry {
    background: var(--purple-soft);
    color: var(--purple);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    padding: .05rem .45rem;
    margin-left: .35rem;
}

/* ===== Sync indicator in the toolbar ===== */
.sync {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--ink-2);
    background: var(--fill);
    border-radius: 999px;
    padding: 6px 12px;
    flex: none;
    white-space: nowrap;
}

.sync .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex: none;
}

.sync.warn .dot {
    background: var(--amber);
}

.sync.busy {
    color: var(--accent);
    background: var(--accent-soft);
}

.sync.busy .dot {
    background: var(--accent);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 900ms linear infinite;
}

/* ===== Trend bars in tiles ===== */
.spark {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 26px;
    margin-top: 9px;
}

.spark i {
    flex: 1;
    background: var(--fill-2);
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    display: block;
}

.spark i.cur {
    background: var(--brand);
}

.sparkl {
    font-size: 10.5px;
    color: var(--ink-3);
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
}

/* ===== Stacked bar with legend ===== */
.bar {
    display: flex;
    height: 16px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--fill-2);
    margin: 2px 0 10px;
}

.bar i {
    display: block;
    height: 100%;
}

/* ===== Calculation breakdown (capacity) ===== */
.calc {
    font-size: 12.5px;
}

.calc .r {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--stroke);
}

.calc .r:last-child {
    border-bottom: 0;
}

.calc .k {
    flex: 1;
    color: var(--ink-2);
}

.calc .k b {
    color: var(--ink);
    font-weight: 600;
}

.calc .n {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    min-width: 86px;
    text-align: right;
    color: var(--ink);
}

.calc .r.tot {
    border-top: 1.5px solid var(--stroke-2);
    border-bottom: 0;
    margin-top: 4px;
    padding-top: 9px;
}

.calc .r.tot .k {
    color: var(--ink);
    font-weight: 700;
}

.calc .r.tot .n {
    font-size: 15px;
}

.calc .warnv .n {
    color: var(--amber);
}

.calc .r.sub .k,
.calc .r.sub .n {
    color: var(--ink-3);
    font-weight: 500;
    font-size: 11.5px;
}

/* ===== Settings: scope bar and card marking ===== */
.scopebar {
    margin-bottom: 16px;
}

.scopebarin {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--brand-soft);
}

.scopebarin b {
    display: block;
    font-size: 12.5px;
    color: var(--brand);
}

.scopebarin span {
    display: block;
    font-size: 11.5px;
    color: var(--ink-2);
    line-height: 1.5;
    margin-top: 1px;
}

.sctag {
    display: inline-block;
    margin-left: 9px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--brand-soft);
    color: var(--brand);
    vertical-align: middle;
    letter-spacing: .2px;
}

.sctag.sys {
    background: var(--fill-2);
    color: var(--ink-2);
}

/* ===== Folder tree ===== */
.tree {
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: var(--surface);
    max-height: 230px;
    overflow-y: auto;
    padding: 6px;
}

.tnode {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--ink);
    border: 2px solid transparent;
    width: 100%;
    text-align: left;
    background: transparent;
    font-family: inherit;
}

.tnode:hover {
    background: var(--fill);
}

.tnode.sel {
    background: var(--accent-soft);
    border-color: var(--accent);
    font-weight: 600;
}

.tnode .wid {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--ink-3);
    opacity: .75;
    margin-left: auto;
}

/* ===== Toggles ===== */
.sw {
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: var(--stroke-2);
    position: relative;
    cursor: pointer;
    flex: none;
    transition: .16s;
    border: 0;
    padding: 0;
}

.sw::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: .16s;
}

.sw.on {
    background: var(--accent);
}

.sw.on::after {
    transform: translateX(16px);
}

.swrow {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--stroke);
}

.swrow:last-child {
    border-bottom: 0;
}

.swrow .swtext {
    flex: 1;
}

.swrow .swtext b {
    display: block;
    font-size: 13px;
    color: var(--ink);
}

.swrow .swtext span {
    display: block;
    font-size: 11.5px;
    color: var(--ink-2);
    line-height: 1.5;
    margin-top: 1px;
}

.tabrow {
    display: flex;
    gap: 7px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--stroke);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tabs button {
    border: 0;
    background: transparent;
    font: 600 13px var(--font);
    color: var(--ink-2);
    padding: 9px 13px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tabs button:hover {
    color: var(--ink);
}

.tabs button[aria-selected="true"] {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

/* ===== Row selection ===== */
.row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 11px;
    border-radius: 11px;
    cursor: pointer;
    border: 2px solid transparent;
}

.row:hover {
    background: var(--fill);
}

.row.sel {
    background: var(--accent-soft);
    border-color: var(--accent);
}

/* ===== Dialog ===== */
.scrim {
    position: fixed;
    inset: 0;
    background: rgba(15, 25, 35, .35);
    display: grid;
    place-items: center;
    z-index: 40;
    padding: 24px;
}

.dlg {
    background: var(--surface);
    border-radius: 18px;
    box-shadow: var(--sh-pop, 0 12px 24px rgba(15, 25, 35, .16), 0 34px 80px rgba(15, 25, 35, .28));
    width: min(720px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dlg.narrow {
    width: min(470px, 100%);
}

.dlg-h {
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--stroke);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.dlg-h h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.dlg-h .sub {
    font-size: 12.5px;
    color: var(--ink-2);
    margin-top: 2px;
}

.dlg-b {
    padding: 18px 22px;
    overflow-y: auto;
    flex: 1;
}

.dlg-f {
    padding: 14px 22px;
    border-top: 1px solid var(--stroke);
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--fill);
}

.mono {
    font-family: var(--mono);
    font-size: 11.5px;
}

.tnum {
    font-variant-numeric: tabular-nums;
}

.pos { color: var(--red); font-weight: 600; }
.neg { color: var(--green); font-weight: 600; }

/* ===== Work list board (Zwischenstand, 19.08.2026) =====
   Four lists — attention, completed, inserted, cancelled — in one card with
   tabs. Standing one below the other they were four headings, four filter
   blocks and a scroll of several screens. */

.listtabs {
    display: flex;
    gap: 2px;
    padding: 4px 8px 0;
    border-bottom: 1px solid var(--stroke);
    flex-wrap: wrap;
}

.listtabs button {
    border: 0;
    background: transparent;
    font: 600 13px var(--font);
    color: var(--ink-2);
    padding: 11px 13px 10px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.listtabs button:hover {
    color: var(--ink);
}

.listtabs button[aria-selected="true"] {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.listtabs button .n {
    background: var(--fill-2);
    color: var(--ink-2);
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.listtabs button[aria-selected="true"] .n {
    background: var(--brand-soft);
    color: var(--brand);
}

/* Filter bar: one row. Search grows, the selects keep their content width,
   the drawer button and the reset sit at the end. */
.filtbar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding: 11px 14px;
}

.filtbar .search {
    position: relative;
    flex: 1 1 14rem;
    min-width: 11rem;
}

.filtbar .search .ph {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-3);
    width: 15px;
    height: 15px;
    pointer-events: none;
}

.filtbar .search input {
    padding: 7px 11px 7px 33px;
    font-size: 12.5px;
}

.filtbar select {
    width: auto;
    min-width: 6rem;
    padding: 7px 28px 7px 10px;
    font-size: 12.5px;
    flex: none;
}

/* Opens markers and statuses; carries the number of active ones, so that a
   filter behind a closed drawer cannot be overlooked. */
.filtmore {
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: var(--ink);
    border-radius: var(--r-ctrl);
    font: 600 12.5px var(--font);
    height: 32px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    flex: none;
}

.filtmore:hover {
    background: var(--fill);
}

.filtmore[aria-expanded="true"] {
    background: var(--brand-soft);
    border-color: transparent;
    color: var(--brand);
}

.filtmore .n {
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    padding: 1px 6px;
    font-size: 11px;
}

.filtdrawer {
    padding: 0 14px 12px;
    border-bottom: 1px solid var(--stroke);
}

.filtdrawer .row {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 10px;
}

.filtrow-lab {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--ink-3);
    width: 6.5rem;
    flex: none;
}

/* Separator between reason and origin — only ever one half applies. */
.filtsep {
    width: 1px;
    height: 20px;
    background: var(--stroke);
    margin: 0 3px;
    flex: none;
}

.countline {
    padding: 8px 14px;
    border-bottom: 1px solid var(--stroke);
}

/* The table sits flush in the card; the card already draws the border. */
.tblwrap.listtbl {
    border: 0;
    border-radius: 0;
}

.tbl th.grouphead {
    background: var(--fill);
    text-align: left;
}

.tbl th.grouphead .mk {
    margin-left: 6px;
}

/* Tiles that lead to a list are buttons — same look, plus pointer, hover and a
   small chevron. Everything else stays a div: a tile without a destination must
   not look clickable. */
button.kpi {
    font: inherit;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

button.kpi:hover {
    border-color: var(--stroke-2);
    background: var(--fill);
}

button.kpi:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button.kpi .l::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 6px;
    vertical-align: 1px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(-45deg);
    opacity: .8;
}

/* ===== Breakpoints =====
   1280 / 1024 / 768, as provided for in CLAUDE.md. Below 768 the sidebar turns
   into a drawer above the content; the burger in the page header opens it. The
   earlier version only stacked the bar above the content — on a phone one would
   have had to scroll away the whole navigation before every page. */

/* The burger exists only when narrow; above that the sidebar stands anyway. */
.burger {
    display: none;
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: var(--ink-2);
    border-radius: 10px;
    width: 38px;
    height: 38px;
    flex: none;
    cursor: pointer;
    place-items: center;
}

.burger svg { width: 20px; height: 20px; }

.burger:hover { background: var(--fill); color: var(--ink); }

.side-scrim { display: none; }

@media (max-width: 1280px) {
    .screen { grid-template-columns: minmax(12rem, 200px) minmax(0, 1fr); }
}

@media (max-width: 1024px) {
    .content { padding: 16px 16px 32px; }
    .toolbar { padding: 14px 16px 12px; }
    .scrim { padding: 16px; }
}

@media (max-width: 768px) {
    .screen { grid-template-columns: minmax(0, 1fr); }

    .burger { display: grid; }

    /* Drawer: lies above the content, not beside it. */
    .side {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(19rem, 86vw);
        z-index: 60;
        overflow-y: auto;
        border-right: 1px solid var(--stroke);
        transform: translateX(-100%);
        transition: transform .18s ease-out;
        box-shadow: 0 0 0 rgba(15, 25, 35, 0);
    }

    .screen.menu-open .side {
        transform: translateX(0);
        box-shadow: 0 12px 24px rgba(15, 25, 35, .16), 0 34px 80px rgba(15, 25, 35, .28);
    }

    .screen.menu-open .side-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 50;
        border: 0;
        padding: 0;
        background: rgba(15, 25, 35, .35);
    }

    /* The page header stays reachable — on a phone it is the only place where
       burger and account stand. */
    .toolbar {
        position: sticky;
        top: 0;
        z-index: 30;
        padding: 10px 12px;
        gap: 8px;
        row-gap: 8px;
    }

    .title h1 { font-size: 17px; }

    .title .sub {
        font-size: 11.5px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Title and tile in row one, actions in row two across the full width —
       next to each other both would be uselessly narrow. */
    .toolbar .spacer { flex: 1 0 0; }

    .toolbar .zdiv { display: none; }

    .content { padding: 12px 12px 28px; }

    .sec { margin-top: 18px; }

    /* Full-area dialogs: a centered window with a margin gives away half the
       area on 390 px. */
    .scrim { padding: 0; place-items: stretch; }

    .dlg,
    .dlg.narrow {
        width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .dlg-h { padding: 14px 16px 12px; }
    .dlg-b { padding: 14px 16px; }

    .dlg-f {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .dlg-f .btn { flex: 1 1 auto; justify-content: center; }

    .card-h {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    /* Finger-wide targets instead of mouse-pointer precision. */
    .btn,
    .chip {
        min-height: 38px;
    }

    .button-row { flex-wrap: wrap; }

    /* Filter bar: search on its own row, the selects side by side beneath it.
       Squeezed into one row they would each be three characters wide. */
    .filtbar .search { flex: 1 1 100%; }

    .filtbar select { flex: 1 1 8rem; min-width: 8rem; }

    .filtrow-lab { width: 100%; }

    .listtabs button { min-height: 40px; }
}

@media (max-width: 480px) {
    /* Actions of the page header wrap onto a row of their own. */
    .toolbar .btn,
    .toolbar > a.btn { flex: 1 1 auto; justify-content: center; }

    .kpis.c4,
    .kpis.c3,
    .kpis.c2 { grid-template-columns: minmax(0, 1fr); }

    .grid2 { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Report as a dashboard (2026-10-22) =====
   The same sections as the sent letter, arranged for the portal: key figures on top, the
   sections behind tabs, each section as a card. Only the portal frame loads this file — the
   sent file keeps its letter layout from report.css. */
.report.report-dash {
    max-width: none;
    padding: 0;
    background: transparent;
}

.report-dash .report-header {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--r-card);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--sh);
}

.report-dash .dash-kpis {
    margin: 1rem 0;
}

.report-dash .kpi .v small {
    font-size: 13px;
}

/* Person filter of the report, banner above the person view (2026-10-23) */
.report-dash .person-view {
    margin-bottom: 1rem;
}

/* The comparison with the previous sprint below the traffic-light value (2026-10-23). */
.report-dash .kpi .trend-hint.good { color: var(--green); }
.report-dash .kpi .trend-hint.bad { color: var(--red); }

.report-dash .dash-tabs {
    margin-bottom: 1rem;
    overflow: hidden;
}

.report-dash .section {
    margin-top: 0;
    margin-bottom: 1rem;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--r-card);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--sh);
    min-width: 0;
}

.report-dash .dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
    gap: 0 1rem;
    align-items: start;
}

.report-dash .tile {
    background: var(--fill);
}

@media print {
    /* Printing shows every tab, one after the other. */
    .report-dash .dash-panel[hidden] {
        display: block !important;
    }

    .report-dash .dash-tabs,
    .report-dash .dash-kpis {
        display: none;
    }

    .report-dash .section {
        box-shadow: none;
        border: none;
        padding: 0;
    }
}

/* Seven key figures: one row on a wide screen instead of six and an orphan. */
.report-dash .kpis.dash-kpis {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
}

/* ===== Search, sort and grouping of lists in the report (2026-10-23) =====
   Portal only — the sent file renders none of these controls. The bar is the .filtbar of
   the work item board, without its card padding. */
.report .list-tools {
    padding: 0;
    margin: .5rem 0 .6rem;
}

.report .list-count {
    font-size: 12px;
    color: var(--ink-3);
    white-space: nowrap;
}

/* A sortable header: the whole cell is the button, the mark in the brand colour as in the
   style guide (.cl-sortmark). */
.report th.sortable {
    padding: 0;
}

.report th.sortable button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: .45rem .7rem;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-align: inherit;
    cursor: pointer;
}

.report th.sortable.num button {
    justify-content: flex-end;
}

.report th.sortable button:hover {
    color: var(--ink-2);
}

.report th.sortable button:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}

.report th .sortmark {
    font-size: 9px;
    color: var(--ink-3);
}

.report th[aria-sort="ascending"] .sortmark,
.report th[aria-sort="descending"] .sortmark {
    color: var(--brand);
}

/* The header row of a group */
.report tr.grouprow th {
    text-align: left;
    background: var(--fill);
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.report tr.grouprow th span {
    font-weight: 400;
    color: var(--ink-3);
}
