/* ============================================================
   LAGER (Tabellen der Positionen: einkauf/style.css .ek-pos)
   ============================================================ */
.la-pane[hidden], #la-we-dialog [hidden], #la-sn-info[hidden] { display: none !important; }
.la-tabs .tab-button { white-space: nowrap; }
.la-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 24px 0; }
.la-filter .suchfeld-container { flex: 1 1 260px; max-width: 420px; margin-right: auto; }  /* Suche links, Filter rechts */
.la-filter select { width: auto; min-width: 180px; }
.la-sn-suche { max-width: 560px !important; }
.la-sn-suche input { font-size: 17px; }
.la-kennzahlen { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 24px 16px; }
.la-kennzahlen > * { display: flex; flex-direction: column; min-width: 150px; padding: 10px 14px; border: 1px solid var(--line, #e3e1dc); border-radius: 12px; background: var(--paper, #fff); color: var(--ink, #222); text-decoration: none; }
.la-kennzahlen b { font-size: 22px; font-variant-numeric: tabular-nums; }
.la-kennzahlen span { font-size: 12.5px; color: var(--muted, #777); }
.la-warn { color: var(--pal-senf-dunkel, #a36b00) !important; }
.la-rot { color: var(--danger, #c62828) !important; }
.la-grau { color: var(--muted, #888); text-align: center; padding: 16px !important; }
.la-ok { font-size: 18px; color: var(--pal-gruen, #2e7d32); margin-right: 3px; }
.la-hinweis { padding: 8px 24px; }
dialog.la-klein { width: min(560px, 96vw); max-width: 560px; }
.la-we-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 16px; margin-bottom: 12px; }
.la-we-info span { display: block; font-size: 12px; color: var(--muted, #777); }
.la-notiz { white-space: pre-wrap; font: inherit; font-size: 13px; background: var(--neutral-100, #f6f5f2); border-radius: 8px; padding: 8px 10px; margin: 10px 0; }
.la-belege { display: flex; gap: 14px; align-items: center; }
.la-belege a, .la-belege span { display: inline-flex; gap: 4px; align-items: center; }
.la-belege i { font-size: 18px; color: var(--accent-dark, #835c30); }
.la-sn-status { width: auto; min-width: 130px; padding: 3px 8px; font-size: 13px; }
.la-sn-notiz { width: 100%; padding: 4px 8px; font-size: 13px; }
.la-tabelle td { height: 60px !important; }
@media (max-width: 640px) {
  .la-filter, .la-kennzahlen, .la-hinweis { padding-left: 16px; padding-right: 16px; }
  .la-kennzahlen > * { min-width: 0; flex: 1 1 40%; }
}
.la-tabelle th:nth-child(2) { width: 200px; }
.la-tabelle th:nth-child(3) { width: 100px; }
.la-tabelle th:nth-child(4) { width: 80px; }
.la-tabelle th:nth-child(5) { width: 110px; }
.la-tabelle th:nth-child(6) { width: 240px; }
.la-tabelle .table-entry-actions { flex-wrap: nowrap !important; justify-content: flex-end; }

/* ===== Lagerorte (assets/lagerorte.js – Dialoge auch auf anderen Seiten) ===== */
dialog.lo-dialog { width: min(640px, 96vw); max-width: 640px; }
dialog.lo-ort, dialog.lo-produkt { width: min(760px, 96vw); max-width: 760px; }
.lo-dialog h2 { margin-bottom: 4px; }
.lo-unter { margin: 0 0 12px; color: var(--muted, #777); font-size: 13.5px; }
.lo-dialog [hidden] { display: none !important; }
.lo-kopf { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.lo-kopf img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line, #eee); background: #fff; }
.lo-kopf h2 { margin: 0; }
.lo-typ, .lo-bild-leer { font-size: 40px; color: var(--accent-dark, #a37a10); }
.lo-code { font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--neutral-100, #f1efe9); color: var(--ink, #333); vertical-align: middle; }
.lo-kinder { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.lo-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 16px; border: 1px solid var(--line, #e3e1dc); text-decoration: none; color: var(--ink, #333); font-size: 13.5px; }
.lo-chip i { font-size: 16px; color: var(--accent-dark, #a37a10); }
.lo-inhalt { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow: auto; }
.lo-zeile { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 8px; border: 1px solid var(--line, #eee); border-radius: 10px; }
.lo-mini { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line, #eee); }
.lo-mini img { width: 100%; height: 100%; object-fit: contain; } .lo-mini i { color: #bbb; }
.lo-text { min-width: 0; display: flex; flex-direction: column; } .lo-text a { color: inherit; text-decoration: none; }
.lo-text small { color: var(--muted, #777); font-size: 12px; }
.lo-zahl { text-align: right; display: flex; flex-direction: column; } .lo-zahl b { font-size: 17px; } .lo-zahl small { color: var(--muted, #777); font-size: 11.5px; }
.lo-akt { display: flex; gap: 0; white-space: nowrap; }
.lo-tabelle { width: 100%; border-collapse: collapse; margin: 6px 0 12px; }
.lo-tabelle td, .lo-tabelle th { padding: 6px 8px; border-bottom: 1px solid var(--line, #eee); text-align: left; }
.lo-tabelle .text-right { text-align: right; }
.lo-fest { font-size: 16px; color: var(--accent-dark, #a37a10); vertical-align: -3px; margin-right: 4px; }
.lo-alles { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; }
.lo-alles select { width: auto; min-width: 200px; }
.lo-ort-aktionen { flex-wrap: wrap; }
@media (max-width: 640px) {
  .lo-zeile { grid-template-columns: 40px 1fr auto; }
  .lo-zeile .lo-akt { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ===== Reiter Lagerorte ===== */
.la-orte-baum .lo-ortname { display: flex; align-items: center; gap: 0; }
.la-orte-baum .lo-ortname strong { white-space: normal; margin-right: 6px; }
.la-orte-baum .lo-einzug { flex: none; }
.la-orte-baum th:nth-child(1) { width: auto; } .la-orte-baum th:nth-child(2) { width: 130px; } .la-orte-baum th:nth-child(3) { width: 110px; }
.la-orte-baum th:nth-child(4) { width: 120px; } .la-orte-baum th:nth-child(5) { width: 130px; } .la-orte-baum th:nth-child(6) { width: 170px; }
.la-orte-baum .table-entry-actions { flex-wrap: nowrap !important; justify-content: flex-end; }
.la-orte-baum .lo-einzug { display: inline-block; }
.la-orte-baum i.lo-ic { font-size: 19px; vertical-align: -4px; margin-right: 6px; color: var(--accent-dark, #a37a10); }
.la-orte-baum tr.is-inaktiv td { opacity: .5; }
.la-ort-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.la-ort-chip { display: inline-flex; gap: 4px; align-items: baseline; padding: 1px 8px; border-radius: 10px; background: var(--neutral-100, #f1efe9); font-size: 12.5px; white-space: nowrap; color: var(--ink, #333); text-decoration: none; }
.la-ort-chip.is-fest { background: #fff3c4; }
.la-ort-chip b { font-variant-numeric: tabular-nums; }
body.dark-mode .la-ort-chip.is-fest { background: #4a4123; }

.la-toolbar { flex-wrap: wrap; row-gap: 8px; }
.la-toolbar .toolbar-left { min-width: 0; overflow-x: auto; }

/* Wareneingang aus Ninox: Positionen aus der Notiz */
.la-we-summe td { font-weight: 700; border-top: 1px solid var(--line, #e3e1dc); }
.la-we-hinweis { display: flex; align-items: center; gap: 6px; margin: 10px 0; font-size: 13px; color: var(--muted, #777); }
.la-we-hinweis i { font-size: 17px; }
