:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#1f2937;background:#f8fafc}*{box-sizing:border-box}body{margin:0}main{padding:1.5rem;max-width:1200px;margin:0 auto}main.centered{text-align:center;margin-top:20vh}.topbar{display:flex;align-items:center;gap:1.5rem;padding:.75rem 1.5rem;background:#0f3d5e;color:#fff;flex-wrap:wrap}.topbar nav{display:flex;gap:1rem;flex-wrap:wrap}.topbar a{color:#cfe3f3;text-decoration:none}.topbar a.active{color:#fff;font-weight:600}.nav-toggle{display:none;background:#ffffff26;border:none;color:#fff;font-size:1.25rem;line-height:1;padding:.3rem .6rem;border-radius:6px}.spacer{flex:1}button{cursor:pointer;padding:.5rem 1rem;border-radius:6px;border:1px solid #94a3b8;background:#fff}button.primary{background:#0f3d5e;color:#fff;border-color:#0f3d5e}button.link{background:none;border:none;color:inherit;text-decoration:underline;padding:0}table{width:100%;border-collapse:collapse;background:#fff}th,td{text-align:left;padding:.5rem .75rem;border-bottom:1px solid #e2e8f0}tr.ringing{background:#fef3c7;font-weight:600}.filters{display:flex;gap:.75rem;margin-bottom:1rem;align-items:center;flex-wrap:wrap}input,select,textarea{padding:.45rem .6rem;border:1px solid #94a3b8;border-radius:6px;font:inherit;max-width:100%}.filters select,.filters input{max-width:16rem}.filters input[type=date]{max-width:11rem}textarea{width:100%;min-height:8rem}.badge{display:inline-block;padding:.1rem .5rem;border-radius:999px;font-size:.8rem;background:#e2e8f0}.badge.ringing{background:#f59e0b;color:#fff}.badge.answered{background:#3b82f6;color:#fff}.badge.in_progress{background:#6366f1;color:#fff}.badge.missed{background:#ef4444;color:#fff}.badge.completed{background:#10b981;color:#fff}.kb{list-style:none;padding:0}.kb li{padding:.5rem 0;border-bottom:1px solid #e2e8f0;display:grid;grid-template-columns:auto 1fr;gap:.75rem}.error{color:#b91c1c}.sub{font-size:.8rem;color:#64748b}.ringing-banner{display:flex;align-items:center;gap:.75rem;cursor:pointer;background:#b45309;color:#fff;padding:.6rem 1.5rem;font-size:1.05rem}.ringing-banner .open-hint{text-decoration:underline}.pulse{width:12px;height:12px;border-radius:50%;background:#fff;animation:pulse 1s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.2}}.auto-open{display:block;text-align:right;padding:.25rem 1.5rem;font-size:.85rem;color:#475569}.auto-open input{margin-right:.35rem}.card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:1rem 1.25rem;margin-bottom:1.25rem}.reorder button{padding:0 .3rem}.required{color:#b45309}button.danger{color:#b91c1c}.hint{color:#475569;font-size:.9rem}tr.inactive{opacity:.5}.stats{display:flex;gap:1rem;margin:1rem 0}.stat{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:.75rem 1.25rem;min-width:8rem;text-align:center}.stat .num{font-size:1.8rem;font-weight:700;color:#0f3d5e}.picker{background:#f1f5f9;border:1px solid #cbd5e1;border-radius:8px;padding:.6rem .9rem;margin:.5rem 0}.picker-results{list-style:none;padding:0;margin:.25rem 0 0;max-height:14rem;overflow-y:auto}.picker-results li{padding:.2rem 0}.wizard{border-left:4px solid #0f3d5e;padding-left:1rem;margin:1rem 0}.wizard .filters{margin-bottom:.6rem}.line-card{border:1px solid #cbd5e1;border-radius:8px;padding:.75rem 1rem;margin:.75rem 0;background:#fff}.line-card.inactive{opacity:.6}.line-card>.filters{margin-bottom:0;flex-wrap:wrap}.line-body{margin-top:.75rem;border-top:1px solid #e2e8f0;padding-top:.5rem}.line-body section{padding:.5rem 0;border-bottom:1px dashed #e2e8f0}.line-body section:last-child{border-bottom:none}.line-body h4{margin:.25rem 0 .5rem;color:#0f3d5e}.line-body .filters{flex-wrap:wrap}.line-body label{display:inline-flex;align-items:center;gap:.35rem}.pill{display:inline-block;font-size:.72rem;padding:.05rem .5rem;border-radius:999px;background:#e2e8f0;color:#334155}.pill.ok{background:#dcfce7;color:#166534}.audio-field{margin:.25rem 0}.audio-field .filters{margin-bottom:.25rem;flex-wrap:wrap}.audio-field label.link{cursor:pointer}.auto-open-lines{margin-top:.4rem;padding:.5rem .75rem;border:1px solid #cbd5e1;border-radius:8px;background:#fff;max-width:26rem}.auto-open-lines .sub{margin:0 0 .35rem}.auto-open-line{display:flex;align-items:center;gap:.4rem;padding:.15rem 0}.stage-list{list-style:none;padding:0;margin:.5rem 0 0;counter-reset:stage}.stage-list li{padding:.5rem .75rem;border-left:3px solid #cbd5e1;margin:.4rem 0;background:#f8fafc;border-radius:0 6px 6px 0}.stage-list li.first-stage{border-left-color:#0f3d5e;background:#eef4f8}.stage-head{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}.stage-kind{font-weight:600;color:#0f3d5e}.stage-handlers{margin-top:.35rem}.stage-handlers .handlers{display:inline-flex;flex-wrap:wrap;gap:.3rem}.badge.first{background:#0f3d5e;color:#fff;font-size:.68rem;padding:.05rem .45rem;border-radius:999px}@media(max-width:640px){.topbar{gap:.5rem .9rem;padding:.6rem .9rem}.nav-toggle{display:block}.topbar nav{display:none}.topbar nav.open{display:flex;flex-direction:column;order:5;width:100%;gap:.15rem;margin-top:.4rem;padding-top:.4rem;border-top:1px solid rgba(255,255,255,.2)}.topbar nav.open a{padding:.5rem .25rem}.user-name{display:none}main{padding:1rem}.filters{gap:.5rem}.filters select,.filters input{max-width:100%;flex:1 1 8rem;min-width:0}.filters input[type=date]{flex:0 0 auto}main table{display:block;overflow-x:auto;white-space:nowrap}.line-body label{flex-wrap:wrap}}.team-cell{display:flex;flex-direction:column;gap:.1rem;align-items:flex-start}.team-cell label{display:inline-flex;align-items:center;gap:.3rem;white-space:nowrap}.handover-items{list-style:none;padding:0;margin:.5rem 0}.handover-items>li{margin:.5rem 0}.handover-items textarea{width:100%;margin-top:.35rem}.ivr-branches{display:flex;flex-direction:column;gap:.35rem;margin-top:.25rem}.ivr-branch{padding-left:.5rem;border-left:2px dashed #cbd5e1}.ivr-branch .stage-list{margin-left:.5rem}.ivr-branch.active-now{border-left-color:#0f3d5e;background:#eef4f8;border-left-style:solid}.time-entry{margin-top:.5rem}.filters.days label.pill{cursor:pointer}.filters.days label.pill input{margin:0 .2rem 0 0}
