body { min-height: 100vh; }
.code-area, pre, .font-monospace { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.code-area { font-size: .85rem; white-space: pre; }
.response-card { overflow: hidden; }
.response-header { transition: background-color .2s ease, border-color .2s ease; }
.response-header.is-success { background: #ecfdf5; border-bottom-color: #a7f3d0; }
.response-header.is-warning { background: #fffbeb; border-bottom-color: #fde68a; }
.response-header.is-error { background: #fef2f2; border-bottom-color: #fecaca; }
.response-header.is-info { background: #eff6ff; border-bottom-color: #bfdbfe; }
.response-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem; }
.response-http-status { font-weight: 700; }
.response-header.is-success .response-http-status { color: #047857; }
.response-header.is-warning .response-http-status { color: #b45309; }
.response-header.is-error .response-http-status { color: #b91c1c; }
.response-header.is-info .response-http-status { color: #1d4ed8; }
.response-area {
  min-height: 180px;
  max-height: 620px;
  overflow: auto;
  margin: 0;
  padding: 1rem 1.15rem;
  border: 1px solid #273244;
  border-radius: .5rem;
  background: #0b1020;
  color: #dbe4f0;
  font-size: .875rem;
  line-height: 1.55;
  tab-size: 2;
  box-shadow: inset 0 1px 8px rgb(0 0 0 / 24%);
}
.json-key { color: #93c5fd; font-weight: 700; }
.json-string { color: #86efac; }
.json-number { color: #fbbf24; font-weight: 600; }
.json-boolean { color: #c4b5fd; font-weight: 700; }
.json-null { color: #fca5a5; font-weight: 700; font-style: italic; }
.table td, .table th { vertical-align: middle; }

/* Statistics */
.statistics-number { font-variant-numeric: tabular-nums; }
.statistics-selection-column { min-width: 86px; }
.statistics-customer-table-wrap { max-height: 42vh; }
.statistics-customer-table, .statistics-recent-table { min-width: max-content; }
.statistics-customer-table thead, .statistics-recent-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
.statistics-customer-table thead th, .statistics-recent-table thead th {
  background-color: var(--bs-tertiary-bg, #f8f9fa);
  white-space: nowrap;
}
.statistics-customer-row { cursor: pointer; }
.statistics-client-radio { cursor: pointer; }
.statistics-analysis { overflow: hidden; }
.statistics-analysis-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}
.statistics-scopebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg, #f8f9fa);
}
.statistics-scope-label,
.statistics-filter-label {
  color: var(--bs-secondary-color);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.statistics-period-group .btn.active {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}
.statistics-tabs {
  display: flex;
  overflow-x: auto;
  padding: 0 .5rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: #fff;
}
.statistics-tab {
  position: relative;
  flex: 0 0 auto;
  padding: .82rem .85rem .68rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--bs-secondary-color);
  font: inherit;
  white-space: nowrap;
}
.statistics-tab:hover { color: var(--bs-primary); }
.statistics-tab.active {
  border-bottom-color: var(--bs-primary);
  color: var(--bs-primary);
  font-weight: 700;
}
.statistics-loaded-dot {
  display: none;
  position: absolute;
  top: .42rem;
  right: .25rem;
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: var(--bs-success);
}
.statistics-tab.loaded .statistics-loaded-dot { display: block; }
.statistics-tab-content { padding: 1rem; min-height: 320px; }
.statistics-loading,
.statistics-empty-state {
  padding: 4rem 1rem;
  color: var(--bs-secondary-color);
  text-align: center;
}
.statistics-empty-icon { margin-bottom: .35rem; font-size: 2rem; opacity: .5; }
.statistics-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.statistics-filter-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.statistics-chip {
  padding: .35rem .58rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .4rem;
  background: #fff;
  color: var(--bs-body-color);
  font-size: .82rem;
}
.statistics-chip:hover { border-color: var(--bs-primary); color: var(--bs-primary); }
.statistics-chip.active {
  border-color: #9ec5fe;
  background: #e7f1ff;
  color: #0a58ca;
  font-weight: 700;
}
.statistics-callout {
  margin-bottom: 1rem;
  padding: .65rem .8rem;
  border: 1px solid #b6d4fe;
  border-radius: .45rem;
  background: #e7f1ff;
  color: #294f79;
  font-size: .82rem;
}
.statistics-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.statistics-kpi {
  padding: .8rem .9rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  background: #fff;
}
.statistics-kpi-warning { border-color: #ffe69c; background: #fff9e6; }
.statistics-kpi-danger { border-color: #f1aeb5; background: #fff5f5; }
.statistics-kpi-label {
  margin-bottom: .25rem;
  color: var(--bs-secondary-color);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.statistics-kpi-value {
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -.015em;
  font-variant-numeric: tabular-nums;
}
.statistics-kpi-foot { margin-top: .15rem; color: var(--bs-secondary-color); font-size: .75rem; }
.statistics-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  gap: 1rem;
}
.statistics-panel {
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  background: #fff;
}
.statistics-panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .7rem .85rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: var(--bs-tertiary-bg, #f8f9fa);
}
.statistics-panel-header h3 { margin: 0; font-size: .9rem; }
.statistics-panel-header span { color: var(--bs-secondary-color); font-size: .75rem; }
.statistics-panel-body { padding: .85rem; }
.statistics-bars { display: grid; gap: .55rem; }
.statistics-bar-row {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr 86px;
  align-items: center;
  gap: .6rem;
}
.statistics-bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .82rem;
}
.statistics-bar-track {
  height: .72rem;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f3;
}
.statistics-bar-fill { height: 100%; border-radius: 999px; background: #6ea8fe; }
.statistics-bar-fill.statistics-bar-danger { background: #dc777f; }
.statistics-bar-value { text-align: right; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.statistics-line-chart { min-height: 260px; }
.statistics-line-chart svg { display: block; width: 100%; height: auto; max-height: 320px; }
.statistics-chart-axis { stroke: #dfe3e8; stroke-width: 1; }
.statistics-chart-line { stroke: var(--bs-primary); stroke-width: 2.3; vector-effect: non-scaling-stroke; }
.statistics-chart-label { fill: #6c757d; font-size: 11px; }
.statistics-sequence { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.statistics-sequence-node {
  padding: .27rem .4rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .3rem;
  background: var(--bs-tertiary-bg, #f8f9fa);
  font-size: .75rem;
}
.statistics-sequence-arrow { color: var(--bs-secondary-color); }
.statistics-activity-table-wrap,
.statistics-calls-table-wrap { max-height: 60vh; }
.statistics-breakable { max-width: 280px; overflow-wrap: anywhere; }
.statistics-status { font-weight: 600; }
.statistics-status-success { background: var(--bs-success); }
.statistics-status-replayed { background: var(--bs-info); color: var(--bs-dark); }
.statistics-status-error { background: var(--bs-danger); }
.statistics-status-processing { background: var(--bs-warning); color: var(--bs-dark); }
.statistics-calls-filter {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(260px, 1fr) auto;
  gap: .75rem;
  align-items: end;
  margin-bottom: 1rem;
}
.statistics-calls-actions { display: flex; gap: .4rem; }

@media (max-width: 991.98px) {
  .statistics-kpis { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .statistics-grid-two { grid-template-columns: 1fr; }
  .statistics-calls-filter { grid-template-columns: 1fr 1fr; }
  .statistics-calls-actions { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
  .statistics-customer-table-wrap { max-height: none; }
  .statistics-kpis { grid-template-columns: 1fr; }
  .statistics-bar-row { grid-template-columns: 120px 1fr 74px; }
  .statistics-calls-filter { grid-template-columns: 1fr; }
  .statistics-calls-actions { grid-column: auto; }
}
