#edit-pass-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30,30,30,0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Show modal via class toggle; keep attribute fallback for older JS paths */
#edit-pass-modal.is-open,
#edit-pass-modal[style*="display: flex"] {
    display: flex !important;
}

#edit-pass-modal-content {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px 20px 18px 20px;
    min-width: 320px;
    max-width: 92vw;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    font-family: "Lato", sans-serif;
    color: #212121;
}

/* Show Pass Barcode Modal */
#show-pass-barcode-modal {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    z-index: 9999;
}
#show-pass-barcode-modal.is-open,
#show-pass-barcode-modal[style*="display: flex"] {
    display: flex !important;
}
#show-pass-barcode-modal-content {
    background: #fff;
    max-width: 520px;
    width: 92vw;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
#close-show-pass-barcode-modal {
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 22px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}
#close-show-pass-barcode-modal:hover { color: #111; }
#pass-barcode-meta { margin-bottom: 10px; font-size: 14px; opacity: .8; }
#pass-barcode-img { max-width: 320px; width: 100%; height: auto; border: 1px solid #eee; border-radius: 8px; padding: 12px; }
#pass-barcode-legend { margin-top: 10px; font-size: 13px; opacity: .85; }

#edit-pass-modal-content h2 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

#edit-pass-modal-content label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

#edit-pass-modal-content input,
#edit-pass-modal-content textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 16px;
    box-sizing: border-box;
    font-family: inherit;
}

#edit-pass-modal-content textarea {
    resize: vertical;
}

#edit-pass-modal-content .form-group {
    margin-bottom: 20px;
}

#edit-pass-modal-content .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

#close-edit-pass-modal {
    position: absolute;
    top: 10px; right: 10px;
    font-size: 22px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}
#close-edit-pass-modal:hover { color: #111; }

.form-group {
    margin-bottom: 1em;
}

#eventive-account-details-container {
    flex: 1;
}

#eventive-passes-list,
#eventive-passes-column{
    flex: 1;
}

.eventive-pass-list-item {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding: 16px 56px 16px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.12);
  margin-bottom: 18px;
  transition: box-shadow 0.3s;
}

.eventive-pass-actions {
  position: absolute;
  top: 0;
  right: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 12px 0;
}

.eventive-pass-button-container {
  position: relative;
}

.eventive-pass-manage-btn {
  display: inline-block;
  height: 36px;
  line-height: 33px;
  padding: 0 16px;
  border: 1px solid #222;
  border-radius: 2px;
  background: #fff;
  color: #222;
  font-family: Lato, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.eventive-pass-title {
  font-size: 16px;
  font-weight: 600;
  color: #212121;
  margin-bottom: 4px;
}

.eventive-pass-meta {
  font-size: 14px;
  color: rgba(0,0,0,0.54);
  line-height: 18px;
  margin-bottom: 2px;
}

.eventive-pass-pullout-menu {
  position: absolute;
  top: 40px;
  right: 0;
  background: #b3b0b0 !important;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  z-index: 10;
  min-width: 180px;
  padding: 8px 0;
  display: none;
  flex-direction: column;
  gap: 0;
}

.eventive-pass-pullout-menu button {
  width: 100%;
  background: none;
  border: none;
  color: #222;
  font-size: 15px;
  padding: 12px 20px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.eventive-pass-pullout-menu button:hover {
  background: #f5f7fa;
}

.pass-submit-row-button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.pass-submit-row-button:hover {
  background-color: #0056b3;
}

@media (max-width: 900px) {
  .eventive-pass-actions {
    flex-direction: column;
    align-items: center;
    position: static;
    padding-top: 8px;
  }

  .eventive-pass-manage-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .eventive-pass-list-item {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
}

.supplementary-fields .form-group + .form-group { margin-top: 10px; }
.eventive-edit-pass-modal .form-group label { display:block; font-weight:600; }
.eventive-edit-pass-modal input[type="text"],
.eventive-edit-pass-modal input[type="tel"],
.eventive-edit-pass-modal select,
.eventive-edit-pass-modal textarea { width:100%; box-sizing:border-box; }