/* Custom Dropdown - polished, theme-aware, brand-adaptive interactions.
 *
 * Design rules:
 *   - The trigger is a <button>, so global button styles in base_elements
 *     apply. Every trigger / option / action declaration here uses
 *     !important to defeat that chain.
 *   - Hover / focus / selected are derived from --primary-blue, which each
 *     project overrides with its own accent, via var() + color-mix() so the
 *     same rules automatically pick up whatever color a project is branded
 *     with, in both light + dark.
 */

/* ── Container ─────────────────────────────────────────────────────── */
.custom-dropdown {
  position: relative;
  width: auto;
  display: inline-block;
  font-family: inherit;
}
.custom-dropdown.u-full-width {
  width: 100%;
  display: block;
}
.custom-dropdown.u-full-width .custom-dropdown-trigger {
  width: 100% !important;
}
.custom-dropdown.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Trigger (overrides global button styles) ──────────────────────── */
.custom-dropdown-trigger,
.custom-dropdown button.custom-dropdown-trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  /* Width is driven by JS (syncTriggerWidthToPanel) so the closed
     trigger always matches the panel's intrinsic width. The full-width
     opt-in still wins via .u-full-width below. */
  width: auto;
  min-height: var(--dropdown-trigger-min-height, 38px);
  padding: var(--dropdown-trigger-padding, 7px 12px) !important;
  margin: 0 !important;
  background: var(--input-bg, var(--container-bg)) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--dropdown-trigger-radius, 16px) !important;
  color: var(--text-color) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.4 !important;
  cursor: pointer;
  box-shadow: none !important;
  transform: none !important;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease !important;
  box-sizing: border-box;
}

.custom-dropdown-trigger:hover:not(:disabled),
.custom-dropdown button.custom-dropdown-trigger:hover:not(:disabled) {
  background: color-mix(
    in srgb,
    var(--primary-blue) 5%,
    var(--input-bg, var(--container-bg))
  ) !important;
  border-color: color-mix(
    in srgb,
    var(--primary-blue) 32%,
    var(--border-color)
  ) !important;
  color: var(--text-color) !important;
}

.custom-dropdown-trigger:focus,
.custom-dropdown-trigger:focus-visible,
.custom-dropdown button.custom-dropdown-trigger:focus,
.custom-dropdown button.custom-dropdown-trigger:focus-visible {
  outline: none !important;
  border-color: var(--primary-blue) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-blue) 18%, transparent) !important;
  transform: translateY(-1px) !important;
}

.custom-dropdown-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.custom-dropdown.open .custom-dropdown-trigger,
.custom-dropdown.open button.custom-dropdown-trigger,
.custom-dropdown.open .custom-dropdown-trigger:hover:not(:disabled),
.custom-dropdown.open button.custom-dropdown-trigger:hover:not(:disabled) {
  background: color-mix(
    in srgb,
    var(--primary-blue) 6%,
    var(--input-bg, var(--container-bg))
  ) !important;
  border-color: var(--primary-blue) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-blue) 18%, transparent) !important;
}

.custom-dropdown.open:not(.dropup) .custom-dropdown-trigger {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  box-shadow: none !important;
}
.custom-dropdown.open.dropup .custom-dropdown-trigger {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  box-shadow: none !important;
}

