/* BREMER-like, clean UI (prototype) */
:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --text: #0b1220;
  --muted: #4b5563;
  --border: rgba(17, 24, 39, 0.12);
  --shadow: rgba(17, 24, 39, 0.1);
  --accent: #0050b8; /* BREMER Blau */
  --accent2: #0b3f8f;
  --danger: #ff0000;
  --warning: #d97706;
  --success: #0f766e;
  --input: rgba(17, 24, 39, 0.04);
  --input2: rgba(17, 24, 39, 0.08);
  --focus: rgba(0, 80, 184, 0.2);
}

/* Twin-Column Modals (modern, consistent) */
.twinModal {
  display: grid;
  gap: 12px;
}
.twinHeaderRow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.twinGrid {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 12px;
}
.twinCard {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.twinCardTitle {
  font-weight: 900;
  margin-bottom: 8px;
}
.twinCard .select {
  flex: 1;
  min-height: 260px;
  height: auto;
}
.twinHint {
  margin-top: 8px;
}
.twinMid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.twinArrow {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  font-weight: 900;
}
.twinArrow:hover {
  background: rgba(2, 132, 199, 0.06);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  background:
    radial-gradient(
      900px 600px at 15% 0%,
      rgba(0, 80, 184, 0.08),
      transparent 55%
    ),
    radial-gradient(
      900px 600px at 85% 10%,
      rgba(15, 118, 110, 0.06),
      transparent 55%
    ),
    var(--bg);
  color: var(--text);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  /* NOTE: removed backdrop-filter for maximum CSS-validator compatibility */
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
}
.logo-img {
  height: 26px;
  width: auto;
  display: block;
}
.brand-title {
  font-weight: 900;
  letter-spacing: 0.2px;
}
.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.nav {
  display: flex;
  gap: 10px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
}
.nav a:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(17, 24, 39, 0.02);
}
.nav a.active {
  color: var(--text);
  border-color: rgba(0, 80, 184, 0.35);
  background: rgba(0, 80, 184, 0.08);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  justify-content: flex-end;
}
.user-badge {
  padding: 7px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.03);
  font-weight: 900;
  font-size: 12px;
  color: var(--text);
}

.container {
  /* Even wider – user prefers no internal horizontal scrollbars */
  max-width: 1850px;
  width: min(1850px, 99vw);
  margin: 18px auto 50px;
  padding: 0 10px;
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(248, 250, 252, 0.98)
  );
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 24px 60px var(--shadow);
  padding: 18px;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
}
h1 {
  font-size: 22px;
}
h2 {
  font-size: 18px;
}
p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 12px;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 820px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .brand {
    min-width: unset;
  }
  .topbar-right {
    min-width: unset;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}
label .req {
  color: var(--danger);
  margin-left: 2px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--text);
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 80, 184, 0.55);
  box-shadow: 0 0 0 4px var(--focus);
}
input.invalid,
select.invalid,
textarea.invalid {
  border-color: rgba(200, 30, 30, 0.55);
  box-shadow: 0 0 0 4px rgba(200, 30, 30, 0.12);
}
.helper {
  font-size: 12px;
  color: var(--muted);
}
.error {
  font-size: 12px;
  color: var(--danger);
  font-weight: 800;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.row.space {
  justify-content: space-between;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.03);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

/* --- Semantic button colors (UI/UX) --- */

/* Premium button interactions */
.btn {
  transition:
    filter 0.12s ease,
    transform 0.06s ease,
    box-shadow 0.12s ease;
}
.btn:hover {
  filter: brightness(0.96);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.btn:active {
  transform: translateY(1px);
  filter: brightness(0.92);
}
.btn[disabled],
.btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.2) saturate(0.7);
  box-shadow: none;
}
/* Slightly stronger hover for critical actions */
.btn.danger:hover {
  filter: brightness(0.9);
}
.btn.success:hover {
  filter: brightness(0.93);
}
.btn.warning:hover {
  filter: brightness(0.95);
}
.btn.success {
  background: #1f9d55;
  border-color: #1f9d55;
  color: #fff;
}
.btn.warning {
  background: #f6c343;
  border-color: #f6c343;
  color: #1a1a1a;
}
.btn.danger {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
}

