/* New Relic Color Variables */
:root {
  --nr-blue: #0c74df;
  --nr-teal: #00a39e;
  --nr-green: #11a600;
  --nr-dark-blue: #003d73;
  --nr-success: #11a600;
  --nr-warning: #f5a020;
  --nr-error: #df2d24;
  --nr-info: #0c74df;
  --nr-gray-100: #f4f5f5;
  --nr-gray-200: #edeeee;
  --nr-gray-300: #d5d7d7;
  --nr-gray-400: #b9bcbd;
  --nr-gray-500: #8e9494;
  --nr-gray-600: #6b7175;
  --nr-gray-700: #464e53;
  --nr-gray-800: #2a3434;
  --nr-gray-900: #000e0e;
  --nr-text-primary: #000e0e;
  --nr-text-secondary: #464e53;
  --nr-text-tertiary: #6b7175;
  --nr-text-disabled: #b9bcbd;
  --nr-text-inverse: #ffffff;
  --nr-bg-primary: #ffffff;
  --nr-bg-secondary: #f4f5f5;
  --nr-bg-tertiary: #edeeee;
  --nr-bg-dark: #000e0e;
  --nr-border-light: #edeeee;
  --nr-border-medium: #d5d7d7;
  --nr-border-dark: #b9bcbd;
}

/* Hide specific statuspage.io UI elements */
.page-header,
.page-status,
.component-statuses,
.components-section,
.component-selector,
.no-incidents,
.page-footer .powered-by,
.component-container,
.component-inner-container,
.components-uptime-link,
.dev-controls,
.incidents-list {
  display: none !important;
}

/* Show page-header and page-footer on history page */
body.status-full-history .page-header,
body.status-full-history .page-footer {
  display: block !important;
  max-width: 1032px !important;
  margin: 0 auto !important;
  padding: 20px 24px !important;
}

/* Hide our custom fixed header on history page - use native instead */
body.status-full-history .nr-fixed-header {
  display: none !important;
}

/* Hide subscribe buttons only within incidents - preserve header subscribe dropdown */
.incident-title .updates-dropdown-container,
.unresolved-incident .subscribe,
.incident .subscribe,
.scheduled-maintenance .subscribe,
.incidents-list .subscribe,
.unresolved-incident .flat-button,
.incident .flat-button,
.scheduled-maintenance .flat-button,
.incident-title .flat-button,
.layout-content.status .incident-title .flat-button,
.layout-content.status .unresolved-incident .incident-title .flat-button,
.layout-content.status .unresolved-incident button,
.layout-content.status .incident button,
.layout-content.status .scheduled-maintenance button,
.page-footer {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Ensure native subscribe container is visible */
#replace-with-subscribe .updates-dropdown-container,
.nr-header-subscribe .updates-dropdown-container {
  display: inline-block !important;
  visibility: visible !important;
  z-index: 10000 !important;
}

/* Position the layout-content properly below header */
.layout-content.status {
  margin-top: 40px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: block !important;
  background-color: var(--nr-bg-secondary) !important;
}

/* Container styling */
.layout-content.status > .container {
  display: block !important;
}

/* Style the main container that holds incidents */
.layout-content.status > .container {
  max-width: 1600px !important;
  background-color: transparent !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Ensure incident sections are visible and styled */
.unresolved-incidents,
.scheduled-maintenances-container {
  display: block !important;
  margin-bottom: 32px !important;
  background-color: transparent !important;
}

/* Ensure individual incidents are visible */
.unresolved-incident,
.scheduled-maintenance {
  display: block !important;
  visibility: visible !important;
}

/* Past incidents section - hidden on main page, shown on /history page */
.incidents-list {
  display: none !important;
  visibility: hidden !important;
}

/* Show all history page elements */
body.status-full-history .months-container,
body.status-full-history .month,
body.status-full-history .incident-container,
body.status-full-history .incident-data,
body.status-full-history .history-header,
body.status-full-history .uptime-header,
.layout-content.status-full-history .months-container,
.layout-content.status-full-history .month,
.layout-content.status-full-history .incident-container,
.layout-content.status-full-history .incident-data,
.layout-content.status-full-history .history-header,
.layout-content.status-full-history .uptime-header {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Past incidents heading */
.incidents-list > h4,
.incidents-list .font-largest {
  font-size: 21px !important;
  font-weight: 600 !important;
  color: var(--nr-text-primary) !important;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  padding-top: 0 !important;
  display: block !important;
}

/* Style each past incident */
.incidents-list .incident {
  background-color: #fff !important;
  border: 1px solid var(--nr-border-light) !important;
  border-left: 4px solid var(--nr-border-medium) !important;
  border-radius: 4px !important;
  padding: 16px 20px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Past incident titles */
.incidents-list .incident-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--nr-text-primary) !important;
  margin-bottom: 8px !important;
}

.incidents-list .incident-title a {
  color: var(--nr-text-primary) !important;
  text-decoration: none !important;
}

.incidents-list .incident-title a:hover {
  color: #0c74df !important;
}

/* Past incident dates */
.incidents-list .date {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--nr-text-secondary) !important;
  margin-bottom: 16px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid var(--nr-border-light) !important;
  display: block !important;
}

/* Past incident body text */
.incidents-list .incident .font-regular,
.incidents-list .incident p {
  font-size: 14px !important;
  color: var(--nr-text-secondary) !important;
  line-height: 1.6 !important;
  margin-bottom: 8px !important;
}

/* Past incident timestamps */
.incidents-list .incident small,
.incidents-list .incident .font-small {
  font-size: 12px !important;
  color: var(--nr-text-tertiary) !important;
  font-weight: 500 !important;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--nr-bg-secondary);
}

