.admin-qris-preview {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 132px;
  margin: 10px 0 14px;
  padding: 14px;
  border: 1px dashed #b8c1b5;
  border-radius: 16px;
  background: #f7f8f4;
  color: #536153;
  text-align: center;
}

#adminSettingsForm,
#adminSettingsForm .field,
.pending-booking-row > div {
  min-width: 0;
}

#adminQrisImage {
  max-width: 100%;
}

.pending-booking-row strong,
.pending-booking-row small {
  overflow-wrap: anywhere;
}

.admin-qris-preview img {
  display: block;
  width: min(220px, 100%);
  max-height: 260px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(36, 54, 40, 0.12);
}

.qris-payment-panel {
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid #d8dfd4;
  border-radius: 18px;
  background: #f7f8f4;
}

.qris-panel-heading,
.qris-panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qris-panel-body {
  padding-top: 12px;
  text-align: center;
}

.qris-image-button {
  display: block;
  width: min(280px, 100%);
  margin: 0 auto 12px;
  padding: 8px;
  border: 1px solid #d8dfd4;
  border-radius: 14px;
  background: #fff;
  cursor: zoom-in;
}

.qris-image-button img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.qris-payment-panel.qris-expanded .qris-image-button {
  width: 100%;
  cursor: zoom-out;
}

.qris-payment-panel.qris-expanded .qris-image-button img {
  max-height: 70vh;
}

.qris-panel-actions {
  justify-content: center;
  flex-wrap: wrap;
}

.qris-panel-actions > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  text-decoration: none;
}

.qris-unavailable {
  margin: 10px 0 16px;
}

.pending-booking-row {
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.pending-booking-row.pending-overdue {
  border-color: #c8645d;
  background: #fff0ee;
  box-shadow: inset 4px 0 0 #a63f38;
}

.pending-warning {
  display: inline-block;
  margin-top: 9px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #8f302b;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.pending-booking-row .row-actions > button {
  min-width: 0;
  white-space: normal;
}

[data-delete-pending]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (max-width: 560px) {
  .qris-panel-actions > * {
    flex: 1 1 140px;
  }

  .pending-booking-row .row-actions > button {
    flex: 1 1 100%;
    width: 100%;
  }
}
