/* Gemeinsame Tokens. #567: --hairline für Karten/Trennlinien, --border nur für Eingabefelder (3:1), --control-border für Sekundärknöpfe. */
:root {
  --bg:#f5f5f5;
  --surface:#fff;
  --text:#24272e;
  --muted:#555b66;
  --border:#767a84;
  --accent:#c93f36;
  --action:#ff6257;
  --on-accent:#24272e;
  --focus:#c93f36;
  --error:#982436;
  --error-bg:#fff0f2;
  --success:#176143;
  --success-bg:#edf8f2;
  --warning:#835200;
  --warning-bg:#fff3d6;
  --conflict-row-bg:#fdecee;
  --action-hover:#ff7b71;
  --on-error:#fff;
  --hover-bg:#f0f0f1;
  --neutral:#3f444e;
  --neutral-bg:#ecedef;
  --hairline:#d9dbe0;
  --control-border:#b9bcc3;
  /* #589: Eingabefelder. Hell wie bisher; dunkel „vertieft“: eine Stufe dunkler als die Fläche, Rahmen 3:1, Schrift gebrochenes Weiß. */
  --field-bg:var(--surface);
  --field-border:var(--border);
  --field-text:var(--text);
  --field-placeholder:var(--muted);
  --radius:12px;
  --ui-card-padding:24px;
  --ui-section-gap:20px;
  --ui-field-gap:16px;
  --ui-sidebar-width:248px;
  --ui-content-block:32px;
  --ui-content-inline:clamp(20px,4vw,64px);
  --ui-control-height:44px;
  --ui-control-padding:8px 12px;
  --ui-field-padding-inline:12px;
  --ui-nav-padding:8px 12px;
  font-size:90%;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color-scheme:light;

}

:root[data-theme=dark] {
  --bg:#1b1d22;
  --surface:#24272e;
  --text:#fff;
  --muted:#b8bcc5;
  --border:#767a84;
  --accent:#ff6257;
  --on-accent:#24272e;
  --focus:#ff6257;
  --error:#ffb5c0;
  --error-bg:#3b202b;
  --success:#9be0bf;
  --success-bg:#1b352b;
  --warning:#ffd58c;
  --warning-bg:#392e1b;
  --conflict-row-bg:#3a2128;
  --on-error:#24272e;
  --hover-bg:#2c2f37;
  --neutral:#d7dae0;
  --neutral-bg:#33363e;
  --hairline:#3a3e47;
  --control-border:#5d626d;
  --field-bg:#1b1d22;
  --field-border:#6b707b;
  --field-text:#e6e7ea;
  --field-placeholder:#9a9fa9;
  color-scheme:dark;

}

* {
  box-sizing:border-box;

}
 body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;

}
 a {
  color:var(--accent);
  text-underline-offset:4px;

}
 button,input,select,textarea {
  font:inherit;

}
 a,button,input,select,summary {
  -webkit-tap-highlight-color:transparent;

}
 :focus-visible {
  outline:3px solid var(--focus);
  outline-offset:4px;

}
 h1,h2,p {
  margin-top:0;

}
 h1 {
  font-size:clamp(2rem,4vw,3.6rem);
  line-height:1.12;
  letter-spacing:-.04em;
  max-width:850px;
  margin-bottom:24px;
  overflow-wrap:anywhere;

}
 h2 {
  font-size:1.3rem;
  line-height:1.35;

}
 header {
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:28px 6vw;
  align-items:center;

}
 .brand {
  font-size:1.55rem;
  letter-spacing:-.04em;
  font-weight:750;
  color:var(--text);
  text-decoration:none;

}
 main {
  max-width:1120px;
  padding:var(--ui-content-block) var(--ui-content-inline);
  margin:auto;

}
 main:focus {
  outline:none;

}
 .hero {
  max-width:800px;
  padding-top:5vh;

}
 .eyebrow {
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--accent);
  font-weight:700;
  font-size:.78rem;
  margin-bottom:20px;

}
 .lead {
  font-size:1.18rem;
  color:var(--muted);
  max-width:650px;
  margin-bottom:36px;

}
 .card {
  border:1px solid var(--hairline);
  border-radius:var(--radius);
  background:var(--surface);
  padding:var(--ui-card-padding);
  margin:var(--ui-section-gap) 0;

}
 .auth-card {
  max-width:520px;
  margin:24px auto;

}
 .auth-card h1 {
  font-size:2.2rem;

}
 label {
  display:block;
  font-weight:600;
  margin-top:var(--ui-field-gap);
  margin-bottom:8px;

}
 /* #490 Einheitliche Formularfelder: Textfelder, Auswahllisten und Textbereiche teilen je Dichte
    Höhe, Polsterung, Schrift, Rahmen, Radius und volle Breite. Breitenausnahmen nur über ihren Container. */
 input,select,textarea {
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  min-width:0;
  border:1px solid var(--field-border);
  background-color:var(--field-bg);
  color:var(--field-text);
  border-radius:12px;
  font:inherit;
  line-height:1.25;
  min-height:var(--ui-control-height);
  padding:8px var(--ui-field-padding-inline);

}
 input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select:not([multiple]):not([size]) {
  height:var(--ui-control-height);
  padding-block:0;

}
 select:not([multiple]):not([size]) {
  appearance:none;
  padding-right:calc(var(--ui-field-padding-inline) + 1.25rem);
  background-image:linear-gradient(45deg,transparent 50%,var(--field-text) 50%),linear-gradient(135deg,var(--field-text) 50%,transparent 50%);
  background-position:calc(100% - var(--ui-field-padding-inline) - 9px) 50%,calc(100% - var(--ui-field-padding-inline) - 4px) 50%;
  background-size:5px 5px;
  background-repeat:no-repeat;

}
 :is(input,textarea)::placeholder {
  color:var(--field-placeholder);
  opacity:1;

}
 textarea {
  min-height:calc(var(--ui-control-height) * 2);
  resize:vertical;

}
 input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true] {
  border-color:var(--error);

}
 button,.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:var(--ui-control-height);
  padding:var(--ui-control-padding);
  border:1px solid transparent;
  border-radius:12px;
  color:var(--on-accent);
  background:var(--action);
  font-weight:650;
  text-decoration:none;
  cursor:pointer;
  transition:background-color .12s,filter .12s,box-shadow .12s;

}
 button:hover,.button:hover {
  filter:brightness(1.08);

}
 button:active:not(:disabled),.button:active {
  box-shadow:inset 0 2px 0 rgb(0 0 0 / .18);

}
 button:disabled {
  opacity:.5;
  cursor:not-allowed;
  filter:none;

}

 form>button {
  margin-top:var(--ui-section-gap);
  width:auto;

}
 .muted,.draft {
  color:var(--muted);

}
 .draft {
  font-size:.76rem;
  margin-top:40px;

}
 .theme-picker {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  margin:0;
  font-size:.88rem;

}
 .error {
  background:var(--error-bg);
  color:var(--error);
  border:1px solid var(--error);
  border-radius:12px;
  padding:20px;

}
 .error ul {
  padding-left:20px;
  margin-bottom:0;

}
 .notice {
  color:var(--success);

}
 .app-hint .notice {
  margin-bottom:8px;

}
 .android-badge {
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:6px 16px 6px 10px;
  background:#000;
  color:#fff;
  border:1px solid #a6a6a6;
  border-radius:8px;
  text-decoration:none;

}
 .android-badge svg {
  width:28px;
  height:28px;
  stroke:#3ddc84;

}
 .android-badge span {
  display:flex;
  flex-direction:column;
  font-size:1.05rem;
  font-weight:600;
  line-height:1.15;

}
 .android-badge small {
  font-size:.7rem;
  font-weight:400;

}
 .android-badge:hover,.android-badge:focus-visible {
  border-color:#fff;

}
 .sidebar {
  width:var(--ui-sidebar-width);
  height:100dvh;
  position:fixed;
  top:0;
  left:0;
  background:var(--surface);
  border-right:1px solid var(--border);
  padding:30px 20px 20px;
  display:flex;
  flex-direction:column;
  gap:var(--ui-section-gap);

}
 .authenticated main {
  margin-left:var(--ui-sidebar-width);
  max-width:1300px;

}
 nav {
  display:flex;
  flex-direction:column;
  gap:12px;

}
 nav a,nav summary {
  display:block;
  min-height:var(--ui-control-height);
  padding:var(--ui-nav-padding);
  border-radius:12px;
  color:var(--text);
  text-decoration:none;

}
 nav a[aria-current=page] {
  background:var(--bg);
  color:var(--accent);
  font-weight:650;

}
 summary {
  cursor:pointer;

}
 nav summary {
  display:list-item;
  margin-left:20px;
  padding-left:0;

}
 nav .subitem {
  padding-left:32px;

}
 .mobile-menu {
  overflow:auto;
  flex:1;

}
 .mobile-menu>summary {
  display:none;

}
 .userbar {
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:auto;

}
 .userbar form {
  flex:none;

}
 .userlink {
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  text-decoration:none;
  font-size:.88rem;
  flex:1;

}
 .userlink>span:last-child {
  overflow-wrap:anywhere;

}
 .avatar {
  background:var(--bg);
  border:1px solid var(--border);
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex:none;
  font-weight:650;

}
 .icon-button {
  padding:10px;
  width:44px;
  min-height:44px;
  background:transparent;
  color:var(--text);

}
 svg {
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;

}
 .company-list {
  max-width:760px;

}
 .company-link {
  display:flex;
  justify-content:space-between;
  gap:20px;
  text-decoration:none;
  font-size:1.12rem;
  font-weight:650;

}
 dt {
  color:var(--muted);
  font-size:.9rem;

}
 dd {
  margin:0 0 24px;
  overflow-wrap:anywhere;

}
 .skip {
  position:fixed;
  top:-100px;
  left:20px;
  background:var(--surface);
  padding:10px;
  z-index:10;

}
 .skip:focus {
  top:10px;

}
 .sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);

}

@media(max-width:760px) {
  header {
  padding:20px;
  align-items:flex-start;

}
 header .theme-picker {
  justify-content:flex-end;
  max-width:160px;

}
 .theme-picker select {
  width:auto;
  font-size:1rem;

}
 main {
  padding:32px 20px;

}
 .hero {
  padding-top:16px;

}
 .card {
  padding:min(var(--ui-card-padding),24px);

}
 .sidebar {
  position:static;
  height:auto;
  width:100%;
  border-right:0;
  border-bottom:1px solid var(--border);
  padding:20px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:20px;

}
 .mobile-menu {
  grid-column:1/-1;
  grid-row:2;

}
 .mobile-menu>summary {
  display:list-item;
  min-height:44px;
  padding:8px;

}
 .userbar {
  margin:0;
  max-width:60vw;

}
 .userlink {
  font-size:.8rem;

}
 .authenticated main {
  margin-left:0;

}
 nav {
  margin-top:12px;

}
 .auth-card {
  margin-top:12px;

}
 h1 {
  font-size:2.25rem;

}

}

@media(prefers-reduced-motion:reduce) {
  * {
  scroll-behavior:auto!important;
  animation:none!important;
  transition:none!important;

}

}

.userbar .icon-button {
  margin:0;
  width:44px;

}

.userlink {
  min-height:44px;

}

@media(max-width:760px) {
  .sidebar {
  grid-template-columns:minmax(0,1fr) auto;

}
 .userbar {
  max-width:48vw;

}
 .sidebar .brand {
  font-size:1.35rem;

}

}

