:root {
  --waiv-blue-950: #0c2238;
  --waiv-blue-900: #0f2742;
  --waiv-blue-800: #14375a;
  --waiv-blue-700: #1e4f80;
  --waiv-blue-600: #2c6aa8;
  --waiv-blue-200: #cfe2f5;
  --waiv-blue-100: #eaf3fb;
  --waiv-blue-050: #f4f9ff;
  --waiv-gray-900: #1f2933;
  --waiv-gray-700: #4a5a6a;
  --waiv-gray-400: #aab6c2;
  --waiv-gray-300: #c9d2db;
  --waiv-gray-200: #dde4ea;
  --waiv-gray-100: #f4f7fa;
  --waiv-white: #ffffff;
}

body {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--waiv-blue-050) 0%, #f8fbff 280px, var(--waiv-white) 500px);
  color: var(--waiv-gray-900);
}
          header {
            background: linear-gradient(90deg, var(--waiv-blue-950), var(--waiv-blue-800));
            color: var(--waiv-white);
            padding: 10px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
          }
          .nav-buttons button {
            margin-right: 8px;
          }
          main { padding: 16px; }
          .section { display: none; }
          .section.active { display: block; }
          table {
            border-collapse: collapse;
            width: 100%;
            margin-top: 8px;
          }
          th, td {
            border: 1px solid var(--waiv-gray-300);
            padding: 4px 6px;
            font-size: 13px;
          }
          th {
            background: var(--waiv-blue-100);
            color: var(--waiv-blue-900);
          }
          .top-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
          }
          .top-row > div {
            margin-right: 16px;
          }
          .search-input {
            width: 220px;
          }
          .muted {
            font-size: 12px;
            color: var(--waiv-gray-700);
          }
          .badge {
            display: inline-block;
            padding: 0 6px;
            border-radius: 3px;
            border: 1px solid var(--waiv-gray-400);
            font-size: 11px;
          }
          .waiver-select-cell {
            text-align: center;
            width: 40px;
          }
          .waivers-layout {
            display: flex;
            align-items: flex-start;
            gap: 16px;
          }
          .group-panel {
            width: 220px;
            border: 1px solid var(--waiv-gray-300);
            padding: 8px;
            background: var(--waiv-white);
            font-size: 13px;
          }
          .group-panel h3 {
            margin-top: 0;
            margin-bottom: 6px;
            font-size: 14px;
          }
          .group-panel ul {
            list-style: none;
            padding-left: 0;
            margin: 0;
          }
          .group-panel li {
            padding: 2px 0;
          }
          .waivers-main {
            flex: 1;
          }


/* Left-side waiver group list */
/* Left-side waiver group list */
/* Left-side waiver group list */
  #waiverGroupsList {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  #waiverGroupsList li.waiver-group-item {
    cursor: pointer;
    padding: 3px 6px;
  }

  #waiverGroupsList li.waiver-group-item:hover {
    background: var(--waiv-blue-100);
  }

  #waiverGroupsList li.active {
    font-weight: bold;
  }

  #waiverGroupsList li.waiver-group-all {
    border-bottom: 1px solid var(--waiv-gray-300);
    margin-bottom: 4px;
    padding-bottom: 4px;
  }

.col-notes .muted {
  font-size: 11px;
  color: var(--waiv-gray-700);
}

.reservation-notes-row td {
  font-size: 12px;
  padding-top: 2px;
  padding-bottom: 6px;
  border-top: none;
}

.reservation-notes-cell {
  color: var(--waiv-gray-900);
}

.reservation-contact-row td,
.reservation-addons-row td,
.reservation-customer-notes-row td,
.reservation-notes-row td {
  font-size: 12px;
  border-top: none;
}

.reservation-contact-cell {
  color: var(--waiv-gray-900);
  background: #fbfdff;
}

.settings-header {
  background: linear-gradient(90deg, var(--waiv-blue-950), var(--waiv-blue-800));
  color: var(--waiv-white);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-main {
  padding: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.btn-link {
  color: var(--waiv-white);
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: underline;
}

.flash-success {
  padding: 8px 12px;
  border-radius: 4px;
  background: #e7f6ed;
  border: 1px solid #b2dcc2;
  color: #155434;
  max-width: 900px;
}

/* ===== Admin shared layout header / nav ===== */

.admin-header {
  background: linear-gradient(90deg, var(--waiv-blue-950), var(--waiv-blue-800));
  color: var(--waiv-white);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.admin-header-left {
  font-weight: 600;
}

.admin-title-line {
  line-height: 1.15;
}

.admin-user-line {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.86;
}

.admin-header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Top–level nav buttons (Reservations, Waivers, Settings, Log out) */
.nav-btn {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: var(--waiv-white);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-btn-active {
  background: var(--waiv-white);
  color: var(--waiv-blue-900);
  border-color: var(--waiv-white);
  font-weight: 600;
}

/* -----------------------------
   Settings dropdown (hover)
----------------------------- */
.nav-settings-wrapper {
  position: relative;
  display: inline-block;     /* anchor the absolute menu */
}

/* the dropdown panel */
.nav-settings-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;                  /* align under Settings */
  min-width: 190px;
  background: var(--waiv-white);
  border: 1px solid var(--waiv-gray-300);
  border-radius: 10px;
  padding: 6px;
  z-index: 2000;
  box-shadow: 0 12px 24px rgba(15, 39, 66, 0.16);
}

/* show on hover */
.nav-settings-wrapper:hover .nav-settings-menu {
  display: block;
}

/* optional: hover “bridge” so tiny gaps don’t close the menu */
.nav-settings-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

/* menu items */
.nav-settings-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--waiv-gray-900);
  white-space: nowrap;
}

.nav-settings-menu a:hover {
  background: var(--waiv-blue-100);
}

tr.is-cancelled {
  opacity: 0.55;
}

tr.is-pending td {
  background: #fff7e6;
}

.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--waiv-gray-300);
}

