/* Inventur je Filiale (inventory-count.js): Übersicht, Zählliste, Abschluss. Lila-Tokens über .wm (workspace-modules.css), Dark Mode über html[data-workspace-theme="dark"]. */
.inventory-count { display:grid; gap:14px; }
.inventory-count-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.inventory-count-toolbar label { display:grid; gap:4px; font-size:12px; color:var(--muted); }
.inventory-count-toolbar .wm-spacer { flex:1 1 auto; }
.inventory-count-panel .panel-head { flex-wrap:wrap; gap:10px; }
.inventory-count-head { padding:16px 18px; display:grid; gap:14px; }
.inventory-count-facts { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:12px 18px; }
.inventory-count-facts > div { display:grid; gap:3px; min-width:0; }
.inventory-count-facts small { color:var(--muted); font-size:11px; letter-spacing:.04em; text-transform:uppercase; }
.inventory-count-facts strong { font-size:15px; overflow-wrap:anywhere; }
.inventory-count-facts input { min-height:34px; }
.inventory-count-kpis { display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:10px; }
.inventory-count-kpis .wm-kpi { display:grid; gap:2px; padding:10px 12px; border:1px solid var(--line); border-radius:6px; background:var(--wm-tint, #f7f2f9); }
.inventory-count-kpis .wm-kpi small { color:var(--muted); font-size:11px; }
.inventory-count-kpis .wm-kpi strong { font-size:18px; color:var(--primary); }
.inventory-count-notes { margin:0; }
.inventory-count-filter { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.inventory-count-search { display:inline-flex; align-items:center; gap:6px; }
.inventory-count-search svg { width:16px; height:16px; color:var(--muted); }
.inventory-count-search input { min-width:200px; }
.inventory-count-filter .toggle-row { gap:6px; font-size:13px; }
.inventory-count-lines th.num, .inventory-count-lines td.num { text-align:right; white-space:nowrap; }
.inventory-count-lines td small { display:block; }
.inventory-count-lines input[data-counted] { width:96px; text-align:right; min-height:34px; }
.inventory-count-lines input[data-note] { min-width:140px; width:100%; min-height:34px; }
.inventory-count-lines tr.has-difference td { background:#fdf4ee; }
.inventory-count-lines .diff-zero { color:var(--wm-success, #246b48); }
.inventory-count-lines .diff-plus { color:#8a5a1a; font-weight:600; }
.inventory-count-lines .diff-minus { color:var(--wm-danger, #9a2c22); font-weight:600; }
.inventory-count-table tbody tr { cursor:pointer; }
.inventory-count-table tbody tr:focus-visible { outline:2px solid var(--primary); outline-offset:-2px; }
.inventory-count-close { display:grid; gap:12px; }
.inventory-count-close .toggle-row span { display:flex; flex-direction:column; gap:2px; }
.inventory-count-close .toggle-row small { color:var(--muted); font-weight:400; }
html[data-workspace-theme="dark"] .inventory-count-lines tr.has-difference td { background:#3f3028; }
html[data-workspace-theme="dark"] .inventory-count-kpis .wm-kpi { background:var(--wm-tint, #2a2430); }
@media (max-width:700px) {
  .inventory-count-toolbar .button { flex:1 1 auto; justify-content:center; }
  .inventory-count-search input { min-width:0; width:100%; }
  .inventory-count-lines input[data-counted] { width:76px; }
  .inventory-count-lines input[data-note] { min-width:110px; }
}
