/* SetonLOS admin styles — extends app.css */

.demo-banner {
  background: #fef3c7;
  color: #78350f;
  border-bottom: 2px solid #d97706;
  padding: 0.65rem 2rem;
  font-size: 0.92rem;
  text-align: center;
  letter-spacing: 0.01em;
}
.demo-banner strong { color: #92400e; letter-spacing: 0.05em; }

/* Contextual disclaimer shown inside admin pages when the current view
   contains demo data. Quieter than .demo-banner — sits in content, not
   above the header. */
.demo-disclaimer {
  background: var(--warn-bg);
  border: 1px solid #f5d97a;
  border-left: 3px solid var(--gold);
  color: #78350f;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}
.demo-disclaimer strong { color: #92400e; }

.admin-header {
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-bottom: 3px solid var(--gold);
}
.admin-header .wordmark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}
.admin-header .wordmark span { color: var(--gold); }

.admin-nav { display: flex; gap: 1rem; flex: 1; }
.admin-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.admin-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.admin-nav a.active { color: var(--gold); background: rgba(0, 0, 0, 0.2); }

.admin-nav-back {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.admin-nav-back:hover { color: var(--gold); background: rgba(255, 255, 255, 0.08); }

.user-chip { display: flex; align-items: center; gap: 0.75rem; font-size: 0.88rem; }
.user-chip .logout {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 0.75rem;
}
.user-chip .logout:hover { color: #fff; }

.queue-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.queue-filters button {
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-family: inherit;
  transition: all 0.15s;
}
.queue-filters button:hover { border-color: var(--navy); }
.queue-filters button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
}
.detail-section { margin-bottom: 1.5rem; }
.detail-section h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin: 0 0 0.6rem;
  font-family: inherit;
  font-weight: 600;
}
.detail-section dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.4rem 1rem;
  margin: 0;
  font-size: 0.92rem;
}
.detail-section dt { font-weight: 600; color: #555; }
.detail-section dd { margin: 0; }

.action-panel {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: 1rem;
}
.action-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--navy);
}
.action-panel .btn { width: 100%; margin-bottom: 0.5rem; }

.audit-log {
  font-size: 0.88rem;
}
.audit-log .entry {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.audit-log .entry:last-child { border-bottom: none; }
.audit-log .when { color: var(--muted); font-size: 0.8rem; }
.audit-log .what { font-weight: 600; }
.audit-log .who { color: var(--muted); font-size: 0.85rem; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-backdrop.visible { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}
.modal h3 { margin-top: 0; }
.modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.demo-switcher {
  background: rgba(0,0,0,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 0.3rem 0.5rem;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
}
.demo-switcher:focus { outline: none; border-color: var(--gold); }

.scope-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-left: 0.5rem;
}
.scope-badge.clergy { background: var(--navy); color: #fff; }
.scope-badge.diaconate { background: var(--gold); color: #fff; }

.signature-preview {
  max-height: 60px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.25rem;
}
