/* News Auto-Confirm rules panel + "Auto" marker in the News table (MHD-2253). */

.news-auto-confirm-drawer::part(panel) {
  width: min(720px, 100vw);
}

.news-auto-confirm-drawer::part(body) {
  padding: 0;
}

.nac-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  font-size: 13px;
}

.nac-intro {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

.nac-unavailable {
  padding: 10px 12px;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  background: #fffbeb;
  color: #92400e;
}

.nac-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nac-search {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}

.nac-count {
  color: #64748b;
  white-space: nowrap;
}

.nac-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.nac-table {
  width: 100%;
  border-collapse: collapse;
}

.nac-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  text-align: left;
  font-weight: 600;
  color: #334155;
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
}

.nac-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.nac-table tr:last-child td {
  border-bottom: none;
}

.nac-table tr.is-enabled .nac-tag {
  font-weight: 600;
  color: #065f46;
}

.nac-table tr.is-dirty td {
  background: #eff6ff;
}

.nac-table select {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  font: inherit;
}

.nac-empty {
  text-align: center;
  color: #64748b;
  padding: 16px;
}

.nac-help {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #64748b;
  line-height: 1.5;
}

.nac-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nac-status {
  margin-right: auto;
  color: #64748b;
  font-size: 12px;
}

.news-auto-confirmed-pill {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
}

/* Review dialog: the article was auto-confirmed after the News page loaded. */
.qe-auto-confirmed-banner {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.45;
}

.qe-auto-confirmed-banner[hidden] {
  display: none;
}

/* MHD-2253: why Auto-Confirm held an article back. Amber, not red: nothing failed,
   the article simply needs the person the rules deferred to. */
.qe-auto-confirm-held {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  background: #fffbeb;
  color: #78350f;
  font-size: 13px;
  line-height: 1.45;
}

.qe-auto-confirm-held[hidden] {
  display: none;
}
