.queue-tabs{display:flex;gap:6px;padding:0 20px 12px}
.queue-tab{border:1px solid var(--line);background:#fff;color:#506078;border-radius:20px;padding:7px 14px;font-weight:700;font-size:12px}
.queue-tab.active{background:#edf3ff;color:var(--blue);border-color:#c9daff}
.queue-template{margin:0 20px 12px;border:1px dashed var(--line);border-radius:10px;padding:8px 12px;font-size:12px;color:var(--muted)}
.queue-template summary{cursor:pointer;font-weight:700}
.queue-template textarea{width:100%;margin-top:8px;border:1px solid var(--line);border-radius:8px;padding:8px;font:inherit;resize:vertical}
.queue-list{display:grid;gap:10px;padding:0 20px 14px}
.q-card{display:flex;gap:16px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;border:1px solid var(--line);border-radius:12px;background:#fff;padding:14px 16px}
.q-card:hover{border-color:#c9daff;box-shadow:var(--shadow)}
.q-card.is-negative{background:#fff8f8;border-color:#f3d4d6}
.q-main{flex:1 1 360px;min-width:0}
.q-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.q-phone{font:700 16px Manrope,'DM Sans',sans-serif}
.q-dni{font-size:12px;color:var(--ink)}
.q-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.q-chip{display:inline-flex;align-items:center;border-radius:20px;padding:4px 9px;font-size:11px;font-weight:700;background:#eef1f6;color:#506078;white-space:nowrap}
.q-chip.q-hot{background:#e9f7f0;color:#138053}
.q-chip.q-call{background:#f1ecfb;color:#6a4cb5}
.q-chip.q-reply{background:#edf2ff;color:#3f62c0}
.q-chip.q-fresh,.q-chip.q-ok{background:#e9f7f0;color:#138053}
.q-chip.q-warn{background:#fff5e3;color:#b76e00}
.q-chip.q-late{background:#fff0f0;color:#a24c52}
.q-chip.q-muted,.q-dni.q-muted{background:#f3f5f9;color:#8b97a9}
.q-dni.q-muted{background:none}
.q-text{margin:9px 0 0;font-size:13px;color:var(--ink);overflow-wrap:anywhere}
.q-notes{margin:6px 0 0;font-size:12px;color:var(--muted)}
.q-meta{display:block;margin-top:8px;color:var(--muted);font-size:11px}
.q-actions{display:flex;flex-wrap:wrap;gap:6px;flex:0 1 330px;justify-content:flex-end}
.q-btn{border:1px solid var(--line);background:#fff;color:#33415a;border-radius:8px;padding:8px 11px;font-size:12px;font-weight:700;text-decoration:none;display:inline-flex;align-items:center;min-height:36px}
.q-btn:hover:not(:disabled){background:#f6f8fc}
.q-btn:disabled{opacity:.45;cursor:not-allowed}
.q-btn.q-wa{background:#1fa855;border-color:#1fa855;color:#fff}
.q-btn.q-wa:hover{background:#188f48}
.q-btn.q-yes{color:#138053;border-color:#bfe5d3}
.q-btn.q-no{color:#a24c52;border-color:#f0c9cc}
.q-btn:focus-visible,.queue-tab:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@media (max-width:760px){.q-actions{flex-basis:100%;justify-content:flex-start}.queue-list,.queue-tabs{padding-left:12px;padding-right:12px}.queue-template{margin-left:12px;margin-right:12px}}
.q-chip.q-back{background:#fff1d6;color:#8a4b00;box-shadow:inset 0 0 0 1px #f0cf8f}
.lot-cell{min-width:300px}
.lot-line{display:flex;align-items:center;gap:8px;font-size:12px;padding:2px 0}
.lot-line b{min-width:48px}
.lot-bar{flex:0 0 90px;height:8px;border-radius:6px;background:#e8ecf3;overflow:hidden}
.lot-bar i{display:block;height:100%;background:#2f6bff;border-radius:6px}
.lot-num{font-variant-numeric:tabular-nums;min-width:78px}
.lot-line em{font-style:normal;font-weight:700}
.lot-done .lot-bar i{background:#1fa855}.lot-done em{color:#138053}
.lot-run em{color:#2f6bff}
.lot-warn .lot-bar i{background:#e0a100}.lot-warn em{color:#b76e00}
.lot-stale .lot-bar i{background:#b0b8c6}.lot-stale em{color:#8b97a9}
.lot-group td{background:#f3f6fc;border-top:2px solid #d6e0f5;padding:10px 12px;font-size:13px;color:#33415a}
.lot-group td span{margin-left:10px;font-size:12px;color:#6b7a90;font-weight:400}
.lot-alert{margin:0 20px 14px;border:1px solid #f0c9cc;background:#fff1f1;color:#8a2f36;border-radius:10px;padding:12px 16px;font-size:13px;line-height:1.5}
