/* skillomat 7.1 (OP-179, OP-171) · ui7100.css – Baustein „Dialog und Auswahl“ des Designsystems
   Gilt in Anwendung (html.skal3, Tokens aus design.css), Serviceportal (portal5400.css) und Anzeigeseite (viewer5610.css).
   Eigene Tokens --u71-* greifen auf die Tokens der jeweiligen Seite zurück; hell und dunkel folgen damit der Seite.
   Bausteine:
   • .u71-dlg  – Hinweis, Bestätigung, Eingabe, Auswahl (SKAL_UI.alert/confirm/prompt/choose); Kopf mit Symbol und Titel,
                 Text (Zeilenumbrüche bleiben), Fußzeile mit Schaltflächen als Verb, rechts die Hauptaktion; Variante
                 .u71-danger (rot, Warnsymbol, Fokus auf „Abbrechen“). Breite min(460px, 100vw − 24px), 390 px ohne Scrollen.
   • .u71-pop  – Liste eines Auswahlfeldes (role=listbox) im Top Layer; Suchfeld (mit „x“) ab 12 Einträgen, Gruppen,
                 aktive Zeile (Tastatur/Maus) und gewählte Zeile (Häkchen, nicht nur Farbe), Zeilen 44 px.
   • .u71-ml   – gestaltete Liste für multiple/size>1 mit Ankreuzfeldern bzw. Häkchen; feste Höhe, eigener Bildlauf.
   • select.u71-sel – das native Feld bleibt sichtbar und gestaltet; lange Einträge enden mit „…“, offener Zustand wie Fokus. */
