/* Ký quỹ - shell-panel + icon line đơn sắc */
.qr-topup-page {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.qr-topup-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--shell-blue, #15733c);
}

.qr-topup-ico--sm {
  width: 15px;
  height: 15px;
}

.qr-topup-ico--muted {
  color: var(--shell-muted, #64748b);
}

.qr-topup-ico--label {
  vertical-align: -2px;
  margin-right: 5px;
}


.qr-topup-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qr-topup-panel-title--center {
  justify-content: center;
}

.qr-topup-th {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qr-topup-th .qr-topup-ico {
  color: #94a3b8;
}

.qr-topup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 16px;
  align-items: stretch;
  margin-left: auto;
  margin-right: auto;
}

.qr-topup-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  height: 100%;
}

.qr-topup-main > .shell-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.qr-topup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.qr-topup-table th,
.qr-topup-table td {
  padding: 11px 0;
  vertical-align: middle;
  text-align: left;
  border-bottom: 1px solid var(--shell-border, #e4e8f0);
}

.qr-topup-table tr:last-child th,
.qr-topup-table tr:last-child td {
  border-bottom: none;
}

.qr-topup-table th {
  width: 148px;
  padding-right: 16px;
  font-weight: 500;
  color: var(--shell-muted, #64748b);
}

.qr-topup-table td {
  font-weight: 600;
  color: var(--shell-text, #1e293b);
}

.qr-topup-mono {
  font-variant-numeric: tabular-nums;
  margin-right: 10px;
}

.qr-topup-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--shell-blue, #15733c);
  border-radius: 4px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--shell-blue, #15733c);
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.15s, border-color 0.15s;
}

.qr-topup-copy svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

.qr-topup-copy:hover {
  background: var(--shell-blue-dark, #0f5a2e);
  border-color: var(--shell-blue-dark, #0f5a2e);
}

.qr-topup-copy.is-copied {
  color: #fff;
  border-color: #15803d;
  background: #15803d;
}

.qr-topup-copy.is-copied svg {
  color: #fff;
}

.qr-topup-field {
  margin-bottom: 14px;
}

.qr-topup-field:last-child {
  margin-bottom: 0;
}

.qr-topup-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--shell-text, #1e293b);
}

.qr-topup-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--shell-border, #e4e8f0);
  border-radius: 4px;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--shell-text, #1e293b);
  background: #fff;
}

.qr-topup-input:focus {
  outline: none;
  border-color: var(--shell-blue, #15733c);
  box-shadow: 0 0 0 2px rgba(21, 115, 60, 0.12);
}

.qr-topup-input[readonly] {
  background: var(--shell-bg, #f4f6fb);
  color: #334155;
}

#topupAmountInput {
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.qr-topup-inline {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.qr-topup-inline .qr-topup-input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  font-size: 0.8125rem;
  line-height: 1.25;
}

.qr-topup-inline .qr-topup-copy {
  flex-shrink: 0;
  align-self: center;
  padding: 5px 10px;
  font-size: 0.7rem;
}

.qr-topup-inline .qr-topup-copy svg {
  width: 12px;
  height: 12px;
}


.qr-topup-qr-panel {
  position: sticky;
  top: calc(var(--shell-header-h, 56px) + 12px);
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
  text-align: center;
}

.qr-topup-copy--qr {
  align-self: center;
  margin-top: 12px;
  padding: 8px 16px;
}

.qr-topup-qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 12px;
  border: 1px solid var(--shell-border, #e4e8f0);
  border-radius: 4px;
  background: var(--shell-bg, #f4f6fb);
  min-height: 244px;
}

.qr-topup-qr-host {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-topup-qr-host svg {
  display: block;
  width: 220px;
  height: 220px;
  background: #fff;
  border: 1px solid var(--shell-border, #e4e8f0);
}

.qr-topup-qr-fallback {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--shell-muted, #64748b);
}

.qr-topup-qr-sum {
  margin: 14px 0 0;
  font-size: 0.875rem;
  color: var(--shell-muted, #64748b);
}

.qr-topup-qr-sum strong {
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--shell-text, #1e293b);
}

.qr-topup-msg {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 4px;
  background: #fef2f2;
  font-size: 0.8125rem;
  color: #b91c1c;
}

.qr-topup-msg.hidden {
  display: none;
}

/* Chụp ảnh cả cụm: ẩn nút Sao chép */
.qr-topup-page.is-capturing .qr-topup-copy,
.fbs-quick-topup.is-capturing .qr-topup-copy {
  display: none !important;
}

@media (max-width: 860px) {
  .qr-topup-grid {
    grid-template-columns: 1fr;
  }

  .qr-topup-main {
    height: auto;
  }

  .qr-topup-main > .shell-panel {
    flex: none;
  }

  .qr-topup-qr-panel {
    position: static;
    order: -1;
    height: auto;
  }

  .qr-topup-qr-box {
    flex: none;
  }

  .qr-topup-table th {
    width: 110px;
  }
}

@media (max-width: 480px) {
  .qr-topup-inline {
    flex-direction: column;
  }

  .qr-topup-table,
  .qr-topup-table tbody,
  .qr-topup-table tr,
  .qr-topup-table th,
  .qr-topup-table td {
    display: block;
    width: 100%;
  }

  .qr-topup-table th {
    padding-bottom: 4px;
    border-bottom: none;
  }

  .qr-topup-table td {
    padding-top: 0;
    padding-bottom: 12px;
  }
}
