/* XBOSS operations overview v9 */
.xb-overview-v9-route .page-enter > .xb-v9-original-hidden,
.xb-v9-original-hidden {
  display: none !important;
}

.xb-overview-v9-route .page-enter {
  gap: 0 !important;
}

.xb-sr-only,
.xb-sr-only:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.xb-ops-shell {
  --xb-surface: #11161d;
  --xb-surface-raised: #151b23;
  --xb-surface-soft: #0d1218;
  --xb-border: #26303b;
  --xb-border-strong: #34404d;
  --xb-text: #f2f5f8;
  --xb-text-soft: #b7c0cc;
  --xb-muted: #778392;
  --xb-teal: #2dd4bf;
  --xb-blue: #60a5fa;
  --xb-green: #4ade80;
  --xb-amber: #fbbf24;
  --xb-rose: #fb7185;
  --xb-violet: #a78bfa;
  width: 100%;
  min-width: 0;
  color: var(--xb-text);
  letter-spacing: 0;
}

.xb-ops-shell *,
.xb-ops-shell *::before,
.xb-ops-shell *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.xb-ops-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 0 22px;
  border-bottom: 1px solid var(--xb-border);
}

.xb-ops-title {
  min-width: 0;
}

.xb-ops-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8f9aa8;
  font-size: 11px;
  font-weight: 700;
}

.xb-ops-kicker > i,
.xb-sync-state > i,
.xb-live-label > i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--xb-teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .12);
}

.xb-ops-title h2 {
  margin: 7px 0 0;
  color: var(--xb-text);
  font-size: 24px;
  font-weight: 760;
  line-height: 1.25;
}

.xb-ops-title p {
  margin: 8px 0 0;
  color: var(--xb-muted);
  font-size: 12px;
  line-height: 1.6;
}

.xb-ops-title p strong {
  color: var(--xb-text-soft);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.xb-ops-sync {
  display: grid;
  grid-template-columns: auto 38px;
  grid-template-areas: "state button" "time button";
  align-items: center;
  justify-items: end;
  gap: 4px 12px;
  flex: none;
}

.xb-sync-state {
  grid-area: state;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9eabb9;
  font-size: 11px;
  font-weight: 650;
}

.xb-sync-state.is-delayed > i {
  background: var(--xb-amber);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, .12);
}

.xb-ops-sync time {
  grid-area: time;
  color: #687482;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.xb-refresh-button {
  grid-area: button;
  display: inline-grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--xb-border-strong);
  border-radius: 6px;
  background: var(--xb-surface-raised);
  color: #c8d1dc;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.xb-refresh-button > span {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.xb-refresh-button:hover {
  border-color: #587087;
  background: #1a222c;
  color: #fff;
  transform: translateY(-1px);
}

.xb-refresh-button:focus-visible,
.xb-segment button:focus-visible,
.xb-ring-legend:focus-visible,
.xb-ops-error button:focus-visible,
.xb-chart-hit:focus-visible {
  outline: 2px solid var(--xb-blue);
  outline-offset: 2px;
}

.xb-refresh-button.is-loading > span {
  animation: xb-v9-spin 700ms linear infinite;
}

.xb-stale-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid rgba(251, 191, 36, .25);
  border-radius: 6px;
  background: rgba(251, 191, 36, .07);
  color: #d5b664;
  font-size: 11px;
}

.xb-stale-notice > span {
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: rgba(251, 191, 36, .14);
  color: var(--xb-amber);
  font-weight: 800;
}

.xb-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.xb-metric {
  position: relative;
  min-width: 0;
  min-height: 142px;
  overflow: hidden;
  padding: 17px 16px 15px;
  border: 1px solid var(--xb-border);
  border-radius: 7px;
  background: var(--xb-surface);
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1), border-color 220ms ease, background-color 220ms ease;
}

.xb-metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--metric-color);
  opacity: .82;
}

.xb-metric::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 68px;
  height: 1px;
  background: var(--metric-color);
  opacity: .65;
}

.xb-metric:hover {
  transform: translateY(-3px);
  border-color: var(--xb-border-strong);
  background: var(--xb-surface-raised);
}

