#cmsReportPanel{--cms-AVAIL:#30bc85;--cms-ACD:#8576f1;--cms-ACW:#dbad5b;--cms-AUX:#e4914d;--cms-RING:#51a9e4;--cms-OTHER:#9293a2;--cms-UNSTAFF:#606477;display:grid;gap:20px}
#cmsReportPanel.hidden{display:none!important}
.cms-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 0 4px}.cms-eyebrow{font-size:10px;font-weight:800;letter-spacing:.16em;color:var(--purple)}.cms-heading h2{font-size:27px;letter-spacing:-.7px;margin:8px 0}.cms-heading p,.cms-report-title p{color:var(--muted);font-size:13px;margin:0}.cms-live-label{font-size:11px;font-weight:700;color:var(--green);white-space:nowrap}.cms-live-label.cms-stale{color:var(--orange)}
.cms-controls{padding:20px!important}.cms-filter-grid{display:flex;gap:14px;align-items:end;flex-wrap:wrap}.cms-filter-grid label,.cms-limits label{display:grid;gap:8px;font-size:11px;font-weight:700;color:var(--muted);flex:1;min-width:135px}.cms-filter-grid .cms-type{flex:1.8;min-width:230px}.cms-filter-grid select,.cms-filter-grid input,.cms-search input,.cms-limits input{border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:var(--surface2);color:var(--text);height:40px;width:100%;font-size:12px}.cms-filter-grid .hidden{display:none!important}.cms-actions,.cms-actions>div{display:flex;gap:10px;align-items:center}.cms-actions{justify-content:space-between;margin-top:18px;flex-wrap:wrap}.cms-actions button{padding:9px 13px;border:1px solid var(--line);border-radius:8px;background:var(--surface2);color:var(--text);font-weight:650;font-size:12px;cursor:pointer}.cms-actions button.primary{background:var(--purple);border-color:var(--purple);color:white}.cms-actions button:disabled{opacity:.45;cursor:not-allowed}.cms-auto{font-size:11px;color:var(--muted);display:flex;gap:7px;align-items:center}.cms-auto input{accent-color:var(--purple)}.cms-limits{display:flex;gap:20px;padding-top:18px;border-top:1px solid var(--line);margin-top:18px;align-items:center}.cms-limits span{font-size:11px;color:var(--muted);flex:2}.cms-limits.hidden{display:none}.cms-error{border:1px solid var(--red);border-radius:8px;padding:14px;color:var(--red);font-size:13px}.cms-error.hidden{display:none}
#cmsReportContent{display:grid;gap:18px}.cms-report-title{display:flex;justify-content:space-between;align-items:center;gap:16px}.cms-report-title h2{font-size:20px;margin:0 0 5px}.cms-report-title>span{color:var(--muted);font-size:10px;text-align:right}.cms-state-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;flex-wrap:wrap;overflow:hidden}.cms-state-strip>div{min-width:0;padding:15px 17px;border-right:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.cms-state-strip strong{font-size:21px}.cms-state{display:inline-flex;align-items:center;gap:6px;font-size:10px;white-space:nowrap;color:var(--muted)}.cms-state b{font-size:10px;color:var(--text)}.cms-state i{width:7px;height:7px;border-radius:50%;background:var(--cms-OTHER);flex:none}.cms-state-AVAIL i{background:var(--cms-AVAIL)}.cms-state-ACD i{background:var(--cms-ACD)}.cms-state-ACW i{background:var(--cms-ACW)}.cms-state-AUX i{background:var(--cms-AUX)}.cms-state-RING i{background:var(--cms-RING)}.cms-state-UNSTAFF i{background:var(--cms-UNSTAFF)}
.cms-table-card{padding:0!important;min-width:0;overflow:hidden}.cms-table-tools{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px}.cms-table-tools h3{font-size:14px;margin:0 0 4px}.cms-table-tools span{font-size:11px;color:var(--muted)}.cms-search{font-size:10px;color:var(--muted);display:grid;gap:5px;width:250px}.cms-search input{height:34px;font-size:11px}.cms-table-scroll{width:100%;max-height:570px;overflow:auto}.cms-table{width:100%;border-collapse:collapse;font-size:11px;text-align:left}.cms-table th{padding:13px 12px;background:var(--surface2);color:var(--muted);font-size:10px;white-space:nowrap;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:1}.cms-table th button{border:0;background:none;padding:0;color:inherit;font:inherit;text-align:left;cursor:pointer}.cms-table td{padding:15px 12px;border-bottom:1px solid var(--line-soft);white-space:nowrap;font-variant-numeric:tabular-nums}.cms-table tr:last-child td{border-bottom:0}.cms-table tbody tr:hover{background:var(--surface2)}.cms-table .cms-limit-hit{box-shadow:inset 3px 0 var(--orange);background:color-mix(in srgb,var(--orange) 7%,transparent)}.cms-agent-link{background:none;border:0;padding:0;color:var(--text);font-weight:650;cursor:pointer;text-align:left}.cms-agent-link:hover{color:var(--purple);text-decoration:underline}.cms-clock{font-variant-numeric:tabular-nums;font-weight:650}.cms-table-footer{padding:13px 20px;font-size:10px;color:var(--muted);border-top:1px solid var(--line)}.cms-empty{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--muted);white-space:normal}.cms-empty strong{font-size:15px;color:var(--text)}.cms-empty span{font-size:12px}.cms-empty-large{min-height:300px}
.cms-section-label{font-size:10px;letter-spacing:.1em;color:var(--muted);font-weight:800;margin:7px 0 -7px}.cms-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.cms-metric{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px;display:grid;gap:9px}.cms-metric>span{font-size:11px;color:var(--muted)}.cms-metric>strong{font-size:26px;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.cms-metric>small{font-size:10px;color:var(--muted)}.cms-kpis-live .cms-metric{border-top:2px solid var(--purple)}.cms-metric-alert{border-color:var(--orange)}.cms-metric-alert strong{color:var(--orange)}.cms-summary-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:18px;align-items:start}.cms-distribution{padding:22px!important}.cms-card-heading>span{font-size:9px;letter-spacing:.12em;color:var(--purple);font-weight:800}.cms-card-heading h3{margin:7px 0;font-size:15px}.cms-card-heading p{font-size:11px;color:var(--muted)}.cms-donut-layout{display:flex;align-items:center;justify-content:center;gap:26px;flex-wrap:wrap;margin-top:30px}.cms-donut{height:170px;width:170px;border-radius:50%;display:grid;place-items:center;background:var(--surface2)}.cms-donut>div{height:124px;width:124px;border-radius:50%;background:var(--surface);display:flex;flex-direction:column;justify-content:center;align-items:center}.cms-donut strong{font-size:34px;line-height:1.2}.cms-donut span{color:var(--muted);font-size:11px}.cms-legend{display:grid;gap:11px;min-width:145px}.cms-legend>div{display:flex;align-items:center;gap:8px;font-size:11px}.cms-legend i{width:8px;height:8px;border-radius:3px}.cms-legend span{flex:1;color:var(--muted)}.cms-legend strong{font-variant-numeric:tabular-nums}
.cms-agent-header{display:flex;align-items:center;gap:16px;padding:22px!important}.cms-avatar{height:48px;width:48px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--purple) 15%,transparent);color:var(--purple);font-weight:800}.cms-agent-header h3{font-size:20px;margin:0 0 5px}.cms-agent-header p{font-size:11px;color:var(--muted);margin:0}.cms-agent-header>.cms-state{margin-left:auto}.cms-detail-grid{display:grid;grid-template-columns:minmax(290px,1fr) minmax(0,1.8fr);gap:18px}.cms-agent-details,.cms-time-chart{padding:22px!important;min-width:0}.cms-agent-details h3{font-size:14px;margin:0 0 15px}.cms-agent-details h4{font-size:12px;margin:24px 0 10px}.cms-detail-field{display:flex;justify-content:space-between;gap:16px;align-items:baseline;padding:9px 0;font-size:11px;border-bottom:1px solid var(--line-soft)}.cms-detail-field span{color:var(--muted)}.cms-detail-field strong{text-align:right;font-size:12px}.cms-bars{display:flex;gap:14px;height:300px;align-items:stretch;padding-top:20px}.cms-bar-column{display:flex;flex-direction:column;align-items:center;gap:8px;flex:1;min-width:0}.cms-bar-column>strong{font-size:10px;font-variant-numeric:tabular-nums}.cms-bar-column>b{font-size:11px}.cms-bar-column>small{font-size:9px;color:var(--muted);text-align:center}.cms-bar-track{flex:1;min-height:0;width:100%;max-width:55px;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,transparent,transparent 24%,var(--line-soft) 24.5%,transparent 25%)}.cms-bar{width:90%;border-radius:5px 5px 0 0;min-height:1px}.cms-no-measure{font-size:9px;color:var(--muted);text-align:center;padding-bottom:15px}.cms-chart-note{font-size:10px;color:var(--muted);line-height:1.6;margin-top:25px;padding-top:14px;border-top:1px solid var(--line)}.cms-timeline{padding:18px!important}.cms-timeline summary{font-size:12px;font-weight:700;cursor:pointer;margin-bottom:12px}.cms-notes{padding:17px 20px!important;color:var(--muted);font-size:11px;line-height:1.8}.cms-notes summary{cursor:pointer;font-weight:650;color:var(--text)}.cms-notes ul{padding-left:20px}.cms-notes dd{margin:5px 0}.cms-ewt{padding:18px!important;font-size:12px}.cms-ewt summary{cursor:pointer;font-weight:700}.cms-ewt p{color:var(--muted);font-size:11px}.cms-ewt-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:10px}
@media(max-width:1150px){.cms-heading{align-items:start}.cms-summary-grid,.cms-detail-grid{grid-template-columns:1fr}.cms-live-label{white-space:normal;line-height:1.6}.cms-state-strip>div{min-width:0}.cms-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.cms-state-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.cms-heading,.cms-report-title,.cms-table-tools,.cms-actions,.cms-actions>div{align-items:stretch;flex-direction:column}.cms-heading h2{font-size:23px}.cms-filter-grid{display:grid;grid-template-columns:1fr}.cms-kpis{grid-template-columns:1fr}.cms-search{width:100%}.cms-report-title>span{text-align:left}.cms-limits{flex-direction:column;align-items:stretch}.cms-ewt-grid{grid-template-columns:repeat(2,1fr)}.cms-agent-header{flex-wrap:wrap}.cms-bars{gap:7px}.cms-bar-column>strong{font-size:9px}}
@media print{body.cms-printing{background:white!important;color:#161616!important}body.cms-printing .sidebar,body.cms-printing .topbar,body.cms-printing .report-mode-tabs,body.cms-printing .cms-controls,body.cms-printing .cms-notes,body.cms-printing .cms-search,body.cms-printing .cms-live-label,body.cms-printing .cms-table-footer,body.cms-printing #toastRegion{display:none!important}body.cms-printing #supervisorApp,body.cms-printing main{display:block!important;margin:0!important;padding:0!important}body.cms-printing #cmsReportPanel{--surface:white;--surface2:#f3f3f5;--text:#161616;--muted:#555;--line:#ddd;--line-soft:#eee;display:block!important}body.cms-printing .card,body.cms-printing .cms-metric{box-shadow:none!important;border:1px solid #ddd!important;margin-bottom:12px;break-inside:avoid}body.cms-printing .cms-table-scroll{max-height:none;overflow:visible}body.cms-printing .cms-table{font-size:8px}body.cms-printing .cms-table td,body.cms-printing .cms-table th{white-space:normal;padding:7px}body.cms-printing .cms-table th{position:static}body.cms-printing .cms-summary-grid,body.cms-printing .cms-detail-grid{display:block}body.cms-printing .cms-state-strip{margin-bottom:15px}body.cms-printing *{print-color-adjust:exact;-webkit-print-color-adjust:exact}@page{size:A4 landscape;margin:12mm}}

/* Single report list in the existing sidebar. */
.sidebar>nav{min-height:0;flex:1;overflow-y:auto;align-content:start;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.sidebar>.brand,.sidebar>.sidebar-section-label,.sidebar>.sidebar-bottom{flex-shrink:0}
.sidebar>.sidebar-bottom{padding-top:14px}
.reports-menu-chevron{width:12px;height:12px;flex:none;margin-left:auto;fill:none;stroke:currentColor;stroke-width:1.6;transition:transform .15s}
#reportsMenuToggle[aria-expanded="true"] .reports-menu-chevron{transform:rotate(90deg)}
.report-nav-menu{display:grid;gap:3px;padding:4px 0 9px 17px;margin:0 3px 3px 13px;border-left:1px solid var(--line)}
.report-nav-menu.hidden{display:none!important}
.report-nav-item{position:relative;display:block;width:100%;min-height:35px;padding:8px 10px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:inherit;font-size:11px;line-height:1.35;text-align:left;cursor:pointer}
.report-nav-item:hover,.report-nav-item.active{background:var(--surface2);color:var(--text)}
.report-nav-item.active{font-weight:700;box-shadow:inset 2px 0 var(--purple)}
.report-nav-item:focus-visible,#reportsMenuToggle:focus-visible{outline:2px solid var(--purple);outline-offset:-2px}
.report-nav-label{padding:13px 10px 5px;font-size:9px;font-weight:750;letter-spacing:.03em;color:var(--muted)}
@media(max-width:900px){
  .reports-menu-chevron{display:none}
  .report-nav-menu{position:fixed;left:72px;top:var(--reports-menu-top,64px);width:min(260px,calc(100vw - 84px));max-height:calc(100dvh - var(--reports-menu-top,64px) - 12px);overflow-y:auto;padding:10px;margin:0;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);z-index:60}
  .report-nav-item{min-height:39px;font-size:12px}
}

/* Relatórios separados por natureza da informação. */
.report-nav-label{
  padding-top:14px;
  color:var(--text-strong);
  font-size:8.5px;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.report-nav-label:first-child{padding-top:7px}
.cms-agent-history-kpis{margin:14px 0}
.cms-agent-history-kpis+.cms-time-chart{margin-bottom:14px}

/* Gravações usam a mesma leitura tabular do histórico de chamadas. */
#view-recordings .recordings-table-card{padding:0;overflow:hidden}
#view-recordings .recordings-table{min-width:1120px}
#view-recordings .recordings-table th:last-child,
#view-recordings .recordings-table td:last-child{
  position:sticky;
  right:0;
  z-index:2;
  min-width:94px;
  border-left:1px solid var(--line-soft);
  background:var(--surface);
  text-align:right;
}
#view-recordings .recordings-table th:last-child{z-index:3;background:var(--surface2)}
#view-recordings .recordings-table tbody tr.playing{background:color-mix(in srgb,var(--purple) 7%,transparent)}
.recording-actions-cell{white-space:nowrap}
.recording-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}
.recording-audio{display:none}
.recording-row-action{
  display:inline-flex;
  width:34px;
  height:34px;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--surface2);
  color:var(--text);
  font:inherit;
  font-size:17px;
  font-weight:700;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
}
.recording-row-action:hover{border-color:var(--purple);color:var(--purple)}
.recording-row-action.playing{border-color:var(--purple);background:color-mix(in srgb,var(--purple) 12%,var(--surface));color:var(--purple)}
.recording-row-action:focus-visible{outline:2px solid var(--purple);outline-offset:1px}

