* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  background: #f1f5f9;
}

.card {
  width: 100%;
  max-width: 360px;
  margin: 16px;
  padding: 32px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card.wide {
  max-width: 1100px;
  padding: 32px;
}

.brand-header {
  display: flex;
  justify-content: center;
  margin: 0 auto 20px;
}

.brand-header img {
  display: block;
  width: auto;
  max-width: min(100%, 110px);
  height: 110px;
  object-fit: contain;
}

.nav-row,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.admin-actions .button,
.nav-row .button {
  width: auto;
  min-width: 150px;
}

.button.secondary {
  background: #475569;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  margin: 28px 0 0;
  border-bottom: 1px solid #cbd5e1;
  overflow-x: auto;
}

.admin-tab {
  flex: 0 0 auto;
  width: auto;
  min-width: 140px;
  padding: 12px 16px;
  color: #334155;
  background: transparent;
  border-bottom: 3px solid transparent;
  border-radius: 0;
}

.admin-tab[aria-selected="true"] {
  color: #166534;
  background: #f0fdf4;
  border-bottom-color: #16a34a;
}

.admin-tab:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: -2px;
}

.tab-panel {
  padding-top: 24px;
}

.tab-panel[hidden] {
  display: none;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-actions .button {
  width: auto;
  min-width: 140px;
}

.csv-import {
  max-width: 620px;
  margin: 24px 0;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.csv-import-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.csv-import-row input {
  margin: 0;
}

.csv-import-row button {
  width: auto;
  flex: 0 0 auto;
}

.muted {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 13px;
}

.table-scroll {
  overflow-x: auto;
}

.booking-filter {
  width: min(100%, 260px);
  margin: 16px 0;
}

.booking-filter select {
  margin: 0;
}

.cancel-booking-form {
  min-width: 190px;
  margin-top: 10px;
}

.cancel-booking-form label {
  font-size: 12px;
}

textarea {
  width: 100%;
  min-height: 64px;
  padding: 8px;
  font: inherit;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: #16a34a;
}

.audit-fields {
  margin: 16px 0;
  padding: 12px 14px 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.audit-fields legend {
  padding: 0 6px;
  color: #475569;
  font-size: 13px;
}

button.danger-button {
  width: auto;
  margin-top: 6px;
  padding: 8px 10px;
  color: #fff;
  background: #b91c1c;
  font-size: 13px;
}

.delete-booking-form {
  display: inline;
  margin-left: 8px;
}

button.delete-booking-link {
  display: inline;
  width: auto;
  padding: 0;
  color: #b91c1c;
  background: transparent;
  font-size: inherit;
  text-decoration: underline;
}

.panel {
  margin-top: 28px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  background: #fff;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

th {
  background: #f8fafc;
  color: #334155;
}

select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}

form .checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 18px;
}

form input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 720px) {
  .card.wide {
    padding: 20px 16px;
  }

  .inline-fields {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
  }

  .csv-import-row {
    align-items: stretch;
    flex-direction: column;
  }
}

h1 { margin: 0 0 24px; font-size: 22px; text-align: center; color: #1e293b; }

h2 { margin: 0 0 12px; font-size: 18px; color: #1e293b; }

label { display: block; margin-bottom: 6px; font-size: 14px; color: #334155; }

input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

input:focus { outline: none; border-color: #16a34a; }

input[readonly] {
  background: #f8fafc;
  color: #475569;
  cursor: default;
}

select:focus { outline: none; border-color: #16a34a; }

button, .button {
  display: block;
  width: 100%;
  padding: 11px;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: #16a34a;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.error { margin: 16px 0 0; font-size: 14px; text-align: center; color: #dc2626; }