.btn.bremer {
  background: #0b4ea2;
  border-color: #0b4ea2;
  color: #fff;
}

.btn .btnIcon {
  display: inline-block;
  margin-right: 8px;
  font-weight: 800;
}

/* Users table action buttons */
.btnRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btnRow.compact {
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
}

/* Übersicht header */
.pageHeaderBack {
  margin-top: 10px;
}

/* Projekt-Info button aligned right */
.metaBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.metaBarLeft,
.metaBarRight {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Detail-Ansicht Prototypen (Fullscreen / Drawer) --- */
/* Ansicht-Umschalter (Übersicht): Kompaktansicht (default) / Detailansicht (optional) */
.viewModeToggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  vertical-align: middle;
  flex-wrap: wrap;
}
.viewModeToggle .divider {
  width: 1px;
  height: 16px;
  background: rgba(15, 23, 42, 0.18);
  display: inline-block;
  margin: 0 4px;
}

.overviewFilter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  vertical-align: middle;
  flex-wrap: wrap;
}
.overviewFilter .cell-select {
  height: 32px;
}
.btn.tiny {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
}
.btn.tiny.active {
  box-shadow: 0 0 0 2px rgba(0, 90, 156, 0.25) inset;
}

.detailOverlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 18, 30, 0.55);
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.detailCard {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  color: #0f1f2f;
}
.detailPanel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.detailPanel.fullscreen {
  width: min(1280px, 96vw);
  height: 90vh;
}
.detailPanel.drawer {
  height: 92vh;
  width: min(980px, 82vw);
  position: fixed;
  right: 18px;
  top: 18px;
  bottom: 18px;
}
.detailHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #e7eef6;
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}
.detailTitle {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detailKicker {
  font-size: 12px;
  color: #6d7a88;
}
.detailH1 {
  font-size: 18px;
  font-weight: 800;
  color: #0f1f2f;
}
.detailBody {
  padding: 12px 14px;
  height: calc(100% - 64px);
  overflow: auto;
}
.detailSubWrap {
  border: 1px solid #e7eef6;
  border-radius: 12px;
}
.btn:hover {
  background: rgba(17, 24, 39, 0.05);
}
.btn-primary {
  border-color: rgba(0, 80, 184, 0.45);
  background: rgba(0, 80, 184, 0.12);
}
.btn-primary:hover {
  background: rgba(0, 80, 184, 0.16);
}
.btn-danger {
  border-color: rgba(200, 30, 30, 0.35);
  background: rgba(200, 30, 30, 0.1);
}
.btn-ghost {
  background: transparent;
}

.badge {
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.03);
  color: var(--text);
}
.badge.muted {
  color: var(--muted);
}

/* Workflow badges + action layout */
.wfCell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wfBadges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.flowSep {
  color: var(--muted);
  font-weight: 900;
}
.badge.flow {
  font-weight: 900;
  letter-spacing: 0.02em;
}
.badge.flow.nu {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.22);
}
.badge.flow.bremer {
  background: rgba(0, 80, 184, 0.08);
  border-color: rgba(0, 80, 184, 0.22);
}
.badge.flow.bh {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.28);
}
.badge.flow.active {
  outline: 2px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6) inset;
}
.badge.flow.done {
  opacity: 0.75;
}
.wfBtns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge.wf {
  font-weight: 800;
}
.badge.wf.DRAFT_BREMER {
  background: rgba(0, 80, 184, 0.1);
  border-color: rgba(0, 80, 184, 0.25);
}
.badge.wf.DRAFT_NU {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}
.badge.wf.TO_BREMER_REVIEW {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.3);
}
.badge.wf.TO_BH {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.3);
}
.badge.wf.BH_APPROVED {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}
.badge.wf.BH_REJECTED {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
}
.badge.wf.TO_NU_ORDER {
  background: rgba(0, 80, 184, 0.08);
  border-color: rgba(0, 80, 184, 0.22);
}
.badge.wf.NU_CONFIRMED {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  table-layout: fixed;
}

