/* V4.5.3 · Học phí theo buổi / giờ */
@media (max-width: 900px) {
  #studentEditorPanel .student-fee-form {
    grid-template-columns: 1fr 1fr !important;
  }

  #studentEditorPanel .student-fee-form .form-group:first-of-type {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  #studentEditorPanel .student-fee-form {
    grid-template-columns: 1fr !important;
  }

  #studentEditorPanel .student-fee-form .form-group {
    grid-column: auto !important;
  }
}

/* Class pickers must stay visible on mobile; generic .sidebar-box is hidden there. */
.class-picker-card {
  width: 150px;
  min-height: 92px;
  border: 1px solid #bfdbfe;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #eff6ff);
  padding: 14px 10px;
  box-shadow: 0 7px 18px rgba(37, 99, 235, .08);
  cursor: pointer;
  color: #1e40af;
}
.class-picker-card strong { display: block; font-size: 20px; overflow-wrap: anywhere; }
.class-picker-card span { display: block; margin-top: 7px; font-size: 11px; color: #64748b; font-weight: 700; }
.class-picker-empty { width: 100%; padding: 24px; text-align: center; color: #64748b; }
@media (max-width: 560px) {
  .class-picker-card { width: calc(50% - 7px); min-height: 82px; }
}
.journal-step-title { text-align: center; color: #64748b; font-size: 13px; font-weight: 900; margin: 8px 0 16px; }
.journal-class-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.journal-workspace-actions { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.journal-sync-warning { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #fdba74; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: 11px; font-weight: 800; line-height: 1.45; }
.receipt-mode-box { margin-bottom: 10px; padding: 10px; border: 1px solid #fed7aa; border-radius: 12px; background: #fffaf5; }
.receipt-mode-title { margin-bottom: 7px; text-align: center; color: #9a3412; font-size: 10px; font-weight: 950; }
.receipt-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 9px; }
.receipt-mode-tabs .btn { justify-content: center; }
.receipt-session-select { display: grid; grid-template-columns: 1fr 150px; align-items: center; gap: 8px; color: #475569; font-size: 11px; font-weight: 900; }
.receipt-session-select select, .receipt-session-select input { width: 100%; padding: 8px; border: 1px solid #fdba74; border-radius: 8px; background: white; font: inherit; }
#receiptSessionHint { display: block; margin-top: 7px; color: #64748b; font-size: 10px; line-height: 1.4; }
@media (max-width: 560px) {
  .journal-workspace-actions .btn { flex: 1; padding: 9px 6px !important; font-size: 11px !important; }
}

.receipt-session-select { margin-top: 8px; }
#receiptSessionControls > small { display:block; margin:5px 0; font-size:10px; color:#64748b; }

/* A pure QR leaves bank details readable beside a larger scannable square. */
#receiptBankArea { margin-top: 12px; padding-top: 14px; gap: 12px; flex-direction: row; }
#receiptBankArea .rb-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#receiptBankArea .rb-qr { width: 210px; height: 210px; flex: 0 0 210px; padding: 8px; border-radius: 10px; }
#modalDatesBox { margin-bottom: 8px; }
#modalComment { min-height: 44px; padding: 8px 10px; }
@media (max-width: 560px) {
  #receiptBankArea { flex-wrap: wrap; justify-content: center; }
  #receiptBankArea .rb-info { flex: 1 1 115px; font-size: 12px; text-align: left; }
  #receiptBankArea .rb-qr { width: 180px; height: 180px; flex: 0 0 180px; }
}

.feedback-panel { width:min(580px,94vw); max-height:88vh; overflow:auto; background:white; border-radius:18px; padding:22px; box-sizing:border-box; }
.feedback-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.feedback-heading h2 { font-size:20px; margin:0; }
.feedback-panel > p, .feedback-panel small { color:#64748b; font-size:12px; line-height:1.6; }
.feedback-panel label { display:block; font-size:13px; font-weight:700; margin:14px 0; }
.feedback-panel select, .feedback-panel textarea { display:block; width:100%; box-sizing:border-box; margin-top:7px; padding:10px; border:1px solid #cbd5e1; border-radius:9px; font:inherit; }
.feedback-panel textarea { resize:vertical; }
#feedbackAdminButton { margin-top:16px; }
.feedback-item { border-top:1px solid #e2e8f0; margin-top:16px; padding-top:16px; }
.feedback-item strong, .feedback-item small { display:block; overflow-wrap:anywhere; }
.feedback-item p { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; }

#captureArea .receipt-top-header { padding: 20px 15px; }
#captureArea .receipt-top-header h2 { margin: 7px 0 0; }

/* Receipt themes share light typography and theme-colored date chips. */
#captureArea.theme-1{--receipt-ink:#b96c22;--receipt-line:#efd3b5;--receipt-tint:#fff9f1;--receipt-header:linear-gradient(120deg,#f39430,#f6bd51)}
#captureArea.theme-2{--receipt-ink:#296caa;--receipt-line:#bfd9ee;--receipt-tint:#f4f9fd;--receipt-header:linear-gradient(120deg,#397dc6,#55b5ce)}
#captureArea.theme-3{--receipt-ink:#7952a5;--receipt-line:#d6c5e8;--receipt-tint:#faf7fd;--receipt-header:linear-gradient(120deg,#9c62de,#d454a0)}
#captureArea .receipt-card,#captureArea .receipt-card *{font-family:TeacherNoto,'Segoe UI',sans-serif;letter-spacing:normal}
#captureArea .receipt-card{border:0;border-radius:16px;box-shadow:none;background:white;color:#4f4659}
#captureArea .receipt-top-header{background:var(--receipt-header);padding:20px 15px}
#captureArea .receipt-top-header h4{font-weight:500;letter-spacing:.6px}
#captureArea .receipt-top-header h2{font-weight:650;font-size:26px}
#captureArea .modal-row{font-weight:400;color:#4f4659;line-height:1.5}
#captureArea .modal-row>span:last-child{font-weight:600}
#captureArea #modalStudentName{font-weight:600;color:var(--receipt-ink);font-size:18px}
#captureArea .modal-header{border-bottom:1px dashed var(--receipt-line)}
#captureArea .total-box{border:1px solid var(--receipt-line);background:var(--receipt-tint);border-radius:12px;padding:18px}
#captureArea .total-box h4{color:var(--receipt-ink);font-weight:500}
#captureArea .total-box .price{color:var(--receipt-ink);font-weight:650;font-size:34px}
#captureArea .date-tag{color:var(--receipt-ink);border:1px solid var(--receipt-line);background:var(--receipt-tint);font-weight:500;border-radius:8px;padding:5px 10px}
#captureArea .rb-info{color:#4f4659;font-weight:400}
#captureArea .rb-info strong{color:var(--receipt-ink);font-weight:600}
#captureArea #receiptBankArea{border-color:var(--receipt-line)}
