@font-face {
  font-family: Asap;
  src: url('/Asap.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
:root {
  color-scheme: light;
  --bg: #f0f4f6;
  --panel: #fff;
  --text: #20323c;
  --muted: #637681;
  --line: #dce5e8;
  --accent: #087d79;
  --accent-bg: #e4f4ef;
  --red: #b74435;
  --amber: #a26007;
  --shadow: 0 5px 20px #233a4610;
}
html[data-theme=dark] {
  color-scheme: dark;
  --bg: #151e25;
  --panel: #202d36;
  --text: #e7eff2;
  --muted: #a4b7c1;
  --line: #364650;
  --accent: #62d1bc;
  --accent-bg: #203f3b;
  --red: #ffab9e;
  --amber: #f5be6d;
  --shadow: 0 5px 20px #0002;
}
body {
  margin: 0;
  background: var(--bg);
  font:
    14px/1.5 Asap,Calibri,'Segoe UI',system-ui,sans-serif;
  color: var(--text);
}
h1,h2,h3,p {
  margin: 0;
}
h1 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.5px;
}
h1 span {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--accent-bg);
  color: var(--accent);
  padding: 3px 7px;
  border-radius: 5px;
  vertical-align: middle;
  margin-left: 6px;
}
h2 {
  font-size: 26px;
  letter-spacing: -.6px;
}
h3 {
  font-size: 16px;
  margin: 16px 0 8px;
}
button,input,select,textarea {
  font: inherit;
  color: inherit;
}
button {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 9px 13px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}
button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
html[data-theme=dark] button.primary {
  color: #102b25;
}
button.danger {
  color: var(--red);
}
input:not([type=checkbox]),select,textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: var(--panel);
  min-width: 0;
}
input:focus,textarea:focus,select:focus,button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input[type=checkbox] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
textarea {
  resize: vertical;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 21px 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}
