:root {
  --brand-primary: #0a2e65;
  --brand-accent: #ffb600;
  --brand-muted: #4a5e8c;
}

body {
  background-color: #f5f7fb;
}

.queue-indicator .badge {
  min-width: 2.5rem;
  font-size: 1rem;
}

.table tbody tr {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.table tbody tr:hover {
  background-color: rgba(10, 46, 101, 0.08);
}

.table tbody tr.active-row {
  background-color: rgba(10, 46, 101, 0.15);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-pill .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}

.status-pill.not_printed {
  background-color: rgba(10, 46, 101, 0.1);
  color: var(--brand-primary);
}

.status-pill.not_printed .dot {
  background-color: var(--brand-primary);
}

.status-pill.printed {
  background-color: rgba(33, 150, 83, 0.1);
  color: #157347;
}

.status-pill.printed .dot {
  background-color: #157347;
}

.status-pill.error {
  background-color: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}

.status-pill.error .dot {
  background-color: #dc3545;
}

.preview-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100%;
  background-color: #ffffff;
  box-shadow: -2px 0 18px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  z-index: 1055;
}

.preview-drawer.open {
  right: 0;
}

.preview-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.preview-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.preview-section + .preview-section {
  margin-top: 1.25rem;
}

.preview-section h3 {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-muted);
  margin-bottom: 0.75rem;
}

.preview-card {
  background: linear-gradient(135deg, var(--brand-primary), #132f5c);
  color: #f2f6ff;
  border-radius: 24px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.preview-card::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 182, 0, 0.15);
  bottom: -30px;
  right: -35px;
}

.preview-card .badge-role {
  display: inline-block;
  background-color: rgba(255, 182, 0, 0.15);
  color: var(--brand-accent);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-top: 1rem;
}

.preview-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.preview-actions .btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.preview-actions .btn-primary:hover {
  background-color: #08234a;
}

.preview-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1050;
}

.preview-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

.logo-chip {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: rgba(255, 182, 0, 0.2);
  color: var(--brand-accent);
  font-weight: 700;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991.98px) {
  .preview-drawer {
    width: 100%;
  }
}

.import-summary {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}
