/*
 * vOCN OCC overlay polish.
 * Loaded as an additive layer; the original dashboard CSS remains in place.
 */

.vocn-occ-shell {
  --vocn-overlay-bg: #07111f;
  --vocn-overlay-panel: rgba(10, 23, 41, .86);
  --vocn-overlay-line: rgba(126, 161, 198, .18);
  --vocn-overlay-blue: #55b7ff;
  --vocn-overlay-green: #4ade80;
  --vocn-overlay-amber: #fbbf24;
  --vocn-overlay-red: #fb7185;
}

.vocn-occ-shell .vocn-occ-overlay-strip {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) repeat(5, minmax(92px, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}

.vocn-occ-overlay-command {
  border: 1px solid var(--vocn-overlay-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(85, 183, 255, .08), transparent 34%),
    rgba(5, 13, 25, .82);
  padding: 13px;
  margin: 0 0 12px;
}

.vocn-occ-overlay-command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.vocn-occ-overlay-command-head p {
  margin: 0 0 3px;
  color: #91a8c0;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.vocn-occ-overlay-command-head h3 {
  margin: 0;
  color: #f7fbff;
  font-size: 18px;
  line-height: 1.15;
}

.vocn-occ-overlay-role {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vocn-occ-overlay-role strong,
.vocn-occ-overlay-role span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  border: 1px solid var(--vocn-overlay-line);
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
}

.vocn-occ-overlay-role span.is-ok {
  color: #c8ffd9;
  border-color: rgba(74, 222, 128, .28);
  background: rgba(74, 222, 128, .10);
}

.vocn-occ-overlay-role span.is-warn {
  color: #ffe3a0;
  border-color: rgba(251, 191, 36, .30);
  background: rgba(251, 191, 36, .10);
}

.vocn-occ-overlay-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 10px;
}

.vocn-occ-overlay-priorities,
.vocn-occ-overlay-systems {
  display: grid;
  gap: 7px;
}

.vocn-occ-overlay-priorities a,
.vocn-occ-overlay-systems div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--vocn-overlay-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .032);
  padding: 9px 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.vocn-occ-overlay-priorities a > span,
.vocn-occ-overlay-systems div > span {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  margin-top: 4px;
  background: var(--vocn-overlay-blue);
}

.vocn-occ-overlay-priorities a.is-success > span,
.vocn-occ-overlay-systems div.is-ok > span { background: var(--vocn-overlay-green); }
.vocn-occ-overlay-priorities a.is-warning > span,
.vocn-occ-overlay-systems div.is-warn > span { background: var(--vocn-overlay-amber); }
.vocn-occ-overlay-priorities a.is-critical > span { background: var(--vocn-overlay-red); }

.vocn-occ-overlay-priorities strong,
.vocn-occ-overlay-systems strong {
  display: block;
  color: #f7fbff;
  font-size: 13px;
  line-height: 1.18;
}

.vocn-occ-overlay-priorities small,
.vocn-occ-overlay-systems small {
  display: block;
  color: #9fb3c9;
  font-size: 11px;
  line-height: 1.3;
  margin-top: 2px;
}

.vocn-occ-overlay-tests {
  margin-bottom: 14px;
}

.vocn-occ-overlay-test-list {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.vocn-occ-overlay-test-list output {
  min-height: 34px;
  border: 1px solid var(--vocn-overlay-line);
  border-radius: 8px;
  background: rgba(5, 13, 25, .62);
  color: #dff3ff;
  padding: 8px 10px;
  font-size: 12px;
}

.vocn-occ-overlay-tile {
  border: 1px solid var(--vocn-overlay-line);
  border-radius: 8px;
  background: var(--vocn-overlay-panel);
  padding: 10px 11px;
  min-width: 0;
}

.vocn-occ-overlay-tile span {
  display: block;
  color: #91a8c0;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.vocn-occ-overlay-tile strong {
  display: block;
  color: #f7fbff;
  font-size: 20px;
  line-height: 1.1;
  margin-top: 5px;
}

.vocn-occ-overlay-tile.is-attention strong { color: var(--vocn-overlay-amber); }
.vocn-occ-overlay-tile.is-critical strong { color: var(--vocn-overlay-red); }
.vocn-occ-overlay-tile.is-ok strong { color: var(--vocn-overlay-green); }

.vocn-occ-overlay-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid rgba(85, 183, 255, .24);
  border-radius: 999px;
  background: rgba(85, 183, 255, .08);
  color: #dff3ff;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.vocn-occ-overlay-state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--vocn-overlay-green);
  box-shadow: 0 0 14px rgba(74, 222, 128, .65);
}

.vocn-occ-overlay-state.is-attention::before {
  background: var(--vocn-overlay-amber);
  box-shadow: 0 0 14px rgba(251, 191, 36, .65);
}

.vocn-occ-shell .vocn-ops-dashboard-v165 {
  gap: 10px;
}

.vocn-occ-shell .vocn-ops-card,
.vocn-occ-shell .vocn-occ-card,
.vocn-occ-shell .vocn-occ-sidebar,
.vocn-occ-shell .vocn-occ-activity {
  border-radius: 8px;
  border-color: var(--vocn-overlay-line);
}

.vocn-occ-shell .vocn-ops-card-head h3,
.vocn-occ-shell .vocn-occ-card-head h4,
.vocn-occ-shell .vocn-occ-card-head h5 {
  letter-spacing: 0;
}

.vocn-occ-shell .vocn-ops-card-cta,
.vocn-occ-shell .vocn-ops-card-head a,
.vocn-occ-shell [data-occ-tab-link] {
  text-decoration: none;
}

.vocn-occ-shell .vocn-ops-feed-list a,
.vocn-occ-shell .vocn-ops-status-list a,
.vocn-occ-shell .vocn-ops-alert-list a,
.vocn-occ-shell .vocn-ops-system-list div {
  border-radius: 7px;
}

.vocn-occ-shell .vocn-occ-nav a,
.vocn-occ-shell .vocn-occ-more > summary,
.vocn-occ-shell button,
.vocn-occ-shell .vocn-acars-button,
.vocn-occ-shell input[type=submit] {
  border-radius: 8px !important;
}

.vocn-occ-shell .vocn-occ-badge,
.vocn-occ-shell .vocn-occ-nav-badge,
.vocn-occ-shell .vocn-occ-status-pill {
  letter-spacing: 0;
}

.vocn-occ-shell .vocn-occ-notice,
.vocn-occ-shell .vocn-occ-ajax-notice {
  border-radius: 8px;
}

.vocn-occ-shell .vocn-occ-topbar-right {
  align-items: center;
}

@media (max-width: 980px) {
  .vocn-occ-shell .vocn-occ-overlay-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vocn-occ-overlay-command-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .vocn-occ-shell .vocn-occ-overlay-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
  }

  .vocn-occ-overlay-tile {
    padding: 9px;
  }

  .vocn-occ-overlay-tile strong {
    font-size: 18px;
  }

  .vocn-occ-overlay-command-head,
  .vocn-occ-overlay-role {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .vocn-occ-overlay-command-head {
    flex-direction: column;
  }

  .vocn-occ-overlay-test-list {
    grid-template-columns: 1fr;
  }
}
