/* Modul Berichte – Gestaltung des Editors */
.sticky-tabs { position: sticky; top: 98px; z-index: 10; background: var(--bg); }
details.sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; box-shadow: var(--shadow); }
details.sec > summary { cursor: pointer; padding: 13px 16px; font: 600 .85rem var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--brand); display: flex; justify-content: space-between; gap: 8px; list-style: none; }
@media (prefers-color-scheme: dark) { details.sec > summary { color: var(--text); } }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary::before { content: "▸"; margin-right: 6px; color: var(--accent); } details.sec[open] > summary::before { content: "▾"; }
.item { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(240px, 1.6fr); gap: 6px 14px; padding: 11px 16px; border-top: 1px solid var(--line); align-items: center; }
.item .lbl { font-weight: 500; } .item .lbl .muted { font-weight: 400; }
.item .extra { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.item .extra input { flex: 1; min-width: 180px; min-height: 38px; padding: 6px 9px; }
@media (max-width: 640px) { .item { grid-template-columns: 1fr; } }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; flex-wrap: wrap; }
.seg button { border: 0; border-radius: 0; min-height: 42px; padding: 6px 13px; border-right: 1px solid var(--line); font-weight: 600; }
.seg button:last-child { border-right: 0; }
.seg button.on.io { background: var(--ok); color: #fff; } .seg button.on.nio { background: var(--bad); color: #fff; } .seg button.on.ng { background: var(--muted); color: #fff; }
.stars { display: inline-flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.stars button { border: 0; background: transparent; font-size: 1.75rem; line-height: 1; padding: 2px 3px; min-height: 42px; color: #c9ced6; }
.stars button.on { color: var(--star); }
.stars .ngb { font-size: .82rem; border: 1px solid var(--line); margin-left: 6px; padding: 6px 10px; color: var(--text); }
.stars .ngb.on { background: var(--muted); color: #fff; }
.meas { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.meas input { width: 130px; }
.dev { font-size: .85rem; } .dev.bad { color: var(--bad); font-weight: 600; } .dev.ok { color: var(--ok); }
.marked { background: var(--mark); border-left: 4px solid var(--mark-line); }
.mark-chip { background: var(--mark); color: var(--warn); border: 1px solid var(--mark-line); }
.progress { height: 6px; background: var(--brand-light); border-radius: 99px; overflow: hidden; } .progress > div { height: 100%; background: var(--ok); }
.sigpad { width: 100%; height: 170px; border: 1px dashed var(--muted); border-radius: var(--radius); background: #fff; touch-action: none; display: block; }
details.sec > summary > span:first-child { margin-right: auto; }
input[type="time"] { min-width: 118px; }
.typvals { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 10px 12px; margin: 4px 0 8px; background: var(--brand-light); border-radius: var(--radius); font-size: .9rem; }
.typvals .label { flex-basis: 100%; }
