/* DevEdge Uptime - client area banner and Service Status page. Text colours come from the theme; only status colours are fixed. */
:root { --deup-up: #2fb36b; --deup-down: #e05252; --deup-pending: #e0a852; --deup-maint: #4c8bf5; --deup-line: rgba(127, 127, 127, .22); }

/* Banner */
.deup-banner { position: relative; z-index: 1030; color: #fff; font-size: 14px; line-height: 1.45; }
.deup-banner[hidden] { display: none; }
.deup-danger { background: #b42318; }
.deup-warning { background: #a15c07; }
.deup-info { background: #1d4ed8; }
.deup-banner-in { display: flex; align-items: center; gap: 12px; max-width: 1320px; margin: 0 auto; padding: 10px 16px; }
.deup-banner-icon { flex: none; font-size: 16px; }
.deup-banner-text { flex: 1 1 auto; min-width: 0; }
.deup-banner strong { color: inherit; }
.deup-banner a.deup-banner-link, .deup-banner a.deup-banner-link:hover, .deup-banner a.deup-banner-link:focus { flex: none; color: #fff !important; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.deup-x { flex: none; background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; padding: 0 4px; cursor: pointer; opacity: .8; }
.deup-x:hover, .deup-x:focus { opacity: 1; }
@media (max-width: 600px) {
  .deup-banner-in { flex-wrap: wrap; gap: 6px 10px; }
  .deup-banner .deup-banner-icon { display: none; }
  .deup-banner-text { flex-basis: calc(100% - 36px); }
  .deup-x { order: 2; align-self: flex-start; }
  .deup-banner a.deup-banner-link { order: 3; }
}

/* Status page */
.deup-page { max-width: 1100px; }
.deup-head { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 16px 20px; border: 1px solid var(--deup-line); border-left: 4px solid var(--deup-up); border-radius: 10px; font-size: 18px; font-weight: 600; }
.deup-head-down { border-left-color: var(--deup-down); }
.deup-head-maint { border-left-color: var(--deup-maint); }
.deup-head-unknown { border-left-color: var(--deup-line); }
.deup-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--deup-line); }
.deup-dot.deup-up { background: var(--deup-up); box-shadow: 0 0 0 0 rgba(47, 179, 107, .5); animation: deupPulse 2.4s ease-out infinite; }
.deup-dot.deup-down { background: var(--deup-down); }
.deup-dot.deup-pending { background: var(--deup-pending); }
.deup-dot.deup-maint { background: var(--deup-maint); }
@keyframes deupPulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.deup-card { margin: 0 0 20px; border: 1px solid var(--deup-line); border-radius: 10px; overflow: hidden; }
.deup-incident { padding: 16px 20px; border-left: 4px solid var(--deup-pending); }
.deup-incident-danger { border-left-color: var(--deup-down); }
.deup-incident-info, .deup-incident-primary { border-left-color: var(--deup-maint); }
.deup-incident h3 { margin: 0 0 6px; font-size: 16px; }
.deup-incident p { margin: 0 0 6px; }
.deup-incident small { opacity: .7; }

.deup-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 0 20px; background: var(--deup-line); border: 1px solid var(--deup-line); border-radius: 10px; overflow: hidden; }
.deup-stats div { padding: 14px 18px; background: var(--body-bg, #fff); }
body.lagom .deup-stats div { background: var(--bg-lighter, var(--body-bg, transparent)); }
.deup-stats b { display: block; font-size: 26px; font-weight: 400; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.deup-stats b span { font-size: .5em; margin-left: 2px; }
.deup-stats small { font-size: 12px; opacity: .7; }

.deup-group-title { margin: 0; padding: 12px 20px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .75; border-bottom: 1px solid var(--deup-line); }
.deup-row { display: grid; grid-template-columns: minmax(0, 1.5fr) 150px minmax(0, 1.4fr) 70px 64px; gap: 14px; align-items: center; padding: 12px 20px; }
.deup-row + .deup-row { border-top: 1px solid var(--deup-line); }
.deup-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; }
.deup-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deup-mine { flex: none; font-size: 10.5px; }
.deup-state { font-size: 13px; }
.deup-t-up { color: var(--deup-up); }
.deup-t-down { color: var(--deup-down); font-weight: 600; }
.deup-t-pending { color: var(--deup-pending); }
.deup-t-maint { color: var(--deup-maint); }
.deup-beats { display: flex; gap: 2px; height: 22px; }
.deup-beats i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--deup-up); opacity: .85; }
.deup-beats i.down { background: var(--deup-down); opacity: 1; }
.deup-beats i.pending { background: var(--deup-pending); }
.deup-beats i.maint { background: var(--deup-maint); }
.deup-num { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.deup-ms { opacity: .7; }

.deup-issue { padding: 12px 20px; }
.deup-issue + .deup-issue { border-top: 1px solid var(--deup-line); }
.deup-issue summary { cursor: pointer; }
.deup-issue summary small { display: block; margin-top: 4px; opacity: .7; }
.deup-issue-body { margin-top: 10px; font-size: 14px; }
.deup-issue-body p:last-child { margin-bottom: 0; }

.deup-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; opacity: .8; }

@media (prefers-reduced-motion: reduce) { .deup-dot.deup-up { animation: none; } }
@media (max-width: 768px) {
  .deup-row { grid-template-columns: minmax(0, 1fr) auto 60px; }
  .deup-beats, .deup-ms { display: none; }
}
@media (max-width: 480px) {
  .deup-stats { grid-template-columns: 1fr; }
  .deup-row { grid-template-columns: minmax(0, 1fr) 56px; padding: 12px 16px; }
  .deup-state { grid-column: 1; grid-row: 2; padding-left: 20px; }
  .deup-num:not(.deup-ms) { grid-row: 1 / span 2; grid-column: 2; }
}
