/**
 * iHRM Page-specific shared styles (sessions, modals, recruitment, management)
 */

/* Session view cards */
.card-hover {
  transition: all var(--ihrm-transition, 0.2s ease);
  border: 1px solid var(--ihrm-border, rgba(0,0,0,0.08));
  border-radius: var(--ihrm-radius-lg, 0.75rem);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--ihrm-shadow-md, 0 4px 12px rgba(0,0,0,0.08));
}

.status-icon-warning,
.status-icon-success {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 1.25rem;
  padding: 8px;
  border-radius: 50%;
  color: #fff;
}

.status-icon-warning {
  background-color: var(--ihrm-warning, #d97706);
}

.status-icon-success {
  background-color: var(--ihrm-success, #059669);
}

/* Colored session status cards */
body.ihrm-corporate .card.bg-warning .card-body,
body.ihrm-corporate .card.bg-danger .card-body,
body.ihrm-corporate .card.bg-success .card-body {
  color: #fff;
}

body.ihrm-corporate .ihrm-entity-card.bg-warning .card-body strong,
body.ihrm-corporate .ihrm-entity-card.bg-success .card-body strong,
body.ihrm-corporate .ihrm-entity-card.bg-warning .card-body .btn-outline-primary,
body.ihrm-corporate .ihrm-entity-card.bg-success .card-body .btn-outline-primary {
  color: inherit;
}

body.ihrm-corporate .ihrm-session-card .ihrm-entity-card-header {
  border-radius: var(--ihrm-radius, 0.5rem) var(--ihrm-radius, 0.5rem) 0 0;
}

/* ── Livewire modals (must overlay viewport) ─────────────── */
.modal.fade.show.d-block,
.ihrm-modal-livewire {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1055 !important;
  display: block !important;
  width: 100vw;
  height: 100%;
  outline: 0;
}

/* Fullscreen: scroll inside body, NOT on outer overlay */
body.ihrm-corporate .ihrm-modal-livewire,
body.ihrm-corporate .modal.fade.show.d-block:has(.modal-fullscreen) {
  overflow: hidden !important;
}

/* Small/centered modals: allow overlay scroll */
body.ihrm-corporate .modal.fade.show.d-block:not(:has(.modal-fullscreen)) {
  overflow-x: hidden;
  overflow-y: auto;
}

.ihrm-modal-backdrop,
body.ihrm-corporate .modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1050 !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(2px);
}

body.ihrm-corporate .ihrm-modal-livewire {
  z-index: 1055 !important;
}

.modal.fade.show.d-block .modal-dialog,
.ihrm-modal-livewire .modal-dialog {
  margin: 0 auto;
  pointer-events: none;
}

.modal.fade.show.d-block .modal-content,
.ihrm-modal-livewire .modal-content {
  pointer-events: auto;
}

.modal-fullscreen {
  width: 100vw;
  max-width: none;
  height: 100%;
  margin: 0;
}

/* Flex column chain: content → form → body scrolls */
body.ihrm-corporate .modal-fullscreen .modal-content,
body.ihrm-corporate .ihrm-modal-livewire .modal-content,
body.ihrm-corporate .ihrm-modal-content {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  border-radius: 0;
  border: none;
}

body.ihrm-corporate .ihrm-modal-livewire .modal-content > form,
body.ihrm-corporate .modal-fullscreen .modal-content > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  height: 100%;
  margin: 0;
}

body.ihrm-corporate .ihrm-modal-livewire .modal-header,
body.ihrm-corporate .ihrm-modal-livewire .ihrm-modal-header,
body.ihrm-corporate .modal-fullscreen .modal-header,
body.ihrm-corporate .modal-fullscreen .ihrm-modal-header,
.modal-fixed-header {
  flex-shrink: 0;
}

body.ihrm-corporate .ihrm-modal-livewire .modal-footer,
body.ihrm-corporate .modal-fullscreen .modal-footer,
.modal-fixed-footer {
  flex-shrink: 0;
}

/* Scrollable region — override arcyberlab centering */
body.ihrm-corporate .ihrm-modal-livewire .modal-body,
body.ihrm-corporate .modal-fullscreen .modal-body,
.modal-scrollable-content {
  flex: 1 1 auto;
  overflow-y: auto !important;
  overflow-x: hidden;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  display: block !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
}

/* Non-fullscreen tall modals (lg/xl) */
body.ihrm-corporate .ihrm-modal-livewire:not(:has(.modal-fullscreen)) .modal-content {
  max-height: calc(100vh - 2rem);
  overflow: hidden;
}

body.ihrm-corporate .ihrm-modal-livewire:not(:has(.modal-fullscreen)) .modal-body {
  max-height: calc(100vh - 12rem);
  overflow-y: auto !important;
}

/* Session wizard progress tracker */
.progress-tracker ul {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.progress-tracker .progress-step {
  flex: 1;
  text-align: center;
  position: relative;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.progress-tracker .progress-step.active,
.progress-tracker .progress-step.completed {
  opacity: 1;
}

.progress-tracker .step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.375rem;
  font-size: 0.875rem;
}

.progress-tracker .progress-step.active .step-indicator,
.progress-tracker .progress-step.completed .step-indicator {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ihrm-primary, #1e3a5f);
}

.progress-tracker .step-name {
  display: block;
  font-size: 0.6875rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
}

.progress-tracker .progress-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 0;
}