/* Generic wrapper: allow horizontal scroll when tables become wider than the viewport */
.tableWrap {
  /* User preference: no internal horizontal scrollbars */
  overflow-x: visible;
  -webkit-overflow-scrolling: auto;
}

/* Use for management tables where content must define the column width (Firma/Name/E-Mail etc.). */
.table-auto {
  table-layout: auto;
}
/* Ensure enough base width so headers don't collapse; horizontal scroll handles smaller screens */
.table.table-auto {
  min-width: 0;
  width: 100%;
}

/* Avoid "one-letter-per-line" headers when space gets tight */
.table-auto th {
  white-space: nowrap;
}
.table-auto td {
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Better readability for long names/emails in management tables */
.table-auto th {
  white-space: nowrap;
}
.table-auto td {
  word-break: normal;
  overflow-wrap: anywhere;
}
.table th,
.table td {
  padding: 10px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 13px;
}

/* Bauteile table: keep columns strict (Nr | Name | Aktion) */
.bauteile-table th.col-nr {
  width: 140px;
}
.bauteile-table th.col-action {
  width: 90px;
  text-align: center;
}
.bauteile-table td.col-action {
  text-align: center;
}

/* In tables, editable cells should behave like Excel cells (full width, no "pill" look). */
.table td.editable {
  display: table-cell;
  padding: 10px 10px;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
}
.table td.editable:hover {
  border-color: rgba(0, 80, 184, 0.25);
  background: rgba(0, 80, 184, 0.04);
}
.table td.editable.is-editing {
  border-color: rgba(0, 80, 184, 0.55);
  background: rgba(0, 80, 184, 0.06);
}
.table td.editable .inline-input {
  min-width: 0;
  width: 100%;
  border-radius: 10px;
}
.table th {
  background: rgba(0, 80, 184, 0.06);
  color: var(--muted);
  font-weight: 900;
}
.table tr:last-child td {
  border-bottom: 0;
}

.table-compact th,
.table-compact td {
  padding-top: 9px;
  padding-bottom: 9px;
}

.gewerk-block {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.gewerk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

/* Bauteile: collapse/expand (twisty) */
.twisty {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  cursor: pointer;
  flex: 0 0 auto;
}
.twisty:hover {
  filter: brightness(0.98);
}
.twisty__icon {
  font-weight: 700;
  line-height: 1;
}
.gewerk-block.is-collapsed .gewerk-body {
  display: none;
}

.gewerk-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 900;
}

.gewerk-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.editable {
  cursor: text;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px dashed transparent;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}
.editable:hover {
  border-color: rgba(0, 80, 184, 0.35);
  background: rgba(0, 80, 184, 0.05);
}
.editable.is-editing {
  border-color: rgba(0, 80, 184, 0.6);
  background: rgba(0, 80, 184, 0.07);
}

.inline-input {
  width: 100%;
  min-width: 120px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 10px;
  padding: 7px 8px;
  font-size: 13px;
  outline: none;
}

.notice {
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 118, 110, 0.06);
}
.notice.warn {
  background: rgba(217, 119, 6, 0.08);
}
.notice.danger {
  background: rgba(200, 30, 30, 0.08);
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.footer {
  color: rgba(75, 85, 99, 0.85);
  font-size: 12px;
  text-align: center;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.45);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 50;
}
.modal {
  width: min(720px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.modal-title {
  font-weight: 900;
}
.modal-body {
  padding: 16px;
}
.modal-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- Paket B: Übersicht & Bemusterungsblatt (A4) --- */
.group-row {
  background: #f3f5f7;
  font-weight: 800;
}
.group-row td {
  padding-top: 10px;
  padding-bottom: 10px;
}
.link {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.kv .box {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: white;
}
.kv .box h3 {
  margin: 0 0 6px 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.kv .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sheet-page {
  max-width: 900px;
}
.a4 {
  width: 210mm;
  min-height: 297mm;
  padding: 14mm 14mm 16mm 14mm;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* PDF-like Bemusterungsblatt layout */

/* match the PDF proportions more closely (UI only) */
.a4.pdfForm {
  border-radius: 6px;
  box-shadow: none;
}

.pdfTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.pdfProject {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.pdfTopMeta {
  margin-top: 10px;
  font-size: 12px;
}
.pdfMetaRow {
  display: grid;
  grid-template-columns: 150px 40px 1fr;
  gap: 10px;
  line-height: 1.35;
}
.pdfMetaRow .k {
  color: #111;
}
.pdfMetaRow .v {
  font-weight: 700;
}
.pdfLogo {
  height: 34px;
  object-fit: contain;
}
.pdfHr {
  height: 1px;
  background: rgba(0, 0, 0, 0.7);
  margin: 8px 0 10px 0;
}

.pdfSectionTitle {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px 0;
}
.pdfPhotoBox {
  width: 100%;
  height: 108mm;
  border: 1px solid rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  user-select: none;
}
.pdfPhotoBox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pdfPhotoBox.isOver {
  background: rgba(0, 0, 0, 0.03);
  border-style: solid;
}
.pdfPhotoEmpty {
  font-size: 12px;
  color: #333;
}

.pdfCostsRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}
.pdfCostOpt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.pdfCost {
  width: 14px;
  height: 14px;
  accent-color: #111;
}

.pdfCostNoteRow {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 12px;
}
.pdfCostNote {
  font-size: 12px;
}
.pdfCostLine {
  flex: 1;
  max-width: 140px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.7);
  height: 18px;
}

.pdfTechBlock {
  margin-top: 18px;
}
.pdfTechGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pdfKV {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  align-items: end;
  margin: 6px 0;
}
.pdfKV .k {
  font-weight: 700;
  font-size: 12px;
}
.pdfKV .v {
  border-bottom: 1px solid rgba(0, 0, 0, 0);
}
.pdfKV input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  background: transparent;
  padding: 2px 2px;
  font-size: 12px;
}
.pdfKV input:disabled {
  color: #111;
}

.pdfFreigabe {
  margin-top: 22px;
}
.pdfFreigabeRow {
  display: grid;
  grid-template-columns: 180px 1fr 320px;
  gap: 18px;
  align-items: start;
}
.pdfFreigabeLabel {
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
}
.pdfFreigabeAddr .pdfName {
  font-size: 12px;
  font-weight: 700;
}
.pdfFreigabeAddr .pdfAddr {
  font-size: 12px;
  line-height: 1.25;
  white-space: pre-line;
}
.pdfSigLine {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: end;
  position: relative;
}
.pdfSigLineInner {
  border-bottom: 1px solid rgba(0, 0, 0, 0.8);
  height: 18px;
}
.pdfSigLineText {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.pdfSigAutoName {
  position: absolute;
  left: 6px;
  top: 2px;
  font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
  font-size: 16px;
  opacity: 0.85;
  pointer-events: none;
  white-space: nowrap;
}

.pdfSigAutoDate {
  position: absolute;
  right: 6px;
  top: 2px;
  font-size: 12px;
  opacity: 0.8;
  pointer-events: none;
  white-space: nowrap;
}
.pdfSigActions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

/* Drag & Drop (Upload) – PDF-like, subtle */
.pdfDrop {
  border: 1px dashed rgba(0, 0, 0, 0.45);
  border-radius: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
}
.pdfDrop b {
  font-weight: 800;
}
.pdfDrop.small {
  padding: 8px;
}
.pdfDrop.isOver {
  background: rgba(0, 0, 0, 0.05);
  border-style: solid;
}
.pdfDrop .hint {
  font-size: 11px;
  color: #444;
  margin-top: 4px;
}
.pdfHiddenInput {
  display: none !important;
}

/* Keep the existing "card sections" for other pages */
.a4 .sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.a4 .sheet-title {
  font-size: 18px;
  font-weight: 900;
  margin: 0;
}
.a4 .sheet-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.a4 .section {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
}
.a4 .section h4 {
  margin: 0 0 8px 0;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.file-pill {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
}
@media print {
  /* Bemusterungsblatt: A4 (default orientation is portrait) */
  @page {
    size: A4;
    margin: 10mm;
  }
  body {
    background: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  table,
  th,
  td {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Esconder UI de navegação/ações na impressão */
  .topbar,
  .nav,
  .footer,
  #btnLogout,
  .pageHeaderBack,
  .pageHeaderActions,
  .metaBar,
  .btn,
  button,
  a.btn,
  .noPrint {
    display: none !important;
  }

  main.container {
    padding: 0 !important;
  }
  #app.card {
    box-shadow: none !important;
    border: none !important;
  }

  /* Hide app chrome, keep the actual content */
  header,
  nav,
  .topbar,
  .actions,
  .badge,
  #footerInfo {
    display: none !important;
  }
  /* On the Bemusterungsblatt page, print only the A4 document */
  .sheet-page > .section {
    display: none !important;
  }

  /* Remove max-width constraints for print */
  .container {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .card {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  /* A4 sheet page (Bemusterungsblatt) */
  .a4 {
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    width: auto;
    min-height: auto;
    padding: 0;
  }

  /* Bauteile page: print-ready blocks */
  .gewerk-block {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .gewerk-head {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 6px 8px;
    background: #fff;
  }
  .gewerk-actions {
    display: none !important;
  } /* no buttons in print */
  .twisty {
    display: none !important;
  }

  table {
    page-break-inside: auto;
  }
  tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  thead {
    display: table-header-group;
  }

  /* Übersicht: große Tabellen sauber umbrechen */
  .gridTable {
    page-break-inside: auto;
  }
  .gridTable .gewerkRow {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .subTableWrap {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .subTable {
    page-break-inside: auto;
  }
  .subTable thead {
    display: table-header-group;
  }

  /* Melhor legibilidade e uso total da página */
  .tableWrap {
    overflow: visible !important;
  }
  .gridTable {
    width: 100% !important;
  }
  .uebersicht-card {
    padding: 0 !important;
  }

  /* Ensure compact tables fit landscape */
  .table th,
  .table td {
    font-size: 11px !important;
    padding: 6px 6px !important;
  }
}

/* Paket B1.3 – Excel-like Übersicht */
.gridTable,
.gridTable th,
.gridTable td {
  border-collapse: separate;
}
.gridTable {
  width: 100%;
  border-spacing: 0;
}
.gridTable th,
.gridTable td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.gridTable th + th,
.gridTable td + td {
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}
.gridTable thead th {
  background: rgba(2, 132, 199, 0.08);
  font-weight: 700;
}
.gridTable .gewerkRow td {
  background: rgba(15, 23, 42, 0.02);
}
.gridTable .toggle {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  cursor: pointer;
  margin-right: 10px;
}
.gridTable .gewerkName {
  font-weight: 700;
}

.inlineInput,
.cell-input,
.cell-select {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 10px;
  border-radius: 10px;
}
.inlineInput:focus,
.cell-input:focus,
.cell-select:focus {
  outline: none;
  border-color: rgba(2, 132, 199, 0.35);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}
.subHeader td {
  padding: 0;
  background: transparent;
  border-left: none !important;
}
.subTableWrap {
  padding: 12px 14px 18px;
}
.subTable {
  table-layout: auto;
  min-width: 1480px;
}

/* Kompaktansicht: Untertabelle soll in der Karte bleiben (kein Layout-Sprung) */
.uebersicht-wrapper.view-compact .subTableWrap {
  overflow-x: auto;
}
.uebersicht-wrapper.view-compact .subTable {
  min-width: 0;
  table-layout: fixed;
}
.uebersicht-wrapper.view-compact .subTable th,
.uebersicht-wrapper.view-compact .subTable td {
  padding: 8px 10px;
  font-size: 12px;
}
.uebersicht-wrapper.view-compact .gridTable .toggle {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}
.uebersicht-wrapper.view-compact .cell-input,
.uebersicht-wrapper.view-compact .cell-select {
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 12px;
}
.uebersicht-wrapper.view-compact .btn.xs {
  padding: 6px 8px;
  font-size: 12px;
}
.uebersicht-wrapper.view-compact .wfCell {
  gap: 8px;
}

/* Detailansicht: Inline-Untertabelle wird kaum genutzt, bleibt aber sauber */
.uebersicht-wrapper.view-detail .subTableWrap {
  overflow-x: auto;
}
.subTable th,
.subTable td {
  padding: 12px 16px;
}
.cMuster {
  min-width: 240px;
}
.cEinbau {
  min-width: 140px;
}
.cErl {
  min-width: 170px;
}
.cBauteil {
  min-width: 150px;
}
.cBnr {
  min-width: 140px;
}
.cMuster select {
  min-width: 230px;
}

/* Mehr Luft zwischen den Spalten (Übersicht / Untertabelle) */
.cBnr {
  min-width: 160px;
}
.cBauteil {
  min-width: 240px;
}
.cEinbau {
  min-width: 180px;
}
.cErl {
  min-width: 220px;
}
.cDates {
  min-width: 120px;
}
.cAct {
  min-width: 220px;
}

/* Kommentare sollen in der Übersicht erscheinen, nicht im Bemusterungsblatt */
.sheetCommentsBlock {
  display: none;
}
.cEinbau input {
  min-width: 140px;
}
.cErl input {
  min-width: 160px;
}
.cAct {
  min-width: 260px;
}
.cCom {
  width: 90px;
  text-align: center;
}

.subTable {
  width: 100%;
  border-spacing: 0;
}
.subTable th,
.subTable td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.subTable th + th,
.subTable td + td {
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}
.subTable thead th {
  background: rgba(245, 158, 11, 0.14);
  font-weight: 700;
}
.subTable .empty {
  padding: 14px;
  color: rgba(15, 23, 42, 0.55);
}

.commentRow td {
  background: rgba(15, 23, 42, 0.02);
}
.commentCell {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.78);
  padding: 10px 12px;
}
.commentCell b {
  color: rgba(15, 23, 42, 0.9);
}
.docLink {
  display: inline-block;
  margin-left: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(2, 132, 199, 0.35);
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.08);
  color: #0369a1;
  text-decoration: none;
}
.docLink:hover {
  background: rgba(2, 132, 199, 0.14);
}

.btn.xs {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 10px;
}
.btn.xs.danger {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
}

/* utility */
.hidden {
  display: none !important;
}
.btnRow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.modalFooterRow {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
}

/* Users table alignment */
.usersTable th,
.usersTable td {
  text-align: center;
  vertical-align: middle;
}
.usersTable td:first-child,
.usersTable th:first-child {
  text-align: left;
}
.usersTable .btnRow {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.actions {
  margin-bottom: 12px;
}

/* Übersicht column sizing */
#overviewTable th.colNr,
#overviewTable td.colNr {
  width: 44px;
}
#overviewTable th.colBas,
#overviewTable td.colBas {
  width: 84px;
}
#overviewTable th.colAction,
#overviewTable td.colAction {
  width: 120px;
  text-align: right;
}
#overviewTable .colAction .btn {
  min-width: 92px;
}

/* Back-to-projects button spacing */
.pageHeaderBack {
  margin-top: 10px;
  margin-bottom: 16px;
}
.pageHeaderBack .btn {
  padding: 10px 16px;
}

/* Ampel (Workflow) column in Übersicht subtable */
.cAmpel {
  width: 22px;
  text-align: center;
}
.ampelDot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.ampel-red {
  background: #ff0000;
}
.ampel-yellow {
  background: #f6c343;
}
.ampel-green {
  background: #1f9d55;
}

/* Benutzer Hub */
.hubGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.hubCard {
  display: block;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    border-color 0.08s ease;
}
.hubCard:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-color: #c7d2fe;
}
.hubTitle {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}
.hubDesc {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.35;
}

/* Berechtigungsmatrix */
.matrixRow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.chk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}
.chk input {
  transform: translateY(1px);
}

@media (max-width: 1000px) {
  .hubGrid {
    grid-template-columns: 1fr;
  }
}

/* === Paket B1_7_1: Übersicht Full-Width + Role UI Locks === */
.uebersicht-wrapper {
  /* Centered, but almost full-width to use the right side of the screen */
  max-width: 1600px;
  width: min(1600px, 98vw);
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}
.uebersicht-card {
  width: 100%;
  margin-right: 0;
  padding-right: 0;
}
.uebersicht-wrapper .tableWrap {
  width: 100%;
}
.uebersicht-wrapper #overviewTable {
  width: 100%;
}

/* Lock visual: BAUHERR / NU sollen keine internen Admin-Elemente sehen */
body.role-bauh .metaBarRight,
body.role-nu .metaBarRight {
  display: none;
} /* Projekt-Info Button nur BREMER/ADM */

body.role-bauh .note,
body.role-nu .note {
  display: none;
} /* interner Hinweis (Excel/Filter) */

/* Safeguard */
body.role-bauh .colNu,
body.role-bauh .colAction,
body.role-nu .colNu,
body.role-nu .colAction {
  display: none !important;
}

/* Participants inline edit */
.participants__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 8px;
}
.participants__title {
  font-weight: 800;
  letter-spacing: 0.2px;
}
.gewerkPick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.gewerkPick .chk {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f5f7fb;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}
.modalPick {
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.tidy input[type="text"],
.tidy input,
.tidy select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* less "boxy" look in participant tables */
  padding: 6px 6px;
  border-radius: 0;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.tidy input:focus,
.tidy select:focus {
  outline: none;
  border-color: transparent;
  border-bottom-color: rgba(0, 80, 184, 0.7);
  box-shadow: none;
}
.tidy td {
  vertical-align: middle;
}

/* Make participant tables use full width (avoid empty space next to "+ Teilnehmer") */
.t.tidy {
  width: 100%;
  table-layout: fixed;
}
.t.tidy th,
.t.tidy td {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* NU BAS/Gewerk selectors: keep them compact */
.tidy .cellInput {
  min-width: 0;
}
.tidy td {
  vertical-align: middle;
}

/* Kommentar columns in Übersicht */
.subTable th.cKom,
.subTable td.cKom {
  min-width: 160px;
}
.subTable td.cKom .cell-input {
  width: 100%;
}

/* =============================
   Login (Design wie Mock)
   ============================= */
.loginScreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  /* Corporate background: 3 building visuals + dark blue gradient overlay */
  background-image: linear-gradient(
    135deg,
    rgba(4, 14, 30, 0.92) 0%,
    rgba(4, 14, 30, 0.72) 46%,
    rgba(4, 14, 30, 0.92) 100%
  );
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  /* Slight overlap for a "collage" look */
  background-size:
    cover,
    42% 100%,
    42% 100%,
    42% 100%;
  background-position:
    center,
    left center,
    center center,
    right center;
}

.loginShell {
  width: min(560px, 92vw);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  padding: 28px;
  position: relative;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.loginShell .loginLogo {
  display: block;
  width: 180px;
  height: auto;
  margin: 0 0 18px 0;
}

.loginPanel {
  border-radius: 14px;
  padding: 22px;
  background: rgba(8, 18, 30, 0.65);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.loginTitle {
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0.2px;
  color: #fff;
  margin: 0 0 18px 0;
  font-weight: 900;
}

.loginForm .loginInput {
  width: 100%;
  padding: 14px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.96);
  font-size: 16px;
}

.loginForm .loginInput:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.loginRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

.loginCheck {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  user-select: none;
}

.loginCheck input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #d85c00;
}

.loginLink {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.loginLink:hover {
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

.loginBtn {
  margin-top: 16px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 0;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  background: #d85c00; /* BREMER-ähnliches Orange */
  color: #fff;
}
.loginBtn:hover {
  filter: brightness(1.05);
}

.loginError {
  margin-top: 10px;
  color: #ffd0d0;
  font-size: 14px;
}

.loginHint {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

@media (max-width: 520px) {
  .loginShell {
    padding: 20px;
  }
  .loginTitle {
    font-size: 44px;
  }
}

/* ===== Login Page (D2) ===== */
.login-page {
  background: #f7f9fc;
  overflow: hidden;
  min-height: 100vh;
}

.login-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(247, 249, 252, 1) 55%,
    rgba(247, 249, 252, 1) 100%
  );
  opacity: 0.18;
  pointer-events: none;
  transform: scale(1.02);
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.login-card {
  width: 420px;
  max-width: 92vw;
  background: #fff;
  border-radius: 16px;
  padding: 30px 30px 22px;
  position: relative;
  border: 1px solid rgba(11, 91, 211, 0.28);
  box-shadow:
    0 0 0 6px rgba(11, 91, 211, 0.06),
    0 18px 45px rgba(0, 0, 0, 0.14),
    0 0 28px rgba(11, 91, 211, 0.22);
}

.login-label {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 12px;
  font-weight: 700;
  color: #0b5bd3;
}

.login-logo {
  display: block;
  width: 190px;
  height: auto;
  margin: 8px auto 18px auto;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-form input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 9px;
  border: 1px solid #d6dbe3;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.login-form input:focus {
  border-color: rgba(11, 91, 211, 0.55);
  box-shadow: 0 0 0 3px rgba(11, 91, 211, 0.1);
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #2b3440;
}

.forgot {
  font-size: 12px;
  color: #0b5bd3;
  text-decoration: none;
}

.forgot:hover {
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 9px;
  background: #0b5bd3;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.login-btn:hover {
  filter: brightness(0.98);
}

.login-hint {
  margin: 12px 0 0 0;
  font-size: 11px;
  color: #6a7482;
  text-align: center;
}

.loginError {
  margin-top: 2px;
  min-height: 18px;
  font-size: 12px;
  color: #b42318;
  text-align: center;
}

/* screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Print Sheets Dialog Rows */
.psRow {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 0;
}
.psRow span {
  flex: 0 1 auto;
  line-height: 1.25;
}

.psRow input[type="radio"],
.psRadio {
  margin: 0;
  flex: 0 0 auto;
}

/* Modal: Bemusterungsblätter drucken (compact + legible) */
.detailCard.printSheetsModal {
  width: min(480px, 92vw);
}
.detailCard.printSheetsModal .detailBody {
  padding: 16px;
}
.detailCard.printSheetsModal .psOptions {
  display: grid;
  gap: 10px;
}
.detailCard.printSheetsModal .psRow {
  font-size: 16px;
}
.detailCard.printSheetsModal input[type="radio"] {
  width: 18px;
  height: 18px;
}
.detailCard.printSheetsModal .psActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* Project access modal (dual list) */
.dualPick {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.dualPickTitle {
  font-weight: 700;
  margin-bottom: 6px;
}
.dualPickSelect {
  width: 100%;
  min-height: 260px;
}
.dualPickActions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.dualPickActions .btn {
  min-width: 44px;
}

/* --- Benutzer Schnellnavigation (BREMER / NU / BAUHERR) --- */
.usersTabs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.usersTab {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.04);
}
.usersTab.active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

/* Übersicht Filter – optisch wie Buttons */
.overviewFilter select.cell-select {
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}
.overviewFilter select.cell-select:focus {
  outline: 2px solid rgba(0, 0, 0, 0.12);
  outline-offset: 2px;
}
