/* Supervisão 1.4.25 · mesma linguagem da Visão geral, Atendimentos e Relatórios.
   Só visual: carregado depois de supervision.css, mantém marcação, ids e data-* usados pelo tempo real. */
.sv-view{--sv-ink:#1d1238;--sv-text:#4a3f66;--sv-muted:#8a80a3;--sv-line:#ece7f4;--sv-soft:#f8f6fc;--sv-violet:#6a3df0;
  --sv-available:#16a34a;--sv-in_attendance:#2563eb;--sv-in_call:#7c3aed;--sv-paused:#d97706;--sv-unavailable:#e11d48;--sv-offline:#a8a2b8;
  display:flex;flex-direction:column;gap:18px;color:var(--sv-text);font-family:'Nunito Sans',Arial,sans-serif}
.sv-view>*{margin:0!important}

/* Faixa de destaque */
.sv-view .sv-heading{position:relative;isolation:isolate;overflow:hidden;border-radius:24px;padding:24px 28px;
  background:radial-gradient(120% 140% at 0% 0%,#2a1460 0%,#170c38 50%,#0e0826 100%);box-shadow:0 20px 50px rgba(23,12,56,.2);align-items:center}
.sv-hero-aurora{position:absolute;inset:-60% -10%;z-index:-1;filter:blur(70px);pointer-events:none}
.sv-hero-aurora i{position:absolute;border-radius:50%;opacity:.45;mix-blend-mode:screen;animation:sv-drift 24s ease-in-out infinite alternate}
.sv-hero-aurora i:nth-child(1){width:380px;height:380px;left:-60px;top:-40px;background:#e5179b}
.sv-hero-aurora i:nth-child(2){width:420px;height:420px;left:42%;top:10%;background:#2f6bff;animation-delay:-8s}
.sv-hero-aurora i:nth-child(3){width:280px;height:280px;right:-40px;top:-60px;background:#ff7a1a;opacity:.32;animation-delay:-14s}
@keyframes sv-drift{to{transform:translate3d(50px,24px,0) scale(1.1)}}
.sv-view .sv-eyebrow{font-size:12px;font-weight:800;letter-spacing:.4px;color:#bff7de}
.sv-view .sv-heading h2{margin:6px 0 4px;font-size:26px;line-height:1.15;letter-spacing:-.6px;font-weight:800;color:#fff}
.sv-view .sv-heading p{font-size:14px;color:rgba(239,233,255,.78);max-width:620px}
.sv-view .sv-live{gap:10px;padding:8px 8px 8px 14px;border-radius:14px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(10px);color:rgba(239,233,255,.85);font-size:12.5px;font-weight:700}
.sv-view .sv-live-indicator{width:8px;height:8px;background:#9a93b0}
.sv-view .sv-live.sv-live-on .sv-live-indicator{background:#34e3a0;animation:sv-pulse 2.4s ease-out infinite}
@keyframes sv-pulse{0%{box-shadow:0 0 0 0 rgba(52,227,160,.55)}80%,100%{box-shadow:0 0 0 8px rgba(52,227,160,0)}}
.sv-view .sv-refresh{width:34px;height:34px;border:1px solid rgba(255,255,255,.22);border-radius:10px;background:rgba(255,255,255,.12);color:#fff;font-size:17px}
.sv-view .sv-refresh:hover{background:rgba(255,255,255,.2)}

/* Filtros */
.sv-view .sv-filters{gap:12px;padding:14px 18px;border:1px solid var(--sv-line);border-radius:20px;background:#fff;box-shadow:0 6px 20px rgba(29,18,56,.04)}
.sv-view .sv-filters label{gap:5px;font-size:12px;font-weight:800;color:var(--sv-muted)}
.sv-view .sv-filters input,.sv-view .sv-filters select{height:40px;border:1px solid #ddd5ec;border-radius:12px;padding:0 12px;font-size:14px;font-weight:600;color:var(--sv-ink);background:#fff}
.sv-view .sv-filters input::placeholder{color:#b3a9c9;font-weight:500}
.sv-view .sv-filters .sv-apply{height:40px;padding:0 18px;border:0;border-radius:12px;color:#fff;font-weight:800;font-size:13.5px;
  background:linear-gradient(120deg,#ff7a1a,#e5179b 45%,#6a3df0);box-shadow:0 8px 18px rgba(106,61,240,.22)}

/* Indicadores */
.sv-view .sv-summary{grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr));gap:14px}
.sv-view .sv-metric{position:relative;overflow:hidden;padding:18px 20px;border:1px solid var(--sv-line);border-radius:20px;background:#fff;box-shadow:0 6px 20px rgba(29,18,56,.04)}
.sv-view .sv-metric::before{content:'';position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,#ff7a1a,#e5179b,#6a3df0,#2f8cff)}
.sv-view .sv-metric>span,.sv-view .sv-metric-heading>span{font-size:12.5px;font-weight:800;color:var(--sv-muted)}
.sv-view .sv-metric>strong,.sv-view .sv-metric-heading>strong{margin-top:6px;font-size:30px;font-weight:800;color:var(--sv-ink);letter-spacing:-.8px}
.sv-view .sv-metric-heading>strong{margin:0;font-size:34px}
.sv-view .sv-metric p{font-size:12.5px;color:var(--sv-muted);margin:10px 0 4px}
.sv-view .sv-metric p b{font-weight:800;color:var(--sv-ink)}
.sv-view .sv-metric>small{font-size:11.5px;color:#a79fbd}
.sv-view .sv-online-line{margin:2px 0 10px!important}
.sv-status-bar{display:flex;gap:2px;height:10px;border-radius:6px;overflow:hidden;background:#f1eef7;margin:0 0 14px}
.sv-status-bar i{display:block;height:100%;min-width:4px;background:var(--sv-offline)}
.sv-status-bar i.sv-available{background:var(--sv-available)}.sv-status-bar i.sv-in_attendance{background:var(--sv-in_attendance)}
.sv-status-bar i.sv-in_call{background:var(--sv-in_call)}.sv-status-bar i.sv-paused{background:var(--sv-paused)}
.sv-status-bar i.sv-unavailable{background:var(--sv-unavailable)}.sv-status-bar i.sv-offline{background:var(--sv-offline)}
.sv-view .sv-status-counts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 22px;margin-top:0}
.sv-view .sv-count{font-size:12.5px;color:var(--sv-text);font-weight:600}
.sv-view .sv-count>b{color:var(--sv-ink);font-size:13.5px;font-weight:800}
.sv-view .sv-count i,.sv-view .sv-status i{width:8px;height:8px}
.sv-view .sv-available i{background:var(--sv-available)}.sv-view .sv-in_attendance i{background:var(--sv-in_attendance)}
.sv-view .sv-in_call i{background:var(--sv-in_call)}.sv-view .sv-paused i{background:var(--sv-paused)}
.sv-view .sv-unavailable i{background:var(--sv-unavailable)}.sv-view .sv-offline i{background:var(--sv-offline)}
.sv-view .sv-queue-channel div{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 8px}
.sv-view .sv-queue-channel div span{padding:5px 10px;border-radius:999px;background:var(--sv-soft);border:1px solid var(--sv-line);font-size:12.5px;color:var(--sv-text);font-weight:600}
.sv-view .sv-queue-channel div span b{color:var(--sv-ink);margin-left:3px}

/* Atendimentos simultâneos (em uso ÷ limite) */
.sv-view .sv-capacity{min-width:76px;gap:6px}
.sv-view .sv-capacity b{font-size:13px;font-weight:800;color:var(--sv-ink)}
.sv-view .sv-capacity i{height:6px;border-radius:6px}
.sv-view .sv-capacity-idle{--sv-capacity-color:#16a34a}.sv-view .sv-capacity-busy{--sv-capacity-color:#2563eb}.sv-view .sv-capacity-full{--sv-capacity-color:#e11d48}
.sv-view .sv-capacity-note{display:block;margin-top:4px;font-size:11px;color:var(--sv-muted)}

/* Tabelas de agentes */
.sv-view .sv-agent-sections{gap:16px}
.sv-view .sv-agents-card{border:1px solid var(--sv-line);border-radius:20px;box-shadow:0 6px 20px rgba(29,18,56,.04)}
.sv-view .sv-offline-card{background:#fff}
.sv-view .sv-table-heading{padding:18px 20px 14px}
.sv-view .sv-table-heading h3{margin:0;font-size:16px;font-weight:800;color:var(--sv-ink);letter-spacing:-.2px}
.sv-view .sv-table-heading p{margin:4px 0 0;font-size:12.5px;color:var(--sv-muted)}
.sv-view .sv-table-heading>span{font-size:12px;color:var(--sv-muted)}
.sv-view .sv-online-card .sv-table-heading h3::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--sv-available);margin-right:8px;vertical-align:2px}
.sv-view .sv-offline-card .sv-table-heading h3::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--sv-offline);margin-right:8px;vertical-align:2px}
.sv-view .sv-table th{background:#faf8fd;color:var(--sv-muted);font-size:12px;font-weight:800;padding:11px 14px;border-bottom:1px solid var(--sv-line)}
.sv-view .sv-table td{padding:12px 14px;font-size:13px;color:var(--sv-text);border-bottom:1px solid #f3f0f8}
.sv-view .sv-table tbody tr:hover td{background:#fbfaff}
.sv-view .sv-avatar{width:36px;height:36px;flex-basis:36px;border:0;border-radius:12px;color:#fff;font-size:12px;font-weight:800;
  background:linear-gradient(135deg,#ff7a1a,#e5179b 50%,#6a3df0)}
.sv-view .sv-offline-card .sv-avatar{background:#d9d4e6;color:#5f5677}
.sv-view .sv-person b{font-size:13.5px;font-weight:800;color:var(--sv-ink)}
.sv-view .sv-person small{font-size:11.5px;color:var(--sv-muted)}
.sv-view .sv-teams>span{padding:3px 9px;border:1px solid var(--sv-line);border-radius:999px;background:var(--sv-soft);color:var(--sv-text);font-size:11.5px;font-weight:600}
.sv-view .sv-teams>.sv-no-team{padding:0;border:0;background:none;font-size:12px;color:#b3abc6}
.sv-view .sv-status{padding:4px 10px;border-radius:999px;font-size:12px;font-weight:800;background:#f3f1f8;color:#5f5677}
.sv-view .sv-status.sv-available{background:#ecfdf3;color:#15803d}
.sv-view .sv-status.sv-in_attendance{background:#eff4ff;color:#1d4ed8}
.sv-view .sv-status.sv-in_call{background:#f3edff;color:#6d28d9}
.sv-view .sv-status.sv-paused{background:#fff7e6;color:#b45309}
.sv-view .sv-status.sv-unavailable{background:#fff1f3;color:#be123c}
.sv-view .sv-status.sv-offline{background:#f3f1f8;color:#6b6385}
.sv-view .sv-pause-name{font-size:11.5px;color:#b45309}
.sv-view .sv-row-controls{display:flex;gap:6px;margin-top:7px}
.sv-view .sv-row-controls button{height:28px;padding:0 10px;border:1px solid #ddd5ec;border-radius:9px;background:#fff;color:var(--sv-violet);font:inherit;font-size:11.5px;font-weight:800;cursor:pointer}
.sv-view .sv-row-controls button:hover{background:#f6f2ff}
.sv-view .sv-row-controls button[data-sv-logout]{color:#be123c}
.sv-view .sv-row-controls button[data-sv-logout]:hover{background:#fff1f3}
.sv-view .sv-time{font-size:13px!important;font-weight:700;color:var(--sv-ink)!important}
.sv-view .sv-datetime{font-size:12px!important;color:var(--sv-muted)!important}
.sv-view .sv-occupancy{padding:3px 9px;border-radius:999px;background:var(--sv-soft);color:var(--sv-ink);font-weight:800;font-size:12px}
.sv-view .sv-monitor{width:32px;height:32px;flex-basis:32px;border:1px solid #ddd5ec;border-radius:10px;background:#fff;color:var(--sv-violet)}
.sv-view .sv-monitor:hover{background:#f6f2ff;border-color:#c9b8f2}
.sv-view .sv-empty{font-size:13.5px!important;color:var(--sv-muted)!important}
.sv-view .sv-notice{border-radius:14px;font-size:13px}
.sv-view .sv-footnote{font-size:12px;color:var(--sv-muted)}

/* Painel de acompanhamento do agente */
.sa-drawer{font-family:'Nunito Sans',Arial,sans-serif;background:#fbfaff}
.sa-header{position:relative;isolation:isolate;overflow:hidden;color:#fff;border-bottom:0;
  background:radial-gradient(120% 160% at 0% 0%,#2a1460 0%,#170c38 55%,#0e0826 100%)}
.sa-header span{color:#bff7de;font-size:11.5px;font-weight:800;letter-spacing:.4px}
.sa-header h2{color:#fff;font-weight:800;letter-spacing:-.4px}
.sa-header p{color:rgba(239,233,255,.78);font-size:13px}
.sa-close{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.22);color:#fff}
.sa-close:hover{background:rgba(255,255,255,.2)}
.sa-toolbar{background:#fff;font-size:13px;color:#4a3f66}
.sa-toolbar b{background:#f3edff;color:#6a3df0;font-weight:800}
.sa-message{border-color:#ece7f4;border-radius:16px;box-shadow:0 4px 14px rgba(29,18,56,.04)}
.sa-message strong{font-size:12px;font-weight:800;color:#1d1238}
.sa-message time{font-size:11px;color:#8a80a3}
.sa-message p{font-size:13.5px;color:#4a3f66}
.sa-empty{font-size:13.5px;color:#8a80a3}
.sa-transfer label{font-size:12px;font-weight:800;color:#8a80a3}
.sa-transfer select{border-color:#ddd5ec;border-radius:12px;color:#1d1238;font-weight:600}

@media(max-width:1280px){.sv-view .sv-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.sv-view .sv-agent-metric{grid-column:1/-1}
  .sv-view .sv-status-counts{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:900px){.sv-view .sv-status-counts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){
  .sv-view .sv-heading{padding:20px}.sv-view .sv-heading h2{font-size:21px}
  .sv-view .sv-summary{grid-template-columns:1fr 1fr}.sv-view .sv-agent-metric{grid-column:1/-1}
  .sv-view .sv-status-counts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sv-view .sv-metric>strong{font-size:24px}
}
@media(max-width:480px){.sv-view .sv-summary{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.sv-hero-aurora i,.sv-view .sv-live-indicator{animation:none!important}}