/* ── Trigger content ──────────────────────────────────────────────── */
.custom-dropdown-text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  /* Multi-select joins the labels into bare text on this element, which becomes
     an untruncatable anonymous flex item; without these it grows past the
     trigger and overlaps whatever sits beside the dropdown. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-dropdown-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-dropdown-placeholder {
  color: var(--muted-text);
  opacity: 0.85;
  font-weight: 400;
}
.custom-dropdown-trigger-image {
  width: 24px;
  height: 24px;
  object-fit: cover;
  flex-shrink: 0;
}
.custom-dropdown-trigger-image.circle {
  border-radius: 50%;
}
.custom-dropdown-trigger-image.square {
  border-radius: 8px;
}
.custom-dropdown-trigger-icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  color: var(--muted-text);
}
.custom-dropdown-lead-icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  color: var(--muted-text);
}
.custom-dropdown-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.custom-dropdown-main > .custom-dropdown-text {
  flex: 0 0 auto;
}
.custom-dropdown-title {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--muted-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-dropdown-chevron {
  width: 14px;
  font-size: 12px;
  color: var(--muted-text);
  transition: transform 0.18s ease;
  flex-shrink: 0;
  opacity: 0.7;
}
.custom-dropdown.open .custom-dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--primary-blue);
}

/* ── Panel ────────────────────────────────────────────────────────── */
.custom-dropdown-panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  width: 100%;
  max-width: 100%;
  z-index: 99999 !important;
  background: var(--dropdown-bg, var(--container-bg));
  border: 1px solid
    color-mix(in srgb, var(--text-color) 14%, var(--border-color));
  border-radius: 16px;
  box-shadow: 0 24px 36px -24px
    color-mix(in srgb, var(--text-color) 42%, transparent);
  overflow: hidden;
  display: none;
  flex-direction: column;
  max-height: 280px;
  animation: dropdownSlideIn 0.14s cubic-bezier(0.2, 0.7, 0.2, 1);
  box-sizing: border-box;
}
.custom-dropdown.open .custom-dropdown-panel,
.custom-dropdown-panel.is-open {
  display: flex;
  /* Frame only (not the fill) matches the open trigger's border, so the
     panel reads as one continuous outline with it. */
  border-color: var(--primary-blue);
}
.custom-dropdown.dropup .custom-dropdown-panel {
  top: auto;
  bottom: calc(100% + 1px);
  animation: dropdownSlideUp 0.14s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.custom-dropdown-panel.attach-bottom {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: 1px solid var(--border-color);
}
.custom-dropdown-panel.attach-top {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 1px solid var(--border-color);
}

body.theme-dark .custom-dropdown-panel {
  box-shadow: 0 28px 40px -26px color-mix(in srgb, black 76%, transparent);
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes dropdownSlideUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Search input wrapper inside panel ────────────────────────────── */
.custom-dropdown-search {
  padding: 8px 8px 6px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}
.custom-dropdown-search .search-field {
  width: 100%;
  margin: 0;
  align-self: stretch;
  max-width: none;
}
/* The panel is body-appended, so the search input's relative (em) size can
   inherit an outsized base font - pin it to a sensible fixed size. */
.custom-dropdown-search .search-field__input {
  font-size: 14px;
}

/* ── Multi-select bulk action bar ─────────────────────────────────── */
/* Quiet actions, right-aligned. Full-width outlined pills made the bar compete
   with the options it sits above; these read as controls without shouting. */
.custom-dropdown-multi-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.custom-dropdown-action-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  flex: none;
  width: auto !important;
  min-height: 0 !important;
  padding: 5px 10px !important;
  margin: 0 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: var(--text-color) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  line-height: 1.3 !important;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none !important;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease !important;
}
.custom-dropdown-action-icon {
  font-size: 10px;
  opacity: 0.75;
}
.custom-dropdown-action-btn:hover:not(:disabled) {
  background: color-mix(
    in srgb,
    var(--primary-blue) 10%,
    transparent
  ) !important;
  border-color: color-mix(
    in srgb,
    var(--primary-blue) 30%,
    var(--border-color)
  ) !important;
  color: var(--primary-blue) !important;
}
.custom-dropdown-action-btn:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 1px;
}
.custom-dropdown-action-btn:active:not(:disabled) {
  background: color-mix(
    in srgb,
    var(--primary-blue) 16%,
    transparent
  ) !important;
}
/* Clear is destructive-ish, so it warms up rather than taking the accent. */
.custom-dropdown-action-btn--clear:hover:not(:disabled) {
  background: color-mix(in srgb, #b8524f 10%, transparent) !important;
  border-color: color-mix(in srgb, #b8524f 32%, var(--border-color)) !important;
  color: #b8524f !important;
}
.custom-dropdown-action-btn--disabled,
.custom-dropdown-action-btn:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}
.custom-dropdown-action-btn--disabled:hover,
.custom-dropdown-action-btn:disabled:hover {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--text-color) !important;
}

/* ── Options list ─────────────────────────────────────────────────── */
.custom-dropdown-options {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 4px;
  min-width: 0;
}
.custom-dropdown-options::-webkit-scrollbar {
  width: 8px;
}
.custom-dropdown-options::-webkit-scrollbar-track {
  background: transparent;
}
.custom-dropdown-options::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--text-color) 18%, transparent);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.custom-dropdown-options::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--text-color) 28%, transparent);
  background-clip: content-box;
}

/* ── Group header ─────────────────────────────────────────────────── */
.custom-dropdown-group {
  padding: 6px 10px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: transparent;
  border-radius: 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
  margin-top: 4px;
  margin-bottom: 4px;
  user-select: none;
}
.custom-dropdown-group:first-child {
  margin-top: 0;
}

/* ── Option item ──────────────────────────────────────────────────── */
.custom-dropdown-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin: 0 4px;
  cursor: pointer;
  border-radius: 12px;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
  user-select: none;
  min-height: 38px;
}

.custom-dropdown-option + .custom-dropdown-option {
  margin-top: 3px;
}

