/* ==========================================================================
   极昼 TEKLA — v2 admin CRUD, QR payment & content editor
   ========================================================================== */

/* Admin shell additions */
.admin-role {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(92, 90, 216, 0.08);
  font-size: 6.5px;
  font-style: normal;
  font-weight: 600;
  color: var(--primary);
}

.panel__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.panel__actions .btn {
  min-height: 31px;
  font-size: 8.5px;
  padding-inline: 10px;
}

.admin-table code {
  font-family: var(--font-display);
  font-size: 7.5px;
  color: var(--muted);
}

.admin-table td .table-actions {
  flex-wrap: nowrap;
}

.admin-product-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 205px;
}

.admin-product-cell img {
  width: 54px;
  height: 36px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
}

.admin-product-cell span {
  min-width: 0;
}

.admin-product-cell strong {
  display: block;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--ink);
}

.featured-star {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(242, 182, 79, 0.12);
  font-family: var(--font-sans);
  font-size: 6.5px;
  font-weight: 600;
  color: #a97822;
  vertical-align: 1px;
}

.mini-btn--featured {
  color: #a97822;
  background: rgba(242, 182, 79, 0.09);
  border-color: rgba(230, 165, 70, 0.18);
  cursor: default;
}

.admin-product-cell em {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 6.8px;
  font-style: normal;
  color: var(--muted-light);
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-user-cell .admin-topbar__avatar {
  width: 26px;
  height: 26px;
}

.admin-user-cell strong {
  display: block;
  font-size: 8.5px;
}

.admin-user-cell em {
  display: block;
  margin-top: 1px;
  font-size: 7px;
  font-style: normal;
  color: var(--muted-light);
}

.admin-self-label {
  padding: 3px 5px;
  border-radius: 4px;
  background: rgba(59, 192, 154, 0.08);
  font-size: 6.5px;
  color: #168a6d;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 7px;
  font-weight: 600;
  white-space: nowrap;
}

.role-pill--super_admin {
  color: #5b4bcf;
  background: rgba(92, 90, 216, 0.09);
}

.role-pill--operator {
  color: #427baf;
  background: rgba(76, 153, 212, 0.1);
}

.permission-summary {
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 7.5px;
  color: var(--muted);
}

/* Admin forms */
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-form-field {
  min-width: 0;
}

.admin-form-field--full {
  grid-column: 1 / -1;
}

.admin-form-field > label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-soft);
}

.admin-form-field .input,
.admin-form-field .textarea {
  font-size: 10px;
}

.admin-form-field .input {
  height: 40px;
}

.admin-form-field .input[readonly] {
  color: var(--muted-light);
  background: rgba(243, 247, 253, 0.7);
  cursor: not-allowed;
}

.admin-textarea {
  min-height: 74px;
}

.admin-form-help {
  display: block;
  margin-top: 4px;
  font-size: 7.5px;
  line-height: 1.55;
  color: var(--muted-light);
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(92, 118, 161, 0.15);
  background: rgba(248, 251, 255, 0.7);
  font-size: 9px;
  color: var(--ink-soft);
  cursor: pointer;
}

.admin-check input {
  accent-color: var(--primary);
}

.admin-form-error {
  display: none;
  align-items: flex-start;
  gap: 7px;
  margin-top: 14px;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid rgba(224, 91, 121, 0.18);
  background: rgba(255, 244, 247, 0.78);
  color: #b64862;
  font-size: 8.5px;
  line-height: 1.65;
}

.admin-form-error:not(:empty) {
  display: flex;
}

.admin-form-error svg {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 1px;
}

.admin-form-error p {
  margin: 0;
}

.image-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(92, 118, 161, 0.14);
  background: rgba(248, 251, 255, 0.6);
}

.image-field {
  position: relative;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.image-field.is-dragging {
  border-color: rgba(92, 90, 216, 0.55);
  box-shadow: 0 0 0 4px rgba(92, 90, 216, 0.08);
}

.image-field.has-image-error .image-field__preview {
  border-color: rgba(224, 91, 121, 0.4);
  background: rgba(255, 244, 247, 0.8);
}

.image-field.is-uploading .image-field__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
}

.image-field__preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 130px;
  height: 86px;
  flex: none;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(92, 118, 161, 0.12);
  background:
    linear-gradient(45deg, rgba(220, 230, 246, 0.45) 25%, transparent 25%) 0 0 / 10px 10px,
    linear-gradient(-45deg, rgba(220, 230, 246, 0.45) 25%, transparent 25%) 0 5px / 10px 10px,
    #fff;
  cursor: zoom-in;
  outline: none;
}