.brand-icon {
  font-size: 24px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
}
.brand p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
main {
  padding: 26px 30px;
}
.overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.intro p {
  color: var(--muted);
  margin-top: 5px;
}
.metrics {
  display: flex;
  gap: 32px;
}
.metrics>div {
  display: flex;
  flex-direction: column;
  min-width: 105px;
}
.metrics strong {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 650;
}
.metrics span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.today {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.today-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.today h3 {
  margin: 0;
}
.today-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 2px;
}
.today-item {
  text-align: left;
  display: flex;
  flex-direction: column;
  max-width: 290px;
  min-width: 190px;
  font-weight: 400;
  padding: 9px 11px;
  border-left: 3px solid var(--amber);
}
.today-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}
.today-item span {
  font-size: 11px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 280px;
  width: 380px;
  padding-left: 12px;
}
.search span {
  font-size: 22px;
  color: var(--muted);
}
.search input {
  border: 0;
}
.toolbar select {
  width: 170px;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.board {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  align-items: stretch;
  padding-bottom: 17px;
  min-height: 340px;
}
.column {
  width: 280px;
  min-width: 280px;
  background: color-mix(in srgb,var(--line) 45%,transparent);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-height: 350px;
  border: 1px solid transparent;
}
.column.drag-over {
  border: 2px dashed var(--accent);
  background: var(--accent-bg);
}
.column-head {
  padding: 13px 13px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}
.column-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--phase-color);
}
.count {
  background: var(--panel);
  border-radius: 5px;
  font-size: 11px;
  min-width: 23px;
  text-align: center;
  padding: 1px 5px;
  color: var(--muted);
  margin-left: auto;
}
.cards {
  padding: 0 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 270px;
  flex: 1;
}
.card {
  background: var(--panel);
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow);
  cursor: grab;
  position: relative;
}
.card:active {
  cursor: grabbing;
}
.card.dragging {
  opacity: .35;
}
.card.overdue {
  border-left: 3px solid var(--amber);
}
.card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
}
.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
  background: var(--accent-bg);
}
.number {
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}
.card-title {
  font-size: 15px;
  font-weight: 650;
  margin: 8px 0 5px;
  display: block;
  text-align: left;
  border: 0;
  padding: 0;
  white-space: normal;
  line-height: 1.35;
  background: transparent;
  width: 100%;
}
.card-address {
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
  overflow-wrap: anywhere;
}
.contacts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 7px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.contacts a {
  color: var(--accent);
  text-decoration: none;
}
.tech {
  font-size: 11px;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 8px;
  overflow-wrap: anywhere;
}
.tech b {
  font-weight: 650;
}
.rse-line {
  font-size: 10px;
  margin-top: 8px;
  background: var(--accent-bg);
  border-radius: 4px;
  padding: 4px 6px;
}
.card-bottom {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.age {
  font-size: 10px;
  color: var(--muted);
}
.age.due {
  color: var(--amber);
  font-weight: 650;
}
.phase-select {
  max-width: 128px;
  font-size: 10px;
  padding: 4px 5px;
}
.next-note {
  font-size: 11px;
  margin-top: 6px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 22px 16px 35px;
}
.empty h2 {
  font-size: 23px;
}
.empty p {
  color: var(--muted);
  margin: 10px 0 18px;
}
.empty button {
  margin: 0 4px;
}
.column-empty {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  padding: 22px 10px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
  padding: 12px 0;
}
#notice {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0;
  padding: 11px 30px;
  background: var(--accent-bg);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
#notice.is-error {
  background: #f9e7e2;
  color: #862c1d;
}
dialog {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  width: min(780px,94vw);
  max-height: 92vh;
  box-shadow: 0 20px 100px #0004;
}
dialog::backdrop {
  background: #0e263970;
  backdrop-filter: blur(3px);
}
.dialog-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-head h2 {
  font-size: 23px;
}
.dialog-head button {
  border: 0;
  padding: 7px 11px;
  background: transparent;
}
.dialog-body {
  padding: 18px 24px;
  overflow-y: auto;
  max-height: calc(92vh - 160px);
}
.dialog-body>p {
  margin-bottom: 15px;
}
.dialog-foot {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.spacer {
  flex: 1;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin: 12px 0 16px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
}
label.wide {
  grid-column: 1/-1;
}
.checkline {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 16px 0;
  font-size: 13px;
  gap: 8px;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0;
}
.checks label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 400;
}
.form-section {
  border-top: 1px solid var(--line);
  padding: 12px 0 2px;
  margin: 4px 0 8px;
}
summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 13px;
}
details>p {
  margin-top: 9px;
}
.history-item {
  font-size: 12px;
  border-left: 2px solid var(--line);
  padding: 7px 12px;
  margin-left: 3px;
}
.error,.warning {
  padding: 10px 12px;
  border-radius: 6px;
  margin: 10px 0;
  font-size: 12px;
  white-space: pre-line;
}
.error {
  background: #f9e7e2;
  color: #862c1d;
}
.warning {
  background: #fff3dc;
  color: #714c13;
}
.warning:empty {
  display: none;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
#excel-interval {
  max-width: 130px;
}
.table-wrap {
  max-height: 160px;
  overflow: auto;
  border: 1px solid var(--line);
  margin: 18px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
}
th,td {
  border-bottom: 1px solid var(--line);
  padding: 6px 9px;
  text-align: left;
  white-space: nowrap;
}
th {
  background: var(--bg);
  position: sticky;
  top: 0;
}
pre {
  font:
    11px/1.6 ui-monospace,monospace;
  white-space: pre-wrap;
  max-height: 230px;
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px;
}
#ab-evidence {
  font-size: 11px;
  color: var(--muted);
}
#ab-evidence p {
  margin: 6px 0;
}
#ab-target {
  margin-top: 4px;
}
#ab-scan {
  margin-top: 12px;
}
#restore-file {
  margin: 8px 0;
}
#settings-dialog .dialog-body>label {
  margin: 15px 0;
}
#ab-result {
  margin-top: 20px;
}
[hidden] {
  display: none !important;
}
@media (max-width:1000px) {
  .top {
    align-items: flex-start;
    padding: 18px 20px;
  }
  .actions {
    justify-content: flex-end;
  }
  .overview {
    align-items: flex-start;
  }
  .metrics {
    gap: 16px;
  }
  .metrics>div {
    min-width: 85px;
  }
  .metrics span {
    font-size: 10px;
  }
  main {
    padding: 22px 20px;
  }
  .intro h2 {
    font-size: 23px;
  }
}
@media (max-width:700px) {
  .top {
    flex-direction: column;
    gap: 14px;
  }
  .actions {
    justify-content: flex-start;
    gap: 6px;
  }
  .actions button {
    font-size: 12px;
    padding: 8px 10px;
  }
  .overview {
    flex-direction: column;
    gap: 18px;
  }
  .metrics {
    width: 100%;
    justify-content: space-between;
  }
  .today-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .search {
    width: 100%;
    min-width: 0;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar select {
    width: 150px;
  }
  .column {
    min-width: 270px;
    width: 270px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .dialog-body {
    padding: 16px;
  }
  .dialog-head {
    padding: 16px;
  }
  .dialog-foot {
    padding: 12px;
    flex-wrap: wrap;
  }
  .dialog-foot button {
    font-size: 12px;
  }
  main {
    padding: 20px 14px;
  }
  .brand p {
    font-size: 11px;
  }
  footer {
    flex-direction: column;
    gap: 3px;
  }
  .dialog-head h2 {
    font-size: 21px;
  }
}
.ab-badge {
  font-size: 9px;
  white-space: nowrap;
  background: #fff0d4;
  color: #875614;
  padding: 2px 4px;
  border-radius: 3px;
}
.ab-badge.verified {
  background: var(--accent-bg);
  color: var(--accent);
}
.card-top .number {
  margin-left: auto;
  max-width: 100px;
}
.card-ab {
  font-size: 10px;
  padding: 4px 7px;
  margin-top: 8px;
  color: var(--amber);
}
.ab-state {
  font-size: 12px;
  margin: 15px 0 8px;
  padding: 9px 11px;
  border-radius: 6px;
  background: #fff0d4;
  color: #875614;
}
.ab-state.verified {
  background: var(--accent-bg);
  color: var(--accent);
}
.metering-line {
  font-size: 10px;
  padding: 5px 7px;
  background: var(--bg);
  border-radius: 4px;
  margin-top: 8px;
}
.attachment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.attachment-row>div {
  min-width: 0;
}
.attachment-row a {
  font-size: 12px;
  overflow-wrap: anywhere;
  color: var(--accent);
}
.attachment-row button {
  font-size: 11px;
  padding: 5px 8px;
}
.attachment-row p {
  margin: 3px 0 0;
}
#attachments-controls {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin: 14px 0;
}
#attachments-controls label {
  flex: 1;
}
#attachments-controls button {
  font-size: 12px;
}
#mail-controls>label {
  margin-top: 12px;
}
.mail-actions {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
#mail-note {
  margin-bottom: 10px;
}
@media (max-width:700px) {
  #attachments-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .attachment-row {
    align-items: flex-start;
  }
}
.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  max-width: 165px;
}
.card-top {
  flex-wrap: wrap;
}
.product-section {
  grid-column: 1/-1;
}
.field-label {
  font-size: 12px;
  font-weight: 600;
}
.meter-row {
  background: var(--bg);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 12px 0;
}
.meter-row .form-grid {
  margin: 0;
  gap: 9px;
}
.meter-row-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.meter-row-actions .checkline {
  font-size: 11px;
  margin: 10px 0 0;
}
.meter-row-actions button {
  font-size: 10px;
  padding: 5px 7px;
}
.meter-warning {
  font-size: 10px;
  background: #fff0d4;
  color: #875614;
  border-radius: 4px;
  padding: 5px 7px;
  margin-top: 8px;
}
#ab-documents {
  margin: 8px 0 12px;
}
#ab-documents p {
  overflow-wrap: anywhere;
  margin-top: 3px;
}
.site-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--muted);
  margin-top: 8px;
}
.card-address {
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
}
.billing-address {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.site-unverified {
  display: inline-block;
  font-size: 9px;
  color: #875614;
  background: #fff0d4;
  padding: 2px 4px;
  border-radius: 3px;
  margin-top: 5px;
}
.document-summary {
  font-size: 9px;
  border-top: 1px solid var(--line);
  padding-top: 7px;
  margin-top: 9px;
  line-height: 1.8;
}
.doc-ok {
  color: var(--accent);
}
.doc-missing {
  color: var(--amber);
}
#attachments-controls {
  flex-wrap: wrap;
}
#project-file-category {
  min-width: 145px;
}
.excel-help {
  font-size: 12px;
  background: var(--accent-bg);
  border-radius: 7px;
  padding: 11px 13px;
  margin: 12px 0;
}
.excel-help p+p {
  margin-top: 7px;
}
.sharepoint-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.sharepoint-actions a {
  font-size: 12px;
  color: var(--accent);
}
#excel-resolve-result {
  white-space: pre-line;
  margin: 10px 0;
}
#excel-candidates-label {
  margin: 12px 0;
}
.excel-source-label {
  background: var(--accent-bg);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
  margin-top: 14px;
}
#excel-sharepoint summary {
  font-size: 14px;
}
#excel-sharepoint>label {
  margin: 12px 0;
}
/* Ein Dialog-Scrollbereich: Kopf und Aktionen bleiben sichtbar. */
dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 92vh;
}
dialog>form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(92vh - 2px);
}
.dialog-head,.dialog-foot {
  flex: none;
}
.dialog-body {
  min-height: 0;
  flex: 1 1 auto;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body:has(dialog[open]) {
  overflow: hidden;
}
/* Kompakte Pipeline, vollständige Akte erst nach Klick. */
.compact-card {
  padding: 10px 11px;
  cursor: pointer;
  border-left: 3px solid var(--phase-color);
  border-radius: 8px;
  min-height: 175px;
}
.compact-card:hover {
  outline: 1px solid color-mix(in srgb,var(--accent) 50%,transparent);
  box-shadow: 0 4px 14px #20323c18;
}
.compact-card.overdue {
  border-left-color: var(--amber);
}
.compact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.compact-top .number {
  font-size: 10px;
  max-width: 170px;
  margin: 0;
}
.compact-card .card-title {
  font-size: 14px;
  line-height: 1.3;
  margin: 5px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 18px;
}
.compact-site {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
.compact-products {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.compact-products .badge {
  font-size: 9px;
  padding: 1px 4px;
}
.compact-tech {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  margin-top: 5px;
}
.compact-warning {
  font-size: 10px;
  line-height: 1.5;
  color: var(--amber);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}
.compact-warning.is-clear {
  color: var(--accent);
}
.compact-card .card-bottom {
  margin-top: 6px;
  padding-top: 6px;
}
.compact-card .phase-select {
  max-width: 137px;
  font-size: 10px;
  padding: 3px 5px;
}
.task-badge {
  font-size: 9px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
}
.task-badge.task-due {
  background: #fff0d4;
  color: #875614;
}
.details-dialog {
  width: min(1150px,96vw);
  height: min(850px,92vh);
}
.details-dialog .dialog-head h2 {
  font-size: 23px;
  max-width: 730px;
  overflow-wrap: anywhere;
}
.details-dialog .dialog-head .actions {
  flex-shrink: 0;
}
.detail-columns {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.detail-pane {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 24px;
}
.detail-info {
  border-right: 1px solid var(--line);
  background: var(--panel);
}
.detail-work {
  background: var(--bg);
}
.detail-section {
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid var(--line);
}
.detail-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.detail-work>.detail-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.detail-site {
  background: var(--accent-bg);
  border-radius: 9px;
  padding: 13px 15px;
}
.detail-site h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
.detail-products {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}
.detail-data {
  display: grid;
  gap: 9px;
  margin: 0;
}
.detail-data>div {
  display: grid;
  grid-template-columns: 155px minmax(0,1fr);
  gap: 10px;
  font-size: 12px;
}
.detail-data dt {
  color: var(--muted);
}
.detail-data dd {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.detail-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  font-size: 12px;
}
.detail-meter {
  font-size: 12px;
  padding: 7px 0;
  white-space: pre-line;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.section-heading h3 {
  margin: 0;
}
.section-heading button {
  font-size: 11px;
  padding: 5px 8px;
}
.detail-file {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.detail-file a {
  font-size: 12px;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.detail-file span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.document-checks {
  font-size: 11px;
  margin-bottom: 10px;
}
#details-documents-edit {
  font-size: 11px;
  margin-top: 12px;
  padding: 6px 9px;
}
.detail-task {
  padding: 11px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 8px;
}
.detail-task.is-due {
  border-left: 3px solid var(--amber);
}
.task-top {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}
.task-top strong {
  font-size: 12px;
  flex: 1;
  overflow-wrap: anywhere;
}
.task-check {
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 17px;
  line-height: 1.2;
  color: var(--accent);
}
.task-edit {
  border: 0;
  font-size: 10px;
  padding: 2px;
  background: transparent;
  color: var(--muted);
}
.detail-task.is-done .task-top strong {
  text-decoration: line-through;
  color: var(--muted);
}
.task-description {
  font-size: 11px;
  white-space: pre-line;
  margin: 7px 0;
  overflow-wrap: anywhere;
}
.detail-task p.small {
  font-size: 10px;
  margin-top: 5px;
}
.inline-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  margin: 12px 0;
}
.inline-form summary {
  font-size: 12px;
  color: var(--accent);
}
.inline-form form>label {
  margin-top: 10px;
}
.inline-form .form-grid {
  gap: 10px;
  margin: 10px 0;
}
.inline-form .form-grid label {
  font-size: 11px;
}
.inline-form button {
  font-size: 11px;
}
.inline-form form>button {
  margin-top: 12px;
}
.inline-form p.small {
  font-size: 10px;
  margin: 9px 0;
}
.timeline {
  margin-top: 17px;
}
.timeline-entry {
  position: relative;
  margin-left: 5px;
  border-left: 2px solid var(--line);
  padding: 0 0 18px 17px;
  overflow-wrap: anywhere;
}
.timeline-entry::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  left: -5px;
  top: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
}
.timeline-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 4px;
}
.timeline-entry>strong {
  font-size: 12px;
}
.timeline-entry>p {
  white-space: pre-line;
  font-size: 12px;
  margin: 5px 0;
}
.timeline-actor {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.details-error {
  flex: none;
  margin: 0;
  border-radius: 0;
  padding: 8px 24px;
}
#settings-actor {
  max-width: 360px;
}
@media (max-width:800px) {
  .details-dialog {
    height: 92vh;
  }
  .detail-columns {
    display: block;
    overflow-y: auto;
  }
  .detail-pane {
    overflow: visible;
    padding: 17px;
  }
  .detail-info {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .details-dialog .dialog-head {
    align-items: flex-start;
    gap: 12px;
  }
  .details-dialog .dialog-head h2 {
    font-size: 19px;
  }
  .detail-data>div {
    grid-template-columns: 130px minmax(0,1fr);
  }
  .details-dialog .dialog-head .actions {
    gap: 3px;
  }
  .details-dialog .dialog-head button {
    font-size: 11px;
    padding: 6px;
  }
  .timeline-meta {
    flex-wrap: wrap;
    gap: 4px;
  }
}
body.auth-locked main,body.auth-locked .top .actions,body.auth-locked #notice {
  display: none;
}
.auth-dialog {
  width: min(470px,94vw);
}
.auth-dialog .dialog-body {
  padding: 22px 26px;
}
.auth-dialog #auth-caption {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 17px;
}
.auth-dialog form>label {
  margin: 13px 0;
}
.auth-dialog form>button {
  width: 100%;
  margin-top: 12px;
}
.auth-dialog .form-grid {
  gap: 12px;
  margin: 10px 0;
}
.user-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 700;
  overflow: hidden;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 5px;
  max-width: 220px;
}
.account-button>span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.avatar-large {
  width: 60px;
  height: 60px;
  font-size: 20px;
}
.profile-identity {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 17px;
}
.profile-identity strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.profile-actions {
  margin: 14px 0;
}
.admin-user {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.admin-user-heading {
  display: flex;
  gap: 9px;
  align-items: center;
}
.admin-user-heading strong {
  font-size: 12px;
}
.admin-user .form-grid {
  margin: 9px 0;
  gap: 8px;
}
.admin-user button {
  font-size: 11px;
}
#password-form>label,#admin-reset-form>label {
  margin-top: 12px;
}
#admin-users-list {
  margin-top: 12px;
}
#account-dialog .dialog-body>details {
  margin-top: 18px;
}
#profile-form>p {
  margin-top: 8px;
}
#admin-reset-area h3 {
  font-size: 14px;
  margin: 0 0 10px;
}
#admin-reset-area .actions {
  margin-top: 12px;
}
#auth-retry {
  margin-top: 12px;
}
/* Klassisch: ASAP and original corporate colours. */
:root {
  --accent: #50ac32;
  --accent-bg: #edf7e9;
  --text: #313435;
  --bg: #e8e7e7;
  --enario-solar: #fab81c;
  --enario-waerme: #523f91;
}
body {
  font-weight: 300;
}
h1,h2,h3,button,strong {
  font-weight: 600;
}
.eyebrow {
  font-weight: 400;
}
button.primary {
  color: #1c2819;
}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline-color: #27601a;
}
.location-suggestions {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}
.location-suggestion {
  text-align: left;
  white-space: normal;
  font-weight: 600;
}
.location-suggestion span {
  display: block;
  font-weight: 300;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.location-map iframe {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  height: 270px;
  margin-top: 12px;
}
#location-dialog {
  max-width: 760px;
}
#location-dialog .dialog-body>p,#location-dialog .dialog-body>a {
  margin: 10px 0;
  display: block;
}
.detail-site .actions {
  margin-top: 12px;
}
.detail-site .detail-data {
  margin-top: 10px;
}
html[data-theme=dark] {
  --accent: #8cdb71;
  --accent-bg: #263d24;
  --text: #eef3ec;
  --bg: #171c17;
}
html[data-theme=dark] button.primary {
  color: #152411;
}
html[data-theme=dark] button:focus-visible,html[data-theme=dark] input:focus-visible,html[data-theme=dark] select:focus-visible,html[data-theme=dark] textarea:focus-visible {
  outline-color: #8cdb71;
}