/* Ensure the body allows the layout content to be visible */
body.status {
  background-color: var(--nr-bg-secondary) !important;
}

/* Force visibility of all incident-related elements */
.unresolved-incidents,
.scheduled-maintenances-container,
.unresolved-incident,
.scheduled-maintenance,
.incident,
.layout-content.status .container.unresolved-incidents,
section.unresolved-incidents,
section.scheduled-maintenances-container {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure no parent is accidentally hiding content */
.layout-content {
  display: block !important;
  visibility: visible !important;
}

.layout-content.status .container {
  display: block !important;
  visibility: visible !important;
}

.nr-logo-section {
  display: none !important;
}

.nr-logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--nr-text-primary);
  text-decoration: none;
}

.region-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 16px 0;
  background-color: var(--nr-bg-secondary);
  border-bottom: 1px solid var(--nr-border-light);
}

.region-tab {
  padding: 8px 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nr-text-secondary);
  background-color: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.region-tab:hover {
  color: var(--nr-text-primary);
}

.region-tab.active {
  color: var(--nr-green);
  border-bottom-color: var(--nr-green);
}

.region-tab-panel {
  display: none;
}

.region-tab-panel.active {
  display: block;
}

.region-status-header {
  text-align: center;
  padding: 24px 0 16px;
  font-size: 20px;
  font-weight: 600;
  color: var(--nr-text-primary);
}

.nr-content {
  flex: 1;
  padding: 0;
  background-color: var(--nr-bg-secondary);
  overflow-x: auto;
  margin-top: 20px;
  margin-bottom: 0;
}

/* Hide custom content on history page */
body.status-full-history .nr-content,
.layout-content.status-full-history .nr-content,
body.status-full-history .incidents-list {
  display: none !important;
}

/* Hide custom content on incident detail pages */
body.status-incident .nr-content,
body.status.incident .nr-content {
  display: none !important;
}

/* Show region buttons section on history page */
body.status-full-history #regionBtnSection,
body.status-full-history #historyRegionBtnSection,
body.status-full-history .btn-section {
  display: block !important;
  max-width: 1032px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

/* Flow Container */
.flow-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

.flow-stages {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  position: relative;
  padding: 0 8px;
}

/* Arrow connector for main flow */
.flow-stages::before {
  content: "";
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--nr-border-medium) 10%,
    var(--nr-border-medium) 90%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.flow-stage {
  flex: 1;
  min-width: 200px;
  position: relative;
  z-index: 1;
}

/* Independent Services Section */
.independent-services {
  margin-bottom: 24px;
}

.independent-stages {
  display: flex;
  gap: 16px;
  padding: 0 8px;
}

.independent-stage {
  flex: 1;
  position: relative;
}

.stage-card {
  background: var(--nr-bg-primary);
  border: 1px solid var(--nr-border-light);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  height: 160px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.stage-card:hover {
  border-color: var(--nr-border-medium);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.stage-card.expanded {
  height: auto;
  max-height: 600px;
  border-color: var(--nr-border-medium);
}

.stage-header {
  padding: 16px;
  text-align: center;
  position: relative;
  background-color: var(--nr-bg-secondary);
  border-bottom: 1px solid var(--nr-border-light);
}

.stage-number {
  display: none;
}

.stage-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.stage-icon svg {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 2;
}

.stage-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--nr-text-primary);
  margin-bottom: 4px;
  line-height: 1.2;
}

.stage-subtitle {
  font-size: 12px;
  color: var(--nr-text-secondary);
  font-weight: 400;
}

.stage-status {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background-color: var(--nr-green);
  box-shadow: 0 0 8px rgba(17, 166, 0, 0.6);
  color: var(--nr-green);
  z-index: 1;
}

.stage-status.degraded {
  background-color: var(--nr-warning);
  color: var(--nr-warning);
  box-shadow: 0 0 10px rgba(245, 160, 32, 0.6);
}

.stage-status.maintenance {
  background-color: #0c74df;
  color: #0c74df;
  box-shadow: 0 0 10px rgba(12, 116, 223, 0.6);
}

.stage-body {
  display: none;
  padding: 0;
  background-color: var(--nr-bg-primary);
  flex: 1;
  overflow-y: auto;
  max-height: 440px;
}

.stage-card.expanded .stage-body {
  display: block;
}

.stage-description {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--nr-text-secondary);
  border-bottom: 1px solid var(--nr-border-light);
  line-height: 1.5;
  background-color: var(--nr-bg-secondary);
}

