:root {
  color: #18222d;
  background: #eef2f6;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button {
  border: 0; border-radius: 10px; padding: 10px 16px;
  color: #fff; background: #1769aa; cursor: pointer; font-weight: 650;
}
button.secondary { background: #e3ebf3; color: #18344d; }
button.danger { background: #a52d3d; }
button.compact { padding: 7px 11px; }
button:disabled { opacity: .48; cursor: not-allowed; }
.app-shell { max-width: 1480px; margin: 0 auto; padding: 24px; }
.app-header, .section-heading, .actions, .filter-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.app-header {
  border-radius: 18px; padding: 24px; color: #fff;
  background: linear-gradient(125deg, #173d60, #1769aa);
  box-shadow: 0 16px 40px rgba(18, 48, 74, .16);
}
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(25px, 3vw, 38px); }
h2 { margin-bottom: 8px; }
.eyebrow {
  margin-bottom: 7px; font-size: 12px; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase; opacity: .74;
}
.badge {
  border: 1px solid rgba(255,255,255,.55); border-radius: 999px;
  padding: 6px 10px; font-size: 12px; font-weight: 800;
}
.notice, .panel {
  margin-top: 16px; padding: 18px; border: 1px solid #d9e3ec;
  border-radius: 16px; background: #fff;
}
.notice { border-color: #b7d6ed; color: #174b70; background: #edf8ff; }
.notice.error { border-color: #edb8bf; color: #7e1d2a; background: #fff2f3; }
.notice small { display: block; margin-top: 4px; font-family: monospace; }
.filters {
  display: grid; grid-template-columns: repeat(5, minmax(135px, 1fr));
  gap: 12px; align-items: end;
}
label { display: grid; gap: 6px; font-size: 13px; font-weight: 650; }
input, select {
  width: 100%; min-height: 40px; padding: 8px 10px;
  border: 1px solid #c7d4df; border-radius: 9px; background: #fff;
}
.checkbox { display: flex; align-items: center; min-height: 40px; }
.checkbox input { width: auto; min-height: auto; }
.filter-actions { justify-content: flex-start; }
.table-wrap { margin-top: 18px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 11px 9px; border-bottom: 1px solid #e5ebf0;
  text-align: left; vertical-align: middle;
}
th { color: #536574; font-size: 12px; }
tbody tr { cursor: pointer; }
tbody tr.selected { background: #eaf5fc; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; margin: 16px 0;
}
.facts div { padding: 10px; border-radius: 10px; background: #f3f6f8; }
dt { color: #60717f; font-size: 12px; }
dd { margin: 4px 0 0; font-weight: 700; }
.actions { justify-content: flex-start; flex-wrap: wrap; }
.reservation-controls {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px;
  margin: 14px 0;
}
@media (max-width: 980px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .app-shell { padding: 12px; }
  .app-header { padding: 18px; }
  .filters, .facts, .reservation-controls { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tbody { display: grid; gap: 10px; }
  tbody tr { border: 1px solid #dce5ec; border-radius: 12px; padding: 10px; }
  td {
    display: grid; grid-template-columns: minmax(105px, 42%) 1fr;
    gap: 8px; padding: 7px 4px;
  }
  td::before { content: attr(data-label); color: #60717f; font-size: 12px; }
  .actions, .filter-actions { display: grid; grid-template-columns: 1fr; }
  .actions button, .filter-actions button { width: 100%; }
}
