/**
 * QHLS module — shared icon buttons (aligned with meetings / portal-icon-ui).
 */
.gi-page--qhls,
.qhls-page {
  max-width: 1100px;
}

.gi-page--qhls .qhls-page-head,
.qhls-page .qhls-page-head {
  margin-bottom: 1rem;
}

.qhls-page-head--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.qhls-page-head--inline .qhls-page-head__back {
  flex: 0 0 auto;
  margin: 0;
}

.qhls-page-head--inline .qhls-page-head__main,
.qhls-page-head--inline .qhls-summary-header {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
}

.qhls-page-head--inline h1,
.qhls-page-head--inline h2 {
  margin: 0;
}

.qhls-page-head--inline .qhls-summary-lead,
.qhls-page-head--inline .urm-muted {
  margin: 0.35rem 0 0;
}

.gi-page--qhls .qhls-page-head h1,
.gi-page--qhls .qhls-page-head h2,
.qhls-page .qhls-page-head h2 {
  margin: 0.35rem 0 0;
}

.qhls-page-head--inline h1,
.qhls-page-head--inline h2 {
  margin: 0;
}

.qhls-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: auto;
  max-width: none;
  padding: 0.4rem 0.75rem;
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.qhls-back:hover {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.qhls-back i {
  font-size: 0.9rem;
}

.qhls-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.qhls-actions .mt-toolbar-btn {
  flex: 0 1 auto;
}

.qhls-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  align-items: center;
}

.qhls-form-actions .mt-toolbar-btn,
.qhls-form-actions .qhls-back-link {
  flex: 1 1 auto;
  min-width: min(100%, 10rem);
}

.qhls-form-actions .qhls-back-link {
  justify-content: center;
}

.qhls-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.qhls-pagination .mt-toolbar-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.qhls-pagination-page {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.qhls-centre-actions {
  text-align: center;
  white-space: nowrap;
}

.qhls-centre-actions .mt-card-act {
  min-width: 3.5rem;
  max-width: 5rem;
  padding: 0.4rem 0.35rem;
  font-size: 0.62rem;
}

.qhls-centre-actions a.mt-card-act {
  text-decoration: none;
}

.qhls-admin-summary-page .summary-box.qhls-summary-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
}

.qhls-admin-summary-page .summary-box.qhls-summary-box i {
  font-size: 1rem;
  color: #2563eb;
  opacity: 0.85;
}

.qhls-copy-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.22);
  cursor: pointer;
}

.qhls-copy-status-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.28);
}

.qhls-copy-status-btn i {
  font-size: 1rem;
}

.qhls-summary-back-link.mt-toolbar-btn {
  display: inline-flex;
  width: auto;
  text-decoration: none;
}

.gi-page--qhls .modal .modal-buttons,
.qhls-page .modal .modal-buttons {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.gi-page--qhls .modal .modal-buttons button,
.qhls-page .modal .modal-buttons button {
  width: auto;
}

.qhls-map-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.qhls-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.qhls-result-actions .mt-toolbar-btn {
  flex: 1 1 auto;
  min-width: min(100%, 12rem);
}

@media (max-width: 480px) {
  .qhls-form-actions .mt-toolbar-btn,
  .qhls-form-actions .qhls-back-link {
    width: 100%;
    max-width: 100%;
  }
}

/* ——— QHLS icon buttons (stacked icon + small label, max 3 per row) ——— */
.qhls-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
  align-items: stretch;
}

.qhls-icon-grid--toolbar {
  margin: 0;
  max-width: 100%;
}

.qhls-icon-grid--compact {
  align-items: center;
}

.qhls-form-actions.qhls-icon-grid {
  margin-top: 1.35rem;
}

.qhls-icon-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.85rem 0.45rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  box-sizing: border-box;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.qhls-icon-btn i {
  font-size: 1.35rem;
  line-height: 1;
}

.qhls-icon-btn span {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
}

.qhls-icon-btn__amount {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.qhls-icon-btn--primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #60a5fa 100%);
  color: #fff;
  box-shadow: 0 3px 12px rgba(29, 78, 216, 0.28);
}

.qhls-icon-btn--primary i {
  color: #fff;
}

.qhls-icon-btn--secondary {
  background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
  border-color: #cbd5e1;
  color: #475569;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.qhls-icon-btn--secondary i {
  color: #2563eb;
}

.qhls-icon-btn--export {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: #fff;
  box-shadow: 0 3px 12px rgba(15, 118, 110, 0.25);
}

.qhls-icon-btn--export i {
  color: #fff;
}

.qhls-icon-btn--pay {
  background: linear-gradient(135deg, #059669 0%, #10b981 55%, #34d399 100%);
  color: #fff;
  box-shadow: 0 3px 12px rgba(5, 150, 105, 0.28);
}

.qhls-icon-btn--pay i {
  color: #fff;
}

.qhls-icon-btn--copy {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.22);
}

.qhls-icon-btn--copy i {
  color: #fff;
}

.qhls-icon-btn--view {
  min-width: 3.5rem;
  max-width: 5rem;
  padding: 0.5rem 0.35rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-color: #e2e8f0;
  color: #475569;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.qhls-icon-btn--view i {
  color: #2563eb;
}

.qhls-icon-btn:hover {
  transform: translateY(-1px);
}

.qhls-icon-btn:active {
  transform: translateY(0);
}

.qhls-icon-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.qhls-centre-actions .qhls-icon-btn {
  margin: 0 auto;
}

.qhls-pagination.qhls-icon-grid {
  justify-items: center;
}

.qhls-pagination.qhls-icon-grid .qhls-pagination-page {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.qhls-icon-grid--modal {
  margin: 0.75rem 0 0;
}

.qhls-icon-grid--modal .qhls-icon-btn {
  width: 100%;
}

.qhls-exam-submit-wrap.qhls-icon-grid {
  margin-top: 1.25rem;
}

.qhls-exam-submit-wrap .qhls-icon-btn {
  grid-column: 1 / -1;
}

@media (max-width: 360px) {
  .qhls-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qhls-icon-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Exam registration signature DOC generation status */
.qhls-exam-doc-status-overlay {
  position: fixed;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  z-index: 12000;
  margin: 0;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

.qhls-dialog-notice {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.45;
}
