body{background:#f4f7fb;color:#253247}.exam-shell{max-width:980px;margin:35px auto}.exam-card{border:0;border-radius:18px;overflow:hidden;box-shadow:0 12px 35px rgba(28,55,90,.10)}.exam-head{background:linear-gradient(135deg,#183b65,#245d8f);color:#fff;padding:26px 30px}.exam-head h2{font-weight:700;margin:0}.exam-head p{opacity:.85;margin:7px 0 0}.exam-body{background:#fff;padding:30px}.section-title{font-size:15px;font-weight:700;color:#183b65;margin:24px 0 12px}.readonly-field{background:#f7f9fc!important}.subject-list{max-height:280px;overflow:auto;border:1px solid #e4eaf1;border-radius:10px;padding:8px}.subject-item{display:flex;align-items:center;justify-content:space-between;padding:11px 12px;border-bottom:1px solid #edf1f5}.subject-item:last-child{border-bottom:0}.subject-item label{margin:0;flex:1}.fee-box{background:#f7fafc;border:1px solid #e3ebf3;border-radius:12px;padding:15px}.total-box{font-size:22px;font-weight:700}.btn-generate{padding:12px 28px;font-weight:700;border-radius:10px}.status-note{font-size:13px}.required-star{color:#dc3545}.invalid-msg{display:none}.exam-footer{text-align:center;color:#7b8794;font-size:12px;margin-top:14px}


/* Easy multi-subject picker: students click subjects; no Ctrl/Cmd required. */
.subject-picker{position:relative}
.subject-picker-control{min-height:44px;background:#fff;border:1px solid #ced4da;border-radius:8px;padding:10px 38px 10px 13px;cursor:pointer;position:relative;line-height:22px}
.subject-picker-control:focus{outline:0;border-color:#80bdff;box-shadow:0 0 0 .2rem rgba(0,123,255,.15)}
.subject-picker-arrow{position:absolute;right:13px;top:10px;color:#687787}
.subject-picker-placeholder{color:#7b8794}.subject-picker-value{color:#253247;font-weight:600}
.subject-picker-menu{position:absolute;z-index:1000;left:0;right:0;top:48px;background:#fff;border:1px solid #d9e2ec;border-radius:8px;box-shadow:0 8px 22px rgba(28,55,90,.14);max-height:260px;overflow-y:auto;padding:5px}
.subject-option{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:6px;cursor:pointer}
.subject-option:hover{background:#f3f7fb}.subject-option.selected{background:#eaf3ff}
.subject-option-check{width:20px;height:20px;border:1px solid #b9c6d4;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;color:transparent;flex:0 0 20px}
.subject-option.selected .subject-option-check{background:#245d8f;border-color:#245d8f;color:#fff}
.subject-option-text{flex:1}.subject-option-fee{font-size:12px;color:#6b7785;white-space:nowrap}
.selected-subjects{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.selected-subject-tag{display:inline-flex;align-items:center;gap:5px;background:#eaf3ff;border:1px solid #c8ddf3;border-radius:15px;padding:4px 8px;font-size:12px;color:#183b65}
.selected-subject-remove{border:0;background:transparent;padding:0;line-height:1;font-size:17px;color:#64748b;cursor:pointer}
.subject-picker-empty,.subject-picker-loading{padding:12px;color:#7b8794}

/* V22 challan generation states */
.btn-generate.is-generating { cursor: wait; opacity: .85; }
.btn-generate.is-success { cursor: default; }


/* V27 mobile-friendly course table and application form */
.course-list { margin-bottom: 0; }
.course-list th, .course-list td { vertical-align: middle !important; }
.course-list .select-col { width: 70px; text-align: center; }
.course-list .obtained-col { width: 120px; text-align: center; }
.course-list .grade-col { width: 90px; text-align: center; }
.course-checkbox { width: 20px; height: 20px; cursor: pointer; }
.term-badge { display:inline-block; padding:7px 12px; margin:-2px 0 12px; border-radius:8px; background:#f1f6fb; border:1px solid #dbe6f0; color:#183b65; font-size:13px; }

@media (max-width: 767.98px) {
  .exam-shell { width:100%; max-width:none; margin:0; padding:0; }
  .exam-card { min-height:100vh; border-radius:0; box-shadow:none; }
  .exam-head { padding:20px 16px; }
  .exam-head h2 { font-size:22px; line-height:1.25; }
  .exam-head p { font-size:14px; }
  .exam-body { padding:18px 14px 28px; }
  .section-title { margin-top:18px; font-size:15px; }
  .form-row { display:block; margin-left:0; margin-right:0; }
  .form-row > .form-group { padding-left:0; padding-right:0; width:100%; }
  .form-control { min-height:44px; font-size:16px; }
  .btn-generate { width:100%; min-height:46px; font-size:15px; }
  .table-responsive { border:0; overflow-x:visible; }
  .course-list { font-size:13px; }
  .course-list th, .course-list td { padding:9px 6px !important; }
  .course-list .select-col { width:52px; }
  .course-list .obtained-col { width:82px; }
  .course-list .grade-col { width:64px; }
  .course-list .course-checkbox { width:22px; height:22px; }
  .course-list td:nth-child(2) { word-break:break-word; }
  .fee-box { padding:12px; }
  .total-box { font-size:19px; }
  .term-badge { max-width:100%; font-size:12px; }
  .alert { font-size:13px; }
}

@media (max-width: 420px) {
  .exam-body { padding-left:11px; padding-right:11px; }
  .course-list { font-size:12px; }
  .course-list th, .course-list td { padding:8px 4px !important; }
  .course-list .select-col { width:45px; }
  .course-list .obtained-col { width:70px; }
  .course-list .grade-col { width:55px; }
}


/* V30 - Keep student labels and values on the same line */
.student-info-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  margin-bottom: 12px;
}
.student-info-item {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: #f8f9fa;
}
.student-info-label {
  font-weight: 600;
  white-space: nowrap;
  margin-right: 8px;
}
.student-info-value {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  .student-info-inline {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


/* V37 - Existing application / submission status */
.application-status-card{border:1px solid #d8e3ee;border-radius:14px;background:#f8fbfe;padding:20px;margin-top:14px}
.application-status-title{font-size:18px;font-weight:700;color:#183b65;margin-bottom:8px}
.application-status-message{color:#495766;line-height:1.6;margin-bottom:14px}
.application-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.application-status-grid>div{background:#fff;border:1px solid #e3eaf1;border-radius:8px;padding:10px 12px;min-width:0}
.application-status-grid span{display:block;color:#6b7785;font-size:12px;margin-bottom:3px}
.application-status-grid strong{display:block;color:#183b65;overflow-wrap:anywhere}
.selected-course-summary{background:#fff;border:1px solid #e3eaf1;border-radius:8px;padding:10px 12px;margin-top:12px;line-height:1.6}
@media (max-width: 767px){.application-status-card{padding:15px}.application-status-grid{grid-template-columns:1fr}.application-status-title{font-size:16px}}

/* V43 - Registration-level verification and multiple-roll display */
.roll-badge{display:inline-block;background:#eef5fb;border:1px solid #cdddea;color:#183b65;border-radius:12px;padding:2px 8px;margin:0 4px 3px 0;font-size:12px;font-weight:700;white-space:nowrap}.student-rolls-item{align-items:flex-start}.course-roll-label{margin-bottom:4px}.course-roll-label .roll-badge{font-size:11px;padding:1px 7px}@media(max-width:767px){.roll-badge{font-size:11px}.course-roll-label{margin-bottom:3px}}
