.booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}
.booking .card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}
.booking .card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 20px;
}
.booking .card-title .icon {
  color: var(--primary);
}
.booking .booking-contacts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 16px;
  margin: 16px 0;
}
.booking .booking-contacts dt {
  font-weight: 600;
}
.booking .booking-contacts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .booking .booking-contacts {
    grid-template-columns: minmax(0, 1fr);
  }
  .booking .booking-contacts dd {
    margin-bottom: 8px;
  }
}
.booking .booking-office,
.booking .booking-type {
  max-width: 360px;
  margin-bottom: 16px;
}
.booking .booking-office label,
.booking .booking-type label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
.booking .booking-office select,
.booking .booking-type select {
  width: 100%;
}
.booking .booking-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.booking .booking-nav .booking-range {
  min-width: 190px;
  font-weight: 650;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.booking .booking-nav .booking-first {
  margin-left: auto;
}
.booking .booking-nav .btn.disabled {
  opacity: .35;
}
.booking .booking-days {
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: opacity 150ms ease;
}
.booking .booking-days.is-loading {
  opacity: .5;
}
.booking .booking-day h3 {
  margin-bottom: 8px;
  font-size: 15px;
}
.booking .booking-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 6px;
}
.booking .booking-slots .booking-slot {
  min-height: 34px;
  font-variant-numeric: tabular-nums;
}
.booking .booking-slots .booking-slot:hover {
  border-color: var(--primary);
  background: var(--primary-50);
  color: var(--primary-active);
}
.booking .booking-empty {
  margin: 0;
  color: var(--text-muted);
}
.booking .booking-limit {
  margin: 0;
}
.booking.booking-my {
  max-width: 760px;
}
.booking .booking-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.booking .booking-waiting .booking-waiting-text {
  margin: 0 0 12px;
  color: var(--text-muted);
}
.booking .booking-waiting .booking-waiting-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 360px;
}
.booking .booking-waiting .booking-waiting-form .input-input {
  width: 100%;
}
.booking .booking-waiting .booking-waiting-form label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
.booking .booking-waiting .booking-waiting-form.only-leave > :not(.booking-waiting-buttons),
.booking .booking-waiting .booking-waiting-form.only-leave .booking-waiting-join {
  display: none;
}
.booking .booking-waiting .booking-waiting-off {
  margin: 0 0 12px;
}
.booking .booking-waiting .booking-waiting-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.booking .booking-notice {
  margin: 0 0 16px;
  white-space: pre-line;
}
.booking .booking-mine-book {
  margin: 16px 0 0;
}
.booking .booking-mine-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.booking .booking-reservation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.booking .booking-reservation > div {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}
.booking .booking-reservation > div span {
  color: var(--text-muted);
  font-size: 13px;
}
.booking .booking-reservation .btn {
  flex: 0 0 auto;
}
.booking .booking-reservation .booking-reservation-note {
  color: var(--text-muted);
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.booking .booking-reservation .booking-reservation-public {
  color: inherit;
  font-weight: 550;
}
.booking .booking-reservation .booking-cancel-phone {
  flex: 0 1 auto;
  color: var(--text-muted);
  text-align: right;
}
.booking .booking-reservation.inactive {
  background: var(--surface-alt);
  color: var(--text-muted);
}
.booking .booking-reservation.inactive strong {
  font-weight: 550;
}
@media (max-width: 899.98px) {
  .booking {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 639.98px) {
  .booking {
    gap: 12px;
  }
  .booking .booking-content {
    gap: 12px;
  }
  .booking .card {
    padding: 14px;
  }
  .booking .booking-nav .booking-range {
    flex: 1 1 auto;
    min-width: 0;
  }
  .booking .booking-nav .booking-first {
    width: 100%;
    margin-left: 0;
  }
}
.booking-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}
.booking-text > span {
  font-weight: 550;
}
.booking-text textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
}
.booking-text small {
  color: var(--text-muted);
}
.booking-text.invalid textarea {
  border-color: var(--danger);
}
.booking-notes p small {
  color: var(--text-muted);
}