.component-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--nr-border-light);
  transition: background-color 0.2s;
}

.component-item:hover {
  background-color: var(--nr-bg-secondary);
}

.component-item:last-child {
  border-bottom: none;
}

.component-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--nr-text-primary);
  margin-bottom: 4px;
}

.component-name a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-block;
}

.component-name a:hover {
  text-decoration: underline;
  opacity: 0.8;
  color: var(--nr-text-primary);
}

.component-description {
  font-size: 12px;
  color: var(--nr-text-secondary);
  line-height: 1.4;
}

.component-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background-color: var(--nr-green);
}

.status-dot.degraded {
  background-color: var(--nr-warning);
}

.status-dot.maintenance {
  background-color: #0c74df;
}

.status-text {
  font-size: 10px;
  font-weight: 600;
  color: var(--nr-green);
}

.status-text.degraded {
  color: var(--nr-warning);
}

.status-text.maintenance {
  color: #0c74df;
}

.expand-hint {
  text-align: center;
  padding: 12px;
  font-size: 11px;
  color: var(--nr-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: auto;
  background-color: var(--nr-bg-primary);
}

.stage-card.expanded .expand-hint {
  display: none;
}

/* Legend */
.status-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  margin-top: 24px;
  margin-bottom: 12px;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.legend-items {
  display: flex;
  gap: 24px;
  align-items: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--nr-text-primary);
}

.legend-meta {
  display: none;
}

.last-updated-inline {
  font-size: 12px;
  color: var(--nr-text-secondary);
}