.xb-tone-teal { --metric-color: var(--xb-teal); }
.xb-tone-blue { --metric-color: var(--xb-blue); }
.xb-tone-green { --metric-color: var(--xb-green); }
.xb-tone-amber { --metric-color: var(--xb-amber); }
.xb-tone-rose { --metric-color: var(--xb-rose); }
.xb-tone-violet { --metric-color: var(--xb-violet); }

.xb-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.xb-metric-label {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #8995a3;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.xb-metric-symbol {
  display: inline-grid;
  width: 25px;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--metric-color) 25%, transparent);
  border-radius: 5px;
  background: color-mix(in srgb, var(--metric-color) 8%, transparent);
  color: var(--metric-color);
  font-size: 13px;
  font-weight: 800;
}

.xb-metric-value {
  display: block;
  min-width: 0;
  margin-top: 14px;
  overflow-wrap: anywhere;
  color: var(--xb-text);
  font-size: 23px;
  font-weight: 780;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.xb-metric-value.is-wide {
  font-size: 20px;
}

.xb-metric-value.is-extra-wide {
  font-size: 18px;
}

.xb-metric-foot {
  display: flex;
  min-width: 0;
  min-height: 19px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 9px;
  margin-top: 14px;
}

.xb-change {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--xb-muted);
  font-size: 10px;
  line-height: 1.4;
}

.xb-change-up { color: #5ddb91; }
.xb-change-down { color: #fb8899; }
.xb-change-flat { color: #778392; }

.xb-mini-track {
  width: 42px;
  min-width: 42px;
  height: 4px;
  overflow: hidden;
  border-radius: 3px;
  background: #222b35;
}

.xb-mini-track > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--metric-color);
}

.xb-ops-grid {
  display: grid;
  min-width: 0;
  gap: 12px;
  margin-top: 12px;
}

.xb-grid-primary {
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, .75fr);
}

.xb-grid-secondary {
  grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr);
}

.xb-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--xb-border);
  border-radius: 7px;
  background: var(--xb-surface);
  transition: border-color 200ms ease, background-color 200ms ease;
}

.xb-panel:hover {
  border-color: #303c48;
}

.xb-panel-head {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid #212a34;
}

.xb-panel-head > div:first-child {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.xb-panel-accent {
  width: 3px;
  height: 28px;
  flex: none;
  border-radius: 3px;
}

.xb-accent-blue { background: var(--xb-blue); }
.xb-accent-teal { background: var(--xb-teal); }
.xb-accent-amber { background: var(--xb-amber); }
.xb-accent-rose { background: var(--xb-rose); }
.xb-accent-violet { background: var(--xb-violet); }

.xb-panel-head > div:first-child > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.xb-panel-head strong {
  overflow-wrap: anywhere;
  color: #e7ecf2;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.25;
}

.xb-panel-head small {
  overflow-wrap: anywhere;
  color: #6f7b89;
  font-size: 10px;
  line-height: 1.35;
}

.xb-chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7b8795;
  font-size: 10px;
}

.xb-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.xb-chart-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.xb-chart-legend i.is-amount { background: var(--xb-blue); }
.xb-chart-legend i.is-orders { background: var(--xb-teal); }

.xb-chart-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 296px;
  padding: 10px 10px 5px;
}

.xb-chart-stage > svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 310px;
  overflow: visible;
}

