.header-repair-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--blue);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(33, 85, 217, 0.22);
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.header-repair-btn span {
  color: var(--orange);
  font-size: 20px;
  line-height: 0.7;
}
.header-repair-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 11px 25px rgba(33, 85, 217, 0.3);
}
.payment-panel {
  display: grid;
  gap: 14px;
  background: #eef3ff;
  border: 1px solid #b9caff;
  border-radius: 14px;
  padding: 24px;
}
.payment-panel h3 {
  font: 700 29px "Barlow Condensed";
  text-transform: uppercase;
  margin: 3px 0;
}
.payment-panel p {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.payment-panel small {
  color: var(--muted);
}
.payment-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.payment-link-actions > * {
  min-width: min(100%, 220px);
}
.payment-email-status {
  min-height: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.payment-email-status:not(:empty) {
  min-height: 42px;
  padding: 11px 13px;
  border: 1px solid #8aa6c5;
  border-radius: 7px;
  background: #10243d;
}
.payment-email-status.success { color: #b9f5db; border-color: #2e8b68; }
.payment-email-status.error { color: #ffd4d4; border-color: #a84c5c; }
.payment-options-note a { color: #7fbcff; font-weight: 700; }
.payment-due {
  background: #eef3ff;
}
.payment-success-card {
  display: grid;
  justify-items: center;
  gap: 12px;
}
.success-check {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 32px;
  font-weight: 800;
}
.payment-success-card .page-title {
  font-size: clamp(48px, 7vw, 76px);
}
.payment-success-card .page-lead {
  margin: 0 auto;
}
.stripe-payment-summary {
  display: grid;
  gap: 12px;
}
.stripe-payment-summary > div {
  display: grid;
  gap: 3px;
}
.stripe-payment-summary small {
  color: #7b8490;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stripe-payment-summary strong {
  font-size: 12px;
}
.mono-ref {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .site-header {
    gap: 12px;
  }
  .site-header > .status-pill {
    display: none;
  }
  .header-repair-btn {
    margin-left: auto;
    padding: 11px 14px;
  }
}
@media (max-width: 390px) {
  .header-repair-btn {
    font-size: 12px;
    padding: 10px 12px;
  }
  .header-repair-btn span {
    display: none;
  }
}
.payment-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.payment-chip.due {
  background: #ffeadf;
  color: #a83b0b;
  border: 1px solid #ff9f73;
}
.payment-chip.paid {
  background: #dff5ea;
  color: #08704d;
  border: 1px solid #70c7a6;
}
.payment-chip.neutral {
  background: #eceff2;
  color: #65707c;
  border: 1px solid #d4d9df;
}
.payment-row-due {
  background: #fff8f3 !important;
  box-shadow: inset 5px 0 0 #ff6b2c;
}
.payment-row-paid {
  background: #f4fbf7 !important;
  box-shadow: inset 5px 0 0 #12805c;
}
.ticket-table tr.payment-row-due:hover {
  background: #ffefe5 !important;
}
.ticket-table tr.payment-row-paid:hover {
  background: #eaf7f0 !important;
}
.payment-filter {
  color: #ffd0bc !important;
}
.payment-filter:after {
  content: "!";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff6b2c;
  color: white;
  font-size: 11px;
  font-weight: 900;
}
.kanban-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.kanban-card.payment-row-due {
  border: 2px solid #ff8350;
}
.kanban-card.payment-row-paid {
  border: 2px solid #47a982;
}
.payment-priority {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: center;
  border-radius: 14px;
  padding: 22px 24px;
  margin: 0 0 20px;
  color: white;
  box-shadow: 0 10px 25px rgba(17, 26, 39, 0.16);
}
.payment-priority.due {
  background: linear-gradient(105deg, #b33e0d, #ff6b2c);
}
.payment-priority.paid {
  background: linear-gradient(105deg, #08704d, #16a06f);
}
.payment-priority-icon {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 31px;
  font-weight: 900;
}
.payment-priority small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 9px;
  font-weight: 800;
  opacity: 0.8;
}
.payment-priority strong {
  display: block;
  font: 800 31px "Barlow Condensed";
  letter-spacing: 0.02em;
  margin: 2px 0;
}
.payment-priority p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}
.payment-card-state {
  display: grid;
  gap: 4px;
  border-radius: 11px;
  padding: 15px;
  margin-bottom: 14px;
}
.payment-card-state strong {
  font-size: 13px;
  letter-spacing: 0.05em;
}
.payment-card-state span {
  font-size: 12px;
}
.payment-card-state.due {
  background: #ffeadf;
  color: #923306;
  border: 1px solid #ff9f73;
}
.payment-card-state.paid {
  background: #dff5ea;
  color: #076546;
  border: 1px solid #70c7a6;
}
.email-log-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  border-top: 1px solid #e3e6e9;
  padding: 11px 0;
}
.email-log-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.email-log-row strong {
  font-size: 11px;
}
.email-log-row small {
  font-size: 9px;
  color: #737e8a;
  overflow-wrap: anywhere;
}
.email-log-row em {
  font-size: 9px;
  color: #b8392f;
  font-style: normal;
}
.email-state {
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  background: #eceff2;
  color: #65707c;
}
.email-state.sent {
  background: #dff5ea;
  color: #08704d;
}
.email-state.failed,
.email-state.not_configured {
  background: #ffeadf;
  color: #a83b0b;
}
@media (max-width: 650px) {
  .payment-priority {
    grid-template-columns: 44px 1fr;
    padding: 17px;
  }
  .payment-priority-icon {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
  .payment-priority strong {
    font-size: 25px;
  }
}
.metric-card.payment-due-metric {
  background: #ff6b2c;
  color: white;
  border-color: #ff6b2c;
}
.metric-card.payment-due-metric small {
  color: #ffe2d5;
}
.metric-card.payment-paid-metric {
  background: #12805c;
  color: white;
  border-color: #12805c;
}
.metric-card.payment-paid-metric small {
  color: #d7f5e9;
}
