:root {
  --bg: #F4F6F9;
  --card: #fff;
  --txt: #0f172a;
  --sub: #64748b;
  --brd: #e2e8f0;
  --pri: #1976D2;
  --pri-h: #1565C0;
  --pri-l: #eff6ff;
  --grn: #10B981;
  --red: #C8102E;
  --ylw: #f59e0b;
  --blk: #1e1e1e;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(15,23,42,.05);
  --shadow-h: 0 6px 18px rgba(15,23,42,.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--txt); font-size: 15px; }

.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--brd); margin-bottom: 16px; }

.btn { padding: 8px 15px; border: 1px solid var(--brd); border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s; background: #fff; }
.btn-pri { background: var(--pri); color: #fff; border-color: var(--pri); }
.btn-pri:hover { background: var(--pri-h); }
.btn-reset { background: #fff; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-sm { padding: 4px 10px; font-size: 12px; }

.ef-input { width: 100%; padding: 8px 10px; border: 1px solid var(--brd); border-radius: 6px; font-size: 14px; margin-bottom: 8px; }

.login-overlay { position: fixed; inset: 0; background: var(--bg); z-index: 300; display: flex; align-items: center; justify-content: center; }
.login-box { background: var(--card); padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--brd); box-shadow: var(--shadow); width: 320px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.login-box h1 { font-size: 19px; margin-bottom: 8px; }
.login-box .btn { width: 100%; }
.login-error { color: var(--red); font-size: 13px; }

.prio-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; color: #fff; }
.prio-badge.prio-S { background: var(--blk); }
.prio-badge.prio-A { background: var(--red); }
.prio-badge.prio-B { background: var(--ylw); color: #000; }
.prio-badge.prio-C { background: #94a3b8; }

.status-badge { padding: 4px 9px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.status-offen { background: #fee2e2; color: #991b1b; }
.status-laeuft { background: #fef3c7; color: #92400e; }
.status-erledigt { background: #dcfce7; color: #166534; }

.ampel-chip { display: inline-block; padding: 7px 13px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; transition: transform .15s; }
.ampel-chip:hover { transform: scale(1.05); }
.ampel-chip.rot { background: #fee2e2; color: #991b1b; }
.ampel-chip.gelb { background: #fef3c7; color: #92400e; }
.ampel-chip.gruen { background: #dcfce7; color: #166534; }
.ampel-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal { background: #fff; border-radius: var(--radius); width: min(480px, 92vw); max-height: 85vh; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; position: relative; }
.modal-scroll { overflow-y: auto; padding: 20px; flex: 1; min-height: 0; }
.modal-btns { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--brd); flex-shrink: 0; margin-top: 0; }
.modal-btns .btn { font-size: 13px; padding: 8px 12px; white-space: nowrap; }
.ef-row { margin-bottom: 8px; }
.ef-label { display: block; font-size: 12px; color: var(--sub); margin-bottom: 3px; }

.el-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.el-head-title { display: flex; align-items: center; gap: 8px; }
.type-ico { display: inline-flex; align-items: center; color: var(--pri); vertical-align: middle; }
.type-ico svg { width: 16px; height: 16px; }
.el-head-title .type-ico svg { width: 22px; height: 22px; }
.el-empty { color: var(--sub); font-size: 13px; padding: 12px 0; }

table { border-collapse: collapse; font-size: 14px; width: 100%; }
table.el-table { border-collapse: separate; border-spacing: 0 6px; }
table.el-table th, table.el-table td { white-space: nowrap; }
@media (max-width: 600px) { table.el-table th, table.el-table td { white-space: normal; font-size: 12px; padding: 6px 8px; } table.el-table { border-spacing: 0 4px; } .item-card { padding: 12px; } .item-problem { font-size: 13px; } .item-meta { font-size: 11px; } }
table.el-table th.col-flex, table.el-table td.col-flex { white-space: normal; width: 100%; }
table.el-table th { font-weight: 600; color: var(--sub); font-size: 13px; text-align: left; padding: 6px 12px; border-bottom: none; }
table.el-table td { padding: 12px; text-align: left; background: var(--card); border-top: 1px solid var(--brd); border-bottom: 1px solid var(--brd); }
table.el-table td:first-child { border-left: 1px solid var(--brd); border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
table.el-table td:last-child { border-right: 1px solid var(--brd); border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
table.el-table tr[data-id] { cursor: pointer; transition: box-shadow .15s, transform .1s; }
table.el-table tr[data-id]:hover td { background: #f0f4ff; }
table.el-table tr[data-id]:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
table.el-table tr[data-id].done-row td { opacity: .4; }


th { font-weight: 600; color: var(--sub); font-size: 13px; text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--brd); }
td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--brd); }
.item-card { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 10px; cursor: pointer; }
.done-card { opacity: .35; }

.pinned-card { border-left: 3px solid var(--ylw); }
.item-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; gap: 8px; }
.item-linie { font-size: 13px; font-weight: 600; }
.item-problem { font-size: 14px; margin-bottom: 6px; }
.item-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--sub); }
.item-notiz { font-size: 12px; color: var(--pri); font-style: italic; margin-top: 4px; padding: 4px 8px; background: #f0f4ff; border-radius: 4px; white-space: pre-line; }
.item-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.prio-bar { height: 3px; border-radius: 2px; margin-top: 6px; max-width: 140px; }
.item-card.spaetschicht-row { border-left: 4px solid #7c3aed; background: #f5f3ff; }

.item-actions .act-done, .item-actions .act-del { padding: 6px 9px; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.dash-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; text-align: center; }
.dash-num { font-size: 28px; font-weight: 700; color: var(--pri); }
.dash-label { font-size: 12px; color: var(--sub); margin-top: 4px; }
.dash-section-title { font-size: 14px; font-weight: 600; margin: 4px 0 10px; color: var(--sub); }

.rte-wrap {}
.rte-hint { color: var(--sub); font-size: 13px; margin-bottom: 12px; }
.rte-table th:not(:first-child), .rte-table td:not(:first-child) { text-align: center; }
.rte-btns { display: flex; gap: 8px; margin-top: 14px; }
.rte-status { font-size: 13px; color: var(--grn); margin-top: 8px; }
.pin-btn { cursor: pointer; font-size: 15px; opacity: .4; transition: opacity .2s; margin-right: 6px; }
.pin-btn.pinned { opacity: 1; color: var(--ylw); }
td.row-actions { white-space: nowrap; text-align: center; vertical-align: middle; }
.row-actions-inner { display: inline-flex; align-items: center; gap: 4px; }
.act-done { background: #16a34a; color: #fff; border-color: #16a34a; font-weight: 700; }
.act-done:hover { background: #15803d; }
.act-del { background: #ef4444; color: #fff; border-color: #ef4444; }
.act-del:hover { background: #dc2626; }
tr.done-row .act-del { background: #fecaca; color: #7f1d1d; border-color: #fecaca; opacity: .7; }
tr.done-row .act-del:hover { opacity: 1; }

.nsw-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; }
.nsw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brd); transition: all .2s; }
.nsw-dot.active { width: 24px; border-radius: 4px; background: var(--pri); }
.nsw-dot.done { background: var(--pri); }
.nsw-h { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.nsw-sub { font-size: 12px; color: var(--sub); margin-bottom: 16px; }
.nsw-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.req { color: var(--red); font-size: 14px; }
.nsw-chip { padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; background: var(--card); border: 1.5px solid var(--brd); cursor: pointer; transition: all .15s; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.nsw-chip:hover { border-color: var(--pri); background: #f0f4ff; }
.nsw-chip.sel { background: var(--pri); color: #fff; border-color: var(--pri); }
.chip-meta { display: block; font-size: 10px; opacity: .7; margin-top: 2px; }
.nsw-input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--brd); border-radius: 8px; font-size: 14px; background: var(--card); margin-bottom: 8px; }
.nsw-sel { display: flex; align-items: center; padding: 10px 14px; background: linear-gradient(135deg,#eff6ff,#f0f4ff); border-radius: 8px; margin-bottom: 8px; font-size: 13px; gap: 8px; }
.nsw-sel-icon { font-size: 16px; color: var(--pri); }
.nsw-sel-text { flex: 1; }
.nsw-sel-edit { border: none; background: none; color: var(--pri); cursor: pointer; font-size: 14px; padding: 6px; }
.nsw-prio { flex: 1; padding: 16px 8px; border-radius: 8px; font-size: 15px; font-weight: 700; border: 2px solid var(--brd); background: var(--card); color: var(--txt); cursor: pointer; text-align: center; }
.nsw-team { font-size: 11px; color: var(--sub); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin: 12px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--brd); }
.nsw-summary { border-radius: 8px; background: var(--card); border: 1.5px solid var(--brd); overflow: hidden; margin-bottom: 16px; }
.nsw-srow { display: flex; padding: 10px 14px; border-bottom: 1px solid var(--brd); font-size: 13px; }
.nsw-slbl { width: 100px; color: var(--sub); font-weight: 500; flex-shrink: 0; }
.nsw-sval { flex: 1; font-weight: 500; }

.fs2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, max-content)); gap: 8px; margin-bottom: 14px; max-height: 50vh; overflow-y: auto; }
.fs2-tile { background: var(--bg); border: 1px solid var(--brd); border-radius: 8px; padding: 10px 14px; text-align: center; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s; max-width: 220px; }
.fs2-tile:hover { background: #eff6ff; border-color: var(--pri); }
.fs2-tile.sel { background: var(--pri); color: #fff; border-color: var(--pri); }
.fs2-tile .cnt { display: block; font-size: 10px; opacity: .7; margin-top: 2px; }
.fs2-steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.fs2-step { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--brd); color: var(--sub); }
.fs2-step.active { background: var(--pri); color: #fff; }
.fs2-step.done { background: #dbeafe; color: var(--pri); }

.ef-checklist { margin-bottom: 8px; }
.ef-check-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ef-check-row { display: flex; align-items: center; gap: 8px; }
.ef-check-row .ef-check-text { flex: 1; padding: 7px 10px; border: 1px solid var(--brd); border-radius: 6px; font-size: 13px; }
.ef-check-row .ef-check-done { width: 17px; height: 17px; flex-shrink: 0; cursor: pointer; }
.ef-check-del { background: none; border: none; color: var(--sub); cursor: pointer; font-size: 13px; padding: 4px 6px; flex-shrink: 0; }
.ef-check-del:hover { color: var(--red); }
.checklist-view { display: flex; flex-direction: column; gap: 6px; }
.checklist-view-row { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.checklist-view-row.done { color: var(--sub); text-decoration: line-through; }
.checklist-view-row input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

/* ===== Startseite (V3-Design) ===== */
.home-wrap { max-width: 1280px; margin: 0 auto; padding: 4px 0 24px; }
.home-date { font-size: 13px; color: var(--sub); margin-bottom: 12px; display: none; }
/* Fehlersuche-Leiste */
#homeFehlersuche { max-width: 900px; margin: 0 auto 22px; }
.hfs-card { background: #fff; border: 2px solid var(--pri); border-radius: var(--radius-lg); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; box-shadow: 0 1px 3px rgba(25,118,210,.10); transition: background .15s, box-shadow .15s, border-color .15s; }
.hfs-card:hover { background: #f5f9ff; border-color: var(--pri-h); box-shadow: var(--shadow-h); }
.hfs-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hfs-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--pri-l); color: var(--pri); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s, color .15s; }
.hfs-card:hover .hfs-ico { background: var(--pri); color: #fff; }
.hfs-title { font-size: 17px; font-weight: 700; color: var(--pri); letter-spacing: -.01em; }
.hfs-sub { font-size: 12px; color: var(--sub); margin-top: 2px; }
.hfs-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hfs-kbd { font-size: 11px; font-family: ui-monospace, Menlo, monospace; font-weight: 600; color: #475569; background: #f1f5f9; border: 1px solid var(--brd); border-radius: 6px; padding: 4px 8px; }
.hfs-kbd kbd { font-family: inherit; }
.hfs-btn { background: var(--pri); color: #fff; border-radius: 12px; padding: 9px 16px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s; }
.hfs-card:hover .hfs-btn { background: var(--pri-h); }
.hfs-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.hfs-chips-lbl { font-size: 11px; color: var(--sub); font-weight: 500; }
.hfs-chip { font-size: 12px; background: #f1f5f9; color: #334155; border: 1px solid var(--brd); border-radius: 8px; padding: 5px 10px; cursor: pointer; transition: background .15s, color .15s; }
.hfs-chip:hover { background: #dbeafe; color: #1e3a8a; }
.hfs-chip-cnt { color: var(--sub); font-size: 11px; margin-left: 2px; }
/* Breite Kacheln Mein/Dashboard */
.home-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 680px; margin: 0 auto 22px; }
.home-top.single { grid-template-columns: minmax(0, 1fr); max-width: 340px; }
/* Raster */
.home-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; padding: 0; }
.home-row { display: contents; }
.home-tile { background: var(--card); border: 1px solid var(--brd); border-radius: var(--radius-lg); padding: 20px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; position: relative; min-height: 135px; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; }
.home-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); border-color: var(--pri); background: #fbfcfe; }
.home-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--pri-l); color: var(--pri); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s, color .2s; }
.home-ico svg { width: 24px; height: 24px; }
.home-tile:hover .home-ico { background: var(--pri); color: #fff; }
.home-lbl { font-size: 14px; font-weight: 700; color: var(--txt); text-align: center; transition: color .2s; }
.home-tile:hover .home-lbl { color: var(--pri); }
.home-sub { font-size: 12px; color: var(--sub); display: flex; align-items: center; gap: 6px; }
.home-badge { position: absolute; top: 10px; right: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 0 6px; height: 22px; line-height: 22px; border-radius: 11px; min-width: 22px; text-align: center; }
.home-badge.warn { background: #f59e0b; color: #fff; }
.home-wide { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 0; padding: 18px 20px; gap: 14px; }
.home-wide .hw-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.home-wide .home-lbl { text-align: left; }
.hw-chev { color: #94a3b8; display: flex; transition: transform .2s, color .2s; }
.home-wide:hover .hw-chev { color: var(--pri); transform: translateX(2px); }
.home-wide .home-badge { top: 50%; right: 44px; transform: translateY(-50%); }
.hw-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pri); display: inline-block; }
.hw-dot.red { background: var(--red); }
.hw-dot.green { background: var(--grn); }
.home-fehlersuche { display: none; }
@media (max-width: 1100px) { .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-tile { min-height: 118px; padding: 16px 10px; }
  .home-top, .home-top.single { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 16px; max-width: none; }
  .home-wide { padding: 12px 14px; gap: 10px; min-height: 0; }
  .home-wide .hw-chev { display: none; }
  .home-wide .home-badge { right: 10px; }
  .home-wide .home-ico { width: 40px; height: 40px; }
  .hfs-card { padding: 12px; }
  .hfs-right { display: none; }
  .hfs-kbd { display: none; }
  .hfs-sub { display: none; }
  .hfs-title { font-size: 15px; }
  #homeFehlersuche { margin-bottom: 16px; }
}
/* Marke (Header/Login) */
.hd-name { font-size: 20px; font-weight: 900; letter-spacing: -.02em; color: var(--txt); }
.hd-x { color: var(--grn); }
.hd-claim { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--sub); }
.hd-brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.hd-logo-box { width: 40px; height: 40px; border-radius: 12px; background: #0f172a; border: 1px solid #334155; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hd-logo-box.sm { width: 30px; height: 30px; border-radius: 9px; }
.hd-logo-img { max-height: 28px; vertical-align: middle; display: block; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; text-align: left; }

/* Von renderSectionShell() erzeugt -- genutzt von Desktop UND Mobile, daher
   hier statt in desktop.css. margin/padding von 20px muss zum padding des
   jeweiligen Aussenrahmens passen (.main bei Desktop, .tile-view bei
   Mobile -- beide nutzen deshalb ebenfalls 20px, siehe dort). */
.section { display: none; }
.section.active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.scroll-content { flex: 1; overflow-y: auto; overflow-x: hidden; min-height: 0; padding-bottom: 40px; }

.back-header { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--brd); flex-shrink: 0; background: var(--bg); margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.back-btn { border: 1px solid #dbeafe; background: var(--pri-l); font-size: 14px; cursor: pointer; padding: 8px 16px; color: var(--pri); display: flex; align-items: center; gap: 6px; font-weight: 600; border-radius: 8px; }
.back-title { font-size: 17px; font-weight: 600; flex: 1; text-align: center; padding-right: 90px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-height: 38px; flex-shrink: 0; background: var(--bg); padding: 8px 20px 12px; margin: 0 -20px; }
.toolbar select, .toolbar input[type="date"] { padding: 8px 12px; border: 1px solid var(--brd); border-radius: 6px; font-size: 14px; }
.toolbar input[type="text"] { width: 200px; padding: 8px 12px; border: 1px solid var(--brd); border-radius: 6px; font-size: 14px; }

/* Feature-Modul-Styles: werden von Desktop UND Mobile genutzt (die Module
   selbst sind plattformneutral, siehe features/*.js). Grid-Layouts nutzen
   auto-fit/auto-fill, wodurch sie auf schmalen Bildschirmen automatisch auf
   eine Spalte zusammenfallen -- keine separate Mobile-Version noetig. */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi-card { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); cursor: pointer; }
.kpi-val { font-size: 26px; font-weight: 700; }
.kpi-lbl { font-size: 13px; color: var(--sub); margin-top: 4px; }
.kpi-card.red .kpi-val { color: var(--red); }
.kpi-card.ylw .kpi-val { color: var(--ylw); }
.dash-list { list-style: none; }
.dash-list li { padding: 8px 0; border-bottom: 1px solid var(--brd); display: flex; justify-content: space-between; align-items: flex-start; font-size: 14px; cursor: pointer; gap: 8px; }
.dash-list li span:first-child { flex: 1; min-width: 0; }
.dash-list li .meta { flex-shrink: 0; text-align: right; font-size: 12px; color: var(--sub); white-space: nowrap; }
.we-overview { margin-bottom: 16px; }
.we-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; }
.we-col h4 { font-size: 13px; color: var(--sub); margin-bottom: 6px; font-weight: 500; }
.we-linie { font-size: 13px; padding: 4px 10px; background: #f0f4ff; border-radius: 6px; display: inline-block; margin: 2px; }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.admin-grid.capped { grid-template-columns: repeat(auto-fit, minmax(280px, 480px)); }
.dev-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden; }
.dev-card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; }
.dev-arrow { font-size: 10px; color: var(--sub); transition: transform .2s; }
.dev-card.open .dev-arrow { transform: rotate(90deg); }
.dev-card-body { display: none; padding: 0 18px 18px; }
.dev-card.open .dev-card-body { display: block; }
.admin-field-table { width: 100%; border: none; font-size: 13px; }
.admin-field-table td { border: none; padding: 4px 0; }
.admin-field-table td:first-child { width: 100px; color: var(--sub); font-weight: 500; }

.chart-card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.chart-card.wide { grid-column: 1 / -1; }
.chart-card .table-scroll { overflow-x: auto; }
.chart-filter { margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.chart-filter select, .chart-filter input[type="date"] { padding: 6px 10px; border: 1px solid var(--brd); border-radius: 6px; font-size: 13px; }
.abm-line { margin-bottom: 14px; padding: 12px; background: var(--bg); border-radius: 8px; }
.abm-line h4 { font-size: 14px; font-weight: 600; color: var(--pri); margin-bottom: 8px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.abm-empty { text-align: center; padding: 20px; color: var(--sub); font-size: 14px; }
.bauteil-warn { background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid var(--red); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; font-size: 13px; }

.linien-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.linien-card { background: var(--card); border-radius: 10px; padding: 16px; text-align: center; box-shadow: var(--shadow); }
.lname { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.we-labels { font-size: 11px; color: var(--sub); }
.we-toggle-row { display: flex; gap: 6px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.we-toggle { padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 500; cursor: pointer; border: 1px solid var(--brd); background: var(--card); color: var(--sub); }
.we-toggle.active { background: var(--pri); color: #fff; border-color: var(--pri); }

.ma-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ma-card { background: var(--card); border-radius: 8px; padding: 12px; box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center; }
.ma-name { font-size: 14px; font-weight: 500; }
.ma-team { font-size: 12px; color: var(--sub); }
.ma-tel { font-size: 13px; color: var(--pri); }

.badge-spaetschicht { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; background: #7c3aed; color: #fff; white-space: nowrap; }
.spaet-btn.pinned { color: #7c3aed; opacity: 1; }
table.el-table tr[data-id].spaetschicht-row td:first-child { border-left: 4px solid #7c3aed; }
table.el-table tr[data-id].spaetschicht-row td { background: #f5f3ff; }
.fs-progress { display: flex; gap: 8px; margin-bottom: 14px; justify-content: center; }
.fs-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--brd); color: var(--sub); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.fs-dot.active { background: var(--pri); color: #fff; }

.toast-container { position: fixed; top: 20px; right: 20px; z-index: 400; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 20px; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); animation: slideIn .3s; }
.toast.black { background: var(--blk); }
.toast.red { background: var(--red); }
.toast.ylw { background: #f59e0b; color: #000; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.btn-print { display: inline-flex; align-items: center; gap: 6px; background: #eff6ff; color: var(--pri); border: 1px solid #dbeafe; font-weight: 600; }
.btn-print:hover { background: #dbeafe; }

.fs-breadcrumb { font-size: 13px; color: var(--pri); margin-bottom: 10px; padding: 6px 10px; background: #f0f4ff; border-radius: 6px; font-weight: 500; }
.fs-hint { font-size: 13px; color: var(--sub); margin-bottom: 12px; }
.fs-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; max-height: 50vh; overflow-y: auto; }
.fs-option { padding: 10px 12px; background: var(--bg); border: 1px solid var(--brd); border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.fs-option.active { background: #eff6ff; border-color: var(--pri); }
.fs-option-name { display: block; font-size: 13px; font-weight: 500; }
.fs-option-meta { display: block; font-size: 11px; color: var(--sub); margin-top: 2px; }
.fs-tipbox { margin: 12px 0; padding: 10px 12px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; font-size: 12px; }
.fs-result { padding: 8px 10px; background: var(--bg); border-radius: 8px; margin-bottom: 6px; font-size: 13px; }

.wiz-modal { width: min(480px, 92vw); height: min(600px, 85vh); max-height: 85vh; display: flex; flex-direction: column; padding: 20px; overflow: hidden; }
.wiz-head { flex-shrink: 0; }
.wiz-mode-tag { font-size: 11px; font-weight: 700; color: var(--pri); text-transform: uppercase; letter-spacing: .03em; }
.wiz-body { flex: 1; overflow-y: auto; min-height: 0; }
.wiz-foot { flex-shrink: 0; padding-top: 10px; border-top: 1px solid var(--brd); margin-top: 10px; }
.wiz-footer-btns { margin-top: 0; }

.su-section-title { font-size: 14px; font-weight: 600; margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--pri); color: var(--pri); }
.su-entry { padding: 10px 12px; margin-bottom: 8px; background: var(--bg); border-radius: 8px; font-size: 13px; cursor: pointer; }
.proto-point:hover { background: #eff6ff; }
.su-meta { font-size: 12px; color: var(--sub); margin-top: 4px; }

.view-row { display: flex; padding: 9px 0; border-bottom: 1px solid var(--brd); font-size: 14px; align-items: baseline; }
.view-lbl { width: 120px; flex-shrink: 0; font-weight: 600; color: var(--sub); font-size: 13px; }
.view-val { flex: 1; word-break: break-word; }
.view-notes { margin-top: 14px; padding: 12px; background: var(--bg); border-radius: 8px; font-size: 13px; white-space: pre-line; word-break: break-word; }

.presence-pill-sm { display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 8px; border-radius: 12px; background: #dbeafe; color: var(--pri); font-size: 11px; font-weight: 600; white-space: nowrap; }
.rem-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-bottom: 1px solid var(--brd); flex-wrap: wrap; }
.rem-item:last-child { border-bottom: none; }
.rem-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
@media (max-width: 500px) { .rem-item { flex-direction: column; } .rem-actions { width: 100%; } }

.modal-close-x { position: absolute; top: 8px; right: 8px; background: none; border: none; font-size: 26px; color: #9ca3af; cursor: pointer; padding: 2px 8px; line-height: 1; z-index: 10; }
.modal-close-x:hover { color: #111; }


/* Mobile collapsible filter toolbar */
.tb-mobile-bar { display: flex; gap: 8px; align-items: center; }
.tb-mobile-bar .btn { flex: 1; text-align: center; padding: 10px 12px; }
.tb-filter-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; background: #fff; border: 1px solid var(--brd); font-weight: 600; font-size: 14px; color: var(--txt); }
.tb-filter-badge { display: inline-flex; align-items: center; justify-content: center; background: var(--pri); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; }
.tb-filter-panel { display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; }
.tb-filter-panel input[type="text"] { grid-column: 1; width: 100%; padding: 9px 10px; border: 1px solid var(--brd); border-radius: 6px; font-size: 16px; height: 42px; }
.tb-filter-panel select { width: 100%; padding: 9px 10px; border: 1px solid var(--brd); border-radius: 6px; font-size: 16px; height: 42px; }
.tb-filter-panel .btn { font-size: 14px; padding: 9px 10px; text-align: center; grid-column: 1 / -1; height: 42px; }
.tb-date-group { display: flex; align-items: center; gap: 6px; grid-column: 1 / -1; }
.tb-date-label { font-size: 13px; font-weight: 600; color: var(--sub); white-space: nowrap; }
.tb-date-group input[type="date"] { padding: 9px 8px; border: 1px solid var(--brd); border-radius: 6px; font-size: 16px; -webkit-appearance: none; flex: 1; min-width: 0; height: 42px; }

@media (max-width: 600px) {
  .toolbar { padding: 8px 0 6px; margin-left: 0; margin-right: 0; display: block; }
  .scroll-content { padding-bottom: 0; }
}


/* Entwicklerbereich Kacheln */
.dev-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; max-width: 900px; }
.dev-tile { background: var(--card); border-radius: var(--radius); padding: 20px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; text-align: center; transition: transform .15s, box-shadow .15s; }
.dev-tile:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.dev-tile-icon { display: flex; align-items: center; justify-content: center; color: var(--pri); }
.dev-tile-icon svg { width: 28px; height: 28px; }
.dev-tile-label { font-size: 13px; font-weight: 600; color: var(--txt); }
.dev-tile-header { display: none; }
.dev-tile .dev-card-body { display: none; }
.dev-tile-grid + .dev-tile-grid { margin-top: 14px; }

.presence-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 15px; background: var(--pri); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }

/* =====================================================================
   V3-DESIGN: Modals, Bereichs-Rahmen, Filter, Formulare, Buttons
   (nur Optik – keine Klassen/IDs geaendert, alle Funktionen bleiben)
   ===================================================================== */
/* Buttons */
.btn { border-radius: 10px; font-weight: 600; border-color: #cbd5e1; color: #334155; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn:hover { background: #f8fafc; border-color: #94a3b8; }
.btn-pri { background: var(--pri); color: #fff; border-color: var(--pri); box-shadow: 0 1px 2px rgba(25,118,210,.25); }
.btn-pri:hover { background: var(--pri-h); border-color: var(--pri-h); color: #fff; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #a50d26; border-color: #a50d26; color: #fff; }
.btn-sm { border-radius: 8px; }
.btn:focus-visible, .ef-input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(25,118,210,.25); }

/* Formularfelder (Modals, Formulare) */
.ef-input { border: 1px solid #cbd5e1; border-radius: 12px; padding: 9px 12px; background: #fff; color: var(--txt); transition: border-color .15s, box-shadow .15s; }
.ef-input:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px rgba(25,118,210,.18); }
textarea.ef-input { line-height: 1.45; }
.ef-label { font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 4px; }

/* Modal-Grundgeruest wie Vorlage */
.modal-overlay { background: rgba(15,23,42,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); padding: 12px; }
.modal { border-radius: 16px; border: 1px solid var(--brd); box-shadow: 0 25px 50px -12px rgba(15,23,42,.35); max-height: 92vh; animation: v3Zoom .2s ease-out; }
@keyframes v3Zoom { from { transform: scale(.97); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal, .modal-overlay { animation: none; } }
.modal-scroll { padding: 20px 22px; }
/* Erste Ueberschrift im Modal wird zur Kopfleiste (grau, Trennlinie, bleibt oben stehen) */
.modal-scroll > h3:first-child { margin: -20px -22px 18px !important; padding: 16px 56px 16px 22px; background: #f8fafc; border-bottom: 1px solid var(--brd); font-size: 17px; font-weight: 700; color: var(--txt); position: sticky; top: -20px; z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.modal-scroll[style*="padding:20px"] > h3:first-child { margin: -20px -20px 18px !important; padding-left: 20px; }
.modal-close-x { top: 10px; right: 10px; width: 36px; height: 36px; padding: 0; font-size: 24px; color: #94a3b8; border-radius: 12px; display: flex; align-items: center; justify-content: center; z-index: 20; transition: background .15s, color .15s; }
.modal-close-x:hover { color: #334155; background: #e2e8f0; }
.modal-btns { background: #f8fafc; padding: 12px 18px; gap: 8px; }
.modal-btns .btn { border-radius: 10px; }
.view-row { border-bottom: 1px solid #f1f5f9; }

/* Bereichs-Rahmen (alle Kacheln): Kopf wie Modal-Header */
.back-header { background: #f8fafc; border-bottom: 1px solid var(--brd); padding-top: 12px; padding-bottom: 12px; gap: 14px; }
.back-btn { border-radius: 12px; padding: 8px 14px; font-size: 13px; flex-shrink: 0; margin-bottom: 0; }
.back-btn:hover { background: var(--pri); color: #fff; border-color: var(--pri); }
.sec-head { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; justify-content: center; padding-right: 90px; }
.sec-ico { width: 40px; height: 40px; border-radius: 12px; background: #dbeafe; color: var(--pri); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sec-ico svg { width: 20px; height: 20px; }
.sec-head-txt { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.sec-head .back-title { font-size: 18px; font-weight: 700; text-align: left; padding-right: 0; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-sub { font-size: 12px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }

/* Filterleiste wie Vorlage: abgerundet, Suchfeld mit Lupe, Fokus-Ring */
.toolbar { padding-top: 12px; padding-bottom: 12px; gap: 8px; }
.toolbar select, .toolbar input[type="date"], .toolbar input[type="text"], .toolbar input[type="search"],
.tb-filter-panel input[type="text"], .tb-filter-panel select, .tb-date-group input[type="date"] {
  border: 1px solid #cbd5e1; border-radius: 12px; background-color: #fff; color: var(--txt); font-weight: 500; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: border-color .15s, box-shadow .15s; }
.toolbar select:focus, .toolbar input:focus, .tb-filter-panel input:focus, .tb-filter-panel select:focus, .tb-date-group input:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px rgba(25,118,210,.18); }
.toolbar input[type="text"], .tb-filter-panel input[type="text"] {
  padding-left: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 11px center; }
.toolbar input[type="text"] { width: 260px; }
.toolbar .btn, .tb-filter-panel .btn, .tb-mobile-bar .btn { border-radius: 12px; }
.tb-filter-toggle { border-radius: 12px; border-color: #cbd5e1; }
.tb-filter-badge { background: var(--pri); }

/* Karten, Listen, Tabellen */
.item-card { border: 1px solid var(--brd); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.item-card:hover { border-color: #93c5fd; box-shadow: var(--shadow-h); }
.item-card.spaetschicht-row { border-left: 4px solid #7c3aed; }
.pinned-card { border-left: 3px solid var(--ylw); }
table.el-table td:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
table.el-table td:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }
table.el-table tr[data-id]:hover td { background: #f5f9ff; }
.dash-card { border: 1px solid var(--brd); border-radius: 14px; }
.dash-num { color: var(--pri); }
.dev-card, .dev-tile { border: 1px solid var(--brd); border-radius: 14px; }
.dev-tile:hover { border-color: var(--pri); }
.dev-tile-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--pri-l); }
.dev-tile:hover .dev-tile-icon { background: var(--pri); color: #fff; }
.status-badge { border-radius: 6px; font-weight: 600; }
.prio-badge { border-radius: 6px; }

@media (max-width: 600px) {
  .sec-head { padding-right: 0; justify-content: flex-start; }
  .sec-sub { display: none; }
  .sec-ico { width: 34px; height: 34px; border-radius: 10px; }
  .sec-head .back-title { font-size: 16px; }
  .toolbar input[type="text"] { width: 100%; }
  .modal-overlay { padding: 8px; }
}
/* Bestell-Formular hat eigene Kopfleiste -> gleiche Optik */
.modal > div[style*="border-bottom:1px solid var(--brd)"]:first-child { background: #f8fafc; }

/* ===== Online-Badge + Liste (presenceBadge.js) ===== */
.pres-badge { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid #bbf7d0; background: #f0fdf4; color: #166534; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: inherit; }
.pres-badge:hover { background: #dcfce7; }
.pres-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); flex-shrink: 0; }
.mobile-header .pres-badge { height: 28px; padding: 0 10px; }
.pres-pop { position: fixed; z-index: 450; width: 260px; max-height: 60vh; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--brd); border-radius: 12px; box-shadow: 0 10px 30px rgba(15,23,42,.18); overflow: hidden; }
.pres-pop.sheet { left: 0; right: 0 !important; bottom: 0; top: auto !important; width: auto; max-height: 70vh; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom); }
.pres-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--brd); font-size: 13px; font-weight: 700; color: var(--txt); }
.pres-pop-cnt { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: #dcfce7; color: #166534; font-size: 11px; text-align: center; }
.pres-pop-x { border: none; background: none; font-size: 22px; line-height: 1; color: #64748b; cursor: pointer; padding: 0 4px; }
.pres-pop-body { overflow-y: auto; padding: 6px 0; }
.pres-pop-row { display: flex; align-items: center; gap: 10px; padding: 7px 14px; font-size: 13px; }
.pres-pop-av { width: 28px; height: 28px; border-radius: 50%; background: #dbeafe; color: var(--pri); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pres-pop-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--txt); }
.pres-pop-ago { font-size: 11px; color: #16a34a; white-space: nowrap; }
.pres-pop-empty { padding: 12px 14px; font-size: 13px; color: var(--sub); }
.pres-pop.sheet .pres-pop-row { padding: 10px 16px; font-size: 15px; }

/* ===== App-Logo (InstandProX) ===== */
.hd-logo-app { width: 40px; height: 40px; object-fit: contain; display: block; flex-shrink: 0; }
.hd-logo-app.sm { width: 30px; height: 30px; }
.hd-logo-app.lg { width: 56px; height: 56px; }

/* ===== Personen-Feld mit "Ich"-Button ===== */
.ef-person-wrap { display: flex; gap: 6px; align-items: stretch; margin-bottom: 8px; }
.ef-person-wrap .ef-input { flex: 1; min-width: 0; margin-bottom: 0; }
.ef-me-btn { flex-shrink: 0; padding: 0 12px; border-radius: 10px; font-weight: 600; }
.nsw-chip-me { border-color: var(--pri); color: var(--pri); font-weight: 600; }
.nsw-chip-me.sel { color: #fff; }

/* ===== Wiederholstoerungen (wiederholung.js) ===== */
.wdh-badge { display: inline-flex; align-items: center; gap: 3px; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: #fff7ed; border: 1px solid #fed7aa; color: #b45309; font-size: 11px; font-weight: 700; vertical-align: 1px; white-space: nowrap; }
.wdh-hint, .wdh-hist { border: 1px solid #fed7aa; border-left: 4px solid #f59e0b; background: #fffbeb; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-size: 13px; color: #451a03; }
.wdh-hint-title { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #b45309; margin-bottom: 4px; }
.wdh-hint-row { margin-top: 3px; line-height: 1.4; }
.wdh-hint-sub { font-size: 12px; color: #92400e; margin-top: 2px; }
.wdh-hint-prio { margin-top: 6px; padding: 4px 8px; border-radius: 6px; background: #fee2e2; color: #991b1b; font-weight: 600; font-size: 12px; }
.wdh-hist { margin-top: 10px; }
.wdh-hist-row { padding: 6px 8px; margin-top: 4px; border-radius: 8px; background: #fff; border: 1px solid #fde68a; cursor: pointer; }
.wdh-hist-row:hover { border-color: #f59e0b; background: #fff7ed; }

/* ===== Mehrere Ursachen (ursachen.js) ===== */
.ef-ursachen { border: 1px dashed var(--brd); border-radius: 10px; padding: 8px; background: #fafafa; }
.ef-urs-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 6px; align-items: start; margin-bottom: 6px; }
.ef-urs-row .ef-input { margin-bottom: 0; min-width: 0; }
.ef-urs-hint { font-size: 11px; color: var(--sub); margin-top: 6px; }
.urs-more { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: #eef2ff; color: #3730a3; font-size: 11px; font-weight: 600; white-space: nowrap; }
.urs-view-row { display: flex; gap: 6px; align-items: center; margin: 2px 0; }
.urs-num { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #eef2ff; color: #3730a3; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.nsw-xbox { border: 1px solid #c7d2fe; background: #f5f7ff; border-radius: 10px; padding: 10px; margin-top: 10px; }
@media (max-width: 600px) { .ef-urs-row { grid-template-columns: 1fr 1fr; } .ef-urs-row .ef-urs-del { grid-column: 2; justify-self: end; } }
@media (max-width: 600px) { .ef-urs-row .ef-input { font-size: 16px; -webkit-appearance: none; } }

/* ===== Bestellungen zuordnen (bestellZuordnung.js) ===== */
.bz-summary { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.bz-row { border: 1px solid var(--brd); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.bz-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bz-meta { font-size: 12px; color: var(--sub); flex: 1; min-width: 0; }
.bz-level { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 6px; white-space: nowrap; }
.bz-l-sicher { background: #dcfce7; color: #166534; }
.bz-l-wahr { background: #dbeafe; color: #1e40af; }
.bz-l-moegl { background: #fef3c7; color: #92400e; }
.bz-l-kein { background: #f1f5f9; color: #475569; }
.bz-pos { font-size: 12px; color: #334155; margin-top: 4px; }
.bz-quelle { font-size: 12px; color: #1e3a8a; margin-top: 4px; }
.bz-edit { display: grid; grid-template-columns: 160px 1fr auto; gap: 6px; margin-top: 8px; align-items: center; }
.bz-edit .ef-input { margin-bottom: 0; }
@media (max-width: 600px) { .bz-edit { grid-template-columns: 1fr 1fr; } .bz-edit .bz-save { grid-column: 1 / -1; } }
