﻿.admin-section { padding: 32px 18px; }
.admin-card { width: min(1200px, 100%); margin: auto; }
.admin-nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.admin-nav span { margin-left: auto; }
.attachments-section { border-top: 1px solid var(--brand-border); padding-top: 24px; margin-top: 28px; }
.attachments-section legend { font-size: 1.4rem; font-weight: 700; }
.attachment-field { margin-top: 22px; }
.applicant-details { display: grid; grid-template-columns: 180px 1fr; gap: 12px; margin: 28px 0; }
.applicant-details dd { margin: 0; overflow-wrap: anywhere; }
.attachment-list { padding-left: 20px; margin: 20px 0 32px; }
.attachment-list li { margin: 10px 0; overflow-wrap: anywhere; }
.grading-row { padding: 20px 0; border-bottom: 1px solid var(--brand-border); margin-bottom: 20px; }
.score-input { max-width: 180px; }
.score-comment { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 400px; }
.document-summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 20px 0; padding: 14px 16px; border-radius: 12px; background: #f5f6f8; color: #535967; font-size: .85rem; }
.document-category { border: 1px solid #e2e5eb; border-radius: 14px; padding: 16px; margin: 10px 0; background: #fff; transition: border-color .15s, background .15s; }
.document-category-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.document-category-heading h2 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.document-required { border-radius: 999px; background: #f3f4f7; padding: 5px 10px; font-size: .72rem; color: #626775; white-space: nowrap; }
.document-hint { color: var(--brand-muted); font-size: .8rem; line-height: 1.5; margin: 5px 0 0; }
.form-control.applicant-email-readonly { background: #eef0f4; color: #687082; border-color: #d3d8e1; cursor: not-allowed; }
.email-readonly-note { display: block; margin-top: 6px; color: #687082; font-size: .8rem; }
.document-dropzone { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 24px 14px; border: 1.5px dashed #c5cbd6; border-radius: 12px; background: #fafbfc; text-align: center; color: #4e5564; }
.document-dropzone[hidden] { display: none; }
.document-dropzone.is-dragging { border-color: var(--brand-red); background: #fff2f2; }
.document-drop-icon { width: 32px; height: 32px; border-radius: 8px; background: #eef0f4; font-size: 1.4rem; color: #535b6d; }
.document-dropzone strong { font-size: .95rem; }
.document-dropzone small { margin-top: 5px; color: #737987; font-size: .78rem; }
.document-choose { border: 1px solid #e5bcc0; border-radius: 8px; background: #fff; color: var(--brand-red-dark); padding: 7px 11px; font-size: .8rem; font-weight: 650; min-height: 38px; }
.document-choose:focus-visible, .document-actions button:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 3px; }
.document-native-label { display: block; margin-bottom: 8px; }
.uploader-enhanced .document-input, .uploader-enhanced .document-native-label, .uploader-enhanced .document-remove-fallback { display: none; }
.document-list-scroll { margin-top: 14px; overflow-x: auto; }
.document-list { width: 100%; table-layout: fixed; font-size: .8rem; }
.document-list tr[hidden] { display: none; }
.document-list th { color: #757b88; font-size: .72rem; font-weight: 600; padding: 9px 6px; border-bottom: 1px solid #e4e7ed; text-align: left; }
.document-list th:first-child { width: 43%; }
.document-list th:nth-child(2) { width: 12%; }
.document-list th:nth-child(3) { width: 23%; }
.document-list th:last-child { width: 22%; }
.document-list td { padding: 12px 6px; border-bottom: 1px solid #edf0f4; vertical-align: middle; }
.document-name { overflow: hidden; }
.document-name a, .document-name > span:last-child { overflow-wrap: anywhere; color: #293044; text-decoration: none; }
.document-name a:hover { text-decoration: underline; }
.document-file-icon { display: inline-block; padding: 5px 4px; min-width: 32px; border-radius: 6px; background: #f0f2f6; font-size: .6rem; font-weight: 700; color: #626b7b; margin-right: 7px; vertical-align: middle; }
.document-size { color: #717786; font-variant-numeric: tabular-nums; }
.document-status { display: inline-block; font-size: .7rem; padding: 4px 7px; border-radius: 6px; background: #edf5f0; color: #2c7150; }
.document-status-new { color: #275d9b; background: #edf3fc; }
.document-actions { white-space: nowrap; }
.document-actions button { border: 1px solid #dfe3ea; background: #fff; padding: 5px 6px; border-radius: 6px; font-size: .72rem; color: #505866; }
.document-actions button + button { margin-left: 3px; }
.document-actions button:hover { background: #f4f5f8; }
.document-actions [data-action="remove"] { color: #a62b30; }
.document-list .is-removed .document-name a { text-decoration: line-through; opacity: .55; }
.document-list .is-removed .document-status { color: #956628; background: #fff5e7; }
.document-list .is-new { background: #fafcff; }
.document-empty, .document-category-count { font-size: .8rem; color: #7b8290; margin: 12px 0 0; }
.document-upload-error { color: #9d252b; background: #fff0f1; border-radius: 8px; padding: 11px 12px; font-size: .85rem; margin: 12px 0; }
.document-upload-error[hidden] { display: none; }
.document-formats { color: #6e7583; font-size: .8rem; margin: 16px 0; }
.document-formats p { line-height: 1.6; margin-top: 8px; }
.document-save-note { color: #687082; font-size: .85rem; margin-top: 18px; }
@media (max-width: 767.98px) {
  .admin-section { padding: 20px 14px; }
  .applicant-details { grid-template-columns: 1fr; gap: 4px; }
  .applicant-details dd { margin-bottom: 12px; }
  .admin-nav span { margin-left: 0; }
  .document-category { padding: 16px 12px; }
  .document-category-heading { align-items: flex-start; }
  .document-list thead { display: none; }
  .document-list, .document-list tbody { display: block; }
  .document-list tr { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 12px 0; border-bottom: 1px solid #e4e7ed; }
  .document-list td { display: block; border: 0; padding: 2px 0; }
  .document-list .document-name { grid-column: 1 / -1; }
  .document-actions { grid-column: 1 / -1; margin-top: 4px; }
}

/* Compact documentation cards, scoped to the existing uploader. */
.document-intro { color: var(--brand-muted); font-size: .85rem; margin: 8px 0 14px; }
.document-progress { display: flex; align-items: center; gap: 16px; padding: 12px 14px; background: #f6f7f9; border-radius: 10px; color: #535b69; font-size: .8rem; }
.document-progress progress { width: 100px; height: 6px; margin-left: auto; accent-color: var(--brand-red); border: none; border-radius: 6px; overflow: hidden; }
.document-progress progress::-webkit-progress-bar { background: #e2e5eb; border-radius: 6px; }
.document-progress progress::-webkit-progress-value { background: var(--brand-red); border-radius: 6px; }
.document-progress progress::-moz-progress-bar { background: var(--brand-red); border-radius: 6px; }
.document-card-heading { display: flex; align-items: flex-start; gap: 12px; }
.document-card-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 40px; border-radius: 9px; background: #fff1f2; color: var(--brand-red-dark); }
.document-card-icon svg { width: 23px; height: 23px; }
.document-card-title { min-width: 0; flex: 1; }
.document-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.document-title-row h2 { font-size: .95rem; font-weight: 700; margin: 0; }
.document-required { padding: 3px 8px; font-size: .65rem; }
.document-card-toolbar { display: flex; align-items: center; gap: 10px; margin: 10px 0 0 48px; }
.document-card-toolbar .document-choose { margin-left: auto; flex-shrink: 0; }
.document-drag-hint { display: none; align-items: center; gap: 5px; color: #7b8290; font-size: .72rem; line-height: 1.4; }
.uploader-enhanced .document-drag-hint { display: inline-flex; }
.document-drag-hint svg { width: 16px; height: 16px; flex-shrink: 0; }
.document-drop-feedback { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; flex-direction: column; gap: 8px; border-radius: inherit; background: rgba(255, 245, 245, .96); color: var(--brand-red-dark); font-size: .9rem; font-weight: 650; pointer-events: none; z-index: 1; }
.document-drop-feedback svg { width: 30px; height: 30px; }
.document-category { position: relative; }
.document-category.is-dragging .document-drop-feedback { display: flex; }
.document-choose:hover { background: #fff4f4; }
.document-uploaded { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; padding: 4px 7px; color: #246649; background: #edf7f0; font-size: .72rem; font-weight: 650; }
.document-uploaded[hidden], .document-choose[hidden], .document-list-scroll[hidden] { display: none; }
.document-category.is-dragging { border-color: var(--brand-red); border-style: dashed; background: #fff5f5; }
.document-category.has-error { border-color: #b93239; background: #fffafb; }
.document-list-scroll { margin-top: 10px; }
.document-list th { padding-top: 7px; padding-bottom: 7px; }
.document-list td { padding-top: 9px; padding-bottom: 9px; }
.document-actions button { min-height: 32px; }
.document-empty { display: none; }
.document-formats { margin: 12px 0; font-size: .75rem; }
.document-formats summary { cursor: pointer; }
.document-formats p { overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
  .document-progress { align-items: flex-start; flex-direction: column; gap: 8px; }
  .document-progress progress { width: 100%; margin-left: 0; }
  .document-card-toolbar { margin-left: 0; }
  .document-list td { padding: 2px 0; }
  .document-actions button { min-height: 38px; padding-left: 10px; padding-right: 10px; }
}
.public-brand-row { align-items: center; justify-content: space-between; gap: 24px; }
.public-brand-row .brand-logo { width: min(188px, 55%); }
.coorganizer-logo { width: 140px; max-width: 35%; height: auto; object-fit: contain; margin-left: auto; }
@media (max-width: 575.98px) {
  .public-brand-row { gap: 16px; }
  .coorganizer-logo { width: 96px; }
}