.xb-chart-grid line {
  stroke: #232d38;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.xb-chart-grid text {
  fill: #66727f;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.xb-trend-bar {
  fill: url(#xb-v9-bars);
  transition: opacity 160ms ease;
}

.xb-chart-area {
  fill: url(#xb-v9-area);
}

.xb-chart-line {
  fill: none;
  stroke: var(--xb-blue);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.xb-chart-hit {
  outline: none;
  cursor: crosshair;
}

.xb-chart-hit > rect {
  fill: transparent;
  pointer-events: all;
}

.xb-chart-hit > circle {
  fill: var(--xb-surface);
  stroke: var(--xb-blue);
  stroke-width: 2;
  opacity: 0;
  transform-origin: center;
  transition: opacity 140ms ease, r 140ms ease, fill 140ms ease;
  vector-effect: non-scaling-stroke;
}

.xb-chart-hit:hover > circle,
.xb-chart-hit.is-active > circle,
.xb-chart-hit:focus > circle {
  r: 5.5;
  fill: var(--xb-blue);
  opacity: 1;
}

.xb-chart-tooltip {
  position: absolute;
  z-index: 4;
  display: grid;
  min-width: 172px;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid #354352;
  border-radius: 6px;
  background: rgba(12, 17, 23, .96);
  color: #aeb9c6;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
  font-size: 10px;
  pointer-events: none;
  animation: xb-v9-tip-in 130ms ease both;
}

.xb-chart-tooltip[hidden] {
  display: none;
}

.xb-chart-tooltip b {
  margin-bottom: 2px;
  color: #f2f5f8;
  font-size: 11px;
}

.xb-hour-stage {
  min-height: 260px;
  padding: 11px 12px 4px;
}

.xb-hour-stage > svg {
  max-height: 260px;
}

.xb-hour-stem {
  stroke: rgba(251, 191, 36, .22);
  stroke-width: 14;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: stroke 160ms ease;
}

.xb-hour-area {
  fill: url(#xb-v9-hour-area);
}

.xb-hour-line {
  fill: none;
  stroke: var(--xb-amber);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.xb-hour-hits .xb-chart-hit > circle {
  stroke: var(--xb-amber);
}

.xb-hour-hits .xb-chart-hit:hover > circle,
.xb-hour-hits .xb-chart-hit.is-active > circle,
.xb-hour-hits .xb-chart-hit:focus > circle {
  fill: var(--xb-amber);
}

.xb-ring-layout {
  display: grid;
  grid-template-columns: minmax(150px, .82fr) minmax(150px, 1fr);
  min-height: 316px;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
}

.xb-ring-visual {
  position: relative;
  width: min(100%, 210px);
  margin: 0 auto;
  aspect-ratio: 1;
}

.xb-ring-visual > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.xb-ring-track,
.xb-ring-segment {
  fill: none;
  stroke-width: 22;
  vector-effect: non-scaling-stroke;
}

.xb-ring-track {
  stroke: #202a34;
}

.xb-ring-segment {
  cursor: pointer;
  transition: opacity 180ms ease, stroke-width 180ms ease, filter 180ms ease;
}

.xb-ring-visual:has(.xb-ring-segment.is-active) .xb-ring-segment:not(.is-active),
.xb-panel-ring:has(.xb-ring-legend.is-active) .xb-ring-segment:not(.is-active) {
  opacity: .25;
}

.xb-ring-segment.is-active {
  stroke-width: 27;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .28));
}

.xb-ring-center {
  position: absolute;
  inset: 27%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  pointer-events: none;
}

.xb-ring-center span {
  max-width: 105px;
  overflow-wrap: anywhere;
  color: #75818e;
  font-size: 9px;
  line-height: 1.35;
}

.xb-ring-center strong {
  max-width: 120px;
  overflow-wrap: anywhere;
  color: #edf2f7;
  font-size: 15px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.xb-ring-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.xb-ring-legend {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  grid-template-areas: "dot name percent" "dot amount amount";
  align-items: center;
  gap: 1px 7px;
  padding: 5px 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #9ba7b4;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.xb-ring-legend:hover,
.xb-ring-legend.is-active,
.xb-ring-legend:focus-visible {
  background: #19212a;
  color: #eef2f7;
}

.xb-ring-legend > i {
  grid-area: dot;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.xb-ring-legend > span {
  grid-area: name;
  min-width: 0;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xb-ring-legend > b {
  grid-area: percent;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.xb-ring-legend > small {
  grid-area: amount;
  color: #667380;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.xb-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 108px;
  min-width: 108px;
  padding: 3px;
  border: 1px solid #2b3642;
  border-radius: 6px;
  background: #0d1319;
}

.xb-segment button {
  height: 27px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #73808e;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.xb-segment button.is-active {
  background: #26313d;
  color: #eef3f8;
}

.xb-channel-table-wrap,
.xb-orders-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-color: #35414e transparent;
}

.xb-channel-table,
.xb-orders-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.xb-channel-table th,
.xb-orders-table th {
  height: 38px;
  padding: 8px 11px;
  border-bottom: 1px solid #212a34;
  color: #687583;
  font-size: 9px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

.xb-channel-table td,
.xb-orders-table td {
  height: 49px;
  padding: 8px 11px;
  border-bottom: 1px solid #1e2730;
  color: #aeb8c4;
  font-size: 10px;
  vertical-align: middle;
}

.xb-channel-table tbody tr:last-child td,
.xb-orders-table tbody tr:last-child td {
  border-bottom: 0;
}

.xb-channel-table tbody tr,
.xb-orders-table tbody tr {
  transition: background-color 150ms ease;
}

.xb-channel-table tbody tr:hover,
.xb-orders-table tbody tr:hover {
  background: #151d25;
}

.xb-channel-table th:nth-child(1),
.xb-channel-table td:nth-child(1) { width: 42px; }
.xb-channel-table th:nth-child(2),
.xb-channel-table td:nth-child(2) { width: 28%; }
.xb-channel-table th:nth-child(5),
.xb-channel-table td:nth-child(5) { width: 72px; }

.xb-rank {
  display: inline-grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 5px;
  background: #222c36;
  color: #81909f;
  font-size: 9px;
  font-weight: 750;
}

.xb-channel-table tr:nth-child(1) .xb-rank { background: rgba(251, 191, 36, .14); color: var(--xb-amber); }
.xb-channel-table tr:nth-child(2) .xb-rank { background: rgba(96, 165, 250, .13); color: var(--xb-blue); }
.xb-channel-table tr:nth-child(3) .xb-rank { background: rgba(45, 212, 191, .12); color: var(--xb-teal); }

.xb-channel-table td:nth-child(2) strong {
  display: block;
  overflow: hidden;
  color: #d9e0e8;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xb-channel-progress {
  display: block;
  width: 100%;
  max-width: 108px;
  height: 3px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 2px;
  background: #222b35;
}

.xb-channel-progress > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--xb-blue), var(--xb-teal));
  transition: width 350ms cubic-bezier(.2, .8, .2, 1);
}

.xb-num {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.xb-muted-num { color: #737f8d !important; }

.xb-rate,
.xb-order-status {
  display: inline-flex;
  min-width: 52px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.xb-rate-good,
.xb-status-paid { border-color: rgba(74, 222, 128, .22); background: rgba(74, 222, 128, .08); color: #65dc91; }
.xb-rate-mid,
.xb-status-processing,
.xb-status-awaiting_payment,
.xb-status-created { border-color: rgba(251, 191, 36, .22); background: rgba(251, 191, 36, .08); color: #e3bd55; }
.xb-rate-bad,
.xb-status-failed,
.xb-status-expired { border-color: rgba(251, 113, 133, .22); background: rgba(251, 113, 133, .08); color: #f48394; }
.xb-rate-muted,
.xb-status-refunded { border-color: #303a45; background: #202832; color: #84909e; }

.xb-panel-orders {
  margin-top: 12px;
}

.xb-live-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7f8c9a;
  font-size: 9px;
  font-weight: 750;
}

.xb-orders-table th:nth-child(1),
.xb-orders-table td:nth-child(1) { width: 24%; }
.xb-orders-table th:nth-child(2),
.xb-orders-table td:nth-child(2) { width: 17%; }
.xb-orders-table th:nth-child(3),
.xb-orders-table td:nth-child(3) { width: 17%; }
.xb-orders-table th:nth-child(4),
.xb-orders-table td:nth-child(4) { width: 15%; }
.xb-orders-table th:nth-child(5),
.xb-orders-table td:nth-child(5) { width: 12%; }
.xb-orders-table th:nth-child(6),
.xb-orders-table td:nth-child(6) { width: 15%; text-align: right; }

.xb-order-no {
  display: block;
  overflow: hidden;
  color: #8eb6df;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xb-orders-table td > strong {
  color: #e4eaf0;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.xb-order-time {
  color: #727f8c !important;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.xb-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 30px;
  color: #697684;
  font-size: 11px;
  text-align: center;
}

.xb-ops-error {
  display: flex;
  min-height: 170px;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(251, 113, 133, .28);
  border-radius: 7px;
  background: rgba(251, 113, 133, .055);
}

.xb-ops-error-mark {
  display: inline-grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(251, 113, 133, .3);
  border-radius: 50%;
  background: rgba(251, 113, 133, .1);
  color: var(--xb-rose);
  font-size: 18px;
  font-weight: 800;
}

.xb-ops-error > div {
  min-width: 0;
  flex: 1;
}

.xb-ops-error h2 {
  margin: 0;
  color: #f0f3f7;
  font-size: 15px;
  font-weight: 720;
}

.xb-ops-error p {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  color: #9ba6b3;
  font-size: 11px;
}

.xb-ops-error button {
  display: inline-flex;
  min-width: 104px;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid #465464;
  border-radius: 6px;
  background: #1c252f;
  color: #e8edf2;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.xb-ops-loading {
  display: grid;
  gap: 14px;
}

.xb-skeleton-head,
.xb-skeleton-cards,
.xb-skeleton-panels {
  display: grid;
  gap: 12px;
}

.xb-skeleton-head {
  grid-template-columns: 1fr 120px;
  align-items: end;
  min-height: 82px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--xb-border);
}

.xb-skeleton-head > div {
  display: grid;
  gap: 9px;
}

.xb-skeleton-head i,
.xb-skeleton-head b,
.xb-skeleton-head span,
.xb-skeleton-head em,
.xb-skeleton-card i,
.xb-skeleton-card span,
.xb-skeleton-card b,
.xb-skeleton-card small,
.xb-skeleton-panels > div {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: #1b232c;
}

.xb-skeleton-head i { width: 90px; height: 10px; }
.xb-skeleton-head b { width: 230px; max-width: 70%; height: 24px; }
.xb-skeleton-head span { width: 310px; max-width: 85%; height: 11px; }
.xb-skeleton-head em { width: 116px; height: 38px; justify-self: end; }

.xb-skeleton-cards {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.xb-skeleton-card {
  display: grid;
  min-height: 142px;
  gap: 12px;
  padding: 17px 16px;
  border: 1px solid var(--xb-border);
  border-radius: 7px;
  background: var(--xb-surface);
}

.xb-skeleton-card i { width: 62%; height: 10px; }
.xb-skeleton-card span { width: 76%; height: 24px; }
.xb-skeleton-card b { width: 48%; height: 8px; align-self: end; }
.xb-skeleton-card small { display: none; }

.xb-skeleton-panels {
  grid-template-columns: 1.85fr .75fr;
}

.xb-skeleton-panels > div {
  min-height: 350px;
  border: 1px solid var(--xb-border);
  background: var(--xb-surface);
}

.xb-skeleton-head i::after,
.xb-skeleton-head b::after,
.xb-skeleton-head span::after,
.xb-skeleton-head em::after,
.xb-skeleton-card i::after,
.xb-skeleton-card span::after,
.xb-skeleton-card b::after,
.xb-skeleton-panels > div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .055), transparent);
  transform: translateX(-100%);
  animation: xb-v9-shimmer 1.35s ease-in-out infinite;
}

.xb-ops-shell[data-state="ready"] {
  animation: xb-v9-shell-in 380ms cubic-bezier(.2, .8, .2, 1) both;
}

.xb-ops-shell.is-first-render .xb-metric {
  animation: xb-v9-card-in 520ms cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--metric-index) * 55ms);
}

.xb-ops-shell.is-first-render .xb-panel {
  animation: xb-v9-panel-in 560ms cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: 240ms;
}

.xb-ops-shell.is-first-render .xb-trend-bar {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: xb-v9-bar-rise 620ms cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(260ms + var(--bar-index) * 14ms);
}

.xb-ops-shell.is-first-render .xb-chart-line,
.xb-ops-shell.is-first-render .xb-hour-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: xb-v9-line-draw 900ms cubic-bezier(.2, .8, .2, 1) 360ms both;
}

.xb-ops-shell.is-first-render .xb-ring-segment {
  opacity: 0;
  animation: xb-v9-ring-in 460ms ease both;
  animation-delay: calc(300ms + var(--ring-index) * 70ms);
}

.xb-ops-shell.is-first-render .xb-channel-table tbody tr,
.xb-ops-shell.is-first-render .xb-orders-table tbody tr {
  animation: xb-v9-row-in 380ms ease both;
  animation-delay: calc(320ms + var(--row-index) * 34ms);
}

@keyframes xb-v9-spin {
  to { transform: rotate(360deg); }
}

@keyframes xb-v9-shell-in {
  from { opacity: .45; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes xb-v9-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes xb-v9-panel-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes xb-v9-row-in {
  from { opacity: 0; transform: translateX(-5px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes xb-v9-bar-rise {
  from { opacity: .2; transform: scaleY(0); }
  to { opacity: 1; transform: scaleY(1); }
}

@keyframes xb-v9-line-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes xb-v9-ring-in {
  from { opacity: 0; stroke-width: 8; }
  to { opacity: 1; stroke-width: 22; }
}

@keyframes xb-v9-tip-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes xb-v9-shimmer {
  to { transform: translateX(100%); }
}

@media (max-width: 1399px) {
  .xb-metrics,
  .xb-skeleton-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .xb-grid-primary {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr);
  }

  .xb-ring-layout {
    grid-template-columns: 150px minmax(140px, 1fr);
  }
}

@media (max-width: 1099px) {
  .xb-grid-primary,
  .xb-grid-secondary,
  .xb-skeleton-panels {
    grid-template-columns: 1fr;
  }

  .xb-ring-layout {
    grid-template-columns: minmax(170px, .65fr) minmax(220px, 1fr);
    min-height: 280px;
  }
}

@media (max-width: 767px) {
  .xb-ops-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 16px;
  }

  .xb-ops-title h2 {
    font-size: 20px;
  }

  .xb-ops-title p {
    max-width: 100%;
  }

  .xb-ops-sync {
    width: 100%;
    grid-template-columns: 1fr 38px;
    justify-items: start;
  }

  .xb-refresh-button {
    justify-self: end;
  }

  .xb-metrics,
  .xb-skeleton-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .xb-metric {
    min-height: 132px;
    padding: 14px 13px;
  }

  .xb-metric-value,
  .xb-metric-value.is-wide {
    font-size: 19px;
  }

  .xb-panel-head {
    min-height: 58px;
    align-items: flex-start;
    padding: 12px 13px;
  }

  .xb-panel-head small {
    max-width: 210px;
  }

  .xb-chart-legend {
    gap: 7px;
  }

  .xb-chart-stage {
    min-height: 220px;
    overflow-x: auto;
  }

  .xb-chart-stage > svg {
    width: 720px;
    max-width: none;
    height: 232px;
  }

  .xb-hour-stage > svg {
    width: 600px;
  }

  .xb-ring-layout {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .xb-ring-visual {
    width: 180px;
  }

  .xb-ring-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .xb-channel-table {
    min-width: 620px;
  }

  .xb-ops-error {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .xb-ops-error button {
    margin-left: 56px;
  }

  .xb-skeleton-head {
    grid-template-columns: 1fr 76px;
  }
}

@media (max-width: 599px) {
  .xb-panel-orders .xb-panel-head {
    border-bottom: 0;
  }

  .xb-orders-wrap {
    padding: 0 10px 10px;
    overflow: visible;
  }

  .xb-orders-table,
  .xb-orders-table tbody,
  .xb-orders-table tr,
  .xb-orders-table td {
    display: block;
    width: 100% !important;
  }

  .xb-orders-table thead {
    display: none;
  }

  .xb-orders-table tbody {
    display: grid;
    gap: 8px;
  }

  .xb-orders-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "number number" "merchant channel" "amount status" "time time";
    overflow: hidden;
    padding: 8px 12px;
    border: 1px solid #26313b;
    border-radius: 6px;
    background: #121820;
  }

  .xb-orders-table td {
    position: relative;
    height: auto;
    min-height: 28px;
    padding: 13px 0 2px;
    border: 0 !important;
    text-align: left !important;
  }

  .xb-orders-table td::before {
    content: attr(data-label);
    position: absolute;
    top: 1px;
    left: 0;
    color: #667381;
    font-size: 8px;
  }

  .xb-orders-table td:nth-child(1) { grid-area: number; border-bottom: 1px solid #222c36 !important; }
  .xb-orders-table td:nth-child(2) { grid-area: merchant; }
  .xb-orders-table td:nth-child(3) { grid-area: channel; }
  .xb-orders-table td:nth-child(4) { grid-area: amount; }
  .xb-orders-table td:nth-child(5) { grid-area: status; }
  .xb-orders-table td:nth-child(6) { grid-area: time; padding-top: 14px; color: #7e8996 !important; }

  .xb-order-no {
    font-size: 10px;
  }
}

@media (max-width: 339px) {
  .xb-metrics,
  .xb-skeleton-cards {
    grid-template-columns: 1fr;
  }

  .xb-metric {
    min-height: 122px;
  }

  .xb-panel-head {
    flex-wrap: wrap;
  }

  .xb-panel-head > div:first-child {
    width: 100%;
  }

  .xb-segment {
    margin-left: 13px;
  }

  .xb-ring-list {
    grid-template-columns: 1fr;
  }

  .xb-ops-error button {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xb-ops-shell *,
  .xb-ops-shell *::before,
  .xb-ops-shell *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* The workbench has a real light mode. Keep the overview on the same surface system. */
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell {
  --xb-surface: #f5f7f8;
  --xb-surface-raised: #eef1f3;
  --xb-surface-soft: #e6ebee;
  --xb-border: #d0d9de;
  --xb-border-strong: #b9c6cd;
  --xb-text: #17222c;
  --xb-text-soft: #4e5d6a;
  --xb-muted: #73808b;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-ops-header,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-panel-head,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-orders-table th,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-channel-table th,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-orders-table td,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-channel-table td {
  border-color: #d0d9de;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-panel:hover,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-orders-table tr,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-segment {
  border-color: #b9c6cd;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-ops-title h2,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-panel-head strong,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-metric-value,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-orders-table td > strong,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-channel-table td:nth-child(2) strong {
  color: #17222c;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-ops-title p,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-panel-head small,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-metric-label,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-change,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-sync-state,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-ring-legend,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-channel-table td,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-orders-table td {
  color: #5f6d7a;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-refresh-button,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-segment,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-segment button.is-active,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-ring-legend:hover,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-ring-legend.is-active,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-orders-table tbody tr:hover,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-channel-table tbody tr:hover {
  background: #e9edef;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-refresh-button {
  color: #334656;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-chart-grid line {
  stroke: #e2e9ef;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-chart-grid text,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-order-time,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-muted-num,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-ring-legend > small {
  color: #7a8792 !important;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-mini-track,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-channel-progress {
  background: #dce4e8;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-ring-track {
  stroke: #dfe6e9;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-chart-tooltip {
  border-color: #d2dce5;
  background: rgba(255, 255, 255, .97);
  color: #596977;
  box-shadow: 0 12px 28px rgba(37, 55, 70, .14);
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-chart-tooltip b {
  color: #17222c;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-ring-center strong {
  color: #17222c;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-channel-table tr:nth-child(n + 4) .xb-rank {
  border: 1px solid #c7d1d7;
  background: #dfe5e8;
  color: #52616c;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell :is(.xb-rate-muted, .xb-status-refunded) {
  border-color: #c7d1d7;
  background: #e2e7ea;
  color: #5b6972;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-orders-table td:nth-child(1) {
  border-color: #d0d9de !important;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-ops-error h2 {
  color: #17222c;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-ops-error p {
  color: #5f6d7a;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-ops-error button {
  border-color: #b9c6cd;
  background: #e9edef;
  color: #26343d;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-skeleton-card,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-skeleton-panels > div {
  background: #f5f7f8;
  border-color: #d0d9de;
}

html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-skeleton-head i,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-skeleton-head b,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-skeleton-head span,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-skeleton-head em,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-skeleton-card i,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-skeleton-card span,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-skeleton-card b,
html[data-xboss-theme="light"]:not(.dark) .xb-ops-shell .xb-skeleton-panels > div {
  background: #dfe6e9;
}
