.hidden {
  display: none;
}

#status {
  text-align: center;
  font-style: italic;
  font-size: 1.25rem;
  margin: 0.5rem 0 1.5rem;
}
.button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
}

.button-row button {
  min-width: 150px;
  padding: 0.75rem 1.25rem;

  border: 1px solid #26384d;
  border-radius: 7px;

  background: #26384d;
  color: #ffffff;

  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;

  cursor: pointer;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.button-row button:hover {
  background: #354e69;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.button-row button:active {
  transform: translateY(0);
  box-shadow: none;
}

.button-row button:focus-visible {
  outline: 3px solid #8bb8e8;
  outline-offset: 3px;
}

.button-row button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 600px) {
  .button-row {
    gap: 0.8rem;
  }

  .button-row button {
    min-width: 135px;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
  }
}

#eventsTable,
#sendersTable {
  width: auto;
  max-width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #999;
  table-layout: auto;
}

#eventsTable th,
#eventsTable td,
#sendersTable th,
#sendersTable td {
  border: 1px solid #999;
  padding: 0.65rem;
  text-align: left;
  vertical-align: top;
}

#sendersTable th {
  font-weight: bold;
  background: #f2f2f2;
}

#eventsTable th,
#sendersTable th {
  background: #26384d;
  color: white;
  font-weight: bold;
}

#eventsTable td:nth-child(3) {
  line-height: 1.35;
}

#eventsTable td:first-child {
  white-space: nowrap;
}

#eventsTable a {
  text-decoration: none;
}

#eventsTable a:hover {
  text-decoration: underline;
}

#eventsTable th:nth-child(1),
#eventsTable td:nth-child(1) {
  width: 150px;
  white-space: nowrap;
}

#eventsTable th:nth-child(2),
#eventsTable td:nth-child(2) {
  width: 95px;
  white-space: nowrap;
}

#eventsTable th:nth-child(3),
#eventsTable td:nth-child(3) {
  width: 420px;
  max-width: 420px;
}

#eventsTable th:nth-child(4),
#eventsTable td:nth-child(4) {
  width: 150px;
  white-space: nowrap;
}

#eventsTable th:nth-child(5),
#eventsTable td:nth-child(5) {
  width: 75px;
  white-space: nowrap;
}

#sendersTable {
  width: auto;
  table-layout: auto;
  margin-left: auto;
  margin-right: auto;
}

#sendersTable th,
#sendersTable td {
  white-space: nowrap;
}

.hidden {
  display: none;
}

#loginPanel {
  max-width: 420px;
  margin: 4rem auto;
  padding: 2rem;
  border: 1px solid #999;
  border-radius: 8px;
  text-align: center;
}

#appPassword {
  width: 80%;
  padding: 0.6rem;
  margin: 1rem 0;
  font-size: 1rem;
}

#loginButton {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
}

#loginError {
  color: #b00020;
  min-height: 1.2rem;
}

.tickets-cell {
  text-align: center;
  vertical-align: middle;
}

.ticket-button {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border: 1px solid #26384d;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  background: #f7f7f7;
  color: #26384d;
}

.ticket-button:hover {
  background: #e8f0fe;
  text-decoration: none;
}

#eventsTable tbody tr:nth-child(odd) {
  background: #ffffff;
}

#eventsTable tbody tr:nth-child(even) {
  background: #f3f6fa;
}

#eventsTable tbody tr.weekend-event,
#eventsTable tbody tr.weekend-event:nth-child(odd),
#eventsTable tbody tr.weekend-event:nth-child(even) {
  background: #fdeaea;
}

#eventsTable tbody tr.weekend-event:hover {
  background: #f8d6d6;
}

#eventsTable tbody tr:hover {
  background: #e8f0fe;
}

@media (max-width: 600px) {
  #eventsTable th,
  #eventsTable td {
    padding: 0.45rem;
    font-size: 0.9rem;
  }

  .ticket-button {
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
  }
}