.image-field__preview:focus-visible {
  outline: 2px solid rgba(92, 90, 216, 0.7);
  outline-offset: 2px;
}

.image-field__preview:hover .image-field__zoom-hint {
  opacity: 1;
}

.image-field__zoom-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 4px;
  background: rgba(9, 23, 46, 0.68);
  color: #fff;
  font-size: 6.5px;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  backdrop-filter: blur(4px);
}

.image-field__zoom-hint svg {
  width: 9px;
  height: 9px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 27, 0.78);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.2s var(--ease);
}

.image-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(1000px, 92vw);
  max-height: 88vh;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(11, 24, 48, 0.72);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
  animation: modalIn 0.25s var(--ease-out);
}

.image-lightbox__panel img {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 54px);
  border-radius: 11px;
  object-fit: contain;
}

.image-lightbox__close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: rgba(7, 18, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.image-lightbox__close svg {
  width: 15px;
  height: 15px;
}

.image-lightbox__hint {
  display: block;
  padding: 8px 4px 2px;
  text-align: center;
  font-size: 8px;
  color: rgba(218, 231, 251, 0.55);
}

.image-field__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-field__preview > span {
  color: var(--muted-light);
}

.image-field__preview svg {
  width: 22px;
  height: 22px;
}

.image-field__body {
  flex: 1;
  min-width: 0;
}

.image-field__body .input {
  height: 34px;
  font-size: 8px;
}

.image-field__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  flex-wrap: wrap;
}

.image-field__actions .btn {
  min-height: 28px;
  font-size: 7.5px;
  padding-inline: 9px;
}

.image-field__actions .btn svg {
  width: 11px;
  height: 11px;
}

.image-field__actions span {
  font-size: 6.8px;
  color: var(--muted-light);
}

.permission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(92, 118, 161, 0.13);
  background: rgba(248, 251, 255, 0.56);
}

.permission-check {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.permission-check:hover {
  background: #fff;
}

.permission-check input {
  margin-top: 2px;
  accent-color: var(--primary);
}

.permission-check span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.permission-check strong {
  font-size: 7.8px;
  font-weight: 500;
  color: var(--ink-soft);
}

.permission-check em {
  font-size: 6.3px;
  font-style: normal;
  color: var(--muted-light);
}

/* Content editor */
.admin-site-form__intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 20px rgba(49, 78, 130, 0.04);
}

.admin-site-form__intro > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-site-form__intro svg {
  width: 17px;
  height: 17px;
  color: var(--primary);
}

.admin-site-form__intro strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
}

.admin-site-form__intro em {
  display: block;
  margin-top: 1px;
  font-size: 7.5px;
  font-style: normal;
  color: var(--muted-light);
}

.content-config-group {
  margin-top: 10px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.58);
}

.content-config-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.content-config-group > summary::-webkit-details-marker {
  display: none;
}

.content-config-group__chevron {
  color: var(--muted-light);
  transition: transform 0.2s var(--ease);
}

.content-config-group__chevron svg {
  width: 13px;
  height: 13px;
}

.content-config-group[open] .content-config-group__chevron {
  transform: rotate(180deg);
}

.content-config-group .admin-form-grid {
  padding: 0 16px 16px;
}

.admin-site-form__savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.62);
}

.admin-site-form__savebar span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 7.5px;
  color: var(--muted-light);
}

.admin-site-form__savebar svg {
  width: 11px;
  height: 11px;
}

.admin-content-items {
  margin-top: 22px;
}

.content-admin-list {
  display: flex;
  flex-direction: column;
}

.content-admin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
}

.content-admin-row + .content-admin-row {
  border-top: 1px solid rgba(96, 125, 169, 0.075);
}

.content-admin-row__main {
  min-width: 0;
  flex: 1;
}

.content-admin-row__main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--ink);
}

.content-admin-row__main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  font-size: 7.5px;
  color: var(--muted-light);
}

.content-admin-row__sort {
  flex: none;
  font-family: var(--font-display);
  font-size: 7px;
  color: var(--muted-light);
}

/* Payment management */
.payment-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.payment-admin-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.58);
}

.payment-admin-card__qr {
  width: 96px;
  height: 96px;
  flex: none;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(92, 118, 161, 0.12);
  background: #fff;
}