:root {
  --u71-surface: var(--surface, #fff);
  --u71-surface2: var(--surface2, #f4f6fa);
  --u71-ink: var(--ink, #111a36);
  --u71-muted: var(--muted, #5c6782);
  --u71-line: var(--line-strong, var(--line2, #cfd6e3));
  --u71-accent: var(--primary, var(--accent, #2446d8));
  --u71-accent-ink: var(--primary-ink, var(--accent-ink, #fff));
  --u71-sel: var(--selected, var(--accent-soft, #eaf0ff));
  --u71-hover: var(--hover, var(--surface2, #f2f4f9));
  --u71-bad: var(--bad-c, var(--bad, #c40000));
  --u71-focus: var(--focus, color-mix(in srgb, var(--accent, #2446d8) 30%, transparent));
  --u71-r: 16px;
  --u71-shadow: var(--shadow-lg, 0 24px 60px rgba(10, 18, 80, .22));
}

/* ---------- Dialog ---------- */
dialog.u71-dlg { width: min(460px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid var(--u71-line); border-radius: var(--u71-r);
  background: var(--u71-surface); color: var(--u71-ink); box-shadow: var(--u71-shadow); font: inherit; overflow: hidden; }
html.skal3 dialog.u71-dlg { padding: 0 !important; border-radius: var(--u71-r) !important; }
dialog.u71-dlg[open] { display: flex; flex-direction: column; animation: u71In .16s ease-out; }
dialog.u71-dlg::backdrop { background: rgba(10, 16, 40, .45); }
@keyframes u71In { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.u71-dlg[open], .u71-pop.u71-open { animation: none !important; } }
html.reduce-motion dialog.u71-dlg[open], html.motion-reduce dialog.u71-dlg[open] { animation: none !important; }
.u71-dlg-f { display: flex; flex-direction: column; min-height: 0; margin: 0; }
.u71-dlg-h { display: flex; align-items: center; gap: 12px; padding: 20px 22px 6px; }
.u71-dlg-ic { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--u71-sel); color: var(--u71-accent); }
.u71-dlg-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.u71-danger .u71-dlg-ic { background: color-mix(in srgb, var(--u71-bad) 14%, transparent); color: var(--u71-bad); }
.u71-dlg-t { margin: 0 !important; font-size: 18px !important; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; color: var(--u71-ink); overflow-wrap: anywhere; }
.u71-dlg-b { padding: 8px 22px 18px 70px; overflow: auto; min-height: 0; }
.u71-dlg-m { margin: 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; color: var(--u71-ink); }
.u71-dlg-l { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.u71-dlg-ll { font-size: 13px; font-weight: 600; }
.u71-dlg-in { width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 16px; border: 1px solid var(--u71-line); border-radius: 10px; background: var(--input, var(--u71-surface)); color: var(--u71-ink); }
.u71-dlg-in:focus { outline: none; border-color: var(--u71-accent); box-shadow: 0 0 0 3px var(--u71-focus); }
.u71-dlg-in[aria-invalid="true"] { border-color: var(--u71-bad); }
.u71-dlg-err { margin: 6px 0 0; min-height: 1.2em; font-size: 13px; color: var(--u71-bad); }
.u71-dlg-err:empty { min-height: 0; margin: 0; }
.u71-dlg-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 14px 22px; background: var(--u71-surface2); border-top: 1px solid var(--line, var(--u71-line)); }
/* Schaltflächen: Gestaltung der Seite (.btn) – hier nur Größe und ein Rückfall für Seiten ohne .btn (Anzeigeseite) */
.u71-dlg .u71-b, html.skal3 .u71-dlg .u71-b { min-height: 44px; min-width: 96px; padding: 0 18px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
:where(.u71-dlg) :where(.u71-b) { border: 1px solid var(--u71-line); border-radius: 12px; background: var(--u71-surface); color: var(--u71-ink); }
:where(.u71-dlg) :where(.u71-b-pri) { background: var(--u71-accent); border-color: var(--u71-accent); color: var(--u71-accent-ink); }
.u71-dlg .u71-b-dan, html.skal3 .u71-dlg .u71-b-dan { background: var(--u71-bad) !important; border-color: var(--u71-bad) !important; color: #fff !important; }
.u71-dlg .u71-b:focus-visible { outline: 3px solid var(--u71-accent); outline-offset: 2px; }
.u71-dlg .u71-b-dan:focus-visible { outline-color: var(--u71-bad); }
@media (max-width: 520px) {
  .u71-dlg-h { padding: 18px 16px 4px; }
  .u71-dlg-b { padding: 8px 16px 16px; }
  .u71-dlg-foot { padding: 12px 16px; }
  .u71-dlg-foot .u71-b { flex: 1 1 auto; }
}

/* ---------- Auswahlfeld (geschlossen) ---------- */
select.u71-sel { text-overflow: ellipsis; }
select.u71-sel[aria-expanded="true"] { border-color: var(--u71-accent) !important; box-shadow: 0 0 0 3px var(--u71-focus) !important; }

/* ---------- Liste (offen) ---------- */
.u71-pop { position: fixed; inset: auto; margin: 0; z-index: 2147483000; display: none; flex-direction: column; padding: 0; overflow: hidden;
  min-width: 0; border: 1px solid var(--u71-line); border-radius: 14px; background: var(--u71-surface); color: var(--u71-ink); box-shadow: var(--u71-shadow); font: inherit; font-size: 15px; }
.u71-pop.u71-open { display: flex; animation: u71Pop .12s ease-out; }
@keyframes u71Pop { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.u71-pop.u71-up { transform-origin: bottom; }
.u71-srch { position: relative; display: flex; align-items: center; flex: none; border-bottom: 1px solid var(--line, var(--u71-line)); }
.u71-srch[hidden] { display: none; }
.u71-srch > svg { position: absolute; left: 12px; width: 18px; height: 18px; fill: none; stroke: var(--u71-muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.u71-srch .u71-q { flex: 1; min-width: 0; min-height: 44px; margin: 0; padding: 8px 44px 8px 40px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--u71-ink); font: inherit; font-size: 16px; outline: none; }
.u71-srch .u71-q::-webkit-search-cancel-button { display: none; }
.u71-x { position: absolute; right: 2px; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--u71-muted); cursor: pointer; }
.u71-x[hidden] { display: none; }
.u71-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.u71-x:hover { background: var(--u71-hover); }
.u71-x:focus-visible { outline: 2px solid var(--u71-accent); outline-offset: -2px; }
.u71-list { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px; outline: none; }
.u71-cnt { flex: none; padding: 6px 12px; border-top: 1px solid var(--line, var(--u71-line)); font-size: 12.5px; color: var(--u71-muted); }
.u71-cnt[hidden] { display: none; }
.u71-g + .u71-o, .u71-o + .u71-g { margin-top: 2px; }
.u71-gl { padding: 8px 10px 4px; font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--u71-muted); }
.u71-o { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 10px; cursor: pointer; user-select: none; line-height: 1.3; }
.u71-g .u71-o { padding-left: 18px; }
.u71-ot { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u71-ck { flex: none; width: 18px; height: 18px; }
.u71-on .u71-ck { background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; color: var(--u71-accent); }
.u71-on { font-weight: 600; }
.u71-o.u71-act { background: var(--u71-hover); box-shadow: inset 0 0 0 2px var(--u71-accent); }
.u71-pop .u71-o.u71-on:not(.u71-act) { background: var(--u71-sel); }
.u71-o[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .u71-o:not([aria-disabled="true"]):hover { background: var(--u71-hover); } }
.u71-empty { padding: 14px 12px; color: var(--u71-muted); font-size: 14px; }
@media (forced-colors: active) { .u71-o.u71-act { outline: 2px solid Highlight; } .u71-on .u71-ck { background: CanvasText; } }

/* ---------- Liste im Formular (multiple, size > 1) ---------- */
select.u71-nat { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; max-height: 1px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden !important; }
.u71-ml { position: relative; display: block; width: 100%; max-width: 100%; box-sizing: border-box; height: calc(var(--u71-rows, 5) * 44px + 10px); max-height: 50vh; overflow-y: auto; overscroll-behavior: contain; padding: 4px;
  border: 1px solid var(--u71-line); border-radius: 10px; background: var(--input, var(--u71-surface)); color: var(--u71-ink); font-size: 15px; outline: none; }
.u71-ml[hidden] { display: none; }
.u71-ml:focus-visible, .u71-ml:focus { border-color: var(--u71-accent); box-shadow: 0 0 0 3px var(--u71-focus); }
.u71-ml[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.u71-ml .u71-o.u71-on { background: var(--u71-sel); }
.u71-ml .u71-o.u71-act { box-shadow: inset 0 0 0 2px var(--u71-accent); }
.u71-ml:not(:focus) .u71-o.u71-act { box-shadow: none; }
.u71-cb { flex: none; width: 20px; height: 20px; border: 2px solid var(--u71-line); border-radius: 6px; background: var(--u71-surface); }
.u71-on .u71-cb { border-color: var(--u71-accent); background: var(--u71-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.u71-msrch { margin-bottom: 6px; border: 1px solid var(--u71-line); border-radius: 10px; background: var(--input, var(--u71-surface)); }

/* ---------- Suchfeld mit „x“ (7.1, AP4: OP-173, VA-03.9) ----------
   SKAL_UI.searchClear legt hinter jedes Suchfeld die Schaltfläche .u71-sx (44 × 44 px, außerhalb des Flusses) und gibt
   dem ausgefüllten Feld Platz am Ende (.u71-sxi.u71-sxo; leer bleibt das Feld unverändert). Das „x“ des Browsers entfällt, damit es nicht doppelt erscheint. */
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
input[type="search"]::-ms-clear { display: none; width: 0; height: 0; }
input.u71-sxi.u71-sxo, html.skal3 input.u71-sxi.u71-sxo { padding-inline-end: 44px !important; text-overflow: ellipsis; }
.u71-sx { position: absolute; z-index: 2; display: inline-grid; place-items: center; box-sizing: border-box; width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 12px !important; background: transparent !important; box-shadow: none !important; color: var(--u71-muted); cursor: pointer; flex: none; line-height: 1; }
.u71-sx[hidden] { display: none !important; }
.u71-sx svg { width: 18px; height: 18px; padding: 4px; border-radius: 50%; background: color-mix(in srgb, var(--u71-muted) 16%, transparent); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; box-sizing: content-box; }
.u71-sx:hover { color: var(--u71-ink); }
.u71-sx:hover svg { background: color-mix(in srgb, var(--u71-muted) 26%, transparent); }
.u71-sx:focus-visible { outline: 3px solid var(--u71-accent) !important; outline-offset: -4px; }
@media (forced-colors: active) { .u71-sx svg { background: none; stroke: ButtonText; } .u71-sx:focus-visible { outline-color: Highlight !important; } }

/* ---------- Feste Feldgrößen (7.1, AP4: OP-182, VA-03.8) ----------
   Ein Auswahlfeld wird nie breiter als sein Platz; lange Einträge enden mit „…“, der volle Text steht als Hinweis (title,
   SKAL_UI.select). In Filterleisten haben Auswahlfelder mit Einträgen aus den Daten (Organisation, Personen, Status, Kategorie …)
   eine feste Breite (--u71-fw); so verschiebt ein langer Wert oder eine neue Liste die Leiste nicht. Felder in Rastern (grid)
   folgen der Spalte. Dynamische Breite nur, wo geprüft ist, dass sich nichts verschiebt (t98, Abschnitt OP-182). */
:root { --u71-fw: 15rem; }
/* geringe Spezifität (:where): engere Vorgaben der Seiten (max-width, min-width) behalten Vorrang */
:where(select.u71-sel:not([multiple]):not([size]), select.u71-sel[size="1"]) { max-inline-size: 100%; min-inline-size: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
:where(label, .field, .f51):has(> select.u71-sel:not([multiple])) { min-inline-size: 0; max-inline-size: 100%; }
:is(#view-development515 .actions, .filter-row, .gap-toolbar, .tk5500-bar, .rp5270-tools, .ppt42-tools, .r5390-bar > label:first-child, .logfilter31, .undo53-filter, .u71-fixed) select.u71-sel:not([multiple]):not([size]) { inline-size: var(--u71-fw); }
@media (max-width: 520px) { :is(#view-development515 .actions, .filter-row, .gap-toolbar, .tk5500-bar, .rp5270-tools, .ppt42-tools, .r5390-bar > label:first-child, .logfilter31, .undo53-filter, .u71-fixed) select.u71-sel:not([multiple]):not([size]) { inline-size: 100%; } }
.logfilter31 { --u71-fw: 12rem; }

/* ---------- Menge mit Einheit (8.10.0, Baustein .qty81000) ----------
   Zahlenfeld mit Umschalter der Einheit (z. B. MB/GB) in einem Rahmen: echte Optionsfelder (Pfeiltasten wechseln, Bildschirmleser
   nennen „Einheit, MB, 1 von 2“), Trefferfläche 44 px, Eingabe 16 px, feste Breite nach erwartetem Inhalt (9 Ziffern).
   Fehler: .bad am Rahmen bzw. aria-invalid am Feld; Bewegung nur, wenn nicht abgeschaltet. Gilt in Anwendung und Zentrale. */
.qty81000 { display: inline-flex; align-items: stretch; align-self: flex-start; inline-size: max-content; max-inline-size: 100%; box-sizing: border-box; border: 1px solid var(--u71-line); border-radius: 12px; background: var(--input, var(--u71-surface)); overflow: hidden; vertical-align: middle; }
.qty81000:focus-within { border-color: var(--u71-accent); box-shadow: 0 0 0 3px var(--u71-focus); }
.qty81000.bad, .qty81000:has(.qty81000-n[aria-invalid="true"]) { border-color: var(--u71-bad); }
.qty81000 .qty81000-n, html.skal3 .qty81000 .qty81000-n { inline-size: 9.5ch; min-inline-size: 0; flex: 0 1 auto; min-height: 44px; margin: 0 !important; padding: 10px 12px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; outline: none !important; color: var(--u71-ink); font: inherit; font-size: 16px !important; font-variant-numeric: tabular-nums; text-align: end; }
.qty81000-u { display: inline-flex; flex: none; border-inline-start: 1px solid var(--u71-line); background: var(--u71-surface2); }
.qty81000-u label { position: relative; display: inline-flex; margin: 0 !important; padding: 0 !important; cursor: pointer; }
.qty81000-u input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0 !important; opacity: 0; cursor: pointer; }
.qty81000-u span { display: inline-grid; place-items: center; min-inline-size: 48px; min-height: 44px; padding: 0 10px; color: var(--u71-muted); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.qty81000-u input:checked + span { background: var(--u71-accent); color: var(--u71-accent-ink); }
.qty81000-u input:focus-visible + span { outline: 3px solid var(--u71-ink); outline-offset: -5px; border-radius: 6px; }
.qty81000-u label:hover input:not(:checked) + span { background: var(--u71-hover); color: var(--u71-ink); }
:root:not([data-motion="off"]) .qty81000-u span { transition: background-color .16s ease-out, color .16s ease-out; }
:root:not([data-motion="off"]) .qty81000 { transition: border-color .16s ease-out, box-shadow .16s ease-out; }
@media (prefers-reduced-motion: reduce) { .qty81000, .qty81000-u span { transition: none !important; } }
@media (forced-colors: active) { .qty81000-u input:checked + span { outline: 2px solid Highlight; outline-offset: -4px; } }
