.recruitment-page {
  max-width: 1500px;
  margin-inline: auto;
}
.recruitment-eyebrow {
  color: var(--atwar-muted, #64748b);
  font-size: 0.85rem;
  font-weight: 700;
}
.rec-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  border-bottom: 1px solid var(--atwar-border, #e2e8f0);
  padding-block: 8px 16px;
  margin-bottom: 24px;
}
.rec-tabs button {
  white-space: nowrap;
  border: 0;
  background: transparent;
  padding: 12px 18px;
  border-radius: 10px;
  font: inherit;
  color: var(--atwar-muted, #64748b);
  cursor: pointer;
}
.rec-tabs button[aria-current="page"] {
  background: var(--atwar-accent, #1664d4);
  color: white;
}
.rec-btn {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  background: var(--atwar-accent, #1664d4);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.rec-btn.secondary {
  background: var(--atwar-surface-soft, #f1f5f9);
  color: var(--atwar-text, #243652);
  border: 1px solid var(--atwar-border, #dce5ee);
}
.rec-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.rec-card {
  padding: 24px;
  background: var(--atwar-surface, #fff);
  border: 1px solid var(--atwar-border, #dce5ee);
  border-radius: 16px;
  margin-bottom: 20px;
}
.rec-card h2,
.rec-card h3 {
  margin-top: 0;
}
.rec-muted {
  color: var(--atwar-muted, #64748b);
  line-height: 1.8;
}
.rec-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.rec-metric {
  padding: 22px;
  border: 1px solid var(--atwar-border, #dce5ee);
  background: var(--atwar-surface, #fff);
  border-radius: 14px;
}
.rec-metric strong {
  display: block;
  font-size: 2rem;
  margin-top: 12px;
  color: var(--atwar-text, #243652);
}
.rec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.rec-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--atwar-border, #e2e8f0);
}
.rec-row:last-child {
  border-bottom: 0;
}
.rec-tag {
  display: inline-block;
  background: #edf5f4;
  color: #17655f;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}
.rec-tag.warning {
  background: #fff4df;
  color: #85550a;
}
.rec-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-block: 16px;
}
.rec-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.rec-filter input {
  flex: 1;
  min-width: 200px;
}
.recruitment-page input,
.recruitment-page select,
.recruitment-page textarea {
  font: inherit;
  width: 100%;
  min-height: 44px;
  padding: 11px;
  border: 1px solid var(--atwar-border, #cbd5e1);
  border-radius: 9px;
  background: var(--atwar-surface, #fff);
  color: var(--atwar-text, #243652);
}
.recruitment-page textarea {
  min-height: 95px;
  resize: vertical;
}
.recruitment-page label {
  display: grid;
  gap: 8px;
  font-weight: 500;
}
.recruitment-page input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
}
.rec-form {
  display: grid;
  gap: 18px;
}
.rec-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.rec-form .wide {
  grid-column: 1/-1;
}
.rec-table {
  overflow: auto;
}
.rec-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  white-space: nowrap;
}
.rec-table th {
  background: var(--atwar-surface-soft, #f8fafc);
  color: var(--atwar-muted, #64748b);
  font-weight: 500;
}
.rec-table td,
.rec-table th {
  padding: 14px;
  border-bottom: 1px solid var(--atwar-border, #e2e8f0);
}
.rec-empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--atwar-muted, #64748b);
  line-height: 1.8;
}
.rec-note {
  padding: 14px 18px;
  background: #f3f7fa;
  border-radius: 10px;
  line-height: 1.9;
  white-space: pre-wrap;
}
.rec-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-block: 18px;
}
.rec-detail dt {
  color: var(--atwar-muted, #64748b);
  font-size: 0.85rem;
}
.rec-detail dd {
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.rec-history {
  border-inline-start: 2px solid #dce5ee;
  padding-inline-start: 18px;
}
.rec-history p {
  line-height: 1.8;
  margin: 0 0 18px;
}
.rec-history small {
  color: var(--atwar-muted, #64748b);
}
#recDialog {
  width: min(1000px, 94vw);
  max-height: 92dvh;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  padding: 26px;
  background: var(--atwar-surface, #fff);
  color: var(--atwar-text, #243652);
}
#recDialog::backdrop {
  background: #10213380;
}
#recDialog > header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  border-bottom: 1px solid var(--atwar-border, #dce5ee);
  margin-bottom: 20px;
  padding-bottom: 16px;
}
#pageStatus[data-error="true"],
#dialogStatus[data-error="true"] {
  color: #b42318;
}
.rec-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.rec-public {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}
.rec-public h1 {
  font-size: 2rem;
}
.rec-public-header {
  border-bottom: 1px solid #dce5ee;
  margin-bottom: 28px;
  padding-bottom: 24px;
}
.rec-public form {
  margin-top: 20px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #48a6a0;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .rec-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .rec-grid,
  .rec-form-grid {
    grid-template-columns: 1fr;
  }
  .rec-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rec-card {
    padding: 17px;
  }
  .rec-row {
    align-items: start;
    flex-wrap: wrap;
  }
  .rec-tabs button {
    padding: 10px 12px;
  }
  #recDialog {
    padding: 18px;
  }
  .rec-btn {
    flex-shrink: 0;
  }
  .rec-public {
    margin: 10px auto;
  }
  .rec-table td,
  .rec-table th {
    padding: 12px;
  }
}
@media print {
  .atwar-sidebar,
  atwar-header,
  .rec-tabs,
  #pageStatus,
  .rec-actions,
  .rec-btn {
    display: none !important;
  }
  .atwar-main {
    margin: 0 !important;
  }
  #recDialog {
    position: static;
    max-height: none;
    width: 100%;
    overflow: visible;
    box-shadow: none;
  }
  .rec-card {
    break-inside: avoid;
  }
  .rec-dialog-print > :not(dialog) {
    display: none;
  }
}
@media print {
  body:has(#recDialog[open]) .atwar-content > :not(#recDialog) {
    display: none !important;
  }
  body:has(#recDialog[open]) #recDialog {
    display: block;
    position: static;
    margin: 0;
    padding: 0;
    border: 0;
  }
  body:has(#recDialog[open]) #recDialog > header {
    display: none !important;
  }
  #recDialog::backdrop {
    background: transparent;
  }
}
