/* ID Zählerstand – Werte-Ansicht (Pop-up und Erfassung) */
.idzs-ed-meter { border: 1px solid var(--idzs-line, rgba(14, 23, 45, 0.1)); border-radius: var(--idzs-radius, 8px); padding: 0 0.9rem; margin-bottom: 0.75rem; background: #fff; }
.idzs-ed-meter > summary { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 0; cursor: pointer; list-style: none; font-weight: 600; }
.idzs-ed-meter > summary::-webkit-details-marker { display: none; }
.idzs-ed-meter > summary::after { content: ""; width: 0.55rem; height: 0.55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 0.25rem 0.2rem 0.5rem; transition: transform 0.2s; }
.idzs-ed-meter[open] > summary::after { transform: rotate(-135deg); margin-bottom: -0.2rem; }
.idzs-ed-meter[open] > summary { border-bottom: 1px solid var(--idzs-line, rgba(14, 23, 45, 0.1)); margin-bottom: 0.75rem; }
.idzs-ed-meter > :last-child { margin-bottom: 0.9rem; }
.idzs-ed-meter .idzs-meter__icon { width: 1.5rem; text-align: center; }
.idzs-ed-meter .idzs-meter__name { flex: 1; }
.idzs-ed-meter .idzs-meter__value { color: var(--idzs-muted, #6982a2); font-weight: 500; font-size: 0.85rem; }

.idzs-chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.idzs-chart { display: block; width: 100%; min-width: 320px; height: auto; max-height: 220px; }
.idzs-chart__axis { stroke: var(--idzs-soft, #a5b4c6); stroke-width: 1; }
.idzs-chart__bar { fill: var(--idzs-primary, #0e172d); }
.idzs-chart__bar.is-partial { fill: var(--idzs-soft, #a5b4c6); }
.idzs-chart__value { font-size: 11px; text-anchor: middle; fill: var(--idzs-primary, #0e172d); font-variant-numeric: tabular-nums; }
.idzs-chart__label { font-size: 11px; text-anchor: middle; fill: var(--idzs-muted, #6982a2); }

.idzs-table-wrap { overflow-x: auto; margin: 0.5rem 0; }
.idzs-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.idzs-table th, .idzs-table td { padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--idzs-line, rgba(14, 23, 45, 0.1)); text-align: left; vertical-align: middle; }
.idzs-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--idzs-muted, #6982a2); }
.idzs-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.idzs-table .is-actions { text-align: right; white-space: nowrap; }
.idzs-table .is-actions .idzs-btn + .idzs-btn { margin-left: 0.3rem; }
.idzs-table small { display: block; color: var(--idzs-muted, #6982a2); font-size: 0.75rem; }
.idzs-table tr.is-swap td { background: rgba(210, 219, 45, 0.12); }
.idzs-table input { width: 100%; min-width: 7rem; min-height: 2.25rem; padding: 0.25rem 0.4rem; border: 1px solid var(--idzs-soft, #a5b4c6); border-radius: 6px; font: inherit; }

.idzs-ed-add { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.6rem; align-items: center; padding: 0.75rem; background: var(--idzs-bg, #f4f5f7); border-radius: var(--idzs-radius, 8px); margin-top: 0.5rem; }
.idzs-ed-add strong { grid-column: 1 / -1; }
.idzs-ed-add label { font-size: 0.85rem; color: var(--idzs-muted, #6982a2); }
.idzs-ed-add input { min-height: 2.5rem; padding: 0.3rem 0.5rem; border: 1px solid var(--idzs-soft, #a5b4c6); border-radius: 6px; font: inherit; width: 100%; }
.idzs-ed-add button { grid-column: 1 / -1; justify-self: start; }

.idzs-ed-msg:empty { display: none; }
.idzs-ed-msg { margin: 0.4rem 0; padding: 0.5rem 0.7rem; border-radius: 6px; background: var(--idzs-bg, #f4f5f7); font-size: 0.9rem; }
.idzs-ed-msg.is-error { background: #fdecea; color: #8a1c12; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Icons */
.idzs-meter__icon { display: inline-flex; align-items: center; justify-content: center; color: var(--idzs-muted, #6982a2); }
.idzs-icon { width: 20px; height: 20px; display: block; }

/* Schmale Bildschirme: Aktionen unter den Werten */
@media (max-width: 560px) {
	.idzs-table thead .is-actions { display: none; }
	.idzs-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem 7.5rem; column-gap: 0.5rem; border-bottom: 1px solid var(--idzs-line, rgba(14, 23, 45, 0.1)); padding: 0.35rem 0; }
	.idzs-table thead tr { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem 7.5rem; column-gap: 0.5rem; }
	.idzs-table .is-num { white-space: normal; }
	.idzs-table tbody td, .idzs-table thead th { border-bottom: 0; }
	.idzs-table tbody td.is-actions { grid-column: 1 / -1; text-align: left; padding-top: 0.15rem; }
	.idzs-table tbody td[colspan] { grid-column: 1 / -1; }
}