@media(max-width:700px){
  #view-recordings .recording-filters{grid-template-columns:1fr 1fr}
  #view-recordings .recording-period-shortcuts{grid-column:1/-1}
}

.report-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.report-heading-actions .report-export-button{min-height:36px}
.cms-call-detail-card{margin-top:18px}
.cms-call-filters{display:flex;align-items:end;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.cms-call-filters label{display:grid;gap:5px;color:var(--muted);font-size:10px}
.cms-call-filters select,.cms-call-filters input{min-width:165px;height:34px;font-size:11px}
.cms-call-table{min-width:1050px}
.cms-call-table-scroll{max-height:620px}
.cms-call-status{display:inline-flex;padding:4px 8px;border-radius:999px;background:var(--surface2);font-size:9px;font-weight:750}
.cms-call-answered{color:var(--green)}
.cms-call-abandoned{color:var(--red)}

@media(max-width:700px){
  .report-heading-actions{justify-content:flex-start}
  .cms-call-filters{width:100%;justify-content:stretch}
  .cms-call-filters label{flex:1}
  .cms-call-filters select,.cms-call-filters input{width:100%;min-width:0}
}

@media print{
  body.cms-printing .cms-call-filters{display:none!important}
  body.report-pdf{background:#fff!important;color:#161616!important}
  body.report-pdf .sidebar,
  body.report-pdf .topbar,
  body.report-pdf .report-filters,
  body.report-pdf .journey-filters,
  body.report-pdf .report-heading-actions,
  body.report-pdf #toastRegion{display:none!important}
  body.report-pdf #supervisorApp,
  body.report-pdf main,
  body.report-pdf #view-reports{display:block!important;margin:0!important;padding:0!important}
  body.report-pdf #reportOperationPanel,
  body.report-pdf #reportJourneyPanel{--surface:#fff;--surface2:#f3f3f5;--text:#161616;--text-strong:#111;--muted:#555;--line:#ddd;--line-soft:#eee;color:#161616}
  body.report-pdf .card,
  body.report-pdf .report-kpi{box-shadow:none!important;border:1px solid #ddd!important;break-inside:avoid}
  body.report-pdf .table-scroll{max-height:none!important;overflow:visible!important}
  body.report-pdf table{font-size:8px!important}
  body.report-pdf th,
  body.report-pdf td{white-space:normal!important;padding:7px!important}
  body.report-pdf *{print-color-adjust:exact;-webkit-print-color-adjust:exact}
  @page{size:A4 landscape;margin:12mm}
}
