/* Impresoras y lectores */
.dv .list-view-header h2 { margin: 0; }
.dv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.dv-card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px 18px; background: #fff; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dv-card h3 { margin: 0; font-size: 16px; font-weight: 800; color: #1e293b; }
.dv-muted { color: #64748b; font-size: 12.5px; margin: 0; }
.dv-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dv-opt { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1.5px solid #e2e8f0; border-radius: 10px; cursor: pointer; background: #f8fafc; }
.dv-opt:hover { border-color: #c4b5c0; }
.dv-opt.on { border-color: #714B67; background: #faf5f9; box-shadow: 0 0 0 3px rgba(113,75,103,.12); }
.dv-opt input { position: absolute; opacity: 0; pointer-events: none; }
.dv-opt:focus-within { outline: 2px solid #714B67; outline-offset: 2px; }
.dv-oi { font-size: 22px; }
.dv-opt b { font-size: 13.5px; color: #1e293b; }
.dv-opt small { font-size: 11.5px; color: #64748b; line-height: 1.35; }
.dv-f { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 8px; background: #f8fafc; border: 1px solid #eef2f6; }
.dv-f[hidden] { display: none; }
.dv-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.dv-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #475569; flex: 1 1 200px; }
.dv-row label.dv-sm { flex: 0 1 150px; }
.dv-st { font-size: 12.5px; color: #475569; align-self: center; }
.dv-st.ok { color: #15803d; font-weight: 700; }
.dv-st.warn { color: #b91c1c; font-weight: 700; }
.dv-check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #1e293b; cursor: pointer; }
.dv-check input { width: 16px; height: 16px; accent-color: #714B67; }
.dv-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.dv-help { font-size: 12.5px; color: #475569; border-top: 1px dashed #e2e8f0; padding-top: 10px; }
.dv-help summary { cursor: pointer; font-weight: 700; color: #714B67; }
.dv-help ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; line-height: 1.45; }

.dv-scan { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 14px; align-items: start; }
.dv-bc { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.dv-bc-img { width: 100%; height: 64px; }
.dv-bc-img svg { width: 100%; height: 100%; display: block; }
.dv-bc code { font-size: 12px; letter-spacing: .5px; }
.dv-bc small { color: #64748b; font-size: 11px; text-align: center; }
.dv-in { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dv-in input { font: 600 15px ui-monospace, monospace; height: 42px; }
.dv-res { font-size: 12.5px; line-height: 1.6; min-height: 64px; }
.dv-res .ok { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 8px 10px; }
.dv-res .warn { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 10px; }
.dv-reads-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #1e293b; }
.dv-reads { margin: 0; padding: 0 0 0 22px; max-height: 160px; overflow-y: auto; font-size: 12.5px; color: #334155; }
.dv-reads:empty { display: none; }
.dv-reads li { padding: 2px 0; }
.dv-reads .nv-badge { margin-left: 6px; }
.dv-cam { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.dv-cam[hidden] { display: none; }
.dv-cam video { width: 100%; max-width: 420px; border-radius: 8px; background: #000; }

@media (max-width: 900px) {
  .dv-grid { grid-template-columns: minmax(0, 1fr); }
  .dv-opts { grid-template-columns: minmax(0, 1fr); }
  .dv-scan { grid-template-columns: minmax(0, 1fr); }
}

.dv-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0; }
.dv-ways > div { background: #f8fafc; border: 1px solid #eef2f6; border-radius: 8px; padding: 10px 12px; }
.dv-ways ol { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
[hidden].dv-sm, #dv-queue-wrap[hidden] { display: none !important; }
@media (max-width: 900px) { .dv-ways { grid-template-columns: minmax(0, 1fr); } }

.dv-cust[hidden] { display: none !important; }
#dv-gap-wrap[hidden] { display: none !important; }
