/*
 * Ordina Modern UI
 * Visuelle Designschicht fuer die bestehende mobile-first Anwendung.
 * Fachlogik, Rechte und Datenfluesse bleiben bewusst unangetastet.
 */

:root {
  /* Drei Ebenen: getoenter Grund, leicht helleres Navigationsband, weisse
     Arbeitsflaechen. So bleiben die Flaechen weiss, ohne als grosse weisse
     Wand zu verschwimmen. */
  --bg: #e9eef7;
  --surface: #ffffff;
  --surface-soft: #eff3fa;
  --nav-band: #f4f7fc;
  --nav-band-inset: 12px;
  --text: #172033;
  --text-soft: #3d4a5c;
  --line: #dde5f0;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --brand-red: #c23f38;
  --brand-red-soft: #fff0ee;
  --orange: #b6470d;
  --orange-soft: #fff0e6;
  --green: #0f7345;
  --green-soft: #e8f7ef;
  --purple: #7452c8;
  --purple-soft: #f0ebff;
  --teal: #2563eb;
  --teal-soft: #eaf1ff;
  --red: #c93636;
  --red-soft: #feebeb;
  --focus-ring: var(--blue);
  --shadow-sm: 0 1px 2px rgb(18 30 52 / 6%), 0 10px 26px rgb(18 30 52 / 6%);
  --shadow-md: 0 14px 40px rgb(18 30 52 / 12%);
  --record-row-shadow: 0 1px 3px rgb(18 30 52 / 5%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --sidebar-width: 264px;
  font-family: "Avenir Next", Avenir, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  min-height: 100%;
  background: #e9eef7;
}

body {
  min-height: 100vh;
  background: var(--bg);
  letter-spacing: -0.006em;
}

::selection {
  color: #fff;
  background: #c23f38;
}

h1 {
  font-size: clamp(1.72rem, 3vw, 2.35rem);
  font-weight: 760;
  letter-spacing: -0.045em;
}

h2 {
  font-size: 1.12rem;
  font-weight: 730;
  letter-spacing: -0.025em;
}

h3,
strong {
  letter-spacing: -0.012em;
}

button,
a,
input,
select,
textarea {
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.app-shell {
  isolation: isolate;
}

/* Navigation */
.sidebar {
  /* Klebt auf derselben Hoehe wie die Kopfleiste, damit das gemeinsame Band
     auch beim Scrollen buendig bleibt. */
  top: var(--nav-band-inset);
  margin: var(--nav-band-inset) 0 var(--nav-band-inset) var(--nav-band-inset);
  height: calc(100vh - 2 * var(--nav-band-inset));
  padding: 22px 14px 16px;
  overflow: hidden;
  color: #172033;
  background: var(--nav-band);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 24px 0 0 24px;
  box-shadow: var(--shadow-sm);
}

.brand {
  margin: 0 6px 25px;
}

.practice-brand {
  gap: 8px;
  padding: 12px 11px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: none;
}

.sidebar-practice-logo {
  width: 164px;
}

/* Die gesperrte Wortmarke muss in die Markenkarte passen; Umbruch und
   Wortbruch sind die sicheren Rückfälle, falls eine Ersatzschrift breiter
   baut als die eingebundene Avenir Next. */
.brand-product {
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  column-gap: 5px;
  row-gap: 2px;
  justify-content: space-between;
  overflow-wrap: anywhere;
  color: #526078;
}

.brand-product strong {
  color: var(--brand-red);
  font-size: .65rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.brand-product small {
  color: #3d4a5c;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.side-nav {
  gap: 6px;
}

.nav-item {
  min-height: 48px;
  padding: 10px 12px;
  color: #526078;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: .9rem;
}

.nav-item:hover {
  color: #172033;
  background: #f3f6fb;
}

.nav-item.is-active {
  color: #1d55ce;
  background: #eaf1ff;
  border-color: transparent;
  box-shadow: none;
}

.nav-item > [data-icon] {
  width: 29px;
  height: 29px;
  border-radius: 10px;
  background: #e6ecf6;
}

.nav-item.is-active > [data-icon] {
  background: rgb(37 99 235 / 12%);
}

.nav-item svg {
  width: 18px;
  height: 18px;
}

.nav-count {
  color: #526078;
  background: #edf1f7;
}

.nav-item.is-active .nav-count {
  color: #fff;
  background: var(--blue);
}

.sidebar-create {
  min-height: 50px;
  margin-top: 20px;
  border-color: transparent;
  background: #c23f38;
  color: #fff;
  box-shadow: 0 5px 12px rgb(194 63 56 / 20%);
}

.sidebar-create:hover {
  background: #a93531;
  transform: translateY(-1px);
}

.sidebar-user {
  border-top-color: var(--line);
}

.sidebar-user-copy strong {
  color: #172033;
}

.sidebar-user small {
  color: #3d4a5c;
}

.sidebar .avatar {
  color: #1d55ce;
  background: #eaf1ff;
}

.sidebar-logout {
  color: #526078;
}

.sidebar-logout:hover {
  color: #172033;
  background: #f3f6fb;
}

/* Kopfbereich und Grundlayout */
/* Kopfleiste und Seitenleiste bilden ein gemeinsames Band: gleiche Oberkante,
   gleicher Aussenabstand, gespiegelte Rundung und eine nahtlose
   Beruehrungskante. Die Flaeche ist deckend, damit kein Helligkeitsunterschied
   zur Seitenleiste entsteht. */
.topbar {
  top: var(--nav-band-inset);
  height: 78px;
  margin-right: var(--nav-band-inset);
  padding-inline: max(38px, calc((100% - 1000px) / 2));
  background: var(--nav-band);
  backdrop-filter: none;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 24px 0 0;
}

/* Deckt den Streifen ueber der klebenden Kopfleiste ab, damit beim Scrollen
   daneben kein Inhalt durchlaeuft. */
.app-column::before {
  content: "";
  position: sticky;
  top: 0;
  z-index: 16;
  display: block;
  height: var(--nav-band-inset);
  background: var(--bg);
}

.topbar-context {
  gap: 2px;
}

.topbar-context strong {
  color: #172033;
  font-size: .92rem;
}

.topbar-context small {
  font-size: .76rem;
}

.topbar-actions {
  height: 52px;
  gap: 3px;
  flex-wrap: nowrap;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 6px 18px rgb(18 30 52 / 6%);
}

.topbar .icon-button,
.topbar .avatar-button {
  position: relative;
  width: 44px;
  height: 44px;
  min-height: 44px;
  color: #3d4a5c;
  background: transparent;
  border: 0;
  border-radius: 13px;
  box-shadow: none;
}

.topbar .icon-button:hover,
.topbar .avatar-button:hover {
  color: var(--blue);
  background: #eaf1ff;
  transform: none;
}

.topbar .avatar-button {
  color: #1d55ce;
  background: #eaf1ff;
  border-radius: 50%;
}

.topbar .notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  margin: 0;
  pointer-events: none;
  border: 2px solid #fff;
  background: var(--red);
}

.main-content {
  max-width: 1320px;
  padding: 32px 42px 72px;
}

.page-header {
  position: relative;
  align-items: center;
  min-height: 0;
  margin-bottom: 18px;
  padding: 22px 26px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.page-header > div {
  position: relative;
  z-index: 1;
}

.page-header > div:first-child {
  min-width: 0;
  max-width: 100%;
}

.page-header h1 {
  margin-bottom: 7px;
  color: #172033;
  overflow-wrap: anywhere;
}

.page-header p {
  max-width: 62ch;
  color: #3d4a5c;
  font-size: .92rem;
  overflow-wrap: anywhere;
}

/* Der dunklere Markenton haelt auch dort AA-Kontrast, wo die Zeile ohne weisse
   Karte direkt auf dem getoenten Grund steht - etwa im Kopf des Teamchats. */
.eyebrow {
  margin-bottom: 7px;
  color: #a93531;
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.primary-button {
  min-height: 46px;
  padding-inline: 17px;
  color: #fff;
  background: #c23f38;
  border-color: #c23f38;
  border-radius: 13px;
  box-shadow: 0 5px 12px rgb(194 63 56 / 20%);
  font-weight: 720;
}

.primary-button:hover {
  background: #a93531;
  box-shadow: 0 6px 14px rgb(194 63 56 / 26%);
  transform: translateY(-1px);
}

.secondary-button,
.ghost-button,
.chip-button {
  border-radius: 12px;
}

.secondary-button {
  border-color: var(--line);
  box-shadow: 0 4px 12px rgb(18 30 52 / 4%);
}

.secondary-button:hover {
  border-color: rgb(37 99 235 / 32%);
  background: #f7f9fd;
  transform: translateY(-1px);
}

/* Tages-Dashboard */
.summary-strip {
  gap: 12px;
  overflow: visible;
  margin-bottom: 18px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.summary-item {
  position: relative;
  min-height: 72px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

/* Die Kennzahlen sind die einzige Flaeche, die bewusst Farbe traegt: sehr zart
   in ihrer Statusfarbe, damit die Zeile auf einen Blick lesbar bleibt. Die
   Arbeitsflaechen darunter bleiben weiss. */
.summary-item:has(.tone-info) {
  background: #f2f7ff;
  border-color: #d6e3f8;
}

.summary-item:has(.tone-urgent) {
  background: #fff6ef;
  border-color: #f2ddcc;
}

.summary-item:has(.tone-success) {
  background: #f1faf5;
  border-color: #d5e9dd;
}

.summary-item:hover {
  background: color-mix(in srgb, var(--blue-soft) 38%, rgb(255 255 255 / 94%));
  border-color: color-mix(in srgb, var(--blue) 28%, rgb(210 223 227 / 88%));
  box-shadow:
    0 12px 28px rgb(18 30 52 / 8%),
    inset 0 0 0 1px color-mix(in srgb, var(--blue) 12%, transparent);
}

.summary-item:active {
  background: color-mix(in srgb, var(--blue-soft) 56%, rgb(255 255 255 / 94%));
}

.summary-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.summary-copy strong {
  display: inline-flex;
  align-items: baseline;
  gap: .24em;
  color: #172033;
  font-size: .9rem;
  font-weight: 760;
  letter-spacing: -.04em;
}

.summary-copy .summary-number {
  font-size: 1.15rem;
  line-height: 1;
}

.summary-link-icon {
  width: 14px;
  height: 14px;
  margin-left: 0;
}

.today-page > .today-time-card {
  margin-bottom: 12px;
}

.summary-copy small {
  margin-top: 1px;
  font-size: .75rem;
}

.today-focus-card {
  padding: 15px 17px 0;
  border: 4px solid #d94f42;
  border-radius: 20px;
}

.today-focus-task {
  background: #fffaf6;
  border-color: #f0d8c9;
  box-shadow: 0 5px 16px rgb(18 30 52 / 4%);
}

/* Dunkler Akzent wie beim Überfälligkeitsstatus: hält AA-Kontrast auf der
   leicht getönten Fokusfläche. */
.today-focus-task .eyebrow {
  color: #a3471a;
}

.today-focus-notice-heading {
  color: #3d4a5c;
}

.dashboard-grid {
  gap: 18px;
}

.today-focus-card,
.today-tasks-card {
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.today-focus-card {
  padding-bottom: 0;
  border: 4px solid #d94f42;
}

.today-primary-column {
  gap: 18px;
}

.section-heading {
  margin-bottom: 13px;
}

.section-heading h2 {
  color: #172033;
}

.task-list,
.device-list,
.activity-list,
.message-list,
.handover-list,
.maintenance-list {
  background: var(--surface-soft);
}

.task-row,
.device-row,
.activity-row,
.message-row,
.handover-row,
.today-next-row {
  border-color: var(--line);
}

.task-row {
  margin-inline: 0;
  padding: 12px 10px;
  border-radius: var(--record-row-radius);
}

.task-row:hover,
.device-row:hover,
.message-row:hover,
.handover-row:hover {
  background: #f3f6fb;
}

.task-status-mark {
  width: 32px;
  height: 32px;
  border-radius: 11px;
}

.task-title-button strong,
.today-next-title {
  font-weight: 700;
}

.count-badge,
.status-badge,
.type-badge {
  padding: 4px 9px;
  font-weight: 720;
}

.info-card,
.empty-card,
.settings-card,
.room-highlight {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.compact-help-mark {
  background: transparent;
  border-color: var(--line);
}

.compact-help-popover {
  background: rgb(255 255 255 / 98%);
  border-color: var(--line);
}

/* Aufgaben und Verwaltung */
.device-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.filter-bar {
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.chip-button {
  border-color: transparent;
  background: transparent;
}

.chip-button.is-active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 6px 14px rgb(37 99 235 / 22%);
}

.settings-grid {
  gap: 16px;
}

.settings-card,
.room-highlight,
.info-card {
  background: #fff;
  border-radius: 19px;
}

.settings-card {
  padding: 20px;
}

.storage-meter > span {
  background: var(--blue);
}

/* Teamkommunikation */
.team-page .team-communication-shell {
  border-color: var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgb(18 30 52 / 6%);
}

.team-section-pane {
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #f7f9fc;
  border-right-color: var(--line);
  box-shadow: none;
}

.chat-thread-pane-header {
  background: #fff;
}

.chat-thread-row,
.direct-recipient-row {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 4px 12px rgb(18 30 52 / 5%);
}

.chat-thread-row:hover,
.direct-recipient-row:hover {
  background: #f8faff;
  border-color: #b9c7da;
}

.chat-thread-row[aria-current="page"] {
  background: #eaf1ff;
  border-color: rgb(37 99 235 / 28%);
  box-shadow: inset 3px 0 #2563eb, 0 4px 12px rgb(18 30 52 / 5%);
}

.chat-thread-avatar {
  color: #1d55ce;
  background: #eaf1ff;
}

.chat-thread-avatar.is-team {
  color: #08756f;
  background: #e6f7f5;
}

.chat-thread-unread {
  background: #ad352f;
}

.direct-privacy-strip {
  background: #f3f6fb;
  border-bottom-color: var(--line);
}

.team-section-navigation {
  min-height: 0;
}

.team-section-button {
  border-radius: 0;
}

.team-section-button:hover {
  background: #f3f6fb;
}

.team-section-button.is-active {
  background: #eaf1ff;
  box-shadow: inset 0 0 0 1px rgb(37 99 235 / 10%);
}

.team-section-button[data-team-section="announcements"].is-active {
  background: #fff0ed;
  box-shadow: inset 0 0 0 1px rgb(201 69 59 / 10%);
}

.team-section-icon,
.team-thread-avatar {
  color: var(--blue);
  background: #eaf1ff;
}

.team-section-button.is-active .team-section-icon {
  background: #2563eb;
}

.team-section-button[data-team-section="announcements"].is-active .team-section-icon {
  background: #c23f38;
}

.team-section-copy span,
.team-section-meta {
  color: #536273;
}

.team-section-meta .unread-count {
  background: #ad352f;
}

.team-detail-pane,
.team-detail-pane .message-feed.chat-wallpaper,
.handover-board {
  background-color: #eef2f8;
}

.team-detail-pane {
  overflow-anchor: none;
}

.team-detail-pane .message-feed.chat-wallpaper {
  overflow-anchor: none;
  scrollbar-gutter: stable;
}

.team-thread-header {
  min-height: 58px;
  background: rgb(255 255 255 / 97%);
}

.chat-search-toolbar {
  background: rgb(255 255 255 / 97%);
  border-bottom-color: var(--line);
}

.chat-search-field {
  background: #f3f6fb;
  border-color: var(--line);
}

.chat-search-field:focus-within {
  color: #1d55ce;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 13%);
}

.chat-search-clear:hover,
.chat-search-toggle[aria-expanded="true"] {
  color: #1d55ce;
  background: #eaf1ff;
}

.chat-search-highlight {
  background: #fff0a8;
  border-bottom-color: #d8bd52;
}

.team-detail-pane .chat-bubble a.chat-link {
  color: #1749b3;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.team-detail-pane .chat-bubble a.chat-link:hover { color: #123b91; }
.team-detail-pane .chat-bubble a.chat-link:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
  border-radius: 2px;
}

.team-detail-pane .date-divider {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 3px 10px rgb(18 30 52 / 6%);
}

.team-detail-pane .chat-bubble {
  border-color: var(--line);
  border-radius: 7px 16px 16px 16px;
  box-shadow: 0 4px 12px rgb(18 30 52 / 5%);
}

.team-detail-pane .chat-message.is-own .chat-bubble {
  border-color: #c3d7f7;
  border-radius: 16px 7px 16px 16px;
  background: #dcebff;
}

.team-detail-pane .message-read-details-trigger,
.team-detail-pane .message-read-details-trigger .read-ticks {
  color: #1d55ce;
}

.team-detail-pane .message-read-details-trigger:hover,
.team-detail-pane .message-read-details-trigger:focus-visible,
.team-detail-pane .message-read-details-trigger[aria-expanded="true"] {
  color: #174299;
  background: rgb(255 255 255 / 58%);
}

.team-detail-pane .chat-message.is-announcement {
  width: min(86%, 720px);
  max-width: min(86%, 720px);
}

.team-detail-pane .chat-message.is-announcement .chat-bubble {
  width: 100%;
  border-color: #d8d9ee;
  background: #f3f2ff;
}

.team-detail-pane .chat-message.is-announcement.is-own .chat-bubble {
  border-color: #c8d9e5;
  background: #eef0fb;
}

.team-detail-pane .chat-author,
.team-detail-pane .chat-reply-preview strong {
  color: #1d55ce;
}

.team-detail-pane .message-composer {
  position: relative;
  z-index: 3;
  overflow-anchor: none;
  background: transparent;
}

.team-detail-pane .composer-row {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 6px 18px rgb(18 30 52 / 8%);
}

.message-confirmation {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.message-confirmation button,
.message-confirmation > span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.message-confirmation button {
  padding: 0 10px;
  color: #1d55ce;
  border: 0;
  border-radius: 10px;
  background: #eaf1ff;
  cursor: pointer;
  font: inherit;
  font-size: .75rem;
  font-weight: 750;
}

.message-confirmation.is-confirmed button {
  color: #fff;
  background: #2563eb;
}

.message-confirmation > span {
  color: #3d4a5c;
  font-size: .73rem;
  font-weight: 700;
}

.message-confirmation [data-icon] {
  width: 16px;
  height: 16px;
}

.handover-overview,
.handover-toolbar,
.handover-entry {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.user-admin-avatar {
  color: #1d55ce;
  background: #eaf1ff;
  border-radius: 15px;
}

/* Dialoge und Formulare */
#taskDialog,
#faultDecisionDialog {
  --dialog-accent: #a93431;
  --dialog-secondary: #536273;
  --dialog-meta: #536273;
}

.app-dialog {
  background: rgb(255 255 255 / 98%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgb(18 30 52 / 22%);
}

.app-dialog::backdrop {
  background: rgb(16 24 40 / 55%);
}

.dialog-header,
.dialog-footer {
  background: #fff;
}

.dialog-header {
  border-bottom-color: var(--line);
}

.dialog-footer {
  border-top-color: var(--line);
}

input,
select,
textarea {
  border-color: var(--line);
  border-radius: 12px;
  background-color: #f8fafd;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #c9d3e4;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgb(37 99 235 / 10%);
}

.type-option {
  min-height: 82px;
  background: #f8fafd;
  border-color: var(--line);
  border-radius: 15px;
}

.type-option:hover {
  border-color: rgb(37 99 235 / 30%);
  transform: translateY(-1px);
}

.type-option:has(input:checked) {
  color: #1d55ce;
  background: #eaf1ff;
  border-color: rgb(37 99 235 / 45%);
  box-shadow: 0 7px 16px rgb(37 99 235 / 9%);
}

.upload-field {
  background: #f8fafd;
  border-color: var(--line);
  border-radius: 16px;
}

.assistant-tools {
  background: #f2eff8;
  border-color: #ded6ec;
}

.scanner-viewport {
  background: #101828;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 7%);
}

.toast {
  background: #1c2536;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgb(18 30 52 / 28%);
}

@media (max-width: 1100px) {
  :root {
    --sidebar-width: 220px;
  }

  .sidebar-practice-logo {
    width: 150px;
  }

  .brand-product {
    display: grid !important;
    gap: 2px;
  }

  .main-content {
    padding-inline: 28px;
  }

  .summary-item {
    gap: 6px;
  }

  .summary-copy strong {
    font-size: .9rem;
  }

}

@media (min-width: 721px) and (max-width: 1050px) {
  .team-page .team-communication-shell {
    height: calc(100dvh - 182px - var(--nav-band-inset));
  }

  .team-section-pane,
  .team-detail-pane {
    max-height: calc(100dvh - 182px - var(--nav-band-inset));
  }
}

/* Der Teamchat fuellt die Resthoehe; das tiefer sitzende Band gehoert dazu. */
@media (min-width: 1051px) {
  .main-content:has(> .team-page) {
    height: calc(100dvh - 78px - var(--nav-band-inset));
  }
}

@media (max-width: 720px) {
  /* Ohne Seitenleiste gibt es kein gemeinsames Band: die Kopfleiste sitzt
     wieder buendig am oberen Rand ueber die volle Breite. */
  :root {
    --nav-band-inset: 0px;
  }

  .topbar {
    height: calc(68px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 14px 0;
    background: var(--nav-band);
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .app-column::before {
    display: none;
  }

  .mobile-practice-logo {
    width: 104px;
  }

  .topbar-actions {
    height: 52px;
    gap: 1px;
    padding: 3px;
    border-radius: 15px;
  }

  .topbar .icon-button {
    background: transparent;
  }

  .topbar .avatar-button {
    background: #eaf1ff;
  }

  .main-content {
    padding: 16px 13px calc(100px + env(safe-area-inset-bottom));
  }

  .team-page .team-communication-shell {
    height: calc(100dvh - 180px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin-right: -5px;
    margin-left: -5px;
  }

  .team-section-pane,
  .team-detail-pane {
    max-height: calc(100dvh - 180px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .page-header {
    min-height: 0;
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 13px;
    padding: 21px 19px;
    border-radius: 21px;
  }

  .page-header h1 {
    font-size: 1.7rem;
  }

  .page-header p {
    font-size: .84rem;
  }

  .page-header .page-actions {
    width: auto;
    margin-left: auto;
  }

  .page-header .page-actions > button {
    min-width: 46px;
    min-height: 46px;
  }

  .summary-strip {
    gap: 8px;
  }

  .summary-item {
    min-height: 70px;
    grid-template-columns: 28px minmax(0, 1fr) 12px;
    gap: 4px;
    padding: 7px 5px;
    border-radius: 16px;
  }

  .summary-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }

  .summary-copy strong {
    display: grid;
    justify-items: start;
    gap: 0;
    font-size: .78rem;
  }

  .summary-copy .summary-number {
    font-size: 1.18rem;
  }

  .summary-link-icon {
    position: static;
    width: 12px;
    height: 12px;
  }

  .summary-copy small {
    font-size: .67rem;
    line-height: 1.18;
  }

  .dashboard-grid {
    gap: 13px;
  }

  .today-primary-column {
    gap: 13px;
  }

  .today-focus-card,
  .today-tasks-card {
    padding: 16px;
  }

  .today-focus-card {
    padding-bottom: 0;
  }

  .today-focus-notices {
    margin-inline: -16px;
  }


  .bottom-nav {
    inset: auto 8px calc(7px + env(safe-area-inset-bottom)) 8px;
    padding: 6px;
    overflow: visible;
    background: rgb(255 255 255 / 97%);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgb(18 30 52 / 10%);
  }

  .mobile-nav-item {
    min-height: 52px;
    color: #4f5f73;
    border-radius: 14px;
  }

  .mobile-nav-item.is-active {
    color: #1d55ce;
    background: #eaf1ff;
  }

  .mobile-nav-item small {
    color: inherit;
    font-size: .64rem;
  }

  .mobile-nav-item.mobile-create {
    width: 56px;
    height: 56px;
    justify-self: center;
    margin-top: -18px;
    color: #fff;
    background: #c23f38;
    border: 4px solid var(--bg);
    border-radius: 18px;
    box-shadow: 0 10px 23px rgb(194 63 56 / 28%);
  }

  .mobile-nav-item.mobile-create small {
    display: block;
  }

  .filter-bar {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .app-dialog {
    border-radius: 22px 22px 0 0;
  }

  .team-communication-shell {
    border-radius: 20px;
  }
}

/* Ruhige Räumeübersicht nach der freigegebenen 1:1-Referenz. */
.rooms-overview-page {
  --rooms-overview-list-surface: #eef2f8;
  --rooms-overview-row-shadow: 0 4px 12px rgb(18 30 52 / 5%);
}

.rooms-overview-header {
  min-height: 0;
  padding: 20px;
  overflow: visible;
  background: #fff;
  border-color: var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgb(18 30 52 / 6%);
}

.rooms-overview-header h1 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.08;
}

.rooms-overview-header p {
  margin-top: 7px;
  font-size: .75rem;
}

.rooms-overview-scan {
  color: #1d55ce;
  background: #eaf1ff;
  border-color: #cddcf7;
  box-shadow: none;
}

.rooms-overview-scan:hover {
  border-color: rgb(37 99 235 / 32%);
  background: #dde9fd;
  box-shadow: none;
}

.rooms-overview-row {
  min-height: 108px;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  padding: 14px 13px;
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--rooms-overview-row-shadow);
}

.rooms-overview-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.rooms-overview-copy strong {
  font-size: 1.02rem;
  font-weight: 750;
}

.rooms-overview-copy small {
  font-size: .84rem;
}

.rooms-overview-status {
  padding: 5px 9px;
  font-size: .75rem;
}

.rooms-overview-detail,
.rooms-overview-priority {
  font-size: .76rem;
}

.rooms-overview-row:hover {
  border-color: rgb(37 99 235 / 28%);
  box-shadow: 0 8px 18px rgb(18 30 52 / 8%);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .rooms-overview-header {
    padding: 14px 12px 13px;
    border-radius: 16px;
  }

  .rooms-overview-header h1 {
    font-size: 1.42rem;
  }

  .rooms-overview-header p {
    margin-top: 5px;
    font-size: .69rem;
  }

  .rooms-overview-header .page-actions {
    position: static;
    width: auto;
    margin-left: auto;
  }

  .rooms-overview-scan {
    width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .rooms-overview-scan .button-label {
    display: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .rooms-overview-row:hover {
    box-shadow: var(--rooms-overview-row-shadow);
    transform: none;
  }
}

/* Ruhige Raumdetailfläche: dezente Tiefe ohne zusätzliche Laufzeitvariante. */
.room-detail-page {
  --room-list-surface: #eef2f8;
  --room-row-shadow: 0 2px 8px rgb(18 30 52 / 5%);
}

.room-detail-page .room-detail-header {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.room-detail-page .room-record-row {
  border-color: var(--line);
}

.room-detail-page .room-detail-tab:not([aria-selected="true"]),
.room-detail-page .room-detail-header .ghost-button,
.room-detail-page .room-record-copy small,
.room-detail-page .room-record-side,
.room-detail-page .room-record-chevron {
  color: #536273;
}

.room-detail-page .room-urgent-summary,
.room-detail-page .status-badge.urgent {
  color: #96390f;
}

.room-detail-page .status-badge.info {
  color: #1d55ce;
}

.room-detail-page .status-badge.critical {
  color: #a32f2f;
}

.room-detail-page .status-badge.success {
  color: #125f40;
}

.room-detail-page .status-badge.progress,
.room-detail-page .status-badge.technician {
  color: #5d4388;
}

/* Keep the inventory hierarchy readable on the light modern surfaces. */
.inventory-page .page-header > div:first-child > .ghost-button,
.inventory-page .page-header > div:first-child > .eyebrow,
.inventory-page .page-header > div:first-child > p,
.inventory-page .inventory-pane-header p,
.inventory-page .inventory-record-copy small,
.inventory-page .inventory-detail-header .eyebrow,
.inventory-page .inventory-detail-header p,
.inventory-page .inventory-admin-copy small,
.inventory-page .inventory-mobile-back,
.inventory-page .inventory-tab {
  color: #405064;
}

.inventory-page .inventory-admin-row .ghost-button {
  color: #44536b;
}

.task-row .task-meta,
.task-row .task-side {
  color: #3d4a5c;
}

@media (max-width: 390px) {
  .page-header:where(:not(.rooms-overview-header):not(.role-page-header)) {
    display: grid;
  }

  .page-header:where(:not(.rooms-overview-header):not(.role-page-header)) .page-actions {
    position: absolute;
    top: 15px;
    right: 15px;
  }

  .page-header:where(:not(.rooms-overview-header):not(.role-page-header)) .page-actions .button-label {
    display: none;
  }

  .page-header:where(:not(.rooms-overview-header):not(.role-page-header)) .page-actions .primary-button {
    width: 46px;
    padding: 0;
  }

  .page-header:where(:not(.rooms-overview-header):not(.role-page-header)) > div:first-child {
    min-width: 0;
    max-width: 100%;
    padding-right: 48px;
  }

  .summary-icon {
    display: grid;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.external-service-note {
  color: #536273;
  background: #eef3fe;
  border-color: rgb(37 99 235 / 20%);
  border-radius: 13px;
}

.external-service-note > [data-icon] { color: var(--blue); }

.fault-decision-option {
  background: #fff;
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: 0 5px 14px rgb(18 30 52 / 6%);
}

.fault-decision-option:hover {
  background: #fff;
  border-color: rgb(37 99 235 / 30%);
}

.fault-decision-option.is-primary {
  background: #eef7f2;
  border-color: rgb(24 116 79 / 22%);
}

.external-visit-section {
  background: #f8fafd;
  border-color: var(--line);
  border-radius: 18px;
}

.external-visit-card {
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, rgb(104 76 160 / 5%) 9px 13px),
    #fff;
  border-color: rgb(104 76 160 / 25%);
  border-left-color: #7658a7;
  border-radius: 15px;
  box-shadow: 0 7px 18px rgb(18 30 52 / 6%);
}

.external-visit-empty {
  background: #fff;
  border-color: var(--line);
  border-radius: 15px;
}

/* Moderne Ergänzungen für die klare Navigation und Einstellungen */
.nav-group + .nav-group {
  border-top-color: var(--line);
}

.nav-group-label {
  color: #3d4a5c;
}

.settings-menu-pane,
.settings-panel-header,
.settings-panel-content > .settings-card {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.task-area-header {
  background: #fff;
  border-color: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.task-view-switch {
  background: #eef2f8;
  border-color: var(--line);
}

.task-view-button {
  color: #526078;
}

.task-view-button.is-active,
.task-view-button[aria-pressed="true"] {
  color: #1d55ce;
  background: #fff;
}

.task-more-filters,
.task-master-shell {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.task-extra-filter-list button[aria-pressed="true"] {
  color: #1d55ce;
  background: #eaf1ff;
}

.task-more-filter-toggle:hover,
.task-more-filter-toggle[aria-expanded="true"] {
  color: #1d55ce;
  background: #fff;
  border-color: var(--line);
}

.task-area-filter {
  color: #3d4a5c;
  background: #fff;
  border-color: var(--line);
}

.task-search-field input {
  background: #f3f6fb;
  border-color: var(--line);
}

.task-extra-filter-list button {
  border-color: var(--line);
}

.task-master-nav {
  background: #fff;
  border-color: var(--line);
}

.task-master-copy small {
  color: #526078;
}

.task-master-button[aria-pressed="true"] {
  background: #fff;
}

.task-master-detail,
.task-master-detail-heading {
  background: #fff;
  border-color: var(--line);
}

.task-status-pills,
.task-others-toggle {
  border-color: var(--line);
}

.task-status-pills {
  background: #f3f6fb;
}

.task-status-pill:not([aria-selected="true"]) .task-status-count {
  color: #526078;
  background: #fff;
}

.task-status-pill:not([aria-selected="true"]) {
  color: #526078;
}

.task-status-pill[data-task-status="open"][aria-selected="true"] {
  background: #2563eb;
}

.task-status-pill[data-task-status="open"][aria-selected="true"] .task-status-count {
  color: #2563eb;
}

.task-status-pill[data-task-status="done"][aria-selected="true"] {
  background: #278060;
}

.task-status-pill[data-task-status="done"][aria-selected="true"] .task-status-count {
  color: #278060;
}

.task-others-toggle {
  background: #fff;
}

.task-others-toggle:hover:not(:disabled),
.task-others-toggle[aria-pressed="true"] {
  color: #1d55ce;
  background: #eaf1ff;
}

.task-master-detail .task-row {
  margin-inline: 0;
  border-radius: var(--record-row-radius);
}

.task-master-detail .task-row.task-row-calm {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  cursor: default;
}

.task-row-open {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) minmax(82px, auto) 14px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text);
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.task-row-open:hover {
  background: #f3f6fb;
}

.task-row-open:focus-visible {
  outline-offset: -4px;
}

.task-row-calm-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.task-row-calm-copy strong {
  font-size: .92rem;
  font-weight: 720;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.task-row-context {
  color: #526078;
  font-size: .78rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.task-row-state {
  justify-self: end;
  max-width: 150px;
  padding: 4px 8px;
  color: #1d55ce;
  background: #eaf1ff;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 730;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: anywhere;
}

.task-row-state[data-tone="urgent"] {
  color: #a3471a;
  background: #fff0e5;
}

.task-row-state[data-tone="progress"],
.task-row-state[data-tone="technician"] {
  color: #684ca0;
  background: #eee9f8;
}

.task-row-state[data-tone="success"] {
  color: #237052;
  background: #e5f4ec;
}

.task-row-state[data-tone="maintenance"] {
  color: #8d531e;
  background: #fff3df;
}

.task-row-state[data-tone="hygiene"] {
  color: #0f716c;
  background: #e5f5f3;
}

.task-row-calm-chevron {
  width: 14px;
  height: 14px;
  color: #738096;
}

.settings-menu-button.is-active,
.settings-menu-button[aria-pressed="true"] {
  color: #1d55ce;
  background: #eaf1ff;
}

@media (min-width: 721px) and (max-width: 1100px) {
  :root {
    --sidebar-width: 104px;
    --nav-band-inset: 8px;
  }

  .sidebar {
    padding: 14px 8px 11px;
  }

  .practice-brand {
    padding: 8px 4px;
  }

  .brand-product {
    display: flex !important;
  }

  .nav-item {
    padding: 6px 3px;
    font-size: .68rem;
  }

  .nav-item > [data-icon] {
    width: 26px;
    height: 26px;
  }

  .sidebar-create {
    padding: 6px 2px;
    font-size: .66rem;
  }

  .main-content {
    padding-inline: 24px;
  }
}

@media (max-width: 720px) {
  .mobile-nav-item small {
    font-size: .68rem;
  }

  .mobile-nav-item.mobile-create {
    width: 60px;
    height: 60px;
    gap: 0;
    margin-top: -16px;
    padding: 4px 2px;
  }

  .mobile-nav-item.mobile-create small {
    display: block;
    color: inherit;
    font-size: .62rem;
    line-height: 1;
  }

  .task-row-open {
    min-height: 72px;
    grid-template-columns: 28px minmax(0, 1fr) 12px;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 5px 8px;
    padding: 10px;
  }

  .task-row-open .task-status-mark {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .task-row-calm-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .task-row-state {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }

  .task-row-calm-chevron {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

/* ===== Ordina Klar v2 (0.24.0): Symbol-Fakten, Karte „Jetzt“, ruhige Zeilen ===== */

/* Fakten als Symbol plus Wort: Ort, Gerät, Zeit, Person. Nie ein Satz mit
   Trennpunkten; Farbe nur zusammen mit dem Wort (Dringend, Techniker). */
.meta-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 12px;
  color: var(--text-soft);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.35;
}

.meta-fact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.meta-fact > [data-icon],
.meta-fact > [data-icon] svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.meta-fact.is-urgent {
  color: #a3471a;
  font-weight: 700;
}

.meta-fact.is-technician {
  color: #684ca0;
  font-weight: 700;
}

.meta-fact.is-success {
  color: #237052;
  font-weight: 700;
}

.page-header p .meta-facts {
  font-size: .92rem;
}

.page-header h1 {
  margin-bottom: 4px;
}

.page-header p:has(.meta-facts) {
  margin-top: 6px;
}

/* Navigation als eine Liste: Gruppenzeilen bleiben nur für Screenreader. */
.nav-group-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav-group + .nav-group {
  margin-top: 10px;
  padding-top: 10px;
}

/* Heute: Karte „Jetzt“ mit Bestätigung, Arbeitszeit und Fokus. */
.today-focus-card.today-now-card {
  padding: 16px 18px 18px;
  border: 2px solid #c23f38;
  border-radius: 20px;
  box-shadow: var(--shadow-sm), 0 0 0 4px #fff0ee;
}

.today-now-heading {
  margin-bottom: 12px;
}

.today-now-rows {
  display: grid;
  gap: 10px;
}

.today-now-row {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 14px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.today-now-row:hover {
  background: #f3f6fb;
  border-color: #c9d6ea;
}

.today-now-row.today-time-card {
  grid-template-columns: 36px minmax(0, 1fr) 18px;
}

.today-now-row .status-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.today-now-row strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.today-now-row .row-action {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #738096;
}

.today-now-row .row-action svg {
  width: 16px;
  height: 16px;
}

.today-now-count {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  color: var(--text-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: .78rem;
  font-weight: 700;
}

.today-time-copy,
.today-confirmations-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.today-now-rows + .today-focus-task {
  margin-top: 12px;
}

.today-focus-task {
  margin: 0;
  padding: 14px 16px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--record-row-shadow);
}

.today-focus-task .status-icon {
  border-radius: 12px;
}

.today-focus-task .focus-copy {
  display: grid;
  gap: 3px;
}

.today-focus-task .focus-copy .eyebrow {
  margin: 0;
  color: #a3471a;
  font-size: .68rem;
  letter-spacing: .09em;
}

.today-focus-task .focus-copy strong {
  font-size: 1rem;
}

.today-now-empty .empty-card {
  padding: 22px 12px;
}

.today-next-row {
  grid-template-columns: 30px minmax(0, 1fr) 16px;
}

.today-next-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.today-next-title {
  display: block;
}

/* Aufgabenzeilen: Titel plus Symbol-Fakten, Gruppen nach Zeit. */
.task-row-open {
  grid-template-columns: 32px minmax(0, 1fr) 14px;
}

.task-row-calm-copy strong {
  font-size: .95rem;
}

.task-group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px 0 8px 2px;
  color: var(--text-soft);
  font-size: .74rem;
  font-weight: 760;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.task-status-panel > .task-group-title:first-child {
  margin-top: 0;
}

.task-group-count {
  font-weight: 700;
  letter-spacing: 0;
}

.task-group-count::before {
  content: "· ";
}

@media (max-width: 720px) {
  .summary-item {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 8px;
    padding: 10px 12px;
  }

  .summary-copy strong {
    display: inline-flex;
    align-items: baseline;
    justify-items: start;
    gap: .25em;
    font-size: .9rem;
  }

  .summary-copy .summary-number {
    font-size: 1rem;
  }

  .summary-link-icon {
    display: none;
  }

  .today-focus-card.today-now-card {
    padding: 14px 14px 16px;
  }

  .today-focus-task {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .today-focus-task .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .today-now-row {
    padding: 10px 12px;
  }
}

/* Chat ohne eigenen Seitenkopf: die Kommunikationsfläche füllt die Seite allein. */
.main-content:has(> .team-page) > .team-page {
  grid-template-rows: minmax(0, 1fr);
}


/* Vorgangsdialog: Symbol plus Wort je Zeile, kurze Beschreibung, ruhige Wege,
   genau eine rote Handlung in der Fußzeile. */
.task-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
}

.fact-row .fact-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--blue);
  background: var(--surface-soft);
  border-radius: 9px;
}

.fact-row .fact-icon svg {
  width: 17px;
  height: 17px;
}

.fact-row.is-urgent .fact-icon {
  color: #a3471a;
  background: #fff0e5;
}

.fact-row.is-technician .fact-icon {
  color: #684ca0;
  background: #eee9f8;
}

.fact-row.is-success .fact-icon {
  color: #237052;
  background: #e5f4ec;
}

.fact-row .fact-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  overflow-wrap: anywhere;
}

.fact-row .fact-copy small {
  color: var(--text-soft);
  font-size: .8rem;
  font-weight: 600;
}

#taskDialog .task-detail-status {
  display: block;
  margin-bottom: 14px;
}

#taskDialog .task-detail-description {
  margin: 0 0 14px;
  color: #172138;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

#taskDialog .task-detail-description.is-empty {
  color: var(--text-soft);
  font-weight: 500;
}

#taskDialog .task-detail-description.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#taskDialog .task-description-toggle {
  min-height: 36px;
  margin: -8px 0 14px;
  padding-inline: 2px;
}

#taskDialog .task-flow-summary {
  gap: 12px;
  padding: 14px;
}

#taskDialog .task-flow-summary .task-detail-description {
  margin-bottom: 0;
}

#taskDialog .task-flow-summary .task-description-toggle {
  margin: -4px 0 0;
}

#taskDialog .task-detail-actions {
  margin: 0 0 14px;
}

.task-flow-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 8px;
}

.task-flow-links .ghost-button {
  min-height: 44px;
  padding-inline: 4px;
}

.task-flow-links .is-danger {
  color: #a93531;
}

.task-visit-facts {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #f6f2fc;
  border: 1px solid #e3d9f3;
  border-radius: 13px;
}

.task-activity {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.task-activity > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.task-activity > summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 160ms ease;
}

.task-activity[open] > summary::before {
  transform: rotate(45deg);
}

.task-activity .activity-list {
  margin-top: 6px;
}

#taskDialog .dialog-footer .primary-button {
  flex: 1 1 auto;
}

#taskDialog .task-flow-choice-list + .task-flow-links {
  margin-top: 4px;
}

@media (max-width: 720px) {
  .fact-row {
    min-height: 40px;
  }
}

#taskDialog .task-description-toggle,
#taskDialog .task-flow-summary .task-description-toggle {
  justify-self: start;
}

/* Aufgaben (Klar v2): Bereichswahl ohne Kopfzeile und Hilfe, Fakten als
   Symbol plus Wort, Filterknopf nur als Symbol. */
.task-area-header .task-area-filter {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.task-master-nav {
  padding-top: var(--record-list-inset);
}

.task-master-copy .meta-facts {
  margin-top: 3px;
  font-size: .78rem;
}

.task-master-copy .meta-fact [data-icon] svg {
  width: 13px;
  height: 13px;
}

#taskMasterDetailDescription .meta-facts {
  font-size: .86rem;
}


/* Melden als Gespräch (Klar v2): Frage als Blase, Antworten als Chips,
   bisherige Antworten als blaue Blasen mit „Ändern“, genau eine rote
   Handlung in der Fußzeile. Auf größeren Breiten ein 480 Pixel breites Blatt;
   mobil füllt das Gespräch den Bildschirm (Regel im Mobilblock weiter unten). */
.simple-report-dialog {
  width: min(480px, calc(100% - 28px));
  max-width: 480px;
}

.simple-report-header {
  padding: 12px 14px 10px;
}

.simple-report-progress-row {
  margin-top: 8px;
}

.simple-report-body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px 16px 22px;
  background: #f3f6fb;
}

.simple-report-transcript {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.simple-report-transcript[hidden] {
  display: none;
}

.simple-transcript-item {
  max-width: 94%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: 18px 6px 18px 18px;
  color: #fff;
  background: #2b5fd9;
}

.simple-transcript-label {
  grid-column: 1;
  font-size: .76rem;
  font-weight: 700;
}

.simple-transcript-answer {
  grid-column: 1;
  font-size: .98rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.simple-transcript-edit {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgb(0 0 0 / 22%);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.simple-transcript-edit:hover {
  background: rgb(0 0 0 / 34%);
}

.simple-transcript-edit:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.simple-report-step {
  gap: 14px;
}

.simple-question-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.simple-question-header > details {
  flex: 0 0 auto;
}

@media (min-width: 721px) {
  .simple-report-panel {
    min-height: min(640px, calc(100dvh - 28px));
  }
}

.simple-question-header h3 {
  min-width: 0;
  max-width: 94%;
  flex: 0 1 auto;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #dde5f0;
  border-radius: 18px 18px 18px 6px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 2px 8px rgb(23 33 56 / 6%);
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.simple-choice-grid,
.simple-choice-grid.simple-choice-grid-two {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.simple-choice-card {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 4px 6px;
  border-color: #b9c4d6;
  border-radius: 999px;
  background: #fff;
}

.simple-choice-card > .status-icon,
.simple-choice-card > .simple-quantity-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.simple-choice-card > .status-icon svg {
  width: 17px;
  height: 17px;
}

.simple-choice-card > span:nth-of-type(2) {
  display: block;
}

.simple-choice-card strong {
  font-size: .98rem;
  font-weight: 700;
}

.simple-choice-card small {
  display: none;
}

.simple-choice-check {
  width: 0;
  height: 0;
  overflow: hidden;
  border: 0;
}

.simple-choice-card:has(input:checked) .simple-choice-check {
  width: 20px;
  height: 20px;
}

.simple-choice-card:has(input:checked) {
  border-color: #2b5fd9;
  background: #e8f0ff;
}

.simple-composer textarea,
.simple-composer input {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 1rem;
}

.simple-composer small {
  color: var(--text-soft);
  font-weight: 600;
}

.simple-photo-card {
  min-height: 92px;
  background: #fff;
}

.simple-material-scanner {
  padding: 12px;
  border-radius: 18px;
  background: #fff;
}

.simple-report-review {
  border-radius: 18px 18px 18px 6px;
  box-shadow: 0 2px 8px rgb(23 33 56 / 6%);
}

.simple-review-row {
  grid-template-columns: 92px minmax(0, 1fr) auto;
}

.simple-review-edit {
  min-width: 44px;
  padding-inline: 8px;
}

.simple-proof-requirement {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.simple-report-footer {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.simple-report-footer .primary-button {
  min-width: 128px;
  margin-left: auto;
}

.simple-report-more {
  min-height: 44px;
  padding-inline: 6px;
}

.simple-report-success {
  padding: 24px 0;
}

/* Übergabe-Neuanlage: freigegebene Referenz ordina-uebergabe-gefuehrt-v1. */
.simple-report-dialog.is-handover,
.simple-handover-discard {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: normal;
  background: #fff;
  box-shadow: 0 14px 40px #121e341f;
}
.simple-report-dialog.is-handover::backdrop,
.simple-handover-discard::backdrop {
  background: rgb(23 32 51 / 42%);
  backdrop-filter: none;
}
.is-handover .simple-report-panel {
  height: min(760px, calc(100dvh - 28px));
  min-height: 0;
  max-height: none;
}
.is-handover .simple-report-header { padding: 12px 14px 10px; }
.is-handover .simple-report-heading-lockup { justify-content: center; }
.is-handover #simpleReportTitle { margin: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: normal; }
.is-handover .simple-report-progress-row { display: flex; justify-content: flex-end; }
.is-handover .simple-report-progress-row > span { font-size: .78rem; font-weight: 800; }
.is-handover .simple-question-header h3 { font-weight: 700; }
.is-handover .simple-handover-kind { display: flex; gap: 8px; padding: 10px 16px; }
.is-handover .simple-transcript-answer { white-space: pre-wrap; letter-spacing: normal; }
.is-handover .simple-transcript-label { letter-spacing: normal; }
.is-handover .simple-transcript-edit { box-shadow: none; }
.is-handover .simple-choice-card { max-width: 100%; box-shadow: none; }
.is-handover .simple-choice-card strong { font-size: 1rem; letter-spacing: normal; overflow-wrap: anywhere; }
.is-handover .simple-choice-card > span:nth-of-type(2) { min-width: 0; }
.is-handover .simple-choice-card > .status-icon { background: #edf2fc; color: #245dcc; }
.is-handover .simple-choice-check { display: none; border: 0; }
.is-handover .simple-choice-card:has(input:checked) .simple-choice-check { display: flex; flex: none; }
.simple-handover-composer input,
.simple-handover-composer textarea {
  display: block; width: 100%; min-width: 0; padding: 12px 14px;
  border: 1px solid #b9c4d6; border-radius: 16px; background: #fff;
  font: inherit; font-size: 1rem; line-height: 1.5; box-shadow: none;
}
.simple-handover-composer textarea { min-height: 160px; max-height: 360px; resize: vertical; }
.simple-handover-composer input::placeholder,
.simple-handover-composer textarea::placeholder { color: #526078; opacity: 1; }
.simple-handover-composer [aria-invalid="true"] { border-color: #c23f38; }
.simple-handover-length { display: flex; justify-content: flex-end; margin-top: 6px; font-size: 13px; color: #3d4a5c; }
.is-handover .simple-review-row { grid-template-columns: 70px minmax(0, 1fr) 44px; }
.is-handover .simple-review-label { padding-top: 11px; }
.is-handover .simple-review-value { white-space: pre-wrap; font-weight: 700; padding-top: 9px; }
.is-handover .simple-review-edit { margin: 0; padding: 0; width: 44px; height: 44px; border-radius: 12px; box-shadow: none; color: #245dcc; }
.simple-handover-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: #3d4a5c; font-size: 14px; }
.simple-handover-note > svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.is-handover .form-error { margin: 0; padding: 10px 12px; border: 1px solid #c23f38; border-radius: 12px; background: #fff0ee; color: #962b25; font-weight: 600; }
.is-handover .simple-report-success { min-height: 390px; padding: 0; gap: 14px; align-content: center; }
.is-handover .simple-report-success h3 { margin: 0; font-size: 26px; letter-spacing: normal; }
.is-handover .simple-report-success [role="status"] { display: contents; }
.is-handover .simple-success-mark { background: #0f7345; }
.is-handover .simple-success-summary,
.is-handover .simple-report-success > button { display: none; }
.is-handover .primary-button,
.simple-handover-discard button { min-height: 48px; padding: 10px 18px; border: 1px solid transparent; border-radius: 12px; font: inherit; font-weight: 800; letter-spacing: normal; box-shadow: none; }
.is-handover .primary-button svg { width: 20px; height: 20px; }
.app-dialog.simple-handover-discard { width: min(360px, calc(100% - 32px)); margin: auto; padding: 24px; border: 1px solid var(--line); border-radius: 22px; }
.simple-handover-discard h2 { margin: 0 0 20px; font-size: 20px; font-weight: 700; letter-spacing: normal; }
.simple-handover-discard-actions { display: grid; gap: 10px; }
.simple-handover-discard .secondary-button { border-color: #b9c4d6; background: #fff; }
.is-handover :is(button,input,textarea):focus-visible,
.simple-handover-discard button:focus-visible { outline: 3px solid #2b5fd9; outline-offset: 3px; }
.is-handover .simple-transcript-edit:focus-visible { outline-color: #fff; }
.is-handover .simple-choice-card:has(input:focus-visible) { outline: 3px solid #2b5fd9; outline-offset: 3px; }
.is-handover .simple-choice-card input:focus-visible { outline: none; }
@media (max-width: 720px) {
  .simple-report-dialog.is-handover { border: 0; border-radius: 0; height: 100dvh; }
  .is-handover .simple-report-panel { height: 100dvh; }
}
@media (forced-colors: active) {
  .is-handover .simple-transcript-item,
  .is-handover .primary-button { border: 1px solid CanvasText; }
}

@media (max-width: 720px) {
  /* Mobil füllt das Gespräch die volle Breite (docs/UI_UX.md). Das Blatt für
     größere Breiten darf die Vollbreite aus styles.css hier nicht überschreiben,
     sonst bleibt rechts ein 28 Pixel breiter Streifen frei (0.27.1). */
  .simple-report-dialog {
    width: 100%;
    max-width: none;
  }

  .simple-report-body {
    padding: 16px 12px 20px;
  }

  .simple-transcript-item,
  .simple-question-header h3 {
    max-width: 100%;
  }
}


/* Untertexte (Klar v2): Materialzeilen nennen Person und Zeit als Fakten. */
.material-order-copy .material-order-meta.meta-facts {
  margin-top: 4px;
  font-size: .84rem;
}


/* Räume (Klar v2): Kacheln mit Name, Statuswort mit Farbpunkt und Fakten. */
.rooms-overview-row {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.rooms-overview-row[data-room-attention="true"] {
  border-color: #e0893a;
  box-shadow: var(--rooms-overview-row-shadow), 0 0 0 3px #fff0e5;
}

.rooms-overview-copy,
.rooms-overview-state {
  align-self: stretch;
  min-width: 0;
}

.rooms-overview-copy strong {
  font-size: 1.15rem;
  font-weight: 730;
  line-height: 1.15;
  letter-spacing: -.02em;
  hyphens: auto;
}

.rooms-overview-state {
  display: grid;
  gap: 5px;
}

.rooms-overview-state > * {
  min-width: 0;
}

.rooms-overview-status,
.rooms-overview-status[data-tone] {
  width: auto;
  max-width: 100%;
  gap: 8px;
  padding: 0;
  color: var(--text);
  background: none;
  border-radius: 0;
  font-size: .95rem;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
}

.rooms-overview-status::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #b9c4d4;
}

.rooms-overview-status[data-tone="ready"]::before { background: #16815e; }
.rooms-overview-status[data-tone="fault"]::before,
.rooms-overview-status[data-tone="out"]::before { background: #c23f38; }
.rooms-overview-status[data-tone="maintenance"]::before { background: #d97a1f; }
.rooms-overview-status[data-tone="technician"]::before { background: #684ca0; }
.rooms-overview-status[data-tone="info"]::before { background: #2f68ed; }

.rooms-overview-detail,
.rooms-overview-priority {
  font-size: .84rem;
  font-weight: 600;
}

.rooms-overview-meta {
  display: block;
  margin-top: 2px;
}

.rooms-overview-meta .meta-facts {
  font-size: .84rem;
  overflow-wrap: anywhere;
}

.rooms-overview-meta .meta-fact {
  min-width: 0;
  white-space: normal;
}

@media (max-width: 720px) {
  .rooms-overview-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rooms-overview-row {
    min-height: 120px;
    gap: 12px;
    padding: 14px;
  }

  .rooms-overview-copy strong {
    font-size: 1.05rem;
  }
}

@media (max-width: 359px) {
  .rooms-overview-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Melden (Klar v2): runder roter Knopf in der Mitte der Fußleiste, Seitenleiste
   mit vollbreitem Knopf. */
.sidebar-create {
  min-height: 52px;
  margin: 18px 0 8px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 720;
}

@media (max-width: 720px) {
  .bottom-nav {
    grid-template-columns: 1fr 1fr 76px 1fr 1fr;
    align-items: end;
  }

  .mobile-nav-item.mobile-create {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    gap: 0;
    align-self: center;
    justify-self: center;
    margin: -22px auto 0;
    padding: 0;
    color: #fff;
    background: #c23f38;
    border: 3px solid #f4f7fc;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgb(194 63 56 / 35%);
  }

  .mobile-nav-item.mobile-create svg {
    width: 26px;
    height: 26px;
  }

  .mobile-nav-item.mobile-create small {
    display: none;
  }
}


/* Gespräch (Klar v2): nur „n von m“ statt Balken, Foto als Knopf am Textfeld. */
.simple-report-progress-row {
  justify-content: end;
}

.simple-report-progress-row progress {
  display: none;
}

.simple-composer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.simple-photo-card.simple-composer-photo {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 4px 6px;
  border: 1.5px solid #b9c4d6;
  border-radius: 999px;
  background: #fff;
}

.simple-photo-card.simple-composer-photo > .status-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.simple-photo-card.simple-composer-photo strong {
  font-size: .98rem;
  font-weight: 700;
}

.simple-photo-card.simple-composer-photo .simple-photo-name {
  grid-column: auto;
  max-width: 180px;
  overflow: hidden;
  color: var(--text-soft);
  font-size: .8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Vorgangsdialog: Gerätezeile führt in die Geräteakte. */
.fact-row-link {
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.fact-row-link .fact-chevron {
  margin-left: auto;
  color: var(--text-soft);
}

.fact-row-link .fact-chevron svg {
  width: 16px;
  height: 16px;
}

.fact-row-link:hover .fact-copy > span:first-child {
  text-decoration: underline;
}

/* Hinweise: Titel und Symbol-Fakten statt Erklärzeile. */
.notification-entry-copy .meta-facts {
  margin-top: 3px;
  font-size: .82rem;
}

.notification-entry-copy p {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: .86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Aufgaben und Bestellliste (Klar v2): eine Karte mit Pillen und Liste. */
.tasks-card,
.material-orders-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.task-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  color: #3d4a5c;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.task-pill:hover {
  border-color: #b9c4d6;
}

.task-pill-count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  color: #3d4a5c;
  background: #eef2f8;
  border-radius: 999px;
  font-size: .78rem;
}

.task-pill[aria-pressed="true"] {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
}

.task-pill[data-task-filter="urgent"][aria-pressed="true"] {
  background: #c23f38;
  border-color: #c23f38;
}

.task-pill[data-task-filter="technician"][aria-pressed="true"] {
  background: #684ca0;
  border-color: #684ca0;
}

.task-pill[data-task-filter="done"][aria-pressed="true"],
.task-pill[data-material-filter="ordered"][aria-pressed="true"] {
  background: #278060;
  border-color: #278060;
}

.task-pill[aria-pressed="true"] {
  --task-pill-color: #2563eb;
}

.task-pill[data-task-filter="urgent"][aria-pressed="true"] {
  --task-pill-color: #c23f38;
}

.task-pill[data-task-filter="technician"][aria-pressed="true"] {
  --task-pill-color: #684ca0;
}

.task-pill[data-task-filter="done"][aria-pressed="true"],
.task-pill[data-material-filter="ordered"][aria-pressed="true"] {
  --task-pill-color: #278060;
}

.task-pill[aria-pressed="true"] .task-pill-count {
  color: var(--task-pill-color);
  background: #fff;
}

.tasks-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 22px rgb(18 30 52 / 6%);
}

.task-row-calm-copy .meta-fact {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.task-row-calm-copy .meta-fact > span:last-child { min-width: 0; }

@media (max-width: 720px) {
  .tasks-card,
  .material-orders-card {
    padding: 10px;
  }
}

.tasks-card .task-search-field {
  margin: 0;
}

.tasks-card .task-status-panel {
  display: grid;
  gap: 10px;
}

.tasks-card .task-status-panel > .task-list,
.material-orders-card .material-orders-list {
  padding: var(--record-list-inset);
  background: #eef2f8;
  border-radius: 17px;
}

.tasks-card .empty-card,
.material-orders-empty {
  min-height: 180px;
}

.material-orders-list [data-material-order-row][hidden] {
  display: none;
}

/* Klar v2: Vorgangsblatt – Fotozeile bei Fotopflicht und Notiz für die Wartungshistorie */
.task-photo-ask { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px; margin-top: 4px; padding: 8px 8px 8px 14px; border: 1px solid var(--line, #dde5f0); border-radius: 14px; background: var(--surface-soft, #eff3fa); }
.task-photo-ask.is-needed { border-color: var(--brand, #c23f38); background: var(--brand-soft, #fff0ee); }
.task-photo-ask.has-photo { border-color: #bfe3cf; background: #e8f7ef; }
.task-photo-ask-text { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; font-size: .95rem; }
.task-photo-ask-text [data-icon] { width: 18px; height: 18px; color: var(--blue, #2563eb); }
.task-photo-ask-file { display: inline-flex; align-items: center; gap: 6px; color: #0f7345; font-weight: 640; font-size: .9rem; overflow-wrap: anywhere; }
.task-photo-ask-file [data-icon] { width: 16px; height: 16px; }
.task-photo-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line, #dde5f0); border-radius: 999px; background: #fff; color: var(--text, #172033); font-weight: 700; cursor: pointer; }
.task-photo-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.task-photo-chip [data-icon] { width: 18px; height: 18px; color: var(--blue, #2563eb); }
.task-photo-chip:focus-within { outline: 2px solid var(--blue, #2563eb); outline-offset: 2px; }
.task-privacy-line { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--text-soft, #3d4a5c); font-size: .82rem; }
.task-privacy-line [data-icon] { width: 14px; height: 14px; }
.task-note-ask { margin-top: 8px; }

/* Klar v2: Geräteakte als gestapelte Karten ohne Tabs */
.device-page .device-card { margin-top: 12px; padding: 14px 16px 16px; background: #fff; border: 1px solid var(--line, #dde5f0); border-radius: 20px; box-shadow: 0 1px 2px rgb(18 30 52 / 6%), 0 10px 26px rgb(18 30 52 / 6%); }
.device-page .device-card > .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin: 0 0 8px; }
.device-page .device-card > .section-heading h2 { margin: 0; font-size: 1.02rem; }
.device-page .device-status-card { display: block; padding: 0; border: 0; box-shadow: none; background: transparent; }
.device-status-row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 4px 4px 0; }
.device-status-row .status-icon { width: 36px; height: 36px; flex: none; }
.device-status-row-copy { flex: 1; min-width: 0; font-size: .96rem; }
.device-status-tasks { margin-top: 10px; }
.device-data { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 20px; margin: 0; }
.device-data div { display: grid; gap: 2px; min-width: 0; }
.device-data dt { color: var(--text-soft, #3d4a5c); font-size: .8rem; }
.device-data dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.device-page #deviceMaintenancePanel .section-heading h2 { font-size: 1.02rem; }

/* Klar v2: Mitteilungen als Karte mit Tabs und Zeilen */
.communications-card { margin-top: 12px; padding: 12px; background: #fff; border: 1px solid var(--line, #dde5f0); border-radius: 20px; box-shadow: 0 1px 2px rgb(18 30 52 / 6%), 0 10px 26px rgb(18 30 52 / 6%); }
.communications-tabs { margin: 2px 0 10px; }
.communications-tabs .task-pill[aria-selected="true"] { color: #2452c8; background: #e8effd; border-color: #cfdcf9; }
.communications-tabs .task-pill[aria-selected="true"] .task-pill-count { background: #fff; }
.communications-rows { display: grid; gap: 8px; padding: 8px; background: var(--room-list-surface, #eef2f9); border-radius: 16px; }
.communications-rows .empty-card { background: transparent; box-shadow: none; }
.communications-row { display: grid; gap: 6px; padding: 12px 14px; background: #fff; border: 1px solid var(--line, #dde5f0); border-radius: 13px; box-shadow: 0 1px 3px rgb(18 30 52 / 5%); }
.communications-row.is-archived { background: #f4f7fc; }
.communications-row > .eyebrow { color: #7452c8; }
.communications-row-title { font-size: 1rem; }
.communications-row-body { margin: 0; color: var(--text, #172033); line-height: 1.45; }
.communications-row-body.is-primary { font-weight: 640; font-size: 1rem; }
.communications-row-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
.communications-row-foot .primary-button { min-height: 44px; }
.communications-confirm-line { display: inline-flex; align-items: center; gap: 6px; color: #0f7345; font-weight: 640; font-size: .9rem; }
.communications-confirm-line [data-icon] { width: 16px; height: 16px; }
.communications-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; background: #eef2f9; color: var(--text-soft, #3d4a5c); font-size: .82rem; font-weight: 640; }
.communications-card .communications-archive-control { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 18px; padding: 10px 4px 2px; }
.communications-card .communications-archive-control .message-archive-toggle { width: auto; justify-content: flex-start; background: transparent; border: 0; box-shadow: none; }
.communications-card .communications-archive-control .message-archive-toggle .archive-count { background: #eef2f9; color: inherit; }
.communications-archive { margin-top: 8px; }

/* Klar v2: Kalender als Wochenkarte – nur die Woche, Einträge als Zeilen */
.calendar-page,
.calendar-page > * { min-width: 0; }
.calendar-page { width: 100%; max-width: 100%; }
.calendar-shell { container: calendar / inline-size; padding: 16px; background: #fff; border: 1px solid var(--line, #dde5f0); border-radius: 20px; box-shadow: var(--shadow-sm); }
.calendar-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin: 0; padding: 0 0 16px; border: 0; }
.calendar-navigation { display: flex; align-items: center; gap: 4px; }
.calendar-navigation .calendar-anchor-button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: var(--text, #172033); background: #fff; border: 1px solid var(--line, #dde5f0); border-radius: 12px; box-shadow: none; }
.calendar-navigation .calendar-anchor-button:hover { background: #f4f7fc; }
.calendar-navigation .calendar-anchor-button [data-icon] { width: 18px; height: 18px; }
.calendar-navigation .calendar-today-button { width: auto; padding: 0 14px; font-weight: 640; }
.calendar-range { flex: 1; margin: 0; font-size: 17px; font-weight: 730; letter-spacing: -.02em; }
.calendar-print-button { min-height: 44px; }
.calendar-panel { display: grid; }
.calendar-mobile-day-picker { display: none; }
.calendar-week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 8px; background: #eef2f9; border: 1px solid var(--line, #dde5f0); border-radius: 16px; }
.calendar-day { min-width: 0; min-height: 220px; display: grid; align-content: start; gap: 8px; padding: 10px; background: #fff; border: 1px solid var(--line, #dde5f0); border-radius: 13px; }
.calendar-day.is-today { border-color: #cfdcf9; border-top: 3px solid #2563eb; }
.calendar-day-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 6px; }
.calendar-day-header h2 { flex: 1 1 auto; margin: 0; font-size: 14px; font-weight: 700; }
.calendar-day-count { flex: 0 0 auto; color: #3d4a5c; font-size: 12px; white-space: nowrap; }
.calendar-day-tasks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.calendar-day-empty { color: #3d4a5c; font-size: 13px; }
.calendar-entry { width: 100%; min-width: 0; min-height: 44px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 3px; padding: 8px 10px; color: var(--text, #172033); background: #eef2f9; border: 1px solid var(--line, #dde5f0); border-radius: 10px; font: inherit; text-align: left; cursor: pointer; }
.calendar-entry:hover { background: #fff; border-color: #cfdcf9; }
.calendar-entry:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.calendar-entry-kind { display: inline-flex; min-width: 0; align-items: center; gap: 6px; color: #3d4a5c; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.calendar-entry strong { font-size: 14px; font-weight: 640; overflow-wrap: anywhere; }
.calendar-entry .meta-facts { gap: 2px 10px; font-size: 12px; }
.calendar-entry .meta-facts .meta-fact { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.calendar-entry .meta-fact > span:last-child { min-width: 0; }
.calendar-entry .meta-facts .meta-fact [data-icon] { width: 13px; height: 13px; }
.calendar-entry.is-done { background: #fff; border-style: dashed; }
.calendar-entry.is-done strong { color: #3d4a5c; font-weight: 600; }
.calendar-entry.is-overdue .calendar-entry-kind { color: #a3471a; }
.calendar-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }
.calendar-dot.is-task,
.calendar-dot.is-hygiene { background: #0f7345; }
.calendar-dot.is-maintenance,
.calendar-dot.is-technician { background: #7452c8; }
.calendar-dot.is-fault { background: #c2410c; }

@media (max-width: 720px) {
  .calendar-shell { padding: 12px; }
  .calendar-heading { padding-bottom: 12px; }
  .calendar-range { flex-basis: 100%; order: 3; font-size: 16px; }
  .calendar-mobile-day-picker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 0 0 12px; }
  .calendar-mobile-day { display: grid; justify-items: center; gap: 2px; min-height: 56px; padding: 6px 0; color: #3d4a5c; background: #fff; border: 1px solid var(--line, #dde5f0); border-radius: 12px; font: inherit; font-size: 12px; cursor: pointer; }
  .calendar-mobile-day strong { color: var(--text, #172033); font-size: 15px; }
  .calendar-mobile-day.has-items { box-shadow: inset 0 -3px 0 #2563eb; }
  .calendar-mobile-day[aria-pressed="true"] { color: #2452c8; background: #e8effd; border-color: #cfdcf9; }
  .calendar-mobile-day[aria-pressed="true"] strong { color: #2452c8; }
  .calendar-week-grid { grid-template-columns: minmax(0, 1fr); }
  .calendar-week-grid .calendar-day:not(.is-mobile-active) { display: none; }
  .calendar-day { min-height: 160px; }
}

@media (max-width: 340px) {
  .calendar-mobile-day-picker { grid-template-columns: repeat(7, minmax(44px, 1fr)); overflow-x: auto; scrollbar-width: none; }
}

@media (min-width: 721px) and (max-width: 1099px) {
  .calendar-week-grid { grid-template-columns: minmax(0, 1fr); }
  .calendar-day { min-height: 0; }
  .calendar-day-tasks { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* Das Aufgabenblatt verkleinert die Arbeitsfläche ohne Viewport-Resize.
   Bei wenig Platz dieselben Tageszeilen wie auf dem Tablet verwenden. */
@media screen and (min-width: 721px) {
  @container calendar (max-width: 900px) {
    .calendar-week-grid { grid-template-columns: minmax(0, 1fr); }
    .calendar-day { min-height: 0; }
    .calendar-day-tasks { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
  }
}

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  .calendar-page .task-area-header,
  .calendar-navigation,
  .calendar-print-button,
  .calendar-mobile-day-picker { display: none !important; }
  .calendar-shell { padding: 0; border: 0; box-shadow: none; }
  .calendar-heading { padding-bottom: 6px; }
  .calendar-range { font-size: 12pt; }
  .calendar-week-grid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; gap: 3px; padding: 0; background: #fff; border: 0; border-radius: 0; }
  .calendar-week-grid .calendar-day { display: grid !important; min-height: 0; gap: 3px; padding: 4px; border: 1px solid #999; border-radius: 0; box-shadow: none; }
  .calendar-day-header h2 { font-size: 8pt; }
  .calendar-day-count,
  .calendar-day-empty { font-size: 7pt; }
  .calendar-day-tasks { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .calendar-entry { gap: 1px; padding: 3px 4px; color: #111; background: #fff; border: 1px solid #bbb; border-radius: 0; break-inside: avoid; }
  .calendar-entry strong { font-size: 7.5pt; }
  .calendar-entry-kind,
  .calendar-entry .meta-facts { color: #333; font-size: 6.5pt; }
  .calendar-entry.is-done { border-style: solid; }
}

/* Klar v2: Arbeitszeit und Teamzeiten als Karten */
.time-page,
.time-page > * { min-width: 0; }
.time-page { width: 100%; max-width: 100%; }
.time-stack { display: grid; gap: 12px; margin-top: 12px; }
.time-card { padding: 16px; background: #fff; border: 1px solid var(--line, #dde5f0); border-radius: 20px; box-shadow: var(--shadow-sm); }
.time-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.time-card-head h2 { margin: 0; font-size: 1.05rem; }
.time-back-link { justify-self: start; }
.time-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.time-hero-icon { width: 56px; height: 56px; display: grid; place-items: center; flex: 0 0 auto; color: #2452c8; background: #e8effd; border-radius: 16px; }
.time-hero-icon.tone-success { color: #0f7345; background: #e8f7ef; }
.time-hero-icon.tone-warning { color: #b6470d; background: #fff0e6; }
.time-hero-icon.tone-urgent { color: #c93636; background: #feebeb; }
.time-hero-icon [data-icon],
.time-hero-icon svg { width: 28px; height: 28px; }
.time-hero-copy { flex: 1 1 200px; min-width: 0; display: grid; gap: 4px; }
.time-hero-copy h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.time-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.time-hero-actions .primary-button,
.time-hero-actions .secondary-button { min-height: 44px; }
.time-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.time-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line, #dde5f0); border-radius: 13px; }
.time-step-num { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; color: #2452c8; background: #e8effd; border-radius: 50%; font-size: 14px; font-weight: 760; }
.time-step-num [data-icon] { width: 16px; height: 16px; }
.time-step.is-current { border-color: #cfdcf9; box-shadow: inset 0 0 0 1px #cfdcf9; }
.time-step.is-done .time-step-num { color: #0f7345; background: #e8f7ef; }
.time-step.is-unavailable .time-step-num { color: #b6470d; background: #fff0e6; }
.time-step strong { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.time-step strong [data-icon] { width: 18px; height: 18px; color: #3d4a5c; }
.time-bookings { display: grid; gap: 8px; margin: 0; padding: 8px; list-style: none; background: #eef2f9; border: 1px solid var(--line, #dde5f0); border-radius: 16px; }
.time-booking { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 52px; padding: 8px 12px; background: #fff; border: 1px solid var(--line, #dde5f0); border-radius: 13px; }
.time-booking time { width: 56px; font-variant-numeric: tabular-nums; font-weight: 700; }
.time-booking strong { flex: 1; font-weight: 640; }
.time-booking > span { color: #3d4a5c; font-size: 14px; }
.time-booking.is-corrected > span { color: #b6470d; font-weight: 640; }
.time-hours { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.time-week-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: end; height: 130px; padding: 0 4px; }
.time-week-bar { display: grid; justify-items: center; gap: 6px; align-self: end; }
.time-week-bar i { display: block; width: 100%; max-width: 44px; background: #e8effd; border: 1px solid #cfdcf9; border-radius: 8px 8px 4px 4px; }
.time-week-bar.is-today i { background: #2563eb; border-color: #2563eb; }
.time-week-bar span { color: #3d4a5c; font-size: 12px; }
.time-week-bar b { font-size: 12px; font-variant-numeric: tabular-nums; }
.time-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.time-actions .secondary-button { min-height: 44px; }
.time-alerts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.time-alert { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line, #dde5f0); border-radius: 12px; }
.time-alert [data-icon] { width: 18px; height: 18px; flex: 0 0 auto; color: #b6470d; }
.time-alert.is-violation [data-icon] { color: #c93636; }
.time-alert strong { flex: 1; font-weight: 640; }
.time-alert > span:last-child { color: #3d4a5c; font-size: 13px; }
.time-people,
.time-correction-list { margin: 0; padding: 8px; list-style: none; }
.time-people > li,
.time-correction-list > li { list-style: none; }
.time-person-row,
.time-correction-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; }
.time-person-row .rt,
.time-correction-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.time-person-side { display: grid; justify-items: end; gap: 2px; }
.time-report-list { margin: 0; padding: 8px; list-style: none; display: grid; gap: 8px; }
.time-report-list > li { list-style: none; }
.time-report-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 12px; text-align: left; background: #fff; border: 1px solid var(--line, #dde5f0); border-radius: var(--record-row-radius, 13px); box-shadow: var(--record-row-shadow); color: var(--text, #172033); font: inherit; font-weight: 700; cursor: pointer; }
.time-report-row:hover { background: #f3f6fb; }
.time-report-row > strong { flex: 1; min-width: 0; }
.time-report-row .row-action { color: #3d4a5c; }
.time-report-form .dialog-content { display: grid; gap: 16px; }
.time-report-form select {
  appearance: none;
  min-height: 46px;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23526078' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
.time-report-archive-list { display: grid; gap: 8px; padding-top: 8px; }
.time-report-form [hidden] { display: none; }
.time-report-periods { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.time-report-periods legend { padding: 0; margin-bottom: 4px; font-size: .83rem; font-weight: 650; }
.time-report-period-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.time-report-chip { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line, #dde5f0); border-radius: 999px; background: #fff; color: var(--text, #172033); font-weight: 700; cursor: pointer; }
.time-report-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.time-report-chip:has(input:checked) { border-color: #2452c8; background: #e8effc; color: #1c3f9e; }
.time-report-chip:has(input:focus-visible) { outline: 2px solid #2452c8; outline-offset: 2px; }
.time-report-custom { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.time-report-range { color: var(--text, #172033); }
.time-correction-row { align-items: flex-start; }
.time-correction-reason { margin: 0; color: var(--text, #172033); }
.time-correction-operations { display: grid; gap: 8px; }
.time-correction-operation > strong { color: #3d4a5c; font-size: 13px; }
.time-correction-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.time-correction-values > span { display: grid; gap: 2px; }
.time-correction-values small { color: #3d4a5c; font-size: 12px; }
.time-correction-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.time-correction-actions .primary-button,
.time-correction-actions .secondary-button { min-height: 44px; }
.time-page-error { margin: 12px 0 0; }
.time-scanner-head { margin-bottom: 0; }
.time-camera { position: relative; overflow: hidden; width: min(100%, 520px); aspect-ratio: 4 / 3; margin: 12px auto 0; background: #111827; border-radius: 16px; }
.time-camera video { width: 100%; height: 100%; object-fit: cover; }
.time-camera-frame { position: absolute; inset: 16%; border: 3px solid #fff; border-radius: 18px; box-shadow: 0 0 0 999px rgb(0 0 0 / 22%); }
.time-scanner > .form-error { margin: 12px 0 0; }

@media (max-width: 720px) {
  .time-card { padding: 14px; }
  .time-steps { grid-template-columns: minmax(0, 1fr); }
  .time-hero-actions { width: 100%; }
  .time-hero-actions .primary-button,
  .time-hero-actions .secondary-button { flex: 1 1 auto; }
  .time-week-bars { gap: 6px; height: 120px; }
  .time-person-row { flex-wrap: wrap; }
  .time-person-side { justify-items: start; }
}

/* Mitarbeiterdokumente (0.27.0) – Werte aus Mockup/ordina-mitarbeiterdokumente-v1.html */
.documents-panel-content { gap: 24px; }
.documents-card { display: grid; gap: 16px; align-content: start; padding: 20px; }
.documents-card-head { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.documents-card-head h2,
.documents-card-head h3 { flex: 1; min-width: 0; margin: 0; font-size: 18px; font-weight: 730; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.documents-card-head .avatar { width: 36px; height: 36px; font-size: 12px; }
.documents-upload-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; flex: 0 0 auto; padding: 0 6px; color: var(--blue); background: none; border: 0; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 640; cursor: pointer; }
.documents-upload-link:hover { background: var(--blue-soft); }
.documents-upload-link [data-icon] svg { width: 18px; height: 18px; }
.documents-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0 0 -12px -4px; padding: 0 10px 0 4px; color: var(--blue); background: none; border: 0; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 640; cursor: pointer; }
.documents-back:hover { background: var(--blue-soft); }
.documents-back [data-icon] svg { width: 26px; height: 26px; }
.documents-more { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 4px 0; }
/* Textwege auf dem getönten Grund brauchen das dunklere Link-Blau (AA-Kontrast). */
.documents-more .task-flow-text-button,
.documents-back,
.documents-upload-link { color: #1d55ce; }
.document-list { margin: 0; padding: 8px; list-style: none; border: 1px solid var(--line); border-radius: 16px; }
.document-row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--record-row-shadow); font: inherit; text-align: left; cursor: pointer; }
.document-row:hover { border-color: #c9d6ea; }
.document-row-static { cursor: default; }
.document-row-static:hover { border-color: var(--line); }
.document-row .status-icon { width: 36px; height: 36px; border-radius: 10px; }
.document-row .avatar { width: 36px; height: 36px; font-size: 12px; }
.document-row-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.document-row-copy strong { font-size: 16px; overflow-wrap: break-word; }
.document-row .row-action { flex: 0 0 auto; color: var(--text-soft); }
.document-restore { min-height: 44px; flex: 0 0 auto; padding: 0 8px; color: var(--blue); font-weight: 640; }
.document-empty .empty-card { min-height: 0; padding: 40px 20px; gap: 12px; }
.document-empty .empty-card .status-icon { width: 48px; height: 48px; border-radius: 14px; color: var(--text-soft); background: var(--surface-soft); }
.document-empty .empty-card strong { color: var(--text); font-size: 17px; }
.status-icon.tone-neutral { color: var(--text-soft); background: var(--surface-soft); }
.document-eyebrow.tone-info { color: var(--blue); }
.document-eyebrow.tone-success { color: var(--green); }
.document-eyebrow.tone-maintenance { color: var(--purple); }
.document-eyebrow.tone-neutral { color: var(--text-soft); }
.document-detail { display: grid; gap: 14px; align-content: start; }
.document-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.document-switch { display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 0; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.document-switch[hidden] { display: none; }
.document-switch .document-switch-icon { width: 36px; height: 36px; border-radius: 10px; color: var(--text); background: var(--surface-soft); }
.document-switch-copy { flex: 1; min-width: 0; display: grid; }
.document-switch-copy strong { font-size: 15px; }
.document-switch-copy small { color: var(--text-soft); font-size: 14px; }
.document-switch-copy small[hidden] { display: none; }
.document-switch .switch-input { position: relative; flex: 0 0 auto; width: 52px; height: 32px; min-height: 32px; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; background: #c9d6ea; border: 0; border-radius: 16px; cursor: pointer; }
.document-switch .switch-input::before { content: ""; position: absolute; inset: -6px 0; }
.document-switch .switch-input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; background: #fff; border-radius: 50%; box-shadow: var(--record-row-shadow); transition: transform 160ms ease; }
.document-switch .switch-input:checked { background: var(--green); }
.document-switch .switch-input:checked::after { transform: translateX(20px); }
.document-switch .switch-input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.document-switch .switch-input:disabled { cursor: default; opacity: .55; }
.document-footer { display: flex; gap: 10px; }
.document-footer .primary-button,
.document-footer .secondary-button { flex: 1; min-height: 48px; }
.document-upload-form { display: grid; gap: 14px; align-content: start; }
.document-upload-form [hidden] { display: none !important; }
.document-field { display: grid; gap: 8px; }
.document-field > span,
.document-field-label,
.document-choices legend { display: block; padding: 0; color: var(--text-soft); font-size: 13px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.document-field input[name="title"] { min-height: 48px; padding: 0 14px; font-size: 16px; background: #fff; border-radius: 12px; }
.document-drop { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; color: var(--text); background: var(--surface-soft); border: 1px dashed #b9c8de; border-radius: 13px; font: inherit; text-align: left; cursor: pointer; }
.document-drop:hover { border-color: var(--blue); }
.document-drop.has-file { background: #fff; border-style: solid; border-color: var(--line); }
.document-drop .status-icon { width: 40px; height: 40px; border-radius: 12px; }
.document-drop-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.document-drop-copy strong { font-size: 16px; overflow-wrap: anywhere; }
.document-drop-copy span { color: var(--text-soft); font-size: 14px; }
.document-drop-change { flex: 0 0 auto; padding: 0 4px; color: var(--blue); font-weight: 640; }
.document-choices { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.document-choice-list { display: flex; flex-wrap: wrap; gap: 8px; }
.document-choice { position: relative; display: inline-flex; cursor: pointer; }
.document-choice input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.document-choice .chip-body { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--record-row-shadow); font-weight: 640; }
.document-choice .chip-body [data-icon] svg { width: 18px; height: 18px; }
.document-choice .avatar { width: 26px; height: 26px; font-size: 11px; }
.document-choice:hover .chip-body { border-color: #c9d6ea; }
.document-choice input:checked + .chip-body { color: var(--blue); background: var(--blue-soft); border-color: #cfdcf9; }
.document-choice input:checked + .chip-body .avatar { background: #fff; }
.document-choice input:focus-visible + .chip-body { outline: 2px solid var(--blue); outline-offset: 2px; }
.document-privacy { margin: 0; color: var(--text-soft); font-size: 14px; }
.document-upload-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; color: var(--text-soft); font-size: 14px; font-weight: 640; }
.document-upload-progress progress { width: 100%; height: 8px; accent-color: var(--blue); }
.today-documents-row .status-icon { color: var(--purple); background: var(--purple-soft); }
@media (max-width: 720px) {
  .documents-desk-only { display: none !important; }
  .documents-panel-content { gap: 16px; }
  .documents-card { gap: 12px; padding: 14px; }
  .document-list { padding: 8px; }
  .document-footer .primary-button,
  .document-footer .secondary-button { flex: 1 1 100%; }
  .document-restore { padding: 0 4px; }
}
@media (min-width: 721px) {
  .documents-mob-only { display: none !important; }
}

/* Arbeitszeit-Abwesenheiten: freigegebene Klar-Referenz, 8/8/13/1-Listen. */
.absence-list { margin: 0; }
.absence-row { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; min-height: 76px; }
.absence-copy { display: grid; gap: 3px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.absence-copy strong { font-weight: 650; }
.absence-facts, .absence-note, .absence-copy > span { color: var(--text-soft, #3d4a5c); font-size: .875rem; }
.absence-actions { display: flex; margin-top: 12px; }
.absence-empty { display: grid; place-content: center; justify-items: center; gap: 8px; min-height: 180px; margin: 0; padding: 24px; text-align: center; color: var(--text-soft); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.absence-empty strong { font-size: 14px; }
.absence-empty .status-icon { width: 46px; height: 46px; }
.absence-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.absence-wide { grid-column: 1/-1; }
.absence-filters { margin-bottom: 14px; }
.absence-panel .dialog-content { display: grid; gap: 14px; align-content: start; }
.absence-panel .dialog-footer { flex-wrap: wrap; }
.absence-panel .field input, .absence-panel .field select { min-width: 0; width: 100%; min-height: 44px; }
.absence-panel [hidden] { display: none !important; }
.absence-subsection { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.absence-subsection h3 { margin: 0; font-size: 1rem; }
.absence-note { margin: 0; }
.absence-note svg { width: 16px; height: 16px; vertical-align: middle; }
.absence-check { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.absence-check input { width: 22px; height: 22px; accent-color: var(--brand); }
.absence-upload { display: grid; gap: 8px; padding: 14px; border: 1px dashed #9cabc0; border-radius: 13px; background: #f7f9fd; min-width: 0; }
.absence-upload input { width: 100%; min-width: 0; min-height: 44px; }
.absence-credit { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.absence-credit input { width: 110px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; color: inherit; }
.absence-detail { display: grid; grid-template-columns: minmax(90px, .7fr) minmax(0,1.3fr); gap: 10px 16px; margin: 0; }
.absence-detail dt { color: var(--text-soft); }
.absence-detail dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.absence-history { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.absence-history span { color: var(--text-soft); font-size: .8125rem; }
.absence-certificate { display: grid; gap: 4px; }
.absence-certificate > .record-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 76px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); }
.absence-certificate > button { justify-self: end; }
.absence-conflicts { padding: 12px; border: 1px solid #d5a660; border-radius: 13px; background: #fff8eb; }
.absence-conflicts p { margin: 0 0 8px; }
@media (max-width: 600px) {
  .absence-panel .dialog-footer > button { flex: 1 1 auto; }
  .absence-fields { grid-template-columns: 1fr; }
  .absence-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .absence-filters select { min-width: 0; }
}
.absence-card > .time-card-head > button { border: 0; background: transparent; box-shadow: none; color: var(--blue); font-size: 14px; padding: 0 4px; }
.absence-card > .time-card-head { margin-top: -8px; margin-bottom: 4px; }
.absence-panel .dialog-header h2 { font-size: 17.92px; font-weight: 730; line-height: 1.25; letter-spacing: -.025em; }
.absence-panel .primary-button { font-size: 14px; font-weight: 720; padding: 9px 17px; }
.absence-panel .secondary-button, .absence-actions .secondary-button { font-size: 14px; font-weight: 500; padding: 9px 15px; }
.absence-panel .field > span { font-weight: 650; font-size: 13.28px; }
.absence-panel .absence-note { font-size: 13px; }
.absence-panel .absence-subsection { padding-top: 0; border: 0; }
.absence-panel .absence-subsection h3 { font-weight: 650; }
.absence-upload input::file-selector-button { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; margin-right: 8px; cursor: pointer; }
.absence-panel .absence-fields { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.absence-panel .field input:not([type=checkbox]), .absence-panel .field select { min-height: 48px; padding: 10px 12px; }
.absence-panel .dialog-content { gap: 16px; }
.absence-detail dd { font-weight: 400; }
@media (max-width: 720px) {
  .absence-panel .dialog-header { padding: 14px 16px; }
  .absence-panel .dialog-content { padding: 16px; }
  .absence-panel .dialog-footer { padding: 14px 16px; gap: 10px; }
}

/* Verwaltung 0.30.0 – freigegebene Ein-Spalten-Referenz. */
/* Neuer Einstellungsbereich. Ein Arbeitsbereich, keine zweite Seitennavigation. */
.simple-settings{width:100%;max-width:720px;margin:0 auto;padding:0 0 36px}
.simple-settings *{box-sizing:border-box}.simple-row svg,.simple-back svg,.simple-logout svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.simple-settings h1{margin:0 0 26px;font-size:30px;line-height:1.2;letter-spacing:-.8px;font-weight:750}
.simple-settings h1:focus{outline:none}.simple-settings .simple-danger h2{margin:25px 8px 10px;font-size:13px;font-weight:650;color:#526078;letter-spacing:0}
.simple-back{display:flex;gap:6px;align-items:center;border:0;background:transparent;color:#46566f;min-height:44px;padding:0 8px;margin:0 0 12px -8px;font-size:14px;font-weight:600}
.simple-list{list-style:none;padding:8px;margin:0 0 18px;display:grid;gap:8px;background:#fff;border:1px solid #dde5f0;border-radius:21px;box-shadow:0 3px 16px #12223f04}
.simple-list li{min-width:0}.simple-row{display:flex;align-items:center;gap:14px;width:100%;min-height:66px;border:1px solid #e1e7f0;border-radius:13px;background:#f6f8fc;color:#172033;padding:13px 16px;text-align:left;box-shadow:0 1px 3px #121e340d;font:inherit;cursor:pointer}
.simple-row:hover{background:#edf3fc;border-color:#b6c8e1}.simple-row:active{background:#e8f0fc}.simple-row:focus-visible,.simple-back:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.simple-row:disabled{cursor:default;color:#526078;background:#f5f7fb;opacity:1}
.simple-copy{flex:1;min-width:0}.simple-copy strong{display:block;font-size:15px;font-weight:650;line-height:1.45;overflow-wrap:anywhere}.simple-copy small{display:block;margin-top:3px;color:#526078;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.simple-mark{width:38px;height:38px;flex:none;border-radius:12px;display:grid;place-items:center;background:#eaf1ff;color:#2563eb}.simple-mark.purple{background:#f0ebff;color:#7452c8}.simple-mark.green{background:#e8f7ef;color:#0f7345}.simple-mark.slate{background:#e9eef5;color:#526078}.simple-mark.red{background:#fff0ee;color:#b6342e}
.simple-row>.simple-chevron{width:17px;height:17px;color:#6a7990}.simple-row>.simple-badge{font-size:12px;color:#526078;flex:none;font-weight:550}.simple-row>.simple-badge.pending{color:#9a3c0d;background:#fff0e6;padding:3px 8px;border-radius:7px}
.simple-root .simple-row{min-height:76px}.simple-root .simple-list:first-of-type{margin-bottom:24px}.simple-root .simple-list:first-of-type .simple-row{min-height:82px}
.simple-profile{display:flex;gap:13px;align-items:center;padding:0 8px 22px}.simple-profile .avatar{width:42px;height:42px;flex:none}.simple-profile strong{display:block;font-size:16px;overflow-wrap:anywhere}.simple-profile small{display:block;color:#526078;font-size:13px;margin-top:2px}
.simple-settings .simple-logout{color:#a72e29;background:transparent;border:0;display:flex;gap:9px;align-items:center;min-height:44px;padding:8px;margin-top:8px;font:inherit;font-size:14px;font-weight:600}
.simple-note{padding:20px 22px;border:1px solid #dde5f0;background:#fff;border-radius:18px;color:#3d4a5c;line-height:1.65;font-size:14px;margin:0 0 18px}.simple-note strong{display:block;color:#172033;margin-bottom:6px}.simple-note p{margin:0}.simple-note button{margin-top:14px}
.simple-empty{margin:0;padding:26px 18px;text-align:center;color:#526078;background:#f6f8fc;border:1px solid #e1e7f0;border-radius:13px;font-size:14px}
.simple-footer{color:#62718a;font-size:12px;margin:20px 8px 0}.simple-retry{margin-top:12px;min-height:44px}.simple-danger .simple-row{color:#a62e29}.simple-danger{margin-top:28px}
@media(max-width:700px){.simple-settings h1{font-size:26px;margin-bottom:22px}.simple-row{padding:12px;gap:11px;min-height:62px}.simple-root .simple-row{min-height:73px}.simple-settings{padding-bottom:18px}.simple-row>.simple-badge{font-size:11px}.simple-list{border-radius:19px}.simple-back{margin-bottom:8px}.simple-note{padding:18px}}

.simple-settings .simple-mark svg { width: 21px; height: 21px; }
.simple-settings .simple-chevron { display: inline-flex; flex: none; }
.simple-settings .simple-chevron svg { width: 17px; height: 17px; }
.simple-settings .settings-panel-header { display: block; padding: 0; margin: 0; border: 0; background: transparent; box-shadow: none; }
.simple-settings .settings-panel-content { padding: 0; margin: 0; }
.simple-settings .simple-row strong { letter-spacing: -.012em; }
.user-management-panel .user-management-list { margin: 16px 0 0; }
.user-management-panel .simple-empty,
.user-management-panel .simple-note { margin: 16px 0 0; }

.simple-settings .backup-admin-card, .simple-settings .data-admin-card { display: block; padding: 0; overflow: visible; }
.simple-settings .backup-admin-card::before, .simple-settings .data-admin-card::before { content: none; }

.simple-settings .documents-panel-content > .documents-back { display: none; }

/* Freigegebene QR-Meldereferenz: nur ortsbezogene Meldezweige. */
.simple-report-dialog.is-location-report {
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: normal;
  font-synthesis: none;
  border: 1px solid #dde5f0;
  background: #fff;
  box-shadow: 0 14px 40px #121e341f;
}
.simple-report-dialog.is-location-report::backdrop { background: rgb(23 32 51 / 42%); backdrop-filter: none; }
.is-location-report .simple-report-panel { padding: 0; min-height: 0; max-height: min(844px, calc(100dvh - 28px)); }
.is-location-report.is-location-scanning .simple-report-panel { height: min(760px, calc(100dvh - 28px)); }
.is-location-report #simpleReportTitle { margin: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: normal; }
.is-location-report .simple-report-header-row { gap: 10px; }
.is-location-report .simple-report-progress-row { display: flex; justify-content: flex-end; color: #3d4a5c; }
.is-location-report .simple-transcript-answer, .is-location-report .simple-transcript-label { letter-spacing: normal; }
.is-location-report .simple-transcript-edit { box-shadow: none; }
.is-location-report .simple-question-header h3 { font-weight: 730; }
.is-location-report .simple-question-header h3:focus { outline: none; }
.is-location-report .simple-choice-card { max-width: 100%; box-shadow: none; font-weight: 700; }
.is-location-report .simple-choice-card strong { font-size: 1rem; letter-spacing: normal; overflow-wrap: anywhere; }
.is-location-report .simple-choice-card > span:nth-of-type(2) { min-width: 0; }
.is-location-report :is(#simpleRoomChoices, #simpleDeviceChoices) {
  display: grid; gap: 8px; padding: 8px; border: 1px solid #dde5f0;
  border-radius: 21px; background: #fff; min-width: 0;
}
.is-location-report :is(#simpleRoomChoices, #simpleDeviceChoices) .simple-choice-card {
  width: 100%; min-height: 52px; gap: 10px; padding: 10px 12px;
  border: 1px solid #dde5f0; border-radius: 13px; background: #f6f8fc;
  box-shadow: 0 1px 3px #121e340d;
}
.is-location-report :is(#simpleRoomChoices, #simpleDeviceChoices) .simple-choice-card:has(input:checked) { border-color: #2b5fd9; background: #e8f0ff; }
.is-location-report :is(#simpleRoomChoices, #simpleDeviceChoices) .status-icon { width: 20px; height: 20px; border-radius: 0; background: transparent; color: #172033; }
.is-location-report :is(#simpleRoomChoices, #simpleDeviceChoices) .status-icon svg { width: 20px; height: 20px; }
.is-location-report :is(#simpleRoomChoices, #simpleDeviceChoices) .simple-choice-card > span:nth-of-type(2) { flex: 1; }
.is-location-report .simple-choice-check { display: none; border: 0; }
.is-location-report .simple-choice-card:has(input:checked) .simple-choice-check { display: flex; flex: none; color: #245dcc; }
.is-location-report .simple-room-empty { margin: 0; padding: 8px; font-weight: 400; }
.is-location-report .simple-room-empty > [data-icon] { display: none; }
.is-location-report .simple-composer textarea { min-height: 160px; max-height: 360px; line-height: 1.5; resize: vertical; border: 1px solid #b9c4d6; box-shadow: none; }
.is-location-report .simple-composer small { font-size: 13px; font-weight: 400; color: #3d4a5c; }
.is-location-report .simple-photo-card.simple-composer-photo { min-height: 48px; padding: 10px 14px; border: 1px dashed #b9c4d6; border-radius: 12px; background: #fff; }
.is-location-report .simple-review-row { grid-template-columns: 104px minmax(0, 1fr) 44px; }
.is-location-report .simple-review-label { min-width: 0; overflow-wrap: anywhere; padding-top: 11px; }
.is-location-report .simple-review-value { white-space: pre-wrap; font-weight: 700; padding-top: 9px; }
.is-location-report .simple-review-edit { margin: 0; padding: 0; width: 44px; height: 44px; border-radius: 12px; box-shadow: none; color: #245dcc; }
.is-location-report .form-error { margin: 0; padding: 10px 12px; border: 1px solid #c23f38; border-radius: 12px; background: #fff0ee; color: #962b25; font-weight: 600; }
.is-location-report :is(.primary-button, .secondary-button) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border: 1px solid transparent; border-radius: 12px; font: inherit; font-weight: 800; letter-spacing: normal; box-shadow: none; }
.is-location-report .primary-button { background: #c23f38; color: #fff; }
.is-location-report .secondary-button { border-color: #b9c4d6; background: #fff; }
.is-location-report .simple-location-scan { justify-self: start; color: #245dcc; }
.simple-location-camera { position: relative; display: grid; place-items: center; min-height: 240px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: #192232; color: #dae3f1; }
.simple-location-camera video { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.simple-location-camera-icon { display: grid; place-items: center; opacity: .7; }
.simple-location-camera-icon svg { width: 44px; height: 44px; }
.simple-location-camera.is-streaming .simple-location-camera-icon { visibility: hidden; }
.simple-location-frame { position: absolute; width: 152px; height: 152px; border: 2px solid #fff; border-radius: 14px; box-shadow: 0 0 0 200px #0002; pointer-events: none; }
.simple-location-status { margin: 0; text-align: center; color: #3d4a5c; font-weight: 600; }
.simple-location-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.simple-location-actions .secondary-button { flex: 1; white-space: nowrap; }
.is-location-report .simple-report-success { min-height: 390px; padding: 0; gap: 14px; align-content: center; }
.is-location-report .simple-report-success h3 { margin: 0; font-size: 26px; letter-spacing: normal; }
.is-location-report .simple-report-success [role="status"] { display: contents; }
.is-location-report .simple-report-success > button { display: none; }
.is-location-report .simple-success-summary { white-space: pre-wrap; overflow-wrap: anywhere; }
.is-location-report :is(button,input,textarea):focus-visible { outline: 3px solid #2b5fd9; outline-offset: 3px; }
.is-location-report .simple-transcript-edit:focus-visible { outline-color: #fff; }
.is-location-report .simple-choice-card:has(input:focus-visible) { outline: 3px solid #2b5fd9; outline-offset: 3px; }
.is-location-report .simple-choice-card input:focus-visible { outline: none; }
@media (max-width: 720px) {
  .simple-report-dialog.is-location-report { border: 0; border-radius: 0; height: 100dvh; }
  .is-location-report .simple-report-panel, .is-location-report.is-location-scanning .simple-report-panel { height: 100dvh; min-height: 0; max-height: min(844px, calc(100dvh - 28px)); }
  .is-location-report .simple-report-header { padding: 12px 14px 10px; }
  .simple-location-camera { min-height: 200px; }
  .is-location-report .simple-review-row { grid-template-columns: minmax(0, 1fr) 44px; row-gap: 4px; }
  .is-location-report .simple-review-label { grid-column: 1; grid-row: 1; padding: 0; }
  .is-location-report .simple-review-value { grid-column: 1; grid-row: 2; padding: 0; }
  .is-location-report .simple-review-edit { grid-column: 2; grid-row: 1 / span 2; }
}
@media (forced-colors: active) {
  .is-location-report :is(.simple-transcript-item, .primary-button, .simple-choice-card, .simple-question-header h3, .form-error) { border: 1px solid CanvasText; }
}

.is-location-report .simple-text-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.is-location-report .simple-composer { gap: 0; }
.is-location-report .simple-composer-tools { display: grid; }
.is-location-report .simple-photo-card.simple-composer-photo > .status-icon { width: 20px; height: 20px; background: transparent; color: inherit; }
.is-location-report .simple-photo-card.simple-composer-photo strong { font-size: 1rem; }
.is-location-report .simple-photo-card:has(input:focus-visible) { outline: 3px solid #2b5fd9; outline-offset: 3px; }
.is-location-report .simple-photo-card:has(.simple-photo-name:not([hidden])) > span:nth-child(2) { display: none; }
.is-location-report .simple-photo-card.simple-composer-photo .simple-photo-name { max-width: 100%; min-width: 0; font: inherit; color: inherit; white-space: normal; overflow-wrap: anywhere; }
.is-location-report .simple-success-summary { width: auto; max-width: 100%; border: 0; border-radius: 0; padding: 0; background: transparent; }
.is-location-report .simple-success-mark { background: #0f7345; }

.is-location-report .simple-success-summary { display: contents; }
.is-location-report .simple-success-summary strong { font-weight: 700; }

.is-location-report #simpleRoomChoices:has(.simple-room-empty) { display: block; padding: 16px; border-radius: 13px; }
.is-location-report #simpleRoomChoices .simple-room-empty { padding: 0; }

/* Dokumente im Personenblatt – freigegebene Referenz vom 22. September 2026. */
[data-user-documents] { display: contents; }
.person-documents { display: block; padding: 16px; margin: 0 0 4px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.person-documents .documents-card-head { margin-bottom: 12px; gap: 12px; }
.person-documents .documents-card-head h3 { font-size: 17px; margin: 0; }
.person-documents .document-list { margin: 0; }
.person-documents .documents-upload-link { min-width: 44px; min-height: 44px; }
.person-documents .document-empty { padding: 10px; }
.person-documents .document-empty .empty-state { padding: 12px; }
.person-documents .document-row-copy strong { overflow-wrap: anywhere; }
#userDialog .dialog-header h2 { overflow-wrap: anywhere; }
#userDialog h2:focus { outline: none; }
@media (max-width: 700px) {
  .person-documents { padding: 12px; }
  .person-documents .document-row { padding: 12px; }
  .person-documents .document-list { padding: 8px; gap: 8px; }
}

/* Freigegebene Pausenprüfung, 13. Oktober 2026. */
.pause-scope{color:#526078;font-size:14px;line-height:1.5;margin:8px 0 20px}
.pause-options{border:0;padding:0;margin:0}.pause-options legend{font-size:15px;font-weight:650;margin-bottom:12px;padding:0}.pause-options .simple-list{margin-bottom:14px}.pause-choice{display:flex;gap:14px;align-items:center;cursor:pointer;padding:17px 16px;min-height:78px;background:#f6f8fc;border:1px solid #dce4ef;border-radius:13px;box-shadow:0 1px 3px #121e340d}
.pause-choice:has(input:checked){border-color:#356cf5;background:#eef3ff;box-shadow:inset 0 0 0 1px #356cf5}.pause-choice:has(input:focus-visible){outline:3px solid #2563eb;outline-offset:3px}.pause-choice input{width:20px;height:20px;min-height:20px;flex:none;margin:0;accent-color:#2563eb;box-shadow:none}.pause-choice strong{font-weight:650;display:block;line-height:1.4;font-size:15px}.pause-choice small{display:block;font-size:13px;color:#46566f;line-height:1.5;margin-top:4px}
.pause-effect{font-size:13px;color:#46566f;line-height:1.55;margin:0 8px 16px;min-height:40px}.pause-help{margin:0 0 18px;font-size:13px;color:#46566f;line-height:1.6}.pause-help summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:10px;color:#344961;font-weight:600}.pause-help summary:before{content:'+';font-size:20px}.pause-help[open] summary:before{content:'−'}.pause-help p{margin:0 0 8px}.pause-help a{color:#1853bb;text-decoration:underline;display:inline-flex;align-items:center;min-height:44px}.pause-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}.pause-actions button{min-height:46px;min-width:125px}.pause-feedback{color:#0d6344;font-size:14px;line-height:1.5;min-height:21px;margin:14px 0 0}.pause-feedback:empty{margin:0;min-height:0}.pause-error{color:#a42d28;background:#fff2ef;padding:14px;border:1px solid #e9c6c2;border-radius:13px;font-size:14px;line-height:1.5;margin:14px 0}.pause-error[hidden]{display:none}
.pause-dialog{max-width:420px;width:calc(100% - 32px);padding:24px;border:1px solid #dce4ef;border-radius:22px;color:#172033;background:#fff}.pause-dialog::backdrop{background:#17203355}.pause-dialog h2{font-size:21px;margin:0 0 12px}.pause-dialog p{line-height:1.55}.pause-dialog .pause-actions{flex-wrap:wrap}.pause-status{padding:22px;background:white;border:1px solid #dce4ef;border-radius:18px;line-height:1.6}.pause-status button{display:block;margin-top:14px}
@media(max-width:700px){.pause-choice{padding:14px 12px;gap:12px}.pause-scope{font-size:13px;margin-top:8px}.pause-actions button{flex:1;min-width:0}.pause-effect{margin-bottom:12px}[data-settings-current="pause-settings"]{padding-bottom:20px}}

.has-common-shell .main-content [data-settings-current="pause-settings"] .common-page-title{min-height:0;margin-bottom:0}

/* Freigegebene private Planvorschau direkt im Chatverlauf. */
.team-detail-pane .chat-planned-group {
  margin-top: auto;
  padding-top: 20px;
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  width: 100%;
  gap: 10px;
}
.team-detail-pane .chat-list:has(+ .chat-planned-group) { margin-top: 0; }
.team-detail-pane .chat-planned-label {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: flex-end;
  color: #526078;
  font-size: 11px;
  padding-right: 2px;
}
.team-detail-pane .chat-planned-label svg { width: 14px; height: 14px; }
.team-detail-pane .chat-planned-bubble {
  display: block;
  width: max-content;
  max-width: 88%;
  min-width: 44px;
  min-height: 44px;
  margin: 0 0 0 auto;
  padding: 12px 14px;
  text-align: left;
  border: 1px dashed #8cabc9;
  border-radius: 15px 15px 5px 15px;
  background: rgb(226 236 250 / 42%);
  color: #46566e;
  box-shadow: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}
.team-detail-pane .chat-planned-bubble:hover { background: rgb(219 233 251 / 70%); border-color: #597da9; }
.team-detail-pane .chat-planned-bubble:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.team-detail-pane .chat-planned-time { display: flex; gap: 7px; align-items: center; color: #365f90; font-size: 11px; font-weight: 650; }
.team-detail-pane .chat-planned-time svg { width: 15px; height: 15px; }
.team-detail-pane .chat-planned-body { display: block; white-space: pre-wrap; overflow-wrap: anywhere; margin: 7px 0 8px; }
.team-detail-pane .chat-planned-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 10px; color: #526078; }
.team-detail-pane .chat-planned-foot svg { width: 14px; height: 14px; }
.team-detail-pane .chat-planned-bubble.is-blocked { border-color: #ac8e69; background: rgb(255 244 224 / 60%); }
.team-detail-pane .chat-planned-bubble.is-blocked .chat-planned-time { color: #795824; }
.team-detail-pane .chat-planning-status { margin-top: auto; padding: 14px; border: 1px dashed #9fb3cc; border-radius: 13px; color: #46566e; background: #ffffff70; font-size: 13px; line-height: 1.5; }
.team-detail-pane .chat-planning-status button { margin-top: 10px; font-size: 13px; }
.scheduled-message-editor .dialog-footer { flex-wrap: wrap; }
.scheduled-message-editor .scheduled-message-remove { margin-right: auto; }
@media (max-width: 720px) {
  .team-detail-pane .chat-planned-group { padding-top: 16px; }
  .team-detail-pane .chat-planned-bubble { max-width: 92%; }
}
@media (forced-colors: active) {
  .team-detail-pane .chat-planned-bubble { background: Canvas; color: CanvasText; border: 1px dashed CanvasText; }
  .team-detail-pane .chat-planned-time,
  .team-detail-pane .chat-planned-foot,
  .team-detail-pane .chat-planned-label { color: CanvasText; }
}