.custom-dropdown-option:hover:not(.disabled) {
  background: color-mix(in srgb, var(--primary-blue) 8%, transparent);
}

.custom-dropdown-option.focused:not(.disabled) {
  background: color-mix(in srgb, var(--primary-blue) 12%, transparent);
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--primary-blue) 28%, transparent);
  outline: none;
}

.custom-dropdown-option.selected:not(.disabled) {
  background: color-mix(in srgb, var(--primary-blue) 10%, transparent);
  box-shadow: inset 0 0 0 1px
    color-mix(in srgb, var(--primary-blue) 32%, transparent);
  color: var(--primary-blue);
  font-weight: 600;
}
.custom-dropdown-option.selected.focused:not(.disabled) {
  background: color-mix(in srgb, var(--primary-blue) 15%, transparent);
}

.custom-dropdown-option.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: transparent !important;
}

/* ── Option content / icon / image / text ─────────────────────────── */
.custom-dropdown-option-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.custom-dropdown-option-image {
  width: 32px;
  height: 32px;
  object-fit: cover;
  flex-shrink: 0;
}
.custom-dropdown-option-image.circle {
  border-radius: 50%;
}
.custom-dropdown-option-image.square {
  border-radius: 8px;
}
.custom-dropdown-option-icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  color: var(--muted-text);
  font-size: 14px;
}
.custom-dropdown-option.selected .custom-dropdown-option-icon {
  color: var(--primary-blue);
}
/* A flag-icons glyph is a background image, not a font, so it takes its height
   from the line box and collapses in the flex row the icon slots use. */
.custom-dropdown-option-icon.fi,
.custom-dropdown-trigger-icon.fi {
  width: 18px;
  height: 13px;
  border-radius: 2px;
}
/* Two-layer text: outer clips, inner translates on hover. When the
   inner is wider than the outer, JS adds .is-truncated and sets
   --marquee-end / --marquee-duration; CSS animates the reveal. */
.custom-dropdown-option-text {
  position: relative;
  flex: 1;
  min-width: 0;
  color: var(--text-color);
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
}
.custom-dropdown-option-text-inner {
  display: inline-block;
  white-space: nowrap;
  transform: translateX(0);
  transition: transform var(--marquee-duration, 0.4s)
    cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Right-edge fade so a clipped row reads as "there's more". Hides on
   hover so the user sees the unobscured marquee. */
.custom-dropdown-option-text.is-truncated::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--dropdown-bg, var(--container-bg)) 0%, transparent),
    var(--dropdown-bg, var(--container-bg))
  );
  transition: opacity 0.15s ease;
}
.custom-dropdown-option:hover .custom-dropdown-option-text.is-truncated::after {
  opacity: 0;
}
/* Hover-state marquee. On unhover the transition reverses smoothly
   back to translateX(0). */
.custom-dropdown-option:hover
  .custom-dropdown-option-text.is-truncated
  .custom-dropdown-option-text-inner {
  transform: translateX(var(--marquee-end, 0));
}
/* Selected/focused rows have slightly different surfaces — make their
   fade gradient match so the indicator never looks pasted on. */
.custom-dropdown-option.selected:not(.disabled)
  .custom-dropdown-option-text.is-truncated::after,
.custom-dropdown-option.focused:not(.disabled)
  .custom-dropdown-option-text.is-truncated::after {
  background: linear-gradient(
    to right,
    transparent,
    color-mix(
      in srgb,
      var(--text-color) 6%,
      var(--dropdown-bg, var(--container-bg))
    )
  );
}

/* Search-result match highlight - subtle warm background, not a brand wash. */
.custom-dropdown-option-text mark {
  background: color-mix(in srgb, #fbbf24 60%, transparent);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
}
body.theme-dark .custom-dropdown-option-text mark {
  background: color-mix(in srgb, #fbbf24 28%, transparent);
}

/* Reduced motion: fade indicator stays, but no marquee scroll. */
@media (prefers-reduced-motion: reduce) {
  .custom-dropdown-option-text-inner {
    transition: none !important;
    transform: none !important;
  }
}

/* ── Multi-select checkbox ────────────────────────────────────────── */
.custom-dropdown-checkbox {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.custom-dropdown-checkbox:checked {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}
.custom-dropdown-option.disabled .custom-dropdown-checkbox {
  cursor: not-allowed;
}

/* ── Trailing status badge / per-row action button ───────────────── */
.custom-dropdown-option .status-badge {
  margin-left: auto;
  flex-shrink: 0;
}
.custom-dropdown-option-action {
  margin-left: auto;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: var(--muted-text) !important;
  cursor: pointer;
  box-shadow: none !important;
  transition:
    background 0.12s ease,
    color 0.12s ease !important;
}
.custom-dropdown-option .status-badge + .custom-dropdown-option-action {
  margin-left: 6px;
}
.custom-dropdown-option-action:hover {
  background: color-mix(
    in srgb,
    var(--primary-blue) 14%,
    transparent
  ) !important;
  color: var(--primary-blue) !important;
}
.custom-dropdown-option-action:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-blue) 28%, transparent) !important;
}
.custom-dropdown-option-action-icon {
  font-size: 12px;
  line-height: 1;
}
.custom-dropdown-option-action.is-loading {
  cursor: wait;
  pointer-events: none;
  color: var(--muted-text) !important;
}
.custom-dropdown-option-action.is-playing {
  background: color-mix(
    in srgb,
    var(--primary-blue) 14%,
    transparent
  ) !important;
  color: var(--primary-blue) !important;
}

