/* NEX Evaluation UI foundation. Keep interactive states high-contrast for accessibility. */
* { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: #f4f7fb; color: #172033; font: 15px system-ui, "Segoe UI", sans-serif; }
nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 14px 5%; color: #fff; background: #123a63; box-shadow: 0 2px 10px #081d342e; }
nav a { margin-left: 18px; color: #fff; text-decoration: none; border-radius: 4px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-left: 0; font-weight: 750; letter-spacing: .01em; }
.brand img { width: 86px; height: 32px; object-fit: contain; background: #fff; border-radius: 4px; padding: 2px 5px; }
.brand span { white-space: nowrap; }
nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
nav a:focus-visible, .btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #ffd166; outline-offset: 3px; }
main { flex: 1; width: 100%; max-width: 1120px; margin: 28px auto; padding: 0 18px; }
.card { padding: 20px; margin: 14px 0; background: #fff; border: 1px solid #dfe6ef; border-radius: 12px; box-shadow: 0 3px 12px #1720330b; }
h1, h2, h3 { margin-top: 0; color: #123a63; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.metric { color: #087f5b; font-size: 28px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px; text-align: left; vertical-align: top; border-bottom: 1px solid #e6ebf1; }
th { background: #edf3f9; }
.badge { padding: 4px 9px; color: #175d9c; white-space: nowrap; background: #e8f3ff; border-radius: 14px; }
input, select, textarea { width: 100%; padding: 9px; color: #172033; background: #fff; border: 1px solid #8da0b5; border-radius: 7px; }
input:hover, select:hover, textarea:hover { border-color: #175d9c; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: #123a63; }
textarea { min-height: 72px; }
.btn, button { display: inline-block; padding: 9px 15px; color: #fff; font-weight: 650; text-decoration: none; cursor: pointer; background: #087f5b; border: 0; border-radius: 7px; }
.btn:hover, button:hover { background: #056344; }
.secondary { background: #435466; }
.secondary:hover { background: #2f3e4d; }
.danger { background: #b42318; }
.danger:hover { background: #8f1c13; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.alert { padding: 12px; margin: 12px 0; background: #fff3cd; border-radius: 8px; }
.group td { color: #123a63; font-weight: 700; background: #eaf1f8; }
.login { max-width: 420px; margin: 8vh auto; }
.muted { color: #526273; font-size: 13px; }
.guidance { padding: 6px 10px; margin-top: 8px; background: #f5f9fd; border-left: 3px solid #75a7d5; border-radius: 4px; }
.guidance summary { color: #175d9c; font-weight: 600; cursor: pointer; }
.guidance summary:hover { text-decoration: underline; }
.guidance ol { padding-left: 24px; margin: 9px 0 3px; }
.guidance li { margin: 5px 0; }
.score-live { position: sticky; top: 76px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-left: 5px solid #087f5b; }
.score-number { color: #087f5b; font-size: 32px; font-weight: 750; }
.grade-live { color: #123a63; font-size: 25px; font-weight: 750; }
.score-note { color: #526273; font-size: 13px; }
.score-live.incomplete { border-left-color: #d38b00; }
.score-live.incomplete .score-number { color: #9b6900; }
.nav-count { display: inline-block; min-width: 20px; padding: 1px 6px; color: #fff; font-size: 12px; text-align: center; background: #dc3545; border-radius: 12px; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-left: 4px solid #2878b5; }
.notice.overdue { background: #fff7f6; border-left-color: #b42318; }
.notice-title { color: #123a63; font-weight: 700; }
.empty { padding: 28px; color: #526273; text-align: center; }
.password-reminder { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 15px; margin-bottom: 18px; background: #fff3cd; border: 1px solid #f2d675; border-radius: 10px; }
.password-reminder .btn { white-space: nowrap; }
.employee-picker { height: min(58vh, 620px); min-height: 460px; margin: 10px 0; overflow: auto; border: 1px solid #c8d3df; border-radius: 8px; }
.employee-row { display: grid; grid-template-columns: 34px 1fr 1fr 1fr; gap: 8px; align-items: center; padding: 9px 12px; border-bottom: 1px solid #e6ebf1; }
.employee-row:hover { background: #f3f8fc; }
.employee-row input { width: auto; }
.org-picker { margin: 6px 0 6px 16px; border-left: 2px solid #d9e2ec; }
.org-picker > summary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer; background: #f7fafc; border: 1px solid #dfe6ef; border-radius: 8px; }
.org-picker > summary input { width: auto; }
.org-node-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 12px 0; }
.org-node-actions .btn, .org-node-actions button { padding: 6px 10px; font-size: 13px; }
.org-node-actions form { margin: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-heading h2 { margin-bottom: 0; }
.table-search { width: min(360px, 100%); margin: 0; }
.table-search label { display: block; margin-bottom: 5px; color: #405166; font-size: 13px; font-weight: 650; }
.picker-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.picker-tools p { flex: 1; min-width: 220px; margin: 0; }
.picker-count { color: #087f5b; font-weight: 700; }
footer { display: flex; justify-content: space-between; gap: 18px; width: 100%; max-width: 1120px; margin: 28px auto 0; padding: 18px; color: #526273; font-size: 12px; border-top: 1px solid #dfe6ef; }
footer small { color: #7b8794; font-size: 10px; white-space: nowrap; }
@media (max-width: 700px) {
  nav { flex-direction: column; align-items: flex-start; gap: 10px; }
  nav a { margin: 0 12px 0 0; }
  .brand { margin-right: 0; }
  .brand span { font-size: 13px; white-space: normal; }
  .brand img { width: 74px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .table-search { width: 100%; }
  footer { flex-direction: column; gap: 5px; }
  table { font-size: 13px; }
  th, td { padding: 7px; }
  .hide-mobile { display: none; }
  .score-live { position: static; flex-wrap: wrap; gap: 8px; }
  .score-number, .grade-live { font-size: 23px; }
  .password-reminder { flex-direction: column; align-items: flex-start; }
  .employee-row { grid-template-columns: 28px 1fr; }
  .employee-row span:nth-child(n+3) { display: none; }
  .employee-picker { height: 52vh; min-height: 360px; }
}