.tenant-brand-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: #fff;
  border-radius: 6px;
  flex: none;
}
.tenant-brand-strip img {
  display: block;
  width: 90px;
  height: auto;
  max-height: 94px;
  object-fit: contain;
}
.tenant-auth-logo {
  background: #fff;
  padding: 18px;
  display: inline-flex;
  margin-bottom: 16px;
  border-radius: 5px;
}
.tenant-auth-logo img {
  display: block;
  width: 140px;
  height: auto;
}
.top {
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.top .brand {
  min-width: 0;
}
.brand>div:last-child {
  max-width: 240px;
}
.brand p {
  max-width: 220px;
}
.top>.actions {
  margin-left: auto;
}
.top .brand h1 {
  font-size: 20px;
}
.tenant-brand-strip+div {
  align-self: center;
}
@media (max-width:700px) {
  .top {
    padding: 12px 16px;
  }
  .top .brand {
    flex-wrap: wrap;
  }
  .tenant-brand-strip {
    gap: 12px;
    padding: 12px;
  }
  .top>.actions {
    margin-left: 0;
  }
  .brand>div:last-child {
    max-width: none;
  }
  .brand p {
    max-width: none;
  }
}

.equipment-row {
  display: grid;
  grid-template-columns: 150px minmax(160px,1fr) 85px 32px;
  gap: 8px;
  align-items: end;
  margin: 10px 0;
}
.equipment-row label {
  font-size: 11px;
}
.equipment-row button {
  padding: 8px;
}
.equipment-summary>div {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.equipment-summary strong {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.equipment-summary span {
  font-size: 13px;
  overflow-wrap: anywhere;
}
@media (max-width:700px) {
  .equipment-row {
    grid-template-columns: minmax(0,1fr) 70px 30px;
  }
  .equipment-row label:first-child {
    grid-column: 1/-1;
  }
  .equipment-row label:nth-child(2) {
    min-width: 0;
  }
}

.task-upcoming-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2878d0;
  flex: none;
}
.task-overdue-count,.notification-badge {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 50%;
  background: #c93636;
  color: #fff;
  font:
    600 11px Asap,sans-serif;
}
.assignee-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0;
}
.assignee-chip {
  font-size: 11px;
  background: var(--accent-bg);
  padding: 5px 8px;
}
.assignee-legacy {
  font-size: 11px;
  color: var(--muted);
}
.staff-options {
  max-height: 190px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}
.staff-options button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 0;
  white-space: normal;
}
.staff-options button span {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.notification-item {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.notification-item>button {
  width: 100%;
  text-align: left;
  white-space: normal;
  border: 0;
}
.notification-item p {
  font-size: 12px;
  margin: 5px 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.notification-item.is-unread {
  border-left: 3px solid var(--accent);
}
.site-document-preview {
  display: block;
  width: 100%;
  max-height: 270px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 8px 0;
}
#details-site-warnings {
  white-space: pre-line;
}
#notifications-dialog {
  max-width: 650px;
}
.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;
}

