/* Feedback & star ratings */

.vmhs-star-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.vmhs-star-rating__star {
  border: none;
  background: transparent;
  padding: 0.15rem;
  font-size: 1.75rem;
  line-height: 1;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.15s, transform 0.1s;
}

.vmhs-star-rating__star:hover,
.vmhs-star-rating__star.is-active {
  color: #f59e0b;
  transform: scale(1.08);
}

.vmhs-star-rating__star:focus-visible {
  outline: 2px solid var(--vmhs-brand, #B7670F);
  border-radius: 4px;
}

.vmhs-stars-display {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.vmhs-stars-display--sm {
  font-size: 0.9rem;
}

.vmhs-stars-display .ti-star-filled {
  color: #f59e0b;
}

.vmhs-stars-display .ti-star {
  color: #e2e8f0;
}

.vmhs-feedback-card .vmhs-rating-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.vmhs-feedback-done {
  padding: 1rem 1.1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
}

.vmhs-feedback-thanks {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.vmhs-feedback-thanks .ti {
  font-size: 1.5rem;
  margin-top: 0.1rem;
}

.vmhs-feedback-tabs .nav-link {
  font-weight: 600;
}

.vmhs-feedback-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #f8fafc;
}

.vmhs-feedback-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.65rem;
  color: #475569;
  font-weight: 600;
  text-decoration: none;
}

.vmhs-feedback-switch__item:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.8);
}

.vmhs-feedback-switch__item.is-active {
  background: #fff;
  color: #8a4d0b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.vmhs-feedback-ticket-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.75rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.vmhs-feedback-ticket-chip__ref {
  display: block;
  font-weight: 700;
  color: #9a3412;
}

.vmhs-feedback-ticket-chip__title {
  display: block;
  font-size: 0.85rem;
  color: #78716c;
}

.vmhs-feedback-verify {
  padding: 0.85rem 0.95rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.vmhs-feedback-aside {
  padding: 1.1rem 1.15rem;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

.vmhs-feedback-aside ul {
  padding-left: 1.1rem;
  color: #64748b;
  font-size: 0.875rem;
}

.vmhs-feedback-aside__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.vmhs-recommend-options ul,
.vmhs-recommend-options {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vmhs-recommend-options li,
.vmhs-recommend-options div {
  margin: 0;
}

.vmhs-recommend-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid #d7dee8;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: #475569;
}

.vmhs-recommend-options input {
  margin: 0;
}

.vmhs-recommend-options input:checked + label,
.vmhs-recommend-options label:has(input:checked) {
  border-color: var(--vmhs-brand, #b7670f);
  background: rgba(183, 103, 15, 0.08);
  color: #8a4d0b;
}

.vmhs-feedback-summary-card {
  border-left: 4px solid #f59e0b;
}

.vmhs-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.vmhs-rating-badge--high {
  background: #d1fae5;
  color: #047857;
}

.vmhs-rating-badge--mid {
  background: #fef3c7;
  color: #b45309;
}

.vmhs-rating-badge--low {
  background: #fee2e2;
  color: #b91c1c;
}

/* Staff inbox */
.vmhs-feedback-admin .vmhs-quick-stats-bar__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.vmhs-feedback-attention-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.vmhs-feedback-attention {
  padding: 0.9rem 1rem;
  border: 1px solid #fecaca;
  border-radius: 0.85rem;
  background: #fff7f7;
}

.vmhs-feedback-attention__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.vmhs-feedback-attention__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #991b1b;
}

.vmhs-feedback-attention__list {
  display: grid;
  gap: 0.45rem;
}

.vmhs-feedback-attention__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: #fff;
  border: 1px solid #fee2e2;
  text-decoration: none;
  color: inherit;
}

.vmhs-feedback-attention__item:hover {
  border-color: #fca5a5;
}

.vmhs-feedback-attention__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
  font-size: 0.84rem;
}

.vmhs-feedback-attention__meta span {
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vmhs-feedback-row--low {
  background: rgba(254, 226, 226, 0.35);
}

.vmhs-feedback-table td {
  vertical-align: top;
}

.vmhs-feedback-bars__row {
  display: grid;
  grid-template-columns: 2rem 1fr 1.5rem;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
}

.vmhs-feedback-bars__track {
  display: block;
  height: 0.45rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.vmhs-feedback-bars__track > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #b7670f);
  border-radius: inherit;
}

.vmhs-feedback-bars__count {
  text-align: right;
  color: #64748b;
  font-weight: 600;
}

.vmhs-feedback-topics li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.85rem;
}

.vmhs-feedback-topics li:last-child {
  border-bottom: 0;
}

/* Reports satisfaction */
.vmhs-feedback-report {
  display: grid;
  gap: 1rem;
}

.vmhs-feedback-report__empty {
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 0.875rem;
}

@media (max-width: 575.98px) {
  .vmhs-feedback-switch {
    grid-template-columns: 1fr;
  }

  .vmhs-feedback-ticket-chip {
    flex-direction: column;
    align-items: flex-start;
  }
}
