#myeven203or18 th,
#myeven203or18 td {
  font-family: "DM Sans", system-ui, sans-serif;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #E5E9E3;
  vertical-align: middle;
}

#myeven203or18 th {
  color: rgb(113, 128, 120);
  font-size: 14.72px;
  font-weight: 500;
}

#myeven203or18 td {
  color: rgb(32, 41, 35);
  font-size: 14.72px;
  font-weight: 400;
}

#myeven203or18 .sh-my-event-actions {
  min-width: 190px;
  white-space: normal;
}

#myeven203or18 .sh-my-event-action {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 6px 12px;
  border: 1px solid #174D39;
  border-radius: 10px;
  background: #fff;
  color: #174D39;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 21px;
  cursor: pointer;
}

#myeven203or18 .sh-my-event-action:hover {
  background: #E5F0E8;
  box-shadow: rgba(23, 77, 57, 0.2) 0 4px 12px;
}

#myeven203or18 [data-my-event-action="submit"] {
  background: #174D39;
  color: #fff;
}

#myeven203or18 [data-my-event-action="submit"]:hover {
  background: #236B4E;
}

#myeven203or18 [data-my-event-action="delete"] {
  border-color: #B42318;
  color: #B42318;
}

#myeven203or18 [data-my-event-action="delete"]:hover {
  background: #FEF3F2;
}

#myeven203or18 .sh-my-event-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  background: #E5F0E8;
  color: #174D39;
  font-size: 12.48px;
  text-transform: capitalize;
}

#myeven203or18 .sh-status-pending {
  background: #FFF4D6;
  color: #805B00;
}

#myeven203or18 .sh-status-published {
  background: #E5F0E8;
  color: #174D39;
}

#myeven203or18 .sh-status-cancelled {
  background: #FEF3F2;
  color: #B42318;
}

/* My Events — student registration cards (replaced) */
#myeven203st17 {
  --g1: #174D39;
  --g2: #236B4E;
  --bg: #F7F8F3;
  --mint: #E5F0E8;
  --or: #F48C06;
  --tx: #202923;
  --mu: #718078;
  --bd: #E5E9E3;
  --card: #fff;
  --red: #B3261E;
  --soft: #F6F9F6;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

#myeven203st17 .sh-myreg-empty {
  width: 100%;
  color: var(--mu);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

#myeven203st17 .ev {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--bd);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(23, 77, 57, 0.045);
  font-family: "DM Sans", sans-serif;
  transition: border-color .18s ease, box-shadow .18s ease;
}

#myeven203st17 .ev:hover {
  border-color: #C8DCCF;
  box-shadow: 0 5px 16px rgba(23, 77, 57, 0.075);
}

#myeven203st17 .dt {
  box-sizing: border-box;
  flex: 0 0 62px;
  min-width: 62px;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 4px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--g1);
  text-align: center;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

#myeven203st17 .dt small {
  margin-top: 3px;
  color: var(--mu);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

#myeven203st17 .info {
  flex: 1 1 auto;
  min-width: 0;
}

#myeven203st17 .info h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 6px;
  color: var(--g1);
  font-family: "Manrope", sans-serif;
  font-size: 16.8px;
  font-weight: 800;
  line-height: 1.4;
}

#myeven203st17 .meta {
  color: var(--mu);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

#myeven203st17 .tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 20px;
  background: var(--mint);
  color: var(--g1);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

#myeven203st17 .tag.paid {
  background: #FFF1DF;
  color: #A85B00;
}

#myeven203st17 .tag.off {
  background: #FBEAE8;
  color: var(--red);
}

#myeven203st17 .act {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

#myeven203st17 .b {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--g1);
  border-radius: 8px;
  background: #fff;
  color: var(--g1);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

#myeven203st17 .b:hover {
  background: var(--mint);
}

#myeven203st17 .b.pr {
  background: var(--g1);
  color: #fff;
}

#myeven203st17 .b.pr:hover {
  background: var(--g2);
  border-color: var(--g2);
}

#myeven203st17 .b.rd {
  border-color: #D9B8B4;
  background: #fff;
  color: var(--red);
}

#myeven203st17 .b.rd:hover {
  background: #FBEAE8;
}

#myeven203st17 .b:focus-visible {
  outline: 3px solid rgba(35, 107, 78, .2);
  outline-offset: 2px;
}

#myeven203st17 .b:disabled {
  opacity: .55;
  cursor: not-allowed;
}

#myeven203st17 .sh-open-online-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--g1);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

#myeven203st17 .sh-open-online-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  #myeven203st17 .ev {
    flex-wrap: wrap;
    gap: 10px;
    padding: 13px;
  }

  #myeven203st17 .info {
    flex: 1 1 calc(100% - 76px);
  }

  #myeven203st17 .info h3 {
    font-size: 15px;
  }

  #myeven203st17 .meta {
    font-size: 13px;
  }

  #myeven203st17 .act {
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-start;
  }

  #myeven203st17 .act .b {
    flex: 1 1 auto;
  }
}

/* Event access block (online/offline) — used by view/receipt modals */
.sh-event-access {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #E5E9E3;
  border-radius: 12px;
  background: #F7F8F3;
  margin-top: 0;
}

.sh-event-access-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.sh-event-access-icon {
  font-size: 13px;
  line-height: 1;
}

