@font-face {
  font-family: Board Sans;
  src: url("../fonts/editorial/receipt-body.ttf") format("truetype");
}
@font-face {
  font-family: Board Sans;
  font-weight: 700;
  src: url("../fonts/editorial/receipt-bold.ttf") format("truetype");
}
@font-face {
  font-family: Board Display;
  src: url("../fonts/editorial/receipt-display.ttf") format("truetype");
}

.board-admin { max-width: 1160px; margin: auto; }
.board-admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block-end: 16px; }
.board-admin [data-board-report] { margin-block-start: 16px; }
.board-admin [role="status"]:not(:empty) + [data-board-hint]:not([hidden]) { margin-block-start: 4px; }
.board-admin [data-board-hint] { line-height: 1.45; }
.board-history { position: relative; }
.board-history summary { cursor: pointer; list-style: none; }
.board-history summary::-webkit-details-marker { display: none; }
.board-history-list { position: absolute; z-index: 10; width: min(350px, 85vw); max-height: 300px; overflow: auto; padding: 5px; background: white; color: #192b39; border: 1px solid #dae2e9; border-radius: 10px; box-shadow: 0 5px 16px #001d3d26; }
.board-history-list > div { display: flex; align-items: center; gap: 6px; }
.board-history-open { flex: 1; min-width: 0; overflow-wrap: anywhere; text-align: left; cursor: pointer; border: 0; border-radius: 6px; padding: 7px; background: none; color: inherit; }
.board-history-open strong { display: block; font-size: 1.04em; }
.board-history-open small { display: block; margin-block-start: 2px; }
.board-history-open:hover, .board-history-open[aria-current] { background: #f6efd8; }
.board-history-action { flex: none; width: 32px; min-height: 32px; cursor: pointer; color: #526272; border: 0; background: none; }
.board-history-action:hover { color: #001d3d; background: #f6efd8; }
.board-name-dialog { width: min(420px, calc(100% - 32px)); padding: 20px; border: 1px solid #dae2e9; border-radius: 14px; background: white; color: #192b39; }
.board-name-dialog::backdrop { background: #001d3d60; }
.board-name-dialog h2 { margin: 0 0 12px; }
.board-name-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.board-duty-line { display: flex; align-items: start; justify-content: space-between; gap: 4px; }
.board-topic-add { cursor: pointer; flex: none; border: 0; background: none; color: #415771; padding: 0 .2em; }
.board-topic-add:hover { color: #001d3d; background: #f8f1d9; }
[data-board-command="sync"] { margin-top: 12px; }
[data-board-command="sync"][hidden] { display: none; }
.board-report-editing [data-board-field] { cursor: text; border-radius: 2px; min-width: 1em; }
.board-report-editing [data-board-field]:hover { background: #f8f1d9; }
.board-report-editing [data-board-field]:focus { outline: 2px solid #9a7100; outline-offset: 2px; }
.board-report {
  --navy: #001d3d;
  --line: #dae2e9;
  background: white;
  color: #192b39;
  font: 14px/1.35 Board Sans, Arial, sans-serif;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.board-report-mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  padding-bottom: 12px;
}
.board-report-mast img { display: block; width: 122px; }
.board-report-meta { display: grid; justify-self: end; gap: 3px; text-align: right; font-size: .78em; line-height: 1.1; }
.board-report-mast b { letter-spacing: .11em; color: var(--navy); }
.board-report h1 { color: var(--navy); font: 1.75em/1.05 Board Display, Arial, sans-serif; margin: 0; text-align: center; }
.board-matrix { width: 100%; border-collapse: collapse; table-layout: fixed; }
.board-matrix thead th { color: white; background: var(--navy); text-align: left; padding: 7px 10px; }
.board-matrix thead th:first-child { width: 21%; }
.board-matrix thead th:nth-child(2) { width: 39.5%; }
.board-matrix tbody th, .board-matrix td { border-bottom: 1px solid var(--line); text-align: left; padding: 9px 10px; overflow-wrap: anywhere; }
.board-matrix tbody tr:nth-child(even) { background: #f4f7fa; }
.board-matrix tbody tr.board-project-lead { background: #fff2cc; }
.board-project-lead th, .board-project-lead td { border-top: 2px solid #c08b04; }
.board-matrix tbody tr { height: 99px; break-inside: avoid; }
.board-matrix small { display: block; color: #526272; font-size: .85em; font-weight: 400; }
.board-report-person { display: flex; align-items: center; gap: 7px; }
.board-report-person > span:last-child { min-width: 0; }
.board-report-person strong, .board-role-continuation { display: block; }
.board-report-person img, .board-initials { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid #d6e0e8; object-fit: cover; object-position: 50% 38%; }
.board-initials { background: #e2ebf2; display: grid; place-items: center; }
.board-duty { display: block; color: var(--navy); line-height: 1.2; }
.board-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2px 1.05em;
  margin: 3px 0 0;
  padding: 0;
  list-style: none;
  font-size: .94em;
  line-height: 1.22;
}
.board-topic { display: inline-flex; align-items: baseline; max-width: 100%; gap: .28em; break-inside: avoid; }
.board-topic-text { min-width: 0; overflow-wrap: anywhere; }
.board-topic-grip, .board-topic-dot { flex: none; color: var(--navy); font-size: 1.2em; line-height: .9; font-weight: 700; }
.board-topic-grip, .board-topic-remove { border: 0; background: none; padding: 0; }
.board-topic-grip { cursor: grab; touch-action: none; }
.board-topic-grip:active { cursor: grabbing; }
.board-topic-grip:disabled { cursor: default; opacity: .5; }
.board-topic-remove { flex: none; color: #526272; cursor: pointer; font-size: .95em; line-height: 1; }
.board-topic-remove:hover, .board-topic-remove:focus-visible { color: #a02520; }
.board-report-editing .board-topic-text:empty::before { content: 'Einzelthema hinzufügen'; color: #546475; }
.board-topic.is-dragging { opacity: .4; }
.board-topic[data-drop-before], .board-topic[data-drop-after] { position: relative; }
.board-topic[data-drop-before]::before, .board-topic[data-drop-after]::after {
  content: '';
  position: absolute;
  inset-block: 0;
  width: 2px;
  background: #a36500;
}
.board-topic[data-drop-before]::before { left: -.18em; }
.board-topic[data-drop-after]::after { right: -.18em; }
@media screen and (max-width: 720px) {
  .board-report-mast { grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  .board-report-mast h1 { grid-area: 2 / 1 / auto / -1; font-size: 1.55em; }
  .board-report-meta { grid-area: 1 / 2; }
}
@media screen and (max-width: 640px) {
  .board-report { padding: 14px; font-size: 12px; }
  .board-matrix tbody th, .board-matrix td { padding: 5px 4px; }
  .board-report-person { flex-direction: column; align-items: flex-start; gap: 3px; }
}
@media print {
  @page { size: A4 landscape; margin: 10mm 12mm; }
  .board-print { margin: 0; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .board-report { padding: 0; border: 0; font-size: 10pt; }
  .board-report-mast img { width: 104px; }
  .board-report-mast { padding-bottom: 8px; }
  .board-matrix tbody tr { height: calc(159mm / var(--board-rows)); }
  .board-matrix tbody th, .board-matrix td { padding-top: 2.5px; padding-bottom: 2.5px; }
  .board-report-person img, .board-initials { width: 32px; height: 32px; }
}