.progress-tracker .progress-step.completed:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.6);
}

/* Livewire modals */
body.ihrm-corporate .modal-content {
  border: none;
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  box-shadow: var(--ihrm-shadow-lg, 0 8px 24px rgba(0,0,0,0.12));
  overflow: hidden;
}

body.ihrm-corporate .modal-header:not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-info) {
  background: linear-gradient(135deg, var(--ihrm-primary, #1e3a5f), var(--ihrm-primary-light, #2d4f7c));
  color: #fff;
  border-bottom: none;
  padding: 1rem 1.25rem;
}

body.ihrm-corporate .modal-header:not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-info) .modal-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: #fff;
  line-height: 1.3;
}

body.ihrm-corporate .modal-header:not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-info) .ihrm-modal-subtitle {
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
}

body.ihrm-corporate .modal-header.bg-warning.text-dark .modal-title,
body.ihrm-corporate .modal-header.text-dark:not(.bg-success):not(.bg-danger):not(.bg-info) .modal-title {
  color: #1e293b;
}

body.ihrm-corporate .modal-header.bg-warning.text-dark .ihrm-modal-subtitle,
body.ihrm-corporate .modal-header.text-dark:not(.bg-success):not(.bg-danger):not(.bg-info) .ihrm-modal-subtitle {
  color: #334155;
  opacity: 1;
}

body.ihrm-corporate .modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

