/* Batwara 1947 -- small additions on top of bat-styles.css (server error banner, admin screens). */

.field-error-banner {
  display: block;
  background: #3a0d0d;
  border: 1px solid #b01b1b;
  color: #ffc9c9;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-family: Inter, sans-serif;
  font-size: 14px;
}

.field-success-banner {
  display: block;
  background: #0d3a1a;
  border: 1px solid #1fa34d;
  color: #d9ffe4;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-family: Inter, sans-serif;
  font-size: 14px;
}

/* WebForms only allows one runat="server" <form> per page, so Default.aspx wraps the fields in
   a plain <div> instead of a real <form> -- this class restores the same vertical rhythm the
   original static mockup got for free from form { display:flex; flex-direction:column; gap:1.25rem }. */
.field-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Ticket stepper: give the -/+ buttons and count some air instead of sitting flush. */
.counter .btn-icon {
  min-width: 2.5rem;
  padding: 0.5rem 0.9rem;
}

/* The sticky summary bar's flex row (title+line on the left, button on the right,
   justify-content:space-between, no wrap) works at desktop widths but has no room on a
   phone once the theatre name/ticket count get long -- the button gets squeezed off.
   Stack it on narrow screens instead: text on its own row, full-width button below. */
@media (max-width: 640px) {
  .summary-inner {
    flex-wrap: wrap;
    row-gap: .6rem;
  }
  .summary-info {
    flex: 1 1 100%;
    min-width: 0;
  }
  .summary-line {
    white-space: normal;
    line-height: 1.4;
    word-break: break-word;
  }
  #confirm-btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* Real Transaction No. is long ("BAT" + timestamp + 4 chars, ~24 chars) -- wrap instead of scroll. */
.ticket-ref {
  font-size: 1.15rem;
  line-height: 1.5;
  word-break: break-all;
}

@media (max-width: 480px) {
  .ticket-ref {
    font-size: 1rem;
  }
}

/* Custom searchable dropdown for city/theatre (replaces native <input list="..."> +
   <datalist>, which iOS Safari doesn't render at all -- this works identically on every
   browser/device since none of it depends on native autocomplete UI). */
.combo {
  position: relative;
}

.combo-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 15rem;
  overflow-y: auto;
  background: #101915;
  border: 1px solid var(--border);
  border-radius: .5rem;
  z-index: 50;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}

.combo-item {
  padding: .7rem .875rem;
  font-size: .9rem;
  color: var(--off-white);
  cursor: pointer;
}

.combo-item:hover,
.combo-item.active {
  background: rgba(224,52,46,.15);
  color: var(--bat-red);
}

.combo-empty {
  padding: .7rem .875rem;
  font-size: .85rem;
  color: var(--muted);
}

/* Admin screens (C/Dashboard.aspx, C/AcceptedReport.aspx, C/RejectedReport.aspx,
   C/BATShowSchedule.aspx) live inside the shared Bootstrap admin shell and use their own
   page-scoped <style> blocks matching that template, not this file. */