.person-row { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:16px 0; border-bottom:1px solid var(--hairline); text-decoration:none; overflow-wrap:anywhere; }
.field-grid,.history-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; }
.image-picker-preview { display:block; max-width:100%; width:240px; height:120px; object-fit:contain; object-position:left center; margin:var(--ui-field-gap) 0; }
.contract-summary,.change { padding:20px 0; border-top:1px solid var(--hairline); }
.pagination { flex-direction:row; flex-wrap:wrap; justify-content:space-between; gap:16px; margin-top:24px; }
.pagination a { padding:8px; }
/* #479: shared page selection for ->links() */
.page-nav { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; margin-top:var(--ui-field-gap); }
.page-nav-count { margin:0; color:var(--muted); }
.page-nav-list { display:flex; flex-wrap:wrap; align-items:center; gap:4px; margin:0; padding:0; list-style:none; }
.page-nav-page,.page-nav-step,.page-nav-gap { display:inline-flex; align-items:center; justify-content:center; min-width:var(--ui-control-height); min-height:var(--ui-control-height); padding:0 10px; border-radius:10px; text-decoration:none; }
a.page-nav-page,a.page-nav-step { color:var(--text); border:1px solid var(--hairline); }
a.page-nav-page:hover,a.page-nav-step:hover { background:var(--hover-bg); }
.page-nav-page[aria-current="page"] { background:var(--action); color:var(--on-accent); font-weight:700; }
.page-nav-step[aria-disabled="true"] { color:var(--muted); }
.issue-filter { display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px 12px; margin-bottom:var(--ui-field-gap); }
.issue-filter label { display:flex; flex-direction:column; gap:4px; }
@media(max-width:760px) { .field-grid,.history-grid { grid-template-columns:minmax(0,1fr); } }
/* #1376: Zuschlagsregeln wie eine enge Tabelle: eine Zeile je Regel, Kopf einmal, Aktionsspalte fest */
.surcharge-row { display:grid; grid-template-columns:minmax(230px,2.2fr) repeat(3,minmax(90px,1fr)) 190px; gap:0 10px; align-items:center; padding:2px 0; border-bottom:1px solid var(--border,#e5e5e5); }
.surcharge-head { font-size:.8em; color:var(--muted); white-space:nowrap; border-bottom-color:var(--border-strong,#ccc); }
.surcharge-row input:not([type=checkbox]) { width:100%; min-width:0; }
.surcharge-row input[data-suggested] { color:var(--muted,#777); }
.surcharge-row .surcharge-kind { display:flex; gap:6px; align-items:center; white-space:nowrap; font-weight:600; }
.surcharge-row .surcharge-kind .check-field { margin:0; }
.surcharge-row .surcharge-actions { display:flex; gap:4px; justify-content:flex-start; align-items:center; }
.surcharge-row .surcharge-actions button { min-width:84px; margin:0; } /* sichtbar Knopfhöhe, Trefferfläche über die globale ::after-Ebene */
@media(max-width:760px) { .surcharge-head { display:none; } .surcharge-row { grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px 8px; padding:6px 0; } .surcharge-row .surcharge-kind,.surcharge-row .surcharge-actions { grid-column:1 / -1; } }

.error { margin-bottom:24px; }
.time-actions { display:flex; gap:16px; flex-wrap:wrap; }
.time-actions form { flex:1; min-width:140px; }
.time-actions button { margin-top:0; }
.timer output { font-size:2.4rem; font-weight:700; font-variant-numeric:tabular-nums; }

.time-actions { margin-bottom:16px; }


.activity-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.sidebar-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.notification-bell { position:relative; flex-shrink:0; }
.notification-badge { position:absolute; top:0; right:0; min-width:20px; padding:1px 5px; border-radius:20px; background:var(--action); color:var(--on-accent); font-size:.7rem; text-align:center; }
.notification-badge[hidden] { display:none; }
.notification-dialog { width:min(640px, calc(100vw - 24px)); max-height:calc(100dvh - 40px); padding:24px; border:1px solid var(--hairline); border-radius:var(--radius); background:var(--surface); color:var(--text); overflow:auto; }
.notification-dialog::backdrop { background:var(--bg); opacity:.75; }
.notification-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.notification-heading h2 { margin:0; }
.notification-heading form { margin:0; }
.notification-heading h2 { min-width:0; flex:1; overflow-wrap:anywhere; }
.notification-heading form { flex-shrink:0; }
@media(max-width:380px) {
  .notification-dialog { padding:18px; }
  .notification-heading { gap:8px; }
  .notification-heading h2 { font-size:1.1rem; }
}
.notification-heading .icon-button { margin:0; }
.notification-bell { display:inline-flex; align-items:center; justify-content:center; }
.avatar { overflow:hidden; }
.avatar img { display:block; width:100%; height:100%; object-fit:cover; }
.avatar-large { width:96px; height:96px; font-size:2rem; }
.avatar-current { display:flex; align-items:center; gap:16px; margin:20px 0; }
.avatar-presets { display:flex; gap:16px; flex-wrap:wrap; }
.avatar-choice { display:flex; flex-direction:column; align-items:center; gap:8px; }
.avatar-choice img { width:64px; height:64px; border-radius:50%; }
.avatar-choice input { width:auto; min-height:20px; }
.avatar-preview { width:min(256px,100%); aspect-ratio:1; border-radius:50%; overflow:hidden; border:1px solid var(--hairline); background:var(--bg); margin:20px 0; }
.avatar-preview canvas { display:block; width:100%; height:100%; cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; }
.avatar-preview canvas.is-dragging { cursor:grabbing; }
.avatar-preview canvas:focus-visible { outline:none; }
.avatar-preview:has(canvas:focus-visible) { outline:2px solid var(--accent); outline-offset:2px; }
.avatar-fine { margin:var(--ui-field-gap) 0; }
.avatar-fine > summary { cursor:pointer; color:var(--muted); }
input[type=range] { padding:0; accent-color:var(--accent); }
input[type=file] { max-width:100%; overflow:hidden; padding:5px var(--ui-field-padding-inline) 5px 5px; }
input[type=file]::file-selector-button { height:calc(var(--ui-control-height) - 12px); margin-right:10px; padding:0 12px; border:1px solid var(--border); border-radius:8px; background:var(--surface); color:var(--text); font:inherit; font-weight:600; cursor:pointer; }
input[type=file]::file-selector-button:hover { background:var(--hover-bg); }
input[type=file] + p { margin-top:var(--ui-field-gap); }
fieldset { min-width:0; border:1px solid var(--hairline); border-radius:12px; padding:16px; }
@media(max-width:760px) {
  .sidebar { gap:12px; }
  .sidebar-heading { grid-column:1/-1; grid-row:1; min-width:0; }
  .mobile-menu { grid-column:1/-1; grid-row:2; }
  .userbar { grid-column:1/-1; grid-row:3; width:100%; max-width:none; }
}

/* Persönliche Größenstufen; Werte sind ein gemeinsamer Implementierungsentwurf. */
:root[data-scale=compact] {
  font-size:82.5%;
  --ui-card-padding:18px; --ui-section-gap:16px; --ui-field-gap:12px;
  --ui-sidebar-width:232px; --ui-content-block:24px;
  --ui-content-inline:clamp(16px,3vw,48px);
  --ui-control-padding:6px 10px; --ui-nav-padding:6px 10px; --ui-field-padding-inline:10px;
}
:root[data-scale=large] {
  font-size:100%;
  --ui-card-padding:32px; --ui-section-gap:24px; --ui-field-gap:20px;
  --ui-sidebar-width:270px; --ui-content-block:48px; --ui-content-inline:6vw;
  --ui-control-height:48px; --ui-control-padding:12px 22px; --ui-nav-padding:12px; --ui-field-padding-inline:14px;
}
.field-grid,.history-grid { gap:var(--ui-field-gap); }

/* Dialog placement and dimensions are implementation drafts within shared tokens. */
.popup { width:min(680px,calc(100% - 32px)); max-height:calc(100dvh - 32px); border:1px solid var(--hairline); border-radius:var(--radius); background:var(--surface); color:var(--text); padding:var(--ui-card-padding); overflow:auto; }
.popup::backdrop { background:rgb(0 0 0 / 55%); }
.popup-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0; margin-bottom:var(--ui-section-gap); flex-wrap:wrap; }
.popup-heading h2 { margin:0; }
.popup-heading button { width:auto; }
.day-picker-row,.day-picker-range { display:flex; flex-wrap:wrap; gap:12px; align-items:end; margin-bottom:var(--ui-field-gap); }
.day-picker-row label,.day-picker-range label { flex:1 1 150px; min-width:0; }
.day-picker-row button,.day-picker-range button { width:auto; }
fieldset { min-width:0; border:1px solid var(--hairline); border-radius:var(--radius); margin:var(--ui-field-gap) 0; padding:16px; }
@media(max-width:760px) {
  .popup { width:calc(100% - 12px); max-height:calc(100dvh - 12px); padding:16px; }
}
.day-picker-row label,.day-picker-range label { display:flex; flex-direction:column; gap:4px; }
/* Confirmed dense desktop direction; exact values remain an implementation draft. */
:root { --ui-title-size:1.35rem; }
:root[data-scale=standard] { --ui-card-padding:12px; --ui-section-gap:10px; --ui-field-gap:8px; --ui-sidebar-width:224px; --ui-content-block:20px; --ui-content-inline:24px; --ui-nav-padding:6px 8px; }
:root[data-scale=compact] { --ui-title-size:1.25rem; --ui-card-padding:10px; --ui-section-gap:8px; --ui-field-gap:6px; --ui-sidebar-width:208px; --ui-content-block:16px; --ui-content-inline:18px; }
:root[data-scale=large] { --ui-title-size:1.6rem; }
.authenticated main h1 { font-size:var(--ui-title-size); letter-spacing:-.01em; margin-bottom:10px; }
.authenticated main h2 { font-size:1.15rem; }
/* #567 Kompakter Seitenkopf: Kontext-Überzeile (Projekt, Person) klein und grau statt farbiger Großbuchstaben. */
.authenticated main .eyebrow { margin-bottom:2px; color:var(--muted); text-transform:none; letter-spacing:0; font-weight:600; font-size:.82rem; }
.authenticated main .lead { font-size:1rem; margin-bottom:12px; }
/* #567 Erklärtexte eingeklappt: gemeinsamer Baustein <x-page-hint>. */
.page-hint { margin:0 0 var(--ui-field-gap); }
.page-hint > summary { display:inline-flex; align-items:center; min-height:var(--ui-control-height); color:var(--accent); font-weight:600; cursor:pointer; }
.page-hint > :not(summary) { color:var(--muted); margin:0 0 6px; }
.filter-bar { display:flex; flex-wrap:wrap; gap:12px; align-items:end; }
.filter-bar label { display:flex; flex-direction:column; gap:4px; flex:1 1 150px; }
.filter-bar button { width:auto; }
@media(min-width:761px) {
  .authenticated .sidebar { padding:18px 12px 12px; }
  .authenticated main { max-width:none; }
  .authenticated nav { gap:4px; }
  .authenticated .person-row { padding:10px 0; }
  .authenticated .contract-summary { padding:12px 0; }
}
@media(max-width:760px) { .filter-bar label,.filter-bar button { flex-basis:100%; width:100%; } }

[hidden] { display:none !important; }

.authenticated main .record-tabs { display:flex; flex-direction:row; flex-wrap:wrap; gap:6px; margin:0 0 20px; padding-bottom:10px; border-bottom:1px solid var(--hairline); }
.record-tab { display:flex; align-items:center; max-width:100%; border:1px solid var(--hairline); border-radius:10px; background:var(--surface); }
.record-tab.selected { border-color:var(--accent); box-shadow:inset 0 -2px var(--accent); }
.record-tab a { display:flex; flex-direction:column; padding:8px 10px; min-width:0; overflow-wrap:anywhere; text-decoration:none; }
.record-tab a span { font-weight:600; }
.record-tab small { color:var(--muted); }
.record-tab form { margin:0; flex-shrink:0; }
.record-tab .icon-button { margin:0; min-width:var(--ui-control-height); min-height:var(--ui-control-height); }
@media(max-width:760px) { .authenticated main .record-tabs { flex-direction:column; } .record-tab a { flex:1; } }

.dashboard-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--ui-section-gap); }
.dashboard-widget { min-width:0; }
.dashboard-clock { margin-bottom:var(--ui-section-gap); max-width:720px; }
.dashboard-clock .card { margin-top:8px; }
.dashboard-widget .card { margin-top:8px; }
.dashboard-wide { grid-column:1 / -1; }
.widget-actions,.widget-actions form { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.widget-actions { justify-content:space-between; }
.widget-actions form { margin:0; }
.widget-actions button { width:auto; min-width:var(--ui-control-height); padding:6px 10px; }
.widget-company { margin-top:8px; color:var(--muted); }
.dashboard-hours + .dashboard-hours { border-top:1px solid var(--hairline); margin-top:16px; padding-top:12px; }
.dashboard-hours dl { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 12px; }
.dashboard-hours dt,.dashboard-hours dd { margin:0; }
.dashboard-hours dd { font-weight:650; }
.personal-calendar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }
.calendar-date { display:flex; flex-direction:column; gap:4px; padding:10px; min-height:76px; border:1px solid var(--hairline); border-radius:10px; overflow-wrap:anywhere; }
.calendar-date[aria-current=date] { border-color:var(--accent); box-shadow:inset 0 -2px var(--accent); }
.calendar-date span { color:var(--muted); font-size:.85rem; }
.calendar-event { border-top:1px solid var(--hairline); padding:12px 0; overflow-wrap:anywhere; }
@media(max-width:1100px) { .dashboard-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:760px) {
  .personal-calendar { display:flex; flex-direction:column; }
  .calendar-weekday,.calendar-blank { display:none; }
  .calendar-date { flex-direction:row; flex-wrap:wrap; justify-content:space-between; min-height:44px; }
  .widget-actions { align-items:start; flex-direction:column; }
}

/* Personal dashboard edit controls use the shared appearance and size tokens. */
[data-dashboard-editor] .dashboard-widget { position:relative; cursor:grab; touch-action:none; }
[data-dashboard-editor] .dashboard-widget:active { cursor:grabbing; }
.widget-remove { position:absolute; top:6px; right:6px; color:var(--error); background:var(--surface); border:1px solid currentColor; opacity:0; }
.dashboard-widget:hover .widget-remove,.dashboard-widget:focus-within .widget-remove { opacity:1; }
.widget-preview { pointer-events:none; }
.widget-dragging { outline:2px solid var(--accent); }
.catalog-widget { padding:12px 0; border-top:1px solid var(--hairline); }
@media (hover:none), (pointer:coarse) { .widget-remove { opacity:1; } }

.calendar-markers { display:flex; flex-direction:column; gap:4px; min-width:0; max-width:100%; }
.calendar-marker { border-left:3px solid var(--accent); padding-left:5px; overflow-wrap:anywhere; }
.calendar-marker-absence { border-left-color:var(--muted); }
.calendar-marker-project { border-left-style:dashed; }
@media(max-width:760px) { .calendar-date .calendar-markers { flex-basis:100%; } }

.source-reference { overflow-wrap:anywhere; }

/* Month bands share the existing semantic colors; mobile keeps accessible daily rows. */
.calendar-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.calendar-toolbar h3 { margin:0; }
.calendar-month-navigation { display:flex; gap:8px; align-items:center; }
.calendar-month-navigation a { margin:0; }
.staffing-scope { display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; margin:8px 0 12px; }
.staffing-scope .calendar-month-navigation strong { min-width:12ch; text-align:center; }
.calendar-legend { display:flex; flex-wrap:wrap; gap:6px 16px; margin:12px 0; font-size:.85rem; }
.calendar-key { border-left:4px solid var(--accent); padding-left:6px; }
.calendar-key-absence { border-color:var(--success); }
.calendar-key-project { border-left-style:dashed; }
.calendar-key-travel { border-left:4px double #1b7f9e; }
.calendar-key-task { border-left-color:var(--warning); }
.calendar-bar-appointment { border-left-width:5px; }
.calendar-month { border:1px solid var(--hairline); border-radius:10px; overflow:hidden; }
.calendar-weekdays,.calendar-week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.calendar-weekdays { background:var(--bg); font-size:.85rem; font-weight:650; }
.calendar-weekdays span { padding:8px; border-right:1px solid var(--hairline); }
.calendar-week { min-height:140px; grid-template-rows:40px repeat(var(--calendar-lanes),30px) minmax(16px,1fr); }
.calendar-day { grid-row:1 / -1; min-width:0; padding:6px 8px; background:var(--surface); border-right:1px solid var(--hairline); border-top:1px solid var(--hairline); color:var(--text); text-decoration:none; font-size:.85rem; }
.calendar-weekend,.calendar-outside { background:var(--bg); }
.calendar-outside { color:var(--muted); }
.calendar-day-available { background:color-mix(in srgb,var(--success-bg) 45%,var(--surface)); }
.calendar-day-unavailable { background:color-mix(in srgb,var(--error-bg) 45%,var(--surface)); }
.calendar-day-available,.calendar-day-unavailable { position:relative; }
.calendar-availability-mark { position:absolute; top:6px; right:8px; font-size:.75rem; line-height:1; }
.calendar-day-available .calendar-availability-mark { color:var(--success); }
.calendar-day-unavailable .calendar-availability-mark { color:var(--error); }
.calendar-day[aria-current=date] { box-shadow:inset 0 0 0 2px var(--accent); }
.calendar-today time { display:inline-flex; align-items:center; justify-content:center; min-width:26px; min-height:26px; border-radius:50%; background:var(--action); color:var(--on-accent); font-weight:700; }
.calendar-today-label { display:inline-block; margin-left:4px; font-weight:650; font-size:.8rem; }
.calendar-bar { z-index:1; display:block; align-self:start; min-width:0; min-height:26px; margin:1px 2px; padding:4px 6px; border-left:3px solid currentColor; border-radius:4px; font-size:.8rem; line-height:1.4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-decoration:none; color:var(--accent); background:color-mix(in srgb,var(--accent) 15%,var(--surface)); }
.calendar-bar-time { color:var(--on-accent); background:var(--action); }
.calendar-bar-project { border-left-style:dashed; }
.calendar-bar-absence { color:var(--success); background:var(--success-bg); }
.calendar-bar-sick { color:var(--error); background:var(--error-bg); }
.calendar-bar-travel { color:var(--text); background:color-mix(in srgb,#1b7f9e 22%,var(--surface)); border-left-style:double; border-left-width:4px; }
.calendar-bar-pending { color:var(--warning); background:var(--warning-bg); }
.calendar-bar-muted { color:var(--muted); background:var(--bg); border-left-style:dotted; text-decoration:line-through; }
/* #771: pool job and option; text and symbol carry the meaning, the dashed line marks "provisional". */
.calendar-bar-pool-job { color:var(--success); background:var(--success-bg); }
.calendar-bar-pool-option { color:var(--warning); background:var(--warning-bg); border:1px dashed currentColor; border-left:3px dashed currentColor; }
.calendar-pool-icon { width:12px; height:12px; margin-right:4px; vertical-align:-1px; fill:none; stroke:currentColor; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
/* Floats right so that a cut-off title in a one-day bar never hides it. */
.calendar-pool-icon.calendar-overlap-mark { float:right; margin:3px 0 0 4px; }
.calendar-key-pool-job,.calendar-marker-pool-job { border-left-color:var(--success); }
.calendar-key-pool-option { border-left:4px dashed var(--warning); }
.calendar-marker-pool-option { border-left:3px dashed var(--warning); }
.calendar-overlaps { margin:8px 0; padding:6px 10px; border-left:3px solid var(--warning); border-radius:4px; background:var(--warning-bg); font-size:.9rem; }
.calendar-overlaps p { margin:2px 0; }
.calendar-overlaps a { color:inherit; }
.calendar-mobile { display:none; }
@media(max-width:760px) {
  .calendar-month { display:none; }
  .calendar-mobile { display:flex; }
  .calendar-toolbar { gap:8px; }
}

.dashboard-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.dashboard-heading h1 { margin:0; }
.dashboard-heading .icon-button { flex-shrink:0; margin:0; font-size:1.5rem; }
button.danger,.button.danger { color:var(--on-error); background:var(--error); border-color:var(--error); }
.widget-dragging { opacity:.55; }

/* Shared list density follows the personal scale; controls retain their touch target. */
:root { --ui-list-block:4px; --ui-list-inline:8px; }
:root[data-scale=compact] { --ui-list-block:2px; --ui-list-inline:6px; }
:root[data-scale=large] { --ui-list-block:8px; --ui-list-inline:12px; }
.page-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.authenticated .page-heading h1 { margin:0; }
.page-heading .icon-button { flex-shrink:0; margin:0; font-size:1.5rem; }
/* Nutzervorgabe 01.11.2026 (#570): every table is tight; STYLEGUIDE „Enger Zeilenabstand in Tabellen“. `.dense` stays as a synonym. */
:root { --ui-dense-block:2px; } :root[data-scale=compact] { --ui-dense-block:1px; } :root[data-scale=large] { --ui-dense-block:5px; }
.data-table { width:100%; border-collapse:collapse; font-size:.92em; }
.data-table th,.data-table td { text-align:left; vertical-align:middle; padding:var(--ui-dense-block) var(--ui-list-inline); line-height:1.35; border-bottom:1px solid var(--hairline); overflow-wrap:anywhere; }
.data-table th { hyphens:auto; color:var(--muted); font-weight:500; }
.data-table tbody tr:hover,.data-table tbody tr:focus-within { background:var(--bg); }
.data-value { min-width:0; }
.data-label { display:none; }
.data-table .data-name { min-width:12ch; }
.data-action { white-space:nowrap; display:inline-flex; align-items:center; gap:8px; min-height:var(--ui-control-height); padding:0 8px; border-radius:10px; font-weight:600; text-decoration:none; }
.data-action:hover { background:var(--hover-bg); text-decoration:underline; }
.data-table details { margin:0; }
/* Controls inside rows stay visually small; an invisible layer spans the row height so the row is not inflated to 44px (user approval 01.11.2026). */
.data-table td :is(.data-action,button,.button,summary,.icon-action,label.row-select-label) { position:relative; min-height:0; }
.data-table td :is(.data-action,summary) { padding-block:0; line-height:inherit; }
.data-table td :is(button,.button) { padding:0 10px; line-height:1.6; font-size:inherit; }
.data-table td .icon-action { width:26px; min-width:26px; height:22px; }
.data-table td .row-select { min-height:0; }
.data-table td a.row-link, .data-table td a.row-link:hover { color:inherit; background:none; text-decoration:none; }
.data-table td :is(.data-action,button,.button,summary,.icon-action,label.row-select-label)::after { content:""; position:absolute; inset:calc(-1 * var(--ui-dense-block) - 1px) -4px; }
.data-table summary { display:flex; align-items:center; }
@media(max-width:760px) {
  .data-table,.data-table tbody { display:block; }
  .data-table thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); }
  .data-table tr { display:block; border-bottom:1px solid var(--hairline); padding:var(--ui-list-inline) 0; }
  .data-table td { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,3fr); gap:var(--ui-list-inline); border:0; padding:var(--ui-list-block) 0; }
  .data-table .data-name { min-width:0; }
  .data-label { display:block; color:var(--muted); overflow-wrap:anywhere; }
}
.authenticated .person-row { padding:var(--ui-dense-block) 0; gap:var(--ui-field-gap); font-size:.92em; line-height:1.35; }

.personnel-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:16px; padding:0; margin-bottom:var(--ui-section-gap); }
.personnel-identity { display:flex; align-items:center; gap:16px; min-width:0; }
.personnel-identity h1,.personnel-identity p { margin:0; overflow-wrap:anywhere; }
.personnel-initial { display:grid; place-items:center; width:56px; height:56px; flex-shrink:0; border-radius:50%; background:var(--action); color:var(--on-accent); font-weight:700; }
.personnel-tabs { display:flex; flex-direction:row; flex-wrap:wrap; gap:4px; border-bottom:1px solid var(--hairline); margin-bottom:var(--ui-section-gap); }
.personnel-tabs a { min-height:var(--ui-control-height); display:flex; align-items:center; padding:8px 12px; text-decoration:none; border-bottom:3px solid transparent; }
.personnel-tabs a[aria-selected=true], .personnel-tabs a[aria-current=page] { border-color:var(--accent); font-weight:700; }
.operator-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:var(--ui-field-gap); margin-bottom:var(--ui-section-gap); }
.operator-toolbar .personnel-tabs { flex:1 1 220px; min-width:0; margin:0; }
.operator-toolbar form { margin:0; }
.operator-toolbar button { width:auto; margin:0; }
.personnel-columns { display:grid; grid-template-columns:minmax(0,3fr) minmax(0,2fr); gap:var(--ui-section-gap); }
.profile-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--ui-field-gap); }
.personnel-record { border-top:1px solid var(--hairline); padding:var(--ui-section-gap) 0; overflow-wrap:anywhere; }
.personnel-record h3,.personnel-record p { margin:4px 0; }
.personnel-record form button { width:auto; }
.profile-fallback-heading { margin-top:var(--ui-section-gap); }
[role=tabpanel] > .profile-fallback-heading { display:none; }
@media(max-width:1200px) { .profile-fields { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:900px) { .personnel-columns { grid-template-columns:minmax(0,1fr); } }
@media(max-width:540px) { .profile-fields { grid-template-columns:minmax(0,1fr); } .personnel-identity { align-items:start; } }

.profile-heading-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.profile-heading-actions button { width:auto; margin:0; }
button.secondary,.button.secondary { background:var(--surface); color:var(--text); border:1px solid var(--control-border); }
button.secondary:hover,.button.secondary:hover { background:var(--hover-bg); filter:none; }
/* Hour exports reuse the shared responsive statistics table and popup. */
.export-hash { overflow-wrap: anywhere; font-family: monospace; }
#export-recipient [data-popup-confirm] { color: var(--error); border-color: var(--error); background: var(--error-bg); }

/* Read-only absence planning. Colors always have a text code and accessible label. */
.planning-filters { display:flex; flex-wrap:wrap; gap:var(--ui-field-gap); align-items:end; margin-bottom:12px; }
.planning-filters > div { flex:1 1 140px; min-width:0; }
.planning-filters button { width:auto; margin:0; }
.planning-legend { display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; font-size:.85em; }
.planning-scroll { max-width:100%; overflow:auto; border:1px solid var(--hairline); border-radius:8px; }
.planning-table { border-collapse:separate; border-spacing:0; width:100%; font-size:.8em; }
.planning-table th,.planning-table td { min-width:30px; padding:3px 1px; border-right:1px solid var(--hairline); border-bottom:1px solid var(--hairline); text-align:center; vertical-align:middle; }
.planning-table thead th { background:var(--surface); color:var(--muted); }
.planning-table thead span { display:block; }
.planning-table .planning-person { position:sticky; left:0; z-index:1; min-width:140px; max-width:180px; text-align:left; padding:6px 8px; background:var(--surface); overflow-wrap:anywhere; }
.planning-table thead .planning-person { z-index:2; }
.planning-weekend { background:var(--bg); }
.planning-empty { color:var(--muted); }
.plan-event { display:block; padding:2px 3px; border:1px solid currentColor; border-radius:4px; font-weight:600; text-align:center; text-decoration:none; line-height:1.4; }
a.plan-event { min-height:44px; display:flex; align-items:center; justify-content:center; }
.plan-pending { color:var(--warning); background:var(--warning-bg); }
.plan-approved { color:var(--success); background:var(--success-bg); }
.plan-time-off { color:var(--accent); background:var(--bg); }
.plan-sick { color:var(--error); background:var(--error-bg); }
.plan-other { color:var(--muted); background:var(--surface); }
.plan-cancelling { border-style:dashed; }
.planning-table [aria-current=date] { box-shadow:inset 0 -3px var(--accent); }
@media(max-width:540px) { .planning-table .planning-person { min-width:110px; max-width:120px; } .planning-filters > div { flex-basis:calc(50% - 12px); } }

@media(max-width:540px) { .planning-filters > div:first-child,.planning-filters > div:has(#personnel-filter) { flex-basis:100%; } }

.warning { color:var(--warning); }

/* Compact shared spacing; larger personal scale and touch targets remain available. */
.authenticated label { margin-bottom:4px; }
:root[data-scale=large] .authenticated label { margin-bottom:8px; }
.field-grid > div > label:first-child,.company-fields > div > label:first-child { margin-top:0; }
:root:not([data-scale=large]) .authenticated .card > h2 { margin-bottom:8px; }
:root:not([data-scale=large]) .authenticated .card > p { margin-bottom:8px; }
.settings-grid { display:grid; grid-template-columns:minmax(0,1fr) 208px; gap:var(--ui-section-gap); align-items:start; margin:var(--ui-section-gap) 0; }
.settings-grid > .card { margin:0; min-width:0; }
.company-fields { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:var(--ui-field-gap); }
.company-fields > div { grid-column:span 6; min-width:0; }
.company-fields .company-field-name { grid-column:1 / 9; grid-row:1; }
.company-fields .company-field-vat_id { grid-column:9 / 13; grid-row:1; }
.company-fields .company-field-street { grid-column:span 8; }
.company-fields .company-field-house_number { grid-column:span 4; }
.company-fields .company-field-postal_code { grid-column:span 3; }
.company-fields .company-field-city { grid-column:span 5; }
.company-fields .company-field-country { grid-column:span 4; }
.settings-section-heading { margin:var(--ui-section-gap) 0 var(--ui-field-gap); padding-top:var(--ui-field-gap); border-top:1px solid var(--hairline); }
.billing-subhead { margin:var(--ui-section-gap) 0 4px; }
.settings-actions { display:flex; gap:var(--ui-field-gap); align-items:start; flex-wrap:wrap; margin-top:var(--ui-section-gap); }
.settings-help { flex:1; min-width:120px; }
.settings-help summary { min-height:var(--ui-control-height); padding:8px 0; cursor:pointer; color:var(--accent); }
.image-picker-current { display:flex; flex-wrap:wrap; align-items:center; gap:var(--ui-field-gap); }
.image-picker-current > .image-picker-preview { width:160px; height:72px; margin:0; }
.image-picker-current > p { margin:0; }
@media(max-width:1100px) { .settings-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:760px) {
  .company-fields > div[class] { grid-column:1 / -1; grid-row:auto; }
  .image-picker-current > .image-picker-preview { width:112px; height:56px; }
}

/* Shared compact page patterns; preserve separate touch targets and larger scale. */
.project-overview { display:grid; grid-template-columns:minmax(0,2fr) minmax(280px,1fr); gap:var(--ui-section-gap); align-items:start; margin:var(--ui-section-gap) 0; }
.project-heading { flex-wrap:wrap; }
.project-heading h1 { flex:1 1 280px; min-width:0; }
.project-heading > button { max-width:100%; }
.project-overview > .card { min-width:0; margin:0; }
.project-overview .page-heading h2 { margin:0; }
/* Shared compact read list (#337): same row height, hover and padding tokens as the data table. */
.category-list { list-style:none; margin:0; padding:0; }
.category-list > li { padding:var(--ui-dense-block) var(--ui-list-inline); font-size:.92em; line-height:1.35; border-top:1px solid var(--hairline); overflow-wrap:anywhere; }
.category-list > li:not(.category-row) { color:var(--muted); }
.category-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--ui-field-gap); }
/* Dense list rows (#570): same small controls with a row-height hit layer as in .data-table. */
:is(.category-row,.authenticated .person-row) :is(.data-action,summary,button,.button) { position:relative; min-height:0; padding-block:0; line-height:1.6; }
:is(.category-row,.authenticated .person-row) :is(.data-action,summary,button,.button)::after { content:""; position:absolute; inset:calc(-1 * var(--ui-dense-block) - 1px) -4px; }
.category-row:hover,.category-row:focus-within { background:var(--bg); }
.category-row > div,.category-row > label { flex:1 1 8rem; min-width:0; overflow-wrap:anywhere; }
.category-row > label.check-field { margin:0; }
.category-row .muted { display:block; font-size:.85rem; }
.time-standards { display:grid; grid-template-columns:1fr; margin:0; }
.time-standard { display:flex; align-items:center; gap:var(--ui-field-gap); padding:var(--ui-dense-block) 0; border-bottom:1px solid var(--hairline); }
.time-standard:last-child { border-bottom:0; }
.time-standard dt { color:var(--muted); font-size:.85rem; min-width:10.5rem; }
.time-standard dd { margin:0; flex:1; font-weight:600; }
.time-category-list { display:flex; flex-wrap:wrap; gap:4px 18px; margin:0; padding:0; list-style:none; }
.time-category-list > li { display:flex; align-items:center; gap:6px; }
details.time-history > summary { cursor:pointer; font-weight:600; padding:4px 0; }
.time-employee-table th { white-space:nowrap; hyphens:manual; }
.time-popup-grid { display:grid; grid-template-columns:auto 1fr; gap:6px 12px; align-items:center; }
.time-popup-grid label { margin:0; }
.time-popup-grid .time-popup-wide { grid-column:1 / -1; }
@media (max-width:560px) { .time-standard { flex-wrap:wrap; } .time-popup-grid { grid-template-columns:1fr; } }
.category-row details { margin:2px 0 0; }
.category-row summary { display:flex; align-items:center; }
.category-actions,.category-row > .actions { display:flex; flex:none; flex-wrap:wrap; align-items:center; gap:var(--ui-field-gap); margin:0; }
.category-row .data-action { flex:none; }
@media(max-width:1100px) { .project-overview { grid-template-columns:minmax(0,1fr); } }
:root { --ui-calendar-week-height:104px; --ui-calendar-date-height:32px; --ui-calendar-lane-height:28px; }
:root[data-scale=compact] { --ui-calendar-week-height:92px; --ui-calendar-date-height:28px; }
:root[data-scale=large] { --ui-calendar-week-height:140px; --ui-calendar-date-height:40px; --ui-calendar-lane-height:30px; }
.calendar-week { min-height:var(--ui-calendar-week-height); grid-template-rows:var(--ui-calendar-date-height) repeat(var(--calendar-lanes),var(--ui-calendar-lane-height)) minmax(8px,1fr); }
.overview-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--ui-section-gap); align-items:start; margin:var(--ui-section-gap) 0; }
.overview-grid > .card { margin:0; min-width:0; }
/* #873: Freelancer-Pool-Reiter: Status oben, Anfragen/Bewerbungen nebeneinander, Standort, kleine Kacheln; Zeilen ohne Leerflächen */
.pool-layout { display:flex; flex-direction:column; gap:var(--ui-section-gap); margin:var(--ui-section-gap) 0; }
.pool-layout .card { margin:0; min-width:0; }
.pool-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--ui-section-gap); align-items:start; }
.pool-tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(16rem,1fr)); gap:var(--ui-section-gap); align-items:start; }
.pool-tiles:empty { display:none; }
.pool-status h2, .pool-tile h2 { margin-bottom:.25rem; }
.pool-address { grid-template-columns:8rem minmax(0,1fr) minmax(0,1.4fr); }
.pool-hint { margin:.25rem 0 .5rem; }
.pool-pair .compact-list-row > .actions, .pool-pair .compact-list-row form.actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0; }
.pool-pair .compact-list-row > .actions > form { margin:0; display:flex; align-items:center; gap:6px; }
.pool-pair .compact-list-row input[name=amount] { width:7rem; }
.pool-hint > summary { cursor:pointer; color:var(--muted); font-size:.9em; min-height:24px; }
@media(max-width:1100px) { .pool-pair { grid-template-columns:minmax(0,1fr); } }
@media(max-width:760px) { .pool-address { grid-template-columns:minmax(0,1fr); } }
.key-values { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:6px var(--ui-field-gap); margin:var(--ui-field-gap) 0; }
.key-values dt,.key-values dd { margin:0; min-width:0; overflow-wrap:anywhere; }
.key-values dt { color:var(--muted); }
.minijob-closing { max-width:calc((100% - var(--ui-section-gap)) / 2); }
.minijob-closing .closing-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:8px; }
.minijob-closing .closing-actions button { width:auto; }
.minijob-closing .closing-warn { margin:6px 0 0; padding-left:18px; }
.form-section-heading { margin:var(--ui-section-gap) 0 var(--ui-field-gap); padding-top:var(--ui-field-gap); border-top:1px solid var(--hairline); }
.profile-fields > div > label:first-child { margin-top:0; }
.filter-bar > div { flex:1 1 180px; min-width:0; }
.filter-bar > div > label:first-child { margin-top:0; }
.authenticated .contract-summary,.authenticated .change { padding:var(--ui-field-gap) 0; }
.authenticated .contract-summary h3,.authenticated .contract-summary p { margin:4px 0; }
.authenticated main .record-tabs { margin-bottom:var(--ui-section-gap); padding-bottom:var(--ui-field-gap); flex-wrap:nowrap; overflow-x:auto; max-width:100%; gap:4px; }
.record-tabs .record-tab { flex:0 0 auto; min-width:0; max-width:300px; border-radius:8px; }
.record-tab a { flex:1; min-height:var(--ui-control-height); justify-content:center; padding:3px 8px; font-size:.9rem; line-height:1.2; }
.record-tab a span,.record-tab a small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.record-tab a small { font-size:.75rem; line-height:1.2; }
.personnel-tabs { gap:2px; }
.personnel-tabs a { padding:4px 8px; font-size:.9rem; }
:root[data-scale=large] .record-tab a,:root[data-scale=large] .personnel-tabs a { font-size:1rem; }
.authenticated main .lead { margin-bottom:var(--ui-section-gap); }
.authenticated .notification-dialog { padding:var(--ui-card-padding); }
.authenticated .avatar-current { margin:var(--ui-section-gap) 0; }
.authenticated .avatar-presets { gap:var(--ui-field-gap); }
@media(max-width:1100px) { .overview-grid { grid-template-columns:minmax(0,1fr); } .minijob-closing { max-width:none; } }
@media(max-width:760px) {
  .filter-bar > div { flex-basis:100%; }
  .key-values { grid-template-columns:minmax(0,1fr); gap:2px; }
  .key-values dd { margin-bottom:var(--ui-field-gap); }
}