body.ihrm-corporate .modal-footer {
  border-top: 1px solid var(--ihrm-border);
  background: var(--ihrm-surface, #f8fafc);
  padding: 0.875rem 1.25rem;
}

/* Page section headers (management wrappers) */
.ihrm-section-header {
  background: linear-gradient(135deg, var(--ihrm-primary, #1e3a5f), var(--ihrm-primary-light, #2d4f7c));
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--ihrm-radius-lg, 0.75rem) var(--ihrm-radius-lg, 0.75rem) 0 0;
  margin-bottom: 0;
}

.ihrm-section-header h5,
.ihrm-section-header h6 {
  color: #fff;
  margin-bottom: 0;
  font-weight: 600;
}

.ihrm-section-header i {
  margin-right: 0.5rem;
  opacity: 0.9;
}

/* Filter/search bars */
.ihrm-filter-bar {
  background: var(--ihrm-surface-elevated, #fff);
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--ihrm-shadow);
}

.ihrm-filter-bar .form-control,
.ihrm-filter-bar .form-select {
  border-radius: var(--ihrm-radius, 0.5rem);
}

/* User/entity cards in lists */
.ihrm-entity-card {
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  transition: all var(--ihrm-transition, 0.2s ease);
  overflow: hidden;
}

.ihrm-entity-card:hover {
  box-shadow: var(--ihrm-shadow-md);
  transform: translateY(-2px);
}

.ihrm-entity-card .card-header,
.ihrm-entity-card-header {
  background: linear-gradient(135deg, var(--ihrm-primary, #1e3a5f), var(--ihrm-primary-light, #2d4f7c)) !important;
  color: #fff !important;
  border-bottom: none;
  font-weight: 600;
  padding: 0.875rem 1rem;
}

/* Force visible titles on dark entity card headers (Bootstrap h5 override) */
.ihrm-entity-card .card-header h1,
.ihrm-entity-card .card-header h2,
.ihrm-entity-card .card-header h3,
.ihrm-entity-card .card-header h4,
.ihrm-entity-card .card-header h5,
.ihrm-entity-card .card-header h6,
.ihrm-entity-card .card-header .card-title,
.ihrm-entity-card-title,
.ihrm-entity-card-header h1,
.ihrm-entity-card-header h2,
.ihrm-entity-card-header h3,
.ihrm-entity-card-header h4,
.ihrm-entity-card-header h5,
.ihrm-entity-card-header h6 {
  color: #fff !important;
  text-decoration: none !important;
}

.ihrm-entity-card-subtitle {
  display: block;
  font-size: 0.8125rem;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-top: 0.25rem;
}

.ihrm-entity-card-header .badge,
.ihrm-entity-card .card-header .badge {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  font-weight: 500;
  margin-top: 0.35rem;
}

/* Setup / prerequisite warnings */
.ihrm-setup-warning {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  padding: 1rem 1.25rem;
}

.ihrm-setup-warning-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ihrm-warning, #d97706);
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
}

.ihrm-setup-warning-title {
  color: #92400e;
  font-size: 1rem;
}

.ihrm-setup-warning-body p {
  color: #78350f;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Setup checklist on home dashboards */
.ihrm-setup-checklist-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ihrm-setup-checklist-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.ihrm-setup-checklist-icon {
  flex-shrink: 0;
  width: 1.25rem;
  padding-top: 0.125rem;
}

.ihrm-setup-checklist-link {
  color: var(--ihrm-primary, #1e3a5f);
  text-decoration: none;
}

.ihrm-setup-checklist-link:hover {
  text-decoration: underline;
}

.ihrm-setup-checklist-step.is-pending .ihrm-setup-checklist-body {
  border-left: 2px solid rgba(217, 119, 6, 0.35);
  padding-left: 0.75rem;
  margin-left: -0.75rem;
}

.ihrm-entity-card .card-footer,
.ihrm-entity-card-footer {
  background: var(--ihrm-surface, #f8fafc);
  border-top: 1px solid var(--ihrm-border);
  padding: 0.75rem 1rem;
}

.ihrm-entity-card-footer-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.ihrm-entity-card-footer-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.ihrm-entity-card-footer-secondary {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Quiz player */
.ihrm-quiz-container {
  max-width: 800px;
  margin: 0 auto;
}

.ihrm-quiz-question {
  background: var(--ihrm-surface-elevated, #fff);
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  padding: 2rem;
  box-shadow: var(--ihrm-shadow-md);
}

.ihrm-quiz-option {
  border: 2px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius, 0.5rem);
  padding: 0.875rem 1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all var(--ihrm-transition, 0.2s ease);
}

.ihrm-quiz-option:hover {
  border-color: var(--ihrm-accent, #2563eb);
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.06));
}

.ihrm-quiz-option.selected {
  border-color: var(--ihrm-accent, #2563eb);
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.1));
}

/* Data tables / logs */
.ihrm-log-viewer {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: var(--ihrm-radius, 0.5rem);
  padding: 1rem;
  max-height: 500px;
  overflow-y: auto;
}

/* Recruitment document upload */
.ihrm-upload-zone {
  border: 2px dashed var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  padding: 2rem;
  text-align: center;
  transition: all var(--ihrm-transition, 0.2s ease);
  background: var(--ihrm-surface, #f8fafc);
}

.ihrm-upload-zone:hover,
.ihrm-upload-zone.dragover {
  border-color: var(--ihrm-accent, #2563eb);
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.04));
}

/* Pagination corporate */
body.ihrm-corporate .pagination .page-link {
  color: var(--ihrm-primary, #1e3a5f);
  border-color: var(--ihrm-border);
  transition: all var(--ihrm-transition, 0.2s ease);
}

body.ihrm-corporate .pagination .page-item.active .page-link {
  background: var(--ihrm-primary, #1e3a5f);
  border-color: var(--ihrm-primary, #1e3a5f);
}

body.ihrm-corporate .pagination .page-link:hover {
  background: var(--ihrm-accent-soft);
  color: var(--ihrm-accent, #2563eb);
}

/* Nav pills (class actions, filters) */
body.ihrm-corporate .nav-pills .nav-link {
  color: var(--ihrm-text-muted, #64748b);
  border-radius: var(--ihrm-radius, 0.5rem);
  font-weight: 500;
  transition: all var(--ihrm-transition, 0.2s ease);
  cursor: pointer;
}

body.ihrm-corporate .nav-pills .nav-link.active {
  background: var(--ihrm-primary, #1e3a5f);
  color: #fff;
}

body.ihrm-corporate .nav-pills .nav-link:hover:not(.active) {
  background: var(--ihrm-accent-soft);
  color: var(--ihrm-primary);
}

/* Nav tabs */
body.ihrm-corporate .nav-tabs .nav-link {
  color: var(--ihrm-text-muted, #64748b);
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  transition: all var(--ihrm-transition, 0.2s ease);
}

body.ihrm-corporate .nav-tabs .nav-link.active {
  color: var(--ihrm-primary, #1e3a5f);
  border-bottom-color: var(--ihrm-accent, #2563eb);
  background: transparent;
}

body.ihrm-corporate .nav-tabs .nav-link:hover {
  color: var(--ihrm-accent, #2563eb);
}

/* List groups */
body.ihrm-corporate .list-group-item {
  border-color: var(--ihrm-border);
  transition: background var(--ihrm-transition, 0.2s ease);
}

body.ihrm-corporate .list-group-item:hover {
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.04));
}

/* Badges refinement */
body.ihrm-corporate .badge {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Action button groups in tables */
.ihrm-action-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  border-radius: var(--ihrm-radius, 0.5rem);
  transition: all var(--ihrm-transition, 0.2s ease);
}

.ihrm-action-btn:hover {
  transform: translateY(-1px);
}

.unselectable {
  -webkit-user-select: none;
  user-select: none;
}

/* Card hover utility used in session/quiz views */
.card-hover {
  cursor: pointer;
}

/* Corporate page wrapper */
.ihrm-page {
  padding: 0.5rem 0 2rem;
}

/* Form sections in modals */
body.ihrm-corporate .modal-body .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ihrm-text);
}

body.ihrm-corporate .modal-body .mb-3 {
  margin-bottom: 1rem !important;
}

/* Step indicators in multi-step modals */
.ihrm-step-indicator {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ihrm-step-indicator .step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--ihrm-border);
  transition: background var(--ihrm-transition);
}

.ihrm-step-indicator .step.active {
  background: linear-gradient(90deg, var(--ihrm-primary), var(--ihrm-accent));
}

/* jstree corporate tint */
.jstree-default .jstree-clicked {
  background: var(--ihrm-accent-soft) !important;
  color: var(--ihrm-primary) !important;
}

.jstree-default .jstree-hovered {
  background: var(--ihrm-accent-soft) !important;
}

/* Livewire tables toolbar */
body.ihrm-corporate .d-flex.gap-2 .btn,
body.ihrm-corporate .toolbar .btn {
  font-size: 0.875rem;
}

/* Status badges in tables */
.ihrm-status-badge {
  font-size: 0.75rem;
  padding: 0.25em 0.6em;
  border-radius: 1rem;
  font-weight: 600;
}

/* Inline action toolbar */
.ihrm-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

/* ── Page layout system ─────────────────────────────────── */
.ihrm-page-shell {
  max-width: 100%;
}

.ihrm-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--ihrm-surface-elevated, #fff);
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  margin-bottom: 1.25rem;
  box-shadow: var(--ihrm-shadow);
}

.ihrm-page-toolbar .ihrm-toolbar-search {
  flex: 1 1 280px;
  min-width: 200px;
  max-width: 100%;
}

.ihrm-page-toolbar .ihrm-toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex: 0 1 auto;
}

.ihrm-page-toolbar .ihrm-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 0 1 auto;
  margin-left: auto;
}

.ihrm-page-toolbar .btn {
  white-space: nowrap;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--ihrm-radius, 0.5rem) !important;
}

.ihrm-search-field .form-control {
  border-radius: var(--ihrm-radius, 0.5rem) 0 0 var(--ihrm-radius, 0.5rem) !important;
}

.ihrm-search-field .input-group-text {
  border-radius: 0 var(--ihrm-radius, 0.5rem) var(--ihrm-radius, 0.5rem) 0 !important;
  background: var(--ihrm-surface, #f8fafc);
  border-color: var(--ihrm-border);
  color: var(--ihrm-text-muted, #64748b);
}

.ihrm-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--ihrm-radius, 0.5rem);
  font-size: 0.9375rem;
}

.ihrm-active-filters-actions .btn {
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--ihrm-radius, 0.5rem) !important;
}

.ihrm-entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* Interactive entity list (replaces card grid for management flows) */
.ihrm-entity-list {
  background: var(--ihrm-surface-elevated, #fff);
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  overflow: hidden;
  box-shadow: var(--ihrm-shadow);
}

.ihrm-entity-list-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--ihrm-border);
  transition: background var(--ihrm-transition, 0.2s ease);
}

.ihrm-entity-list-item:last-child {
  border-bottom: none;
}

.ihrm-entity-list-item.is-clickable {
  cursor: pointer;
}

.ihrm-entity-list-item.is-clickable:hover {
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.06));
}

.ihrm-entity-list-item.is-clickable:hover .ihrm-entity-list-title {
  color: var(--ihrm-accent, #2563eb);
}

.ihrm-entity-list-item.is-clickable:hover .ihrm-entity-list-chevron {
  opacity: 1;
  transform: translateX(2px);
}

.ihrm-entity-list-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ihrm-radius, 0.5rem);
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.1));
  color: var(--ihrm-primary, #1e3a5f);
  font-size: 0.9375rem;
}