.status-pill.booked {
  background: var(--waiv-blue-100);
}

.status-pill.pending {
  background: #fff1cc;
}

.status-pill.cancelled {
  background: #f3f3f3;
}

.reservation-date-divider-cell {
  background: var(--waiv-gray-100);
  font-weight: 700;
}

.player-signature-img {
  max-width: 400px;
  height: auto;
}

.staff-login-page {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  max-width: 480px;
  margin: 40px auto;
}

.staff-login-card {
  border: 1px solid var(--waiv-gray-300);
  padding: 16px 20px;
  border-radius: 8px;
  background: var(--waiv-white);
  box-shadow: 0 10px 24px rgba(15, 39, 66, 0.08);
}

.staff-login-label {
  display: block;
  margin-top: 12px;
}

.staff-login-page input[type="text"],
.staff-login-page input[type="password"] {
  width: 100%;
  padding: 6px 8px;
  margin-top: 4px;
  box-sizing: border-box;
}

.staff-login-page button {
  margin-top: 16px;
  padding: 8px 16px;
  cursor: pointer;
}

.staff-login-error {
  margin-top: 12px;
  color: #b00020;
}

.staff-login-page .muted {
  font-size: 12px;
  color: var(--waiv-gray-700);
  margin-top: 8px;
}

.staff-login-links {
  margin-top: 12px;
  font-size: 13px;
}

.staff-login-links a {
  color: var(--waiv-blue-700);
  text-decoration: none;
}

.staff-login-links a:hover {
  text-decoration: underline;
}

.player-details-page {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  margin: 16px;
}

.player-details-page h1 {
  margin-bottom: 4px;
}

.player-details-page .muted {
  color: var(--waiv-gray-700);
  font-size: 13px;
}

.player-details-page .block {
  margin-bottom: 12px;
}

.player-details-page ul {
  padding-left: 20px;
}

.player-details-page .signature-box {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--waiv-gray-300);
  display: inline-block;
  background: var(--waiv-gray-100);
}

.player-details-page .minor-pill {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 6px;
  border-radius: 999px;
  font-size: 11px;
  background: #ffe4e4;
  color: #a11;
}

/* Main content spacing under the header */
.admin-main {
  padding: 16px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.btn-add-reservation {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--waiv-gray-300);
  background: var(--waiv-white);
  text-decoration: none;
  color: var(--waiv-blue-900);
  cursor: pointer;
}

.btn-add-reservation:hover {
  background: var(--waiv-blue-100);
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.settings-table th,
.settings-table td {
  border-bottom: 1px solid var(--waiv-gray-200);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.settings-table thead th {
  font-weight: 600;
  border-bottom: 2px solid var(--waiv-blue-200, #cfe2f5);
  background: var(--waiv-blue-100);
  color: var(--waiv-blue-900);
}

.settings-table tbody tr:nth-child(even) {
  background: #fbfdff;
}

.settings-table tbody tr:hover {
  background: #f1f7fd;
}

.settings-table input,
.settings-table select {
  max-width: 100%;
}

.settings-table tr.muted {
  opacity: 0.65;
}

.flash-success {
  background: #e7f6ed;
  border: 1px solid #b2dcc2;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 10px 0;
  color: #155434;
}

dialog::backdrop { background: rgba(0,0,0,0.3); }

.status-badge{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid var(--waiv-gray-300);
  margin-left:8px;
  letter-spacing:.3px;
}
.status-booked{ background:#eaf3fb; color:#1e4f80; border-color:#b9d2e9; }
.status-pending{ background:#fff4cc; color:#6a4b00; border-color:#f1da88; }
.status-cancelled{ background:#fdecea; color:#b02a37; border-color:#f5c2c7; }
.status-rescheduled{ background:#eef1f4; color:#556270; border-color:#c8d0d8; }

.table-sort-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.table-sort-btn[aria-pressed="true"] {
  font-weight: 700;
}

tr.row-cancelled{ opacity:.55; }

tr.row-pending{ background:#fffdf0; }

tr.row-rescheduled{ background:#f7f8fa; }

/* Reservation divider: visual separation between bookings */
.reservation-divider-row td {
  padding: 0;
  height: 14px;              /* adjust */
  background: var(--waiv-gray-100);       /* subtle grey */
  border: 0;
}

/* Optional: keep the divider from getting weird borders */
.reservation-divider-row {
  border: 0;
}

.waiver-select-cell {
  width: 40px;
  min-width: 40px;
  text-align: center;
}