.product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--panel);
}
.compact-products {
  gap: 5px;
}
.product-icon[aria-label="PV"] {
  color: #8a6200;
}
.product-icon[aria-label="Wärmepumpe"],.product-icon[aria-label="Klimaanlage"] {
  color: #523f91;
}
.product-icon[aria-label="Spot My Energy"] {
  color: #246a1f;
}
#credential-revealed {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 5px;
  user-select: all;
}

.board-shell {
  position: relative;
  min-width: 0;
}
.board-scroll-edge {
  position: absolute;
  top: 0;
  bottom: 18px;
  z-index: 3;
  width: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  font-size: 30px;
  font-weight: 600;
  color: var(--text);
  opacity: .6;
  transition: opacity .15s;
}
.board-scroll-edge:hover,.board-scroll-edge:focus-visible {
  opacity: 1;
  color: var(--accent);
}
.board-scroll-left {
  left: 0;
  background: linear-gradient(90deg,var(--panel),color-mix(in srgb,var(--panel) 15%,transparent));
}
.board-scroll-right {
  right: 0;
  background: linear-gradient(270deg,var(--panel),color-mix(in srgb,var(--panel) 15%,transparent));
}
.board-scroll-edge[hidden] {
  display: none;
}

/* ZEREZ administration: a verified protected data read is the only green state. */
.zerez-connection-status {
  padding: 12px 14px;
  border: 1px solid var(--line,#6d7470);
  border-radius: 8px;
  line-height: 1.5;
}
.zerez-connection-status[data-state="verified"] {
  color: #236519;
  background: #e8f5e4;
  border-color: #50ac32;
}
.zerez-connection-status[data-state="warning"] {
  color: #735008;
  background: #fff4d8;
  border-color: #b88720;
}
.zerez-connection-status[data-state="error"] {
  color: #9c2929;
  background: #ffeded;
  border-color: #bd5b5b;
}
.zerez-connection-status[data-state="pending"],.zerez-connection-status[data-state="checking"] {
  color: inherit;
  background: rgba(128,128,128,.12);
}
.equipment-inverter-add {
  grid-column: 1/-1;
  margin: 4px 0 14px;
}
.equipment-inverter-add button {
  width: auto;
}

.customer-folders-dialog {
  width: min(860px,96vw);
}
.customer-folder-entry,.customer-folder-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line,#b8bdb9);
}
.customer-folder-entry button,.customer-folder-file button {
  flex-shrink: 0;
}
.customer-folder-entry span,.customer-folder-file span {
  overflow-wrap: anywhere;
  min-width: 0;
}
@media (max-width:600px) {
  .customer-folder-entry,.customer-folder-file {
    align-items: stretch;
    flex-direction: column;
  }
}

