/* Paid-registration admin surface: inherits the shared admin-standard tokens. */
body.admin-standard #app .orders-filter-bar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  background: var(--adm-surface);
  border-color: var(--adm-module-line);
}
body.admin-standard #app .orders-filter-bar label { min-width: 0; }
body.admin-standard #app .orders-filter-bar .filter-actions {
  grid-column: 1 / -1;
  align-items: end;
  justify-content: flex-end;
}
.orders-more-filters { grid-column: 1 / -1; }
.orders-more-filters summary {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  color: var(--adm-link);
  cursor: pointer;
  list-style-position: inside;
}
.orders-more-filters summary::marker { color: var(--adm-link); }
.orders-advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.orders-error {
  margin: 16px 0;
  padding: 12px 16px;
  border: 1px solid #e6bab5;
  border-radius: 8px;
  background: var(--adm-tint);
  color: var(--adm-accent);
  font-size: 14px;
  line-height: 22px;
}
.orders-results-panel {
  margin-top: 24px;
  border: 1px solid var(--adm-module-line);
  border-radius: 8px;
  background: var(--adm-surface);
  overflow: hidden;
}
.orders-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--adm-basic-bg);
  color: var(--adm-basic-ink);
  border-bottom: 1px solid var(--adm-module-line);
}
.orders-result-head h2 {
  margin: 0;
  color: var(--adm-basic-ink);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}
