.navmenu a.header-book-btn {
  background-color: #007aff !important;
  color: #ffffff !important;
  border-radius: 5px;
  border: 1px solid #4d5154;
  padding: 8px 16px !important;
  font-weight: 600;
}

.navmenu a.header-book-btn:hover,
.navmenu a.header-book-btn:focus {
  background-color: #0066d6 !important;
  color: #ffffff !important;
}

.navmenu a.staff-header-btn {
  background: transparent !important;
  color: #007aff !important;
  border: 1px solid #007aff;
  border-radius: 5px;
  padding: 6px 12px !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  margin-left: 6px;
  text-transform: none;
}

.navmenu a.staff-header-btn:hover,
.navmenu a.staff-header-btn:focus {
  background: #007aff !important;
  color: #ffffff !important;
}

.staff-login-card {
  max-width: 420px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-top: 4px solid #007aff;
}

.staff-login-card h2 {
  margin-top: 0;
  color: #007aff;
}

.staff-login-card p {
  color: #666;
  margin-bottom: 1.25rem;
}

.staff-login-card label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 1rem;
}

.staff-login-card input {
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  background: #fff;
}

.staff-login-card input:focus {
  outline: none;
  border-color: #007aff;
}

.staff-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.staff-error,
.staff-ok {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin: 0 0 1rem;
}

.staff-error {
  color: #b83a3a;
  background: #fdeeee;
  border: 1px solid #efc0c0;
}

.staff-ok {
  color: #1d6b46;
  background: #eef8f2;
  border: 1px solid #b7e0c8;
}

.dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  min-height: 60vh;
}

.dash-nav {
  background: #1c3d6e;
  color: #e8f1ff;
  border-radius: 5px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: fit-content;
}

.dash-nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e8f1ff;
  text-decoration: none;
}

.dash-nav a:hover,
.dash-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.dash-nav .brand-mini {
  font-family: "Raleway", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
  color: #fff;
}

.dash-nav .muted-name {
  font-size: 0.8rem;
  color: #c5d7f2;
  padding: 0 0.5rem 0.75rem;
}

.staff-panel {
  background: #fff;
  border-radius: 5px;
  padding: 1.25rem 1.5rem 2rem;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.06);
}

.staff-panel h1 {
  margin-top: 0;
}

.staff-panel h3 {
  margin-top: 1.5rem;
}

.staff-form-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr 1fr;
}

.staff-form-grid .full {
  grid-column: 1 / -1;
}

.staff-panel label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

.staff-panel input,
.staff-panel select,
.staff-panel textarea {
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: #444;
  font-size: 14px;
}

.staff-panel textarea {
  height: auto;
}

.staff-panel input:focus,
.staff-panel select:focus,
.staff-panel textarea:focus {
  outline: none;
  border-color: #007aff;
}

.staff-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 8px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.btn-primary {
  background: #007aff;
  color: #fff;
}

.btn-primary:hover {
  background: #0066d6;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: 2px solid #007aff;
  color: #007aff;
}

.btn-ghost:hover {
  background: #007aff;
  color: #fff;
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.staff-table th,
.staff-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid #e4e4e4;
  vertical-align: middle;
}

.staff-table th {
  color: #777;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.staff-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #e8f3ff;
  color: #0066d6;
  margin-right: 4px;
}

.staff-badge.new {
  background: #fff4d6;
  color: #7a5a12;
}

.staff-muted {
  color: #777;
}

.staff-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0.75rem 0;
}

.staff-check-row label {
  flex-direction: row;
  align-items: center;
  font-weight: 500;
  gap: 0.4rem;
}

.staff-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  background: #f7fcfc;
  padding: 0.75rem;
  border-radius: 5px;
}

.cal-head {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #777;
  padding: 0.35rem;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 4px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
  color: #444;
  text-decoration: none;
}

.cal-day.green {
  background: #e8f3ff;
  border-color: #b5d4f8;
  color: #0066d6;
}

.cal-day.yellow {
  background: #fff4d6;
  border-color: #e6c56a;
  color: #7a5a12;
}

.cal-day.grey {
  background: #ececec;
  color: #9aa5a3;
}

.cal-day.red {
  background: #f5d8d8;
  border-color: #d89a9a;
  color: #8a3030;
}

.cal-day.selected {
  outline: 2px solid #007aff;
  outline-offset: 1px;
}

.cal-day.empty {
  background: transparent;
}

.staff-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.slot {
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid #e4e4e4;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #444;
  text-decoration: none;
}

.slot.selected {
  background: #007aff;
  color: #fff;
  border-color: #007aff;
}

.slot.full {
  opacity: 0.55;
}

#doctors {
  scroll-margin-top: 130px;
}

.staff-warn {
  background: #fff8e6;
  border: 1px solid #e6c35c;
  color: #6a5200;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin: 0 0 1.25rem;
}

.staff-wa-panel {
  margin: 1rem 0 1.5rem;
}

@media print {
  header,
  footer,
  .header,
  .footer,
  .dash-nav,
  .no-print,
  .staff-error,
  .staff-ok,
  .staff-actions,
  .inline-forms,
  .btn {
    display: none !important;
  }

  .staff-wa-panel {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .staff-form-grid,
  .dash-layout {
    grid-template-columns: 1fr;
  }
}