/* ── Empty-state ──────────────────────────────────────────────────── */
.custom-dropdown-no-results {
  padding: 14px;
  text-align: center;
  color: var(--muted-text);
  font-size: 13px;
  font-weight: 600;
}

/* ── Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .custom-dropdown-panel {
    max-height: min(360px, 60vh);
    max-width: calc(100vw - 16px);
  }
  .custom-dropdown-option {
    padding: 10px 12px;
    min-height: 42px;
  }
  .custom-dropdown-trigger {
    min-height: 42px;
    padding: 10px 12px !important;
  }
  .custom-dropdown-action-btn {
    padding: 8px 10px !important;
    min-height: 36px;
  }
}
@media (max-width: 480px) {
  .custom-dropdown-panel {
    left: 0;
    max-height: min(420px, 70vh);
    max-width: calc(100vw - 16px);
  }
}

/* ── Print / a11y ─────────────────────────────────────────────────── */
@media print {
  .custom-dropdown {
    display: none;
  }
  select[data-dropdown] {
    display: block !important;
  }
}
@media (prefers-contrast: high) {
  .custom-dropdown-trigger {
    border-width: 2px !important;
  }
  .custom-dropdown-option.focused {
    outline: 2px solid var(--text-color);
    outline-offset: -2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .custom-dropdown-panel,
  .custom-dropdown-chevron,
  .custom-dropdown-option,
  .custom-dropdown-trigger {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Mobile bottom-sheet variant ================================
   Activated by base_dropdown.js when body[data-mobile] is set. Panel
   slides up from the bottom with a drag handle, matching the context
   menu's bottom-sheet behavior. */

.custom-dropdown-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  /* Must sit above the base modal (z-index: 99999) so dropdowns
     opened from inside a modal are visible. */
  z-index: 100000;
  opacity: 1;
  transition: opacity 0.2s ease;
  animation: custom-dropdown-backdrop-fade-in 0.2s ease;
}

.custom-dropdown-backdrop.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes custom-dropdown-backdrop-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.custom-dropdown-panel.custom-dropdown-bottom-sheet {
  position: fixed !important;
  inset: auto 0 0 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  max-height: 80vh !important;
  border: 0 !important;
  border-radius: 18px 18px 0 0 !important;
  padding: 6px 12px
    calc(var(--safe-bottom-effective, env(safe-area-inset-bottom, 0px)) + 12px)
    12px !important;
  z-index: 100001 !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25) !important;
  transform-origin: bottom center !important;
  animation: custom-dropdown-sheet-slide-up 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
  overflow: hidden !important;
}

.custom-dropdown-panel.custom-dropdown-bottom-sheet.is-hidden {
  transform: translateY(100%) !important;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease !important;
}

@keyframes custom-dropdown-sheet-slide-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.custom-dropdown-drag-area {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0 8px;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.custom-dropdown-drag-area:active {
  cursor: grabbing;
}

.custom-dropdown-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--muted-text, #b0b0b0);
  opacity: 0.45;
  pointer-events: none;
}

/* In bottom-sheet mode the options list takes the remaining height
   and scrolls inside the sheet; the drag area + search stay pinned. */
.custom-dropdown-panel.custom-dropdown-bottom-sheet .custom-dropdown-options {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: none;
}

.custom-dropdown-panel.custom-dropdown-bottom-sheet .custom-dropdown-search,
.custom-dropdown-panel.custom-dropdown-bottom-sheet
  .custom-dropdown-multi-actions {
  flex-shrink: 0;
}

.custom-dropdown-panel.custom-dropdown-modal-panel {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.custom-dropdown-panel.custom-dropdown-modal-panel .custom-dropdown-options {
  max-height: none !important;
  overflow: visible !important;
}
