
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f4f6;
  color: #111827;
  line-height: 1.45;
}

.container {
  max-width: 1180px;
  margin: 28px auto;
  padding: 0 18px 40px;
}

.header {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

.header h1 {
  margin: 0 0 6px;
  font-size: 30px;
  color: #111827;
}

.header h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #4b5563;
  font-weight: 500;
}

.header p {
  color: #6b7280;
}

.card, .step, .stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  margin: 16px 0;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.045);
}

.card h3, .step h2, .step h3 {
  margin-top: 0;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.stat-card {
  margin: 0;
  text-align: center;
}

.stat-card h3 {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 8px;
}

.stat-card .value {
  font-size: 28px;
  font-weight: bold;
  color: #111827;
}

input, select, textarea {
  width: 100%;
  max-width: 100%;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  margin: 7px 0 12px;
  font-size: 15px;
  background: #ffffff;
}

textarea {
  resize: vertical;
}

label {
  display: block;
  margin: 8px 0;
  color: #374151;
}

label input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

button {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  background: #1a73e8;
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  filter: brightness(0.95);
}

.buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.table th, .table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.table th {
  background: #f9fafb;
  color: #374151;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.table tr:hover td {
  background: #f9fafb;
}

.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.low, .current {
  background: #e6f4ea;
  color: #137333;
}

.medium, .duesoon {
  background: #fef7e0;
  color: #b06000;
}

.high, .overdue {
  background: #fce8e6;
  color: #c5221f;
}

.nodate, .noDate {
  background: #eef2ff;
  color: #3730a3;
}

.progress {
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin: 15px 0 8px;
}

#progressBar {
  width: 0%;
  height: 100%;
  background: #1a73e8;
  transition: width .25s ease;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.dynamic-block {
  border-left: 4px solid #1a73e8;
}

.muted {
  color: #6b7280;
  font-size: 13px;
}

a {
  color: #1a73e8;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
}

body.modal-open {
  overflow: hidden;
}

.profile-search-hit {
  background: #fff3cd;
  outline: 2px solid #f59e0b;
  border-radius: 6px;
  padding: 2px;
}

@media (max-width: 720px) {
  .container {
    margin: 12px auto;
    padding: 0 10px 28px;
  }

  .header {
    padding: 18px;
  }

  .buttons {
    flex-direction: column;
  }

  .table {
    display: block;
    overflow-x: auto;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  button, .buttons, input, select, textarea {
    print-color-adjust: exact;
  }

  .header, .card, .step, .stat-card {
    box-shadow: none;
  }
}

.field-help { margin-top:-8px; color:#666; font-size:13px; }
.review-section { scroll-margin-top:90px; }
#adminSaveToast { pointer-events:none; }

/* V9.0 Alpha 6 Final — Upload Management */
.upload-requirements{background:#eef6ff;border:1px solid #bfdbfe;border-radius:12px;padding:16px 18px;margin:0 0 18px;color:#1e3a5f}.upload-requirements h4{margin:0 0 8px}.upload-requirements ul{margin:6px 0 0 20px;padding:0}.upload-grid{display:grid;gap:16px}.upload-field{border:1px solid #dbe3ec;border-radius:12px;padding:14px;background:#fff}.upload-field label{display:block;font-weight:700;margin-bottom:8px}.upload-help{font-size:12px;color:#64748b;margin-top:7px}.upload-file-status{margin-top:10px;border-radius:9px;padding:10px 12px;font-size:13px}.upload-status-ready{background:#f0fdf4;border:1px solid #bbf7d0}.upload-status-error{background:#fef2f2;border:1px solid #fecaca}.upload-file-main{display:flex;align-items:center;gap:10px}.upload-file-icon{font-size:22px}.upload-file-result{font-weight:700;margin-top:7px}.upload-compression{margin-top:6px;color:#475569}.upload-summary{margin-top:18px;border-top:1px solid #e2e8f0;padding-top:14px}.upload-summary-list>div,.upload-summary-total{display:flex;justify-content:space-between;gap:15px;padding:7px 0}.upload-summary-total{border-top:1px solid #e2e8f0;margin-top:5px;padding-top:10px}.upload-success{background:#f0fdf4;border:1px solid #86efac;border-radius:12px;padding:18px;margin:16px 0}.upload-progress{height:8px;background:#e2e8f0;border-radius:99px;overflow:hidden;margin:12px 0}.upload-progress>div{height:100%;background:#2563eb;width:0;transition:width .2s}.section-eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#64748b;font-weight:700}

/* V9.0 Beta 1 — Draft & Resume Workflow */
.draft-status-panel{margin-top:14px;padding:12px 14px;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc;display:grid;gap:5px;font-size:13px;text-align:left}.draft-status-panel strong{color:#0f172a}.secondary-button{background:#64748b!important}.draft-saved-toast{position:fixed;right:22px;bottom:22px;background:#166534;color:#fff;padding:12px 18px;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.2);z-index:30000;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}.draft-saved-toast.show{opacity:1;transform:translateY(0)}
