/* Lieferscheinerfassung – übernimmt Schrift des Themes, eigene Farben nur für Status */
.lse {
	--lse-ink: #1f2933;
	--lse-muted: #616e7c;
	--lse-line: #d3d8de;
	--lse-soft: #f3f5f7;
	--lse-primary: #1d4e89;
	--lse-primary-ink: #fff;
	--lse-ok: #2f7d4f;
	--lse-ok-bg: #e9f5ee;
	--lse-warn: #5c4400;
	--lse-warn-bg: #fff3c4;
	--lse-warn-line: #f2c200;
	--lse-err: #b42318;
	--lse-err-bg: #fdecea;
	color: var(--lse-ink);
	font-size: 16px;
	line-height: 1.45;
	max-width: 100%;
}
.lse *, .lse *::before, .lse *::after { box-sizing: border-box; }
.lse a { color: var(--lse-primary); }

/* Tabs */
.lse-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--lse-line); margin-bottom: 24px; overflow-x: auto; }
.lse-tab { padding: 10px 16px; text-decoration: none; color: var(--lse-muted) !important; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; font-weight: 600; }
.lse-tab:hover { color: var(--lse-ink) !important; }
.lse-tab.is-active { color: var(--lse-primary) !important; border-bottom-color: var(--lse-primary); }
.lse-badge { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 11px; background: var(--lse-warn-bg); color: var(--lse-warn); font-size: 13px; text-align: center; margin-left: 4px; }

.lse-h { font-size: 1.3em; margin: 0 0 8px; }
.lse-lead { color: var(--lse-muted); margin: 0 0 16px; max-width: 70ch; }
.lse-muted { color: var(--lse-muted); font-size: 14px; }
.lse-empty { padding: 24px; background: var(--lse-soft); border-radius: 6px; }

/* Buttons */
.lse-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--lse-line); border-radius: 6px; background: #fff; color: var(--lse-ink) !important; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.lse-btn:hover { border-color: var(--lse-ink); }
.lse-btn:focus-visible, .lse input:focus-visible, .lse select:focus-visible, .lse-tab:focus-visible, .lse-drop:focus-within { outline: 3px solid #f2b705; outline-offset: 2px; }
.lse-btn--primary { background: var(--lse-primary); border-color: var(--lse-primary); color: var(--lse-primary-ink) !important; }
.lse-btn--primary:hover { background: #163d6c; border-color: #163d6c; }
.lse-btn--ghost { background: transparent; }
.lse-btn--danger { background: transparent; color: var(--lse-err) !important; border-color: transparent; }
.lse-btn--danger:hover { background: var(--lse-err-bg); border-color: var(--lse-err-bg); }
.lse-btn--small { min-height: 36px; padding: 0 12px; font-size: 14px; }

/* Meldungen */
.lse-msg { padding: 12px 16px; border-radius: 6px; margin: 0 0 16px; border-left: 4px solid; }
.lse-msg p { margin: 0 0 4px; }
.lse-msg p:last-child { margin: 0; }
.lse-msg--ok { background: var(--lse-ok-bg); border-color: var(--lse-ok); }
.lse-msg--warn { background: var(--lse-warn-bg); border: 1px solid var(--lse-warn-line); border-left-width: 5px; color: var(--lse-warn); }
.lse-msg--error { background: var(--lse-err-bg); border-color: var(--lse-err); color: var(--lse-err); }

/* Upload */
.lse-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 160px; padding: 24px; border: 2px dashed var(--lse-line); border-radius: 8px; background: var(--lse-soft); cursor: pointer; text-align: center; }
.lse-drop.is-over { border-color: var(--lse-primary); background: #e8eff8; }
.lse-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lse-drop-title { font-weight: 700; font-size: 1.1em; color: var(--lse-primary); }
.lse-drop-sub { color: var(--lse-muted); }
.lse-queue { list-style: none; margin: 16px 0 0; padding: 0; }
.lse-q-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--lse-line); }
.lse-q-name { font-weight: 600; overflow-wrap: anywhere; }
.lse-q-status { font-size: 14px; color: var(--lse-muted); }
.lse-q-item.is-busy .lse-q-status { color: var(--lse-primary); }
.lse-q-item.is-ok .lse-q-status { color: var(--lse-ok); }
.lse-q-item.is-error .lse-q-status { color: var(--lse-err); }
.lse-q-result { grid-column: 1 / -1; font-size: 15px; }
.lse-q-result ul { margin: 4px 0 0; padding-left: 18px; }
.lse-q-result p { margin: 4px 0; color: var(--lse-err); }
.lse-q-hint { display: block; margin: 4px 0 2px; padding: 6px 10px; background: var(--lse-warn-bg); border: 1px solid var(--lse-warn-line); border-left-width: 5px; border-radius: 6px; color: var(--lse-warn); font-size: 14px; }
.lse-q-warnung { display: block; margin: 6px 0 2px; padding: 8px 12px; background: var(--lse-warn-bg); border: 1px solid var(--lse-warn-line); border-left-width: 5px; border-radius: 6px; color: var(--lse-warn); font-size: 14px; font-weight: 600; }
.lse-done { margin-top: 20px; }

/* Tabellen */
.lse-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lse-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lse-table th { text-align: left; font-size: 13px; color: var(--lse-muted); font-weight: 600; padding: 8px 10px; border-bottom: 2px solid var(--lse-line); white-space: nowrap; }
.lse-table td { padding: 10px; border-bottom: 1px solid var(--lse-line); vertical-align: middle; }
.lse-table--dense td { padding: 6px 10px; white-space: nowrap; }
.lse-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.lse-table tr.is-error td:first-child { box-shadow: inset 3px 0 0 var(--lse-err); }
.lse-warn-dot { display: inline-block; min-width: 24px; padding: 2px 8px; border-radius: 12px; background: var(--lse-warn-bg); color: var(--lse-warn); font-weight: 700; font-size: 13px; text-align: center; cursor: help; }

/* Prüfmaske */
.lse-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.lse-preview { position: sticky; top: 16px; }
.lse-preview iframe, .lse-preview img { display: block; width: 100%; height: 78vh; border: 1px solid var(--lse-line); border-radius: 6px; background: var(--lse-soft); }
.lse-preview img { height: auto; max-height: 78vh; object-fit: contain; }
.lse-form-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lse-status { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.lse-status--pruefen { background: var(--lse-warn-bg); color: var(--lse-warn); }
.lse-status--fehler { background: var(--lse-err-bg); color: var(--lse-err); }
.lse-status--freigegeben { background: var(--lse-ok-bg); color: var(--lse-ok); }

.lse-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.lse-field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.lse-field > span { font-size: 14px; font-weight: 600; color: var(--lse-muted); }
.lse-field em { font-style: normal; font-weight: 400; color: var(--lse-err); margin-left: 4px; }
.lse input[type="text"], .lse input[type="date"], .lse input[type="search"], .lse input[type="number"], .lse input[type="url"], .lse input[type="email"], .lse select, .lse textarea {
	width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--lse-line); border-radius: 6px; background: #fff; color: var(--lse-ink); font: inherit; font-size: 16px; margin: 0;
}
.lse-field--code { grid-column: 1 / -1; padding: 12px; background: #e8eff8; border-radius: 6px; }
.lse-field--code > span { color: var(--lse-primary); }
.lse-field--code select { border-color: var(--lse-primary); font-weight: 600; }

.lse-pos { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.lse-pos legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.lse-pos-head, div.lse-pos-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 110px 40px; gap: 8px; align-items: center; }
.lse-pos-head { font-size: 13px; color: var(--lse-muted); font-weight: 600; margin-bottom: 4px; }
div.lse-pos-row { margin-bottom: 8px; }
.lse .lse-num { text-align: right; font-variant-numeric: tabular-nums; }
.lse-pos-del { width: 40px; height: 44px; border: 0; background: transparent; color: var(--lse-muted); font-size: 22px; cursor: pointer; border-radius: 6px; }
.lse-pos-del:hover { background: var(--lse-err-bg); color: var(--lse-err); }

.lse-rechnung { margin-top: 20px; border-top: 1px solid var(--lse-line); padding-top: 12px; }
.lse-rechnung summary { cursor: pointer; font-weight: 700; margin-bottom: 12px; }

.lse-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--lse-line); }
.lse-actions-spacer { flex: 1; }

