/* รอบ 82: มหาวิทยาลัย เฟส 2 — กติกาการลงทะเบียน (โต๊ะทะเบียน/งานรอทำ/ยกรุ่น/อาจารย์ที่ปรึกษา/การระงับ/เงื่อนไขรายวิชา)
   prefix uni- · ใช้ตัวแปรสีของ app.css (รองรับโหมดมืด) · มือถือ ≤760px ไม่เลื่อนแนวนอน */

/* ---------- ป้ายสถานะลงทะเบียน / แผน ---------- */
.uni-badge.info { background: var(--brand-soft); color: var(--ink); }
.uni-badge.rs-registered, .uni-badge.pl-approved { background: var(--ok-soft); color: var(--ok); }
.uni-badge.rs-pending, .uni-badge.rs-waitlisted, .uni-badge.pl-submitted { background: var(--warn-soft); color: var(--ink); }
.uni-badge.rs-dropped, .uni-badge.rs-cancelled, .uni-badge.pl-draft { background: var(--chip); color: var(--muted); }
.uni-badge.rs-withdrawn, .uni-badge.pl-returned { background: var(--danger-soft); color: var(--danger); }
.uni-wl-n { color: var(--muted); }

/* ---------- โต๊ะทะเบียน ---------- */
.uni-holdline { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0 0; }
.uni-low { color: var(--danger); font-weight: 600; }
.uni-dropbox { display: flex; flex-direction: column; gap: 6px; }
.uni-dropbox p { margin: 0; }
.uni-ovr-inline { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; flex: 1 1 100%; }
.uni-ovr-inline input { flex: 1 1 220px; min-width: 0; }
.uni-grant { margin-top: 6px; }
.uni-grant .wide { grid-column: 1 / -1; }

/* ---------- ลงทะเบียนยกรุ่น ---------- */
.uni-blk-pick { align-items: end; }
.uni-blk-sugg { background: var(--brand-tint); }
.uni-blk-items { display: flex; gap: 4px; flex-wrap: wrap; }
.uni-blk-items .uni-badge { white-space: normal; }

/* ---------- เงื่อนไขรายวิชา ---------- */
.uni-pre-row { display: grid; grid-template-columns: 90px 170px minmax(0, 1fr) 120px auto; gap: 8px; align-items: end; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.uni-pre-row .field { margin: 0; }
.uni-pre-eq { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.uni-x { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 4px; font: inherit; line-height: 1; }

/* ---------- อาจารย์ที่ปรึกษา ---------- */
.uni-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.uni-notes li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--surface); }
.uni-notes p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- มือถือ (จุดเดียวกับทุกไฟล์: 760px) ---------- */
@media (max-width: 760px) {
  .uni-pre-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .uni-pre-row .uni-pre-course { grid-column: 1 / -1; }
  .uni-ovr-inline { display: flex; }
  .uni-ovr-inline input { flex-basis: 100%; }
}