.vehicle-specs, .vehicle-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:var(--ui-field-gap); }
.vehicle-specs > div, .vehicle-fields > div { min-width:0; overflow-wrap:anywhere; }
.vehicle-specs dt { color:var(--muted); font-size:.9em; }
.vehicle-specs dd { margin:0; }
@media(min-width:1001px) {
  .vehicle-list .data-table { table-layout:auto; }
  .vehicle-list td { white-space:nowrap; }
  .vehicle-list th:first-child { width:24%; }
  .vehicle-list td:first-child { white-space:normal; }
  .vehicle-list th:last-child, .vehicle-list td:last-child { width:1%; white-space:nowrap; }
}
.form-help { margin:var(--ui-field-gap) 0; }
.form-help > summary { min-height:var(--ui-control-height); padding:8px 0; cursor:pointer; }
@media(max-width:760px) {
  .authenticated main .record-tabs { flex-direction:row; flex-wrap:nowrap; overflow-x:auto; max-width:100%; }
  .record-tabs .record-tab { flex:0 0 208px; }
  .personnel-tabs { flex-wrap:nowrap; overflow-x:auto; max-width:100%; }
  .personnel-tabs a { flex:none; white-space:nowrap; }
}

@media (max-width: 480px) { .category-row { flex-wrap:wrap; } .category-row > div,.category-row > label { flex-basis:100%; } }

/* Country picker uses the shared select rule (#490); wrapper stays a block for layout. */
.country-picker { display:block; min-width:0; }

/* Date creation uses existing dialog, action sizes and semantic theme tokens. */
.calendar-create-options { list-style:none; padding:0; display:grid; gap:var(--ui-field-gap); }
.calendar-create-options li { border-bottom:1px solid var(--hairline); padding-block:4px; }
.calendar-create-options p { margin-block:4px; }
.calendar-create-options .button { max-width:100%; white-space:normal; overflow-wrap:anywhere; }

#calendar-date-create { width:min(480px,calc(100% - 32px)); }

/* Calendar view controls share the compact navigation and personal size tokens. */
.calendar-view-tabs { display:flex; flex-wrap:nowrap; gap:4px; margin-block:var(--ui-field-gap); max-width:100%; overflow-x:auto; }
.calendar-view-tabs .data-action { flex:none; margin:0; padding:4px 8px; }
.calendar-view-tabs [aria-current=page] { color:var(--accent); box-shadow:inset 0 -2px var(--accent); font-weight:700; }
.calendar-date-navigation { align-items:end; }
.calendar-agenda-day { border-top:1px solid var(--hairline); padding-block:var(--ui-field-gap); }
.calendar-agenda-day h4 { margin:0; }
.calendar-agenda-day .calendar-event { padding-block:var(--ui-field-gap); }
.calendar-agenda-day .calendar-event p { margin-block:4px; }
.calendar-agenda-day .calendar-toolbar { gap:4px; }
.calendar-week { grid-template-rows:max(var(--ui-control-height),var(--ui-calendar-date-height)) repeat(var(--calendar-lanes),max(var(--ui-control-height),var(--ui-calendar-lane-height))) minmax(8px,1fr); }
.calendar-bar { min-height:var(--ui-control-height); }
.calendar-view-tabs,.calendar-month-navigation { flex-direction:row; }
.calendar-date-navigation label { flex:0 1 240px; }
.calendar-date-navigation button { flex:none; }
@media(max-width:760px) { .calendar-date-navigation label { flex:1 1 150px; } .calendar-date-navigation button { flex:0 1 auto; width:auto; } }

.calendar-return { max-width:100%; white-space:normal; overflow-wrap:anywhere; }

.project-history { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
#project-catalogs .project-overview { grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); }
.project-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); gap:var(--ui-field-gap); margin:var(--ui-field-gap) 0; }
.project-facts > div { min-width:0; }
.project-facts dd { margin:0; }
.project-heading h2,.project-heading h3 { margin:0; flex:0 0 auto; max-width:100%; }
.project-heading > button { flex:0 0 auto; }

/* Projektfarbe (#591): frei gewählte Füllfarbe und automatisch gewählte Schrift als Inline-Eigenschaften (App\Support\ProjectColor). */
.project-calendar .calendar-bar { color:var(--project-text,#fff); background:var(--project-fill,#5b6475); border-left-style:solid; }
.project-tentative { font-style:italic; }
.project-event { border-left:4px solid var(--project-fill,#5b6475); padding-left:8px; }
.color-value { display:inline-flex; align-items:center; gap:6px; font-variant-numeric:tabular-nums; }
.color-value i { width:14px; height:14px; border-radius:3px; background:var(--swatch); box-shadow:inset 0 0 0 1px rgb(0 0 0 / 15%); flex:none; }
.project-filters { display:grid; gap:var(--ui-field-gap); }
.project-filters p { margin:0; }
.project-filters label { margin:0; }
.project-status-options { display:flex; flex-wrap:wrap; gap:4px 12px; margin:0; }
.project-status-options .check-field { width:auto; }
.project-results { margin-top:var(--ui-section-gap); border-top:1px solid var(--hairline); }
.project-mobile-day { min-width:0; }
.project-mobile-day .calendar-event { margin:0 0 4px; }
.project-calendar .calendar-date[aria-current=date] { border-color:var(--accent); }
.project-mobile-day .calendar-bar { margin:4px 0; }
.calendar-month-navigation .icon-button { min-width:var(--ui-control-height); min-height:var(--ui-control-height); }
.calendar-mobile .calendar-date { min-height:var(--ui-control-height); }
.project-filters summary { min-height:var(--ui-control-height); display:flex; align-items:center; cursor:pointer; }
.project-filters summary::before { content:'▸'; margin-right:4px; }
.project-filters details[open] > summary::before { content:'▾'; }

/* Shared personal/company menu; headings do not reduce existing action targets. */
.workspace-menu { gap:var(--ui-section-gap); }
.menu-section { min-width:0; }
.menu-heading { font-size:.76rem; line-height:1.35; color:var(--muted); letter-spacing:.04em; margin:4px 0 4px; padding:0 8px; }
.menu-company-label { font-size:.76rem; color:var(--muted); padding:4px 8px 0 32px; overflow-wrap:anywhere; }
.workspace-menu summary { overflow-wrap:anywhere; }

.project-demand-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:var(--ui-section-gap); align-items:start; }
.project-demand-columns .page-heading, .compact-list-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--ui-field-gap); }
.compact-list-row { padding:8px 0; border-bottom:1px solid var(--hairline); overflow-wrap:anywhere; }
.compact-list-row > div:first-child { min-width:0; flex:1 1 180px; }
@media(max-width:800px) { .project-demand-columns { grid-template-columns:minmax(0,1fr); } }

.project-demand-page summary { min-height:var(--ui-control-height); padding:8px 0; cursor:pointer; }

/* Comparable role/access lists share the available width. */
.role-management { grid-template-columns:repeat(2,minmax(0,1fr)); }
.role-management .category-row strong { display:block; }
@media(max-width:1100px) { .role-management { grid-template-columns:minmax(0,1fr); } }
.role-management summary,.role-history > summary { min-height:var(--ui-control-height); padding:8px 0; cursor:pointer; }

/* Personal account disclosure keeps secondary actions out of the main workspace. */
.account-menu { position:relative; width:100%; min-width:0; }
.account-menu > summary { padding:6px 0; cursor:pointer; list-style:none; min-height:var(--ui-control-height); }
.account-menu > summary::-webkit-details-marker { display:none; }
.account-menu .account-name { min-width:0; overflow-wrap:anywhere; }
.account-menu .avatar { flex-shrink:0; }
.account-menu .account-chevron { flex:0 0 auto; margin-left:auto; }
.account-dropdown { position:absolute; left:0; bottom:calc(100% + 6px); z-index:40; width:min(300px,calc(100vw - 24px)); max-height:calc(100dvh - 120px); overflow:auto; padding:4px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); color:var(--text); }
.account-dropdown .account-action { display:flex; align-items:center; justify-content:flex-start; gap:8px; width:100%; min-height:var(--ui-control-height); padding:8px 10px; text-align:left; white-space:normal; overflow-wrap:anywhere; border:0; border-radius:var(--ui-button-radius); margin:0; color:var(--text); background:transparent; text-decoration:none; font:inherit; cursor:pointer; }
.account-dropdown .account-action:hover,.account-dropdown .account-action:focus-visible { background:var(--bg); }
.account-dropdown .account-action:disabled { opacity:1; color:var(--muted); cursor:default; }
.account-dropdown form { margin:0; }
.account-company-menu > summary { list-style:none; }
.account-company-menu > summary::-webkit-details-marker { display:none; }
.account-company-menu > summary::after { content:'›'; margin-left:auto; }
.account-company-menu[open] > summary::after { content:'⌄'; }
.account-company-choices { border-left:1px solid var(--border); margin-left:10px; }
.account-company-choices .account-action { flex-wrap:wrap; }
.account-company-choices small { color:var(--muted); margin-left:auto; }
@media(max-width:760px) {
  .account-dropdown { bottom:auto; top:calc(100% + 6px); }
}

.staffing-availability-summary { min-height:var(--ui-control-height); padding:8px 0; cursor:pointer; overflow-wrap:anywhere; }

/* Project planner: a read-only timeline, with an equivalent native disclosure list. */
.project-planner { min-width:0; max-width:100%; }
.planner-filters { display:flex; flex-wrap:wrap; align-items:end; gap:var(--ui-field-gap); }
.planner-filters > div { flex:1 1 140px; min-width:0; }
.planner-scroll { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; border:1px solid var(--hairline); border-radius:var(--radius); }
.planner-scroll:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.planner-grid { min-width:1000px; }
.planner-axis,.planner-line { display:grid; grid-template-columns:220px minmax(0,1fr); border-bottom:1px solid var(--hairline); }
.planner-axis { min-height:44px; background:var(--bg); }
.planner-line { min-height:var(--ui-control-height); }
.planner-label { display:flex; flex-direction:column; justify-content:center; padding:4px 8px; overflow-wrap:anywhere; }
.planner-label span { color:var(--muted); font-size:.85em; }
.planner-track { position:relative; min-width:0; border-left:1px solid var(--hairline); }
.planner-tick { position:absolute; top:4px; font-size:.75em; white-space:nowrap; padding-left:2px; }
.planner-gridline { position:absolute; top:0; bottom:0; border-left:1px solid var(--hairline); }
.planner-bar { position:absolute; top:8px; bottom:8px; min-width:1px; border:2px solid var(--accent); border-radius:4px; background:var(--surface); overflow:hidden; }
.planner-bar span { display:block; padding:1px 4px; white-space:nowrap; font-size:.8em; }
.planner-bar-demand { border-color:var(--muted); }
.planner-bar-sent { border-style:dashed; }
.planner-bar-draft { border-style:dotted; }
.planner-item { border-bottom:1px solid var(--hairline); padding:4px 0; }
.planner-item > summary { min-height:var(--ui-control-height); padding:8px 4px; cursor:pointer; overflow-wrap:anywhere; }
.planner-item p { overflow-wrap:anywhere; }
.planner-help > summary { min-height:var(--ui-control-height); padding:8px 0; cursor:pointer; }

.agreement-hash { overflow-wrap: anywhere; white-space: normal; }
.agreement-link { white-space: normal; }

/* Shared readable specifications for material records and their audit snapshots. */
.record-specs { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:var(--ui-field-gap); }
.record-specs > div { min-width:0; overflow-wrap:anywhere; }
.record-specs dt { color:var(--muted); font-size:.9em; }
.record-specs dd { margin:0; }

/* The separate operator surface uses the same compact scale without a customer sidebar. */
.operator main { padding:var(--ui-content-block) var(--ui-content-inline); }
.operator main h1 { font-size:var(--ui-title-size); letter-spacing:-.02em; margin-bottom:var(--ui-section-gap); }
.operator main h2 { font-size:1.15rem; }
.operator main .eyebrow { margin-bottom:var(--ui-field-gap); }
.operator .card > p { margin-bottom:var(--ui-field-gap); }
.operator .operator-toolbar .personnel-tabs { flex-wrap:nowrap; overflow-x:auto; }
.operator .personnel-tabs a { flex-shrink:0; }
.operator .page-heading h2 { margin:0; }
.operator header { padding:var(--ui-content-block) var(--ui-content-inline); flex-wrap:wrap; }

/* Standalone hosting setup reuses application controls and tokens before a DB exists. */
.hosting-setup main { padding:var(--ui-content-block) var(--ui-content-inline); }
.hosting-setup .error, .hosting-setup .hosting-success { margin-bottom:var(--ui-section-gap); }
.hosting-setup .error p, .hosting-setup .hosting-success p { margin:0 0 6px; }
.hosting-setup .hosting-success { background:var(--success-bg); color:var(--success); border:1px solid var(--success); border-radius:12px; padding:20px; }
.hosting-setup fieldset { border:1px solid var(--hairline); border-radius:12px; padding:var(--ui-field-gap) var(--ui-content-inline); margin:var(--ui-field-gap) 0; }
.hosting-setup legend { font-weight:600; padding:0 6px; }
.hosting-setup details { margin-top:var(--ui-section-gap); }

