/* Institution portal — signup, pending/rejected states, and dashboard
   extras. Builds on tokens.css, auth.css, order.css, and refer.css — this
   file only adds what those don't already cover. */

.inst-portal-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  margin-right: 4px;
}

.inst-panel {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 32px;
}
.inst-panel h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 4px;
}

.inst-course-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.inst-course-row:last-child { border-bottom: none; }
.inst-course-title { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.inst-course-pct { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.inst-course-link {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}
.inst-course-link input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--line-strong);
  font-size: 12.5px;
  font-family: var(--font-mono);
  background: var(--paper);
  color: var(--ink);
}
.inst-copy-btn, .inst-gen-btn { white-space: nowrap; }

.status-pill-mini {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: #FDEDEA;
  color: #C4392C;
  margin-left: 6px;
  vertical-align: middle;
}
.status-pill-mini.paid { background: #EAFBF2; color: var(--green); }

@media (max-width: 640px) {
  .inst-course-row { flex-direction: column; align-items: flex-start; }
  .inst-course-link { max-width: 100%; width: 100%; }
}


/* Head of Department panel */
.inst-hod-panel{border-color:#cfdcff;background:linear-gradient(180deg,#f6f9ff,#fff 70%)}
.inst-hod-tag{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  color:var(--blue-deep,#1B3B99);background:#e4ecff;border-radius:999px;padding:4px 12px;margin-bottom:10px}
.inst-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}
.inst-hod-panel label{display:block;font-size:13px;font-weight:600;color:var(--ink)}
.inst-hod-panel input,.inst-hod-panel textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;
  padding:11px 12px;border:1.5px solid var(--line-strong,#c9d1de);border-radius:10px;font:inherit;font-weight:400;background:#fff}
.inst-hod-panel textarea{resize:vertical;min-height:110px;line-height:1.6}
.inst-form-foot{display:flex;align-items:center;justify-content:space-between;margin-top:12px}
@media (max-width:640px){.inst-form-grid{grid-template-columns:1fr}}


/* ---- mobile overflow fix + photo ---- */
.inst-course-info { min-width: 0; }
.inst-course-link { flex-wrap: wrap; min-width: 0; max-width: 100%; }
.inst-course-link input { flex: 1 1 100%; min-width: 0; width: 100%; box-sizing: border-box; }
.inst-course-link .btn { flex: 1 1 auto; }
@media (min-width: 900px) { .inst-course-link input { flex: 1 1 200px; width: auto; } .inst-course-link .btn { flex: 0 0 auto; } }
.inst-panel { box-sizing: border-box; max-width: 100%; }
.inst-photo-row { display: flex; align-items: center; gap: 16px; margin: 14px 0 6px; }
.inst-photo { width: 76px; height: 76px; border-radius: 50%; background: var(--blue) center/cover no-repeat; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 28px; flex-shrink: 0; }
.inst-photo-btn { cursor: pointer; margin-right: 8px; }
