/* === Status badge (preview header PASS/FAIL) ================================ */
.status-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  line-height: 1.4;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-2);
  cursor: pointer;
  letter-spacing: .2px;
  white-space: nowrap;
  transition: opacity .15s;
}
.status-badge:hover { opacity: .75; }

.status-badge--pass {
  background: var(--c-ok-bg);
  border-color: var(--c-ok-border);
  color: var(--c-ok);
}
.status-badge--fail {
  background: var(--c-err-bg);
  border-color: var(--c-err-border);
  color: var(--c-err);
}

/* === Dropdown (matches rich-tooltip aesthetic) ============================== */
.status-dropdown {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  min-width: 240px;
  max-width: 400px;
  max-height: 280px;
  overflow-y: auto;
  background: #1a2535;
  color: #dce6f0;
  border-radius: 7px;
  box-shadow: 0 6px 24px rgba(0,0,0,.35), 0 1px 4px rgba(0,0,0,.2);
  padding: 6px 0;
  z-index: 200;
  /* custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #2e3f55 transparent;
}
.status-dropdown::-webkit-scrollbar { width: 5px; }
.status-dropdown::-webkit-scrollbar-thumb { background: #2e3f55; border-radius: 3px; }

/* arrow pointing up */
.status-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 14px;
  border: 6px solid transparent;
  border-top: 0;
  border-bottom-color: #1a2535;
}

.status-dropdown-header {
  padding: 6px 13px 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #637083;
  border-bottom: 1px solid #2e3f55;
  margin-bottom: 3px;
}

.status-dropdown-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 13px;
  font-size: 11.5px;
  color: #dce6f0;
  cursor: pointer;
  border-radius: 4px;
  margin: 1px 5px;
  transition: background .12s;
  line-height: 1.4;
}
.status-dropdown-row:hover {
  background: #243247;
}
.status-dropdown-num {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: #ef5350;
  min-width: 16px;
  text-align: right;
}
.status-dropdown-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #b8c9db;
}
.status-dropdown-row:hover .status-dropdown-label {
  color: #dce6f0;
}
.status-dropdown-arrow {
  flex-shrink: 0;
  font-size: 11px;
  color: #2e3f55;
  transition: color .12s;
}
.status-dropdown-row:hover .status-dropdown-arrow {
  color: #64b5f6;
}

.status-dropdown-msg {
  padding: 8px 13px;
  font-size: 11.5px;
  color: #b8c9db;
  font-style: italic;
}
