/* Ergänzungen der echten App zum Entwurfs-Stil (styles.css) */
.banner { display: flex; gap: 10px; align-items: center; padding: 10px 14px; margin-bottom: 16px; border-radius: 10px; background: color-mix(in srgb, var(--fail) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--fail) 40%, transparent); }
.banner svg { color: var(--fail); }
.banner[hidden] { display: none; }
/* Sehr dunkles Filament (z. B. #161616) sonst kaum von einem leeren Fach zu unterscheiden */
.spoolv.dark::before { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.45), inset 0 2px 0 rgba(255,255,255,0.35); }
.conn { font-size: 0.78rem; color: var(--mat-text); opacity: 0.8; }
.locked { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 0.86rem; }
.locked svg { color: var(--text-3); flex-shrink: 0; margin-top: 1px; }
.empty-state { padding: 40px 20px; text-align: center; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state svg { width: 36px; height: 36px; color: var(--text-3); }
.empty-state strong { color: var(--text); font-size: 1.05rem; }
.empty-state p { margin: 0; max-width: 48ch; }
.cam .cam-live { position: absolute; inset: 0; }
.cam-off { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: 0.85rem; }
.ro-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.ro-row:first-of-type { border-top: 0; padding-top: 0; }
.ro-row span:first-child { color: var(--text-2); }
.ro-row strong { font-weight: 700; text-align: right; }
.ro-row small { color: var(--text-3); font-weight: 500; }
.field-error { color: var(--fail); font-size: 0.84rem; min-height: 1.2em; margin: 0; }
.hint-src { font-size: 0.74rem; color: var(--text-3); }
.cost-basis { font-size: 0.74rem; color: var(--text-3); display: block; }
.thumb-img { width: 48px; height: 36px; border-radius: 6px; object-fit: contain; background: var(--surface-2); }
/* Abmelden: am PC in der Seitenleiste, am Handy im Kopf der Drucker-Seite */
.logout[hidden] { display: none; }
.rail .logout { align-self: flex-start; color: var(--mat-text); padding: 0 8px; margin-left: -8px; }
.logout-m { display: none; }
@media (max-width: 860px) { .logout-m { display: inline-flex; } }
/* Anmeldeseite */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(100%, 380px); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.login-card .brand { padding: 0; }
.login-card h1 { margin: 0; font-size: 1.3rem; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--text-2); }
.login-card .btn { width: 100%; }
.bio[hidden] { display: none; }
.bio { display: flex; flex-direction: column; gap: 14px; }
.bio-btn { min-height: 52px; font-size: 1rem; white-space: normal; text-align: center; }
.login-wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.bio-btn svg { width: 22px; height: 22px; }
.bio-or { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--text-3); font-size: 0.82rem; }
.bio-or::before, .bio-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* Biometrie-Geräte im Seitenblatt */
.pk-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.pk-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface-2); }
.pk-list strong { display: block; }
.pk-list small { color: var(--text-3); font-size: 0.8rem; }
.pk-actions { display: flex; flex-direction: column; gap: 8px; }
.logout-row { display: flex; gap: 4px; flex-wrap: wrap; }
.state[data-s="offline"], .state[data-s="unknown"] { color: var(--text-3); background: var(--surface-2); }

