/* Redesign 2026, Runde 12: Benutzerliste, Schublade, Bestätigung. Nur Tokens, kein Gold.
   Copyright © Fabian Stamminger @ The Platform Group */
.tp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tp-muted { color: var(--orlop-text-2, #5B616B); }
.users-tools { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: 0 0 1rem; }
.users-tools .users-search { position: relative; flex: 1 1 18rem; max-width: 28rem; }
.users-tools .users-search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--orlop-text-2, #5B616B); pointer-events: none; }
.users-tools .users-search input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 0 .85rem 0 2.4rem; border: 1px solid var(--orlop-field-border, #6B717C); border-radius: 8px; font: inherit; background: #fff; color: var(--orlop-ink); }
.users-tools .users-count { margin-left: auto; font-size: .875rem; color: var(--orlop-text-2, #5B616B); }
.tp-table-wrap { width: 100%; background: #fff; border: 1px solid var(--orlop-line, #D8DCE4); border-radius: 12px; box-shadow: 0 1px 2px rgba(14,17,21,.04); }
.tp-table { width: 100%; border-collapse: collapse; }
.tp-table th { text-align: left; font-size: 13px; font-weight: 500; color: var(--orlop-text-2, #5B616B); background: transparent; padding: .7rem 1rem; border-bottom: 1px solid var(--orlop-line, #D8DCE4); white-space: nowrap; }
.tp-table td { padding: .05rem 1rem; height: 56px; max-height: 56px; vertical-align: middle; border-bottom: 1px solid var(--orlop-line, #D8DCE4); font-size: .9375rem; color: var(--orlop-ink); }
.tp-table tbody tr:last-child td { border-bottom: 0; }
.tp-table tbody tr:hover { background: var(--orlop-surface, #F5F6F8); }
.tp-cell-name { min-width: 14rem; }
.tp-cell-stack { display: flex; flex-direction: column; }
.tp-name { display: block; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.tp-sub { display: block; font-size: .8125rem; color: var(--orlop-text-2, #5B616B); line-height: 1.25; overflow-wrap: anywhere; }
.tp-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 .6rem; border-radius: 999px; font-size: .8125rem; font-weight: 500; background: var(--orlop-surface, #F5F6F8); color: var(--orlop-ink); border: 1px solid var(--orlop-line, #D8DCE4); white-space: nowrap; }
.tp-chip-ok { background: #ECF6F0; border-color: #BFE0CC; color: #14532D; }
.tp-chip-wait { background: var(--orlop-surface, #F5F6F8); color: var(--orlop-text-2, #4A505A); }
.tp-cell-actions { text-align: right; white-space: nowrap; }
.tp-th-actions { width: 1%; }
.tp-link { background: none; border: 0; padding: 0 .5rem; min-height: 36px; font: inherit; font-weight: 600; color: var(--orlop-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tp-more { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: 0 .6rem; background: transparent; border: 1px solid var(--orlop-line, #D8DCE4); border-radius: 8px; font: inherit; font-size: .875rem; color: var(--orlop-ink); cursor: pointer; }
.tp-more[aria-expanded="true"] { background: var(--orlop-surface, #F5F6F8); }
@media (pointer: coarse) { .tp-link, .tp-more { min-height: 44px; min-width: 44px; } }
.tp-more-text { }
.tp-menu { position: fixed; z-index: 3000; min-width: 220px; padding: .35rem; background: #fff; border: 1px solid var(--orlop-line, #D8DCE4); border-radius: 12px; box-shadow: 0 8px 24px rgba(14,17,21,.16); display: flex; flex-direction: column; }
.tp-menu-item { text-align: left; min-height: 40px; padding: 0 .75rem; border: 0; border-radius: 8px; background: transparent; font: inherit; color: var(--orlop-ink); cursor: pointer; }
@media (pointer: coarse) { .tp-menu-item { min-height: 44px; } }
.tp-menu-item:hover, .tp-menu-item:focus-visible { background: var(--orlop-surface, #F5F6F8); }
.tp-menu-danger { color: var(--orlop-error-solid, #B91C1C); }
.tp-empty { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; padding: 2.5rem 1rem; background: #fff; border: 1px solid var(--orlop-line, #D8DCE4); border-radius: 12px; }
.tp-empty i { font-size: 1.75rem; color: var(--orlop-primary, #6B717C); }
.tp-empty h2 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.tp-empty p { margin: 0 0 .5rem; color: var(--orlop-text-2, #5B616B); max-width: 34rem; }
.tp-empty-sm { padding: 1.5rem 1rem; }
@media (max-width: 599px) {
  .tp-table-wrap { border: 0; background: transparent; box-shadow: none; }
  .tp-table, .tp-table tbody, .tp-table tr, .tp-table td { display: block; width: 100%; box-sizing: border-box; }
  .tp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tp-table tr { padding: .85rem; margin: 0 0 .6rem; border: 1px solid var(--orlop-line, #D8DCE4); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(14,17,21,.04); }
  .tp-table td { height: auto; max-height: none; padding: .15rem 0; border: 0; display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
  .tp-table td[data-label]::before { content: attr(data-label); flex: 0 0 7.5rem; font-size: .8125rem; color: var(--orlop-text-2, #5B616B); }
  .tp-table td.tp-cell-name { display: block; min-width: 0; padding-bottom: .4rem; }
  .tp-table td.tp-cell-name::before { content: none; }
  .tp-table td.tp-cell-actions { display: flex; justify-content: space-between; align-items: center; padding-top: .5rem; }
  .users-tools .users-count { margin-left: 0; flex: 1 0 100%; }
}
/* Schublade */
.ua-scrim { position: fixed; inset: 0; z-index: 2500; background: rgba(14,17,21,.45); display: flex; justify-content: flex-end; }
.ua-scrim-center { justify-content: center; align-items: center; }
.ua-drawer { width: min(520px, 100%); height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(14,17,21,.18); animation: ua-in 160ms ease-out; }
@keyframes ua-in { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ua-drawer { animation: none; } }
.ua-head { display: flex; align-items: flex-start; gap: .75rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--orlop-line, #D8DCE4); }
.ua-head-main { flex: 1; min-width: 0; }
.ua-head h2 { margin: 0; font-size: 1.25rem; font-weight: 900; letter-spacing: -.01em; }
.ua-sub { margin: .15rem 0 0; font-size: .875rem; color: var(--orlop-text-2, #5B616B); overflow-wrap: anywhere; }
.ua-close { min-width: 44px; min-height: 44px; }
.ua-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .9rem; }
.ua-foot { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .85rem 1.25rem; border-top: 1px solid var(--orlop-line, #D8DCE4); background: #fff; }
.ua-spacer { flex: 1; }
.ua-error, .ua-ask { font-size: .875rem; font-weight: 600; color: var(--orlop-ink); }
.ua-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.ua-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ua-fieldset legend { font-weight: 700; font-size: .9375rem; padding: 0; margin-bottom: .4rem; }
.ua-roles { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.ua-role { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 .75rem 0 2.4rem; border: 1px solid var(--orlop-line, #D8DCE4); border-radius: 10px; cursor: pointer; background: #fff; }
.ua-role input { position: absolute; left: .8rem; width: 18px; height: 18px; margin: 0; accent-color: #0E1115; }
.ua-role strong { font-size: .875rem; font-weight: 600; }
.ua-role:has(input:checked) { border-color: #0E1115; box-shadow: 0 0 0 1px #0E1115; background: var(--orlop-surface, #F5F6F8); }
.ua-role:has(input:focus-visible) { outline: 2px solid var(--orlop-ink); outline-offset: 2px; }
.ua-rights { margin: .6rem 0 0; padding-left: 1.1rem; font-size: .875rem; color: var(--orlop-text-2, #4A505A); line-height: 1.45; }
.ua-power { margin: .5rem 0 0; font-size: .875rem; font-weight: 600; }
.ua-locked { margin: 0; font-size: .875rem; color: var(--orlop-text-2, #4A505A); }
.ua-checks { display: flex; flex-direction: column; max-height: 9.5rem; overflow-y: auto; border: 1px solid var(--orlop-line, #D8DCE4); border-radius: 10px; padding: .25rem .5rem; }
.ua-check { display: flex; align-items: center; gap: .6rem; min-height: 36px; cursor: pointer; font-size: .9375rem; }
.ua-check input { width: 18px; height: 18px; accent-color: #0E1115; margin: 0; }
.ua-hint { margin: .3rem 0 0; font-size: .8125rem; color: var(--orlop-text-2, #5B616B); }
@media (max-width: 599px) { .ua-grid2, .ua-roles { grid-template-columns: 1fr; } .ua-drawer { width: 100%; } }
.ua-confirm { width: min(420px, calc(100% - 32px)); background: #fff; border-radius: 16px; padding: 1.25rem; box-shadow: 0 16px 48px rgba(14,17,21,.28); }
.ua-confirm h2 { margin: 0 0 .4rem; font-size: 1.125rem; font-weight: 900; }
.ua-confirm p { margin: 0 0 1rem; color: var(--orlop-text-2, #4A505A); overflow-wrap: anywhere; }
.ua-confirm-actions { display: flex; justify-content: flex-end; gap: .6rem; }
.ua-danger { background: var(--orlop-error-solid, #B91C1C); border-color: var(--orlop-error-solid, #B91C1C); }
/* Exporte-Verlauf: Auswahl 40 px */
.xw-filter select.field-select { min-height: 40px; height: 40px; }

/* R12-04: fehlende Angaben als neutrale Sprung-Chips, Rot erst nach dem Klick auf Freigeben */
.doc-missing-chip { display: inline-flex; align-items: center; min-height: 28px; margin: 2px 2px 2px 0; padding: 0 .65rem; border: 1px solid var(--orlop-line, #D8DCE4); border-radius: 999px; background: var(--orlop-surface, #F5F6F8); color: var(--orlop-ink); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.doc-missing-chip:hover { background: #fff; border-color: var(--orlop-primary, #6B717C); }
@media (pointer: coarse) { .doc-missing-chip { min-height: 36px; } }
.doc-approve-step.is-blocked .doc-missing-chip { border-color: var(--orlop-error-solid, #B91C1C); color: var(--orlop-error-solid, #B91C1C); background: #fff; }
.doc-rejected-next { display: block; margin-top: .25rem; }
.doc-keys-hint { display: none !important; }
/* R12-06: Fälligkeit mit Warnzeichen, nicht nur Farbe */
.due-overdue-icon { margin-right: .25rem; }
.tp-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 600px) and (max-width: 1599px) {
  .tp-table th, .tp-table td { padding-left: .65rem; padding-right: .65rem; }
  .tp-more-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tp-cell-name { min-width: 11rem; }
}
.ua-drawer .ow-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.ua-drawer .ow-field label { font-size: .875rem; font-weight: 600; }
.ua-drawer .ow-input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 .75rem; border: 1px solid var(--orlop-field-border, #6B717C); border-radius: 8px; font: inherit; background: #fff; color: var(--orlop-ink); }
.tp-layout.is-locked ~ * , #tabReise:has(.tp-layout.is-locked) #reiseSubtitle { display: none; }