/* Liste */
.lse-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lse-filter { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; align-items: end; padding: 16px; background: var(--lse-soft); border-radius: 8px; margin-bottom: 16px; }
.lse-filter-actions { display: flex; gap: 8px; align-items: center; min-width: 0; }
.lse-filter-weg { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: var(--lse-muted); font-size: 22px; line-height: 1; text-decoration: none; }
.lse-filter-weg:hover, .lse-filter-weg:focus-visible { background: #fff; color: var(--lse-primary); }
.lse-summary { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 12px; }
.lse-summary span { color: var(--lse-muted); }


/* Projekt-Umschalter */
.lse-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.lse-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15em; letter-spacing: 0.01em; color: var(--lse-ink); margin-right: auto; }
.lse-brand-logo, .lse-login-logo { display: inline-grid; place-items: center; background: var(--lse-primary); color: #fff; font-weight: 800; letter-spacing: 0.04em; border-radius: 8px; }
.lse-brand-logo { width: 40px; height: 32px; font-size: 13px; }
.lse-user { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.lse-user-name { color: var(--lse-muted); }
.lse-user-logout { font-weight: 600; text-decoration: none; padding: 6px 10px; border: 1px solid var(--lse-line); border-radius: 6px; }
.lse-user-logout:hover { border-color: var(--lse-ink); }
.lse-user-handy { text-decoration: none; padding: 6px 10px; border: 1px solid var(--lse-line); border-radius: 6px; color: var(--lse-muted); }
.lse-user-handy:hover { border-color: var(--lse-ink); color: var(--lse-ink); }
.lse-user-firma { text-decoration: none; padding: 6px 10px; border: 1px solid var(--lse-line); border-radius: 6px; color: var(--lse-ink); font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lse-user-firma:hover { border-color: var(--lse-ink); }
.lse-hz-sitzung { white-space: nowrap; }
.lse-hz-polier { margin-top: 4px; }
.lse-projektwahl { display: flex; align-items: center; gap: 8px; }
.lse-projektwahl label { font-size: 14px; font-weight: 600; color: var(--lse-muted); }
.lse .lse-projektwahl select { min-width: 260px; font-weight: 600; border-color: var(--lse-primary); }
.lse-projekt-leer { margin: 0; color: var(--lse-muted); }
.lse-table tr.is-current td { background: #e8eff8; }
.lse-row-actions { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.lse-row-actions form { margin: 0; }
.lse-narrow { max-width: 760px; }
.lse textarea { min-height: 0; resize: vertical; line-height: 1.4; }
.lse-field small { font-weight: 400; }
.lse-field--wide { grid-column: 1 / -1; }
.lse-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lse-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Art des Uploads */
.lse-typen { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lse-typ { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px 44px; border: 2px solid var(--lse-line); border-radius: 8px; cursor: pointer; background: #fff; }
.lse-typ input { position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; margin: 0; accent-color: var(--lse-primary); }
.lse-typ:has(input:checked) { border-color: var(--lse-primary); background: #e8eff8; }
.lse-typ:focus-within { outline: 3px solid #f2b705; outline-offset: 2px; }
.lse-typ-titel { font-weight: 700; }
.lse-typ-text { font-size: 14px; color: var(--lse-muted); line-height: 1.35; }

/* Positionstabelle AB/Rechnung */
.lse-pos--dok { margin-top: 28px; }
.lse-postable { border-collapse: collapse; width: 100%; min-width: 900px; }
.lse-postable th { text-align: left; font-size: 13px; color: var(--lse-muted); font-weight: 600; padding: 0 4px 6px; white-space: nowrap; }
.lse-postable th.num { text-align: right; }
.lse-postable td { padding: 3px 4px; vertical-align: middle; }
.lse .lse-postable input[type="text"], .lse .lse-postable select { min-height: 40px; padding: 6px 8px; font-size: 15px; }
.lse-w-xs { min-width: 70px; }
.lse-w-s { min-width: 90px; }
.lse-w-l { min-width: 200px; }
.lse-w-d { min-width: 150px; }

/* Abgleich */
.lse-abgleich { margin-top: 28px; padding: 20px; border: 1px solid var(--lse-line); border-radius: 8px; background: #fbfcfd; }
.lse-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0 16px; }
.lse-kpi { padding: 12px 14px; border-radius: 6px; background: var(--lse-soft); display: flex; flex-direction: column; gap: 2px; }
.lse-kpi span { font-size: 13px; color: var(--lse-muted); }
.lse-kpi strong { font-size: 1.25em; font-variant-numeric: tabular-nums; }
.lse-kpi.is-warn { background: var(--lse-warn-bg); }
.lse-kpi.is-warn strong { color: var(--lse-warn); }
.lse-table--abgleich th.lse-group { text-align: center; border-bottom: 1px solid var(--lse-line); }
.lse-table--abgleich td { white-space: normal; }
.lse-chip { display: inline-block; padding: 2px 9px; border-radius: 11px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.lse-chip--ok { background: var(--lse-ok-bg); color: var(--lse-ok); }
.lse-chip--warn { background: var(--lse-warn-bg); color: var(--lse-warn); }
.lse-chip--info { background: #e8eff8; color: var(--lse-primary); }
.lse-chip--neutral { background: var(--lse-soft); color: var(--lse-muted); }

@media (max-width: 700px) {
	.lse-kpis { grid-template-columns: 1fr; }
	.lse-abgleich { padding: 14px; }
}

/* Lieferanten */
.lse-suche { display: flex; gap: 8px; margin-bottom: 16px; max-width: 560px; }
.lse .lse-suche input[type="search"] { flex: 1; font-size: 17px; }
.lse-table tr.is-leer td { color: var(--lse-muted); }
.lse-table tr.is-leer td a { color: var(--lse-muted); }
.lse-neu { margin-top: 20px; }
.lse-neu summary { cursor: pointer; font-weight: 700; color: var(--lse-primary); }
.lse-inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 12px 0 8px; }
.lse-inline-form .lse-field { flex: 1 1 280px; }
.lse-crumb { margin: 0 0 8px; font-size: 14px; }
.lse-crumb a { text-decoration: none; }
.lse-h--gross { font-size: 1.6em; margin: 0; }
.lse-block { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--lse-line); }
.lse .lse-pos-filter { max-width: 320px; margin-bottom: 10px; }
.lse-actions--compact { margin-top: 12px; padding-top: 0; border-top: 0; }
.lse-herkunft { font-size: 13px; color: var(--lse-muted); min-width: 170px; }
.lse-herkunft--rechnung { color: var(--lse-warn); }
.lse-w-m { min-width: 150px; }
.lse-upload-lief { margin-top: 16px; }
.lse-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; cursor: pointer; }
.lse-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--lse-primary); flex: none; }
.lse-drop--klein { min-height: 110px; }
.lse-msg--info { background: #e8eff8; border-color: var(--lse-primary); color: var(--lse-ink); }
.lse-bestaetigen { padding: 14px 16px; margin-bottom: 14px; border-radius: 6px; background: var(--lse-warn-bg); border: 1px solid var(--lse-warn-line); border-left-width: 5px; }
.lse-bestaetigen p { margin: 0 0 10px; }
.lse-bestaetigen p:last-child { margin: 0; }
.lse-btn--confirm { margin-top: 6px; border-color: var(--lse-warn); color: var(--lse-warn) !important; }
.lse-btn--confirm:hover { background: var(--lse-warn-bg); border-color: var(--lse-warn); }
.lse-status--abgelegt { background: var(--lse-soft); color: var(--lse-muted); }

/* App-Fenster (ohne Website-Design) */
html:has(body.lse-app-body) { background: #eef1f4; }
body.lse-app-body { margin: 0; min-height: 100vh; background: #eef1f4; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.lse-app { padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); }
/* Ab Basis 1.15.1 (Stand DC): volle Bildschirmbreite statt max. 1440 px – die Tools passen sich am Desktop immer dem Fenster an */
.lse-app > .lse:not(.lse-login) { max-width: none; margin: 0 auto; background: #fff; border-radius: 12px; padding: 16px 24px 32px; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08); }

/* Anmeldebildschirm */
.lse-login { min-height: calc(100vh - 48px); display: grid; place-items: center; padding: 24px 0; }
.lse-login-karte { width: 100%; max-width: 400px; background: #fff; border-radius: 14px; padding: 36px 32px 24px; box-shadow: 0 10px 30px rgba(16, 24, 40, 0.10), 0 1px 3px rgba(16, 24, 40, 0.08); }
.lse-login-kopf { text-align: center; margin-bottom: 24px; }
.lse-login-logo { width: 64px; height: 52px; font-size: 20px; border-radius: 12px; margin-bottom: 14px; }
.lse-login-titel { font-size: 1.6em; margin: 0; line-height: 1.2; color: var(--lse-ink); }
.lse-login-sub { margin: 6px 0 0; color: var(--lse-muted); font-size: 15px; }
.lse-login-form { display: flex; flex-direction: column; gap: 16px; }
.lse .lse-login-form input[type="text"], .lse .lse-login-form input[type="password"] { min-height: 48px; font-size: 17px; }
.lse-pw { position: relative; display: block; }
.lse .lse-pw input { padding-right: 96px; width: 100%; min-height: 48px; padding-left: 10px; border: 1px solid var(--lse-line); border-radius: 6px; font: inherit; font-size: 17px; }
.lse-pw-zeigen { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--lse-primary); font: inherit; font-size: 14px; font-weight: 600; padding: 8px 10px; cursor: pointer; border-radius: 4px; }
.lse-btn--block { width: 100%; min-height: 50px; font-size: 17px; }
.lse-login-fuss { text-align: center; margin: 20px 0 0; font-size: 14px; }
.lse-login .lse-msg { margin-bottom: 16px; }

/* Benutzerverwaltung */
.lse-subnav { display: flex; gap: 6px; margin: 0 0 16px; padding: 4px; background: var(--lse-soft); border-radius: 8px; width: fit-content; max-width: 100%; overflow-x: auto; }
.lse-subnav a { padding: 8px 14px; border-radius: 6px; text-decoration: none; font-weight: 600; color: var(--lse-muted); white-space: nowrap; }
.lse-subnav a.is-active { background: #fff; color: var(--lse-primary); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); }
.lse-table tr.is-gesperrt td { color: var(--lse-muted); }
.lse-projekte-zelle { max-width: 280px; white-space: normal !important; font-size: 14px; }
.lse-projekt-wahl, .lse-pw-wahl { border: 1px solid var(--lse-line); border-radius: 8px; padding: 14px 16px 6px; margin: 20px 0 0; min-width: 0; }
.lse-projekt-wahl legend, .lse-pw-wahl legend { font-weight: 700; padding: 0 6px; }
.lse-projekt-wahl > p { margin: 0 0 10px; }
.lse-projekt-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 16px; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--lse-line); }
.lse-check--stark span { font-weight: 600; }
.lse-check input:disabled + span { color: var(--lse-muted); }
.lse-pw-setzen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 12px 28px; }
.lse-pw-setzen .lse-pw, .lse-karte .lse-pw { flex: 1 1 260px; max-width: 360px; }
.lse-pw-optionen { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.lse-karte { border: 1px solid var(--lse-line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.lse-karte p { margin: 0; }
.lse-karte .lse-pw { width: 100%; max-width: none; }
.lse-link-btn { border: 0; background: none; padding: 4px 0; color: var(--lse-primary); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.lse-pw-hinweis { font-size: 13px; }
.lse-btn--outline { border-color: var(--lse-err) !important; }

/* Projektzuweisung (Personen × Projekte) */
.lse-matrix th, .lse-matrix td { text-align: center; }
.lse-matrix th:first-child, .lse-matrix td:first-child { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; min-width: 180px; }
.lse-matrix-projekt { vertical-align: bottom; min-width: 90px; max-width: 140px; white-space: normal !important; line-height: 1.25; }
.lse-matrix-alle { background: #f6f8fb; }
.lse-matrix input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--lse-primary); cursor: pointer; }
.lse-matrix input:disabled { cursor: default; }
.lse-matrix tbody tr:hover td { background: #f8fafc; }
.lse-matrix tbody tr:hover td:first-child { background: #f8fafc; }

@media (max-width: 900px) {
	.lse-split { grid-template-columns: 1fr; }
	.lse-preview { position: static; }
	.lse-preview iframe { height: 60vh; }
}
@media (max-width: 560px) {
	.lse-grid { grid-template-columns: 1fr; }
	.lse-pos-head { display: none; }
	div.lse-pos-row { grid-template-columns: minmax(0, 1fr) 80px 40px; }
	div.lse-pos-row input[name="pos_beschrieb[]"] { grid-column: 1 / -1; }
	.lse-typen { grid-template-columns: 1fr; }
	.lse-top { justify-content: stretch; }
	.lse-app { padding-left: 8px; padding-right: 8px; }
	.lse-app > .lse:not(.lse-login) { padding: 12px 12px 24px; border-radius: 8px; }
	.lse-login-karte { padding: 28px 20px 20px; }
	.lse-user-name { display: none; }
	.lse-user { order: 2; }
	.lse-projektwahl { order: 3; }
	.lse-projektwahl { width: 100%; }
	.lse-actions .lse-btn { flex: 1 1 auto; }
	.lse-actions-spacer { display: none; }
}

/* =====================================================================
   Schlichtes Design: Logo als einziges Gestaltungselement, sonst Blau,
   Weiss und helles Grau
   ===================================================================== */
.lse {
	--lse-ink: #1f2933;
	--lse-muted: #5f6b7a;
	--lse-line: #dde2e8;
	--lse-soft: #f4f6f9;
	--lse-primary: #1d4e89;
	--lse-hell: #eaf0f7;
}
.lse input[type="email"] { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--lse-line); border-radius: 6px; background: #fff; color: var(--lse-ink); font: inherit; font-size: 16px; margin: 0; }

/* Kopfzeile mit Logo */
.lse .lse-top { padding-bottom: 12px; }
.lse .lse-brand { gap: 12px; align-items: flex-end; text-decoration: none; color: inherit; }
.lse .lse-brand-mark { height: 44px; width: auto; display: block; }
.lse .lse-brand-wort { height: 16px; width: auto; display: block; }
.lse .lse-tab.is-active { color: var(--lse-primary) !important; border-bottom-color: var(--lse-primary); }
.lse .lse-typ:has(input:checked) { border-color: var(--lse-primary); background: var(--lse-hell); }

/* App-Fenster */
html:has(body.lse-app-body), body.lse-app-body { background: var(--lse-soft, #f4f6f9); }
body.lse-app-body { background: #f4f6f9; }

/* Anmeldebildschirm: nur das Logo */
.lse .lse-login-karte { padding: 40px 36px 28px; border-radius: 10px; box-shadow: 0 8px 28px rgba(16, 24, 40, 0.08), 0 1px 3px rgba(16, 24, 40, 0.06); }
.lse .lse-login-kopf { margin-bottom: 28px; }
.lse .lse-login-titel { margin: 0; line-height: 0; }
.lse img.lse-login-logo { width: 100%; max-width: 260px; height: auto; display: inline-block; background: none; border-radius: 0; margin: 0; }

/* Reiter «Daten» */
.lse-intro { max-width: 80ch; margin: -4px 0 18px; }
.lse-daten-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lse-daten-karte { border: 1px solid var(--lse-line); border-radius: 8px; padding: 16px 18px 14px; margin: 0; min-width: 0; background: #fff; }
.lse-daten-karte legend { font-weight: 700; padding: 0 6px; display: flex; align-items: center; gap: 8px; }
.lse-daten-karte > p { margin: 0 0 12px; font-size: 14px; }
.lse-zahl { display: inline-block; min-width: 24px; padding: 1px 8px; border-radius: 11px; background: var(--lse-hell); color: var(--lse-primary); font-size: 13px; text-align: center; }
.lse-daten-liste { max-height: 420px; overflow-y: auto; margin-bottom: 8px; padding-right: 2px; }
.lse .lse-daten-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; gap: 8px; align-items: center; margin-bottom: 6px; }
.lse .lse-daten-zeile input[type="text"] { min-height: 40px; padding: 6px 10px; font-size: 15px; }
.lse-verwendet { font-size: 12px; color: var(--lse-muted); min-width: 32px; text-align: right; font-variant-numeric: tabular-nums; }
.lse-hinweis { display: block; font-size: 13px; color: var(--lse-muted); margin-top: 4px; }
.lse-aufnehmen { margin: 6px 0 0; font-size: 14px; }
.lse-aufnehmen span { color: var(--lse-primary); font-weight: 600; }

/* Anmeldung: Code-Schritt und Registrierung */
.lse input[type="tel"] { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--lse-line); border-radius: 6px; background: #fff; color: var(--lse-ink); font: inherit; font-size: 16px; margin: 0; }
.lse .lse-login-form input[type="email"], .lse .lse-login-form input[type="tel"] { min-height: 48px; font-size: 17px; }
.lse-login-h { font-size: 1.15em; margin: 0 0 6px; color: var(--lse-ink); }
.lse-login-schritt > p.lse-muted { margin: 0 0 16px; font-size: 15px; }
.lse .lse-code-status { margin: -4px 0 4px; font-size: 13px; color: var(--lse-muted, #667085); text-align: center; }
.lse .is-pruefen .lse-code-feld { opacity: .6; }
.lse .is-pruefen .lse-code-status { color: var(--lse-primary, #1d4e89); font-weight: 600; }
.lse .lse-code-feld { text-align: center; font-size: 28px !important; letter-spacing: 0.35em; font-variant-numeric: tabular-nums; font-weight: 700; min-height: 60px !important; }
.lse-login-fuss--zeile { display: flex; justify-content: space-between; gap: 12px; }
.lse-login-fuss--zeile form { margin: 0; }
.lse-grid--login { gap: 12px; }
.lse-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lse-login-trenner { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--lse-muted); font-size: 13px; }
.lse-login-trenner::before, .lse-login-trenner::after { content: ""; flex: 1; height: 1px; background: var(--lse-line); }
.lse .lse-btn--ghost-blau { background: #fff; border-color: var(--lse-primary); color: var(--lse-primary) !important; text-decoration: none; }
.lse .lse-btn--ghost-blau:hover { background: var(--lse-hell); }
.lse-login .lse-check { font-size: 14px; line-height: 1.4; }
.lse-login .lse-check a { color: var(--lse-primary); }

/* Benutzerverwaltung: offene Anträge, Zwei-Faktor */
.lse-antraege { border: 1px solid var(--lse-primary); border-radius: 8px; padding: 14px 16px; margin-bottom: 22px; background: var(--lse-hell); }
.lse-antraege .lse-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--lse-primary); }
.lse-antraege .lse-table { background: #fff; }
.lse-zeile-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.lse-zeile-knoepfe form { margin: 0; }
.lse .lse-drop--polier { min-height: 200px; border-color: var(--lse-primary); background: var(--lse-hell); }
.lse .lse-drop--polier .lse-drop-title { font-size: 1.25em; }
.lse-kopf-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lse-kopf-knoepfe form { margin: 0; }
.lse .lse-h--klein { font-size: 1em; margin: 22px 0 6px; }
.lse-table tfoot td { border-top: 2px solid var(--lse-line); border-bottom: 0; padding-top: 10px; }

@media (max-width: 900px) {
	.lse-daten-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.lse .lse-brand-mark { height: 34px; }
	.lse .lse-brand-wort { height: 13px; }
	.lse .lse-login-karte { padding: 30px 20px 22px; }
}

/* Firmen */
.lse-firma-offen { background: #fff; border: 1px solid var(--lse-line); border-radius: 8px; padding: 12px 14px; margin-top: 10px; }
.lse-firma-offen-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 6px; }
.lse-firma-offen-kopf strong { font-size: 1.05em; }
.lse-firma-offen .lse-hinweis { margin: 0 0 10px; padding: 8px 12px; background: var(--lse-warn-bg); border: 1px solid var(--lse-warn-line); border-left-width: 5px; border-radius: 6px; color: var(--lse-warn); }
.lse-inline-form--eng { margin: 0; gap: 8px; flex-wrap: nowrap; }
.lse-inline-form--eng select { min-width: 200px; }
@media (max-width: 560px) { .lse-inline-form--eng { flex-wrap: wrap; } }

/* Startseite mit Tool-Kacheln */
.lse-start-gruss { margin: 8px 0 4px; font-size: 1.5em; font-weight: 700; color: var(--lse-ink); }
.lse-start-sub { margin: 0 0 24px; color: var(--lse-muted); }
.lse-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.lse-kachel { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; border: 1px solid var(--lse-line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--lse-ink); min-height: 190px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.lse-kachel:hover { border-color: var(--lse-primary); box-shadow: 0 6px 20px rgba(29,78,137,.12); transform: translateY(-2px); }
.lse-kachel-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--lse-hell); color: var(--lse-primary); display: grid; place-items: center; }
.lse-kachel-icon svg { width: 28px; height: 28px; }
.lse-kachel-titel { font-size: 1.25em; font-weight: 700; margin: 4px 0 0; }
.lse-kachel-text { margin: 0; color: var(--lse-muted); font-size: 14.5px; line-height: 1.45; }
.lse-kachel-fuss { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.lse-kachel-oeffnen { font-weight: 700; color: var(--lse-primary); font-size: 14px; white-space: nowrap; }
.lse-kachel--admin .lse-kachel-icon { background: #eef0f3; color: var(--lse-ink); }
.lse-kachel--bald { background: #fafbfc; border-style: dashed; cursor: default; }
.lse-kachel--bald:hover { border-color: var(--lse-line); box-shadow: none; transform: none; }
.lse-kachel--bald .lse-kachel-icon { background: #f0f2f5; color: #8a94a3; }
.lse-kachel--bald .lse-kachel-titel { color: #5f6b7a; }
.lse-kacheln-trenner { grid-column: 1 / -1; margin: 10px 0 -4px; font-size: 13px; font-weight: 700; color: var(--lse-muted); text-transform: uppercase; letter-spacing: .06em; }
/* Kopfzeile innerhalb eines Tools */
.lse-tool-pfad { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.lse-tool-zurueck { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--lse-primary); padding: 6px 10px 6px 6px; border-radius: 6px; }
.lse-tool-zurueck:hover { background: var(--lse-hell); }
.lse-tool-name { font-weight: 700; font-size: 1.05em; color: var(--lse-ink); padding-left: 10px; border-left: 2px solid var(--lse-line); }
a.lse-kachel, a.lse-kachel:hover { text-decoration: none; }
.lse-kachel .lse-chip { white-space: normal; }
.lse-bald { text-align: center; padding: 40px 24px; }
.lse-bald .lse-kachel-icon { margin: 0 auto 12px; }
@media (max-width: 560px) { .lse-kacheln { grid-template-columns: 1fr; } .lse-kachel { min-height: 0; } }

/* Startseite: Tool-Symbole im App-Stil (ab Basismodul 2.9.0). Computer: Symbol und Name. Handy (ab 2.9.1): nur das Symbol. */
.lse-symbole { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 26px 12px; }
.lse-sym { --lse-sym-farbe: #334155; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 2px 14px; border-radius: 18px; color: var(--lse-ink); text-decoration: none; transition: background-color .15s; -webkit-tap-highlight-color: transparent; }
a.lse-sym, a.lse-sym:hover { text-decoration: none; color: var(--lse-ink); }
a.lse-sym:hover { background: rgba(255,255,255,.75); }
a.lse-sym:focus-visible { outline: 3px solid var(--lse-primary); outline-offset: 2px; }
.lse-sym-icon { position: relative; width: 96px; height: 96px; margin-bottom: 6px; border-radius: 24px; display: grid; place-items: center; color: #fff; background: var(--lse-sym-farbe); background: linear-gradient(145deg, color-mix(in srgb, var(--lse-sym-farbe) 76%, #fff), var(--lse-sym-farbe)); box-shadow: 0 8px 18px -8px var(--lse-sym-farbe), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .15s, box-shadow .15s; }
.lse-sym-icon svg { width: 46px; height: 46px; stroke-width: 1.6; }
a.lse-sym:hover .lse-sym-icon { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 24px -10px var(--lse-sym-farbe), inset 0 1px 0 rgba(255,255,255,.25); }
a.lse-sym:active .lse-sym-icon { transform: scale(.96); }
.lse .lse-sym-name, .lse-sym-name { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.25; color: inherit; hyphens: manual; overflow-wrap: anywhere; }
.lse-sym-chip { display: none !important; margin-top: 2px; font-size: 12px !important; white-space: normal !important; }
.lse-sym--gesperrt .lse-sym-chip { display: inline-block !important; }
.lse-sym-zahl { position: absolute; top: -7px; right: -7px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; border: 3px solid #fff; background: #e11d48; color: #fff; font-size: 13px; font-weight: 700; line-height: 1; display: grid; place-items: center; box-sizing: border-box; }
.lse-sym-zahl--info { background: var(--lse-primary); }
.lse-sym-zahl--neutral { background: #8a94a3; }
.lse-sym-zahl--punkt { min-width: 20px; width: 20px; height: 20px; padding: 0; top: -4px; right: -4px; }
.lse-sym-schloss { position: absolute; right: -6px; bottom: -6px; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--lse-line); color: var(--lse-warn); display: grid; place-items: center; }
.lse-sym-schloss svg { width: 15px !important; height: 15px !important; }
.lse-sym--bald .lse-sym-icon, .lse-sym--zu .lse-sym-icon { background: #e3e7ec; color: #8a94a3; box-shadow: none; }
.lse-sym--bald .lse-sym-name, .lse-sym--zu .lse-sym-name { color: #5f6b7a; }
.lse-sym--gesperrt { cursor: default; }
.lse-symbole-trenner { grid-column: 1 / -1; margin: 6px 0 -10px; font-size: 13px; font-weight: 700; color: var(--lse-muted); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 640px) {
	.lse-symbole { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 18px 6px; }
	.lse-sym { padding: 4px 0; gap: 0; border-radius: 14px; }
	a.lse-sym:hover { background: transparent; }
	.lse-sym-icon { width: 64px; height: 64px; border-radius: 17px; margin-bottom: 0; }
	.lse-sym-icon svg { width: 32px; height: 32px; }
	.lse .lse-sym-name, .lse-sym-name { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
	.lse-sym-chip, .lse-sym--gesperrt .lse-sym-chip { display: none !important; }
	.lse-sym-zahl { min-width: 22px; height: 22px; font-size: 12px; padding: 0 5px; top: -6px; right: -6px; border-width: 2px; }
	.lse-sym-zahl--punkt { min-width: 16px; width: 16px; height: 16px; padding: 0; top: -3px; right: -3px; }
	.lse-symbole-trenner { margin-bottom: -6px; }
}

/* Plattform-Verwaltung: Reihenfolge der Tools */
.lbk-reihe { list-style: none; margin: 0 0 14px; padding: 0; max-width: 640px; }
.lbk-reihe-zeile { display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin-bottom: 8px; border: 1px solid var(--lse-line); border-radius: 10px; background: #fff; touch-action: none; user-select: none; -webkit-user-select: none; }
.lbk-reihe-griff { cursor: grab; color: #a3acb8; font-weight: 800; letter-spacing: -2px; padding: 6px 6px 6px 4px; font-size: 16px; line-height: 1; }
.lbk-reihe-nr { width: 22px; text-align: right; color: var(--lse-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.lbk-reihe-icon { width: 36px; height: 36px; flex: none; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--lse-sym-farbe, #8a94a3); font-weight: 700; }
.lbk-reihe-icon svg { width: 20px; height: 20px; }
.lbk-reihe-name { flex: 1; min-width: 0; }
.lbk-reihe-name strong { display: block; }
.lbk-reihe-name small { color: var(--lse-muted); }
.lbk-reihe-knopf { border: 1px solid var(--lse-line); background: #fff; border-radius: 6px; width: 32px; height: 30px; cursor: pointer; color: var(--lse-ink); font-size: 13px; }
.lbk-reihe-knopf:hover { border-color: var(--lse-primary); color: var(--lse-primary); }
.lbk-reihe-knopf:disabled { opacity: .35; cursor: default; }
.lbk-reihe-zeile.is-ziehen { border-color: var(--lse-primary); box-shadow: 0 12px 26px -8px rgba(16,24,40,.3); position: relative; z-index: 2; background: #f7faff; }
.lbk-reihe-zeile.is-ziehen .lbk-reihe-griff { cursor: grabbing; }
.lbk-reihe-geaendert { color: var(--lse-warn); font-weight: 600; margin-left: 10px; }

/* =====================================================================
   Kamera-Scanner (Vollbild)
   ===================================================================== */
html.lse-scan-offen, html.lse-scan-offen body { overflow: hidden; }
.lse-scan { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; z-index: 100000; background: #000; color: #fff; display: flex; flex-direction: column; }
.lse-scan[hidden], .lse-scan [hidden] { display: none !important; }
.lse-scan-kamera { position: relative; flex: 1; overflow: hidden; }
.lse-scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.lse-scan-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lse-scan-oben { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 14px 12px; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.lse-scan-seite { font-weight: 700; font-size: 15px; }
.lse-scan-rund { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.lse-scan-unten { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 16px calc(env(safe-area-inset-bottom, 0px) + 40px); background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.lse-scan-hinweis { background: rgba(0,0,0,.6); padding: 8px 14px; border-radius: 18px; font-size: 15px; font-weight: 600; text-align: center; max-width: 92%; }
.lse-scan-ausloeser { width: 74px; height: 74px; border-radius: 50%; border: 5px solid #fff; background: rgba(255,255,255,.25); cursor: pointer; }
.lse-scan-ausloeser:active { background: #fff; }
.lse-scan-tipp { font-size: 12px; opacity: .8; text-align: center; }
.lse-scan-blitz { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.lse-scan-blitz.an { animation: lse-blitz .35s ease-out; }
@keyframes lse-blitz { from { opacity: .85; } to { opacity: 0; } }
.lse-scan-pruefen { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #1b1f24; padding: max(14px, env(safe-area-inset-top)) 12px calc(env(safe-area-inset-bottom, 0px) + 16px); gap: 14px; }
.lse-scan-frage { flex: none; display: flex; flex-direction: column; gap: 10px; }
.lse-scan-bild { flex: 1; min-height: 0; display: flex; align-items: flex-start; justify-content: center; overflow: auto; }
.lse-scan-bild img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.5); }
.lse-scan-info { text-align: center; font-size: 16px; line-height: 1.4; }
.lse-scan-info span { display: block; font-size: 13px; opacity: .7; margin-top: 2px; }
.lse-scan-aktionen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lse-scan-aktionen .lse-btn { min-height: 52px; font-size: 16px; }
.lse-scan-aktionen [data-a="fertig"] { grid-column: 1 / -1; }
.lse-scan-aktionen [data-a="fertig"] { order: -1; }

/* Knopf «Lieferschein fotografieren» */
.lse .lse-kamera-btn { width: 100%; min-height: 60px; font-size: 18px; margin-bottom: 12px; gap: 10px; }
.lse .lse-kamera-btn svg { width: 24px; height: 24px; }
.lse-oder { text-align: center; color: var(--lse-muted); font-size: 14px; margin: 0 0 12px; }

/* Fusszeile: Copyright und Datenschutz (unten links) */
.lse-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--lse-line); font-size: 13px; color: var(--lse-muted); text-align: left; }
.lse .lse-fuss a { color: var(--lse-muted); text-decoration: underline; text-underline-offset: 2px; }
.lse .lse-fuss a:hover { color: var(--lse-primary); }
.lse-login { align-content: center; }
.lse-login .lse-fuss { width: 100%; max-width: 400px; margin: 14px 0 0; border-top: 0; padding: 0 4px; justify-content: flex-start; }

/* Seite Datenschutz */
.lse-dse { max-width: 820px; }
.lse-dse h2 { font-size: 1.1em; margin: 28px 0 8px; color: var(--lse-primary); }
.lse-dse p, .lse-dse li { line-height: 1.55; }
.lse-dse ul { padding-left: 22px; }
.lse-dse .lse-table { margin: 4px 0 12px; }
.lse-dse .lse-table td { vertical-align: top; }
.lse-dse .lse-table td:first-child { width: 32%; font-weight: 600; }

/* Abrechnung der KI-Seiten */
.lse-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lse .lse-abr { min-width: 980px; }
.lse .lse-abr th[scope="row"] { text-align: left; font-weight: 600; white-space: nowrap; }
.lse .lse-abr td { vertical-align: top; padding: 8px 6px; }
.lse .lse-abr td a { font-weight: 700; font-size: 15px; }
.lse .lse-abr-check { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 4px; font-size: 11px; color: var(--lse-muted); white-space: nowrap; cursor: pointer; }
.lse .lse-abr-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--lse-ok, #2f7d4f); }
.lse .lse-abr-verrechnet { background: #e9f5ee; }
.lse .lse-abr-verrechnet .lse-abr-check { color: #2f7d4f; font-weight: 600; }
.lse .lse-abr tfoot th, .lse .lse-abr tfoot td { border-top: 2px solid var(--lse-line); }
.lse .lse-abr-projekte { list-style: none; margin: 0 0 14px; padding: 0; max-width: 560px; }
.lse .lse-abr-projekte li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--lse-line); font-size: 14px; }
.lse .lse-abr-chf { display: block; font-size: 11.5px; color: var(--lse-muted); white-space: nowrap; margin-top: 1px; }
.lse .lse-abr-preise { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; padding: 8px 12px; border-radius: 8px; background: var(--lse-soft); font-size: 14px; }
.lse .lse-abr-kosten { max-width: 560px; margin-bottom: 14px; }

.lse .lse-firma-projekte { margin: 4px 0 8px; padding-left: 20px; }
.lse .lse-firma-projekte li { padding: 2px 0; }
.lse .lse-matrix-projekt small { font-weight: 400; color: var(--lse-muted); }

/* Posteingang */
.lse .lse-pe-adresse { display: flex; flex-direction: column; gap: 4px; background: var(--lse-hell); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.lse .lse-pe-adr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lse .lse-pe-adr code { font-size: 16px; font-weight: 700; color: var(--lse-primary); background: #fff; border: 1px solid var(--lse-line); border-radius: 6px; padding: 4px 8px; user-select: all; word-break: break-all; }
.lse .lse-pe-hinweis { font-size: 13px; }
.lse .lse-pe-einrichten { font-size: 13px; margin-top: 4px; }
.lse .lse-pe-einrichten summary { cursor: pointer; color: var(--lse-primary); }
.lse .lse-pe-mail { border: 1px solid var(--lse-line); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; background: #fff; }
.lse .lse-pe-mail--erledigt { background: #f6faf7; border-color: #cfe7d8; }
.lse .lse-pe-kopf strong { display: block; font-size: 1.05em; }
.lse .lse-pe-kopf .lse-muted { font-size: 13px; }
.lse .lse-pe-text { margin: 8px 0; font-size: 13px; }
.lse .lse-pe-text summary { cursor: pointer; color: var(--lse-primary); }
.lse .lse-pe-text pre { white-space: pre-wrap; font-family: inherit; background: var(--lse-soft); padding: 10px; border-radius: 6px; max-height: 240px; overflow: auto; }
.lse .lse-pe-anhaenge { list-style: none; margin: 10px 0; padding: 0; }
.lse .lse-pe-anhaenge li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; border-top: 1px solid var(--lse-line); }
.lse .lse-pe-anhaenge .lse-check { margin: 0; }
.lse .lse-pe-datei { font-weight: 600; word-break: break-all; }
.lse .lse-pe-anhaenge select { width: auto; min-width: 150px; }
.lse .lse-pe-ergebnis { flex-basis: 100%; font-size: 13px; }
.lse .lse-pe-ergebnis:empty { display: none; }
.lse .lse-pe-ergebnis--arbeit { color: var(--lse-muted); }
.lse .lse-pe-ergebnis--ok { color: #2f7d4f; }
.lse .lse-pe-ergebnis--fehler { color: #b42318; }
.lse .lse-pe-fuss { display: flex; flex-wrap: wrap; gap: 8px; }
.lse .lse-pe-fuss form { margin: 0; }
.lse .lse-pe-fertig { margin: 10px 0 0; color: #2f7d4f; }
.lse .lse-pe-erledigt { margin-top: 22px; }
.lse .lse-pe-erledigt summary { cursor: pointer; font-weight: 600; }

/* Offerten/AB: Positionstexte und Gliederung der Positionsliste nach Dokument */
.lse .lse-w-xl { min-width: 320px; width: 100%; }
.lse textarea.lse-pos-text { min-height: 38px; resize: vertical; font: inherit; font-size: 14px; line-height: 1.35; padding: 7px 8px; border: 1px solid var(--lse-line); border-radius: 6px; }
.lse .lse-pr-gruppe th { background: var(--lse-hell); text-align: left; padding: 10px 10px; border-top: 2px solid var(--lse-line); font-weight: 400; }
.lse .lse-pr-gruppe th > * { margin-right: 12px; }
.lse .lse-pr-gruppe-titel { font-weight: 700; color: var(--lse-primary); }
.lse .lse-pr-gruppe a { font-size: 13px; }
textarea.lse-pos-text { field-sizing: content; max-height: 160px; }
.lse input[name="pr_pos_nr[]"], .lse input[name="pos_nr[]"] { width: 76px; min-width: 0; }

/* Projekt endgültig löschen */
.lse .lse-gefahr { border: 1px solid #f1b8b2; background: #fff7f6; border-radius: 10px; padding: 16px 18px; margin-top: 28px; }
.lse .lse-gefahr .lse-h { color: #b42318; }
.lse .lse-loeschen-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 10px; }
.lse .lse-loeschen-form .lse-field { flex: 1 1 260px; max-width: 360px; margin: 0; }
.lse .lse-btn--danger:disabled { opacity: .45; cursor: not-allowed; }
.lse .lse-gefahr .lse-btn--danger { background: #b42318; color: #fff !important; border-color: #b42318; }

.lse .lse-pe-projekt .lse-field { max-width: 460px; }
.lse .lse-pe-varianten { font-size: 13px; line-height: 1.5; margin: 8px 0 0; }
/* Ausgeblendete Elemente bleiben verborgen, auch wenn eine Klasse «display» setzt */
.lse [hidden] { display: none !important; }
.lse .lse-pe-pruefliste { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; }
.lse .lse-pe-pruefliste li { padding: 3px 0; }
.lse .lse-pe-pruefliste li.ok { color: #2f7d4f; }
.lse .lse-pe-pruefliste li.nok { color: #8a5a00; font-weight: 600; }

/* Sortierbare Tabellen */
.lse .lse-sort-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; white-space: nowrap; border-radius: 4px; }
.lse .lse-sort-btn:hover { color: var(--lse-primary); }
.lse .lse-sort-btn:focus-visible { outline: 2px solid var(--lse-primary); outline-offset: 2px; }
.lse .lse-sort-btn::after { content: "↕"; font-size: 11px; opacity: .35; }
.lse th[aria-sort="ascending"] .lse-sort-btn::after { content: "▲"; opacity: .9; color: var(--lse-primary); }
.lse th[aria-sort="descending"] .lse-sort-btn::after { content: "▼"; opacity: .9; color: var(--lse-primary); }
.lse th.num .lse-sort-btn { justify-content: flex-end; }

/* Aktionen am Zeilenanfang (Lieferscheinliste) */
.lse .lse-zeilen-aktionen { white-space: nowrap; width: 1%; }
.lse .lse-zeilen-aktionen form { display: inline; margin: 0; }
.lse .lse-icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; margin-right: 2px; border: 1px solid var(--lse-line); border-radius: 6px; background: #fff; color: var(--lse-ink); cursor: pointer; vertical-align: middle; text-decoration: none; }
.lse .lse-icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lse .lse-icon-btn:hover { border-color: var(--lse-primary); color: var(--lse-primary); }
.lse .lse-icon-btn--loeschen:hover { border-color: #b42318; color: #b42318; background: #fff7f6; }

/* Bemerkung und Nachvollziehbarkeit */
.lse .lse-bemerkung-feld textarea { width: 100%; min-height: 54px; resize: vertical; font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--lse-line); border-radius: 6px; }
.lse .lse-bemerkung-feld { margin-bottom: 12px; }
.lse .lse-bemerkung-zelle { white-space: normal; min-width: 180px; max-width: 280px; font-size: 13px; color: var(--lse-ink); overflow-wrap: anywhere; }
.lse .lse-wer { white-space: nowrap; font-size: 13px; }
.lse .lse-wer small { font-size: 11.5px; }
.lse .lse-protokoll { font-size: 13px; margin: -4px 0 14px; }

/* Vormerken beim Erfassen */
.lse .lse-vorgaben { border: 1px solid var(--lse-line); border-radius: 10px; padding: 10px 14px 12px; margin: 0 0 14px; background: var(--lse-soft); }
.lse .lse-vorgaben legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.lse .lse-vorgaben-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 14px; margin-bottom: 6px; }
.lse .lse-vorgaben .lse-field { margin: 0; }
.lse .lse-ls-treffer { display: inline-block; margin-top: 2px; padding: 1px 6px; border-radius: 4px; background: #fff4c2; color: #6b5300; font-size: 11.5px; font-weight: 600; }

/* ---------- Firmen: Lieferanten, Subunternehmer, Nebenunternehmer (1.35) ---------- */
.lse .lse-nowrap { white-space: nowrap; }
.lse .lse-inline { display: inline; margin: 0; }
.lse .lse-anzahl { font-size: 15px; font-weight: 600; margin-left: 4px; }
.lse .lse-unt-block { border: 1px solid var(--lse-line); border-radius: 10px; padding: 12px 14px 14px; margin: 16px 0 0; min-width: 0; }
.lse .lse-unt-block legend { font-weight: 700; font-size: 15px; padding: 0 6px; }
.lse .lse-unt-block [data-lse-add] { margin-top: 10px; }
.lse .lse-unt-loeschen { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--lse-line); }
.lse .lse-kontakt-zeile { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr 1.3fr 32px; gap: 8px; align-items: end; padding: 8px 0; border-bottom: 1px solid var(--lse-line); }
.lse .lse-kontakt-zeile .lse-field { margin: 0; min-width: 0; }
.lse .lse-kontakt-zeile input { width: 100%; box-sizing: border-box; }
.lse .lse-kontakt-zeile .lse-pos-del { margin-bottom: 6px; }
.lse .lse-kontakte { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lse .lse-kontakte li { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; background: var(--lse-soft); border-radius: 8px; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.lse .lse-zust { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--lse-primary); }
.lse .lse-kontakte a[href^="tel:"], .lse .lse-kontakt-kurz a[href^="tel:"] { font-weight: 700; white-space: nowrap; }
.lse .lse-vcard { align-self: flex-start; font-size: 12px; margin-top: 3px; }
.lse .lse-kontakt-box { margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; background: #eef4fb; border: 1px solid #cfe0f3; }
.lse .lse-kontakt-kopf { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-bottom: 8px; font-size: 14px; }
.lse .lse-kontakt-box .lse-kontakte, .lse .lse-firma-detail .lse-kontakte { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.lse .lse-kontakt-box .lse-kontakte li { background: #fff; }
.lse .lse-kontakt-kurz { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.lse .lse-kontakt-kurz small { color: var(--lse-muted); }
.lse .lse-firmen-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.lse .lse-firma-karte { border: 1px solid var(--lse-line); border-radius: 10px; padding: 12px 14px; background: #fff; min-width: 0; }
.lse .lse-firma-karte[hidden] { display: none; }
.lse .lse-firma-karte--gross { max-width: 720px; }
.lse .lse-firma-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.lse .lse-firma-karte h3 { margin: 0 0 4px; font-size: 16.5px; }
.lse .lse-firma-karte h3 a { color: var(--lse-ink) !important; text-decoration: none; }
.lse .lse-firma-karte h3 a:hover { color: var(--lse-primary) !important; }
.lse .lse-firmendaten { display: flex; flex-direction: column; gap: 1px; margin: 8px 0; font-size: 14px; }
.lse .lse-firma-bem { margin: 8px 0 0; font-size: 13px; color: var(--lse-muted); }
.lse .lse-firma-detail { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--lse-line); border-radius: 10px; }
.lse .lse-firma-detail .lse-firmendaten { flex-direction: row; flex-wrap: wrap; gap: 2px 18px; }
.lse .lse-firmen-kopf .lse-pos-filter { width: 280px; max-width: 100%; margin: 0; }
.lse .lse-uebernehmen { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; padding: 12px 14px; background: var(--lse-soft); border-radius: 10px; margin-bottom: 8px; }
.lse .lse-uebernehmen .lse-field { margin: 0; flex: 1; min-width: 240px; }
.lse .lse-daten-verweis h3 { margin: 0 0 6px; font-size: 15px; }
@media (max-width: 900px) {
	.lse .lse-kontakt-zeile { grid-template-columns: 1fr 1fr 32px; }
	.lse .lse-kontakt-zeile .lse-pos-del { grid-column: 3; grid-row: 1; }
}
@media (max-width: 640px) {
	.lse .lse-firmen-karten { grid-template-columns: 1fr; }
	.lse .lse-firmen-kopf, .lse .lse-firmen-kopf .lse-pos-filter { width: 100%; }
	.lse .lse-kontakt-zeile { grid-template-columns: 1fr 32px; }
	.lse .lse-kontakt-zeile .lse-pos-del { grid-column: 2; }
	.lse .lse-kontakt-zeile .lse-field { grid-column: 1; }
}
.lse .lse-projekt-plus { min-width: 38px; height: 38px; padding: 0 10px; font-size: 20px; line-height: 1; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* Scanner: Auto-Schalter, Fortschrittsring um den Auslöser */
.lse-scan-rechts { display: inline-flex; align-items: center; gap: 8px; }
.lse-scan-auto { height: 36px; padding: 0 14px; border-radius: 18px; border: 2px solid rgba(255,255,255,.7); background: rgba(0,0,0,.45); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.lse-scan-auto[aria-pressed="true"] { background: #2ea05a; border-color: #2ea05a; }
.lse-scan-hinweis.is-gut { background: rgba(46, 160, 90, .9); }
.lse-scan-ausloeser-rahmen { position: relative; width: 88px; height: 88px; display: grid; place-items: center; }
.lse-scan-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.lse-scan-ring circle { fill: none; stroke: #2ea05a; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }

/* Firmenlogo */
.lse-start-firma { margin: 4px 0 14px; }
.lse-start-firma .lse-firmenlogo { display: block; max-width: min(360px, 70vw); }
.lse .lse-login-firma { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 14px 0 4px; }
.lse-login-firma span { font-size: 12px; color: var(--lse-muted); text-transform: uppercase; letter-spacing: .08em; }
.lse-login-firma .lse-firmenlogo { max-width: 240px; }
.lse-logo-vorschau { margin: 14px 0; }
.lse-logo-bild { display: inline-block; padding: 16px 20px; border: 1px dashed var(--lse-line); border-radius: 10px; background: repeating-conic-gradient(#f4f6f9 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.lse-logo-bild .lse-firmenlogo { display: block; max-width: 100%; }
.lse-logo-form { display: grid; gap: 10px; max-width: 640px; }
.lse-logo-form .lse-check { display: block; }

/* ---------- Anleitung im Tool (Knopf oben rechts, Seitenfenster) ---------- */
.lse-hilfe-knopf { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; font-size: 14px; color: var(--lse-primary); background: var(--lse-hell, #eaf0f7); border: 1px solid transparent; border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.lse-hilfe-knopf:hover { border-color: var(--lse-primary); }
@media (max-width: 640px) { .lse-hilfe-knopf span { display: none; } }
html.lse-hilfe-offen { overflow: hidden; }
.lse-hilfe[hidden] { display: none; }
.lse-hilfe { position: fixed; inset: 0; z-index: 10000; }
.lse-hilfe-hg { position: absolute; inset: 0; background: rgba(15, 23, 42, .42); }
.lse-hilfe-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: #fff; box-shadow: -12px 0 40px rgba(0, 0, 0, .22); display: flex; flex-direction: column; animation: lse-hilfe-rein .2s ease-out; }
@keyframes lse-hilfe-rein { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.lse-hilfe-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--lse-line); }
.lse-hilfe-kopf strong { font-size: 17px; }
.lse-hilfe-zu { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--lse-muted); padding: 0 4px; }
.lse-hilfe-inhalt { flex: 1; overflow: auto; padding: 20px 24px 40px; outline: none; -webkit-user-select: text; user-select: text; }
@media print { .lse-hilfe { display: none !important; } }

/* Inhalt der Anleitung */
.lse-anleitung { --a-blau: #1d4e89; --a-nacht: #0f3466; --a-gelb: #ffd54a; --a-hell: #eaf0f7; font-size: 15px; line-height: 1.55; color: var(--lse-ink); }
.lse-anleitung h3 { font-size: 18px; margin: 24px 0 10px; color: var(--a-nacht); display: flex; align-items: baseline; gap: 8px; }
.lse-anleitung h3 .abschnitt { display: none; }
.lse-anleitung p { margin: 0 0 12px; }
.lse-anleitung .kopf { display: flex; align-items: center; gap: 16px; background: linear-gradient(110deg, #071a33, var(--a-blau)); color: #fff; border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
.lse-anleitung .kopf .ikon { flex: none; width: 52px; height: 52px; border-radius: 12px; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; color: var(--a-gelb); }
.lse-anleitung .kopf .ikon svg { width: 30px; height: 30px; }
.lse-anleitung .kopf .k-nr { display: none; }
.lse-anleitung .kopf h2 { margin: 0; color: #fff; font-size: 22px; }
.lse-anleitung .kopf p { margin: 4px 0 0; color: #c9dbf2; font-size: 14px; }
.lse-anleitung .nutzen { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; margin: 0 0 16px; padding: 0; list-style: none; }
.lse-anleitung .nutzen li { position: relative; padding-left: 24px; font-size: 14px; }
.lse-anleitung .nutzen li::before { content: ""; position: absolute; left: 0; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--a-gelb); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px #e5b400; }
.lse-anleitung .schritte { list-style: none; margin: 0 0 14px; padding: 0; counter-reset: s; }
.lse-anleitung .schritte li { counter-increment: s; position: relative; padding: 0 0 10px 34px; }
.lse-anleitung .schritte li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 50%; background: var(--a-blau); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.lse-anleitung .bild { margin: 10px 0 18px; }
.lse-anleitung .bild .rahmen { border: 1px solid var(--lse-line); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(15, 52, 102, .1); }
.lse-anleitung .bild .leiste { display: flex; align-items: center; gap: 5px; padding: 6px 10px; background: #eef2f7; border-bottom: 1px solid var(--lse-line); font-size: 11px; color: var(--lse-muted); }
.lse-anleitung .bild .leiste i { width: 8px; height: 8px; border-radius: 50%; background: #cfd6df; }
.lse-anleitung .bild .leiste span { margin-left: 8px; }
.lse-anleitung .bild img { display: block; width: 100%; height: auto; -webkit-user-drag: none; }
.lse-anleitung .bild figcaption { font-size: 13px; color: var(--lse-muted); margin-top: 6px; }
.lse-anleitung .bild.klein { max-width: 80%; margin-left: auto; margin-right: auto; }
.lse-anleitung .tipp { display: flex; gap: 12px; background: #fff8db; border: 1px solid #f2d36b; border-radius: 8px; padding: 10px 14px; margin: 10px 0 18px; font-size: 14px; }
.lse-anleitung .tipp::before { content: "Tipp"; flex: none; font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8a5a00; padding-top: 2px; }
.lse-anleitung .tipp.info { background: var(--a-hell); border-color: #c4d6ee; }
.lse-anleitung .tipp.info::before { content: "Gut zu wissen"; color: var(--a-blau); }
.lse-anleitung .tabelle { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 18px; }
.lse-anleitung .tabelle th { text-align: left; background: var(--a-hell); color: var(--a-nacht); padding: 7px 10px; }
.lse-anleitung .tabelle td { padding: 7px 10px; border-bottom: 1px solid var(--lse-line); vertical-align: top; }
.lse-anleitung .hinweis-box { margin-top: 18px; background: var(--a-hell); border-left: 4px solid var(--a-blau); border-radius: 6px; padding: 12px 14px; font-size: 14px; }
.lse-anleitung .handy-reihe { display: flex; gap: 20px; align-items: flex-start; margin: 10px 0 18px; flex-wrap: wrap; }
.lse-anleitung .handy { width: 190px; border: 8px solid #1b2430; border-radius: 24px; overflow: hidden; background: #fff; }
.lse-anleitung .handy img { display: block; width: 100%; height: 340px; object-fit: cover; object-position: top; }
.lse-anleitung .handy-text { flex: 1; min-width: 220px; font-size: 14px; }
.lse-anleitung .kapitel-trenner { margin: 36px 0 0; border: 0; border-top: 1px solid var(--lse-line); }

/* ---------- Projektdaten (ab 2.1) ---------- */
.lse .lse-pd-knopf { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: var(--lse-primary); border-color: var(--lse-primary); color: #fff !important; text-decoration: none; }
.lse .lse-pd-knopf:hover { background: #163d6c; border-color: #163d6c; }
.lse .lse-projekt-anzeige { gap: 6px; padding: 7px 12px; border: 1px solid var(--lse-line); border-radius: 8px; background: var(--lse-hell, #eaf0f7); font-size: 15px; max-width: 520px; }
.lse .lse-projekt-anzeige strong { color: var(--lse-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lse .lse-projekt-anzeige-l { font-size: 13px; font-weight: 600; color: var(--lse-muted); }
.lse .lse-pd-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 6px; }
.lse .lse-pd-titel { font-size: 22px; margin: 0; }
.lse .lse-pd-titel span { color: var(--lse-muted); font-weight: 600; font-size: 17px; margin-left: 6px; }
.lse .lse-pd-reiter { margin-bottom: 14px; }
.lse .lse-pd-unter { align-items: center; margin-top: 4px; }
.lse .lse-pd-grund th { width: 220px; color: var(--lse-muted); font-weight: 600; }
.lse .lse-pd-h3 { font-size: 16px; margin: 20px 0 8px; }
.lse .lse-pd-zahlen { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0; }
.lse .lse-pd-liste { margin: 6px 0 0; padding-left: 18px; }
.lse .lse-obj-tabelle td { vertical-align: middle; }
@media (max-width: 720px) { .lse .lse-pd-knopf span { display: inline; } .lse .lse-projekt-anzeige { width: 100%; max-width: none; } }
@media (max-width: 720px) {
	.lse .lse-projektwahl { flex-wrap: wrap; }
	.lse .lse-projektwahl select { min-width: 0; flex: 1 1 calc(100% - 60px); max-width: 100%; }
	.lse .lse-projektwahl label { flex: 1 1 100%; }
	.lse .lse-pd-knopf { flex: 1 1 auto; justify-content: center; }
}
.lse .lse-abr .lse-abr-firma th { background: var(--lse-soft); color: var(--lse-primary); font-size: 15px; padding-top: 10px; border-top: 2px solid var(--lse-line); }
.lse .lse-abr .lse-abr-art { white-space: nowrap; font-size: 13.5px; padding-left: 18px; }
.lse .lse-abr .lse-abr-summe td { border-bottom: 1px solid var(--lse-line); }

/* Benutzerverwaltung: Filter und Löschen */
.lse .lse-filter--benutzer .lse-filter-suche { grid-column: span 2; }
@media (max-width: 520px) { .lse .lse-filter--benutzer .lse-filter-suche { grid-column: auto; } }
.lse .lse-benutzer-aktionen { white-space: nowrap; }
.lse .lse-benutzer-aktionen a + a { margin-left: 12px; }
.lse .lse-link-gefahr { color: var(--lse-err); }
.lse .lse-link-gefahr:hover, .lse .lse-link-gefahr:focus-visible { color: var(--lse-err); text-decoration: underline; }

/* Mitarbeiter: Handy einrichten und PIN (ab 2.5.0) */
.lse .lse-hz-code { text-align: center; font: 700 22px/1.2 ui-monospace, Consolas, monospace !important; letter-spacing: .12em; text-transform: uppercase; }
.lse-hz-hinweis { font-size: 13px; margin: -6px 0 0; }
.lse-hz-name { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 0 0 18px; font-size: 18px; }
.lse-hz-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--lse-primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px; letter-spacing: .03em; }
.lse-login-fuss--ma { margin-top: 8px; }
.lse-hz-zugang > p { margin: 0 0 10px; }
.lse-hz-qr-karte { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; border: 1px solid var(--lse-line); border-radius: 10px; padding: 16px; margin: 12px 0; background: #fbfcfe; }
.lse-hz-qr { width: 180px; height: 180px; flex: none; background: #fff; }
.lse-hz-qr svg { width: 100%; height: 100%; display: block; }
.lse-hz-qr-text { flex: 1 1 260px; min-width: 0; }
.lse-hz-qr-text p { margin: 0 0 10px; }
.lse-hz-code-gross { font: 700 18px/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.lse-hz-link input { width: 100%; font-size: 13px; }
.lse-hz-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.lse-hz-aktion { margin: 0; display: inline; }
@media (max-width: 560px) { .lse-hz-qr { width: 100%; height: auto; aspect-ratio: 1; max-width: 240px; margin: 0 auto; } }
.lse input[type="password"].lse-code-feld { width: 100%; max-width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--lse-line); border-radius: 6px; background: #fff; color: var(--lse-ink); margin: 0; }

/* Projektdaten › Objekte: Filter, Sortierung, Ansicht «Liste mit Pfad» (ab Basismodul 2.7) */
.lse .lse-obj-filter { margin-bottom: 8px; }
.lse .lse-obj-filter .lse-field { margin: 0; }
.lse .lse-obj-filter-suche { grid-column: span 2; }
@media (max-width: 520px) { .lse .lse-obj-filter-suche { grid-column: auto; } }
.lse .lse-obj-zaehler { margin: 0 0 8px; font-size: 13.5px; }
.lse .lse-obj-tabelle .lse-obj-vor { display: none; }
.lse .lse-obj-tabelle.is-liste .lse-obj-vor { display: inline; }
.lse .lse-obj-tabelle.is-liste .lse-obj-pfeil { display: none; }
.lse .lse-obj-tabelle.is-liste td.lse-obj-name { padding-left: 12px !important; }
.lse .lse-obj-tabelle tr.lse-obj-kontext td { opacity: .5; }
.lse .lse-obj-tabelle tr.lse-obj-kontext td:last-child { opacity: 1; }
.lse .lse-obj-art select, .lse .lse-obj-art input { width: 100%; }
.lse .lse-obj-art input { margin-top: 6px; }

/* ------------------------------------------------------------------ */
/* Warnungen einheitlich gelb (ab Basismodul 2.10.0)                    */
/* ------------------------------------------------------------------ */
/* Allgemeines gelbes Warnfeld, auch für die Tools: <div class="lse-warnfeld">…</div> */
.lse-warnfeld, .lse .lse-warnfeld { display: block; margin: 0 0 12px; padding: 10px 14px; background: #fff3c4; border: 1px solid #f2c200; border-left-width: 5px; border-radius: 6px; color: #4a3800; font-size: 15px; line-height: 1.45; }
.lse-warnfeld p { margin: 0 0 4px; }
.lse-warnfeld p:last-child { margin: 0; }
.lse-warnfeld--klein { padding: 6px 10px; font-size: 13px; }
.lse-warnfeld a { color: #1d4e89; }

/* Rückfrage/Hinweis anstelle von confirm()/alert() (lse-frage.js) */
.lbk-frage-hg { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 32, .45); font-family: inherit; }
.lbk-frage { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; background: #fff3c4; border: 1px solid #f2c200; border-left: 6px solid #f2b705; border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); color: #3d2e00; font-size: 16px; line-height: 1.45; animation: lbk-frage-ein .12s ease-out; }
@keyframes lbk-frage-ein { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.lbk-frage-inhalt { display: flex; gap: 12px; align-items: flex-start; padding: 18px 18px 8px; }
.lbk-frage-symbol { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #f2b705; color: #3d2e00; font-weight: 800; font-size: 18px; line-height: 1; }
.lbk-frage-text { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; font-weight: 500; }
.lbk-frage-knoepfe { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 10px 18px 16px; }
.lbk-frage-knopf { min-height: 44px; padding: 0 18px; border: 1px solid #c9a200; border-radius: 6px; background: #fff; color: #1f2933; font: inherit; font-weight: 600; cursor: pointer; }
.lbk-frage-knopf:hover { border-color: #1f2933; }
.lbk-frage-knopf:focus-visible { outline: 3px solid #1d4e89; outline-offset: 2px; }
.lbk-frage-knopf--ja { background: #1d4e89; border-color: #1d4e89; color: #fff; }
.lbk-frage-knopf--ja:hover { background: #163d6c; border-color: #163d6c; }
.lbk-frage-knopf--ja.is-gefahr { background: #b42318; border-color: #b42318; }
.lbk-frage-knopf--ja.is-gefahr:hover { background: #8f1c13; border-color: #8f1c13; }
@media (max-width: 480px) {
	.lbk-frage-knoepfe { flex-direction: column-reverse; }
	.lbk-frage-knopf { width: 100%; }
}

/* Objekte: Häkchen «Foto-App» / «Nur Desktop» (ab Basismodul 2.11.0) */
.lse .lse-obj-tabelle th.lse-obj-sicht, .lse .lse-obj-tabelle td.lse-obj-sicht { text-align: center; white-space: nowrap; width: 1%; }
.lse .lse-obj-haken { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 32px; cursor: pointer; }
.lse .lse-obj-haken input { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.lse .lse-obj-tabelle td.is-geerbt { opacity: .45; }
.lse .lse-obj-tabelle td.is-gespeichert { background: #e3f5e8; transition: background .3s; }
.lse .lse-obj-sicht-form .lse-check { display: flex; gap: 8px; align-items: baseline; margin: 4px 0; }
