.ib-fund-review-page .client-fund-review-shell {
  width: min(100%, 1640px);
}

.ib-fund-account-range-filter {
  position: relative;
  min-width: 0;
  z-index: 2;
}

.ib-fund-account-range-filter.is-open {
  z-index: 30;
}

.ib-fund-account-range-filter .fund-account-range-combobox {
  position: relative;
  min-width: 0;
}

.ib-fund-account-range-filter .fund-account-range-input-wrap {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 11px;
  border: 1px solid var(--border, #d8e1ef);
  border-radius: 7px;
  background: var(--input-bg, #fff);
}

.ib-fund-account-range-filter .fund-account-range-input-wrap:focus-within {
  border-color: rgba(var(--blue-rgb), 0.68);
  box-shadow: 0 0 0 3px rgba(var(--blue-rgb), 0.11);
}

.ib-fund-account-range-filter .fund-account-range-input-wrap > svg,
.ib-fund-account-range-filter .fund-account-range-toggle svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: #94a3b8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.ib-fund-account-range-filter .fund-account-range-input-wrap input {
  width: auto;
  height: 38px;
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
}

.ib-fund-account-range-filter .fund-account-range-selection-scope {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  height: 22px;
  flex: 0 0 auto;
  padding: 0 8px;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.ib-fund-account-range-filter .fund-account-range-selection-scope.is-direct {
  background: #ecfdf5;
  color: #047857;
}

.ib-fund-account-range-filter .fund-account-range-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.ib-fund-account-range-filter .fund-account-range-toggle:hover {
  background: color-mix(in srgb, var(--blue) 7%, transparent);
}

.ib-fund-account-range-filter.is-open .fund-account-range-toggle svg {
  transform: rotate(180deg);
}

.ib-fund-account-range-filter .fund-account-range-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border, #d8e1ef);
  border-radius: 8px;
  background: var(--surface-raised, #fff);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.ib-fund-account-range-filter .fund-account-range-options[hidden] {
  display: none;
}

.ib-fund-account-range-filter .fund-account-range-scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: #f1f5f9;
}

.ib-fund-account-range-filter .fund-account-range-scope-option,
.ib-fund-account-range-filter .fund-account-range-option {
  border: 0;
  font: inherit;
}

.ib-fund-account-range-filter .fund-account-range-scope-option {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted, #64748b);
  font-size: 12px;
  font-weight: 900;
}

.ib-fund-account-range-filter .fund-account-range-scope-option:hover,
.ib-fund-account-range-filter .fund-account-range-scope-option:focus-visible {
  outline: 0;
  color: var(--blue);
}

.ib-fund-account-range-filter .fund-account-range-scope-option.is-selected {
  background: var(--surface-raised, #fff);
  color: var(--blue);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.ib-fund-account-range-filter .fund-account-range-user-heading {
  margin-top: 8px;
  padding: 9px 9px 6px;
  border-top: 1px solid var(--border-light, #e8edf5);
  color: var(--muted, #64748b);
  font-size: 11px;
  font-weight: 900;
}

.ib-fund-account-range-filter .fund-account-range-user-list {
  display: grid;
  gap: 2px;
}

.ib-fund-account-range-filter .fund-account-range-option {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--text, #0f172a);
  text-align: left;
}

.ib-fund-account-range-filter .fund-account-range-option:hover,
.ib-fund-account-range-filter .fund-account-range-option:focus-visible {
  outline: 0;
  background: color-mix(in srgb, var(--blue) 8%, transparent);
}

.ib-fund-account-range-filter .fund-account-range-option.is-selected {
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
}

.ib-fund-account-range-filter .fund-account-range-option.is-selected::after {
  content: "✓";
  flex: 0 0 auto;
  color: currentColor;
  font-size: 12px;
  font-weight: 950;
}

.ib-fund-account-range-filter .fund-account-range-option span {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ib-fund-account-range-filter .fund-account-range-option small {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--muted, #64748b);
  font-size: 11px;
  font-weight: 700;
}

.ib-fund-account-range-filter .fund-account-range-empty {
  padding: 18px 10px;
  color: var(--muted, #64748b);
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}

:root[data-theme="dark"] .ib-fund-account-range-filter .fund-account-range-input-wrap,
:root[data-theme="dark"] .ib-fund-account-range-filter .fund-account-range-options {
  background: rgba(var(--neutral-panel-rgb, 15, 23, 42), 0.96);
  border-color: rgba(var(--neutral-border-rgb, 148, 163, 184), 0.24);
}

:root[data-theme="dark"] .ib-fund-account-range-filter .fund-account-range-scope {
  background: rgba(var(--neutral-panel-rgb, 30, 41, 59), 0.92);
}

:root[data-theme="dark"] .ib-fund-account-range-filter .fund-account-range-option {
  color: var(--neutral-text-strong, #e5edf8);
}

:root[data-theme="dark"] .ib-fund-account-range-filter .fund-account-range-scope-option.is-selected {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.ib-fund-filter-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.ib-fund-filter-actions {
  grid-column: 4;
}

.ib-fund-table {
  min-width: 1280px;
}

.ib-fund-table .ib-fund-customer-cell {
  min-width: 155px;
  white-space: normal;
}

.ib-fund-customer-cell strong,
.ib-fund-customer-cell small {
  display: block;
}

.ib-fund-customer-cell strong {
  color: var(--text-strong, #0f172a);
  font-weight: 900;
}

.ib-fund-customer-cell small {
  margin-top: 4px;
  color: var(--muted, #64748b);
  font-size: 11px;
  font-weight: 750;
}

@media (max-width: 1240px) {
  .ib-fund-filter-grid {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }

  .ib-fund-filter-actions {
    grid-column: 3;
  }
}

@media (max-width: 1100px) {
  .ib-fund-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ib-fund-filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .ib-fund-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ib-fund-filter-actions {
    grid-column: auto;
  }

  .ib-fund-table {
    min-width: 0;
  }

  .ib-fund-table .ib-fund-customer-cell {
    min-width: 0;
  }
}