.customer-folder-file>div {
  min-width: 0;
}
.customer-folder-file>div>strong,.customer-folder-file>div>span {
  display: block;
  overflow-wrap: anywhere;
}
.customer-folder-entry {
  width: 100%;
  text-align: left;
}

.connection-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.connection-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  cursor: help;
}
.connection-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: #c18a16;
}
.connection-dot.is-green {
  background: #48a62b;
}
.connection-dot.is-red {
  background: #c3433c;
}
.connection-description {
  font-size: 10px;
  opacity: .72;
}
.footer-status {
  flex-wrap: wrap;
  gap: 8px 18px;
}
#watch-status {
  font-size: 10px;
}
@media (max-width:600px) {
  .connection-status {
    gap: 8px;
  }
  .connection-description {
    display: none;
  }
}

#attachments-list {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(100px,1fr));
  gap: 12px;
  align-items: start;
}
#attachments-list .editor-file-tile {
  min-width: 0;
}
#attachments-list .field-file {
  position: relative;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 3px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
#attachments-list img {
  width: 100%;
  height: 110px;
  object-fit: contain;
}
#attachments-list .field-file>span:last-child {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
#attachments-list small {
  display: block;
  font-size: 10px;
  overflow-wrap: anywhere;
}
#attachments-list .field-file.selected {
  outline: 2px solid var(--accent);
  border-radius: 5px;
}
#attachments-list .editor-file-check {
  position: absolute;
  top: 2px;
  left: 2px;
  background: var(--surface,#fff);
  font-size: 20px;
  color: var(--accent);
}
#editor-file-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 8px;
}