/* #337 shared button variants and status badges; colors only from semantic tokens. */
button.ghost,.button.ghost { background:transparent; color:var(--accent); border-color:transparent; padding-inline:8px; }
button.ghost:hover,.button.ghost:hover { background:var(--hover-bg); filter:none; text-decoration:underline; text-underline-offset:3px; }
.button svg,button svg { flex:none; }
form[aria-busy=true] [data-loading]:disabled { cursor:progress; opacity:.8; }
form[aria-busy=true] [data-loading]:disabled::before { content:""; width:1em; height:1em; flex:none; border-radius:50%; border:2px solid currentColor; border-right-color:transparent; animation:button-spin .8s linear infinite; }
@keyframes button-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { button,.button { transition:none; } form[aria-busy=true] [data-loading]:disabled::before { animation:none; border-right-color:currentColor; opacity:.6; } }
.status-badge { --badge-fg:var(--neutral); --badge-bg:var(--neutral-bg); display:inline-flex; align-items:center; gap:5px; max-width:100%; padding:1px 8px 1px 6px; border-radius:999px; background:var(--badge-bg); color:var(--badge-fg); font-size:.82rem; font-weight:650; line-height:1.6; vertical-align:middle; overflow-wrap:anywhere; }
.status-badge svg { width:12px; height:12px; flex:none; fill:none; stroke:currentColor; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.status-badge-success { --badge-fg:var(--success); --badge-bg:var(--success-bg); }
.status-badge-warning { --badge-fg:var(--warning); --badge-bg:var(--warning-bg); }
.status-badge-danger { --badge-fg:var(--error); --badge-bg:var(--error-bg); }
.status-badge-live { --badge-fg:var(--text); --badge-bg:transparent; box-shadow:inset 0 0 0 1.5px var(--action); }

/* #337 shared list header: sortable columns, optional column choice, mobile cards. */
.data-table th[aria-sort] { color:var(--text); }
.sort-link { display:inline-flex; align-items:center; gap:4px; min-height:var(--ui-control-height); color:inherit; text-decoration:none; }
.sort-link:hover { color:var(--accent); text-decoration:underline; }
/* Dense header (#570): sort links stay text-sized, their hit layer spans the header cell. */
.data-table th .sort-link { position:relative; min-height:0; }
.data-table th .sort-link::after { content:""; position:absolute; inset:calc(-1 * var(--ui-dense-block) - 1px) -4px; }
.sort-indicator { font-size:.75em; opacity:.6; }
th[aria-sort] .sort-indicator { opacity:1; color:var(--accent); }
.column-chooser { margin:0 0 4px; }
.column-chooser > summary { width:max-content; cursor:pointer; }
.column-chooser fieldset { display:flex; flex-wrap:wrap; gap:4px 16px; border:0; margin:0; padding:4px 8px; }
.data-table td.data-actions .data-value { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:4px; }
.data-table td.data-actions button, .data-table td.data-actions .data-action { white-space:nowrap; }
/* One line per record on wide screens: dates, badges and action rows do not break (styleguide 01). */
@media(min-width:761px) { .data-table td.data-nowrap .data-value { white-space:nowrap; flex-wrap:nowrap; } }
@media(max-width:760px) {
  .data-table tr { border:1px solid var(--hairline); border-radius:12px; padding:6px 10px; margin-bottom:8px; background:var(--surface); }
  .data-table td:first-child { display:block; font-size:1.02em; }
  .data-table td:first-child .data-label, .data-table td.data-actions .data-label { display:none; }
  .data-table td.data-actions { display:block; border-top:1px solid var(--hairline); margin-top:4px; padding-top:4px; }
  .data-table td.data-actions .data-value { justify-content:flex-start; }
}

/* #337 compact mobile cards: only name, one short line, status and actions; further values stay in the desktop table and detail view. */
.data-sub { display:block; }
.data-table-tools { display:flex; flex-wrap:wrap; gap:4px 8px; align-items:flex-start; }
.list-sort-mobile { display:none; margin:0 0 4px; }
.list-sort-mobile > summary { width:max-content; cursor:pointer; }
.list-sort-mobile ul { list-style:none; margin:0; padding:4px 8px; display:grid; }
.list-sort-mobile [aria-current] { color:var(--text); font-weight:700; }
@media(max-width:760px) {
  .list-sort-mobile { display:block; }
  .data-table-tools .column-chooser { display:none; }
  .data-table-compact tr { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:8px; align-items:center; padding:6px 4px 6px 10px; }
  .data-table-compact td { display:block; grid-column:1; padding:1px 0; }
  .data-table-compact td[colspan] { grid-column:1 / -1; }
  .data-table-compact .data-label, .data-table-compact td.data-mobile-hide { display:none; }
  .data-table-compact td:not(:first-child) { color:var(--muted); font-size:.92em; }
  .data-table-compact td.data-actions { grid-column:2; grid-row:1 / span 4; border:0; margin:0; padding:0; color:inherit; font-size:inherit; }
  .data-table-compact td.data-actions .data-value { flex-direction:column; align-items:flex-end; gap:0; }
}

/* Tags (#398): compact read-only chips and wrapping checkbox options in the shared editor popup. */
.tag-list { display:flex; flex-wrap:wrap; gap:4px; margin:0; padding:0; list-style:none; }
.tag-chip { display:inline-flex; max-width:100%; padding:1px 8px; border:1px solid var(--hairline); border-radius:999px; font-size:.82rem; line-height:1.6; overflow-wrap:anywhere; }
.tag-options { display:flex; flex-wrap:wrap; gap:4px 12px; }
.tag-option { display:inline-flex; gap:6px; align-items:center; min-height:var(--ui-control-height); }
.tag-option input { width:20px; min-height:20px; margin:0; }
.data-table .tag-list { margin-top:2px; }

/* Notification overview (dashboard, bell dialog, /notifications): one row per entry (dot, text line, short time, read action), no labels; unread = coral dot + weight, "Neu" stays as hidden text. */
.notification-tabs { display:flex; gap:4px; border-bottom:1px solid var(--border); margin-bottom:6px; }
.notification-tab { display:inline-flex; align-items:center; gap:6px; padding:6px 12px; min-height:36px; color:var(--muted); text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-1px; }
.notification-tab[aria-selected="true"] { color:inherit; font-weight:600; border-bottom-color:var(--action); }
.notification-tab-count { min-width:20px; padding:1px 6px; border-radius:20px; background:var(--action); color:var(--on-accent); font-size:.7rem; text-align:center; }
.notification-overview-heading { display:flex; align-items:center; gap:12px; }
.notification-overview-title { display:flex; align-items:baseline; gap:4px 12px; flex-wrap:wrap; min-width:0; }
.dashboard-notifications .notification-overview-heading h2 { margin:0; }
.notification-overview-heading form { margin:0 0 0 auto; }
.notification-read-all { display:inline-flex; align-items:center; gap:8px; margin:0; }
.notification-read-all .navigation-icon { width:20px; height:20px; flex:0 0 20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.notification-feed { list-style:none; margin:0; padding:0; }
.notification-entry { display:grid; grid-template-columns:8px minmax(0,1fr) auto var(--ui-control-height); align-items:center; gap:10px; min-height:calc(var(--ui-control-height) + 4px); border-top:1px solid var(--hairline); }
.notification-dot { width:8px; height:8px; border-radius:50%; }
.notification-entry.is-unread .notification-dot { background:var(--action); }
.notification-line { margin:0; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.notification-entry.is-unread .notification-title { font-weight:700; }
.notification-summary, .notification-time { color:var(--muted); }
.notification-summary::before { content:" · "; white-space:pre; }
/* #647: the category is the shared label chip (x-status-badge) in front of the title. */
.notification-line .notification-category { margin-right:8px; }
.notification-time { font-size:.9rem; white-space:nowrap; font-variant-numeric:tabular-nums; }
.notification-entry form { margin:0; }
.notification-overview-footer { margin:var(--ui-field-gap) 0 0; }
.notification-empty { margin:var(--ui-field-gap) 0; }
.notification-action::before { content:" · "; display:inline-block; white-space:pre; color:var(--muted); }
/* An explicit action (invitation) never gets cut off; the title shortens instead. */
.notification-line.has-action { display:flex; }
.notification-line.has-action > * { flex:none; }
.notification-line.has-action > .notification-title { flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }
/* #658: a summary next to an action shortens first, so the title stays readable. */
.notification-line.has-action > .notification-summary { flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.notification-line.has-action > .notification-title:has(~ .notification-summary) { flex-shrink:0; }
.notification-status:empty { display:none; }
.notification-dialog .notification-overview-heading, .notification-page .notification-overview-heading { justify-content:space-between; min-height:var(--ui-control-height); margin:var(--ui-field-gap) 0; }
.notification-note { margin:var(--ui-field-gap) 0 0; color:var(--muted); font-size:.85rem; }
/* /notifications shows a company message in full; everywhere else it stays one shortened line. */
.notification-entry.is-expanded { align-items:start; padding:10px 0; }
.notification-entry.is-expanded .notification-dot, .notification-entry.is-expanded .notification-time { margin-top:6px; }
.notification-entry.is-expanded .notification-line { white-space:normal; }
.notification-entry.is-expanded .notification-summary { display:block; flex:0 0 100%; overflow:visible; white-space:pre-line; overflow-wrap:anywhere; color:var(--text); }
.notification-entry.is-expanded .notification-summary::before { content:none; }
@media (max-width:640px) {
  .notification-read-all span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .notification-read-all { width:var(--ui-control-height); justify-content:center; padding:0; }
  /* Mobile: title on top, category and summary as one muted second line. */
  .notification-entry { gap:8px; padding:4px 0; }
  .notification-line { display:flex; flex-wrap:wrap; }
  .notification-title { order:-1; flex:0 0 100%; overflow:hidden; text-overflow:ellipsis; }
  .notification-line.has-action > .notification-title { flex:0 0 100%; }
  .notification-summary { font-size:.85rem; }
  .notification-summary { flex:1 1 0; min-width:0; overflow:hidden; text-overflow:ellipsis; }
  .notification-time { font-size:.85rem; }
  .notification-action { flex:none; font-size:.85rem; }
}

/* Person status in function rows (#497): requested italic, fixed normal, declined grey, cancelled/withdrawn grey on red.
   The status is always named as text too; no badges. Used by the project page and both staff planners. */
.staffing-state-requested, .staffing-state-requested > summary { font-style:italic; }
.staffing-state-declined, .staffing-state-declined > summary,
.staffing-state-cancelled, .staffing-state-cancelled > summary { color:var(--muted); }
.staffing-state-cancelled { background:var(--error-bg); }
.planner-bar-declined, .planner-bar-withdrawn, .planner-bar-cancelled { border-color:var(--muted); border-style:dotted; color:var(--muted); }
.planner-bar-withdrawn, .planner-bar-cancelled { background:var(--error-bg); }

/* Person rows with an existing #16 hint (#496): light red row, reason on hover, focus and tap; never a badge. */
.conflict-row,.conflict-row > summary { background:var(--conflict-row-bg); }
[data-conflict] { position:relative; }
[data-conflict]:is(:hover,:focus,:focus-within)::after { content:attr(data-conflict); position:absolute; left:8px; top:100%; z-index:20; max-width:min(28rem,80vw); padding:4px 8px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--text); font-size:.85rem; font-weight:400; font-style:normal; white-space:normal; box-shadow:0 2px 8px rgb(0 0 0 / .18); pointer-events:none; }
.conflict-tip { cursor:help; border-radius:4px; }
/* #519: icon-only row actions with tooltip; size follows the personal control height (44/48 px). */
.icon-action { display:inline-grid; place-items:center; width:var(--ui-control-height); min-width:var(--ui-control-height); height:var(--ui-control-height); min-height:var(--ui-control-height); padding:0; margin:0; border:1px solid transparent; border-radius:10px; background:transparent; color:var(--text); text-decoration:none; cursor:pointer; vertical-align:middle; }
.icon-action:hover, .icon-action:focus-visible { border-color:var(--border); background:var(--bg); }
.icon-action[aria-pressed="true"] { border-color:var(--accent, currentColor); background:var(--bg); }
.icon-action-danger { color:var(--error); }
.icon-action .navigation-icon { width:20px; height:20px; flex:0 0 20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.icon-actions { display:inline-flex; flex-wrap:wrap; gap:2px; align-items:center; }
/* #519: staff planner subproject header rows ("Nr · Projekt › Subprojekt"), functions indented below. */
.planner-subproject-row th { text-align:left; padding:6px 10px; background:var(--bg); font-size:.9rem; font-weight:650; }
.planner-function { display:block; padding-left:16px; }
tr[data-staffing-target] { cursor:pointer; }
/* #527: Veranstaltungsort und Anfahrt am eigenen Einsatz (Referenz Nutzer 31.10.2026). */
.route-card .route-address { margin:0 0 var(--ui-field-gap); }
.route-card .route-address span { display:block; color:var(--muted); font-size:.9em; }
.route-maps { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 var(--ui-field-gap); }
.route-maps .data-action { border:1px solid var(--control-border); padding:0 14px; }
.route-card .navigation-icon { width:18px; height:18px; flex:0 0 18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.route-list { list-style:none; margin:0; padding:4px 12px; border-radius:10px; background:var(--hover-bg); }
.route-list li { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr); gap:8px; align-items:center; padding:8px 0; }
.route-list li + li { border-top:1px solid var(--hairline); }
.route-list .route-origin { color:var(--muted); }
.route-list .route-value { display:inline-flex; align-items:center; gap:6px; font-weight:600; }
.route-list .route-note { grid-column:2 / -1; color:var(--muted); }
@media (max-width:480px) { .route-list li { grid-template-columns:1fr 1fr; } .route-list .route-origin { grid-column:1 / -1; } .route-list .route-note { grid-column:1 / -1; } }

/* #546 Rentman sync popup: status line, 6px progress, five quiet counters and the history (newest on top). Plain text, no badges. */
.sync-view { display:grid; gap:12px; }
.sync-view p { margin:0; }
.popup:has(.sync-view) .popup-heading { margin-bottom:4px; }
.sync-subline { color:var(--muted); font-variant-numeric:tabular-nums; }
.sync-progress { height:6px; border-radius:999px; background:var(--hairline); overflow:hidden; }
.sync-progress > span { display:block; height:100%; width:0; background:var(--action); border-radius:inherit; transition:width .3s ease; }
.sync-counters { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin:0; }
.sync-counters > div { border:1px solid var(--hairline); border-radius:var(--radius); padding:8px 10px; background:var(--surface); min-width:0; }
.sync-counters dt { font-size:.8rem; color:var(--muted); }
.sync-counters dd { margin:2px 0 0; font-size:1.25rem; font-weight:600; font-variant-numeric:tabular-nums; }
.sync-counters .sync-counter-warning dd { color:var(--warning); }
.sync-counters .sync-counter-error dd { color:var(--error); }
.sync-history-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.sync-history-head h3 { margin:0; font-size:1rem; }
.sync-filter { display:inline-flex; align-items:center; gap:6px; margin:0; font-weight:400; font-size:.9rem; }
.sync-filter input { width:auto; margin:0; }
.sync-history { list-style:none; margin:0; padding:0 8px; max-height:50vh; overflow:auto; border:1px solid var(--hairline); border-radius:var(--radius); font-size:.88rem; line-height:1.45; }
.sync-history:empty { display:none; }
.sync-history li { display:grid; grid-template-columns:auto minmax(5.5rem,auto) minmax(0,1fr); gap:10px; padding:6px 0; overflow-wrap:anywhere; box-shadow:0 -1px 0 var(--hairline); }
/* The hairline sits above each line; the list clips it for the first visible line, also when info lines are hidden. */
.sync-history time, .sync-history .sync-area { color:var(--muted); font-variant-numeric:tabular-nums; }
.sync-history.sync-only-changes li[data-level="info"] { display:none; }
.sync-history li[data-level="warning"] .sync-message { color:var(--warning); }
.sync-history li[data-level="error"] .sync-message { color:var(--error); }
.sync-message svg { width:1em; height:1em; margin-right:4px; vertical-align:-.15em; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.sync-message a { white-space:nowrap; }
.sync-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.sync-footer .actions { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 0 auto; }
.sync-footer .actions > * { width:auto; }
.sync-card { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin-top:var(--ui-section-gap); padding:8px 12px; border:1px solid var(--hairline); border-radius:var(--radius); }
.sync-card p { margin:0; flex:1 1 14rem; }
.sync-card button { width:auto; margin:0; }
.sync-icon { width:20px; height:20px; flex:none; fill:none; stroke:var(--action); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.sync-card-running .sync-icon { animation:sync-spin 1.6s linear infinite; }
@keyframes sync-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .sync-card-running .sync-icon { animation:none; } .sync-progress > span { transition:none; } }
@media (max-width:560px) {
  .sync-counters { grid-template-columns:repeat(auto-fit,minmax(6.5rem,1fr)); }
  .sync-history li { grid-template-columns:auto minmax(0,1fr); }
  .sync-history .sync-message { grid-column:1 / -1; }
}

/* Einheitliche Tabellen-Steuerleiste (#576, STYLEGUIDE): one line above the table, controls visibly ~30px. */
.table-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-bottom:6px; }
.authenticated .table-toolbar-title { flex:1 1 auto; margin:0 4px 0 0; font-size:1.2rem; }
.table-toolbar-count { color:var(--muted); font-size:.85rem; font-weight:500; }
.table-toolbar-search { margin:0; }
.authenticated .table-toolbar .table-toolbar-search input[type=search]:not([type=checkbox]) { width:12rem; height:30px; min-height:0; margin:0; padding:0 10px; border-radius:var(--ui-button-radius); font-size:.92rem; }
.table-toolbar-menu { position:relative; margin:0; }
.table-toolbar-menu > summary, .table-toolbar-create { display:inline-flex; align-items:center; gap:6px; height:30px; min-height:0; padding:0 10px; border:1px solid var(--control-border, var(--border)); border-radius:var(--ui-button-radius); background:var(--surface); color:var(--text); font-weight:600; font-size:.88rem; list-style:none; cursor:pointer; text-decoration:none; }
.table-toolbar-menu > summary::-webkit-details-marker { display:none; }
.table-toolbar-menu[open] > summary { border-color:var(--accent); color:var(--accent); }
.table-toolbar-create { background:var(--action); border-color:var(--action); color:var(--on-accent); }
.table-toolbar-number { display:inline-flex; justify-content:center; min-width:1.3em; padding:0 5px; border-radius:999px; background:var(--action); color:var(--on-accent); font-size:.75rem; line-height:1.5; }
/* "Aktionen (n)" menu (#782): replaces the former selection bar; items are plain buttons in the shared toolbar popover. */
.table-toolbar-tools { display:contents; }
.table-actions { display:flex; align-items:center; gap:8px; }
.table-actions-menu > summary { justify-content:space-between; width:13rem; font-weight:500; }
.table-actions-menu > summary::after { content:""; width:7px; height:7px; margin:-3px 2px 0 0; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); }
.table-actions-menu > summary[aria-disabled=true] { opacity:.55; cursor:not-allowed; }
.table-actions-count { min-width:6.5em; color:var(--muted); font-size:.85rem; font-variant-numeric:tabular-nums; }
.table-toolbar-popover.table-actions-popover { left:0; right:auto; width:13rem; max-height:min(75vh, 34rem); overflow:auto; padding:4px 6px; }
.table-actions-default { display:flex; align-items:center; min-height:26px; padding:0 8px; color:var(--muted); font-size:.86rem; }
.table-actions-group, .table-toolbar-popover fieldset.table-actions-group { border:0; margin:4px 0 0; padding:0; display:flex; flex-direction:column; gap:0; max-height:none; overflow:visible; }
.table-actions-group legend { padding:0; font-size:.78rem; font-weight:700; color:var(--muted); }
.table-actions-item { display:flex; align-items:center; justify-content:flex-start; width:100%; white-space:normal; line-height:1.2; min-height:26px; margin:0; padding:2px 8px; text-align:left; font-size:.86rem; font-weight:500; background:transparent; color:var(--text); border:0; border-radius:6px; }
.table-actions-item:hover:not(:disabled), .table-actions-item:focus-visible { background:var(--surface-muted, var(--hairline)); }
.table-actions-danger { margin-top:4px; padding-top:4px; border-top:1px solid var(--hairline); }
.table-actions-item.danger { color:var(--error); }
.table-actions-field { display:block; margin:6px 0 0; font-size:.82rem; }
.table-actions-field select { width:100%; margin:2px 0 0; }
.bulk-scope { margin-top:4px; }
.table-toolbar-note { margin:6px 0 0; font-size:.8rem; max-width:260px; }
.table-toolbar-popover { position:absolute; z-index:20; top:calc(100% + 4px); right:0; width:min(17rem, calc(100vw - 32px)); padding:10px; border:1px solid var(--hairline); border-radius:12px; background:var(--surface); box-shadow:0 8px 24px color-mix(in srgb, var(--text) 18%, transparent); font-size:.88rem; }
.table-toolbar-popover form { margin:0; }
.table-toolbar-popover fieldset { margin:0 0 6px; padding:0; border:0; max-height:14rem; overflow:auto; }
.table-toolbar-popover legend { padding:0; margin-bottom:2px; font-weight:650; }
.authenticated .table-toolbar-popover label.table-toolbar-check { display:flex; align-items:center; gap:8px; min-height:0; margin:0; padding:2px 0; font-weight:500; }
.authenticated .table-toolbar .table-toolbar-popover input:not([type]):not([type=checkbox]) { height:30px; min-height:0; margin:2px 0 4px; }
.table-toolbar-actions { display:flex; align-items:center; gap:8px; margin-top:6px; }
.authenticated .table-toolbar-actions button { min-height:0; height:28px; padding:0 12px; font-size:.85rem; }
.table-toolbar-actions .data-action { min-height:0; padding:0; }
.table-toolbar-presets { list-style:none; margin:0 0 6px; padding:0; }
/* Filter bar (#1396): one list per filter in a row above the table; active lists in the action colour. */
.table-filterbar { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 0 6px; }
.table-filterbar-menu > summary::after { content:""; width:6px; height:6px; margin:-3px 0 0 2px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); }
.table-filterbar-menu.is-active > summary { border-color:var(--action); color:var(--action); }
.table-filterbar .table-toolbar-popover { left:0; right:auto; width:min(17rem, calc(100vw - 32px)); }
.table-filterbar .table-toolbar-popover fieldset { max-height:none; overflow:visible; margin:0; }
.table-filterbar-options { max-height:min(50vh, 18rem); overflow:auto; }
.authenticated .table-toolbar .table-toolbar-popover input.table-filterbar-find, .authenticated .table-filterbar input.table-filterbar-find { width:100%; height:30px; min-height:0; margin:0 0 6px; }
.table-filterbar-split { margin:4px 0; border:0; border-top:1px solid var(--hairline); }
.table-filterbar-dates { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:4px 8px; margin-top:6px; font-size:.85rem; }
.authenticated .table-filterbar-dates input[type=date] { height:30px; min-height:0; margin:0; }
.table-filterbar-reset { font-size:.85rem; margin-left:4px; }
@media (max-width: 640px) { .table-filterbar { position:relative; } .table-filterbar .table-filterbar-menu { position:static; } .table-filterbar .table-toolbar-popover { left:0; right:0; width:auto; } }
.table-toolbar-presets li { display:flex; align-items:center; justify-content:space-between; gap:8px; border-bottom:1px solid var(--hairline); }
.table-toolbar-presets .data-action { min-height:0; padding:3px 0; overflow-wrap:anywhere; white-space:normal; }
.table-toolbar-presets form { margin:0; }
.authenticated .table-toolbar-remove { min-height:0; height:24px; width:24px; padding:0; border:0; background:transparent; color:var(--muted); }
.table-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px; margin-top:6px; color:var(--muted); font-size:.85rem; }
@media (min-width:641px) {
  .authenticated .table-toolbar.has-actions .table-toolbar-title { flex:1 1 0; min-width:max-content; }
  .table-toolbar.has-actions .table-toolbar-tools { display:flex; flex:1 1 0; min-width:max-content; justify-content:flex-end; align-items:center; gap:6px; }
}
@media (max-width:640px) { .table-toolbar.has-actions .table-toolbar-tools { display:flex; flex-wrap:wrap; flex-basis:100%; align-items:center; gap:6px; } .authenticated .table-toolbar-title { flex-basis:100%; } .authenticated .table-toolbar .table-toolbar-search input[type=search]:not([type=checkbox]) { width:9rem; } .table-toolbar-popover { right:auto; left:0; } }

/* Knöpfe Variante B „Kantig“ (Nutzerfreigabe 01.11.2026, #582, STYLEGUIDE „Knöpfe“): sichtbar 32 px (Kompakt 30, Groß 36),
   Radius 4 px. Die unsichtbare Klickfläche bleibt 44/48 px hoch. Gefahr außerhalb von Dialogen nur rot umrandet,
   in Dialogen (Bestätigung) rot gefüllt. :where() hält die Grundregel überschreibbar. */
:root { --ui-button-height:32px; --ui-button-radius:4px; --ui-button-hit:calc((var(--ui-control-height) - var(--ui-button-height)) / -2); }
:root[data-scale=compact] { --ui-button-height:30px; }
:root[data-scale=large] { --ui-button-height:36px; }
button,.button { min-height:var(--ui-button-height); padding:0 12px; border-radius:var(--ui-button-radius); font-size:.9rem; font-weight:600; line-height:1.2; }
:where(button,.button,.icon-action) { position:relative; }
:where(button,.button,.icon-action)::after { content:""; position:absolute; inset:var(--ui-button-hit) -2px; }
button.danger,.button.danger { background:transparent; color:var(--error); border-color:var(--error); }
button.danger:hover,.button.danger:hover { background:var(--error-bg); filter:none; }
:is(dialog,.popup) :is(button.danger,.button.danger) { background:var(--error); color:var(--on-error); }
.icon-action { width:var(--ui-button-height); min-width:var(--ui-button-height); height:var(--ui-button-height); min-height:0; border-radius:var(--ui-button-radius); }
.data-action,.table-toolbar-menu > summary,.table-toolbar-create,input[type=file]::file-selector-button { border-radius:var(--ui-button-radius); }

/* Reiter: Auswahl nur als gerader Strich ohne Rundung (Nutzerwunsch 01.11.2026, #582), wie der aktive Menüpunkt. */
.personnel-tabs a,.calendar-view-tabs .data-action { border-radius:0; }
.record-tab { position:relative; border-radius:var(--ui-button-radius); }
.record-tab.selected { border-color:var(--hairline); box-shadow:none; }
.record-tab.selected::after { content:""; position:absolute; left:-1px; right:-1px; bottom:-1px; height:3px; background:var(--accent); }

/* Formularfelder Variante B „Bündig“ (Nutzerfreigabe 01.11.2026, #582): so hoch wie die Knöpfe (32 px, Kompakt 30, Groß 36),
   Radius 4 px, Schrift 0,92 rem. Auf schmalen Bildschirmen bleiben Felder 44/48 px hoch, weil sich an Eingabefeldern
   keine unsichtbare Klickfläche anbringen lässt. Breiten weiter nur über den Container (#490). */
:root { --ui-field-height:var(--ui-button-height); }
@media(max-width:760px) { :root { --ui-field-height:var(--ui-control-height); } }
input,select,textarea { border-radius:var(--ui-button-radius); font-size:.92rem; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select:not([multiple]):not([size]) { height:var(--ui-field-height); min-height:0; }
textarea { min-height:calc(var(--ui-field-height) * 2); padding-block:6px; }
input[type=file] { min-height:var(--ui-field-height); padding-block:3px; }
input[type=file]::file-selector-button { height:calc(var(--ui-field-height) - 8px); border-radius:var(--ui-button-radius); }
.authenticated label { margin-bottom:3px; }

/* Meldungen kompakt mit Label-Chip (Nutzerfreigabe 01.11.2026, Variante B „Chip“, #582).
   Eine Zeile Höhe, farbige Kante links, Text in Schriftfarbe; das Label nennt die Art auch ohne Farbe. */
:is(p,div):is(.error,.warning,.notice),.page-hint { margin:0 0 6px; padding:4px 10px; border:0; border-left:3px solid var(--msg); border-radius:var(--ui-button-radius); background:var(--msg-bg); color:var(--text); font-size:.9rem; line-height:1.45; }
:is(p,div).error { --msg:var(--error); --msg-bg:var(--error-bg); }
:is(p,div).warning { --msg:var(--warning); --msg-bg:var(--warning-bg); }
:is(p,div).notice,.page-hint { --msg:var(--muted); --msg-bg:var(--hover-bg); }
:is(p,div).notice[role=status] { --msg:var(--success); --msg-bg:var(--success-bg); }
:is(p,div):is(.error,.warning,.notice)::before,.page-hint > summary::before { display:inline-block; margin-right:8px; padding:0 5px; border:1px solid var(--msg); border-radius:3px; background:var(--surface); color:var(--msg); font-size:.7rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; line-height:1.5; vertical-align:1px; }
:is(p,div).error::before { content:"Fehler"; }
:is(p,div).warning::before { content:"Warnung"; }
:is(p,div).notice::before,.page-hint > summary::before { content:"Hinweis"; }
:is(p,div).notice[role=status]::before { content:"Erledigt"; }
:is(p,div).error ul { margin:2px 0 0; padding-left:18px; }
.page-hint > summary { display:inline; min-height:0; color:var(--text); font-weight:600; }
.page-hint > :not(summary) { margin:4px 0 0; }
.hosting-setup .error,.hosting-setup .hosting-success { margin-bottom:var(--ui-section-gap); }
.hosting-setup .hosting-success { border:0; border-left:3px solid var(--success); border-radius:var(--ui-button-radius); padding:4px 10px; color:var(--text); }

/* Tabellen kompakter (Nutzerfreigabe 01.11.2026, #582): Zeile rund 22 px, kleine Zeilenaktionen, Status-Badge zeilenhoch.
   Bis 760 px bleibt die Tabelle eine Tabelle; darunter eine Liste ohne Rahmen: Name und Aktionen oben, übrige Werte klein darunter. */
.data-table { font-size:.88rem; }
.data-table th,.data-table td { line-height:1.25; }
.data-table th { font-size:.8rem; }
.data-table td .icon-action { width:22px; min-width:22px; height:18px; padding:0; }
.data-table td .icon-action .navigation-icon { width:15px; height:15px; flex-basis:15px; }
.data-table .status-badge { font-size:.75rem; line-height:1.5; padding:0 6px 0 4px; }
@media(max-width:760px) {
  .data-table:where(:not(.data-table-compact)) tr { display:flex; flex-wrap:wrap; align-items:center; gap:0 8px; margin:0; padding:3px 2px; border:0; border-bottom:1px solid var(--hairline); border-radius:0; background:none; }
  .data-table:where(:not(.data-table-compact)) tbody tr:last-child { border-bottom:0; }
  .data-table:where(:not(.data-table-compact)) td { display:block; padding:0; border:0; margin:0; color:var(--muted); font-size:.82rem; order:2; }
  .data-table:where(:not(.data-table-compact)) td:first-child { flex:1 1 calc(100% - 64px); min-width:0; order:0; color:var(--text); font-size:.92rem; }
  .data-table:where(:not(.data-table-compact)) td.data-actions { order:1; margin-left:auto; border:0; padding:0; }
  .data-table:where(:not(.data-table-compact)) td[colspan] { flex-basis:100%; }
  .data-table:where(:not(.data-table-compact)) td:nth-child(n+3):not(.data-actions)::before { content:"· "; }
  .data-table:where(:not(.data-table-compact)) .data-label { display:none; }
  .data-table:where(:not(.data-table-compact)) .data-value { display:inline; }
  .data-table:where(:not(.data-table-compact)) td.data-actions .data-value { display:flex; }
}

/* Auswahl mit Schiene (Nutzerfreigabe 01.11.2026, Variante B, #582): Umschalter zwischen Ansichten oder Zeiträumen
   (Tag/Woche/Monat/Liste, Alle/Ungelesen …) liegen in einer grauen Schiene, die Auswahl ist ein helles Feld darin.
   Reiter für Inhaltsbereiche (Datensatz-, Bereichs-, Menüauswahl) bleiben beim geraden Korall-Strich. */
:root { --rail-bg:#e8e9ec; --rail-thumb:#fff; }
:root[data-theme=dark] { --rail-bg:#141619; --rail-thumb:#3e424c; }
.calendar-view-tabs { display:inline-flex; width:max-content; max-width:100%; gap:2px; padding:2px; border-radius:6px; background:var(--rail-bg); }
.calendar-view-tabs .data-action { display:inline-flex; align-items:center; height:calc(var(--ui-field-height) - 4px); min-height:0; padding:0 10px; border:0; border-radius:4px; background:none; box-shadow:none; color:var(--muted); font-size:.9rem; font-weight:600; text-decoration:none; }
.calendar-view-tabs .data-action:hover { color:var(--text); background:none; }
.calendar-view-tabs [aria-current] { background:var(--rail-thumb); color:var(--text); box-shadow:0 1px 2px #0003; }
.calendar-view-tabs [aria-current]:hover { background:var(--rail-thumb); }

/* Planungs-Kopfzeile (Personalplaner, Projektübersicht): keine umrandeten Knöpfe, Text mit Symbol, Fläche beim Darüberfahren. */
.board-nav { display:flex; flex-direction:row; align-items:center; gap:2px; }
.board-plain { display:inline-flex; align-items:center; gap:6px; height:calc(var(--ui-field-height) - 4px); min-height:0; padding:0 8px; border:0; border-radius:var(--ui-button-radius); background:none; color:var(--text); font-size:.9rem; font-weight:600; text-decoration:none; position:relative; }
.board-plain:hover { background:var(--hover-bg); }
.board-icon { width:calc(var(--ui-field-height) - 4px); padding:0; justify-content:center; color:var(--muted); }
.board-plain svg { width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.board-switch { display:inline-flex; align-items:center; gap:8px; height:calc(var(--ui-field-height) - 4px); padding:0 4px; color:var(--text); font-size:.9rem; font-weight:600; text-decoration:none; }
.board-switch-track { position:relative; width:28px; height:16px; flex:none; border-radius:8px; background:var(--control-border); }
.board-switch-track::after { content:""; position:absolute; top:2px; left:2px; width:12px; height:12px; border-radius:50%; background:var(--surface); transition:left .15s; }
.board-switch[aria-pressed=true] .board-switch-track { background:var(--action); }
.board-switch[aria-pressed=true] .board-switch-track::after { left:14px; }
@media (prefers-reduced-motion:reduce) { .board-switch-track::after { transition:none; } }

/* Address search field with "+ Neue Adresse" (#597): compact list, matches highlighted, role extension as text. */
.address-picker .picker-field { position:relative; }
.address-picker .picker-field input { padding-right:34px; }
.address-picker .picker-field .clear { position:absolute; right:4px; top:50%; transform:translateY(-50%); width:28px; min-height:28px; padding:0; border:0; background:transparent; color:var(--muted); font-size:1rem; }
.address-picker .picker-field .clear:hover { background:var(--hover-bg); }
.address-picker-detail { margin:2px 0 0; font-size:.8rem; }
.address-picker .picker-list { list-style:none; margin:4px 0 0; padding:4px 0; max-height:min(320px,45vh); overflow:auto; border:1px solid var(--control-border); border-radius:8px; background:var(--surface); box-shadow:0 8px 24px rgb(0 0 0 / 14%); }
.address-picker .picker-list li { display:flex; flex-direction:column; justify-content:center; min-height:36px; padding:2px 10px; cursor:pointer; font-size:.9rem; line-height:1.25; }
.address-picker .picker-list li small { color:var(--muted); font-size:.78rem; }
.address-picker .picker-list li mark { background:transparent; color:inherit; font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.address-picker .picker-list li[aria-selected=true], .address-picker .picker-list li[role=option]:hover { background:var(--hover-bg); box-shadow:inset 3px 0 0 var(--accent); }
.address-picker .picker-list li.more, .address-picker .picker-list li.empty { color:var(--muted); font-size:.82rem; cursor:default; min-height:28px; }
.address-picker .picker-list li.new { border-top:1px solid var(--hairline); margin-top:4px; padding-top:4px; color:var(--accent); font-weight:600; }
.address-picker .picker-list li.hint small { color:var(--text); }
.address-picker-error { margin:4px 0 0; color:var(--error); font-size:.85rem; }
.address-picker-dialog .address-picker-similar { border:1px solid var(--hairline); border-left:3px solid var(--accent); border-radius:8px; padding:6px 10px; font-size:.85rem; background:var(--neutral-bg); margin:8px 0; }
.address-picker-dialog .address-picker-similar div { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:4px; }
.address-picker-dialog .address-picker-similar button { width:auto; min-height:28px; font-size:.82rem; margin-left:auto; }
.address-picker-dialog .address-picker-roles { border:0; padding:0; margin:8px 0 0; }
.address-picker-dialog .address-picker-roles legend { font-weight:600; font-size:.9rem; }
.address-picker-dialog .address-picker-roles .check-field { display:inline-flex; width:auto; align-items:center; margin:4px 16px 0 0; }
.address-picker-dialog .address-picker-note { font-size:.8rem; }
.address-picker-dialog .actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.address-picker-dialog .actions button { width:auto; }

/* Absence statistics (#612, approved draft variant A): key figures, grouped columns, one dense row per person (STYLEGUIDE table spacing). */
.absence-stats-figures { display:grid; grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr)); gap:8px; margin:0 0 10px; }
.absence-stats-figures p { margin:0; padding:5px 10px; border:1px solid var(--hairline); border-radius:10px; }
.absence-stats-figures strong { display:block; font-size:1.15rem; font-variant-numeric:tabular-nums; line-height:1.3; }
.absence-stats-figures span { display:block; color:var(--muted); font-size:.78rem; line-height:1.25; }
.absence-stats-year { display:inline-flex; height:30px; border:1px solid var(--control-border, var(--border)); border-radius:var(--ui-button-radius); overflow:hidden; font-size:.88rem; }
.absence-stats-year a, .absence-stats-year span { display:inline-flex; align-items:center; padding:0 9px; color:var(--text); text-decoration:none; }
.absence-stats-year span { background:var(--action); color:var(--on-accent); font-weight:650; }
.absence-stats-year a:hover { background:var(--hover-bg); }
.absence-stats-period { display:inline-flex; gap:6px; margin:0; }
.authenticated .absence-stats-period select, .authenticated .absence-stats-period button { width:auto; height:30px; min-height:0; margin:0; padding:0 10px; border-radius:var(--ui-button-radius); font-size:.88rem; }
.authenticated .absence-stats-period select { padding-right:30px; }
.absence-stats-scroll { overflow-x:auto; }
.absence-stats-table { width:100%; border-collapse:collapse; font-size:.88rem; line-height:1.25; font-variant-numeric:tabular-nums; }
.absence-stats-table th, .absence-stats-table td { padding:var(--ui-dense-block) 6px; border-bottom:1px solid var(--hairline); text-align:left; white-space:nowrap; vertical-align:middle; }
.absence-stats-table thead th { color:var(--muted); font-size:.8rem; font-weight:600; }
.absence-stats-table thead .sort-link { color:inherit; text-decoration:none; }
.absence-stats-table thead th:not([aria-sort]) .sort-indicator { opacity:.45; }
.absence-stats-groups th { color:var(--text); font-size:.72rem; text-transform:uppercase; letter-spacing:.04em; text-align:center; border-bottom:2px solid var(--hairline); }
.absence-stats-groups td { border-bottom:0; }
.absence-stats-table .num { text-align:right; }
.absence-stats-table .absence-stats-sep { border-left:1px solid var(--hairline); }
.absence-stats-table tbody th { font-weight:600; }
.absence-stats-table tbody th a { color:var(--text); text-decoration:none; }
.absence-stats-table tbody th a:hover { color:var(--accent); text-decoration:underline; }
.absence-stats-table tbody th .status-badge { font-size:.75rem; line-height:1.5; padding:0 6px 0 4px; }
.absence-stats-table tbody tr:hover { background:var(--hover-bg); }
.absence-stats-table tfoot th, .absence-stats-table tfoot td { font-weight:700; border-top:2px solid var(--hairline); border-bottom:0; }
.absence-stats-zero { color:var(--muted); opacity:.6; }
.absence-stats-label { display:none; }
.absence-stats-rest { display:flex; align-items:center; justify-content:flex-end; gap:6px; }
.absence-stats-bar { position:relative; width:64px; height:6px; border-radius:3px; background:var(--hairline); overflow:hidden; }
.absence-stats-bar span { position:absolute; inset:0 auto 0 0; background:var(--success); }
.absence-stats-bar span.is-low { background:var(--warning); }
.absence-stats-value { min-width:2.6em; text-align:right; }
.absence-stats-value.is-negative { color:var(--error); font-weight:650; }
.absence-stats-empty { color:var(--muted); }
.absence-stats .table-footer { align-items:flex-start; }
.absence-stats-help { max-width:46rem; }
.absence-stats-help summary { cursor:pointer; text-align:right; }
.absence-stats-help p { margin:4px 0 0; }
@media (max-width:760px) {
  .absence-stats-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .absence-stats-table, .absence-stats-table tbody, .absence-stats-table tfoot, .absence-stats-table tr { display:block; }
  .absence-stats-table tr { padding:4px 0; border-bottom:1px solid var(--hairline); }
  .absence-stats-table th, .absence-stats-table td { display:inline; padding:0; border:0; font-size:.78rem; color:var(--muted); white-space:normal; }
  .absence-stats-table tbody th, .absence-stats-table tfoot th { display:block; font-size:.88rem; color:var(--text); }
  .absence-stats-table .absence-stats-sep { border:0; }
  .absence-stats-table td.is-zero { display:none; }
  .absence-stats-table td:not(.is-zero) ~ td:not(.is-zero)::before { content:" · "; }
  .absence-stats-figures { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
  .absence-stats-figures p { padding:4px 8px; }
  .absence-stats-figures strong { font-size:1rem; }
  .absence-stats-label { display:inline; margin-right:3px; }
  .absence-stats-bar { display:none; }
  .absence-stats-rest { display:inline; }
  .absence-stats-value { min-width:0; }
  .absence-stats-table tfoot th, .absence-stats-table tfoot td { border:0; }
}

/* Dokumentvorlagen (#656): Editor links, Platzhalterliste rechts, kompakt nach Designguide. */
.doc-back { margin:0 0 4px; }
.doc-split { display:grid; grid-template-columns:minmax(0,1fr) 250px; gap:10px; align-items:start; }
.doc-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 10px; margin-bottom:6px; }
.doc-head h1 { margin:0; font-size:1.1rem; display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.doc-actions { display:flex; gap:6px; }
.doc-actions > * { margin:0; }
/* #1344: Art der Vorlage in einer Zeile (Auswahl, Knopf, Prüfhinweis) */
.doc-kind { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin:0 0 8px; }
.doc-kind label { margin:0; font-weight:600; }
.doc-kind select { width:auto; min-width:14rem; max-width:100%; }
.doc-meta { display:flex; flex-wrap:wrap; gap:4px 16px; align-items:end; margin:0 0 6px; padding:0; border:0; }
.doc-meta > span { display:flex; flex-direction:column; min-width:0; }
.doc-meta > span:first-of-type { flex:1 1 100%; }
.doc-label { font-size:.82rem; font-weight:600; }
.doc-meta input[type=text], .doc-meta input:not([type]) { width:100%; }
.doc-checks { display:flex; flex-wrap:wrap; gap:0 10px; }
.doc-editor { width:100%; min-height:300px; font:.9rem/1.45 Georgia, "Times New Roman", serif; resize:vertical; }
.doc-syntax { margin:2px 0 6px; font-size:.78rem; }
.doc-syntax code { font-size:.78rem; }
.doc-required { display:flex; flex-wrap:wrap; gap:0 12px; margin:0 0 6px; padding:4px 8px; border:1px solid var(--hairline); border-radius:var(--radius); }
.doc-required legend { font-size:.82rem; font-weight:600; padding:0 4px; }
.doc-check-wrap summary { cursor:pointer; font-size:.85rem; font-weight:600; }
.doc-check-wrap { margin:0 0 6px; }
.doc-check { margin-top:4px; font:.88rem/1.4 Georgia, "Times New Roman", serif; border:1px solid var(--hairline); border-radius:4px; padding:8px 10px; background:var(--field-bg); max-height:300px; overflow:auto; overflow-wrap:anywhere; }
.doc-check p { margin:0 0 6px; }
.doc-check ul { margin:0 0 6px; padding-left:20px; }
.doc-ph { background:var(--warning-bg); color:var(--warning); border-radius:3px; padding:0 3px; font:600 .8rem/1.4 system-ui, sans-serif; white-space:nowrap; }
.doc-ph-extra { background:var(--neutral-bg); color:var(--neutral); }
.doc-ph-unknown { background:var(--error-bg); color:var(--error); text-decoration:line-through; }
.doc-suspect { text-decoration:underline wavy var(--error); text-underline-offset:2px; }
.doc-side h2, .doc-subtitle { font-size:1rem; margin:0 0 4px; }
.doc-side input[type=search] { width:100%; }
.doc-group { margin:8px 0 2px; font-size:.78rem; color:var(--muted); }
.doc-fields { list-style:none; margin:0; padding:0; font-size:.86rem; }
.doc-fields li { display:flex; justify-content:space-between; align-items:center; gap:6px; min-height:24px; padding:1px 0; border-bottom:1px solid var(--hairline); }
.doc-fields li[hidden] { display:none; }
.doc-fields .muted { font-size:.78rem; display:inline-flex; align-items:center; gap:4px; }
.doc-inline { display:inline; margin:0; }
.doc-remove { min-height:0; height:22px; min-width:22px; padding:0 5px; background:transparent; color:var(--error); border:1px solid transparent; font-size:1rem; line-height:1; }
.doc-remove:hover { border-color:var(--error); }
.doc-add { margin:6px 0 0; }
.doc-hint { font-size:.8rem; margin:4px 0; }
.doc-link-button { background:none; border:0; min-height:var(--ui-control-height); padding:0 8px; font:inherit; font-weight:600; color:var(--accent); cursor:pointer; }
.doc-link-button:hover { background:var(--hover-bg); text-decoration:underline; filter:none; }
.doc-danger { color:var(--error); }
.doc-types { border:0; padding:0; margin:4px 0; display:flex; flex-wrap:wrap; gap:0 12px; }
tr[aria-current="true"] td { background:var(--hover-bg); }
@media (max-width:760px) { .doc-split { grid-template-columns:1fr; } }

/* #644 Vertragsformular nach Designguide: Aktionszeile mit Knöpfen in Inhaltsbreite (Häkchen über die zentrale Regel #659). */
.contract-form .actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:var(--ui-section-gap); }
.contract-form .actions button { width:auto; margin:0; }

/* Dokumente ausstellen (#657): Auswahlzeile und Werteübersicht im Dialog, fehlende Pflichtwerte rot. */
.doc-choose { display:flex; flex-wrap:wrap; align-items:end; gap:6px 10px; margin:0 0 6px; }
.doc-choose > span { display:flex; flex-direction:column; min-width:0; flex:1 1 180px; }
.doc-choose > span:first-child { flex:2 1 240px; }
.doc-choose button { margin:0; }
.doc-values { width:100%; margin:4px 0 0; }
.doc-values td { vertical-align:middle; }
.doc-values :is(input, select) { width:100%; min-height:var(--ui-control-height); margin:0; }
.doc-values tr.doc-missing td { background:var(--error-bg); }
.doc-values tr.doc-missing td:first-child { box-shadow:inset 3px 0 0 var(--error); }
.doc-values .error { display:block; margin:2px 0 0; font-size:.8rem; }
.doc-own-upload { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0; }
.doc-own-upload input[type=file] { max-width:230px; font-size:.82rem; min-height:0; }
.data-table td.doc-nowrap { white-space:nowrap; }
.data-table td.doc-nowrap .doc-link-button { padding:0 6px; }
.data-table td.doc-nowrap .data-value { flex-wrap:nowrap; align-items:center; gap:0 2px; }
.doc-more { position:relative; display:inline-block; }
.doc-more > summary { list-style:none; cursor:pointer; font-weight:600; color:var(--accent); padding:0 6px; border-radius:var(--ui-button-radius); }
.doc-more > summary::-webkit-details-marker { display:none; }
.doc-more > summary::after { content:" ▾"; font-size:.75em; }
.doc-more > summary:hover { background:var(--hover-bg); }
.doc-more-menu { width:auto; min-width:12rem; padding:4px; display:flex; flex-direction:column; align-items:stretch; white-space:nowrap; }
.doc-more-menu form { margin:0; }
.doc-more-menu :is(.doc-link-button, .data-action) { display:flex; width:100%; justify-content:flex-start; min-height:32px; padding:0 8px; border-radius:var(--ui-button-radius); text-align:left; }
.doc-more-menu .doc-link-button:disabled { color:var(--muted); cursor:not-allowed; }
.authenticated .doc-choose button { flex:none; width:auto; height:32px; min-height:0; padding:0 12px; }
.authenticated .doc-values :is(input, select) { height:30px; min-height:0; padding-block:0; font-size:.88rem; }
.doc-values td { padding-block:2px; }
.data-table td.doc-nowrap .doc-inline { display:inline-flex; align-items:center; }
.data-table td.doc-nowrap .doc-link-button { height:auto; line-height:inherit; font-size:inherit; }
.data-table td.doc-nowrap .doc-link-button, .doc-more-menu .doc-link-button { margin:0; }
@media (max-width:760px) { .data-table td.doc-nowrap { white-space:normal; } .data-table td.doc-nowrap .data-value { flex-wrap:wrap; } }

/* Freelancer-Bestätigung (#653): zwei kleine Karten nebeneinander im Reiter Dokumente. */
.confirmation-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 340px)); gap:var(--ui-section-gap, 12px); margin:0 0 var(--ui-section-gap, 12px); }
.confirmation-card { margin:0; }
.confirmation-card h3 { font-size:1rem; margin:0 0 6px; }
.confirmation-actions { display:flex; flex-wrap:wrap; align-items:center; gap:0 4px; margin:4px 0 0; }
.confirmation-actions .doc-inline { display:inline-flex; }
.confirmation-actions .doc-link-button { width:auto; min-height:28px; margin:0; padding:0 4px; text-align:left; }
.confirmation-actions .data-action { padding:0 4px; }
.confirmation-waive { margin:0; }
.confirmation-waive .check-field { margin:0 0 6px; }
.confirmation-waive input[name=reason] { width:100%; }
.confirmation-waive button { width:auto; margin:6px 0 0; }

/* #659 Häkchen und Optionsfelder (Nutzerfreigabe 01.11.2026, Entwurf Fassung 2): 16 px in Akzentfarbe, 6 px Abstand,
   Optionen einer Gruppe in einer Zeile ohne Kasten
   (Filter und Spalten der Steuerleiste bleiben Listen untereinander), Zeile ohne Mindesthöhe (bis 760 px Feldhöhe für den Finger). */
.authenticated input[type=checkbox],.authenticated input[type=radio],.check-field input,.hosting-setup input[type=checkbox] { width:16px; height:16px; min-height:0; margin:0; padding:0; flex:none; accent-color:var(--accent); }
.authenticated label:has(>input[type=checkbox]),.authenticated label:has(>input[type=radio]),.check-field,.hosting-setup label:has(>input[type=checkbox]) { display:inline-flex; align-items:center; gap:6px; min-height:0; padding:0; margin:0; font-weight:500; font-size:.9rem; line-height:1.3; }
.authenticated fieldset:not(.table-toolbar-popover fieldset):has(.check-field),.authenticated fieldset:not(.table-toolbar-popover fieldset):has(>label>input[type=checkbox]),.authenticated fieldset:not(.table-toolbar-popover fieldset):has(>label>input[type=radio]) { display:flex; flex-wrap:wrap; gap:4px 18px; border:0; padding:0; margin:0 0 8px; min-width:0; }
.authenticated fieldset:not(.table-toolbar-popover fieldset):has(.check-field)>legend,.authenticated fieldset:not(.table-toolbar-popover fieldset):has(>label>input[type=checkbox])>legend,.authenticated fieldset:not(.table-toolbar-popover fieldset):has(>label>input[type=radio])>legend { float:left; width:100%; padding:0; margin:0 0 3px; font-weight:600; font-size:.9rem; }
.popup p.muted,.popup p:not([class]),.card p.muted { font-size:.82rem; line-height:1.35; margin:2px 0 8px; }
.popup { padding:14px 16px; }
@media(max-width:760px) { .authenticated label:has(>input[type=checkbox]),.authenticated label:has(>input[type=radio]),.check-field,.hosting-setup label:has(>input[type=checkbox]) { min-height:var(--ui-field-height); } }

/* Mitarbeiterordner (#665): Ordnerliste links, Personen des gewählten Ordners rechts. */
.folder-split { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:16px; align-items:start; }
.folder-list { display:flex; flex-direction:column; border:1px solid var(--hairline); border-radius:8px; overflow:hidden; }
.folder-row { display:flex; align-items:center; gap:8px; min-height:30px; padding:2px 10px; border-bottom:1px solid var(--hairline); color:inherit; text-decoration:none; }
.folder-row:last-child { border-bottom:0; }
.folder-row[aria-current="true"] { background:color-mix(in srgb, var(--accent, #FF6257) 14%, transparent); font-weight:600; box-shadow:inset 3px 0 0 var(--accent, #FF6257); }
.folder-name { flex:1; min-width:0; overflow-wrap:anywhere; }
.folder-count { font-variant-numeric:tabular-nums; color:var(--muted); }
.folder-add { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.folder-add input { flex:1 1 180px; min-width:0; }
.folder-add button { width:auto; flex:0 0 auto; }
.folder-assign-list { max-height:50vh; min-height:0; overflow:auto; display:flex; flex-direction:column; gap:0; margin:8px 0; border:1px solid var(--hairline); border-radius:var(--radius); }
.folder-assign-list > .check-field { flex:none; display:flex; width:100%; min-height:26px; padding:2px 8px; margin:0; border-bottom:1px solid var(--hairline); cursor:pointer; }
.folder-assign-list > .check-field:last-child { border-bottom:0; }
.folder-assign-list > .check-field:hover { background:rgb(127 127 127 / .12); }
.folder-assign-list .check-name { flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.folder-assign-list .muted { flex:none; margin-left:auto; white-space:nowrap; }
.folder-assign-list > p { margin:0; padding:8px; }
.folder-people .data-table td form { margin:0; }
.folder-people .data-table .actions-col { width:40px; }
@media (max-width: 800px) { .folder-split { grid-template-columns:1fr; } }
/* #648: minijob confirmation dialog and planning card. */
.minijob-confirm .actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.minijob-confirm p .status-badge { margin-right:6px; }
.minijob-planning-table { width:100%; border-collapse:collapse; font-size:.92rem; }
.minijob-planning-table :is(th,td) { padding:2px 8px; text-align:left; border-bottom:1px solid var(--hairline); }
.minijob-planning-table .num { text-align:right; font-variant-numeric:tabular-nums; }
.minijob-planning-head { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
@media (max-width:640px) {
  .minijob-planning-table thead { display:none; }
  .minijob-planning-table tr { display:grid; grid-template-columns:1fr 1fr; padding:4px 0; border-bottom:1px solid var(--hairline); }
  .minijob-planning-table td, .minijob-planning-table td.num { border:0; text-align:left; }
  .minijob-planning-table td:first-child { grid-column:1/-1; font-weight:600; }
  .minijob-planning-table td[data-label]::before { content:attr(data-label) ": "; color:var(--muted); }
}
/* #650: operator alerts on statutory values, one compact line each. */
.legal-alerts { list-style:none; margin:var(--ui-field-gap) 0 0; padding:0; }
.legal-alerts li { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; padding:4px 0; border-bottom:1px solid var(--hairline); }
.legal-alerts li p { margin:0; flex:1 1 280px; }
/* #674: compact skill rows with origin badge */
.skill-row { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; min-height:30px; padding:2px 0; border-top:1px solid var(--border-soft, rgba(127,127,127,.25)); }
.skill-row > span:first-child { flex:1 1 7rem; min-width:0; overflow-wrap:anywhere; }
form.skill-row button { margin:0; width:auto; flex:none; min-height:30px; padding:0 10px; font-size:.85rem; }

/* #792: own skills as tree, one row per skill with four stars. Draft docs/redesign/skills-liste-sterne-entwurf.html. */
.sk-tree [hidden] { display:none; }
.sk-tree input { height:28px; min-height:28px; padding:0 8px; font-size:.84rem; margin:0; width:auto; }
.sk-tree input[type=search] { width:100%; margin:0 0 6px; }
.sk-tree > .error { margin:2px 0 4px; font-size:.8rem; }
.sk-branch { border:1px solid var(--hairline); border-radius:8px; margin:0 0 6px; }
.sk-branch > summary { display:flex; align-items:center; gap:8px; min-height:30px; padding:2px 10px; cursor:pointer; font-size:.9rem; }
.sk-body { padding:0 10px 8px; }
.sk-grp { margin-left:12px; }
.sk-body > .sk-grp { margin-left:0; }
.sk-grp > summary { min-height:26px; line-height:26px; font-size:.84rem; font-weight:600; cursor:pointer; }
.sk-row { display:flex; align-items:center; gap:8px; min-height:28px; margin-left:14px; font-size:.84rem; border-top:1px solid var(--hairline); }
.sk-body > .sk-row { margin-left:0; }
.sk-row[aria-busy] { opacity:.6; }
.sk-name { flex:1; min-width:0; overflow-wrap:anywhere; }
.sk-name small { color:var(--muted); font-size:.76rem; }
.sk-lvl { flex:none; text-align:right; font-size:.76rem; color:var(--muted); }
.sk-stars { display:inline-flex; align-items:center; flex:none; }
.sk-stars button { all:unset; position:relative; box-sizing:border-box; cursor:pointer; width:24px; height:28px; line-height:28px; text-align:center; font-size:1rem; color:var(--muted); }
/* all:unset drops the global position:relative, so the global ::after hit area would stretch over the page and a click anywhere hit the last star */
.sk-stars button::after { content:none; }
.sk-stars button.on { color:var(--accent); }
.sk-stars button:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.sk-stars .sk-x { order:-1; width:20px; }
.sk-own { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:8px; }
.sk-own input { flex:1 1 120px; min-width:120px; }
.sk-own button { width:auto; height:28px; min-height:28px; padding:0 10px; font-size:.82rem; margin:0; }
.sk-own .error { flex:1 1 100%; margin:0; }
/* #1209: check box per skill and group, "Alle auf …", "Meine Skills" chips, undo line. Draft docs/entwuerfe/1209-skill-auswahl-entwurf.html. */
.sk-tree input.sk-cb { width:16px; height:16px; min-height:0; padding:0; margin:0; flex:none; accent-color:var(--accent); }
.sk-branch > summary .sk-cb, .sk-grp > summary .sk-cb { order:-1; }
.sk-tree select.sk-all { order:1; height:24px; min-height:24px; width:auto; max-width:11rem; padding:0 4px; margin:0 0 0 auto; font-size:.76rem; }
.sk-branch > summary, .sk-grp > summary { display:flex; align-items:center; gap:6px; }
.sk-grp > summary { min-height:30px; line-height:normal; }
.sk-branch > summary::before, .sk-grp > summary::before { order:-2; content:'▸'; flex:none; color:var(--muted); font-size:.8rem; }
.sk-branch[open] > summary::before, .sk-grp[open] > summary::before { content:'▾'; }
.sk-mine { border:1px solid var(--hairline); border-radius:8px; padding:6px 10px; margin:0 0 8px; }
.sk-mine p { margin:0 0 4px; font-size:.86rem; }
.sk-chips { display:flex; flex-wrap:wrap; gap:4px; }
.sk-chip { all:unset; box-sizing:border-box; cursor:pointer; border:1px solid var(--hairline); border-radius:12px; padding:2px 9px; font-size:.78rem; }
.sk-chip::after { content:none; }
.sk-chip.open { border-style:dashed; color:var(--muted); }
.sk-chip:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.sk-hint { font-size:.8rem; margin:0 0 6px; }
.sk-undo { margin:0 0 6px; font-size:.82rem; display:flex; gap:8px; align-items:center; }
.sk-undo button { width:auto; height:26px; min-height:26px; padding:0 10px; font-size:.8rem; margin:0; }
@media (max-width:480px) {
  .sk-row { display:grid; grid-template-columns:auto 1fr auto; column-gap:8px; margin-left:6px; }
  .sk-cb { grid-column:1; grid-row:1 / 3; align-self:center; }
  .sk-name { grid-column:2; }
  .sk-lvl { grid-column:2; grid-row:2; text-align:left; }
  .sk-lvl:empty { display:none; }
  .sk-stars { grid-column:3; grid-row:1 / 3; }
}
@media (pointer:coarse) {
  .sk-row { min-height:34px; }
  .sk-stars button { width:32px; height:34px; line-height:34px; }
  .sk-tree input.sk-cb { width:22px; height:22px; }
}

/* #682: one-time signature code shown in the signing popup. */
.signature-code { font:700 1.3rem/1 ui-monospace, monospace; letter-spacing:.3em; padding:8px 12px; border:1px dashed var(--hairline); border-radius:4px; display:inline-block; margin:4px 0; }
/* #683: hint above the documents table for contracts that run on paper. */
.paper-note { display:flex; gap:10px; align-items:flex-start; border:1px solid var(--hairline); border-left:4px solid var(--warning, #b7791f); border-radius:var(--radius); padding:8px 12px; margin:8px 0; background:var(--surface); }
.paper-note p { margin:0; }

/* #624/#625: Dienstplan freie Tage (Einstellungen und Wunsch-Freitage) */
.free-day-rule { display:grid; grid-template-columns:minmax(0,1fr) 110px 120px; gap:4px 10px; align-items:center; padding:2px 0; font-size:.9rem; }
.free-day-rule input { height:30px; min-height:30px; padding:0 8px; }
.free-day-rule label { margin:0; }
.free-day-main { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:8px 0; padding:8px 10px; border:1px solid var(--hairline); border-radius:10px; }
.free-day-blocks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
@media (max-width:760px) { .free-day-blocks { grid-template-columns:1fr; } }
.free-day-block { border:1px solid var(--hairline); border-radius:10px; padding:8px 10px; }
.free-day-block.is-off { background:color-mix(in srgb,var(--hairline) 25%,transparent); }
.free-day-block.is-off strong, .free-day-block.is-off label { color:var(--muted); }
.free-day-block-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; padding-bottom:6px; margin-bottom:2px; border-bottom:1px solid var(--hairline); }
.free-day-block .free-day-rule { grid-template-columns:minmax(0,1fr) 64px 104px; min-height:32px; }
.free-day-block .free-day-rule label { font-weight:400; }
.free-day-main .muted, .free-day-block-head .muted { font-size:.82rem; }
.fd-switch { appearance:none; -webkit-appearance:none; flex:none; width:34px; height:20px; min-height:0; padding:0; margin:0; border-radius:10px; border:0; background:var(--control-border); position:relative; cursor:pointer; }
.fd-switch::after { content:""; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:var(--surface); transition:left .15s; }
.fd-switch:checked { background:var(--action); }
.fd-switch:checked::after { left:16px; }
.fd-switch:focus-visible { outline:2px solid var(--action); outline-offset:2px; }
@media (prefers-reduced-motion:reduce) { .fd-switch::after { transition:none; } }
/* #700: the shared switch inside a check-field label keeps its own size (check-field sizes plain checkboxes). */
.check-field input.fd-switch { width:34px; height:20px; min-width:34px; }
.free-day-sub { margin:6px 0 6px 28px; padding-left:12px; border-left:2px solid var(--hairline); }
.free-day-group { margin:10px 0 2px; font-size:.8rem; color:var(--muted); border-bottom:1px solid var(--hairline); }
.free-day-counters { display:flex; flex-wrap:wrap; gap:8px; margin:6px 0; }
.free-day-counters > div { border:1px solid var(--hairline); border-radius:10px; padding:4px 10px; }
.free-day-counters b { display:block; font-size:1.1rem; }
.free-day-cal { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; margin-top:8px; }
.free-day-wd { color:var(--muted); font-size:.78rem; font-weight:600; }
.free-day { margin:0; border:1px solid var(--hairline); border-radius:8px; min-height:56px; background:var(--surface); }
.free-day.is-weekend { background:color-mix(in srgb, var(--hairline) 35%, transparent); }
.free-day.is-wish { border-color:var(--accent); background:color-mix(in srgb, var(--accent) 12%, transparent); }
.free-day.is-locked { opacity:.6; }
.free-day-button { display:block; width:100%; min-height:56px; padding:3px 6px; text-align:left; background:transparent; border:0; color:var(--text); font:inherit; font-size:.85rem; cursor:pointer; }
div.free-day-button { cursor:default; }
.free-day-button small { display:block; font-size:.7rem; color:var(--muted); }
.free-day.is-wish .free-day-button small { color:var(--accent); }
.free-day-reason { display:block; padding:0 6px 3px; font-size:.7rem; }
@media (max-width:640px) { .free-day-rule { grid-template-columns:minmax(0,1fr) 90px; } .free-day-rule > span { grid-column:1 / -1; } }

/* #712: dichte Angabenmaske für Freelancer (vier Spalten, mobil zwei). */
.field-grid-4 { grid-template-columns:repeat(4,minmax(0,1fr)); gap:0 12px; }
.field-grid-4 .span-2 { grid-column:span 2; }
@media (max-width:760px) { .field-grid-4 { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* #745: company pool search and package choice */
.pool-search-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin: .5rem 0; }
.pool-search-form label { display: grid; gap: .2rem; font-size: .88rem; }
.pool-result { margin-top: .8rem; display: grid; gap: .4rem; }
.pool-count { font-size: 1.15rem; margin: 0; }
.pool-count b { font-size: 1.6rem; }
.pool-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .8rem; margin: .6rem 0; }
.pool-package { border: 1px solid var(--border, #d8dbe0); border-radius: .5rem; padding: .7rem .9rem; display: grid; gap: .3rem; align-content: start; }
.pool-package h3 { margin: 0; }
.pool-package ul { margin: 0; padding-left: 1.1rem; }
.closing-list td, .closing-list th { white-space:nowrap; }
.seat-keep td, .seat-keep th { padding:2px 6px; }
.seat-keep input { width:auto; min-height:0; }
.pool-interval { border:0; padding:0; margin:0; display:grid; gap:4px; }
.pool-interval legend { padding:0; font-size:.85rem; }
.pool-interval label { display:flex; gap:6px; align-items:flex-start; border:1px solid var(--hairline); border-radius:var(--radius); padding:4px 8px; line-height:1.3; cursor:pointer; }
.pool-interval label:has(input:checked) { border-color:#FF6257; box-shadow:0 0 0 1px #FF6257; }
.pool-interval input { width:auto; min-height:0; margin-top:3px; }
.pool-interval-save { color:var(--success); font-size:.8rem; }
.pool-interval p.muted { margin:0; font-size:.78rem; }
.pool-search-form button, .pool-result button, .pool-package button { width: auto; justify-self: start; }
/* #753: skill tree of the pool search */
.skill-tree-box { display: block !important; flex: 1 1 100%; min-width: 100%; box-sizing: border-box; border: 1px solid var(--hairline, #d5d8de); border-radius: 8px; padding: .4rem .6rem; }
.skill-tree-box legend { float: none; width: auto; padding: 0 .3rem; }
.skill-tree-bar { clear: both; display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.skill-tree-bar input[type=search] { flex: 1; }
.skill-tree-bar button { flex: none; width: auto; }
.skill-tree { max-height: 18rem; overflow: auto; display: grid; gap: 2px; }
.skill-tree summary { display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: 2px 0; min-height: 30px; }
.skill-tree .skill-sub { margin-left: 1.4rem; }
.skill-tree label[data-skill] { display: flex !important; align-items: center; gap: .5rem; margin-left: 1.4rem; padding: 2px 0; min-height: 30px; font-size: .88rem; }
.skill-tree [hidden] { display: none; }
.skill-match { display: flex; align-items: center; gap: .5rem; font-size: .88rem; margin-top: .3rem; }

.pool-offer-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0; }
.pool-offer-actions form, .pool-offer-actions button { width:auto; margin:0; }
/* Reiterleiste (x-page-tabs): Links, Text plus Unterstreichung, mobil horizontal scrollbar (#755) */
.authenticated main nav.page-tabs { display:flex; flex-direction:row; flex-wrap:nowrap; background:none; box-shadow:none; padding:0; border-radius:0; align-items:stretch; gap:2px; margin:0 0 var(--ui-section-gap,14px); border-bottom:1px solid var(--hairline); overflow-x:auto; scrollbar-width:none; max-width:100%; }
.authenticated main nav.page-tabs::-webkit-scrollbar { display:none; }
.authenticated main nav.page-tabs a { flex:none; width:auto; border-radius:0; background:none; box-shadow:none; display:flex; align-items:center; min-height:44px; padding:0 14px; color:var(--muted); text-decoration:none; font-weight:600; border-bottom:3px solid transparent; margin-bottom:-1px; white-space:nowrap; }
.authenticated main nav.page-tabs a:hover { color:var(--text); }
.authenticated main nav.page-tabs a[aria-current=page] { color:var(--text); border-bottom-color:var(--action); }
/* #1333/#1341: Zähler je Reiter (Zahl auf neutraler Fläche, aktiv dunkel; Kontrast AA in Light/Dark) */
.page-tab-count { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; margin-left:6px; padding:0 6px; border-radius:10px; background:var(--neutral-bg); color:var(--neutral); font-size:12px; font-weight:700; line-height:1; box-sizing:border-box; }
.authenticated main nav.page-tabs a[aria-current=page] .page-tab-count { background:var(--text); color:var(--surface); }

/* Column order and width (#778) */
.table-toolbar-col { display:flex; align-items:center; gap:4px; }
.table-toolbar-col.is-dragging { background:var(--surface-muted, rgba(127,127,127,.15)); }
.table-toolbar-grip { min-height:0; min-width:0; width:22px; height:22px; padding:0; border:0; background:none; color:inherit; cursor:grab; line-height:1; touch-action:none; }
.table-toolbar-grip:disabled { opacity:.35; cursor:default; }
.data-table th[data-col] { position:relative; }
.column-resize { position:absolute; top:0; right:-3px; bottom:0; width:8px; min-height:0; min-width:0; padding:0; border:0; border-radius:0; background:transparent; cursor:col-resize; touch-action:none; }
.column-resize:hover, .column-resize:focus-visible { background:var(--accent, #ff6257); opacity:.6; }
@media (max-width: 999px) { .column-resize { display:none; } }
.data-table td.cell-nowrap { white-space:nowrap; }

/* Wide tables scroll sideways instead of squeezing words letter by letter (#778) */
.table-scroll { max-width:100%; overflow-x:auto; }
@media (min-width: 761px) { .table-scroll .data-table th, .table-scroll .data-table td { min-width:5.5rem; } .table-scroll .data-table td .activity-text { display:inline-block; min-width:12rem; } }

/* #806: Vergleich Bisher/Neu eines Änderungsantrags, nur geänderte Werte fett. */
.time-change-compare { width:100%; border-collapse:collapse; font-size:.9em; margin:6px 0 10px; }
.time-change-compare :is(th,td) { text-align:left; padding:2px 8px; border-bottom:1px solid var(--hairline); }
.time-change-compare th { color:var(--muted); font-weight:500; }
.time-change-compare td.changed { font-weight:700; }
.time-change-actions { display:flex; justify-content:flex-end; gap:8px; }
.time-change-actions :is(button,.button) { width:auto; }
.time-change-reason { display:block; max-width:14ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.personnel-tabs .tab-count { margin-left:6px; }

/* #814: change list of the skill catalog (operator). */
.skill-list-open, .skill-list-form button, .skill-list-actions button { width:auto; height:30px; min-height:30px; margin:0; padding:0 10px; font-size:.82rem; }
#skill-list-preview { width:min(860px,calc(100% - 32px)); }
#skill-list .popup-heading, #skill-list-preview .popup-heading { width:auto; max-width:none; min-height:0; margin:0 0 8px; padding:0; border:0; background:none; }
#skill-list .popup-heading h2, #skill-list-preview .popup-heading h2 { font-size:1rem; }
#skill-list .popup-heading button, #skill-list-preview .popup-heading button { height:30px; min-height:30px; padding:0 10px; font-size:.82rem; }
.skill-list-text, .skill-list-hint { margin:0 0 6px; font-size:.84rem; }
.skill-list-hint { color:var(--muted); font-size:.78rem; }
.skill-list-form { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 6px; }
.skill-list-form input[type=file] { flex:1; min-width:200px; height:30px; min-height:30px; margin:0; padding:2px; font-size:.82rem; }
.skill-list-form input[type=file]::file-selector-button { height:24px; }
.skill-list-summary { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 6px; }
.skill-list-scroll { max-height:min(420px,55dvh); overflow:auto; margin:0 0 8px; border:1px solid var(--hairline); border-radius:8px; }
.skill-list-table { width:100%; border-collapse:collapse; font-size:.82rem; }
.skill-list-table th { position:sticky; top:0; padding:2px 6px; background:var(--surface); border-bottom:1px solid var(--hairline); font-weight:600; text-align:left; white-space:nowrap; }
.skill-list-table td { padding:2px 6px; border-top:1px solid var(--hairline); vertical-align:top; overflow-wrap:anywhere; }
.skill-list-table td:first-child { width:1%; color:var(--muted); text-align:right; }
.skill-list-table td:nth-child(2) { width:1%; white-space:nowrap; }
.skill-list-table .status-badge { font-size:.72rem; }
.skill-list-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin:0; }
@media (max-width:560px) {
  .skill-list-table thead { display:none; }
  .skill-list-table tr { display:grid; grid-template-columns:auto 1fr; column-gap:6px; padding:2px 0; border-top:1px solid var(--hairline); }
  .skill-list-table td, .skill-list-table td:first-child, .skill-list-table td:nth-child(2) { width:auto; padding:0 6px; border:0; }
  .skill-list-table td:nth-child(n+3) { grid-column:1 / -1; }
  .skill-list-table td:empty { display:none; }
}

/* Operator skill catalog (compact tree, approved draft 04.11.2026): one line per entry, edit in popups. */
.cat-bar { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; margin:.5rem 0; }
.cat-bar input[type=search] { width:260px; max-width:100%; }
.cat-bar .cat-archived { display:flex; gap:.4rem; align-items:center; font-size:.88rem; }
.cat-bar .cat-archived input { width:auto; min-height:0; }
.cat-bar .cat-new-branch { width:auto; margin-left:auto; height:30px; min-height:30px; padding:0 10px; font-size:.82rem; }
.cat-tree { border:1px solid var(--border); border-radius:10px; overflow:hidden; margin:0 0 1rem; }
.cat-branch + .cat-branch { border-top:1px solid var(--border); }
.cat-row { display:flex; align-items:center; gap:6px; min-height:26px; padding:1px 8px 2px calc(8px + var(--lvl, 0) * 1.1rem); border-bottom:1px solid var(--border); font-size:.9rem; }
.cat-row:hover { background:var(--hover-bg); }
.cat-head { background:var(--hover-bg); padding-left:26px; }
.cat-head .cat-name { margin:0; font-size:1rem; }
.cat-name { flex:0 1 auto; min-width:0; overflow-wrap:anywhere; }
.cat-count { font-size:.8rem; }
.cat-actions { margin-left:auto; flex:0 0 auto; flex-wrap:nowrap; }
.cat-lead { width:20px; flex:0 0 20px; }
.cat-order { display:inline-flex; margin:0; gap:2px; }
.cat-dnd .cat-order:not(:focus-within) { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.cat-row .icon-action, .cat-toggle { position:relative; width:26px; min-width:26px; height:24px; min-height:0; padding:0; border-radius:6px; }
.cat-row .icon-action::after, .cat-toggle::after { content:""; position:absolute; inset:-3px -2px; }
.cat-toggle { display:inline-grid; place-items:center; border:1px solid transparent; background:transparent; color:inherit; cursor:pointer; flex:0 0 26px; }
.cat-toggle .navigation-icon { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform .1s; }
.cat-toggle[aria-expanded="false"] .navigation-icon { transform:rotate(-90deg); }
.cat-children[hidden] { display:none; }
.cat-hide-archived [data-archived="1"], .cat-miss { display:none; }
[data-archived="1"] > .cat-row, .cat-item[data-archived="1"] { color:var(--muted); }
.cat-grip { width:18px; min-width:18px; height:24px; min-height:0; padding:0; border:0; background:transparent; color:var(--muted); cursor:grab; touch-action:none; opacity:0; display:inline-grid; place-items:center; flex:0 0 18px; }
.cat-grip .navigation-icon { width:16px; height:16px; fill:currentColor; stroke:currentColor; stroke-width:2; }
.cat-row:hover .cat-grip, .cat-grip:focus-visible, .cat-is-dragging .cat-grip { opacity:1; }
.cat-actions > * { opacity:0; transition:opacity .1s; }
.cat-row:hover .cat-actions > *, .cat-row:focus-within .cat-actions > * { opacity:1; }
@media (hover:none) { .cat-grip, .cat-actions > * { opacity:1; } .cat-grip { width:44px; min-width:44px; height:44px; flex-basis:44px; } .cat-row { min-height:44px; } }
.cat-row { position:relative; }
.cat-dragging { opacity:.45; }
.cat-is-dragging { cursor:grabbing; user-select:none; }
.cat-drop-into { outline:2px solid #FF6257; outline-offset:-2px; background:rgba(255,98,87,.12); }
.cat-drop-before { box-shadow:inset 0 3px 0 #FF6257; }
.cat-drop-after { box-shadow:inset 0 -3px 0 #FF6257; }
.cat-drop-bad { outline:2px solid #e5484d; outline-offset:-2px; background:rgba(229,72,77,.12); }
.cat-drop-bad::after { content:attr(data-tip); position:absolute; right:8px; top:3px; padding:1px 8px; border-radius:6px; background:#e5484d; color:#fff; font-size:.78rem; pointer-events:none; }
.cat-toast { position:fixed; left:50%; bottom:18px; transform:translateX(-50%); z-index:50; display:flex; gap:10px; align-items:center; padding:6px 10px; border-radius:8px; border:1px solid var(--border); background:var(--surface, #2d3038); box-shadow:0 4px 14px rgba(0,0,0,.35); font-size:.88rem; }
.cat-toast button { width:auto; height:28px; min-height:28px; padding:0 10px; font-size:.82rem; margin:0; }
.cat-form { display:flex; flex-wrap:wrap; gap:.6rem; align-items:end; margin:.5rem 0; }
.cat-form label { display:grid; gap:.2rem; font-size:.88rem; flex:1 1 220px; }
.cat-form button { width:auto; height:30px; min-height:30px; padding:0 10px; font-size:.82rem; }

/* #866: update runs (collapsible live step list). */
details.update-run { border:1px solid var(--hairline); border-radius:8px; margin:6px 0; }
details.update-run > summary { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; padding:6px 10px; min-height:44px; cursor:pointer; list-style:none; }
details.update-run > summary::-webkit-details-marker { display:none; }
.update-run-chevron { display:inline-block; transition:transform .15s; }
details.update-run[open] .update-run-chevron { transform:rotate(90deg); }
.update-run-when { margin-left:auto; }
.update-run-current { font-variant-numeric:tabular-nums; }
.update-run-body { padding:0 10px 8px; }
.update-run-group th { text-align:left; padding:6px 8px 2px; font-size:.85rem; font-weight:600; color:var(--muted); }
.update-run-progress { flex:0 0 140px; height:6px; border-radius:3px; background:var(--neutral-bg); overflow:hidden; }
.update-run-progress i { display:block; height:100%; background:var(--action); }
.status-badge-spin { transform-origin:12px 12px; animation:status-badge-spin 1s linear infinite; }
@keyframes status-badge-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .status-badge-spin, .update-run-chevron { animation:none; transition:none; } }
.update-run-body .data-table td:nth-child(2), .update-run-body .data-table td:nth-child(3), .update-run-body .data-table td:nth-child(4) { white-space:nowrap; font-variant-numeric:tabular-nums; }
.header-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; justify-content:flex-end; }
.template-archived { margin-top:8px; }
.template-archived > summary { cursor:pointer; font-size:.88rem; font-weight:600; padding:4px 0; min-height:24px; }
.template-archived > summary:focus-visible { outline:2px solid var(--brand, #FF6257); outline-offset:2px; }
.pool-result-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
/* Skill-Baum: Ordner (Gewerk/Gruppe) mit Pfeil und Führungslinie, Skills ohne Pfeil */
.skill-tree summary { list-style: none; font-weight: 600; }
.skill-tree summary::-webkit-details-marker { display: none; }
.skill-tree summary::before { content: '▸'; flex: none; width: 1rem; text-align: center; color: var(--muted, #8a8f99); }
.skill-tree details[open] > summary::before { content: '▾'; }
.skill-tree summary [data-count] { font-weight: 400; font-size: .82rem; margin-left: auto; padding-right: .5rem; }
.skill-tree details[open] > summary ~ * { border-left: 1px solid var(--hairline, #d5d8de); margin-left: .5rem; padding-left: .9rem; }
.skill-tree .skill-sub { margin-left: 0; }
.skill-tree label[data-skill] { margin-left: 0; font-weight: 400; }

/* #932: position list of the pool request form */
.pos-row { display:grid; grid-template-columns:150px minmax(0,1fr) 90px 120px 34px; gap:8px; align-items:start; margin-bottom:6px; }
.pos-row > b { align-self:center; font-size:.9rem; }
.pos-row input { margin:0; }
.pos-head { font-size:.8rem; color:var(--muted,#666); margin-bottom:2px; }
.pos-title { margin:14px 0 4px; }
.pos { border:1px solid var(--hairline); border-radius:8px; padding:8px; margin-bottom:6px; background:var(--surface); }
.pos .pos-row { margin-bottom:0; align-items:center; }
.pos-skills { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin-top:6px; }
.pos-none { font-size:.82rem; }
.pos-own { margin-top:4px; }
.pos-own .inherit { font-size:.82rem; margin:0; }
.linklike { background:none; border:0; padding:0; min-height:0; color:inherit; text-decoration:underline; cursor:pointer; font:inherit; }
.chip { display:inline-flex; align-items:center; gap:4px; border:1px solid var(--success); background:var(--success-bg); color:var(--success); border-radius:999px; padding:2px 8px; font-size:.82rem; min-height:26px; }
.chip.want { border-color:var(--warning); background:var(--warning-bg); color:var(--warning); }
.pr-skill-row [aria-pressed=true] { background:var(--neutral-bg); font-weight:700; }
.chip b { font-size:.7rem; text-transform:uppercase; letter-spacing:.03em; }
.chip button { border:0; background:none; color:inherit; cursor:pointer; padding:0 2px; min-height:0; }
.pos-skills .add { display:inline-flex; align-items:center; border:1px dashed var(--control-border); border-radius:999px; padding:2px 10px; font-size:.82rem; color:var(--muted); min-height:26px; background:none; cursor:pointer; }
.pr-skill-list { max-height:320px; overflow:auto; margin:8px 0; }
.pos:has([data-pos-branch][aria-invalid=true]) { border-color:var(--error); }
.pos-branch select { margin:0; width:100%; }
.pos-branch .error, .pos-branch .notice { margin:4px 0 0; font-size:.82rem; }
.pr-skill-row { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:3px 0; border-bottom:1px solid var(--hairline); }

.pos-sum { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; border-top:1px solid var(--hairline); padding-top:8px; margin-top:6px; }
.pos-progress { display:inline-block; vertical-align:middle; width:110px; height:6px; border-radius:3px; background:var(--hairline); overflow:hidden; }
.pos-progress i { display:block; height:100%; background:var(--success,#2e9d5b); }
@media(max-width:760px) { .pos-row { grid-template-columns:minmax(0,1fr) 70px 34px; } .pos-row > b, .pos-head span:nth-child(4), .pos-row > .pos-branch, .pos-head span:nth-child(1) { grid-column:1 / -1; } }
.mini { min-height:30px; padding:2px 10px; font-size:.85rem; }

/* Zahlungsmedien (Firmeneinstellungen): Zeilenliste mit Marken-Chip */
.pm-list { display:flex; flex-direction:column; gap:6px; margin:0 0 10px; padding:0; list-style:none; }
.pm { display:flex; align-items:center; gap:12px; padding:8px 12px; border:1px solid var(--border); border-radius:8px; background:var(--surface); }
.pm.is-default { border-color:#FF6257; box-shadow:inset 3px 0 0 #FF6257; }
.pm-logo { flex:none; width:44px; height:30px; border-radius:5px; display:grid; place-items:center; font-size:.7rem; font-weight:700; letter-spacing:.02em; color:#fff; background:#24272E; }
.pm-logo.visa { background:#1a3a8f; } .pm-logo.mc { background:#3b3f4a; } .pm-logo.sepa { background:#0b6b57; }
.pm-main { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.25; }
.pm-main span { font-size:.8rem; color:var(--muted); }
.pm-main .pm-warn { color:#b3261e; }
:root[data-theme=dark] .pm-main .pm-warn { color:#ff8a80; }
.pm-actions { display:flex; gap:6px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.pm-empty { flex-direction:column; justify-content:center; gap:2px; padding:16px; border-style:dashed; text-align:center; }
/* #1442: payment methods of the central console */
.pm-central-note { margin:4px 0 8px; }
.pm-central-add { display:flex; gap:6px; align-items:center; }
.pm-central-add form { margin:0; }
.pm-offline { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.pm-list.is-stale .pm { opacity:.72; }
.pm-reason { width:100%; min-height:56px; }
.pm-choice { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:10px; }
.pm-choice label { display:flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid var(--border); border-radius:8px; cursor:pointer; margin:0; }
.pm-choice label:has(input:checked) { border-color:#FF6257; background:rgba(255,98,87,.08); }
.pm-preview { display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:8px; background:#24272E; color:#fff; margin:8px 0; }
.pm-preview small { opacity:.7; }
.pm-exp { display:flex; gap:6px; align-items:center; }
@media (max-width:520px) { .pm { flex-wrap:wrap; } .pm-actions { width:100%; justify-content:flex-start; } }

/* #957: gemeinsame Dashboard-Kachel (x-dashboard-widget). Zeilenhöhe folgt dem Skalierungstoken. */
:root { --dw-row:30px; --dw-pad:10px; }
:root[data-scale=compact] { --dw-row:26px; --dw-pad:8px; }
:root[data-scale=large] { --dw-row:36px; --dw-pad:12px; }
@media(max-width:760px) { :root { --dw-row:44px; } }
.dashboard-grid--widgets { grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); }
@media(min-width:1500px) { .dashboard-grid--widgets { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:1100px) { .dashboard-grid--widgets { grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); } }
.dw-tile { position:relative; display:flex; flex-direction:column; min-width:0; background:var(--surface); border:1px solid var(--hairline); border-radius:8px; padding:var(--dw-pad); }
.dw-tile:hover,.dw-tile:focus-within { border-color:var(--accent); }
.dw-head { display:flex; align-items:center; min-height:var(--dw-row); }
.dw-head h3 { margin:0; font-size:1rem; flex:1; min-width:0; }
.dw-cover { display:flex; align-items:center; gap:8px; color:inherit; text-decoration:none; min-height:var(--dw-row); }
.dw-cover::after { content:""; position:absolute; inset:0; border-radius:8px; }
.dw-cover:focus-visible { outline:none; }
.dw-cover:focus-visible::after { outline:2px solid var(--accent); outline-offset:1px; }
.dw-count { color:var(--muted); font-weight:500; font-size:.85rem; }
.dw-arrow { width:16px; height:16px; margin-left:auto; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; color:var(--muted); }
.dw-body { display:flex; flex-direction:column; min-width:0; }
.dw-body > * { margin:0; }
.dw-empty { color:var(--muted); min-height:var(--dw-row); display:flex; align-items:center; }
.dw-rows { list-style:none; margin:0; padding:0; }
.dw-rows > li { display:flex; align-items:center; min-height:var(--dw-row); gap:8px; border-top:1px solid var(--hairline); min-width:0; }
.dw-rows a,.dw-stats a { position:relative; z-index:1; color:inherit; display:flex; align-items:center; gap:8px; flex:1; min-width:0; min-height:var(--dw-row); text-decoration:none; }
.dw-rows a:hover,.dw-foot a:hover { text-decoration:underline; }
.dw-rows .dw-row-end,.dw-stats dd { margin-left:auto; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.dw-rows .dw-row-main { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.dw-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(90px,1fr)); gap:6px 12px; margin:0; }
.dw-stats div { display:flex; flex-direction:column; min-width:0; }
.dw-stats dt { color:var(--muted); font-size:.8rem; }
.dw-stats dd { margin:0; color:inherit; font-weight:650; font-size:1.05rem; }
.dw-foot { margin-top:2px; min-height:var(--dw-row); display:flex; align-items:center; }
.dw-foot a { position:relative; z-index:1; display:inline-flex; align-items:center; min-height:var(--dw-row); font-size:.85rem; }
[data-dashboard-editor] .dw-cover::after { pointer-events:none; }
.dw-head h3 { text-align:left; }
.dw-cover { width:100%; justify-content:flex-start; }
.dw-foot a { color:var(--muted); text-decoration:none; }
.geocode-problem { margin-left:6px; }

/* #982: Stripe-Formular im Dialog Zahlungsmedium */
.pm-el { border:1px solid var(--border); border-radius:6px; padding:8px 10px; background:var(--surface); min-height:34px; }
.pm-testnote { background:#fff7e0; border:1px solid #f0d98a; border-radius:6px; padding:4px 8px; font-size:.75rem; margin:0 0 8px; color:#24272E; }
.pm-safe { font-size:.75rem; color:var(--muted); margin:8px 0; }

/* #627: month view of the free-day plan (dense table, one row per employee, 2 px cell spacing) */
.free-day-plan-scroll { overflow-x:auto; }
.free-day-plan-table { border-collapse:separate; border-spacing:2px; font-size:.78rem; }
.free-day-plan-table th, .free-day-plan-table td { padding:0 3px; height:26px; }
.free-day-plan-table .fd-name { text-align:left; white-space:nowrap; padding-right:10px; position:sticky; left:0; background:var(--surface); }
.free-day-plan-table .fd-num { text-align:right; white-space:nowrap; padding:0 8px; }
.free-day-plan-table .fd-day { color:var(--muted); font-weight:600; min-width:26px; }
.free-day-plan-table .fd-day.is-weekend, .free-day-plan-table .fd-day.is-holiday { color:var(--accent); }
.fd-cell { text-align:center; border-radius:5px; min-width:26px; font-size:.7rem; font-weight:600; background:color-mix(in srgb,var(--text) 6%,transparent); }
.fd-cell.fd-work { background:color-mix(in srgb,var(--text) 14%,transparent); }
.fd-cell.fd-free { background:color-mix(in srgb,#16a34a 30%,transparent); }
.fd-cell.fd-absent { background:color-mix(in srgb,#2563eb 25%,transparent); }
.fd-cell.fd-unavailable { background:repeating-linear-gradient(45deg,transparent 0 3px,color-mix(in srgb,var(--text) 15%,transparent) 3px 5px); }
.fd-cell form { margin:0; }
.fd-btn { width:100%; min-height:26px; height:26px; padding:0; border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.fd-need td { text-align:center; color:var(--muted); }
.fd-need td.is-short { color:#b45309; font-weight:700; }
.free-day-warnings ul, .free-day-history ul { margin:4px 0; padding-left:18px; font-size:.85rem; }
.fd-cell.fd-fza { background:color-mix(in srgb,#9333ea 28%,transparent); }

/* Bündel I (09.11.2026) */
/* #660: Formularknöpfe in Inhaltsbreite (Grundregel width:auto oben), ausnahmslos auch Anmeldung und Einladung (Nutzerentscheidung 09.11.2026). */
/* #661: Symbolknöpfe sichtbar 32 px (Kompakt 30, Groß 36), Radius 4 px, unsichtbare Klickfläche 44/48 px. */
.icon-button { display:inline-grid; place-items:center; position:relative; width:var(--ui-button-height); min-width:var(--ui-button-height); height:var(--ui-button-height); min-height:0; padding:0; border-radius:var(--ui-button-radius); line-height:1; }
.icon-button > svg { width:18px; height:18px; }
:is(.icon-button,.icon-action)::after { content:""; position:absolute; inset:var(--ui-button-hit); }
.record-tab .icon-button, .calendar-month-navigation .icon-button { min-width:var(--ui-button-height); min-height:0; }
.dashboard-heading .icon-button, .page-heading .icon-button { font-size:1.1rem; }
:is(.icon-button,.icon-action):focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
/* #957 Paket 2: Kopf-Steuerelement und „Nächster Einsatz“ der Kachel. */
.dw-tools { position:relative; z-index:1; flex:0 0 auto; margin-left:6px; }
.dw-head .dw-cover { padding-right:4px; }
.dw-month { display:flex; align-items:center; gap:4px; margin:0; }
.authenticated .dw-month select { width:auto; min-width:6.5rem; height:26px; min-height:0; margin:0; padding:0 22px 0 6px; font-size:.85rem; }
.dw-month button { min-height:26px; margin:0; padding:0 8px; font-size:.85rem; }
.dw-next { display:flex; align-items:center; gap:8px; min-height:var(--dw-row); min-width:0; }
.dw-next a { position:relative; z-index:1; color:inherit; display:flex; align-items:center; min-width:0; min-height:var(--dw-row); }
.dw-row-plain { display:flex; align-items:center; gap:8px; flex:1; min-width:0; }
.dw-tile .dw-stats { margin-bottom:4px; }
/* #662: Felder der Steuerleiste nutzen die gemeinsame Feldschrift 0,92 rem. */
.authenticated .absence-stats-period select { font-size:.92rem; }
/* #957 Paket 3: Stunden-Kacheln je Firma untereinander, Firmenname klein im Kopf. */
.dw-stack { display:flex; flex-direction:column; gap:var(--ui-field-gap, 8px); }
.dw-tools { display:flex; align-items:center; gap:6px; min-width:0; }
.dw-company { flex:1 1 auto; min-width:0; text-align:right; color:var(--muted); font-size:.8rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dw-head h3 { flex:0 0 auto; white-space:nowrap; }
.dw-head .dw-tools { flex:1 1 auto; justify-content:flex-end; margin-left:6px; }
.dw-rows .status-badge { flex:0 0 auto; }
/* #957 Paket 4: feste Kachel (AU-Nachweise) mit Abstand wie Karten; Seitenwechsel klein unter den Zeilen. */
.dw-fixed { margin:var(--ui-section-gap) 0; }
.dw-pages { position:relative; z-index:1; font-size:.85rem; }

/* #1105: Bewerber-Avatar klein in der Zeile, Kopf im Profil-Popup */
.compact-list-row .avatar { display:inline-grid; width:26px; height:26px; font-size:.7rem; vertical-align:middle; }
.applicant-head { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.applicant-head .avatar-large { width:56px; height:56px; font-size:1.2rem; }
.applicant-meta { margin:2px 0 0; font-size:.88rem; }
.applicant-match { width:100%; margin:4px 0; }
.skill-stars { color:#a86b00; letter-spacing:1px; }
:root[data-theme=dark] .skill-stars { color:#f2b84b; }
.applicant-skills { margin:8px 0; } .applicant-skills summary { cursor:pointer; }
/* Zentraler Ladebereich (deferred-content.js): Ladebalken statt leerer Fläche, solange die Daten geholt werden. */
.deferred-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 3rem 1rem; border: 1px solid var(--border, #d9dce1); border-radius: 8px; color: inherit; }
.deferred-loading-bar { position: relative; display: block; width: min(16rem, 70%); height: 4px; border-radius: 2px; background: var(--border, #d9dce1); overflow: hidden; }
.deferred-loading-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 2px; background: #FF6257; animation: deferred-slide 1.1s ease-in-out infinite; }
.deferred-loading-failed { flex-direction: row; gap: 1rem; color: var(--danger, #b3261e); }
.deferred-loading-fallback { text-align: center; }
@keyframes deferred-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .deferred-loading-bar::after { animation: none; width: 100%; opacity: .5; } }
.pool-head { display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap; }
.pool-choose .doc-hint, .pool-choose .pool-package p { margin:0; }
.pool-single-row { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.pool-single-title { font-size:1rem; margin:0; }
.pool-single-buy { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.pool-price b { font-size:1.1rem; }
.pool-bonus { color:var(--success-text, inherit); font-size:.85rem; }
.pool-package form { margin-top:.3rem; }
.pool-package form .btn { width:100%; }
.pool-links { display:flex; gap:14px; flex-wrap:wrap; margin:.4rem 0 0; font-size:.9rem; }
.pool-choose .pool-packages { margin:.3rem 0; }
.pool-choose .notice { font-size:.85rem; margin:.4rem 0; }

/* #1124: freelancer request at a glance */
.glance-tiles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-bottom:8px; }
.glance-tile { border:1px solid var(--hairline); border-radius:8px; padding:6px 8px; display:flex; flex-direction:column; gap:1px; }
.glance-tile small { color:var(--muted); font-size:.78rem; }
.glance-tile b { font-size:1.05rem; }
.glance-skills { margin:0 0 8px; }
.glance-venue { display:grid; grid-template-columns:minmax(0,1fr) 220px; gap:10px; border:1px solid var(--hairline); border-radius:8px; padding:8px; }
.glance-map img { width:100%; height:auto; border-radius:6px; display:block; }
.glance-hint { margin:4px 0 0; }
@media(max-width:600px) { .glance-tiles { grid-template-columns:1fr 1fr; } .glance-venue { grid-template-columns:1fr; } }

/* #1123: quick start and templates of the pool request form */
.pr-quickstart { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:0 0 8px; }
.pr-rate-type { max-width:360px; margin:10px 0 4px; } /* #1434 Vergütung: Tagessatz | Stundensatz */
.authenticated .pm-choice.pr-rate-type label { min-height:44px; padding:8px 12px; box-sizing:border-box; font-weight:600; }
.pr-template { display:inline-flex; align-items:center; gap:0; }
.pr-template .ghost.mini[aria-label] { min-width:30px; padding:2px 6px; }
.pr-remember { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:8px 0; }
.pr-remember label { margin:0; font-weight:400; display:inline-flex; gap:6px; align-items:center; }
.pr-remember input[type=checkbox] { width:auto; margin:0; }
.pr-remember input[name=template_name] { flex:1 1 240px; margin:0; }

.vehicle-open { color:inherit; text-decoration:none; }
.vehicle-open:hover strong, .vehicle-open:focus-visible strong { text-decoration:underline; }
.vehicle-fieldset { border:0; margin:0; padding:0; min-width:0; }
.danger-action { color:var(--error); }


/* #381 shared compact history/log rows (<x-history-list>/<x-history-entry>): one line per entry, details on demand.
   Uses the personal list density tokens; expandable rows keep the 44/48px control height. */
.history-list { list-style:none; margin:0; padding:0; --history-columns:1.1em minmax(14ch,auto) minmax(10ch,1fr) minmax(0,2fr); }
.history-list-object { --history-columns:1.1em minmax(14ch,auto) minmax(10ch,1fr) minmax(0,1.6fr) minmax(0,1.4fr); }
.history-head,.history-row { display:grid; grid-template-columns:var(--history-columns); column-gap:var(--ui-list-inline); align-items:center; padding:var(--ui-list-block) var(--ui-list-inline); min-width:0; }
.history-head { color:var(--muted); font-weight:600; border-bottom:1px solid var(--border); padding-top:0; }
.history-entry { border-bottom:1px solid var(--hairline); }
.history-entry > details { margin:0; }
summary.history-row { list-style:none; min-height:24px; cursor:pointer; }
@media (pointer:coarse) { summary.history-row { min-height:var(--ui-control-height); } }
summary.history-row::-webkit-details-marker { display:none; }
summary.history-row:hover { background:var(--hover-bg); }
.history-toggle::before { content:'▸'; color:var(--muted); }
div.history-row .history-toggle::before { content:''; }
details[open] > summary .history-toggle::before { content:'▾'; }
.history-cell { min-width:0; overflow-wrap:anywhere; }
.history-at { white-space:nowrap; font-variant-numeric:tabular-nums; }
.history-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.history-details { padding:0 var(--ui-list-inline) var(--ui-field-gap) calc(1.1em + 2 * var(--ui-list-inline)); min-width:0; overflow-wrap:anywhere; }
.history-details > :first-child { margin-top:0; }
.history-details p,.history-details dl { margin:4px 0; }
.history-details h3,.history-details h4 { font-size:.95em; margin:6px 0 2px; }
.history-details .history-grid,.history-details .project-overview,.history-details .field-grid { gap:0 var(--ui-field-gap); }
.history-details .project-history { margin:4px 0; }
.history-empty { margin:4px 0; }
.card > .history-list,.card > details > .history-list { margin-top:4px; }
@media(max-width:760px) {
  .history-head { display:none; }
  .history-row { grid-template-columns:1.1em minmax(0,1fr); row-gap:0; align-items:start; }
  .history-cell { grid-column:2; }
  .history-toggle { grid-row:1; }
  .history-at { white-space:normal; font-weight:600; }
  .history-label { position:static; width:auto; height:auto; overflow:visible; clip-path:none; white-space:normal; color:var(--muted); font-weight:400; }
  .history-details { padding-left:calc(1.1em + var(--ui-list-inline)); }
}

/* #1190: offers when credits are missing (extra credits or next package), one compact card each, the recommended one framed */
.pool-offers { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:8px; margin:8px 0; }
.pool-offer { border:1px solid var(--hairline); border-radius:8px; padding:8px 10px; display:flex; flex-direction:column; gap:4px; }
.pool-offer > p { margin:0; }
.pool-offer-recommended { border:2px solid var(--accent); padding:7px 9px; }
.pool-offer-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; }
.pool-offer .pool-offer-actions { justify-content:space-between; }

/* #1188: Hinweis zur Vermittlung (pool-notice dialog) */
.pool-notice-list { margin:2px 0 8px; padding-left:18px; font-size:.84rem; line-height:1.4; }
.pool-notice-list li { margin:0 0 4px; }
.pool-notice-check { display:flex; gap:8px; align-items:flex-start; margin:8px 0; font-size:.88rem; font-weight:600; }
.pool-notice-check input { width:20px; height:20px; margin:1px 0 0; flex:none; }
/* #1192: Zeit Basis / Zeit & HR choice on the pool page, compact two options in one row (wraps on mobile) */
.tier-choice { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:var(--ui-field-gap); margin:0 0 6px; }
.authenticated .tier-choice label.tier-option { display:block; border:1px solid var(--hairline); border-radius:6px; padding:6px 10px; margin:0; cursor:pointer; min-height:44px; font-weight:400; }
.tier-option .muted { display:block; font-size:.85rem; }
.tier-option:has(input:checked) { border-color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent); }
.tier-option b { font-weight:600; }

/* #1169: Schnellwahl „Stunden erfassen“ am eigenen Einsatz */
.quick-time { margin:6px 0 10px; }
.quick-time-menu { position:relative; display:inline-block; }
.quick-time-menu > summary { display:inline-flex; align-items:center; min-height:34px; padding:0 14px; cursor:pointer; list-style:none; }
.quick-time-menu > summary::-webkit-details-marker { display:none; }
.quick-time-menu > summary::after { content:"▾"; margin-left:8px; }
.quick-time-items { position:absolute; z-index:5; top:calc(100% + 4px); left:0; min-width:200px; display:grid; padding:4px; border:1px solid var(--border,#4a4f5c); border-radius:8px; background:var(--surface,#2a2d35); box-shadow:0 8px 24px #0006; }
.quick-time-items :is(a,button) { display:block; width:100%; min-height:44px; padding:0 12px; text-align:left; line-height:44px; background:transparent; border:0; color:inherit; border-radius:6px; text-decoration:none; font:inherit; cursor:pointer; }
.quick-time-items :is(a,button):hover, .quick-time-items :is(a,button):focus-visible { background:var(--surface-2,#343843); }

/* Projektbuchung Material (#1221): eine Zeile je Zeit/Position, Zeitraum kompakt, Knöpfe nebeneinander. */
.booking-table td.booking-actions { white-space:nowrap; }
.booking-table td.booking-actions form { display:inline; }
.booking-table td.booking-actions :is(button,.data-action) { display:inline-flex; vertical-align:middle; margin-right:4px; }
.booking-slots input[type=datetime-local] { min-width:0; width:13.5em; max-width:100%; }
.booking-lines td[data-label=Planung], .booking-lines td[data-label=Gebrauch] { white-space:nowrap; font-size:.9em; }
.booking-range { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.booking-range label { min-width:0; }
.popup fieldset:has(.booking-range) { margin:0 0 6px; padding:4px 8px; }
@media(max-width:760px) {
  .booking-table:where(:not(.data-table-compact)) td::before { content:none !important; }
  .booking-table:where(:not(.data-table-compact)) td[data-label]:not(:empty)::before { content:attr(data-label) ": " !important; color:var(--muted); }
  .booking-table:where(:not(.data-table-compact)) td[data-label=Frei]::before { content:none !important; }
  .booking-table td:empty { display:none !important; }
  .booking-lines td[data-label=Planung], .booking-lines td[data-label=Gebrauch] { white-space:normal; }
  .booking-slots input[type=datetime-local] { width:100%; }
}
@media(min-width:761px) {
  .card:has(.booking-table) { overflow-x:auto; }
  .booking-table th { white-space:nowrap; }
  .booking-lines td:first-child { min-width:10em; }
}
@media(min-width:761px) { .booking-slots input[name=name] { min-width:10em; } }
/* #390 Auswahlspalte der Buchungsliste: kleines Kästchen statt Feldbreite. */
.booking-lines input[type=checkbox] { width:auto; min-width:0; min-height:0; margin:0; }
.booking-lines th:first-child,.booking-lines td:first-child { width:1.6rem; }
/* #1297: Jahresliste Stundenauszahlung – Monatszellen eng, Eingabe mit kleinem Haken. */
.payout-year .payout-cell { text-align:center; white-space:nowrap; }
.payout-cell-form { display:inline-flex; align-items:center; gap:2px; margin:0; }
.payout-cell-form:has(> .payout-after) { display:inline-grid; grid-template-columns:auto auto; justify-items:start; align-items:center; }
.payout-after { font-size:.8em; color:var(--muted); }
.payout-cell-form .payout-after { grid-column:1 / -1; width:0; min-width:100%; white-space:normal; line-height:1.2; text-align:center; }
.payout-after.is-negative { color:var(--error); }
.payout-cell-form input[name=hours] { width:4.2em; min-height:28px; padding:0 4px; text-align:right; }
.payout-cell-form input[aria-invalid=true] { border-color:var(--danger, #c8372d); }
.payout-cell-form .payout-book { width:auto; min-width:28px; min-height:28px; padding:0 6px; }
.payout-booked { font-variant-numeric:tabular-nums; }
.payout-year-pick { display:inline-flex; gap:4px; margin:0; }
.payout-year-pick select { width:auto; min-height:32px; }
.payout-confirm-actions { display:flex; gap:6px; justify-content:flex-end; margin-top:10px; }
.payout-confirm-actions button { width:auto; }
@media (pointer:coarse) { .payout-cell-form input[name=hours],.payout-cell-form .payout-book { min-height:44px; } }
.payout-year .data-table td,.payout-year .data-table th { white-space:nowrap; word-break:normal; overflow-wrap:normal; }
.payout-year .data-table td:first-child { min-width:9em; }
.card.payout-year { overflow-x:auto; max-width:100%; }
@media(max-width:760px) {
  .payout-year .data-table td.payout-cell { display:flex; flex:1 1 100%; justify-content:space-between; align-items:center; gap:8px; text-align:left; color:var(--text); }
  .payout-year .data-table td.payout-cell::before { content:none !important; }
  .payout-year .data-table td.payout-cell .data-label { display:inline; color:var(--muted); }
  .payout-year .data-table td.payout-cell:has(> .muted) { display:none; }
  .payout-year .data-table td.number::before { content:none !important; }
  .payout-year .data-table td.number .data-label { display:inline; margin-right:4px; }
}
.mapping-quick { display:flex; margin:0; }
.mapping-select { width:100%; max-width:22rem; min-height:28px; padding:2px 8px; font-size:.9rem; }
.mapping-select.is-unmapped { border-color:var(--warning, #b7791f); font-weight:600; }
.sync-more { margin:0 0 8px; font-size:.9rem; }
.sync-more summary { cursor:pointer; color:var(--accent); min-height:0; padding:0; }
.sync-more p { margin:4px 0 0; }
/* #1343 Digitale Unterschrift: Branche, Dokumentarten, Übernahmehinweis */
.signature-rows{margin:0}.signature-rows>div{display:flex;align-items:center;gap:10px;padding:4px 0;border-bottom:1px solid var(--hairline)}
.signature-rows dt{color:var(--muted);font-size:.8rem;min-width:150px}.signature-rows dd{margin:0;flex:1;font-weight:600;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.signature-types{list-style:none;margin:0;padding:0}.signature-types li{display:flex;align-items:center;gap:10px;padding:3px 0;border-bottom:1px solid var(--hairline)}
.signature-types li:last-child{border-bottom:0}.signature-types label{margin:0;min-width:200px}
.signature-carry-over{display:flex;gap:10px;align-items:flex-start}.signature-carry-over p{margin:0;flex:1}
details.signature-advanced>summary{cursor:pointer;font-weight:600;padding:4px 0}
@media (max-width:600px){.signature-rows>div{flex-wrap:wrap}.signature-types label{min-width:0}}

/* #1379: eine Zeile je Datensatz – lange Namen werden auf dem Desktop gekürzt (voller Text im Tooltip), mobil umbrechen wie bisher. */
@media(min-width:761px) {
  .data-table td.cell-truncate { max-width:13rem; }
  .data-table td.cell-truncate .data-value { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .data-table td.cell-truncate .status-badge { vertical-align:middle; }
}
/* #1379: Knöpfe im Mehr-Menü einer Tabellenzeile sehen aus wie die Links daneben (keine gefüllten Knöpfe), 32 px hoch. */
.data-table td .doc-more-menu :is(.data-action, .doc-link-button) { min-height:32px; padding:0 8px; border:0; background:none; box-shadow:none; font-weight:600; line-height:1.2; }
.data-table td .doc-more-menu :is(.data-action, .doc-link-button):not(.danger) { color:var(--accent); }
.data-table td .doc-more-menu :is(.data-action, .doc-link-button):hover { background:var(--hover-bg); }
/* #1269: festes 5er-Raster (Lohnexport), Beschriftungen einzeilig, damit Felder in einer Reihe stehen */
.field-grid.field-grid-5 { grid-template-columns:repeat(5,minmax(0,1fr)); gap:var(--ui-field-gap) 12px; align-items:end; }
.field-grid.field-grid-5 > div > label { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.field-grid.field-grid-5 input,.field-grid.field-grid-5 select { width:100%; min-width:0; }
@media(max-width:1000px) { .field-grid.field-grid-5 { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:560px) { .field-grid.field-grid-5 { grid-template-columns:repeat(2,minmax(0,1fr)); } }
/* #1270: Vorschau „Erfassungsbogen übernehmen?“ breiter, Feldnamen einzeilig */
#payroll-form-import { width:min(840px,calc(100% - 32px)); }
@media(min-width:761px) { #payroll-form-import td { white-space:nowrap; } }
/* #1282/#1287: further employments and minijob light in the personnel profile. */
.employment-status .row-actions { display:flex; gap:4px; justify-content:flex-end; flex-wrap:wrap; }
.employment-status h3 { margin:0; }
.minijob-light-row { display:grid; grid-template-columns:minmax(110px,auto) 1fr auto; gap:4px 10px; align-items:center; margin-top:6px; }
.minijob-light-meter { height:6px; border-radius:3px; background:var(--hairline); overflow:hidden; margin:2px 0 4px; }
.minijob-light-meter i { display:block; height:100%; background:var(--neutral); }
.minijob-light-success i { background:var(--success); }
.minijob-light-warning i { background:var(--warning); }
.minijob-light-danger i { background:var(--error); }
@media (max-width:640px) { .minijob-light-row { grid-template-columns:1fr auto; } .minijob-light-row > span { grid-column:1 / -1; } }
.legal-value-form + .legal-value-form { border-top:1px solid var(--hairline); margin-top:12px; padding-top:8px; }
/* #1379: Fahrzeugliste auch bei 1024 px einzeilig ohne Querscrollen: schmalere Namensspalte, engere Zellen, „· ungeprüft“ nur für Screenreader und im Tooltip. */
@media(min-width:761px) and (max-width:1279px) {
  .vehicle-list .data-table td.cell-truncate { max-width:8.5rem; }
  .vehicle-list .data-table :is(th, td) { padding-inline:6px; }
  .vehicle-list .data-table :is(th, td):last-child { min-width:3.5rem; }
  .vehicle-list .vehicle-status-extra { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
}

/* #1438: "Meine Gewerke" in the own profile */
.ob-list { list-style:none; margin:8px 0 0; padding:0; }
.ob-row form { display:grid; grid-template-columns:minmax(140px,220px) 1fr auto; gap:8px; align-items:center; min-height:44px; border-bottom:1px solid var(--hairline); margin:0; }
.ob-check { display:flex; align-items:center; gap:8px; margin:0; font-weight:400; }
.ob-check input { width:20px; height:20px; margin:0; }
.ob-name.on { font-weight:700; }
.ob-link { color:var(--action); font-size:.9rem; }
