/* =====================================================================
   ZUTEILUNG (zut-) — Persönliche Fahrzeuge & Geräte · Swimlane-Kanban
   ===================================================================== */
.zut-root { display: flex; flex-direction: column; gap: 0; }

/* ---- Live/Mock-Banner ---- */
.zut-banner { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; font-size: 12px; color: var(--text-muted); }
.zut-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 11px; }
.zut-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.zut-pill.on { background: #e6f7ec; color: #1a7f43; }
.zut-pill.mock { background: #fff4e0; color: #b06a00; }

/* ---- Toolbar ---- */
.zut-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.zut-search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; padding: 9px 14px; max-width: 520px; }
.zut-search input { flex: 1; border: none; outline: none; background: none; font-size: 14px; color: var(--text); }
.zut-search .icon { width: 16px; height: 16px; color: var(--text-muted); }
.zut-chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); cursor: pointer; user-select: none; white-space: nowrap; }
.zut-chk input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

/* ---- Board ---- */
.zut-board-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: auto; max-height: 52vh; }
table.zut-grid { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; min-width: calc(var(--zut-name-w, 210px) + 760px); font-size: 13px; }
.zut-grid thead th { position: sticky; top: 0; z-index: 3; background: var(--brand); color: #fff; text-align: left; padding: 9px 12px; font-weight: 600; border-right: 1px solid rgba(255,255,255,.18); vertical-align: top; }
.zut-grid thead th.person { left: 0; z-index: 4; width: var(--zut-name-w, 210px); background: var(--brand-dark); position: sticky; }
/* Ziehgriff für die Namensspalte */
.zut-resize { position: absolute; top: 0; right: 0; width: 7px; height: 100%; cursor: col-resize; }
.zut-resize:hover { background: rgba(255,255,255,.45); }
.zut-colh .l { font-size: 12.5px; font-weight: 700; }
.zut-colh .s { font-size: 10.5px; font-weight: 400; opacity: .85; margin-top: 1px; }

/* Personen-Spalte (Zeilenkopf, sticky links) */
.zut-person { position: sticky; left: 0; z-index: 2; width: var(--zut-name-w, 210px); vertical-align: top; background: var(--bg); border-bottom: 1px solid var(--border); border-right: 2px solid var(--brand); padding: 10px 12px; overflow: hidden; }
.zut-person .av { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: 12px; overflow: hidden; }
.zut-person img.av { object-fit: cover; }
.zut-person .av.pool { background: #dfe6ee; color: var(--text-muted); }
.zut-person .nm { font-weight: 700; font-size: 13px; color: var(--text); margin-top: 5px; }
.zut-person .rl { font-size: 11px; color: var(--text-muted); }
.zut-person .sum { font-size: 11px; color: var(--brand-dark); font-weight: 600; margin-top: 4px; }

/* Pool-Zeile hervorheben */
.zut-pool .zut-person { background: var(--brand-soft); border-top: 2px solid var(--brand); }
.zut-pool .zut-cell { background: #f3fafd; border-top: 2px solid var(--brand); }

/* Drop-Zellen */
.zut-cell { vertical-align: top; border-bottom: 1px solid var(--border); border-right: 1px dashed var(--border); padding: 8px; overflow: hidden; }
.zut-card .bz, .zut-card .nr { overflow-wrap: anywhere; }
.zut-cell.over { background: var(--brand-soft); outline: 2px dashed var(--brand); outline-offset: -3px; }
.zut-cell.bad { background: #fdecec; outline: 2px dashed #e05656; outline-offset: -3px; }
.zut-drop-hint { color: #b8c1cc; font-size: 11px; font-style: italic; border: 1px dashed var(--border-strong); border-radius: 6px; padding: 10px; text-align: center; }
.zut-empty { color: #b8c1cc; font-size: 11px; }
.zut-empty-row { text-align: center; color: var(--text-muted); padding: 24px; }

/* Karten */
.zut-card { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 6px; padding: 7px 9px; margin-bottom: 7px; box-shadow: var(--shadow-sm); position: relative; }
.zut-card.drag { cursor: grab; }
.zut-card.drag:active { cursor: grabbing; }
.zut-card.dragging { opacity: .45; }
.zut-card.off { opacity: .55; border-left-color: var(--border-strong); }
.zut-card .grip { position: absolute; top: 6px; right: 7px; color: #cbd2db; font-size: 12px; letter-spacing: 1px; }
.zut-card .nr { color: var(--brand-dark); font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.zut-card .bz { font-size: 12px; color: var(--text); line-height: 1.3; padding-right: 14px; }
.zut-card .badges { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.zut-card .b, .zut-legend .b { display: inline-block; font-size: 9.5px; font-weight: 600; border-radius: 8px; padding: 1px 7px; }
.b.pruef { background: #e7f5fb; color: #0086b3; }
.b.wart  { background: #fff3d6; color: #b27b00; }
.b.veh   { background: #eef1f4; color: var(--text-muted); }
.b.plate { background: #fff; color: #111; border: 1px solid #333; font-weight: 700; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.b.dmg   { background: #fbe4e4; color: #b23a3a; }

/* Legende */
.zut-legend { font-size: 11.5px; color: var(--text-muted); margin-top: 12px; line-height: 1.7; }
.zut-legend .b { margin-right: 2px; }

/* Ladeanzeige / Fehler */
.zut-state { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 20px; color: var(--text-muted); }
.zut-spinner { width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: zut-spin .8s linear infinite; }
@keyframes zut-spin { to { transform: rotate(360deg); } }

/* ---- Segmentierte Filter (Person-Toolbar) ---- */
.zut-fgroup { display: inline-flex; align-items: center; gap: 4px; }
.zut-fgroup .lbl { font-size: 11px; color: var(--text-muted); margin-right: 2px; }
.zut-chip2 { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted); font-size: 12px; padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.zut-chip2:hover { border-color: var(--brand); color: var(--brand-dark); }
.zut-chip2.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); font-weight: 600; }

/* ---- Pool-Pane (unterhalb des Boards) ---- */
.zut-pool-pane { margin-top: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.zut-pool-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.zut-pool-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--brand-dark); }
.zut-pool-title .icon { width: 18px; height: 18px; }
.zut-pool-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-wrap: wrap; }
.zut-search.sm { padding: 6px 12px; max-width: 320px; }
.zut-chips { display: inline-flex; gap: 4px; }

.zut-pool-cols { display: flex; gap: 12px; padding: 14px; overflow-x: auto; align-items: flex-start; }
.zut-pcol { flex: 0 0 240px; width: 240px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); min-height: 90px; }
.zut-pcol.is-pool { background: var(--brand-soft); border-color: var(--brand); }
.zut-pcol-head { font-size: 12px; font-weight: 700; color: var(--text); padding: 8px 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.zut-pcol-head .cnt { font-size: 11px; font-weight: 600; color: var(--text-muted); background: var(--surface); border-radius: 999px; padding: 1px 8px; }
.zut-pcol-body { padding: 8px; min-height: 60px; max-height: 44vh; overflow-y: auto; }

/* ---- Generische Drop-Marker (Board-Zellen + Pool-Spalten) ---- */
.zdrop.over { background: var(--brand-soft) !important; outline: 2px dashed var(--brand); outline-offset: -3px; }
.zdrop.bad  { background: #fdecec !important; outline: 2px dashed #e05656; outline-offset: -3px; }

/* Toast (Fallback, falls MA.toast fehlt) */
.zut-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(12px); background: #263238; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 9999; }
.zut-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
