#admin_dashboard {
    padding: 5px 15px;
    position: fixed;
    top: 40%;
    left: 30px;
    z-index: 9999;
    color: #fff;
    background: #0a2b50;
    font-size: 16px;
    font-family: system-ui;
}

.filter-chip:has(input:checked) {
  background: #d1f0ff;
  border-color: var(--blue);
  color: var(--blue);
}

button.search-tab {
  appearance: none;
}

.flatpickr-calendar {
  font-family: Inter, "Plus Jakarta Sans", sans-serif;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(10, 43, 80, 0.16);
  border: 1px solid #e8eef5;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: #0b74e5;
  border-color: #0b74e5;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: #0a2b50;
  fill: #0a2b50;
}

.search-card [data-datepicker] {
  cursor: pointer;
  background: transparent;
}

.field select {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  color: #1a2b49;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* Tour detail reviews */
.detail-reviews {
  margin-top: 32px;
}

.detail-reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.detail-reviews__title {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.detail-reviews__write {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.detail-reviews__write i {
  font-size: 16px;
}

.detail-reviews__write:hover {
  background: rgba(0, 107, 224, 0.06);
}

.detail-reviews__alert {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 22px;
}

.detail-reviews__alert--success {
  color: #0f5132;
  background: #d1e7dd;
}

.detail-reviews__alert--error {
  color: #842029;
  background: #f8d7da;
}

.detail-reviews__summary {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  align-items: center;
  gap: 24px 32px;
  padding: 28px 32px;
  border-radius: 16px;
  background: var(--navy-deep);
  color: #fff;
}

.detail-reviews__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  text-align: center;
}

.detail-reviews__score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.detail-reviews__score-row img {
  width: 40px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.detail-reviews__laurel-flip {
  transform: scaleX(-1);
}

.detail-reviews__score-row strong {
  color: #fff;
  font-family: "Plus Jakarta Sans", var(--font);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
}

.detail-reviews__count {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.detail-reviews__bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.detail-reviews__bar-row {
  display: grid;
  grid-template-columns: 42px 1fr 28px;
  align-items: center;
  gap: 12px;
}

.detail-reviews__bar-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.detail-reviews__bar-label img {
  width: 14px;
  height: 14px;
  display: block;
}

.detail-reviews__bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.detail-reviews__bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #f5c518;
  transition: width 0.3s ease;
}

.detail-reviews__bar-count {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  text-align: right;
}

.detail-reviews__list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.review-card--detail {
  height: auto;
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  box-shadow: none;
  background: #fff;
}

.review-card--detail .review-card__text {
  height: auto;
  max-height: none;
  overflow: visible;
}

.review-modal {
  max-width: 640px;
}

.review-modal__content {
  padding: 24px;
  border: 0;
  border-radius: 16px;
}

.review-modal__title {
  color: var(--navy);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.review-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.detail-reviews__rating-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-reviews__rating-field > span {
  color: #262626;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.detail-reviews__rating-field em {
  color: #e11d48;
  font-style: normal;
}

.detail-reviews__stars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-reviews__stars label {
  margin: 0;
  cursor: pointer;
}

.detail-reviews__stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.detail-reviews__stars span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  background: #fff;
}

.detail-reviews__stars input:checked + span {
  color: var(--blue);
  border-color: var(--blue);
  background: rgba(0, 102, 204, 0.06);
}

.detail-reviews__note {
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

@media (max-width: 767.98px) {
  .detail-reviews__title {
    font-size: 20px;
    line-height: 28px;
  }

  .detail-reviews__summary {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 20px;
  }

  .detail-reviews__score {
    padding-right: 0;
    padding-bottom: 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .detail-reviews__score-row strong {
    font-size: 40px;
  }

  .detail-reviews__score-row img {
    width: 32px;
    height: 48px;
  }

  .detail-reviews__bar-row {
    grid-template-columns: 36px 1fr 24px;
    gap: 8px;
  }

  .review-modal__content {
    padding: 16px;
  }

  .review-modal__title {
    font-size: 20px;
    line-height: 28px;
  }

  .review-modal__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .review-modal__footer .btn {
    width: 100%;
  }
}
