.appointment-resource-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.appointment-resource-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.appointment-resource-picker {
  min-width: 0;
  position: relative;
}

.appointment-resource-picker-shell {
  position: relative;
  min-width: 0;
}

.appointment-resource-trigger {
  width: 100%;
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 38px 8px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.appointment-resource-picker.is-open .appointment-resource-trigger {
  border-color: rgba(15, 118, 110, 0.62);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}

.appointment-resource-value {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.appointment-resource-value strong,
.appointment-resource-value small,
.appointment-resource-placeholder {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-resource-value small,
.appointment-resource-placeholder {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.appointment-resource-caret {
  color: var(--primary);
  font-weight: 900;
}

.appointment-resource-clear {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: var(--panel-soft);
  color: var(--primary);
  font-weight: 900;
}

.appointment-resource-options {
  position: fixed;
  z-index: 185;
  top: var(--appointment-resource-top);
  left: var(--appointment-resource-left);
  width: var(--appointment-resource-width);
  max-height: var(--appointment-resource-max-height, 300px);
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  overflow: auto;
  background: #fff;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
}

.appointment-resource-options.is-above {
  transform: translateY(calc(-100% - 6px));
}

.appointment-resource-search {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-bottom: 4px;
  background: #fff;
}

.appointment-resource-search input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 10px;
  font: inherit;
}

.appointment-resource-option,
.appointment-resource-empty {
  width: 100%;
  display: grid;
  gap: 3px;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.appointment-resource-option:hover {
  background: var(--panel-soft);
}

.appointment-resource-option span,
.appointment-resource-empty {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}
