.qep-system-status-page {
  width: 100%;
  min-height: 100vh;
  color: #002050;
  font-family: "Sequel Sans", sans-serif;
}

.qep-system-status-hero-wrap {
  background-image: url(https://quantumepaydocs.tempurl.host/wp-content/uploads/2026/05/Header-scaled.png);
  background-size: 100% auto;
  background-repeat: no-repeat;
}

.qep-system-status-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  max-width: 1140px;
  margin: auto;
  padding: var(--space-9xl) var(--space-8xl);
  overflow: hidden;
  isolation: isolate;
}

.qep-system-status-hero-bg {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 327px;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}

.qep-system-status-icon {
  position: relative;
  width: 39px;
  height: 39px;
  border-radius: 9999px;
}

.qep-system-status-icon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  color: #079455;
}

.qep-status-pulse-icon {
  overflow: visible;
}

.qep-pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: qepStatusPulse 1.8s ease-out infinite;
}

.qep-pulse-ring-inner {
  animation-delay: 0s;
}

.qep-pulse-ring-outer {
  animation-delay: 0.25s;
}

@keyframes qepStatusPulse {
  0% {
    transform: scale(1);
    opacity: 0.35;
  }

  70% {
    transform: scale(1.18);
    opacity: 0.08;
  }

  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

.qep-system-status-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  text-align: center;
}

.breakdance .qep-system-status-heading h1 {
  margin: 0;
  color: #002050;
  font-size: var(--qep-xl);
  line-height: var(--qep-xl-lh);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.qep-system-status-heading p {
  margin: 0;
  max-width: 640px;
  color: #354352;
  font-size: var(--qep-small);
  line-height: var(--qep-small-lh);
  font-weight: 400;
}

.qep-system-status-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
  max-width: 1440px;
  margin: auto;
  padding: 0 var(--space-8xl) var(--space-8xl);
}

.qep-system-status-toolbar {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 768px;
}

.qep-system-status-toggle {
  display: flex;
  overflow: hidden;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  filter: drop-shadow(0 1px 2px rgba(16, 24, 40, 0.05));
}

.qep-system-status-toggle button {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-right: 1px solid #d0d5dd;
  background: #ffffff;
  color: #354352;
  font: inherit;
  font-size: var(--qep-small);
  line-height: var(--qep-small-lh);
  font-weight: 500;
  cursor: pointer;
}

.qep-system-status-toggle button:last-child {
  border-right: 0;
}

.qep-system-status-toggle button.is-active {
  background: #f9fafb;
}

.qep-system-status-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
  width: 100%;
  max-width: 768px;
}

.qep-system-status-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  padding: var(--space-3xl);
  background: #ffffff;
  border: 1px solid #eaecf0;
  border-radius: 12px;
}

.qep-system-status-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.breakdance .qep-system-status-card-top h2 {
  margin: 0;
  color: #002050;
  font-size: var(--qep-h6);
  line-height: 26px;
  font-weight: 600;
}

.qep-system-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: var(--qep-xs);
  line-height: var(--qep-xs-lh);
  font-weight: 600;
  white-space: nowrap;
}

.qep-system-status-badge span {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
}

.qep-status-operational .qep-system-status-badge {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #067647;
}

.qep-status-operational .qep-system-status-badge span {
  background: #17b26a;
}

.qep-status-known_issues .qep-system-status-badge,
.qep-status-maintenance .qep-system-status-badge {
  background: #fffaeb;
  border: 1px solid #fedf89;
  color: #b54708;
}

.qep-status-known_issues .qep-system-status-badge span,
.qep-status-maintenance .qep-system-status-badge span {
  background: #f79009;
}

.qep-status-down .qep-system-status-badge {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
}

.qep-status-down .qep-system-status-badge span {
  background: #f04438;
}

.qep-system-status-bars {
  display: grid;
  gap: 2px;
  width: 100%;
  height: 36px;
}

.qep-system-status-bars[data-range="24h"] {
  grid-template-columns: repeat(24, minmax(8px, 1fr));
}

.qep-system-status-bars[data-range="30d"] {
  grid-template-columns: repeat(30, minmax(8px, 1fr));
}