.sh-event-access-badge {
  color: #174D39;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
}

.sh-event-access-label {
  color: #718078;
  font-size: 12px;
  margin: 0 0 6px;
}

.sh-event-join-button,
.sh-event-map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: #174D39;
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
  box-sizing: border-box;
}

.sh-event-join-button:hover,
.sh-event-map-button:hover {
  background: #236B4E;
}

.sh-event-link-pending,
.sh-event-venue {
  color: #202923;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.sh-event-venue {
  margin-bottom: 10px;
}

/* Event details / receipt modals */
.sh-myreg-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(10, 20, 14, .62);
}

.sh-myreg-modal-panel {
  position: relative;
  box-sizing: border-box;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #e5e9e3;
  border-radius: 14px;
  background: #fff;
  color: #202923;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  font-family: "DM Sans", system-ui, sans-serif;
}

.sh-myreg-modal-panel h2 {
  margin: 8px 36px 14px 0;
  color: #174d39;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
}

.sh-myreg-modal-close {
  position: sticky;
  float: right;
  top: 0;
  width: 36px;
  height: 36px;
  border: 1px solid #e5e9e3;
  border-radius: 10px;
  background: #fff;
  color: #174d39;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
}

.sh-myreg-modal-kicker {
  color: #718078;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.sh-myreg-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sh-myreg-info-box {
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #E5E9E3;
  border-radius: 12px;
  background: #fff;
}

.sh-myreg-info-box-image,
.sh-myreg-info-box-access,
.sh-myreg-info-box-full {
  grid-column: 1 / -1;
}

.sh-myreg-info-label {
  margin: 0 0 6px;
  color: #718078;
  font-size: 12px;
  font-weight: 700;
}

.sh-myreg-info-value {
  color: #174D39;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.sh-myreg-modal-image {
  display: block;
  width: 100%;
  max-height: 260px;
  margin: 0;
  border-radius: 10px;
  object-fit: cover;
}

.sh-myreg-modal-description {
  margin: 0;
  color: #202923;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sh-myreg-info-box .sh-event-access {
  background: #F7F8F3;
}

/* Receipt */
.sh-myreg-receipt-panel {
  width: min(760px, 100%);
}

.sh-receipt-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.sh-receipt-qr-wrap {
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #E5E9E3;
  border-radius: 12px;
  background: #fff;
  width: 100%;
  max-width: 220px;
}

.sh-receipt-qr-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  image-rendering: pixelated;
  background: #fff;
}

.sh-receipt-qr-placeholder {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718078;
  font-size: 13px;
}

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

.sh-receipt-event-image {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 700px) {
  .sh-receipt-layout {
    grid-template-columns: 1fr;
  }

  .sh-receipt-qr-wrap {
    max-width: 240px;
  }
}

@media (max-width: 480px) {
  .sh-myreg-modal {
    padding: 10px;
  }

  .sh-myreg-modal-panel {
    max-height: calc(100vh - 20px);
    padding: 18px;
  }

  .sh-myreg-detail-grid,
  .sh-receipt-grid {
    grid-template-columns: 1fr;
  }

  .sh-event-join-button,
  .sh-event-map-button {
    width: 100%;
  }
}

/* My Events cancel-registration response modal (matches existing Students Home response modals) */
#sh-cancelreg-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(32, 41, 35, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
  z-index: 3000;
}

#sh-cancelreg-modal .sh-cancelreg-panel {
  min-height: 0;
  background-color: #ffffff;
  border-radius: 16px;
  box-sizing: border-box;
  padding: 22px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  align-items: flex-start;
}

#sh-cancelreg-modal .sh-cancelreg-icon {
  display: block;
  width: 40px;
  height: 40px;
}

#sh-cancelreg-modal .sh-cancelreg-title {
  margin: 0;
  padding: 0;
  color: #174d39;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

#sh-cancelreg-modal .sh-cancelreg-text {
  margin: 0;
  padding: 0;
  color: #718078;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

#sh-cancelreg-modal .sh-cancelreg-actions {
  width: 100%;
  min-height: 0;
  display: flex;
  justify-content: flex-end;
  column-gap: 10px;
  row-gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 0 0;
}

#sh-cancelreg-modal .sh-cancelreg-btn {
  align-items: center;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 0;
  height: 40px;
  padding: 0 18px;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  border: 1px solid #174d39;
  background-color: #ffffff;
  color: #174d39;
}

#sh-cancelreg-modal .sh-cancelreg-btn:hover {
  background-color: #e5f0e8;
}

#sh-cancelreg-modal .sh-cancelreg-btn.primary {
  background-color: #174d39;
  border-color: #174d39;
  color: #ffffff;
}

#sh-cancelreg-modal .sh-cancelreg-btn.primary:hover {
  background-color: #0f3a2a;
}

#sh-cancelreg-modal .sh-cancelreg-btn.danger {
  background-color: #ffffff;
  border-color: #b3261e;
  color: #b3261e;
}

#sh-cancelreg-modal .sh-cancelreg-btn.danger:hover {
  background-color: #fdecea;
}

@media (max-width: 480px) {
  #sh-cancelreg-modal {
    padding: 14px;
  }

  #sh-cancelreg-modal .sh-cancelreg-panel {
    max-width: 100%;
  }
}