.ihrm-entity-list-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ihrm-entity-list-text {
  flex: 1 1 auto;
  min-width: 0;
}

.ihrm-entity-list-title {
  font-weight: 600;
  color: var(--ihrm-primary, #1e3a5f);
  line-height: 1.35;
  transition: color var(--ihrm-transition, 0.2s ease);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ihrm-entity-list-meta {
  font-size: 0.8125rem;
  color: var(--ihrm-text-muted, #64748b);
  margin-top: 0.125rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ihrm-entity-list-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  flex-shrink: 0;
}

.ihrm-entity-list-actions {
  flex-shrink: 0;
}

.ihrm-entity-list-chevron {
  flex-shrink: 0;
  color: var(--ihrm-text-muted, #64748b);
  opacity: 0.45;
  font-size: 0.75rem;
  transition: opacity var(--ihrm-transition, 0.2s ease), transform var(--ihrm-transition, 0.2s ease);
}

.ihrm-row-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .ihrm-entity-list-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .ihrm-entity-list-actions {
    width: 100%;
    padding-left: calc(2.5rem + 0.875rem);
  }

  .ihrm-entity-list-chevron {
    display: none;
  }
}

.ihrm-card-header-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ihrm-card-header-toolbar .btn {
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Legacy toolbar auto-fix inside cards */
body.ihrm-corporate .card.ihrm-card > .d-flex.justify-content-between {
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 1rem !important;
  padding: 1rem 1.25rem !important;
  margin: 0 !important;
}

body.ihrm-corporate .card.ihrm-card > .d-flex.justify-content-between .input-group {
  flex: 1 1 280px;
  width: auto !important;
  max-width: 100%;
  min-width: 200px;
}

body.ihrm-corporate .card.ihrm-card > .d-flex.justify-content-between > div:last-child:not(:only-child) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  flex: 0 1 auto;
}

body.ihrm-corporate .card .d-flex .btn-lg.rounded-pill,
body.ihrm-corporate .card .d-flex .btn.rounded-pill {
  font-size: 0.875rem !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--ihrm-radius, 0.5rem) !important;
}

/* Migration artifact cleanup */
.card-body.ihrm-card,
.card-footer.ihrm-card {
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  padding-top: 0;
}

/* Modal layout standardization */
body.ihrm-corporate .modal-content {
  border: none;
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  box-shadow: var(--ihrm-shadow-lg, 0 8px 30px rgba(0, 0, 0, 0.15));
  overflow: hidden;
}

body.ihrm-corporate .modal-header.bg-success,
body.ihrm-corporate .modal-header.bg-danger,
body.ihrm-corporate .modal-header.bg-warning,
body.ihrm-corporate .modal-header.bg-info {
  border-bottom: none;
}

body.ihrm-corporate .modal-header:not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-info):not(.bg-primary) {
  background: linear-gradient(135deg, var(--ihrm-primary, #1e3a5f), var(--ihrm-primary-light, #2d4f7c));
  color: #fff;
  border-bottom: none;
  padding: 1rem 1.25rem;
}

body.ihrm-corporate .modal-header .modal-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: #fff;
}

body.ihrm-corporate .modal-header.bg-warning.text-dark .modal-title,
body.ihrm-corporate .modal-header.text-dark:not(.bg-success):not(.bg-danger):not(.bg-info) .modal-title {
  color: #1e293b;
}

body.ihrm-corporate .modal-header.bg-warning.text-dark .ihrm-modal-subtitle,
body.ihrm-corporate .modal-header.text-dark:not(.bg-success):not(.bg-danger):not(.bg-info) .ihrm-modal-subtitle {
  color: #334155;
  opacity: 1;
}

/* Modal header with subtitle */
.ihrm-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem !important;
}

.ihrm-modal-header-content {
  flex: 1;
  min-width: 0;
}

.ihrm-modal-subtitle {
  font-size: 0.875rem;
  margin-top: 0.35rem;
  margin-bottom: 0;
  line-height: 1.4;
}

body.ihrm-corporate .modal-header.bg-warning .ihrm-modal-subtitle {
  color: #334155;
  opacity: 1;
}

body.ihrm-corporate .modal-fullscreen .modal-body .ihrm-modal-form,
body.ihrm-corporate .ihrm-modal-livewire .modal-body .ihrm-modal-form {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

/* Form container inside modals */
body.ihrm-corporate .ihrm-modal-livewire .modal-body .ihrm-modal-form {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

body.ihrm-corporate .ihrm-modal-livewire .modal-body .form-label {
  color: var(--ihrm-text, #1e293b) !important;
  display: block;
}

.ihrm-form-hint {
  font-size: 0.8125rem;
  color: var(--ihrm-text-muted, #64748b);
  margin-top: 0.35rem;
  line-height: 1.45;
}

/* Hint / guidance boxes */
[x-cloak] {
  display: none !important;
}

.ihrm-hint-box {
  display: flex;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.ihrm-hint-box--collapsible {
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.ihrm-hint-box--collapsible:not(.ihrm-hint-box--open) {
  margin-bottom: 0.75rem;
}

.ihrm-hint-box-toggle {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 1rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font-size: 0.875rem;
  line-height: 1.4;
}

.ihrm-hint-box-toggle:hover {
  background: rgba(37, 99, 235, 0.04);
}

.ihrm-hint-box-toggle:focus-visible {
  outline: 2px solid var(--ihrm-accent, #2563eb);
  outline-offset: -2px;
}

.ihrm-hint-box--collapsible .ihrm-hint-box-icon {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.75rem;
}

.ihrm-hint-box--collapsible .ihrm-hint-box-title {
  margin-bottom: 0;
  flex: 1;
}

.ihrm-hint-box-toggle-label {
  font-size: 0.8125rem;
  white-space: nowrap;
}

.ihrm-hint-box-chevron {
  color: var(--ihrm-text-muted, #64748b);
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.ihrm-hint-box--open .ihrm-hint-box-chevron {
  transform: rotate(180deg);
}

.ihrm-hint-box--collapsible .ihrm-hint-box-body {
  padding: 0 1rem 1rem 1rem;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.ihrm-hint-box--collapsible .ihrm-hint-box-content {
  padding-top: 0.75rem;
}

.ihrm-hint-box-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ihrm-accent, #2563eb);
  color: #fff;
  border-radius: 50%;
  font-size: 0.875rem;
}

.ihrm-hint-box-title {
  font-weight: 600;
  color: var(--ihrm-primary, #1e3a5f);
  margin-bottom: 0.35rem;
}

.ihrm-hint-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.ihrm-hint-list li::before {
  content: '•';
  color: var(--ihrm-accent, #2563eb);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  padding-left: 1em;
}

/* Toolbar action tooltips */
.ihrm-toolbar-actions [data-bs-toggle="tooltip"] {
  cursor: help;
}

/* Card headers — ensure titles stay visible on dark backgrounds */
.ihrm-card-header-primary h4,
.ihrm-card-header-primary h5,
.ihrm-card-header-primary h6,
.ihrm-card-header-primary .card-title,
.ihrm-section-header h4,
.ihrm-section-header h5 {
  color: #fff !important;
}

/* Company / settings form pages */
.ihrm-form-card {
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  box-shadow: var(--ihrm-shadow);
}

.ihrm-cui-block {
  padding: 1.25rem;
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--ihrm-radius-lg, 0.75rem);
}

.ihrm-cui-block .input-group-lg .form-control {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.ihrm-cui-block .btn {
  white-space: nowrap;
}

body.ihrm-corporate .modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

body.ihrm-corporate .modal-body {
  padding: 1.25rem;
}

body.ihrm-corporate .modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--ihrm-surface, #f8fafc);
  border-top: 1px solid var(--ihrm-border);
}

body.ihrm-corporate .modal-footer.justify-content-center {
  justify-content: center;
}

body.ihrm-corporate .modal-footer .btn-lg,
body.ihrm-corporate .modal-body .btn-lg {
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--ihrm-radius, 0.5rem) !important;
}

body.ihrm-corporate .modal-footer .d-flex.gap-2,
body.ihrm-corporate .modal-footer .d-flex.justify-content-between {
  width: 100%;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Recruitment session cards grid */
.ihrm-recruitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Document upload cards */
.ihrm-doc-card {
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg);
  padding: 1.25rem;
  transition: all var(--ihrm-transition);
}

.ihrm-doc-card:hover {
  border-color: var(--ihrm-accent);
  box-shadow: var(--ihrm-shadow-md);
}

/* Changelog / documentation prose */
.ihrm-prose h2, .ihrm-prose h3 {
  color: var(--ihrm-primary);
  margin-top: 1.5rem;
}

.ihrm-prose code {
  background: var(--ihrm-accent-soft);
  color: var(--ihrm-primary);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

/* ── Dynamic entity table listing ─────────────────────────── */
.ihrm-entity-table-wrap {
  background: var(--ihrm-surface-elevated, #fff);
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  overflow: hidden;
  box-shadow: var(--ihrm-shadow);
}

.ihrm-entity-table-wrap .table {
  margin-bottom: 0;
}

.ihrm-entity-table-wrap tbody tr {
  cursor: default;
  transition: background var(--ihrm-transition, 0.2s ease);
}

.ihrm-entity-table-wrap tbody tr:hover {
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.06));
}

.ihrm-entity-table-wrap .ihrm-entity-name {
  font-weight: 600;
  color: var(--ihrm-primary, #1e3a5f);
}

.ihrm-entity-table-wrap .ihrm-entity-meta {
  font-size: 0.8125rem;
  color: var(--ihrm-text-muted, #64748b);
}

.ihrm-entity-table-wrap .ihrm-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  justify-content: flex-end;
  white-space: nowrap;
}

.ihrm-entity-table-wrap .ihrm-row-actions .btn {
  min-width: 2.25rem;
}

.ihrm-entity-table-count {
  font-size: 0.875rem;
  color: var(--ihrm-text-muted, #64748b);
  padding: 0.625rem 1rem;
  border-top: 1px solid var(--ihrm-border);
  background: var(--ihrm-surface, #f8fafc);
}

.ihrm-list-view-toggle .btn {
  padding: 0.375rem 0.75rem;
}

@media (max-width: 767.98px) {
  .ihrm-entity-table-wrap .ihrm-row-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* DataTables inside entity-table wrapper */
.ihrm-entity-table-wrap .dataTables_wrapper {
  padding: 0.75rem 1rem 1rem;
}

.ihrm-entity-table-wrap .dataTables_length label,
.ihrm-entity-table-wrap .dataTables_filter label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ihrm-text-muted, #64748b);
  margin-bottom: 0;
}

.ihrm-entity-table-wrap .dataTables_filter input {
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius, 0.5rem);
  padding: 0.375rem 0.75rem;
  min-width: 180px;
}

.ihrm-entity-table-wrap .dataTables_info {
  font-size: 0.875rem;
  color: var(--ihrm-text-muted, #64748b);
  padding-top: 0.5rem;
}

.ihrm-entity-table-wrap .dataTables_paginate .pagination {
  margin-bottom: 0;
  justify-content: flex-end;
}

.ihrm-entity-table-wrap table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
.ihrm-entity-table-wrap table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
  background-color: var(--ihrm-primary, #1e3a5f);
  border: none;
  box-shadow: none;
  line-height: 1rem;
}

.ihrm-entity-table-wrap .dtr-details {
  width: 100%;
  background: var(--ihrm-surface, #f8fafc);
  border-radius: var(--ihrm-radius, 0.5rem);
  padding: 0.75rem;
}

/* ── Session results explorer (3-panel) ─────────────────── */
.ihrm-explorer-modal-body {
  padding-top: 0.75rem;
}

.ihrm-results-explorer {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(180px, 1fr) minmax(280px, 2fr);
  gap: 0.75rem;
  min-height: 52vh;
}

.ihrm-explorer-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--ihrm-border, #e2e8f0);
  border-radius: var(--ihrm-radius-lg, 0.625rem);
  background: var(--ihrm-surface-elevated, #fff);
  overflow: hidden;
}

.ihrm-explorer-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  background: var(--ihrm-surface, #f8fafc);
  border-bottom: 1px solid var(--ihrm-border, #e2e8f0);
  font-weight: 600;
  color: var(--ihrm-primary, #1e3a5f);
}

.ihrm-explorer-panel-search {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--ihrm-border, #e2e8f0);
}

.ihrm-explorer-panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.5rem;
  min-height: 200px;
  max-height: min(58vh, 640px);
}

.ihrm-explorer-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.125rem 0.5rem;
  align-items: center;
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.375rem;
  border: 1px solid transparent;
  border-radius: var(--ihrm-radius, 0.5rem);
  background: var(--ihrm-surface, #f8fafc);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.ihrm-explorer-item:hover {
  border-color: var(--ihrm-accent, #2563eb);
  background: #fff;
}

.ihrm-explorer-item.is-active {
  border-color: var(--ihrm-primary, #1e3a5f);
  background: color-mix(in srgb, var(--ihrm-primary, #1e3a5f) 8%, #fff);
  box-shadow: var(--ihrm-shadow, 0 1px 3px rgba(0, 0, 0, 0.08));
}

.ihrm-explorer-item-title {
  grid-column: 1;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ihrm-text, #0f172a);
  line-height: 1.3;
}

.ihrm-explorer-item-meta {
  grid-column: 1;
  font-size: 0.75rem;
  color: var(--ihrm-text-muted, #64748b);
}

.ihrm-explorer-score {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.ihrm-explorer-panel-detail .ihrm-explorer-panel-body {
  padding: 0.75rem;
}

.ihrm-explorer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ihrm-text-muted, #64748b);
  padding: 2rem 1rem;
  min-height: 200px;
}

.ihrm-answer-card {
  border: 1px solid var(--ihrm-border, #e2e8f0);
  border-radius: var(--ihrm-radius, 0.5rem);
  padding: 0.875rem 1rem;
  margin-bottom: 0.75rem;
  background: #fff;
  transition: box-shadow 0.15s ease;
}

.ihrm-answer-card:hover {
  box-shadow: var(--ihrm-shadow-md, 0 4px 12px rgba(15, 23, 42, 0.08));
}

.ihrm-answer-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ihrm-answer-index {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ihrm-primary, #1e3a5f);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.ihrm-answer-question {
  flex: 1 1 200px;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ihrm-text, #0f172a);
  line-height: 1.4;
}

.ihrm-answer-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ihrm-answer-selected {
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.625rem;
  border-radius: var(--ihrm-radius, 0.5rem);
  background: color-mix(in srgb, #22c55e 12%, #fff);
  border: 1px solid color-mix(in srgb, #22c55e 35%, transparent);
}

.ihrm-answer-selected-label,
.ihrm-answer-options-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ihrm-text-muted, #64748b);
  margin-bottom: 0.35rem;
}

.ihrm-answer-selected-text {
  margin: 0;
  font-weight: 600;
  color: var(--ihrm-text, #0f172a);
}

.ihrm-answer-options-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ihrm-answer-option {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.8125rem;
  border-radius: 0.375rem;
  color: var(--ihrm-text-muted, #64748b);
}

.ihrm-answer-option.is-selected {
  background: color-mix(in srgb, #22c55e 10%, #fff);
  color: var(--ihrm-text, #0f172a);
  font-weight: 600;
}

.ihrm-answer-option-pts {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.85;
}

.ihrm-answer-calibrate {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--ihrm-border, #e2e8f0);
}

@media (max-width: 991.98px) {
  .ihrm-results-explorer {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ihrm-explorer-panel-body {
    max-height: 280px;
  }
}

/* Drill-down: participanți → rezultate */
.ihrm-participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.ihrm-participant-card {
  border: 1px solid var(--ihrm-border, #e2e8f0);
  border-radius: var(--ihrm-radius-lg, 0.625rem);
  background: var(--ihrm-surface-elevated, #fff);
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.ihrm-participant-card:hover {
  border-color: var(--ihrm-accent, #2563eb);
  box-shadow: var(--ihrm-shadow-md, 0 4px 12px rgba(15, 23, 42, 0.08));
}

.ihrm-participant-card-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
}

.ihrm-participant-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ihrm-primary, #1e3a5f) 12%, #fff);
  color: var(--ihrm-primary, #1e3a5f);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ihrm-participant-info {
  flex: 1 1 auto;
  min-width: 0;
}

.ihrm-participant-name {
  font-weight: 600;
  margin-bottom: 0.125rem;
  color: var(--ihrm-text, #0f172a);
}

.ihrm-participant-meta {
  font-size: 0.8125rem;
  color: var(--ihrm-text-muted, #64748b);
}

.ihrm-participant-score {
  text-align: center;
  padding: 0.35rem 0.5rem;
  font-size: 0.9375rem;
}

.ihrm-participant-card .btn {
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--ihrm-border, #e2e8f0);
  padding: 0.625rem 1rem;
}

.ihrm-explorer-results-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ihrm-border, #e2e8f0);
}

.ihrm-explorer-set-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ihrm-set-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--ihrm-border, #e2e8f0);
  border-radius: var(--ihrm-radius, 0.5rem);
  background: var(--ihrm-surface, #f8fafc);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  max-width: 100%;
}

.ihrm-set-tab:hover {
  border-color: var(--ihrm-accent, #2563eb);
  background: #fff;
}

.ihrm-set-tab.is-active {
  border-color: var(--ihrm-primary, #1e3a5f);
  background: color-mix(in srgb, var(--ihrm-primary, #1e3a5f) 10%, #fff);
}

.ihrm-set-tab-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ihrm-text, #0f172a);
}

.ihrm-set-tab-meta {
  font-size: 0.75rem;
  color: var(--ihrm-text-muted, #64748b);
}

.ihrm-explorer-answers-full {
  max-height: min(62vh, 680px);
  overflow-y: auto;
  padding-right: 0.25rem;
}

/* Auth + static pages */
.ihrm-auth-shell {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.ihrm-changelog-body {
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.ihrm-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  font-size: 0.875rem;
}

/* ── Recruitment management — section nav & content panels ── */
.ihrm-section-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.375rem;
  background: var(--ihrm-surface-muted, #f1f5f9);
  border: 1px solid var(--ihrm-border, rgba(15, 23, 42, 0.08));
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  margin-bottom: 1.25rem;
}

.ihrm-section-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: calc(var(--ihrm-radius-lg, 0.75rem) - 4px);
  background: transparent;
  color: var(--ihrm-text-muted, #64748b);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ihrm-section-nav-item i {
  font-size: 0.875rem;
  opacity: 0.85;
}

.ihrm-section-nav-item:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ihrm-primary, #1e3a5f);
}

.ihrm-section-nav-item.is-active {
  background: var(--ihrm-surface-elevated, #fff);
  color: var(--ihrm-primary, #1e3a5f);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ihrm-section-nav-item.is-active i {
  color: var(--ihrm-accent, #2563eb);
  opacity: 1;
}

.ihrm-content-panel {
  background: var(--ihrm-surface-elevated, #fff);
  border: 1px solid var(--ihrm-border, rgba(15, 23, 42, 0.08));
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  box-shadow: var(--ihrm-shadow, 0 1px 3px rgba(15, 23, 42, 0.06));
  overflow: hidden;
}

.ihrm-content-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid var(--ihrm-border, rgba(15, 23, 42, 0.06));
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0) 100%);
}

.ihrm-content-panel-title {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
}

.ihrm-content-panel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.08));
  color: var(--ihrm-accent, #2563eb);
  flex-shrink: 0;
  font-size: 1rem;
}

.ihrm-content-panel-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ihrm-primary, #1e3a5f);
  margin: 0;
  line-height: 1.3;
}

.ihrm-content-panel-subtitle {
  font-size: 0.8125rem;
  color: var(--ihrm-text-muted, #64748b);
  margin: 0.2rem 0 0;
}

.ihrm-content-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ihrm-content-panel-body {
  padding: 1.25rem 1.5rem;
}

.ihrm-content-panel-body--flush {
  padding: 0;
}

.ihrm-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem 0.375rem 0.5rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: var(--ihrm-radius, 0.5rem);
  background: transparent;
  color: var(--ihrm-text-muted, #64748b);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ihrm-back-link:hover {
  background: var(--ihrm-surface-muted, #f1f5f9);
  color: var(--ihrm-primary, #1e3a5f);
}

.ihrm-back-link i {
  font-size: 0.75rem;
}

.ihrm-recruitment-breadcrumb .breadcrumb-item a {
  color: var(--ihrm-accent, #2563eb);
  text-decoration: none;
  font-weight: 500;
}

.ihrm-recruitment-breadcrumb .breadcrumb-item a:hover {
  text-decoration: underline;
}

.ihrm-recruitment-breadcrumb .breadcrumb-item.active {
  color: var(--ihrm-text-muted, #64748b);
}

.ihrm-empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
}

.ihrm-empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--ihrm-surface-muted, #f1f5f9);
  color: var(--ihrm-text-muted, #94a3b8);
}

.ihrm-empty-state-icon i {
  font-size: 1.75rem;
  margin: 0;
  display: block;
}

.ihrm-empty-state-text {
  color: var(--ihrm-text-muted, #64748b);
  font-size: 0.9375rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.ihrm-empty-state-action {
  margin-top: 1.25rem;
}

.ihrm-empty-state-action .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.ihrm-content-area {
  margin-top: 0.25rem;
}

.ihrm-status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35em 0.65em;
}

.ihrm-stat-card {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--ihrm-surface-muted, #f8fafc);
  border: 1px solid var(--ihrm-border, rgba(15, 23, 42, 0.06));
  border-radius: var(--ihrm-radius-lg, 0.75rem);
}

.ihrm-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ihrm-primary, #1e3a5f);
  line-height: 1.2;
}

.ihrm-stat-label {
  font-size: 0.8125rem;
  color: var(--ihrm-text-muted, #64748b);
  margin-top: 0.25rem;
}

@media (max-width: 575.98px) {
  .ihrm-section-nav {
    display: flex;
    width: 100%;
  }

  .ihrm-section-nav-item {
    flex: 1;
    justify-content: center;
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
  }

  .ihrm-section-nav-item span {
    display: none;
  }

  .ihrm-section-nav-item i {
    font-size: 1rem;
  }

  .ihrm-content-panel-header {
    padding: 1rem;
  }

  .ihrm-content-panel-body {
    padding: 1rem;
  }
}
