body { font-family: Arial, Helvetica, sans-serif; background: #F8F9FA; color: #2C3E50; }

/* Wireframe primitives */
.wire { border: 1.5px solid #D5D8DC; background: #FFFFFF; border-radius: 6px; }
.wire-alt { border: 1.5px dashed #D5D8DC; background: #FAFAFA; border-radius: 6px; }
.field {
  width: 100%; padding: 8px 10px; border: 1.5px solid #D5D8DC;
  border-radius: 4px; background: #FFFFFF; font-size: 14px;
}
.field:focus { outline: 2px solid #1B4F72; outline-offset: -1px; }
.label { font-size: 13px; color: #2C3E50; margin-bottom: 4px; display: block; font-weight: 500; }

.btn { padding: 8px 16px; border-radius: 4px; font-size: 14px; cursor: pointer; border: 1.5px solid transparent; display:inline-flex; align-items:center; gap:6px; }
.btn-primary { background: #1B4F72; color: #FFFFFF; border-color: #1B4F72; }
.btn-primary:hover { background: #154360; }
.btn-secondary { background: #FFFFFF; color: #1B4F72; border-color: #1B4F72; }
.btn-secondary:hover { background: #EBF5FB; }
.btn-danger { background: #C0392B; color: #FFFFFF; border-color: #C0392B; }
.btn-danger-outline { background: #FFFFFF; color: #C0392B; border-color: #C0392B; }
.btn-ghost { background: transparent; color: #5D6D7E; border-color: transparent; }
.btn-ghost:hover { color: #1B4F72; }
.btn-green { background: #27AE60; color: #FFFFFF; border-color: #27AE60; }

/* Image placeholder: gray box with a diagonal X */
.img-ph {
  position: relative; background: #E5E7EB; border: 1px solid #D5D8DC;
  display: flex; align-items: center; justify-content: center;
  color: #9CA3AF; font-size: 12px; overflow: hidden; border-radius: 4px;
}
.img-ph::before, .img-ph::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
}
.img-ph::before {
  background: linear-gradient(to top right,
    transparent calc(50% - 1px), #9CA3AF calc(50% - 1px),
    #9CA3AF calc(50% + 1px), transparent calc(50% + 1px));
}
.img-ph::after {
  background: linear-gradient(to top left,
    transparent calc(50% - 1px), #9CA3AF calc(50% - 1px),
    #9CA3AF calc(50% + 1px), transparent calc(50% + 1px));
}

/* Pages: show/hide */
.page { display: none; }
.page.active { display: block; }

/* Nav */
.navlink { padding: 8px 12px; font-size: 14px; color: #2C3E50; cursor: pointer; border-radius: 4px; }
.navlink:hover { background: #EBF5FB; color: #1B4F72; }
.navlink.active { color: #1B4F72; font-weight: 600; border-bottom: 2px solid #1B4F72; border-radius: 0; }

/* Tables */
table.wire-table { width: 100%; border-collapse: collapse; }
.wire-table th { background: #1B4F72; color: #FFFFFF; padding: 8px 10px; text-align: left; font-size: 13px; }
.wire-table td { padding: 8px 10px; border-bottom: 1px solid #E5E7EB; font-size: 14px; }
.wire-table tr:nth-child(even) td { background: #FAFAFA; }

/* Badge */
.badge { padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.badge-review { background: #FDEBD0; color: #9A6200; }
.badge-subm { background: #D6EAF8; color: #1B4F72; }
.badge-nom { background: #D4EFDF; color: #1E7B40; }
.badge-rej { background: #FADBD8; color: #922B21; }
.badge-conf { background: #D4EFDF; color: #1E7B40; }
.badge-pend { background: #FDEBD0; color: #9A6200; }

/* Star */
.star { color: #F4D03F; }
.star-empty { color: #D5D8DC; }

/* Stepper */
.step-circle {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; border: 1.5px solid #D5D8DC;
  background: #FFFFFF; color: #5D6D7E;
}
.step-circle.done { background: #27AE60; color: #FFFFFF; border-color: #27AE60; }
.step-circle.current { background: #1B4F72; color: #FFFFFF; border-color: #1B4F72; }
.step-line { flex: 1; height: 2px; background: #D5D8DC; }
.step-line.done { background: #27AE60; }

/* Error state */
.field-error { border-color: #C0392B !important; background: #FDEDEC; }
.error-msg { color: #C0392B; font-size: 12px; margin-top: 4px; }

/* Upload zone */
.upload-zone {
  border: 2px dashed #D5D8DC; border-radius: 6px; padding: 24px;
  text-align: center; background: #FAFAFA; cursor: pointer;
}
.upload-zone:hover { background: #F0F4F8; border-color: #1B4F72; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}

/* Toast */
#toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  background: #27AE60; color: #FFFFFF; padding: 10px 16px; border-radius: 6px;
  display: flex; align-items: center; gap: 10px; z-index: 100;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
#toast.hidden { display: none; }

/* Progress bar */
.pbar { background: #E5E7EB; height: 8px; border-radius: 4px; overflow: hidden; }
.pbar > div { background: #1B4F72; height: 100%; }

/* Navbar shell — extracted from inline navbar style attrs */
.navbar { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; background: #FFFFFF; position: sticky; top: 0; z-index: 30; }