.qep-system-status-bar {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  height: 36px;
  border-radius: 10px;
  cursor: default;
}

.qep-system-status-bar.has-incident {
  cursor: pointer;
}

.qep-system-status-bar.is-operational {
  background: #47cd89;
}

.qep-system-status-bar.is-warning {
  background: #fdb022;
}

.qep-system-status-bar.is-down {
  background: #f04438;
}

.qep-system-status-card-bottom {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  width: 100%;
  color: #475467;
  font-size: var(--qep-xs);
  line-height: var(--qep-xs-lh);
}

.qep-system-status-start,
.qep-system-status-end {
  flex: 0 0 auto;
  white-space: nowrap;
}

.qep-system-status-divider {
  flex: 1;
  height: 1px;
  background: #eaecf0;
}

.qep-system-status-details-line {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
}

.qep-system-status-details-line span {
  flex: 1;
  height: 1px;
  background: #eaecf0;
}

.qep-system-status-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0066ff;
  font: inherit;
  font-size: var(--qep-xs);
  line-height: var(--qep-xs-lh);
  cursor: pointer;
}

.qep-system-status-details-panel {
  margin-top: -4px;
  padding: 16px;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  background: #f9fafb;
}

.breakdance .qep-system-status-details-panel h3 {
  margin: 0 0 8px;
  color: #002050;
  font-size: var(--qep-small);
  line-height: var(--qep-small-lh);
}

.qep-system-status-details-panel p {
  margin: 0 0 8px;
  color: #354352;
  font-size: var(--qep-xs);
  line-height: var(--qep-xs-lh);
}

.qep-system-status-details-content {
  color: #354352;
  font-size: var(--qep-xs);
  line-height: var(--qep-xs-lh);
}

.qep-system-status-modal[hidden] {
  display: none;
}

.qep-system-status-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl);
}

.qep-system-status-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 17, 39, 0.45);
}

.qep-system-status-modal__box {
  position: relative;
  width: min(100%, 560px);
  max-height: 80vh;
  overflow: auto;
  padding: var(--space-4xl);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(16, 24, 40, 0.18);
}

.qep-system-status-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #475467;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.qep-system-status-modal__content h3 {
  margin: 0 0 12px;
  color: #002050;
  font-size: var(--qep-h5);
  line-height: var(--qep-h5-lh);
}

.qep-system-status-modal__content p,
.qep-status-modal-details {
  color: #354352;
  font-size: var(--qep-small);
  line-height: var(--qep-small-lh);
}

.qep-system-status-modal__content small {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: var(--qep-xs);
  line-height: var(--qep-xs-lh);
}

.qep-status-incident-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eaecf0;
}

.qep-status-incident-timeline__item {
  padding-left: 14px;
  border-left: 2px solid #d0d5dd;
}

.qep-status-incident-timeline__item strong {
  display: block;
  color: #002050;
  font-size: var(--qep-xs);
  line-height: var(--qep-xs-lh);
  text-transform: capitalize;
}

.qep-status-incident-timeline__item p {
  margin: 6px 0 0;
}

@media (max-width: 767px) {
  .qep-system-status-hero-wrap {
    background-size: auto 100%;
    background-position: top center;
  }

  .qep-system-status-hero {
    padding: var(--space-7xl) var(--space-3xl) var(--space-6xl);
  }

  .qep-system-status-main {
    padding: 0 var(--space-3xl) var(--space-7xl);
  }

  .qep-system-status-toolbar {
    justify-content: center;
  }

  .qep-system-status-card {
    padding: var(--space-3xl);
  }

  .qep-system-status-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .qep-system-status-bars[data-range="24h"] {
    grid-template-columns: repeat(24, minmax(5px, 1fr));
  }

  .qep-system-status-bars[data-range="30d"] {
    grid-template-columns: repeat(30, minmax(5px, 1fr));
  }

  .qep-system-status-bar {
    height: 32px;
    border-radius: 8px;
  }

  .qep-system-status-card-bottom {
    gap: var(--space-md);
  }

  .qep-system-status-details-toggle {
    white-space: nowrap;
  }

  .qep-system-status-modal {
    padding: var(--space-3xl);
  }
}