/* css/tc-wwi-akku.css - Akku-/Batterieverwaltung der Warenwirtschaft (13.11.2026, includes/tc_wwi_akku.php,
   js/tc-wwi-akku.js). Hell und dunkel (:root[data-theme="dunkel"]). Der Status steht immer zusaetzlich als Text da
   (Farbe ist nie das einzige Merkmal). Bewusst eigene Klassen (tc-wwi-akku-*) - .tc-akku gehoert zur DMP-Anzeige. */

:root {
	--tc-wwi-akku-gruen-text: #14532d;
	--tc-wwi-akku-gruen-flaeche: #dcfce7;
	--tc-wwi-akku-gelb-text: #713f12;
	--tc-wwi-akku-gelb-flaeche: #fef3c7;
	--tc-wwi-akku-gelb-rand: #d97706;
	--tc-wwi-akku-rot-text: #ffffff;
	--tc-wwi-akku-rot-flaeche: #b42318;
	--tc-wwi-akku-grau-text: #374151;
	--tc-wwi-akku-grau-flaeche: #e5e7eb;
}
:root[data-theme="dunkel"] {
	--tc-wwi-akku-gruen-text: #bbf7d0;
	--tc-wwi-akku-gruen-flaeche: #14532d;
	--tc-wwi-akku-gelb-text: #fde68a;
	--tc-wwi-akku-gelb-flaeche: #4a3510;
	--tc-wwi-akku-gelb-rand: #fbbf24;
	--tc-wwi-akku-rot-text: #ffffff;
	--tc-wwi-akku-rot-flaeche: #c2410c;
	--tc-wwi-akku-grau-text: #e5e7eb;
	--tc-wwi-akku-grau-flaeche: #374151;
}

/* Abzeichen (Listen, Kopfzeilen) */
.tc-wwi-akku { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; font-size: 0.85em; font-weight: 600; line-height: 1.5; white-space: nowrap; vertical-align: middle; }
.tc-wwi-akku--gruen { background: var(--tc-wwi-akku-gruen-flaeche); color: var(--tc-wwi-akku-gruen-text); }
.tc-wwi-akku--gelb { background: var(--tc-wwi-akku-gelb-flaeche); color: var(--tc-wwi-akku-gelb-text); border: 1px solid var(--tc-wwi-akku-gelb-rand); }
.tc-wwi-akku--rot { background: var(--tc-wwi-akku-rot-flaeche); color: var(--tc-wwi-akku-rot-text); font-weight: 700; }
.tc-wwi-akku--unbekannt { background: var(--tc-wwi-akku-grau-flaeche); color: var(--tc-wwi-akku-grau-text); font-weight: 400; }

/* Hinweis gelb (Geraetedetail) */
.tc-wwi-akku-meldung--gelb { padding: 8px 12px; margin: 8px 0; border-left: 4px solid var(--tc-wwi-akku-gelb-rand); background: var(--tc-wwi-akku-gelb-flaeche); color: var(--tc-wwi-akku-gelb-text); font-weight: 600; }

/* Aufklappbare Aktionen im Geraetedetail */
.tc-wwi-akku-aktion { margin-top: 10px; }
.tc-wwi-akku-aktion > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.tc-wwi-akku-aktion form { margin-top: 8px; }

/* Positionszeilen der Erfassungen (Warenausgang, Lieferschein, Ticket-Erfassung) */
.tc-wwi-akku-pos { margin-top: 4px; padding: 4px 8px; font-weight: 700; }
.tc-wwi-akku-pos--rot { border-left: 4px solid #7f1d1d; background: var(--tc-wwi-akku-rot-flaeche); color: var(--tc-wwi-akku-rot-text); }
.tc-wwi-akku-pos--gelb { border-left: 4px solid var(--tc-wwi-akku-gelb-rand); background: var(--tc-wwi-akku-gelb-flaeche); color: var(--tc-wwi-akku-gelb-text); }

/* Reinigung: Direktaktion unter der Warnung */
.tc-wwi-akku-reinigung--rot { font-size: 1.05em; }
.tc-wwi-akku-direkt { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tc-wwi-akku-direkt form, .tc-wwi-akku-direkt-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }

/* OTS-Dialog vor dem Warenausgang */
.tc-wwi-akku-dialog-liste { margin: 0 0 10px 18px; }
.tc-wwi-akku-dialog-liste li { margin: 2px 0; }
.tc-wwi-akku-dialog-wahl { display: grid; gap: 8px; margin: 8px 0; }
.tc-wwi-akku-dialog-wahl label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.tc-wwi-akku-dialog-felder { display: grid; gap: 6px; margin: 4px 0 4px 26px; }
.tc-wwi-akku-dialog-felder[hidden] { display: none; }
.tc-wwi-akku-dialog-fehler { color: #b42318; font-weight: 600; }
:root[data-theme="dunkel"] .tc-wwi-akku-dialog-fehler { color: #ff8a7a; }