.legend-dot {
  width: 12px;
  height: 12px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.legend-dot.operational {
  background-color: var(--nr-green);
  color: var(--nr-green);
}

.legend-dot.degraded {
  background-color: var(--nr-warning);
  color: var(--nr-warning);
}

.legend-dot.outage {
  background-color: #df2d24;
  color: #df2d24;
}

.legend-dot.maintenance {
  background-color: #0c74df;
  color: #0c74df;
}

.subscribe-btn {
  background-color: var(--nr-green);
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.subscribe-btn:hover {
  background-color: #0d7a00;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Fixed Header Container */
.nr-fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #fff;
  border-bottom: 1px solid var(--nr-border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nr-header-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nr-header-logo svg {
  width: 120px;
  height: auto;
}

.nr-header-subscribe {
  display: flex;
  align-items: center;
}

/* Native statuspage.io subscribe button and dropdown styling */
#replace-with-subscribe {
  display: flex;
  align-items: center;
}

/* Style the native subscribe button */
#replace-with-subscribe .flat-button,
#replace-with-subscribe button {
  background-color: var(--nr-green) !important;
  color: white !important;
  border: none !important;
  padding: 10px 24px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  white-space: nowrap !important;
}

#replace-with-subscribe .flat-button:hover,
#replace-with-subscribe button:hover {
  background-color: #0d7a00 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* Style the dropdown */
.updates-dropdown-container {
  position: relative !important;
  display: inline-block !important;
}

.updates-dropdown-container .updates-dropdown {
  right: 0px !important;
  width: 380px !important;
  height: auto !important;
  border-radius: 6px !important;
  background-color: #fafbfb !important;
  position: absolute !important;
  z-index: 10000 !important;
  /* Let statuspage.io script control display with inline styles - don't override */
}

#subscribe-btn-email,
#subscribe-btn-sms {
  width: 160px !important;
  margin-left: 10px !important;
  text-transform: none !important;
}

.flat-button {
  font-size: 12px !important;
  letter-spacing: normal !important;
  padding: 0.375rem 0.6rem !important;
  box-shadow: none !important;
}

.updates-dropdown-container
  .updates-dropdown
  .updates-dropdown-nav.nav-items-5
  a {
  width: 25% !important;
}

.status-history-section {
  text-align: center;
  padding: 16px 24px 12px;
  max-width: 1600px;
  margin: 0 auto;
}

.status-history-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.history-link-btn,
.status-history-btn {
  background-color: var(--nr-bg-primary);
  color: var(--nr-text-primary);
  border: 1px solid var(--nr-border-medium);
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.history-link-btn:hover,
.status-history-btn:hover {
  background-color: var(--nr-bg-secondary);
  border-color: var(--nr-border-dark);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.footer-note {
  text-align: center;
  padding: 8px;
  padding-bottom: 16px;
  color: var(--nr-text-tertiary);
  font-size: 11px;
}

/* Dev Controls */
.dev-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.dev-trigger-btn {
  background-color: var(--nr-gray-700);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.dev-trigger-btn:hover {
  background-color: var(--nr-gray-600);
}

.dev-menu {
  display: none;
  position: absolute;
  bottom: 50px;
  right: 0;
  background: var(--nr-bg-primary);
  border: 1px solid var(--nr-border-light);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 250px;
}

.dev-menu.open {
  display: block;
}

.dev-menu-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--nr-border-light);
  font-size: 12px;
  font-weight: 600;
  color: var(--nr-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dev-menu-item {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--nr-text-primary);
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dev-menu-item:hover {
  background-color: var(--nr-bg-secondary);
}

.dev-menu-item:last-child {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.incident-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.incident-badge.outage {
  background-color: #df2d24;
  color: white;
}

.incident-badge.degraded {
  background-color: var(--nr-warning);
  color: white;
}

.incident-badge.maintenance {
  background-color: #0c74df;
  color: white;
}

/* Incident Banner */
.incident-banner {
  display: none;
  padding: 20px 24px;
  margin: 16px auto 24px;
  border-radius: 4px;
  border: 1px solid #df2d24;
  border-left: 4px solid #df2d24;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(223, 45, 36, 0.15);
  max-width: 1600px;
}

.incident-banner.active {
  display: block;
}

.incident-banner.outage {
  border-color: #df2d24;
  border-left-color: #df2d24;
  background-color: #fff;
}

.incident-banner.degraded {
  border-color: var(--nr-warning);
  border-left-color: var(--nr-warning);
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(245, 160, 32, 0.15);
}

.incident-banner.maintenance {
  border-color: #0c74df;
  border-left-color: #0c74df;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(12, 116, 223, 0.15);
}

.incident-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.incident-banner-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--nr-text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.incident-banner-title::before {
  content: "";
  width: 10px;
  height: 10px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background-color: #df2d24;
  flex-shrink: 0;
}

.incident-banner.maintenance .incident-banner-title::before {
  background-color: #0c74df;
}

.incident-banner.degraded .incident-banner-title::before {
  background-color: var(--nr-warning);
}

.incident-banner-close {
  background: var(--nr-bg-secondary);
  border: 1px solid var(--nr-border-light);
  color: var(--nr-text-secondary);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.incident-banner-close:hover {
  color: var(--nr-text-primary);
  background-color: var(--nr-border-light);
  border-color: var(--nr-border-medium);
}

.incident-banner-message {
  font-size: 14px;
  color: var(--nr-text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.incident-banner-time {
  font-size: 12px;
  color: var(--nr-text-tertiary);
  font-weight: 500;
}

/* Atlassian StatusPage.io Real Incidents Styling */
.unresolved-incidents,
.scheduled-maintenances-container {
  margin-bottom: 24px !important;
  margin-top: 0 !important;
  display: block !important;
  padding: 0 24px !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  max-width: 1600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Ensure the container holding incidents is visible */
.layout-content.status > .container {
  display: block !important;
  background: transparent !important;
}

/* Compact horizontal rectangle style for current incidents */
.layout-content.status .unresolved-incident,
.layout-content.status .scheduled-maintenance {
  background-color: #fff !important;
  border: 1px solid var(--nr-border-light) !important;
  border-radius: 4px !important;
  padding: 14px 16px !important;
  margin-bottom: 8px !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  cursor: pointer !important;
}

.layout-content.status .unresolved-incident:hover,
.layout-content.status .scheduled-maintenance:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
  border-color: var(--nr-border-medium) !important;
}

.layout-content.status .unresolved-incident.impact-maintenance,
.layout-content.status .incident.impact-maintenance,
.layout-content.status .scheduled-maintenance {
  border-color: #0c74df !important;
  border-left-color: #0c74df !important;
  border-left-width: 4px !important;
  box-shadow: 0 2px 8px rgba(12, 116, 223, 0.15) !important;
}

/* Major outage incidents - red border */
.layout-content.status .unresolved-incident.impact-major,
.layout-content.status .unresolved-incident.impact-critical,
.layout-content.status .incident.impact-major,
.layout-content.status .incident.impact-critical {
  border-color: #df2d24 !important;
  border-left-color: #df2d24 !important;
  border-left-width: 4px !important;
  box-shadow: 0 2px 8px rgba(223, 45, 36, 0.15) !important;
}

/* Incident title with icon */
.layout-content.status .unresolved-incident .incident-title,
.layout-content.status .scheduled-maintenance .incident-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--nr-text-primary) !important;
  margin-bottom: 6px !important;
  margin-top: 0 !important;
  margin-left: 36px !important;
  padding: 0 !important;
  display: block !important;
  line-height: 1.3 !important;
  background: none !important;
  border: none !important;
}

.layout-content.status .unresolved-incident .incident-title a,
.layout-content.status .scheduled-maintenance .incident-title a {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--nr-text-primary) !important;
  text-decoration: none !important;
  display: inline !important;
}

.layout-content.status .unresolved-incident .incident-title a:hover,
.layout-content.status .scheduled-maintenance .incident-title a:hover {
  color: #0c74df !important;
}

/* Add warning icon before incident */
.layout-content.status .unresolved-incident::before,
.layout-content.status .scheduled-maintenance::before {
  content: "⚠" !important;
  position: absolute !important;
  left: 16px !important;
  top: 14px !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  color: #f5a020 !important;
  background-color: rgba(245, 160, 32, 0.1) !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

/* Hide the subscribe link in incident titles */
.layout-content.status .incident-title .subscribe,
.layout-content.status .incident-title .updates-dropdown-container {
  display: none !important;
}

/* Hide all updates except the first one */
.layout-content.status .unresolved-incident .updates,
.layout-content.status .scheduled-maintenance .updates {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 36px !important;
  padding: 0 !important;
  display: block !important;
  background: none !important;
  border: none !important;
}

/* Hide all updates except the first */
.layout-content.status .unresolved-incident .update:not(:first-child),
.layout-content.status .scheduled-maintenance .update:not(:first-child) {
  display: none !important;
}

/* Compact update styling - only show first one */
.layout-content.status .unresolved-incident .update:first-child,
.layout-content.status .scheduled-maintenance .update:first-child {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  display: block !important;
  background: none !important;
}

/* Hide status strong tag */
.layout-content.status .unresolved-incident .update strong,
.layout-content.status .scheduled-maintenance .update strong {
  display: none !important;
}

/* Compact description text */
.layout-content.status .unresolved-incident .update .font-regular,
.layout-content.status .scheduled-maintenance .update .font-regular,
.layout-content.status .unresolved-incident .update p,
.layout-content.status .scheduled-maintenance .update p {
  font-size: 13px !important;
  color: var(--nr-text-secondary) !important;
  line-height: 1.4 !important;
  margin-bottom: 4px !important;
  margin-top: 0 !important;
  padding: 0 !important;
  font-weight: normal !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

/* Compact timestamp */
.layout-content.status .unresolved-incident .update small,
.layout-content.status .scheduled-maintenance .update small,
.layout-content.status .unresolved-incident .timestamp,
.layout-content.status .scheduled-maintenance .timestamp {
  font-size: 11px !important;
  color: var(--nr-text-tertiary) !important;
  font-weight: 500 !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

/* Affected components info line */
.layout-content.status .incident-affected-info {
  font-size: 11px !important;
  color: var(--nr-text-tertiary) !important;
  margin-top: 6px !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  line-height: 1.5 !important;
  display: block !important;
}

.layout-content.status .incident-affected-info .affected-region-label {
  font-weight: 600 !important;
  color: var(--nr-text-secondary) !important;
}

.layout-content.status .update .incident-affected-info {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Remove old styling that's now redundant */

/* Reset default statuspage.io styling on incidents */
.layout-content.status .unresolved-incident *,
.layout-content.status .incident *,
.layout-content.status .scheduled-maintenance * {
  font-family:
    "Open Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif !important;
}

/* Ensure font-large and font-regular classes are properly styled */
.layout-content.status .font-large {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

.layout-content.status .font-regular {
  font-size: 14px !important;
  font-weight: normal !important;
  line-height: 1.6 !important;
}

.layout-content.status .font-small,
.layout-content.status small {
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

/* Override any float or positioning issues */
.layout-content.status .unresolved-incident::after,
.layout-content.status .incident::after,
.layout-content.status .scheduled-maintenance::after {
  content: "";
  display: table;
  clear: both;
}

/* Force clean state for incident children elements */
.layout-content.status .unresolved-incident > *,
.layout-content.status .incident > *,
.layout-content.status .scheduled-maintenance > * {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.layout-content.status .unresolved-incident > .incident-title,
.layout-content.status .incident > .incident-title,
.layout-content.status .scheduled-maintenance > .incident-title {
  border: none !important;
  box-shadow: none !important;
  background: none !important;
}

/* Mobile responsive for real incidents */
body.mobile-view .layout-content.status {
  margin-top: 56px !important;
}

body.mobile-view .layout-content.status > .container {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

body.mobile-view .layout-content.status .unresolved-incidents,
body.mobile-view .layout-content.status .scheduled-maintenances-container {
  margin-bottom: 20px !important;
  padding: 0 !important;
}

body.mobile-view .layout-content.status .unresolved-incident .incident-title,
body.mobile-view .layout-content.status .scheduled-maintenance .incident-title {
  font-size: 14px !important;
  margin-left: 32px !important;
}

body.mobile-view .layout-content.status .unresolved-incident .incident-title a,
body.mobile-view
  .layout-content.status
  .scheduled-maintenance
  .incident-title
  a {
  font-size: 14px !important;
}

body.mobile-view .layout-content.status .unresolved-incident,
body.mobile-view .layout-content.status .scheduled-maintenance {
  padding: 12px !important;
  margin-bottom: 8px !important;
}

body.mobile-view .layout-content.status .unresolved-incident::before,
body.mobile-view .layout-content.status .scheduled-maintenance::before {
  width: 20px !important;
  height: 20px !important;
  font-size: 14px !important;
  left: 12px !important;
  top: 12px !important;
}

body.mobile-view .layout-content.status .unresolved-incident .updates,
body.mobile-view .layout-content.status .scheduled-maintenance .updates {
  margin-left: 32px !important;
}

body.mobile-view
  .layout-content.status
  .unresolved-incident
  .update
  .font-regular,
body.mobile-view
  .layout-content.status
  .scheduled-maintenance
  .update
  .font-regular {
  font-size: 12px !important;
}

body.mobile-view .layout-content.status .incident-affected-info {
  margin-left: 0 !important;
  font-size: 10px !important;
}

/* Mobile styling for past incidents */
body.mobile-view .incidents-list {
  margin: 32px 16px 24px !important;
  padding: 0 !important;
}

body.mobile-view .incidents-list > h4 {
  font-size: 18px !important;
  margin-bottom: 20px !important;
}

body.mobile-view .incidents-list .incident {
  padding: 14px 16px !important;
  margin-bottom: 10px !important;
}

body.mobile-view .incidents-list .incident-title {
  font-size: 15px !important;
}

/* Incident Detail Page Specific Styling - add spacing so title isn't cut off */
body.status-incident .layout-content,
body.status.incident .layout-content {
  margin-top: 80px !important;
  padding-top: 0 !important;
}

/* History Page Specific Styling */
body.status-full-history,
.layout-content.status-full-history {
  background-color: var(--nr-bg-secondary) !important;
}

.layout-content.status-full-history {
  margin-top: 0 !important;
  max-width: 100% !important;
  padding-top: 20px !important;
}

.layout-content.status-full-history > .container {
  max-width: 1032px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

/* History page title - make it bigger and prominent */
.layout-content.status-full-history .history-header h4,
.layout-content.status-full-history > .container > h4 {
  font-size: 32px !important;
  font-weight: 700 !important;
  color: var(--nr-text-primary) !important;
  margin-bottom: 32px !important;
  margin-top: 0 !important;
}

/* History page header and pagination */
.layout-content.status-full-history .history-header,
.layout-content.status-full-history .uptime-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 32px !important;
}

.layout-content.status-full-history .history-header .pagination,
.layout-content.status-full-history .uptime-header .pagination {
  display: flex !important;
  align-items: center !important;
}

.layout-content.status-full-history .history-header .pagination a,
.layout-content.status-full-history .uptime-header .pagination a {
  border-radius: 50% !important;
  display: inline-block !important;
  height: 16px !important;
  width: 16px !important;
  position: relative !important;
  border: 1px solid var(--nr-border-medium) !important;
}

.layout-content.status-full-history .history-header .pagination a i,
.layout-content.status-full-history .uptime-header .pagination a i {
  position: absolute !important;
  right: 0 !important;
  top: -11px !important;
  font-size: 10px !important;
}

.layout-content.status-full-history .history-header .pagination .current,
.layout-content.status-full-history .uptime-header .pagination .current {
  margin: 0 8px !important;
  flex: 1 !important;
  width: auto !important;
  height: 20px !important;
  font-size: 14px !important;
  font-weight: normal !important;
  color: #535e65 !important;
}

/* Month containers */
.layout-content.status-full-history .months-container {
  display: block !important;
}

.layout-content.status-full-history .months-container .month {
  margin-bottom: 40px !important;
}

.layout-content.status-full-history .months-container .month .month-title {
  font-size: 14px !important;
  font-weight: bold !important;
  color: #535e65 !important;
  margin-bottom: 16px !important;
}

/* Incident containers on history page */
.layout-content.status-full-history
  .months-container
  .month
  .incident-container {
  background-color: #fff !important;
  border: 1px solid var(--nr-border-light) !important;
  border-radius: 4px !important;
  padding: 16px 20px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.layout-content.status-full-history
  .months-container
  .month
  .incident-container
  .incident-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--nr-text-primary) !important;
  margin-bottom: 12px !important;
}

.layout-content.status-full-history
  .months-container
  .month
  .incident-container
  .incident-title
  a {
  color: var(--nr-text-primary) !important;
  text-decoration: none !important;
}

.layout-content.status-full-history
  .months-container
  .month
  .incident-container
  .incident-title
  a:hover {
  color: var(--nr-text-primary) !important;
  text-decoration: underline !important;
}

.layout-content.status-full-history
  .months-container
  .month
  .incident-container
  .incident-body {
  font-size: 14px !important;
  font-weight: normal !important;
  color: var(--nr-text-secondary) !important;
  line-height: 1.43 !important;
}

.layout-content.status-full-history
  .months-container
  .month
  .incident-container
  .incident-body
  *,
.layout-content.status-full-history
  .months-container
  .month
  .incident-container
  small,
.layout-content.status-full-history
  .months-container
  .month
  .incident-container
  .font-small,
.layout-content.status-full-history
  .months-container
  .month
  .incident-container
  .update-title,
.layout-content.status-full-history
  .months-container
  .month
  .incident-container
  .date {
  color: var(--nr-text-secondary) !important;
}

/* Timestamps and dates - neutral grey */
body.status-full-history small,
body.status-full-history .font-small,
.layout-content.status-full-history small,
.layout-content.status-full-history .font-small {
  color: var(--nr-text-tertiary) !important;
  font-size: 12px !important;
}

/* No incidents message */
.layout-content.status-full-history .months-container .month .no-incidents-msg {
  color: var(--nr-text-tertiary) !important;
  font-size: 14px !important;
  padding: 16px 0 !important;
}

/* Remove orange/colored text from history page - everything neutral */
body.status-full-history .impact-major,
body.status-full-history .impact-minor,
body.status-full-history .impact-critical,
body.status-full-history .color-secondary,
body.status-full-history a,
body.status-full-history .actual-title,
.layout-content.status-full-history .impact-major,
.layout-content.status-full-history .impact-minor,
.layout-content.status-full-history .impact-critical,
.layout-content.status-full-history .color-secondary,
.layout-content.status-full-history a,
.layout-content.status-full-history .actual-title {
  color: var(--nr-text-secondary) !important;
}

/* Incident titles should be darker */
body.status-full-history .incident-title,
body.status-full-history .incident-title a,
.layout-content.status-full-history .incident-title,
.layout-content.status-full-history .incident-title a {
  color: var(--nr-text-primary) !important;
}


/* History page tabs - match main page style with green underline */
body.status-full-history .region-tabs-nav {
  display: flex !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 16px 0 !important;
  margin-bottom: 24px !important;
  background-color: transparent !important;
  border-bottom: 1px solid var(--nr-border-light) !important;
}

body.status-full-history .region-tab {
  padding: 8px 32px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--nr-text-secondary) !important;
  background-color: transparent !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

body.status-full-history .region-tab:hover {
  color: var(--nr-text-primary) !important;
}

body.status-full-history .region-tab.active {
  color: var(--nr-green) !important;
  border-bottom-color: var(--nr-green) !important;
}

/* Empty state message for regions with no incidents */
.no-incidents-for-region {
  padding: 20px !important;
  text-align: center !important;
  color: var(--nr-text-tertiary) !important;
  font-size: 14px !important;
  font-style: italic !important;
  background-color: var(--nr-bg-secondary) !important;
  border-radius: 4px !important;
  margin-bottom: 16px !important;
}

/* Links within incidents */
.layout-content.status .unresolved-incident a:not(.incident-title a),
.layout-content.status .incident a:not(.incident-title a),
.layout-content.status .scheduled-maintenance a:not(.incident-title a) {
  color: #0c74df !important;
  text-decoration: none !important;
}

.layout-content.status .unresolved-incident a:not(.incident-title a):hover,
.layout-content.status .incident a:not(.incident-title a):hover,
.layout-content.status .scheduled-maintenance a:not(.incident-title a):hover {
  text-decoration: underline !important;
}

/* Affected components list - hide original, we show custom version */
.layout-content.status .unresolved-incident .affected-components,
.layout-content.status .incident .affected-components,
.layout-content.status .scheduled-maintenance .affected-components {
  display: none !important;
  visibility: hidden !important;
}

.layout-content.status
  .unresolved-incident
  .affected-components
  .component-name,
.layout-content.status .unresolved-incident .affected-components .name,
.layout-content.status .incident .affected-components .component-name,
.layout-content.status .incident .affected-components .name,
.layout-content.status
  .scheduled-maintenance
  .affected-components
  .component-name,
.layout-content.status .scheduled-maintenance .affected-components .name {
  display: inline-block !important;
  margin-right: 8px !important;
  margin-bottom: 4px !important;
  padding: 4px 10px !important;
  background-color: var(--nr-bg-secondary) !important;
  border-radius: 3px !important;
  font-size: 12px !important;
  color: var(--nr-text-secondary) !important;
  border: 1px solid var(--nr-border-light) !important;
}

/* Mobile View */
body.mobile-view {
  max-width: 375px;
  margin: 0 auto;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

body.mobile-view .flow-stages,
body.mobile-view .independent-stages {
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

body.mobile-view .flow-stage,
body.mobile-view .independent-stage {
  min-width: 100%;
  max-width: 100%;
}

body.mobile-view .stage-card {
  height: auto;
}

body.mobile-view .flow-container {
  padding: 0 16px 16px;
}

body.mobile-view .incident-banner {
  margin: 12px 16px 20px;
  padding: 16px;
}

body.mobile-view .incident-banner-title {
  font-size: 16px;
}

body.mobile-view .incident-banner-message {
  font-size: 13px;
}

body.mobile-view .incident-banner-close {
  width: 24px;
  height: 24px;
  font-size: 16px;
}

body.mobile-view .status-legend {
  margin-left: 0;
  margin-right: 0;
}

body.mobile-view .status-legend {
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

body.mobile-view .legend-items {
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

body.mobile-view .legend-meta {
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

body.mobile-view .nr-fixed-header {
  padding: 12px 16px;
}

body.mobile-view .nr-header-container {
  padding: 8px 0;
}

body.mobile-view .nr-header-logo svg {
  width: 90px;
}

body.mobile-view #replace-with-subscribe .flat-button,
body.mobile-view #replace-with-subscribe button {
  font-size: 12px !important;
  padding: 8px 16px !important;
}

body.mobile-view .updates-dropdown-container .updates-dropdown {
  width: 320px !important;
}

body.mobile-view .status-history-buttons {
  flex-direction: column;
  gap: 12px;
}

body.mobile-view .history-link-btn,
body.mobile-view .status-history-btn {
  width: 100%;
}

body.mobile-view .nr-logo-section {
  padding: 24px 16px 12px;
}

body.mobile-view .nr-logo {
  font-size: 20px;
}

body.mobile-view .region-tabs-nav {
  padding: 12px 0;
}

body.mobile-view .region-tab {
  padding: 6px 20px;
  font-size: 13px;
}

.mobile-toggle-btn {
  background-color: var(--nr-gray-700);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.mobile-toggle-btn:hover {
  background-color: var(--nr-gray-600);
}

.mobile-toggle-btn.active {
  background-color: var(--nr-green);
}

/* Scrollbar styling */
.stage-body::-webkit-scrollbar {
  width: 6px;
}

.stage-body::-webkit-scrollbar-track {
  background: var(--nr-bg-secondary);
}

.stage-body::-webkit-scrollbar-thumb {
  background: var(--nr-border-medium);
  border-radius: 3px;
}

.stage-body::-webkit-scrollbar-thumb:hover {
  background: var(--nr-border-dark);
}