/* Addable Multiselect - Reusable UI Styles */
.multiselect-wrapper { position: relative; width: 100%; }
.multiselect-control { position: relative; }
.select-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; cursor: text; }
.select-btn:focus-within { outline: 2px solid #22c55e33; border-color: #22c55e; }
.select-btn .arrow { color: #667085; user-select: none; }
.ms-inline-input { flex: 1 1 auto; min-width: 120px; border: none; outline: none; background: transparent; font-size: 14px; }

/* Native select-like appearance variant */
.select-btn.ms-appearance-select {
  border: 1px solid #cbd5e1; /* closer to form select */
  border-radius: 6px;
  min-height: 36px;
  padding: 6px 10px;
}
.select-btn.ms-appearance-select:focus-within {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 2px rgba(148,163,184,0.2);
}
.select-btn.ms-appearance-select .arrow {
  pointer-events: none;
}

.dropdown-content { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1000; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); padding: 8px; max-height: 280px; overflow: auto; }
.dropdown-search { width: 100%; padding: 8px 10px; margin-bottom: 6px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 14px; }
.dropdown-no-results { display: none; padding: 8px; color: #9aa4b2; font-size: 14px; }
.ms-options-list { display: flex; flex-direction: column; gap: 2px; }
.ms-option { padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.ms-option:hover { background: #f3f4f6; }
.ms-option[aria-selected="true"] { background: #e6f7ef; color: #065f46; font-weight: 600; }
.ms-divider { height: 1px; background: #eef2f7; margin: 6px 0; }
.ms-add-row { padding: 8px 10px; border-radius: 6px; background: #f8fafc; color: #111827; cursor: pointer; font-size: 14px; }
.ms-add-row:hover { background: #eef2f7; }

/* Tag styles for multi-select mode (kept for compatibility) */
.ms-tag { display: inline-flex; align-items: center; gap: 6px; background: #eef2f7; color: #334155; padding: 2px 8px; border-radius: 999px; margin-right: 6px; font-size: 12px; }
.ms-tag-remove { appearance: none; background: transparent; border: none; color: #6b7280; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.ms-tag-remove:hover { color: #111827; }

/* Small screens */
@media (max-width: 640px) {
  .dropdown-content { max-height: 50vh; }
}
