/* v168 Bautagebuch & Mängel */
.bt-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.bt-kopf h2 { font-size: 19px; margin: 0; }
.bt-kopf .mh-hint { margin: 4px 0 0; }
.bt-tab tr[data-id] { cursor: pointer; }
.bt-tab tr[data-id]:hover td { background: var(--meier-blau-soft); }
.bt-form { display: grid; gap: 14px; }
.bt-form .mh-card { padding: 16px; }
.bt-form h3 { font-size: 15px; margin: 0 0 10px; }
.bt-kh { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.bt-kh h3 { margin: 0; }
.bt-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0 10px; }
.bt-2sp { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 12px; }
.bt-zeilen { display: grid; gap: 6px; }
.bt-zeile { display: flex; gap: 6px; align-items: center; }
.bt-zeile .mh-input { padding: 6px 8px; min-width: 0; }
.bt-zeile .bt-name, .bt-zeile .bt-firma { flex: 2 1 160px; }
.bt-zeile .bt-funktion, .bt-zeile .bt-taetigkeit { flex: 2 1 120px; }
.bt-zeile .bt-stunden, .bt-zeile .bt-anzahl { flex: 0 0 68px; text-align: right; }
.bt-team { width: auto; max-width: 240px; padding: 4px 8px; font-size: 13px; }
.bt-summe { margin: 8px 0 0; }
.bt-aktionen { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--bg, var(--surface-2)); padding: 10px 0; z-index: 2; }
.bt-aktionen .mh-spacer { flex: 1; }
.bt-fotos { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-foto { position: relative; margin: 0; width: 104px; height: 104px; border-radius: 8px; overflow: hidden; background: #ddd; }
.bt-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bt-foto-weg { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; }
.bt-foto-neu { width: 104px; height: 104px; border: 2px dashed var(--line); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font-size: 13px; color: var(--muted); }
.bt-foto-neu .ico { width: 24px; height: 24px; }
.bt-rot { color: var(--danger); }
.bt-filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.bt-filter .mh-input { max-width: 240px; }
.mh-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mh-seg button { border: 0; background: transparent; padding: 7px 12px; font: inherit; font-size: 13.5px; cursor: pointer; color: inherit; }
.mh-seg button + button { border-left: 1px solid var(--line); }
.mh-seg button[aria-pressed="true"] { background: var(--meier-blau); color: var(--on-meier-blau, #fff); }
.mg-liste { display: grid; gap: 8px; }
.mg-karte { display: flex; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; }
.mg-karte.mg-ueber { border-left: 4px solid var(--danger); }
.mg-nr { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--meier-blau); color: var(--on-meier-blau, #fff); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.mg-text { flex: 1; min-width: 0; }
.mg-titel { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mg-text .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.mg-art { display: flex; gap: 18px; margin-bottom: 8px; }
@media (max-width: 640px) {
  .bt-zeile { flex-wrap: wrap; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .bt-zeile .bt-name, .bt-zeile .bt-firma { flex: 1 1 100%; }
  .bt-foto, .bt-foto-neu { width: 88px; height: 88px; }
}
.mh-dialog-backdrop .mh-dialog { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; }

.bt-chip-nu{ display:inline-block; padding:1px 7px; border-radius:9px; font-size:11.5px; font-weight:700; background:#e7f5ec; color:#1e7b3c; }