.compact-card .compact-schedule {
  margin: 4px 0 7px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}
.schedule-pending {
  color: #b3261e;
}
.schedule-current {
  color: #19763b;
}
[data-theme="dark"] .schedule-pending {
  color: #ff9992;
}
[data-theme="dark"] .schedule-current {
  color: #8bdfaa;
}

.health-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 10px;
  margin: 12px 0;
}
.health-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}
.health-metric>span,.health-metric small {
  font-size: 11px;
  color: var(--muted);
}
.health-metric>strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.health-summary,.health-issue {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  margin: 8px 0;
  font-size: 12px;
}
.health-critical {
  border-color: var(--red);
  color: var(--red);
}
.health-warning {
  border-color: var(--amber);
  color: var(--amber);
}
.health-ok {
  color: var(--accent);
}
.health-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
}

.release-info {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}

/* Shared board masthead: one-line purpose, aligned release line, compact desktop height. */
@media (min-width: 901px) {
  .top {
    box-sizing: border-box;
    min-height: 82px;
    padding: 7px 28px;
    flex-wrap: nowrap;
  }
  .top .brand {
    flex-wrap: nowrap;
  }
  .tenant-brand-strip {
    gap: 12px;
    padding: 8px;
  }
  .tenant-brand-strip img {
    width: 65px;
    height: 52px;
    max-height: 52px;
  }
  .brand > div:last-child {
    max-width: none;
    min-width: 285px;
    height: 68px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .brand p {
    max-width: none;
    white-space: nowrap;
    margin: 0;
  }
  .release-info {
    margin: 0;
    line-height: 1;
  }
}