.payment-admin-card__qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.payment-admin-card__body {
  flex: 1;
  min-width: 0;
}

.payment-admin-card__title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.payment-admin-card__title strong {
  font-size: 10px;
  font-weight: 600;
}

.payment-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
}

.payment-admin-card__title .status-pill {
  margin-left: auto;
}

.payment-admin-card__body code {
  display: block;
  margin-top: 5px;
  font-size: 7.5px;
  color: var(--muted);
}

.payment-admin-card__body p {
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 7.5px;
  color: var(--muted-light);
}

.payment-admin-card__actions {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

/* QR payment modal */
.payment-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.payment-modal__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(96, 125, 169, 0.1);
}

.payment-method-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.payment-method-pill .payment-logo {
  width: 25px;
  height: 25px;
  font-size: 10px;
}

.payment-modal__amount {
  text-align: right;
}

.payment-modal__amount span {
  display: block;
  font-size: 7.5px;
  color: var(--muted-light);
}

.payment-modal__amount strong {
  display: block;
  margin-top: 1px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--pink);
}

.qr-frame {
  position: relative;
  width: 238px;
  height: 238px;
  margin-top: 19px;
  padding: 8px;
  border-radius: 19px;
  border: 1px solid rgba(96, 125, 169, 0.13);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(40, 66, 113, 0.09);
}

.qr-frame__inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.qr-frame__inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-scanline {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 8%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(84, 200, 232, 0.9), transparent);
  box-shadow: 0 0 8px rgba(84, 200, 232, 0.65);
  animation: qrScan 3.2s ease-in-out infinite;
}

@keyframes qrScan {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(196px); opacity: 1; }
}

.qr-frame__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--primary);
  border-style: solid;
  opacity: 0.5;
}

.qr-frame__corner--tl { top: -4px; left: -4px; border-width: 2px 0 0 2px; border-radius: 7px 0 0 0; }
.qr-frame__corner--tr { top: -4px; right: -4px; border-width: 2px 2px 0 0; border-radius: 0 7px 0 0; }
.qr-frame__corner--bl { bottom: -4px; left: -4px; border-width: 0 0 2px 2px; border-radius: 0 0 0 7px; }
.qr-frame__corner--br { bottom: -4px; right: -4px; border-width: 0 2px 2px 0; border-radius: 0 0 7px 0; }

.payment-modal__hint {
  max-width: 390px;
  margin-top: 14px;
  text-align: center;
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
}

.payment-modal__account {
  margin-top: 2px;
  font-size: 7.5px;
  color: var(--muted-light);
}

.payment-modal__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  margin-top: 13px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(241, 245, 253, 0.7);
  font-size: 7.5px;
  color: var(--muted-light);
}

.payment-modal__meta strong {
  font-family: var(--font-display);
  font-size: 8px;
  color: var(--ink-soft);
}

.copy-target {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.copy-target svg {
  width: 10px;
  height: 10px;
  flex: none;
  color: var(--muted-light);
}

.payment-countdown {
  flex: none;
  color: var(--primary);
  font-weight: 600;
}

.payment-confirm {
  margin-top: 13px;
  min-height: 45px;
}

.payment-later {
  margin-top: 7px;
  min-height: 39px;
}

.payment-demo-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 11px;
  padding: 8px 9px;
  border-radius: 7px;
  border: 1px solid rgba(230, 165, 70, 0.13);
  background: rgba(255, 246, 228, 0.6);
  font-size: 7.5px;
  line-height: 1.6;
  color: #97703a;
}

.payment-demo-note svg {
  width: 10px;
  height: 10px;
  flex: none;
  margin-top: 1px;
}

.payment-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(230, 165, 70, 0.17);
  background: rgba(255, 246, 228, 0.6);
  font-size: 8px;
  line-height: 1.7;
  color: #8d6d39;
}

.payment-empty svg {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 1px;
}

.payment-empty .qq-link {
  color: #2b72d2;
}

/* Admin order table: full email + notes */
.admin-email-cell {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 190px;
  font-size: 7.5px;
  color: var(--ink-soft);
  word-break: break-all;
}

.admin-email-cell .copy-button {
  width: 20px;
  height: 20px;
  flex: none;
}

.order-note-indicator {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 150px;
  overflow: hidden;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid rgba(92, 90, 216, 0.1);
  background: rgba(92, 90, 216, 0.055);
  color: var(--primary);
  font-size: 7px;
}