/* Druckplatten: Zeile auf der Druckerkarte, Kasten auf der Detailseite, Plattenlager */
.plate-chip { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px 8px 8px; border-radius: var(--radius-s); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); text-decoration: none; transition: border-color 160ms ease; }
.plate-chip:hover { border-color: var(--rule); }
.plate-chip strong { display: block; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate-chip small { color: var(--text-3); font-size: 0.8rem; }
.plate-chip > svg { color: var(--text-3); }
.plate-chip-none { border-style: dashed; background: transparent; }
.plate-chip-none > svg:first-child { width: 44px; color: var(--text-3); }
.ptitle .pplate { margin-left: -4px; }
.ptitle > div { min-width: 0; }
.pplate.plate-img-none { display: grid; place-items: center; }
.plate-img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; }
.plate-img-none, .lcard-img.plate-img-none { display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); }
.plate-box-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; }
.plate-hero { background: radial-gradient(120% 90% at 50% 100%, var(--surface-3), var(--surface-2)); border-radius: var(--radius-s); display: grid; place-items: center; padding: 12px; align-self: start; }
.plate-hero-img { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 14px rgba(0,0,0,0.45)); }
.plate-hero .plate-img-none { width: 100%; aspect-ratio: 1; }
.plate-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; align-items: flex-start; }
.plate-name { font-size: 1.1rem; }
.plate-sub { color: var(--text-2); font-size: 0.88rem; margin-top: -6px; }
.pkv { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 12px; margin: 0; font-size: 0.88rem; align-items: baseline; width: 100%; }
.pkv dt { color: var(--text-3); }
.pkv dd { margin: 0; font-weight: 600; }
.pkv dd.src { font-weight: 500; font-size: 0.72rem; color: var(--text-3); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 8px; justify-self: end; white-space: nowrap; }
.lager { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px; align-items: start; }
.lcard { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 14px; text-align: left; }
.lcard-img { width: 88px; height: 88px; object-fit: contain; background: var(--surface-2); border-radius: var(--radius-s); padding: 6px; }
.lbody { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.lsub { color: var(--text-2); font-size: 0.84rem; }
.lactions { display: flex; gap: 4px; justify-content: flex-end; margin-top: 2px; }
.ladd { grid-template-columns: auto 1fr; align-items: center; border-style: dashed; color: var(--text-2); font-weight: 600; min-height: 116px; }
.ladd svg { color: var(--rule); }
.ladd:hover { color: var(--text); border-color: var(--rule); }
.hint-src a { color: var(--rule); }

/* Drucker hinzufügen */
.add-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 220px; padding: 24px; border-style: dashed; color: var(--text-2); text-align: center; transition: border-color 160ms ease, color 160ms ease; }
.add-card svg { width: 30px; height: 30px; color: var(--rule); }
.add-card strong { color: var(--text); font-size: 1.02rem; }
.add-card span { font-size: 0.84rem; max-width: 30ch; }
.add-card:hover { border-color: var(--rule); color: var(--text); }
.found { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.found-head { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 0.88rem; }
.found-head svg { width: 16px; height: 16px; }
.found-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: var(--radius-s); border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); }
.found-item span { grid-column: 1; color: var(--text-2); font-size: 0.84rem; overflow-wrap: anywhere; }
.found-item svg { grid-row: 1 / 3; grid-column: 2; color: var(--text-3); }
.found-item:hover, .found-item.picked { border-color: var(--rule); }
.found-item.picked { background: color-mix(in srgb, var(--rule) 10%, var(--surface-2)); }
.found .hint { margin: 0; }
/* Formular: Spalten dürfen schrumpfen, sonst drücken Eingabefelder das Blatt am Handy über den Rand */
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid > label { min-width: 0; }
.form-grid .field input { width: 100%; }
.field-hint { display: block; color: var(--text-3); font-size: 0.76rem; font-weight: 400; margin-top: 2px; }
.sheet code { font-size: 0.86em; background: var(--surface-3); padding: 1px 5px; border-radius: 4px; }

/* Steckdose */
.tag svg { width: 11px; height: 11px; stroke-width: 2.2; vertical-align: -1px; margin-right: 3px; }
.cam-tag .tag:not(.tag-live) { color: #fff; }
.plug-now { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.plug-box .btn-row { margin: 10px 0 4px; }
.plug-box .btn-row:empty { display: none; }
.plug-box .hint-src svg { width: 13px; height: 13px; vertical-align: -2px; }
.plug-box > .btn-ghost { margin-top: 4px; padding-left: 0; }
.form-grid input[type="file"] { padding: 8px 0; font-size: 0.86rem; color: var(--text-2); }
@media (max-width: 560px) {
  .plate-box-body { grid-template-columns: 1fr; }
  .plate-hero { max-width: 180px; }
  .pkv { grid-template-columns: auto minmax(0, 1fr); }
  .pkv dd.src { grid-column: 2; justify-self: start; margin-top: -3px; }
  .lcard { grid-template-columns: 64px minmax(0, 1fr); }
  .lcard-img { width: 64px; height: 64px; }
}