.orders-result-head span {
  color: var(--adm-muted);
  font-size: 13px;
  line-height: 20px;
}
.orders-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}
.orders-table th {
  padding: 14px 12px;
  background: var(--adm-weak);
  color: var(--adm-label-ink);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.orders-table td {
  padding: 14px 12px;
  border-top: 1px solid var(--adm-line);
  color: var(--adm-body-ink);
  font-size: 14px;
  line-height: 22px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.orders-table tbody tr:hover { background: #fafbfc; }
.orders-table p { margin: 0 0 4px; }
.orders-table .event-name { color: var(--adm-ink); font-weight: 600; }
.orders-table .order-number {
  color: var(--adm-muted);
  font: 400 12px/18px ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
}
.orders-table .money { color: var(--adm-ink); font-weight: 600; }
.orders-table .subtle { color: var(--adm-muted); font-size: 13px; line-height: 20px; }
.order-state-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--adm-auxiliary-bg);
  color: var(--adm-auxiliary-ink);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}
.order-state-badge.paid { background: #edf8f1; color: #14734e; }
.order-state-badge.refund { background: var(--adm-pending-bg); color: var(--adm-pending-ink); }
.order-state-badge.closed { background: var(--adm-weak); color: var(--adm-muted); }
body.admin-standard .order-detail-drawer { width: min(960px, calc(100vw - 32px)); max-width: none; }
.order-detail-body { display: grid; gap: 16px; }
.order-detail-card {
  border: 1px solid var(--adm-module-line);
  border-radius: 8px;
  background: var(--adm-surface);
  padding: 20px;
}
.order-detail-card h3 {
  margin: -20px -20px 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--adm-module-line);
  border-radius: 7px 7px 0 0;
  background: var(--adm-basic-bg);
  color: var(--adm-basic-ink);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}
.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.order-detail-grid div { min-width: 0; }
.order-detail-grid dt {
  margin-bottom: 4px;
  color: var(--adm-label-ink);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
}
.order-detail-grid dd {
  margin: 0;
  color: var(--adm-body-ink);
  overflow-wrap: anywhere;
}
.order-refund-box {
  border: 1px solid #ead8b9;
  border-radius: 8px;
  background: var(--adm-pending-bg);
  padding: 20px;
}
.order-refund-box h3 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--adm-pending-ink);
  font-size: 18px;
  line-height: 28px;
}
.order-refund-form { display: grid; gap: 16px; }
.order-refund-form label { display: grid; gap: 6px; color: var(--adm-label-ink); font-size: 14px; line-height: 22px; }
.order-refund-form textarea { min-height: 100px; }
.order-refund-form .drawer-actions { margin-top: 0; }
.order-history { margin: 0; padding: 0; list-style: none; }
.order-history li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--adm-line); }
.order-history li:first-child { padding-top: 0; }
.order-history li:last-child { padding-bottom: 0; border-bottom: 0; }
.order-history time { color: var(--adm-muted); font-size: 13px; line-height: 20px; }
#order-detail-drawer { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
#order-detail-drawer .drawer-head { flex: none; margin: 0; padding: 18px 24px; }
#order-detail-content { flex: 1; min-height: 0; padding: 24px; overflow-y: auto; }
.order-detail-footer { flex: none; display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--adm-line); background: var(--adm-surface); }
.order-detail-footer:empty { display: none; }
.order-refund-card { padding: 20px 0; border-bottom: 1px solid var(--adm-line); }
.order-refund-card:first-child { padding-top: 0; }
.order-refund-card:last-child { padding-bottom: 0; border-bottom: 0; }
.order-refund-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
#order-detail-drawer .order-refund-value { color: var(--adm-ink); font-size: 24px; line-height: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.order-refund-heading .order-number { margin: 4px 0 0; }
.order-refund-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 20px; }
body.admin-standard #order-detail-drawer .order-refund-actions button,
body.admin-standard #order-detail-drawer .order-detail-footer button { height: 38px; min-height: 38px; padding: 0 12px; border-radius: 6px; }
.order-refund-notice { margin: 0 0 20px; padding: 16px 20px; border: 1px solid #ead8b9; border-radius: 8px; background: var(--adm-pending-bg); color: var(--adm-pending-ink); font-size: 14px; line-height: 22px; }
.order-refund-notice.info { border-color: var(--adm-module-line); background: var(--adm-basic-bg); color: var(--adm-basic-ink); }
.order-refund-notice p { margin: 8px 0 0; }
.order-channel-diagnostic { margin-top: 20px; border-top: 1px solid var(--adm-line); padding-top: 16px; }
.order-channel-diagnostic summary { color: var(--adm-link); font-size: 13px; line-height: 20px; cursor: pointer; }
.order-channel-diagnostic .order-detail-grid { margin-top: 12px; }
.order-snapshot-details > summary { cursor: pointer; color: var(--adm-link); padding: 8px 0; }
.order-snapshot-details > .order-detail-body { margin-top: 12px; }
.order-retry-form { display: grid; gap: 24px; }
.order-retry-form .order-refund-notice { margin: 0; }
.order-retry-object h3 { margin: 0 0 6px; font-size: 18px; line-height: 28px; color: var(--adm-ink); }
.order-retry-object p { margin: 4px 0 0; }
.order-retry-reason { display: grid; grid-template-columns: max-content 1fr; gap: 6px; font-size: 14px; color: var(--adm-label-ink); }
.order-retry-reason em { color: var(--adm-brand); font-style: normal; }
.order-retry-reason textarea,.order-retry-reason small { grid-column: 1 / -1; }
.order-retry-reason small { text-align: right; }
.order-retry-reason textarea { resize: vertical; min-height: 82px; }
body.admin-standard #order-detail-drawer .order-retry-reason textarea { font-weight: 400; }
body.admin-standard #order-detail-drawer .order-retry-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 22px; font-weight: 400; }
#order-detail-drawer .order-retry-consent input { flex: none; width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; accent-color: var(--adm-brand); }
#order-detail-drawer button:focus-visible,#order-detail-drawer input:focus-visible,#order-detail-drawer textarea:focus-visible { outline: 2px solid var(--adm-link); outline-offset: 3px; }
@media(max-width:850px) {
  body.admin-standard #app .orders-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.admin-standard #app .orders-filter-bar .filter-actions { grid-column: 1 / -1; }
}
@media(max-width:740px) {
  .order-detail-grid { grid-template-columns: 1fr; }
  .order-history li { grid-template-columns: 1fr; gap: 4px; }
}
@media(max-width:620px) {
  body.admin-standard #app .orders-filter-bar { grid-template-columns: minmax(0, 1fr); }
  body.admin-standard #app .orders-filter-bar .filter-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .orders-advanced-grid { grid-template-columns: minmax(0, 1fr); }
  .orders-results-panel { margin-top: 16px; }
  .orders-result-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  body.admin-standard .order-detail-drawer { inset: 8px; width: auto; max-width: none; }
}

/* Header, records and pager belong to the same results panel. */
body.admin-standard #app .orders-results-panel>#orders-list{border:0;border-radius:0}
body.admin-standard #app .orders-results-panel>#orders-pagination{margin:0;border:0;border-top:1px solid var(--adm-module-line);border-radius:0}