.order-note-indicator > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-note-indicator svg {
  width: 9px;
  height: 9px;
  flex: none;
}

.order-note-empty {
  color: var(--muted-light);
}

/* Admin order detail */
.order-detail-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid rgba(96, 125, 169, 0.1);
  background: rgba(245, 249, 255, 0.7);
}

.order-detail-hero > img {
  width: 86px;
  height: 58px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
}

.order-detail-hero__copy {
  flex: 1;
  min-width: 0;
}

.order-detail-hero__copy > span {
  display: block;
  font-family: var(--font-display);
  font-size: 6.5px;
  letter-spacing: 0.08em;
  color: var(--muted-light);
}

.order-detail-hero__copy h3 {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
}

.order-detail-hero__copy p {
  margin-top: 2px;
  font-size: 8px;
  color: var(--muted);
}

.order-detail-hero > .status-pill {
  flex: none;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.8fr 0.8fr;
  gap: 8px;
  margin-top: 10px;
}

.order-detail-card {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 9px;
  border: 1px solid rgba(96, 125, 169, 0.1);
  background: rgba(255, 255, 255, 0.55);
}

.order-detail-card > span {
  display: block;
  font-size: 6.5px;
  color: var(--muted-light);
}

.order-detail-card > strong {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

.order-detail-email {
  font-size: 8px !important;
}

.order-detail-card > em {
  display: block;
  margin-top: 3px;
  font-size: 6.5px;
  font-style: normal;
  color: var(--muted-light);
}

.order-detail-card .copy-button {
  width: 20px;
  height: 20px;
  flex: none;
}

.order-detail-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(96, 125, 169, 0.1);
}

.order-detail-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.order-detail-section__head h3 {
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-soft);
}

.order-detail-section__head h3 svg {
  width: 11px;
  height: 11px;
  vertical-align: -1px;
}

.order-detail-section__head span {
  font-size: 6.5px;
  color: var(--muted-light);
}

.order-detail-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.order-detail-event {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0 8px 11px;
}

.order-detail-event::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 11px;
  bottom: -2px;
  width: 1px;
  background: rgba(92, 90, 216, 0.14);
}

.order-detail-event:last-child::before {
  display: none;
}

.order-detail-event > i {
  position: absolute;
  left: -1px;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.order-detail-event > div {
  flex: 1;
  min-width: 0;
}

.order-detail-event strong {
  display: block;
  font-size: 7.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.order-detail-event span {
  display: block;
  margin-top: 1px;
  font-size: 6.8px;
  color: var(--muted-light);
}

.order-detail-event time {
  flex: none;
  font-family: var(--font-display);
  font-size: 6.5px;
  color: var(--muted-light);
}

.order-detail-note textarea {
  min-height: 84px;
  font-size: 9px;
}

.order-note-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.order-note-foot > span {
  font-family: var(--font-display);
  font-size: 7px;
  color: var(--muted-light);
}

/* Pending order state */
.order-status--pending,
.status-pill--pending {
  color: #9a6d1f;
  background: rgba(230, 165, 70, 0.12);
}

/* Responsive admin v2 */
@media (max-width: 1024px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-field--full {
    grid-column: auto;
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }

  .payment-admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-main {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .panel__head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .panel__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .panel__actions .btn {
    flex: 1;
  }

  .bar-chart {
    gap: 6px;
    padding-inline: 12px;
  }

  .bar__value {
    font-size: 6px;
  }

  .admin-site-form__intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-site-form__intro > .btn {
    width: 100%;
  }

  .admin-site-form__savebar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-site-form__savebar .btn {
    width: 100%;
  }

  .image-field {
    flex-direction: column;
  }

  .image-field__preview {
    width: 100%;
    height: 120px;
  }

  .content-admin-row {
    flex-wrap: wrap;
  }

  .content-admin-row__sort {
    display: none;
  }

  .content-admin-row .table-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .qr-frame {
    width: 210px;
    height: 210px;
  }

  @keyframes qrScan {
    0%, 100% { transform: translateY(0); opacity: 0.45; }
    50% { transform: translateY(168px); opacity: 1; }
  }

  .payment-modal__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-detail-hero {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
  }

  .order-detail-hero > img {
    width: 72px;
    height: 50px;
  }

  .order-detail-hero > .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 0;
  }

  .order-detail-grid {
    grid-template-columns: 1fr;
  }

  .order-detail-event time {
    display: none;
  }

  .order-detail-section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}
