/* ── Brand colors ── */
:root {
  --primary: #1F3864;
  --primary-light: #2e4d8c;
  --seidor-color: #e8f0fe;
  --alicorp-color: #fff3cd;
}

.bg-primary-custom { background-color: var(--primary) !important; }

/* ── Body ── */
body {
  background: #f4f6fa;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.92rem;
}

/* ── Step labels ── */
.step-label {
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-block { margin-bottom: 0.25rem; }

/* ── Upload zone ── */
.upload-zone {
  border: 2px dashed #198754;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  background: #f8fff8;
}
.upload-zone:hover { background: #e9f7ef; border-color: #146c43; }
.upload-zone.loaded { border-color: #0d6efd; background: #e8f0ff; }

/* ── Participants grid ── */
.participants-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.participant-card {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  border: 1px solid #dee2e6;
  transition: box-shadow 0.15s;
}
.participant-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.participant-card.alicorp { background: var(--alicorp-color); }
.participant-card.seidor  { background: var(--seidor-color); }

.company-badge {
  font-size: 0.65rem;
  padding: 1px 5px;
  background: rgba(0,0,0,0.08) !important;
  color: #333 !important;
  margin-top: 2px;
  display: inline-block;
}

/* ── Preview container ── */
.preview-placeholder {
  min-height: 500px;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
}
#previewContainer iframe,
#previewContainer .preview-content {
  width: 100%;
  min-height: 500px;
  border: none;
}
.preview-content {
  padding: 20px;
}
.preview-content table {
  font-size: 8.5pt;
  font-family: Verdana, sans-serif;
}

/* ── Loading overlay ── */
#loadingOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Small button ── */
.btn-xs { padding: 2px 8px; font-size: 0.75rem; }

/* ── Toast ── */
.toast { min-width: 280px; }

/* ── History table ── */
#historyTable th { white-space: nowrap; }

/* ── Navbar ── */
.navbar-brand { font-size: 1rem; }

/* ── Scrollbar for preview ── */
.preview-placeholder::-webkit-scrollbar { width: 6px; }
.preview-placeholder::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
